~ubuntu-branches/debian/stretch/screen/stretch

« back to all changes in this revision

Viewing changes to autom4te.cache/output.1

  • Committer: Package Import Robot
  • Author(s): Axel Beckert
  • Date: 2015-06-17 21:57:18 UTC
  • mfrom: (7.1.5 experimental)
  • Revision ID: package-import@ubuntu.com-20150617215718-mmj4dpghyl5a0ipy
Tags: 4.3.0-2
* Upload to unstable again.
* Re-add debian/dirs with /etc/tmpfiles.d/ and add a comment why screen
  ships an empty directory.
  + Fixes regression introduced in 4.2.1-4: If systemd is not installed
    and screen is either setuid or neither setuid nor setgid,
    /var/lib/dpkg/info/screen.postinst bailed out with "16:
    /var/lib/dpkg/info/screen.postinst: cannot create
    /etc/tmpfiles.d/screen-cleanup.conf: Directory nonexistent".
  + See comment in debian/dirs for more detailed reasoning.
* No more ship /lib/systemd/system/screen-cleanup.service in the package
  but link it to /dev/null in postinst and remove the link again in
  postrm. (LP: #1462692)
* Add fixed bugs reported in Ubuntu to previous changelog entry.
* Apply wrap-and-sort.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
@%:@! /bin/sh
2
 
@%:@ From configure.in Revision.
3
 
@%:@ Guess values for system-dependent variables and create Makefiles.
4
 
@%:@ Generated by GNU Autoconf 2.69.
5
 
@%:@ 
6
 
@%:@ 
7
 
@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
8
 
@%:@ 
9
 
@%:@ 
10
 
@%:@ This configure script is free software; the Free Software Foundation
11
 
@%:@ gives unlimited permission to copy, distribute and modify it.
12
 
## -------------------- ##
13
 
## M4sh Initialization. ##
14
 
## -------------------- ##
15
 
 
16
 
# Be more Bourne compatible
17
 
DUALCASE=1; export DUALCASE # for MKS sh
18
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19
 
  emulate sh
20
 
  NULLCMD=:
21
 
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22
 
  # is contrary to our usage.  Disable this feature.
23
 
  alias -g '${1+"$@"}'='"$@"'
24
 
  setopt NO_GLOB_SUBST
25
 
else
26
 
  case `(set -o) 2>/dev/null` in @%:@(
27
 
  *posix*) :
28
 
    set -o posix ;; @%:@(
29
 
  *) :
30
 
     ;;
31
 
esac
32
 
fi
33
 
 
34
 
 
35
 
as_nl='
36
 
'
37
 
export as_nl
38
 
# Printing a long string crashes Solaris 7 /usr/bin/printf.
39
 
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42
 
# Prefer a ksh shell builtin over an external printf program on Solaris,
43
 
# but without wasting forks for bash or zsh.
44
 
if test -z "$BASH_VERSION$ZSH_VERSION" \
45
 
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46
 
  as_echo='print -r --'
47
 
  as_echo_n='print -rn --'
48
 
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49
 
  as_echo='printf %s\n'
50
 
  as_echo_n='printf %s'
51
 
else
52
 
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53
 
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54
 
    as_echo_n='/usr/ucb/echo -n'
55
 
  else
56
 
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57
 
    as_echo_n_body='eval
58
 
      arg=$1;
59
 
      case $arg in @%:@(
60
 
      *"$as_nl"*)
61
 
        expr "X$arg" : "X\\(.*\\)$as_nl";
62
 
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63
 
      esac;
64
 
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65
 
    '
66
 
    export as_echo_n_body
67
 
    as_echo_n='sh -c $as_echo_n_body as_echo'
68
 
  fi
69
 
  export as_echo_body
70
 
  as_echo='sh -c $as_echo_body as_echo'
71
 
fi
72
 
 
73
 
# The user is always right.
74
 
if test "${PATH_SEPARATOR+set}" != set; then
75
 
  PATH_SEPARATOR=:
76
 
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77
 
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78
 
      PATH_SEPARATOR=';'
79
 
  }
80
 
fi
81
 
 
82
 
 
83
 
# IFS
84
 
# We need space, tab and new line, in precisely that order.  Quoting is
85
 
# there to prevent editors from complaining about space-tab.
86
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
87
 
# splitting by setting IFS to empty value.)
88
 
IFS=" ""        $as_nl"
89
 
 
90
 
# Find who we are.  Look in the path if we contain no directory separator.
91
 
as_myself=
92
 
case $0 in @%:@((
93
 
  *[\\/]* ) as_myself=$0 ;;
94
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95
 
for as_dir in $PATH
96
 
do
97
 
  IFS=$as_save_IFS
98
 
  test -z "$as_dir" && as_dir=.
99
 
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100
 
  done
101
 
IFS=$as_save_IFS
102
 
 
103
 
     ;;
104
 
esac
105
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
106
 
# in which case we are not to be found in the path.
107
 
if test "x$as_myself" = x; then
108
 
  as_myself=$0
109
 
fi
110
 
if test ! -f "$as_myself"; then
111
 
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112
 
  exit 1
113
 
fi
114
 
 
115
 
# Unset variables that we do not need and which cause bugs (e.g. in
116
 
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117
 
# suppresses any "Segmentation fault" message there.  '((' could
118
 
# trigger a bug in pdksh 5.2.14.
119
 
for as_var in BASH_ENV ENV MAIL MAILPATH
120
 
do eval test x\${$as_var+set} = xset \
121
 
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122
 
done
123
 
PS1='$ '
124
 
PS2='> '
125
 
PS4='+ '
126
 
 
127
 
# NLS nuisances.
128
 
LC_ALL=C
129
 
export LC_ALL
130
 
LANGUAGE=C
131
 
export LANGUAGE
132
 
 
133
 
# CDPATH.
134
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
 
 
136
 
# Use a proper internal environment variable to ensure we don't fall
137
 
  # into an infinite loop, continuously re-executing ourselves.
138
 
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
139
 
    _as_can_reexec=no; export _as_can_reexec;
140
 
    # We cannot yet assume a decent shell, so we have to provide a
141
 
# neutralization value for shells without unset; and this also
142
 
# works around shells that cannot unset nonexistent variables.
143
 
# Preserve -v and -x to the replacement shell.
144
 
BASH_ENV=/dev/null
145
 
ENV=/dev/null
146
 
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147
 
case $- in @%:@ ((((
148
 
  *v*x* | *x*v* ) as_opts=-vx ;;
149
 
  *v* ) as_opts=-v ;;
150
 
  *x* ) as_opts=-x ;;
151
 
  * ) as_opts= ;;
152
 
esac
153
 
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
154
 
# Admittedly, this is quite paranoid, since all the known shells bail
155
 
# out after a failed `exec'.
156
 
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
157
 
as_fn_exit 255
158
 
  fi
159
 
  # We don't want this to propagate to other subprocesses.
160
 
          { _as_can_reexec=; unset _as_can_reexec;}
161
 
if test "x$CONFIG_SHELL" = x; then
162
 
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
163
 
  emulate sh
164
 
  NULLCMD=:
165
 
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
166
 
  # is contrary to our usage.  Disable this feature.
167
 
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
168
 
  setopt NO_GLOB_SUBST
169
 
else
170
 
  case \`(set -o) 2>/dev/null\` in @%:@(
171
 
  *posix*) :
172
 
    set -o posix ;; @%:@(
173
 
  *) :
174
 
     ;;
175
 
esac
176
 
fi
177
 
"
178
 
  as_required="as_fn_return () { (exit \$1); }
179
 
as_fn_success () { as_fn_return 0; }
180
 
as_fn_failure () { as_fn_return 1; }
181
 
as_fn_ret_success () { return 0; }
182
 
as_fn_ret_failure () { return 1; }
183
 
 
184
 
exitcode=0
185
 
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
186
 
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
187
 
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
188
 
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
189
 
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190
 
  
191
 
else
192
 
  exitcode=1; echo positional parameters were not saved.
193
 
fi
194
 
test x\$exitcode = x0 || exit 1
195
 
test -x / || exit 1"
196
 
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
197
 
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
198
 
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
199
 
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200
 
test \$(( 1 + 1 )) = 2 || exit 1"
201
 
  if (eval "$as_required") 2>/dev/null; then :
202
 
  as_have_required=yes
203
 
else
204
 
  as_have_required=no
205
 
fi
206
 
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207
 
  
208
 
else
209
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210
 
as_found=false
211
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212
 
do
213
 
  IFS=$as_save_IFS
214
 
  test -z "$as_dir" && as_dir=.
215
 
  as_found=:
216
 
  case $as_dir in @%:@(
217
 
         /*)
218
 
           for as_base in sh bash ksh sh5; do
219
 
             # Try only shells that exist, to save several forks.
220
 
             as_shell=$as_dir/$as_base
221
 
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222
 
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
223
 
  CONFIG_SHELL=$as_shell as_have_required=yes
224
 
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
225
 
  break 2
226
 
fi
227
 
fi
228
 
           done;;
229
 
       esac
230
 
  as_found=false
231
 
done
232
 
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233
 
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
234
 
  CONFIG_SHELL=$SHELL as_have_required=yes
235
 
fi; }
236
 
IFS=$as_save_IFS
237
 
 
238
 
 
239
 
      if test "x$CONFIG_SHELL" != x; then :
240
 
  export CONFIG_SHELL
241
 
             # We cannot yet assume a decent shell, so we have to provide a
242
 
# neutralization value for shells without unset; and this also
243
 
# works around shells that cannot unset nonexistent variables.
244
 
# Preserve -v and -x to the replacement shell.
245
 
BASH_ENV=/dev/null
246
 
ENV=/dev/null
247
 
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248
 
case $- in @%:@ ((((
249
 
  *v*x* | *x*v* ) as_opts=-vx ;;
250
 
  *v* ) as_opts=-v ;;
251
 
  *x* ) as_opts=-x ;;
252
 
  * ) as_opts= ;;
253
 
esac
254
 
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255
 
# Admittedly, this is quite paranoid, since all the known shells bail
256
 
# out after a failed `exec'.
257
 
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
258
 
exit 255
259
 
fi
260
 
 
261
 
    if test x$as_have_required = xno; then :
262
 
  $as_echo "$0: This script requires a shell more modern than all"
263
 
  $as_echo "$0: the shells that I found on your system."
264
 
  if test x${ZSH_VERSION+set} = xset ; then
265
 
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266
 
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267
 
  else
268
 
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
269
 
$0: including any error possibly output before this
270
 
$0: message. Then install a modern shell, or manually run
271
 
$0: the script under such a shell if you do have one."
272
 
  fi
273
 
  exit 1
274
 
fi
275
 
fi
276
 
fi
277
 
SHELL=${CONFIG_SHELL-/bin/sh}
278
 
export SHELL
279
 
# Unset more variables known to interfere with behavior of common tools.
280
 
CLICOLOR_FORCE= GREP_OPTIONS=
281
 
unset CLICOLOR_FORCE GREP_OPTIONS
282
 
 
283
 
## --------------------- ##
284
 
## M4sh Shell Functions. ##
285
 
## --------------------- ##
286
 
@%:@ as_fn_unset VAR
287
 
@%:@ ---------------
288
 
@%:@ Portably unset VAR.
289
 
as_fn_unset ()
290
 
{
291
 
  { eval $1=; unset $1;}
292
 
}
293
 
as_unset=as_fn_unset
294
 
 
295
 
@%:@ as_fn_set_status STATUS
296
 
@%:@ -----------------------
297
 
@%:@ Set @S|@? to STATUS, without forking.
298
 
as_fn_set_status ()
299
 
{
300
 
  return $1
301
 
} @%:@ as_fn_set_status
302
 
 
303
 
@%:@ as_fn_exit STATUS
304
 
@%:@ -----------------
305
 
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
306
 
as_fn_exit ()
307
 
{
308
 
  set +e
309
 
  as_fn_set_status $1
310
 
  exit $1
311
 
} @%:@ as_fn_exit
312
 
 
313
 
@%:@ as_fn_mkdir_p
314
 
@%:@ -------------
315
 
@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
316
 
as_fn_mkdir_p ()
317
 
{
318
 
 
319
 
  case $as_dir in #(
320
 
  -*) as_dir=./$as_dir;;
321
 
  esac
322
 
  test -d "$as_dir" || eval $as_mkdir_p || {
323
 
    as_dirs=
324
 
    while :; do
325
 
      case $as_dir in #(
326
 
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
327
 
      *) as_qdir=$as_dir;;
328
 
      esac
329
 
      as_dirs="'$as_qdir' $as_dirs"
330
 
      as_dir=`$as_dirname -- "$as_dir" ||
331
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
332
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
333
 
         X"$as_dir" : 'X\(//\)$' \| \
334
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
335
 
$as_echo X"$as_dir" |
336
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
337
 
            s//\1/
338
 
            q
339
 
          }
340
 
          /^X\(\/\/\)[^/].*/{
341
 
            s//\1/
342
 
            q
343
 
          }
344
 
          /^X\(\/\/\)$/{
345
 
            s//\1/
346
 
            q
347
 
          }
348
 
          /^X\(\/\).*/{
349
 
            s//\1/
350
 
            q
351
 
          }
352
 
          s/.*/./; q'`
353
 
      test -d "$as_dir" && break
354
 
    done
355
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
356
 
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
357
 
 
358
 
 
359
 
} @%:@ as_fn_mkdir_p
360
 
 
361
 
@%:@ as_fn_executable_p FILE
362
 
@%:@ -----------------------
363
 
@%:@ Test if FILE is an executable regular file.
364
 
as_fn_executable_p ()
365
 
{
366
 
  test -f "$1" && test -x "$1"
367
 
} @%:@ as_fn_executable_p
368
 
@%:@ as_fn_append VAR VALUE
369
 
@%:@ ----------------------
370
 
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
371
 
@%:@ advantage of any shell optimizations that allow amortized linear growth over
372
 
@%:@ repeated appends, instead of the typical quadratic growth present in naive
373
 
@%:@ implementations.
374
 
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
375
 
  eval 'as_fn_append ()
376
 
  {
377
 
    eval $1+=\$2
378
 
  }'
379
 
else
380
 
  as_fn_append ()
381
 
  {
382
 
    eval $1=\$$1\$2
383
 
  }
384
 
fi # as_fn_append
385
 
 
386
 
@%:@ as_fn_arith ARG...
387
 
@%:@ ------------------
388
 
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
389
 
@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
390
 
@%:@ must be portable across @S|@(()) and expr.
391
 
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
392
 
  eval 'as_fn_arith ()
393
 
  {
394
 
    as_val=$(( $* ))
395
 
  }'
396
 
else
397
 
  as_fn_arith ()
398
 
  {
399
 
    as_val=`expr "$@" || test $? -eq 1`
400
 
  }
401
 
fi # as_fn_arith
402
 
 
403
 
 
404
 
@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
405
 
@%:@ ----------------------------------------
406
 
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
407
 
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
408
 
@%:@ script with STATUS, using 1 if that was 0.
409
 
as_fn_error ()
410
 
{
411
 
  as_status=$1; test $as_status -eq 0 && as_status=1
412
 
  if test "$4"; then
413
 
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
414
 
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415
 
  fi
416
 
  $as_echo "$as_me: error: $2" >&2
417
 
  as_fn_exit $as_status
418
 
} @%:@ as_fn_error
419
 
 
420
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
421
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
422
 
  as_expr=expr
423
 
else
424
 
  as_expr=false
425
 
fi
426
 
 
427
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
428
 
  as_basename=basename
429
 
else
430
 
  as_basename=false
431
 
fi
432
 
 
433
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
434
 
  as_dirname=dirname
435
 
else
436
 
  as_dirname=false
437
 
fi
438
 
 
439
 
as_me=`$as_basename -- "$0" ||
440
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
441
 
         X"$0" : 'X\(//\)$' \| \
442
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443
 
$as_echo X/"$0" |
444
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
445
 
            s//\1/
446
 
            q
447
 
          }
448
 
          /^X\/\(\/\/\)$/{
449
 
            s//\1/
450
 
            q
451
 
          }
452
 
          /^X\/\(\/\).*/{
453
 
            s//\1/
454
 
            q
455
 
          }
456
 
          s/.*/./; q'`
457
 
 
458
 
# Avoid depending upon Character Ranges.
459
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
460
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
461
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
462
 
as_cr_digits='0123456789'
463
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
464
 
 
465
 
 
466
 
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
467
 
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
468
 
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
469
 
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
470
 
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
471
 
  sed -n '
472
 
    p
473
 
    /[$]LINENO/=
474
 
  ' <$as_myself |
475
 
    sed '
476
 
      s/[$]LINENO.*/&-/
477
 
      t lineno
478
 
      b
479
 
      :lineno
480
 
      N
481
 
      :loop
482
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
483
 
      t loop
484
 
      s/-\n.*//
485
 
    ' >$as_me.lineno &&
486
 
  chmod +x "$as_me.lineno" ||
487
 
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488
 
 
489
 
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
490
 
  # already done that, so ensure we don't try to do so again and fall
491
 
  # in an infinite loop.  This has already happened in practice.
492
 
  _as_can_reexec=no; export _as_can_reexec
493
 
  # Don't try to exec as it changes $[0], causing all sort of problems
494
 
  # (the dirname of $[0] is not the place where we might find the
495
 
  # original and so on.  Autoconf is especially sensitive to this).
496
 
  . "./$as_me.lineno"
497
 
  # Exit status is that of the last command.
498
 
  exit
499
 
}
500
 
 
501
 
ECHO_C= ECHO_N= ECHO_T=
502
 
case `echo -n x` in @%:@(((((
503
 
-n*)
504
 
  case `echo 'xy\c'` in
505
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
506
 
  xy)  ECHO_C='\c';;
507
 
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
508
 
       ECHO_T=' ';;
509
 
  esac;;
510
 
*)
511
 
  ECHO_N='-n';;
512
 
esac
513
 
 
514
 
rm -f conf$$ conf$$.exe conf$$.file
515
 
if test -d conf$$.dir; then
516
 
  rm -f conf$$.dir/conf$$.file
517
 
else
518
 
  rm -f conf$$.dir
519
 
  mkdir conf$$.dir 2>/dev/null
520
 
fi
521
 
if (echo >conf$$.file) 2>/dev/null; then
522
 
  if ln -s conf$$.file conf$$ 2>/dev/null; then
523
 
    as_ln_s='ln -s'
524
 
    # ... but there are two gotchas:
525
 
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
526
 
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
527
 
    # In both cases, we have to default to `cp -pR'.
528
 
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529
 
      as_ln_s='cp -pR'
530
 
  elif ln conf$$.file conf$$ 2>/dev/null; then
531
 
    as_ln_s=ln
532
 
  else
533
 
    as_ln_s='cp -pR'
534
 
  fi
535
 
else
536
 
  as_ln_s='cp -pR'
537
 
fi
538
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
539
 
rmdir conf$$.dir 2>/dev/null
540
 
 
541
 
if mkdir -p . 2>/dev/null; then
542
 
  as_mkdir_p='mkdir -p "$as_dir"'
543
 
else
544
 
  test -d ./-p && rmdir ./-p
545
 
  as_mkdir_p=false
546
 
fi
547
 
 
548
 
as_test_x='test -x'
549
 
as_executable_p=as_fn_executable_p
550
 
 
551
 
# Sed expression to map a string onto a valid CPP name.
552
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553
 
 
554
 
# Sed expression to map a string onto a valid variable name.
555
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556
 
 
557
 
 
558
 
test -n "$DJDIR" || exec 7<&0 </dev/null
559
 
exec 6>&1
560
 
 
561
 
# Name of the host.
562
 
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
563
 
# so uname gets run too.
564
 
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
565
 
 
566
 
#
567
 
# Initializations.
568
 
#
569
 
ac_default_prefix=/usr/local
570
 
ac_clean_files=
571
 
ac_config_libobj_dir=.
572
 
LIB@&t@OBJS=
573
 
cross_compiling=no
574
 
subdirs=
575
 
MFLAGS=
576
 
MAKEFLAGS=
577
 
 
578
 
# Identity of this package.
579
 
PACKAGE_NAME=
580
 
PACKAGE_TARNAME=
581
 
PACKAGE_VERSION=
582
 
PACKAGE_STRING=
583
 
PACKAGE_BUGREPORT=
584
 
PACKAGE_URL=
585
 
 
586
 
ac_unique_file="screen.c"
587
 
# Factoring default headers for most tests.
588
 
ac_includes_default="\
589
 
#include <stdio.h>
590
 
#ifdef HAVE_SYS_TYPES_H
591
 
# include <sys/types.h>
592
 
#endif
593
 
#ifdef HAVE_SYS_STAT_H
594
 
# include <sys/stat.h>
595
 
#endif
596
 
#ifdef STDC_HEADERS
597
 
# include <stdlib.h>
598
 
# include <stddef.h>
599
 
#else
600
 
# ifdef HAVE_STDLIB_H
601
 
#  include <stdlib.h>
602
 
# endif
603
 
#endif
604
 
#ifdef HAVE_STRING_H
605
 
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606
 
#  include <memory.h>
607
 
# endif
608
 
# include <string.h>
609
 
#endif
610
 
#ifdef HAVE_STRINGS_H
611
 
# include <strings.h>
612
 
#endif
613
 
#ifdef HAVE_INTTYPES_H
614
 
# include <inttypes.h>
615
 
#endif
616
 
#ifdef HAVE_STDINT_H
617
 
# include <stdint.h>
618
 
#endif
619
 
#ifdef HAVE_UNISTD_H
620
 
# include <unistd.h>
621
 
#endif"
622
 
 
623
 
ac_subst_vars='LTLIBOBJS
624
 
LIB@&t@OBJS
625
 
ETCSCREENRC
626
 
XTERMPATH
627
 
WRITEPATH
628
 
INSTALL_DATA
629
 
INSTALL_SCRIPT
630
 
INSTALL_PROGRAM
631
 
AWK
632
 
EGREP
633
 
GREP
634
 
CPP
635
 
OBJEXT
636
 
EXEEXT
637
 
ac_ct_CC
638
 
CPPFLAGS
639
 
LDFLAGS
640
 
CFLAGS
641
 
CC
642
 
ac_prefix_program
643
 
VERSION
644
 
target_alias
645
 
host_alias
646
 
build_alias
647
 
LIBS
648
 
ECHO_T
649
 
ECHO_N
650
 
ECHO_C
651
 
DEFS
652
 
mandir
653
 
localedir
654
 
libdir
655
 
psdir
656
 
pdfdir
657
 
dvidir
658
 
htmldir
659
 
infodir
660
 
docdir
661
 
oldincludedir
662
 
includedir
663
 
localstatedir
664
 
sharedstatedir
665
 
sysconfdir
666
 
datadir
667
 
datarootdir
668
 
libexecdir
669
 
sbindir
670
 
bindir
671
 
program_transform_name
672
 
prefix
673
 
exec_prefix
674
 
PACKAGE_URL
675
 
PACKAGE_BUGREPORT
676
 
PACKAGE_STRING
677
 
PACKAGE_VERSION
678
 
PACKAGE_TARNAME
679
 
PACKAGE_NAME
680
 
PATH_SEPARATOR
681
 
SHELL'
682
 
ac_subst_files=''
683
 
ac_user_opts='
684
 
enable_option_checking
685
 
enable_socket_dir
686
 
with_socket_dir
687
 
with_pty_mode
688
 
with_pty_group
689
 
enable_pam
690
 
enable_use_locale
691
 
enable_telnet
692
 
enable_colors256
693
 
enable_rxvt_osc
694
 
with_sys_screenrc
695
 
'
696
 
      ac_precious_vars='build_alias
697
 
host_alias
698
 
target_alias
699
 
CC
700
 
CFLAGS
701
 
LDFLAGS
702
 
LIBS
703
 
CPPFLAGS
704
 
CPP'
705
 
 
706
 
 
707
 
# Initialize some variables set by options.
708
 
ac_init_help=
709
 
ac_init_version=false
710
 
ac_unrecognized_opts=
711
 
ac_unrecognized_sep=
712
 
# The variables have the same names as the options, with
713
 
# dashes changed to underlines.
714
 
cache_file=/dev/null
715
 
exec_prefix=NONE
716
 
no_create=
717
 
no_recursion=
718
 
prefix=NONE
719
 
program_prefix=NONE
720
 
program_suffix=NONE
721
 
program_transform_name=s,x,x,
722
 
silent=
723
 
site=
724
 
srcdir=
725
 
verbose=
726
 
x_includes=NONE
727
 
x_libraries=NONE
728
 
 
729
 
# Installation directory options.
730
 
# These are left unexpanded so users can "make install exec_prefix=/foo"
731
 
# and all the variables that are supposed to be based on exec_prefix
732
 
# by default will actually change.
733
 
# Use braces instead of parens because sh, perl, etc. also accept them.
734
 
# (The list follows the same order as the GNU Coding Standards.)
735
 
bindir='${exec_prefix}/bin'
736
 
sbindir='${exec_prefix}/sbin'
737
 
libexecdir='${exec_prefix}/libexec'
738
 
datarootdir='${prefix}/share'
739
 
datadir='${datarootdir}'
740
 
sysconfdir='${prefix}/etc'
741
 
sharedstatedir='${prefix}/com'
742
 
localstatedir='${prefix}/var'
743
 
includedir='${prefix}/include'
744
 
oldincludedir='/usr/include'
745
 
docdir='${datarootdir}/doc/${PACKAGE}'
746
 
infodir='${datarootdir}/info'
747
 
htmldir='${docdir}'
748
 
dvidir='${docdir}'
749
 
pdfdir='${docdir}'
750
 
psdir='${docdir}'
751
 
libdir='${exec_prefix}/lib'
752
 
localedir='${datarootdir}/locale'
753
 
mandir='${datarootdir}/man'
754
 
 
755
 
ac_prev=
756
 
ac_dashdash=
757
 
for ac_option
758
 
do
759
 
  # If the previous option needs an argument, assign it.
760
 
  if test -n "$ac_prev"; then
761
 
    eval $ac_prev=\$ac_option
762
 
    ac_prev=
763
 
    continue
764
 
  fi
765
 
 
766
 
  case $ac_option in
767
 
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
768
 
  *=)   ac_optarg= ;;
769
 
  *)    ac_optarg=yes ;;
770
 
  esac
771
 
 
772
 
  # Accept the important Cygnus configure options, so we can diagnose typos.
773
 
 
774
 
  case $ac_dashdash$ac_option in
775
 
  --)
776
 
    ac_dashdash=yes ;;
777
 
 
778
 
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
779
 
    ac_prev=bindir ;;
780
 
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
781
 
    bindir=$ac_optarg ;;
782
 
 
783
 
  -build | --build | --buil | --bui | --bu)
784
 
    ac_prev=build_alias ;;
785
 
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
786
 
    build_alias=$ac_optarg ;;
787
 
 
788
 
  -cache-file | --cache-file | --cache-fil | --cache-fi \
789
 
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
790
 
    ac_prev=cache_file ;;
791
 
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
792
 
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
793
 
    cache_file=$ac_optarg ;;
794
 
 
795
 
  --config-cache | -C)
796
 
    cache_file=config.cache ;;
797
 
 
798
 
  -datadir | --datadir | --datadi | --datad)
799
 
    ac_prev=datadir ;;
800
 
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
801
 
    datadir=$ac_optarg ;;
802
 
 
803
 
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
804
 
  | --dataroo | --dataro | --datar)
805
 
    ac_prev=datarootdir ;;
806
 
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
807
 
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
808
 
    datarootdir=$ac_optarg ;;
809
 
 
810
 
  -disable-* | --disable-*)
811
 
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
812
 
    # Reject names that are not valid shell variable names.
813
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
814
 
      as_fn_error $? "invalid feature name: $ac_useropt"
815
 
    ac_useropt_orig=$ac_useropt
816
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
817
 
    case $ac_user_opts in
818
 
      *"
819
 
"enable_$ac_useropt"
820
 
"*) ;;
821
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
822
 
         ac_unrecognized_sep=', ';;
823
 
    esac
824
 
    eval enable_$ac_useropt=no ;;
825
 
 
826
 
  -docdir | --docdir | --docdi | --doc | --do)
827
 
    ac_prev=docdir ;;
828
 
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
829
 
    docdir=$ac_optarg ;;
830
 
 
831
 
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
832
 
    ac_prev=dvidir ;;
833
 
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
834
 
    dvidir=$ac_optarg ;;
835
 
 
836
 
  -enable-* | --enable-*)
837
 
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
838
 
    # Reject names that are not valid shell variable names.
839
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
840
 
      as_fn_error $? "invalid feature name: $ac_useropt"
841
 
    ac_useropt_orig=$ac_useropt
842
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
843
 
    case $ac_user_opts in
844
 
      *"
845
 
"enable_$ac_useropt"
846
 
"*) ;;
847
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
848
 
         ac_unrecognized_sep=', ';;
849
 
    esac
850
 
    eval enable_$ac_useropt=\$ac_optarg ;;
851
 
 
852
 
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
853
 
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
854
 
  | --exec | --exe | --ex)
855
 
    ac_prev=exec_prefix ;;
856
 
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
857
 
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
858
 
  | --exec=* | --exe=* | --ex=*)
859
 
    exec_prefix=$ac_optarg ;;
860
 
 
861
 
  -gas | --gas | --ga | --g)
862
 
    # Obsolete; use --with-gas.
863
 
    with_gas=yes ;;
864
 
 
865
 
  -help | --help | --hel | --he | -h)
866
 
    ac_init_help=long ;;
867
 
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
868
 
    ac_init_help=recursive ;;
869
 
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
870
 
    ac_init_help=short ;;
871
 
 
872
 
  -host | --host | --hos | --ho)
873
 
    ac_prev=host_alias ;;
874
 
  -host=* | --host=* | --hos=* | --ho=*)
875
 
    host_alias=$ac_optarg ;;
876
 
 
877
 
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
878
 
    ac_prev=htmldir ;;
879
 
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
880
 
  | --ht=*)
881
 
    htmldir=$ac_optarg ;;
882
 
 
883
 
  -includedir | --includedir | --includedi | --included | --include \
884
 
  | --includ | --inclu | --incl | --inc)
885
 
    ac_prev=includedir ;;
886
 
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
887
 
  | --includ=* | --inclu=* | --incl=* | --inc=*)
888
 
    includedir=$ac_optarg ;;
889
 
 
890
 
  -infodir | --infodir | --infodi | --infod | --info | --inf)
891
 
    ac_prev=infodir ;;
892
 
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
893
 
    infodir=$ac_optarg ;;
894
 
 
895
 
  -libdir | --libdir | --libdi | --libd)
896
 
    ac_prev=libdir ;;
897
 
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
898
 
    libdir=$ac_optarg ;;
899
 
 
900
 
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
901
 
  | --libexe | --libex | --libe)
902
 
    ac_prev=libexecdir ;;
903
 
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
904
 
  | --libexe=* | --libex=* | --libe=*)
905
 
    libexecdir=$ac_optarg ;;
906
 
 
907
 
  -localedir | --localedir | --localedi | --localed | --locale)
908
 
    ac_prev=localedir ;;
909
 
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
910
 
    localedir=$ac_optarg ;;
911
 
 
912
 
  -localstatedir | --localstatedir | --localstatedi | --localstated \
913
 
  | --localstate | --localstat | --localsta | --localst | --locals)
914
 
    ac_prev=localstatedir ;;
915
 
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
916
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
917
 
    localstatedir=$ac_optarg ;;
918
 
 
919
 
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
920
 
    ac_prev=mandir ;;
921
 
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
922
 
    mandir=$ac_optarg ;;
923
 
 
924
 
  -nfp | --nfp | --nf)
925
 
    # Obsolete; use --without-fp.
926
 
    with_fp=no ;;
927
 
 
928
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
929
 
  | --no-cr | --no-c | -n)
930
 
    no_create=yes ;;
931
 
 
932
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
933
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
934
 
    no_recursion=yes ;;
935
 
 
936
 
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
937
 
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
938
 
  | --oldin | --oldi | --old | --ol | --o)
939
 
    ac_prev=oldincludedir ;;
940
 
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
941
 
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
942
 
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
943
 
    oldincludedir=$ac_optarg ;;
944
 
 
945
 
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
946
 
    ac_prev=prefix ;;
947
 
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
948
 
    prefix=$ac_optarg ;;
949
 
 
950
 
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
951
 
  | --program-pre | --program-pr | --program-p)
952
 
    ac_prev=program_prefix ;;
953
 
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
954
 
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
955
 
    program_prefix=$ac_optarg ;;
956
 
 
957
 
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
958
 
  | --program-suf | --program-su | --program-s)
959
 
    ac_prev=program_suffix ;;
960
 
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
961
 
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
962
 
    program_suffix=$ac_optarg ;;
963
 
 
964
 
  -program-transform-name | --program-transform-name \
965
 
  | --program-transform-nam | --program-transform-na \
966
 
  | --program-transform-n | --program-transform- \
967
 
  | --program-transform | --program-transfor \
968
 
  | --program-transfo | --program-transf \
969
 
  | --program-trans | --program-tran \
970
 
  | --progr-tra | --program-tr | --program-t)
971
 
    ac_prev=program_transform_name ;;
972
 
  -program-transform-name=* | --program-transform-name=* \
973
 
  | --program-transform-nam=* | --program-transform-na=* \
974
 
  | --program-transform-n=* | --program-transform-=* \
975
 
  | --program-transform=* | --program-transfor=* \
976
 
  | --program-transfo=* | --program-transf=* \
977
 
  | --program-trans=* | --program-tran=* \
978
 
  | --progr-tra=* | --program-tr=* | --program-t=*)
979
 
    program_transform_name=$ac_optarg ;;
980
 
 
981
 
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
982
 
    ac_prev=pdfdir ;;
983
 
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
984
 
    pdfdir=$ac_optarg ;;
985
 
 
986
 
  -psdir | --psdir | --psdi | --psd | --ps)
987
 
    ac_prev=psdir ;;
988
 
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
989
 
    psdir=$ac_optarg ;;
990
 
 
991
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
992
 
  | -silent | --silent | --silen | --sile | --sil)
993
 
    silent=yes ;;
994
 
 
995
 
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
996
 
    ac_prev=sbindir ;;
997
 
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
998
 
  | --sbi=* | --sb=*)
999
 
    sbindir=$ac_optarg ;;
1000
 
 
1001
 
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1002
 
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1003
 
  | --sharedst | --shareds | --shared | --share | --shar \
1004
 
  | --sha | --sh)
1005
 
    ac_prev=sharedstatedir ;;
1006
 
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1007
 
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1008
 
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1009
 
  | --sha=* | --sh=*)
1010
 
    sharedstatedir=$ac_optarg ;;
1011
 
 
1012
 
  -site | --site | --sit)
1013
 
    ac_prev=site ;;
1014
 
  -site=* | --site=* | --sit=*)
1015
 
    site=$ac_optarg ;;
1016
 
 
1017
 
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1018
 
    ac_prev=srcdir ;;
1019
 
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1020
 
    srcdir=$ac_optarg ;;
1021
 
 
1022
 
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1023
 
  | --syscon | --sysco | --sysc | --sys | --sy)
1024
 
    ac_prev=sysconfdir ;;
1025
 
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1026
 
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1027
 
    sysconfdir=$ac_optarg ;;
1028
 
 
1029
 
  -target | --target | --targe | --targ | --tar | --ta | --t)
1030
 
    ac_prev=target_alias ;;
1031
 
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1032
 
    target_alias=$ac_optarg ;;
1033
 
 
1034
 
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1035
 
    verbose=yes ;;
1036
 
 
1037
 
  -version | --version | --versio | --versi | --vers | -V)
1038
 
    ac_init_version=: ;;
1039
 
 
1040
 
  -with-* | --with-*)
1041
 
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1042
 
    # Reject names that are not valid shell variable names.
1043
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044
 
      as_fn_error $? "invalid package name: $ac_useropt"
1045
 
    ac_useropt_orig=$ac_useropt
1046
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047
 
    case $ac_user_opts in
1048
 
      *"
1049
 
"with_$ac_useropt"
1050
 
"*) ;;
1051
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1052
 
         ac_unrecognized_sep=', ';;
1053
 
    esac
1054
 
    eval with_$ac_useropt=\$ac_optarg ;;
1055
 
 
1056
 
  -without-* | --without-*)
1057
 
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1058
 
    # Reject names that are not valid shell variable names.
1059
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060
 
      as_fn_error $? "invalid package name: $ac_useropt"
1061
 
    ac_useropt_orig=$ac_useropt
1062
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063
 
    case $ac_user_opts in
1064
 
      *"
1065
 
"with_$ac_useropt"
1066
 
"*) ;;
1067
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1068
 
         ac_unrecognized_sep=', ';;
1069
 
    esac
1070
 
    eval with_$ac_useropt=no ;;
1071
 
 
1072
 
  --x)
1073
 
    # Obsolete; use --with-x.
1074
 
    with_x=yes ;;
1075
 
 
1076
 
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1077
 
  | --x-incl | --x-inc | --x-in | --x-i)
1078
 
    ac_prev=x_includes ;;
1079
 
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1080
 
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1081
 
    x_includes=$ac_optarg ;;
1082
 
 
1083
 
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1084
 
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1085
 
    ac_prev=x_libraries ;;
1086
 
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1087
 
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1088
 
    x_libraries=$ac_optarg ;;
1089
 
 
1090
 
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1091
 
Try \`$0 --help' for more information"
1092
 
    ;;
1093
 
 
1094
 
  *=*)
1095
 
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1096
 
    # Reject names that are not valid shell variable names.
1097
 
    case $ac_envvar in #(
1098
 
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1099
 
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1100
 
    esac
1101
 
    eval $ac_envvar=\$ac_optarg
1102
 
    export $ac_envvar ;;
1103
 
 
1104
 
  *)
1105
 
    # FIXME: should be removed in autoconf 3.0.
1106
 
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1107
 
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1108
 
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1109
 
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1110
 
    ;;
1111
 
 
1112
 
  esac
1113
 
done
1114
 
 
1115
 
if test -n "$ac_prev"; then
1116
 
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1117
 
  as_fn_error $? "missing argument to $ac_option"
1118
 
fi
1119
 
 
1120
 
if test -n "$ac_unrecognized_opts"; then
1121
 
  case $enable_option_checking in
1122
 
    no) ;;
1123
 
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1124
 
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1125
 
  esac
1126
 
fi
1127
 
 
1128
 
# Check all directory arguments for consistency.
1129
 
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1130
 
                datadir sysconfdir sharedstatedir localstatedir includedir \
1131
 
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1132
 
                libdir localedir mandir
1133
 
do
1134
 
  eval ac_val=\$$ac_var
1135
 
  # Remove trailing slashes.
1136
 
  case $ac_val in
1137
 
    */ )
1138
 
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1139
 
      eval $ac_var=\$ac_val;;
1140
 
  esac
1141
 
  # Be sure to have absolute directory names.
1142
 
  case $ac_val in
1143
 
    [\\/$]* | ?:[\\/]* )  continue;;
1144
 
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1145
 
  esac
1146
 
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1147
 
done
1148
 
 
1149
 
# There might be people who depend on the old broken behavior: `$host'
1150
 
# used to hold the argument of --host etc.
1151
 
# FIXME: To remove some day.
1152
 
build=$build_alias
1153
 
host=$host_alias
1154
 
target=$target_alias
1155
 
 
1156
 
# FIXME: To remove some day.
1157
 
if test "x$host_alias" != x; then
1158
 
  if test "x$build_alias" = x; then
1159
 
    cross_compiling=maybe
1160
 
  elif test "x$build_alias" != "x$host_alias"; then
1161
 
    cross_compiling=yes
1162
 
  fi
1163
 
fi
1164
 
 
1165
 
ac_tool_prefix=
1166
 
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1167
 
 
1168
 
test "$silent" = yes && exec 6>/dev/null
1169
 
 
1170
 
 
1171
 
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1172
 
ac_ls_di=`ls -di .` &&
1173
 
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1174
 
  as_fn_error $? "working directory cannot be determined"
1175
 
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1176
 
  as_fn_error $? "pwd does not report name of working directory"
1177
 
 
1178
 
 
1179
 
# Find the source files, if location was not specified.
1180
 
if test -z "$srcdir"; then
1181
 
  ac_srcdir_defaulted=yes
1182
 
  # Try the directory containing this script, then the parent directory.
1183
 
  ac_confdir=`$as_dirname -- "$as_myself" ||
1184
 
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1185
 
         X"$as_myself" : 'X\(//\)[^/]' \| \
1186
 
         X"$as_myself" : 'X\(//\)$' \| \
1187
 
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1188
 
$as_echo X"$as_myself" |
1189
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1190
 
            s//\1/
1191
 
            q
1192
 
          }
1193
 
          /^X\(\/\/\)[^/].*/{
1194
 
            s//\1/
1195
 
            q
1196
 
          }
1197
 
          /^X\(\/\/\)$/{
1198
 
            s//\1/
1199
 
            q
1200
 
          }
1201
 
          /^X\(\/\).*/{
1202
 
            s//\1/
1203
 
            q
1204
 
          }
1205
 
          s/.*/./; q'`
1206
 
  srcdir=$ac_confdir
1207
 
  if test ! -r "$srcdir/$ac_unique_file"; then
1208
 
    srcdir=..
1209
 
  fi
1210
 
else
1211
 
  ac_srcdir_defaulted=no
1212
 
fi
1213
 
if test ! -r "$srcdir/$ac_unique_file"; then
1214
 
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1215
 
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1216
 
fi
1217
 
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1218
 
ac_abs_confdir=`(
1219
 
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1220
 
        pwd)`
1221
 
# When building in place, set srcdir=.
1222
 
if test "$ac_abs_confdir" = "$ac_pwd"; then
1223
 
  srcdir=.
1224
 
fi
1225
 
# Remove unnecessary trailing slashes from srcdir.
1226
 
# Double slashes in file names in object file debugging info
1227
 
# mess up M-x gdb in Emacs.
1228
 
case $srcdir in
1229
 
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1230
 
esac
1231
 
for ac_var in $ac_precious_vars; do
1232
 
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1233
 
  eval ac_env_${ac_var}_value=\$${ac_var}
1234
 
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1235
 
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1236
 
done
1237
 
 
1238
 
#
1239
 
# Report the --help message.
1240
 
#
1241
 
if test "$ac_init_help" = "long"; then
1242
 
  # Omit some internal or obsolete options to make the list less imposing.
1243
 
  # This message is too long to be a string in the A/UX 3.1 sh.
1244
 
  cat <<_ACEOF
1245
 
\`configure' configures this package to adapt to many kinds of systems.
1246
 
 
1247
 
Usage: $0 [OPTION]... [VAR=VALUE]...
1248
 
 
1249
 
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1250
 
VAR=VALUE.  See below for descriptions of some of the useful variables.
1251
 
 
1252
 
Defaults for the options are specified in brackets.
1253
 
 
1254
 
Configuration:
1255
 
  -h, --help              display this help and exit
1256
 
      --help=short        display options specific to this package
1257
 
      --help=recursive    display the short help of all the included packages
1258
 
  -V, --version           display version information and exit
1259
 
  -q, --quiet, --silent   do not print \`checking ...' messages
1260
 
      --cache-file=FILE   cache test results in FILE [disabled]
1261
 
  -C, --config-cache      alias for \`--cache-file=config.cache'
1262
 
  -n, --no-create         do not create output files
1263
 
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1264
 
 
1265
 
Installation directories:
1266
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
1267
 
                          @<:@@S|@ac_default_prefix@:>@
1268
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1269
 
                          @<:@PREFIX@:>@
1270
 
 
1271
 
By default, \`make install' will install all the files in
1272
 
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1273
 
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1274
 
for instance \`--prefix=\$HOME'.
1275
 
 
1276
 
For better control, use the options below.
1277
 
 
1278
 
Fine tuning of the installation directories:
1279
 
  --bindir=DIR            user executables [EPREFIX/bin]
1280
 
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1281
 
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1282
 
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1283
 
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1284
 
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1285
 
  --libdir=DIR            object code libraries [EPREFIX/lib]
1286
 
  --includedir=DIR        C header files [PREFIX/include]
1287
 
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1288
 
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1289
 
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1290
 
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1291
 
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1292
 
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1293
 
  --docdir=DIR            documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
1294
 
  --htmldir=DIR           html documentation [DOCDIR]
1295
 
  --dvidir=DIR            dvi documentation [DOCDIR]
1296
 
  --pdfdir=DIR            pdf documentation [DOCDIR]
1297
 
  --psdir=DIR             ps documentation [DOCDIR]
1298
 
_ACEOF
1299
 
 
1300
 
  cat <<\_ACEOF
1301
 
_ACEOF
1302
 
fi
1303
 
 
1304
 
if test -n "$ac_init_help"; then
1305
 
 
1306
 
  cat <<\_ACEOF
1307
 
 
1308
 
Optional Features:
1309
 
  --disable-option-checking  ignore unrecognized --enable/--with options
1310
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1311
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1312
 
  --disable-socket-dir    disable system wide socket-dir and use ~/.screen instead
1313
 
  --enable-pam            enable PAM support
1314
 
  --enable-use-locale         use localized month/day names
1315
 
  --enable-telnet         enable builtin telnet
1316
 
  --enable-colors256      enable support for 256 colors
1317
 
  --enable-rxvt_osc       enable support for rxvt OSC codes
1318
 
 
1319
 
Optional Packages:
1320
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1321
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1322
 
  --with-socket-dir=path  where to put the per-user sockets
1323
 
  --with-pty-mode=mode    default mode for ptys
1324
 
  --with-pty-group=group  default group for ptys
1325
 
  --with-sys-screenrc=path to the global screenrc file
1326
 
 
1327
 
Some influential environment variables:
1328
 
  CC          C compiler command
1329
 
  CFLAGS      C compiler flags
1330
 
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1331
 
              nonstandard directory <lib dir>
1332
 
  LIBS        libraries to pass to the linker, e.g. -l<library>
1333
 
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1334
 
              you have headers in a nonstandard directory <include dir>
1335
 
  CPP         C preprocessor
1336
 
 
1337
 
Use these variables to override the choices made by `configure' or to help
1338
 
it to find libraries and programs with nonstandard names/locations.
1339
 
 
1340
 
Report bugs to the package provider.
1341
 
_ACEOF
1342
 
ac_status=$?
1343
 
fi
1344
 
 
1345
 
if test "$ac_init_help" = "recursive"; then
1346
 
  # If there are subdirs, report their specific --help.
1347
 
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1348
 
    test -d "$ac_dir" ||
1349
 
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1350
 
      continue
1351
 
    ac_builddir=.
1352
 
 
1353
 
case "$ac_dir" in
1354
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1355
 
*)
1356
 
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1357
 
  # A ".." for each directory in $ac_dir_suffix.
1358
 
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1359
 
  case $ac_top_builddir_sub in
1360
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1361
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1362
 
  esac ;;
1363
 
esac
1364
 
ac_abs_top_builddir=$ac_pwd
1365
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1366
 
# for backward compatibility:
1367
 
ac_top_builddir=$ac_top_build_prefix
1368
 
 
1369
 
case $srcdir in
1370
 
  .)  # We are building in place.
1371
 
    ac_srcdir=.
1372
 
    ac_top_srcdir=$ac_top_builddir_sub
1373
 
    ac_abs_top_srcdir=$ac_pwd ;;
1374
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
1375
 
    ac_srcdir=$srcdir$ac_dir_suffix;
1376
 
    ac_top_srcdir=$srcdir
1377
 
    ac_abs_top_srcdir=$srcdir ;;
1378
 
  *) # Relative name.
1379
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1380
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1381
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1382
 
esac
1383
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1384
 
 
1385
 
    cd "$ac_dir" || { ac_status=$?; continue; }
1386
 
    # Check for guested configure.
1387
 
    if test -f "$ac_srcdir/configure.gnu"; then
1388
 
      echo &&
1389
 
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1390
 
    elif test -f "$ac_srcdir/configure"; then
1391
 
      echo &&
1392
 
      $SHELL "$ac_srcdir/configure" --help=recursive
1393
 
    else
1394
 
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1395
 
    fi || ac_status=$?
1396
 
    cd "$ac_pwd" || { ac_status=$?; break; }
1397
 
  done
1398
 
fi
1399
 
 
1400
 
test -n "$ac_init_help" && exit $ac_status
1401
 
if $ac_init_version; then
1402
 
  cat <<\_ACEOF
1403
 
configure
1404
 
generated by GNU Autoconf 2.69
1405
 
 
1406
 
Copyright (C) 2012 Free Software Foundation, Inc.
1407
 
This configure script is free software; the Free Software Foundation
1408
 
gives unlimited permission to copy, distribute and modify it.
1409
 
_ACEOF
1410
 
  exit
1411
 
fi
1412
 
 
1413
 
## ------------------------ ##
1414
 
## Autoconf initialization. ##
1415
 
## ------------------------ ##
1416
 
 
1417
 
@%:@ ac_fn_c_try_compile LINENO
1418
 
@%:@ --------------------------
1419
 
@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1420
 
ac_fn_c_try_compile ()
1421
 
{
1422
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1423
 
  rm -f conftest.$ac_objext
1424
 
  if { { ac_try="$ac_compile"
1425
 
case "(($ac_try" in
1426
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1427
 
  *) ac_try_echo=$ac_try;;
1428
 
esac
1429
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1430
 
$as_echo "$ac_try_echo"; } >&5
1431
 
  (eval "$ac_compile") 2>conftest.err
1432
 
  ac_status=$?
1433
 
  if test -s conftest.err; then
1434
 
    grep -v '^ *+' conftest.err >conftest.er1
1435
 
    cat conftest.er1 >&5
1436
 
    mv -f conftest.er1 conftest.err
1437
 
  fi
1438
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1439
 
  test $ac_status = 0; } && {
1440
 
         test -z "$ac_c_werror_flag" ||
1441
 
         test ! -s conftest.err
1442
 
       } && test -s conftest.$ac_objext; then :
1443
 
  ac_retval=0
1444
 
else
1445
 
  $as_echo "$as_me: failed program was:" >&5
1446
 
sed 's/^/| /' conftest.$ac_ext >&5
1447
 
 
1448
 
        ac_retval=1
1449
 
fi
1450
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1451
 
  as_fn_set_status $ac_retval
1452
 
 
1453
 
} @%:@ ac_fn_c_try_compile
1454
 
 
1455
 
@%:@ ac_fn_c_try_cpp LINENO
1456
 
@%:@ ----------------------
1457
 
@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1458
 
ac_fn_c_try_cpp ()
1459
 
{
1460
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1461
 
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1462
 
case "(($ac_try" in
1463
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1464
 
  *) ac_try_echo=$ac_try;;
1465
 
esac
1466
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1467
 
$as_echo "$ac_try_echo"; } >&5
1468
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1469
 
  ac_status=$?
1470
 
  if test -s conftest.err; then
1471
 
    grep -v '^ *+' conftest.err >conftest.er1
1472
 
    cat conftest.er1 >&5
1473
 
    mv -f conftest.er1 conftest.err
1474
 
  fi
1475
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1476
 
  test $ac_status = 0; } > conftest.i && {
1477
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1478
 
         test ! -s conftest.err
1479
 
       }; then :
1480
 
  ac_retval=0
1481
 
else
1482
 
  $as_echo "$as_me: failed program was:" >&5
1483
 
sed 's/^/| /' conftest.$ac_ext >&5
1484
 
 
1485
 
    ac_retval=1
1486
 
fi
1487
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1488
 
  as_fn_set_status $ac_retval
1489
 
 
1490
 
} @%:@ ac_fn_c_try_cpp
1491
 
 
1492
 
@%:@ ac_fn_c_try_link LINENO
1493
 
@%:@ -----------------------
1494
 
@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1495
 
ac_fn_c_try_link ()
1496
 
{
1497
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498
 
  rm -f conftest.$ac_objext conftest$ac_exeext
1499
 
  if { { ac_try="$ac_link"
1500
 
case "(($ac_try" in
1501
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502
 
  *) ac_try_echo=$ac_try;;
1503
 
esac
1504
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505
 
$as_echo "$ac_try_echo"; } >&5
1506
 
  (eval "$ac_link") 2>conftest.err
1507
 
  ac_status=$?
1508
 
  if test -s conftest.err; then
1509
 
    grep -v '^ *+' conftest.err >conftest.er1
1510
 
    cat conftest.er1 >&5
1511
 
    mv -f conftest.er1 conftest.err
1512
 
  fi
1513
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514
 
  test $ac_status = 0; } && {
1515
 
         test -z "$ac_c_werror_flag" ||
1516
 
         test ! -s conftest.err
1517
 
       } && test -s conftest$ac_exeext && {
1518
 
         test "$cross_compiling" = yes ||
1519
 
         test -x conftest$ac_exeext
1520
 
       }; then :
1521
 
  ac_retval=0
1522
 
else
1523
 
  $as_echo "$as_me: failed program was:" >&5
1524
 
sed 's/^/| /' conftest.$ac_ext >&5
1525
 
 
1526
 
        ac_retval=1
1527
 
fi
1528
 
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1529
 
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1530
 
  # interfere with the next link command; also delete a directory that is
1531
 
  # left behind by Apple's compiler.  We do this before executing the actions.
1532
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1533
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1534
 
  as_fn_set_status $ac_retval
1535
 
 
1536
 
} @%:@ ac_fn_c_try_link
1537
 
 
1538
 
@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1539
 
@%:@ -------------------------------------------------------
1540
 
@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1541
 
@%:@ the include files in INCLUDES and setting the cache variable VAR
1542
 
@%:@ accordingly.
1543
 
ac_fn_c_check_header_mongrel ()
1544
 
{
1545
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546
 
  if eval \${$3+:} false; then :
1547
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1548
 
$as_echo_n "checking for $2... " >&6; }
1549
 
if eval \${$3+:} false; then :
1550
 
  $as_echo_n "(cached) " >&6
1551
 
fi
1552
 
eval ac_res=\$$3
1553
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1554
 
$as_echo "$ac_res" >&6; }
1555
 
else
1556
 
  # Is the header compilable?
1557
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1558
 
$as_echo_n "checking $2 usability... " >&6; }
1559
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1560
 
/* end confdefs.h.  */
1561
 
$4
1562
 
@%:@include <$2>
1563
 
_ACEOF
1564
 
if ac_fn_c_try_compile "$LINENO"; then :
1565
 
  ac_header_compiler=yes
1566
 
else
1567
 
  ac_header_compiler=no
1568
 
fi
1569
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1570
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1571
 
$as_echo "$ac_header_compiler" >&6; }
1572
 
 
1573
 
# Is the header present?
1574
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1575
 
$as_echo_n "checking $2 presence... " >&6; }
1576
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1577
 
/* end confdefs.h.  */
1578
 
@%:@include <$2>
1579
 
_ACEOF
1580
 
if ac_fn_c_try_cpp "$LINENO"; then :
1581
 
  ac_header_preproc=yes
1582
 
else
1583
 
  ac_header_preproc=no
1584
 
fi
1585
 
rm -f conftest.err conftest.i conftest.$ac_ext
1586
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1587
 
$as_echo "$ac_header_preproc" >&6; }
1588
 
 
1589
 
# So?  What about this header?
1590
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1591
 
  yes:no: )
1592
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1593
 
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1594
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1595
 
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1596
 
    ;;
1597
 
  no:yes:* )
1598
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1599
 
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1600
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1601
 
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1602
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1603
 
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1604
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1605
 
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1606
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1607
 
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1608
 
    ;;
1609
 
esac
1610
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1611
 
$as_echo_n "checking for $2... " >&6; }
1612
 
if eval \${$3+:} false; then :
1613
 
  $as_echo_n "(cached) " >&6
1614
 
else
1615
 
  eval "$3=\$ac_header_compiler"
1616
 
fi
1617
 
eval ac_res=\$$3
1618
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1619
 
$as_echo "$ac_res" >&6; }
1620
 
fi
1621
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622
 
 
1623
 
} @%:@ ac_fn_c_check_header_mongrel
1624
 
 
1625
 
@%:@ ac_fn_c_try_run LINENO
1626
 
@%:@ ----------------------
1627
 
@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1628
 
@%:@ that executables *can* be run.
1629
 
ac_fn_c_try_run ()
1630
 
{
1631
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632
 
  if { { ac_try="$ac_link"
1633
 
case "(($ac_try" in
1634
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635
 
  *) ac_try_echo=$ac_try;;
1636
 
esac
1637
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638
 
$as_echo "$ac_try_echo"; } >&5
1639
 
  (eval "$ac_link") 2>&5
1640
 
  ac_status=$?
1641
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642
 
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1643
 
  { { case "(($ac_try" in
1644
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645
 
  *) ac_try_echo=$ac_try;;
1646
 
esac
1647
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648
 
$as_echo "$ac_try_echo"; } >&5
1649
 
  (eval "$ac_try") 2>&5
1650
 
  ac_status=$?
1651
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652
 
  test $ac_status = 0; }; }; then :
1653
 
  ac_retval=0
1654
 
else
1655
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
1656
 
       $as_echo "$as_me: failed program was:" >&5
1657
 
sed 's/^/| /' conftest.$ac_ext >&5
1658
 
 
1659
 
       ac_retval=$ac_status
1660
 
fi
1661
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1662
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663
 
  as_fn_set_status $ac_retval
1664
 
 
1665
 
} @%:@ ac_fn_c_try_run
1666
 
 
1667
 
@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1668
 
@%:@ -------------------------------------------------------
1669
 
@%:@ Tests whether HEADER exists and can be compiled using the include files in
1670
 
@%:@ INCLUDES, setting the cache variable VAR accordingly.
1671
 
ac_fn_c_check_header_compile ()
1672
 
{
1673
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675
 
$as_echo_n "checking for $2... " >&6; }
1676
 
if eval \${$3+:} false; then :
1677
 
  $as_echo_n "(cached) " >&6
1678
 
else
1679
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1680
 
/* end confdefs.h.  */
1681
 
$4
1682
 
@%:@include <$2>
1683
 
_ACEOF
1684
 
if ac_fn_c_try_compile "$LINENO"; then :
1685
 
  eval "$3=yes"
1686
 
else
1687
 
  eval "$3=no"
1688
 
fi
1689
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1690
 
fi
1691
 
eval ac_res=\$$3
1692
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1693
 
$as_echo "$ac_res" >&6; }
1694
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695
 
 
1696
 
} @%:@ ac_fn_c_check_header_compile
1697
 
 
1698
 
@%:@ ac_fn_c_check_func LINENO FUNC VAR
1699
 
@%:@ ----------------------------------
1700
 
@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1701
 
ac_fn_c_check_func ()
1702
 
{
1703
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705
 
$as_echo_n "checking for $2... " >&6; }
1706
 
if eval \${$3+:} false; then :
1707
 
  $as_echo_n "(cached) " >&6
1708
 
else
1709
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710
 
/* end confdefs.h.  */
1711
 
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1712
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1713
 
#define $2 innocuous_$2
1714
 
 
1715
 
/* System header to define __stub macros and hopefully few prototypes,
1716
 
    which can conflict with char $2 (); below.
1717
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1718
 
    <limits.h> exists even on freestanding compilers.  */
1719
 
 
1720
 
#ifdef __STDC__
1721
 
# include <limits.h>
1722
 
#else
1723
 
# include <assert.h>
1724
 
#endif
1725
 
 
1726
 
#undef $2
1727
 
 
1728
 
/* Override any GCC internal prototype to avoid an error.
1729
 
   Use char because int might match the return type of a GCC
1730
 
   builtin and then its argument prototype would still apply.  */
1731
 
#ifdef __cplusplus
1732
 
extern "C"
1733
 
#endif
1734
 
char $2 ();
1735
 
/* The GNU C library defines this for functions which it implements
1736
 
    to always fail with ENOSYS.  Some functions are actually named
1737
 
    something starting with __ and the normal name is an alias.  */
1738
 
#if defined __stub_$2 || defined __stub___$2
1739
 
choke me
1740
 
#endif
1741
 
 
1742
 
int
1743
 
main ()
1744
 
{
1745
 
return $2 ();
1746
 
  ;
1747
 
  return 0;
1748
 
}
1749
 
_ACEOF
1750
 
if ac_fn_c_try_link "$LINENO"; then :
1751
 
  eval "$3=yes"
1752
 
else
1753
 
  eval "$3=no"
1754
 
fi
1755
 
rm -f core conftest.err conftest.$ac_objext \
1756
 
    conftest$ac_exeext conftest.$ac_ext
1757
 
fi
1758
 
eval ac_res=\$$3
1759
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1760
 
$as_echo "$ac_res" >&6; }
1761
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762
 
 
1763
 
} @%:@ ac_fn_c_check_func
1764
 
cat >config.log <<_ACEOF
1765
 
This file contains any messages produced by compilers while
1766
 
running configure, to aid debugging if configure makes a mistake.
1767
 
 
1768
 
It was created by $as_me, which was
1769
 
generated by GNU Autoconf 2.69.  Invocation command line was
1770
 
 
1771
 
  $ $0 $@
1772
 
 
1773
 
_ACEOF
1774
 
exec 5>>config.log
1775
 
{
1776
 
cat <<_ASUNAME
1777
 
## --------- ##
1778
 
## Platform. ##
1779
 
## --------- ##
1780
 
 
1781
 
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1782
 
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1783
 
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1784
 
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1785
 
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1786
 
 
1787
 
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1788
 
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1789
 
 
1790
 
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1791
 
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1792
 
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1793
 
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1794
 
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1795
 
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1796
 
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1797
 
 
1798
 
_ASUNAME
1799
 
 
1800
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1801
 
for as_dir in $PATH
1802
 
do
1803
 
  IFS=$as_save_IFS
1804
 
  test -z "$as_dir" && as_dir=.
1805
 
    $as_echo "PATH: $as_dir"
1806
 
  done
1807
 
IFS=$as_save_IFS
1808
 
 
1809
 
} >&5
1810
 
 
1811
 
cat >&5 <<_ACEOF
1812
 
 
1813
 
 
1814
 
## ----------- ##
1815
 
## Core tests. ##
1816
 
## ----------- ##
1817
 
 
1818
 
_ACEOF
1819
 
 
1820
 
 
1821
 
# Keep a trace of the command line.
1822
 
# Strip out --no-create and --no-recursion so they do not pile up.
1823
 
# Strip out --silent because we don't want to record it for future runs.
1824
 
# Also quote any args containing shell meta-characters.
1825
 
# Make two passes to allow for proper duplicate-argument suppression.
1826
 
ac_configure_args=
1827
 
ac_configure_args0=
1828
 
ac_configure_args1=
1829
 
ac_must_keep_next=false
1830
 
for ac_pass in 1 2
1831
 
do
1832
 
  for ac_arg
1833
 
  do
1834
 
    case $ac_arg in
1835
 
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1836
 
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1837
 
    | -silent | --silent | --silen | --sile | --sil)
1838
 
      continue ;;
1839
 
    *\'*)
1840
 
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1841
 
    esac
1842
 
    case $ac_pass in
1843
 
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1844
 
    2)
1845
 
      as_fn_append ac_configure_args1 " '$ac_arg'"
1846
 
      if test $ac_must_keep_next = true; then
1847
 
        ac_must_keep_next=false # Got value, back to normal.
1848
 
      else
1849
 
        case $ac_arg in
1850
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
1851
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1852
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1853
 
          | -with-* | --with-* | -without-* | --without-* | --x)
1854
 
            case "$ac_configure_args0 " in
1855
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1856
 
            esac
1857
 
            ;;
1858
 
          -* ) ac_must_keep_next=true ;;
1859
 
        esac
1860
 
      fi
1861
 
      as_fn_append ac_configure_args " '$ac_arg'"
1862
 
      ;;
1863
 
    esac
1864
 
  done
1865
 
done
1866
 
{ ac_configure_args0=; unset ac_configure_args0;}
1867
 
{ ac_configure_args1=; unset ac_configure_args1;}
1868
 
 
1869
 
# When interrupted or exit'd, cleanup temporary files, and complete
1870
 
# config.log.  We remove comments because anyway the quotes in there
1871
 
# would cause problems or look ugly.
1872
 
# WARNING: Use '\'' to represent an apostrophe within the trap.
1873
 
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1874
 
trap 'exit_status=$?
1875
 
  # Save into config.log some information that might help in debugging.
1876
 
  {
1877
 
    echo
1878
 
 
1879
 
    $as_echo "## ---------------- ##
1880
 
## Cache variables. ##
1881
 
## ---------------- ##"
1882
 
    echo
1883
 
    # The following way of writing the cache mishandles newlines in values,
1884
 
(
1885
 
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1886
 
    eval ac_val=\$$ac_var
1887
 
    case $ac_val in #(
1888
 
    *${as_nl}*)
1889
 
      case $ac_var in #(
1890
 
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1891
 
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1892
 
      esac
1893
 
      case $ac_var in #(
1894
 
      _ | IFS | as_nl) ;; #(
1895
 
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1896
 
      *) { eval $ac_var=; unset $ac_var;} ;;
1897
 
      esac ;;
1898
 
    esac
1899
 
  done
1900
 
  (set) 2>&1 |
1901
 
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1902
 
    *${as_nl}ac_space=\ *)
1903
 
      sed -n \
1904
 
        "s/'\''/'\''\\\\'\'''\''/g;
1905
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1906
 
      ;; #(
1907
 
    *)
1908
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1909
 
      ;;
1910
 
    esac |
1911
 
    sort
1912
 
)
1913
 
    echo
1914
 
 
1915
 
    $as_echo "## ----------------- ##
1916
 
## Output variables. ##
1917
 
## ----------------- ##"
1918
 
    echo
1919
 
    for ac_var in $ac_subst_vars
1920
 
    do
1921
 
      eval ac_val=\$$ac_var
1922
 
      case $ac_val in
1923
 
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1924
 
      esac
1925
 
      $as_echo "$ac_var='\''$ac_val'\''"
1926
 
    done | sort
1927
 
    echo
1928
 
 
1929
 
    if test -n "$ac_subst_files"; then
1930
 
      $as_echo "## ------------------- ##
1931
 
## File substitutions. ##
1932
 
## ------------------- ##"
1933
 
      echo
1934
 
      for ac_var in $ac_subst_files
1935
 
      do
1936
 
        eval ac_val=\$$ac_var
1937
 
        case $ac_val in
1938
 
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1939
 
        esac
1940
 
        $as_echo "$ac_var='\''$ac_val'\''"
1941
 
      done | sort
1942
 
      echo
1943
 
    fi
1944
 
 
1945
 
    if test -s confdefs.h; then
1946
 
      $as_echo "## ----------- ##
1947
 
## confdefs.h. ##
1948
 
## ----------- ##"
1949
 
      echo
1950
 
      cat confdefs.h
1951
 
      echo
1952
 
    fi
1953
 
    test "$ac_signal" != 0 &&
1954
 
      $as_echo "$as_me: caught signal $ac_signal"
1955
 
    $as_echo "$as_me: exit $exit_status"
1956
 
  } >&5
1957
 
  rm -f core *.core core.conftest.* &&
1958
 
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1959
 
    exit $exit_status
1960
 
' 0
1961
 
for ac_signal in 1 2 13 15; do
1962
 
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1963
 
done
1964
 
ac_signal=0
1965
 
 
1966
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1967
 
rm -f -r conftest* confdefs.h
1968
 
 
1969
 
$as_echo "/* confdefs.h */" > confdefs.h
1970
 
 
1971
 
# Predefined preprocessor variables.
1972
 
 
1973
 
cat >>confdefs.h <<_ACEOF
1974
 
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1975
 
_ACEOF
1976
 
 
1977
 
cat >>confdefs.h <<_ACEOF
1978
 
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1979
 
_ACEOF
1980
 
 
1981
 
cat >>confdefs.h <<_ACEOF
1982
 
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1983
 
_ACEOF
1984
 
 
1985
 
cat >>confdefs.h <<_ACEOF
1986
 
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1987
 
_ACEOF
1988
 
 
1989
 
cat >>confdefs.h <<_ACEOF
1990
 
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1991
 
_ACEOF
1992
 
 
1993
 
cat >>confdefs.h <<_ACEOF
1994
 
@%:@define PACKAGE_URL "$PACKAGE_URL"
1995
 
_ACEOF
1996
 
 
1997
 
 
1998
 
# Let the site file select an alternate cache file if it wants to.
1999
 
# Prefer an explicitly selected file to automatically selected ones.
2000
 
ac_site_file1=NONE
2001
 
ac_site_file2=NONE
2002
 
if test -n "$CONFIG_SITE"; then
2003
 
  # We do not want a PATH search for config.site.
2004
 
  case $CONFIG_SITE in @%:@((
2005
 
    -*)  ac_site_file1=./$CONFIG_SITE;;
2006
 
    */*) ac_site_file1=$CONFIG_SITE;;
2007
 
    *)   ac_site_file1=./$CONFIG_SITE;;
2008
 
  esac
2009
 
elif test "x$prefix" != xNONE; then
2010
 
  ac_site_file1=$prefix/share/config.site
2011
 
  ac_site_file2=$prefix/etc/config.site
2012
 
else
2013
 
  ac_site_file1=$ac_default_prefix/share/config.site
2014
 
  ac_site_file2=$ac_default_prefix/etc/config.site
2015
 
fi
2016
 
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2017
 
do
2018
 
  test "x$ac_site_file" = xNONE && continue
2019
 
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2020
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2021
 
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2022
 
    sed 's/^/| /' "$ac_site_file" >&5
2023
 
    . "$ac_site_file" \
2024
 
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2025
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2026
 
as_fn_error $? "failed to load site script $ac_site_file
2027
 
See \`config.log' for more details" "$LINENO" 5; }
2028
 
  fi
2029
 
done
2030
 
 
2031
 
if test -r "$cache_file"; then
2032
 
  # Some versions of bash will fail to source /dev/null (special files
2033
 
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2034
 
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2035
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2036
 
$as_echo "$as_me: loading cache $cache_file" >&6;}
2037
 
    case $cache_file in
2038
 
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2039
 
      *)                      . "./$cache_file";;
2040
 
    esac
2041
 
  fi
2042
 
else
2043
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2044
 
$as_echo "$as_me: creating cache $cache_file" >&6;}
2045
 
  >$cache_file
2046
 
fi
2047
 
 
2048
 
# Check that the precious variables saved in the cache have kept the same
2049
 
# value.
2050
 
ac_cache_corrupted=false
2051
 
for ac_var in $ac_precious_vars; do
2052
 
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2053
 
  eval ac_new_set=\$ac_env_${ac_var}_set
2054
 
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2055
 
  eval ac_new_val=\$ac_env_${ac_var}_value
2056
 
  case $ac_old_set,$ac_new_set in
2057
 
    set,)
2058
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2059
 
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2060
 
      ac_cache_corrupted=: ;;
2061
 
    ,set)
2062
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2063
 
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2064
 
      ac_cache_corrupted=: ;;
2065
 
    ,);;
2066
 
    *)
2067
 
      if test "x$ac_old_val" != "x$ac_new_val"; then
2068
 
        # differences in whitespace do not lead to failure.
2069
 
        ac_old_val_w=`echo x $ac_old_val`
2070
 
        ac_new_val_w=`echo x $ac_new_val`
2071
 
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2072
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2073
 
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2074
 
          ac_cache_corrupted=:
2075
 
        else
2076
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2077
 
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2078
 
          eval $ac_var=\$ac_old_val
2079
 
        fi
2080
 
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2081
 
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2082
 
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2083
 
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2084
 
      fi;;
2085
 
  esac
2086
 
  # Pass precious variables to config.status.
2087
 
  if test "$ac_new_set" = set; then
2088
 
    case $ac_new_val in
2089
 
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2090
 
    *) ac_arg=$ac_var=$ac_new_val ;;
2091
 
    esac
2092
 
    case " $ac_configure_args " in
2093
 
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2094
 
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2095
 
    esac
2096
 
  fi
2097
 
done
2098
 
if $ac_cache_corrupted; then
2099
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2100
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2101
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2102
 
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2103
 
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2104
 
fi
2105
 
## -------------------- ##
2106
 
## Main body of script. ##
2107
 
## -------------------- ##
2108
 
 
2109
 
ac_ext=c
2110
 
ac_cpp='$CPP $CPPFLAGS'
2111
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2112
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2113
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2114
 
 
2115
 
 
2116
 
ac_config_headers="$ac_config_headers config.h"
2117
 
 
2118
 
 
2119
 
 
2120
 
rev=`sed < ${srcdir}/patchlevel.h -n -e '/#define REV/s/#define REV  *//p'`
2121
 
vers=`sed < ${srcdir}/patchlevel.h -n -e '/#define VERS/s/#define VERS  *//p'`
2122
 
pat=`sed < ${srcdir}/patchlevel.h -n -e '/#define PATCHLEVEL/s/#define PATCHLEVEL  *//p'`
2123
 
VERSION="$rev.$vers.$pat"
2124
 
echo "this is screen version $VERSION" 1>&6
2125
 
 
2126
 
 
2127
 
if test "x$prefix" = xNONE; then
2128
 
  $as_echo_n "checking for prefix by " >&6
2129
 
  # Extract the first word of "screen", so it can be a program name with args.
2130
 
set dummy screen; ac_word=$2
2131
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2132
 
$as_echo_n "checking for $ac_word... " >&6; }
2133
 
if ${ac_cv_path_ac_prefix_program+:} false; then :
2134
 
  $as_echo_n "(cached) " >&6
2135
 
else
2136
 
  case $ac_prefix_program in
2137
 
  [\\/]* | ?:[\\/]*)
2138
 
  ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
2139
 
  ;;
2140
 
  *)
2141
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142
 
for as_dir in $PATH
2143
 
do
2144
 
  IFS=$as_save_IFS
2145
 
  test -z "$as_dir" && as_dir=.
2146
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2147
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2148
 
    ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
2149
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2150
 
    break 2
2151
 
  fi
2152
 
done
2153
 
  done
2154
 
IFS=$as_save_IFS
2155
 
 
2156
 
  ;;
2157
 
esac
2158
 
fi
2159
 
ac_prefix_program=$ac_cv_path_ac_prefix_program
2160
 
if test -n "$ac_prefix_program"; then
2161
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prefix_program" >&5
2162
 
$as_echo "$ac_prefix_program" >&6; }
2163
 
else
2164
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2165
 
$as_echo "no" >&6; }
2166
 
fi
2167
 
 
2168
 
 
2169
 
  if test -n "$ac_prefix_program"; then
2170
 
    prefix=`$as_dirname -- "$ac_prefix_program" ||
2171
 
$as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2172
 
         X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
2173
 
         X"$ac_prefix_program" : 'X\(//\)$' \| \
2174
 
         X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null ||
2175
 
$as_echo X"$ac_prefix_program" |
2176
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2177
 
            s//\1/
2178
 
            q
2179
 
          }
2180
 
          /^X\(\/\/\)[^/].*/{
2181
 
            s//\1/
2182
 
            q
2183
 
          }
2184
 
          /^X\(\/\/\)$/{
2185
 
            s//\1/
2186
 
            q
2187
 
          }
2188
 
          /^X\(\/\).*/{
2189
 
            s//\1/
2190
 
            q
2191
 
          }
2192
 
          s/.*/./; q'`
2193
 
    prefix=`$as_dirname -- "$prefix" ||
2194
 
$as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2195
 
         X"$prefix" : 'X\(//\)[^/]' \| \
2196
 
         X"$prefix" : 'X\(//\)$' \| \
2197
 
         X"$prefix" : 'X\(/\)' \| . 2>/dev/null ||
2198
 
$as_echo X"$prefix" |
2199
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2200
 
            s//\1/
2201
 
            q
2202
 
          }
2203
 
          /^X\(\/\/\)[^/].*/{
2204
 
            s//\1/
2205
 
            q
2206
 
          }
2207
 
          /^X\(\/\/\)$/{
2208
 
            s//\1/
2209
 
            q
2210
 
          }
2211
 
          /^X\(\/\).*/{
2212
 
            s//\1/
2213
 
            q
2214
 
          }
2215
 
          s/.*/./; q'`
2216
 
  fi
2217
 
fi
2218
 
 
2219
 
if test "x$prefix" = xNONE; then
2220
 
  $as_echo_n "checking for prefix by " >&6
2221
 
  # Extract the first word of "gzip", so it can be a program name with args.
2222
 
set dummy gzip; ac_word=$2
2223
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2224
 
$as_echo_n "checking for $ac_word... " >&6; }
2225
 
if ${ac_cv_path_ac_prefix_program+:} false; then :
2226
 
  $as_echo_n "(cached) " >&6
2227
 
else
2228
 
  case $ac_prefix_program in
2229
 
  [\\/]* | ?:[\\/]*)
2230
 
  ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
2231
 
  ;;
2232
 
  *)
2233
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234
 
for as_dir in $PATH
2235
 
do
2236
 
  IFS=$as_save_IFS
2237
 
  test -z "$as_dir" && as_dir=.
2238
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2239
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2240
 
    ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
2241
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2242
 
    break 2
2243
 
  fi
2244
 
done
2245
 
  done
2246
 
IFS=$as_save_IFS
2247
 
 
2248
 
  ;;
2249
 
esac
2250
 
fi
2251
 
ac_prefix_program=$ac_cv_path_ac_prefix_program
2252
 
if test -n "$ac_prefix_program"; then
2253
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prefix_program" >&5
2254
 
$as_echo "$ac_prefix_program" >&6; }
2255
 
else
2256
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2257
 
$as_echo "no" >&6; }
2258
 
fi
2259
 
 
2260
 
 
2261
 
  if test -n "$ac_prefix_program"; then
2262
 
    prefix=`$as_dirname -- "$ac_prefix_program" ||
2263
 
$as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2264
 
         X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
2265
 
         X"$ac_prefix_program" : 'X\(//\)$' \| \
2266
 
         X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null ||
2267
 
$as_echo X"$ac_prefix_program" |
2268
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2269
 
            s//\1/
2270
 
            q
2271
 
          }
2272
 
          /^X\(\/\/\)[^/].*/{
2273
 
            s//\1/
2274
 
            q
2275
 
          }
2276
 
          /^X\(\/\/\)$/{
2277
 
            s//\1/
2278
 
            q
2279
 
          }
2280
 
          /^X\(\/\).*/{
2281
 
            s//\1/
2282
 
            q
2283
 
          }
2284
 
          s/.*/./; q'`
2285
 
    prefix=`$as_dirname -- "$prefix" ||
2286
 
$as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2287
 
         X"$prefix" : 'X\(//\)[^/]' \| \
2288
 
         X"$prefix" : 'X\(//\)$' \| \
2289
 
         X"$prefix" : 'X\(/\)' \| . 2>/dev/null ||
2290
 
$as_echo X"$prefix" |
2291
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2292
 
            s//\1/
2293
 
            q
2294
 
          }
2295
 
          /^X\(\/\/\)[^/].*/{
2296
 
            s//\1/
2297
 
            q
2298
 
          }
2299
 
          /^X\(\/\/\)$/{
2300
 
            s//\1/
2301
 
            q
2302
 
          }
2303
 
          /^X\(\/\).*/{
2304
 
            s//\1/
2305
 
            q
2306
 
          }
2307
 
          s/.*/./; q'`
2308
 
  fi
2309
 
fi
2310
 
 
2311
 
 
2312
 
old_CFLAGS="$CFLAGS"
2313
 
ac_ext=c
2314
 
ac_cpp='$CPP $CPPFLAGS'
2315
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2316
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2317
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2318
 
if test -n "$ac_tool_prefix"; then
2319
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2320
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2321
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2322
 
$as_echo_n "checking for $ac_word... " >&6; }
2323
 
if ${ac_cv_prog_CC+:} false; then :
2324
 
  $as_echo_n "(cached) " >&6
2325
 
else
2326
 
  if test -n "$CC"; then
2327
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2328
 
else
2329
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330
 
for as_dir in $PATH
2331
 
do
2332
 
  IFS=$as_save_IFS
2333
 
  test -z "$as_dir" && as_dir=.
2334
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2335
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2336
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2337
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2338
 
    break 2
2339
 
  fi
2340
 
done
2341
 
  done
2342
 
IFS=$as_save_IFS
2343
 
 
2344
 
fi
2345
 
fi
2346
 
CC=$ac_cv_prog_CC
2347
 
if test -n "$CC"; then
2348
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2349
 
$as_echo "$CC" >&6; }
2350
 
else
2351
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2352
 
$as_echo "no" >&6; }
2353
 
fi
2354
 
 
2355
 
 
2356
 
fi
2357
 
if test -z "$ac_cv_prog_CC"; then
2358
 
  ac_ct_CC=$CC
2359
 
  # Extract the first word of "gcc", so it can be a program name with args.
2360
 
set dummy gcc; ac_word=$2
2361
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2362
 
$as_echo_n "checking for $ac_word... " >&6; }
2363
 
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2364
 
  $as_echo_n "(cached) " >&6
2365
 
else
2366
 
  if test -n "$ac_ct_CC"; then
2367
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2368
 
else
2369
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370
 
for as_dir in $PATH
2371
 
do
2372
 
  IFS=$as_save_IFS
2373
 
  test -z "$as_dir" && as_dir=.
2374
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2375
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2376
 
    ac_cv_prog_ac_ct_CC="gcc"
2377
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2378
 
    break 2
2379
 
  fi
2380
 
done
2381
 
  done
2382
 
IFS=$as_save_IFS
2383
 
 
2384
 
fi
2385
 
fi
2386
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2387
 
if test -n "$ac_ct_CC"; then
2388
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2389
 
$as_echo "$ac_ct_CC" >&6; }
2390
 
else
2391
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2392
 
$as_echo "no" >&6; }
2393
 
fi
2394
 
 
2395
 
  if test "x$ac_ct_CC" = x; then
2396
 
    CC=""
2397
 
  else
2398
 
    case $cross_compiling:$ac_tool_warned in
2399
 
yes:)
2400
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2401
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2402
 
ac_tool_warned=yes ;;
2403
 
esac
2404
 
    CC=$ac_ct_CC
2405
 
  fi
2406
 
else
2407
 
  CC="$ac_cv_prog_CC"
2408
 
fi
2409
 
 
2410
 
if test -z "$CC"; then
2411
 
          if test -n "$ac_tool_prefix"; then
2412
 
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2413
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
2414
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2415
 
$as_echo_n "checking for $ac_word... " >&6; }
2416
 
if ${ac_cv_prog_CC+:} false; then :
2417
 
  $as_echo_n "(cached) " >&6
2418
 
else
2419
 
  if test -n "$CC"; then
2420
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2421
 
else
2422
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423
 
for as_dir in $PATH
2424
 
do
2425
 
  IFS=$as_save_IFS
2426
 
  test -z "$as_dir" && as_dir=.
2427
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2428
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2429
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2430
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2431
 
    break 2
2432
 
  fi
2433
 
done
2434
 
  done
2435
 
IFS=$as_save_IFS
2436
 
 
2437
 
fi
2438
 
fi
2439
 
CC=$ac_cv_prog_CC
2440
 
if test -n "$CC"; then
2441
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2442
 
$as_echo "$CC" >&6; }
2443
 
else
2444
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2445
 
$as_echo "no" >&6; }
2446
 
fi
2447
 
 
2448
 
 
2449
 
  fi
2450
 
fi
2451
 
if test -z "$CC"; then
2452
 
  # Extract the first word of "cc", so it can be a program name with args.
2453
 
set dummy cc; ac_word=$2
2454
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2455
 
$as_echo_n "checking for $ac_word... " >&6; }
2456
 
if ${ac_cv_prog_CC+:} false; then :
2457
 
  $as_echo_n "(cached) " >&6
2458
 
else
2459
 
  if test -n "$CC"; then
2460
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2461
 
else
2462
 
  ac_prog_rejected=no
2463
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464
 
for as_dir in $PATH
2465
 
do
2466
 
  IFS=$as_save_IFS
2467
 
  test -z "$as_dir" && as_dir=.
2468
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2469
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2470
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2471
 
       ac_prog_rejected=yes
2472
 
       continue
2473
 
     fi
2474
 
    ac_cv_prog_CC="cc"
2475
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2476
 
    break 2
2477
 
  fi
2478
 
done
2479
 
  done
2480
 
IFS=$as_save_IFS
2481
 
 
2482
 
if test $ac_prog_rejected = yes; then
2483
 
  # We found a bogon in the path, so make sure we never use it.
2484
 
  set dummy $ac_cv_prog_CC
2485
 
  shift
2486
 
  if test $@%:@ != 0; then
2487
 
    # We chose a different compiler from the bogus one.
2488
 
    # However, it has the same basename, so the bogon will be chosen
2489
 
    # first if we set CC to just the basename; use the full file name.
2490
 
    shift
2491
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2492
 
  fi
2493
 
fi
2494
 
fi
2495
 
fi
2496
 
CC=$ac_cv_prog_CC
2497
 
if test -n "$CC"; then
2498
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2499
 
$as_echo "$CC" >&6; }
2500
 
else
2501
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2502
 
$as_echo "no" >&6; }
2503
 
fi
2504
 
 
2505
 
 
2506
 
fi
2507
 
if test -z "$CC"; then
2508
 
  if test -n "$ac_tool_prefix"; then
2509
 
  for ac_prog in cl.exe
2510
 
  do
2511
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2512
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2513
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2514
 
$as_echo_n "checking for $ac_word... " >&6; }
2515
 
if ${ac_cv_prog_CC+:} false; then :
2516
 
  $as_echo_n "(cached) " >&6
2517
 
else
2518
 
  if test -n "$CC"; then
2519
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2520
 
else
2521
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522
 
for as_dir in $PATH
2523
 
do
2524
 
  IFS=$as_save_IFS
2525
 
  test -z "$as_dir" && as_dir=.
2526
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2527
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2528
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2529
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2530
 
    break 2
2531
 
  fi
2532
 
done
2533
 
  done
2534
 
IFS=$as_save_IFS
2535
 
 
2536
 
fi
2537
 
fi
2538
 
CC=$ac_cv_prog_CC
2539
 
if test -n "$CC"; then
2540
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2541
 
$as_echo "$CC" >&6; }
2542
 
else
2543
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2544
 
$as_echo "no" >&6; }
2545
 
fi
2546
 
 
2547
 
 
2548
 
    test -n "$CC" && break
2549
 
  done
2550
 
fi
2551
 
if test -z "$CC"; then
2552
 
  ac_ct_CC=$CC
2553
 
  for ac_prog in cl.exe
2554
 
do
2555
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2556
 
set dummy $ac_prog; ac_word=$2
2557
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2558
 
$as_echo_n "checking for $ac_word... " >&6; }
2559
 
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2560
 
  $as_echo_n "(cached) " >&6
2561
 
else
2562
 
  if test -n "$ac_ct_CC"; then
2563
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2564
 
else
2565
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566
 
for as_dir in $PATH
2567
 
do
2568
 
  IFS=$as_save_IFS
2569
 
  test -z "$as_dir" && as_dir=.
2570
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2571
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2572
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
2573
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2574
 
    break 2
2575
 
  fi
2576
 
done
2577
 
  done
2578
 
IFS=$as_save_IFS
2579
 
 
2580
 
fi
2581
 
fi
2582
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2583
 
if test -n "$ac_ct_CC"; then
2584
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2585
 
$as_echo "$ac_ct_CC" >&6; }
2586
 
else
2587
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2588
 
$as_echo "no" >&6; }
2589
 
fi
2590
 
 
2591
 
 
2592
 
  test -n "$ac_ct_CC" && break
2593
 
done
2594
 
 
2595
 
  if test "x$ac_ct_CC" = x; then
2596
 
    CC=""
2597
 
  else
2598
 
    case $cross_compiling:$ac_tool_warned in
2599
 
yes:)
2600
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2601
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2602
 
ac_tool_warned=yes ;;
2603
 
esac
2604
 
    CC=$ac_ct_CC
2605
 
  fi
2606
 
fi
2607
 
 
2608
 
fi
2609
 
 
2610
 
 
2611
 
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2612
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2613
 
as_fn_error $? "no acceptable C compiler found in \$PATH
2614
 
See \`config.log' for more details" "$LINENO" 5; }
2615
 
 
2616
 
# Provide some information about the compiler.
2617
 
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2618
 
set X $ac_compile
2619
 
ac_compiler=$2
2620
 
for ac_option in --version -v -V -qversion; do
2621
 
  { { ac_try="$ac_compiler $ac_option >&5"
2622
 
case "(($ac_try" in
2623
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2624
 
  *) ac_try_echo=$ac_try;;
2625
 
esac
2626
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2627
 
$as_echo "$ac_try_echo"; } >&5
2628
 
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2629
 
  ac_status=$?
2630
 
  if test -s conftest.err; then
2631
 
    sed '10a\
2632
 
... rest of stderr output deleted ...
2633
 
         10q' conftest.err >conftest.er1
2634
 
    cat conftest.er1 >&5
2635
 
  fi
2636
 
  rm -f conftest.er1 conftest.err
2637
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2638
 
  test $ac_status = 0; }
2639
 
done
2640
 
 
2641
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2642
 
/* end confdefs.h.  */
2643
 
 
2644
 
int
2645
 
main ()
2646
 
{
2647
 
 
2648
 
  ;
2649
 
  return 0;
2650
 
}
2651
 
_ACEOF
2652
 
ac_clean_files_save=$ac_clean_files
2653
 
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2654
 
# Try to create an executable without -o first, disregard a.out.
2655
 
# It will help us diagnose broken compilers, and finding out an intuition
2656
 
# of exeext.
2657
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2658
 
$as_echo_n "checking whether the C compiler works... " >&6; }
2659
 
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2660
 
 
2661
 
# The possible output files:
2662
 
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2663
 
 
2664
 
ac_rmfiles=
2665
 
for ac_file in $ac_files
2666
 
do
2667
 
  case $ac_file in
2668
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2669
 
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2670
 
  esac
2671
 
done
2672
 
rm -f $ac_rmfiles
2673
 
 
2674
 
if { { ac_try="$ac_link_default"
2675
 
case "(($ac_try" in
2676
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677
 
  *) ac_try_echo=$ac_try;;
2678
 
esac
2679
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2680
 
$as_echo "$ac_try_echo"; } >&5
2681
 
  (eval "$ac_link_default") 2>&5
2682
 
  ac_status=$?
2683
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2684
 
  test $ac_status = 0; }; then :
2685
 
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2686
 
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2687
 
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2688
 
# so that the user can short-circuit this test for compilers unknown to
2689
 
# Autoconf.
2690
 
for ac_file in $ac_files ''
2691
 
do
2692
 
  test -f "$ac_file" || continue
2693
 
  case $ac_file in
2694
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2695
 
        ;;
2696
 
    [ab].out )
2697
 
        # We found the default executable, but exeext='' is most
2698
 
        # certainly right.
2699
 
        break;;
2700
 
    *.* )
2701
 
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2702
 
        then :; else
2703
 
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2704
 
        fi
2705
 
        # We set ac_cv_exeext here because the later test for it is not
2706
 
        # safe: cross compilers may not add the suffix if given an `-o'
2707
 
        # argument, so we may need to know it at that point already.
2708
 
        # Even if this section looks crufty: it has the advantage of
2709
 
        # actually working.
2710
 
        break;;
2711
 
    * )
2712
 
        break;;
2713
 
  esac
2714
 
done
2715
 
test "$ac_cv_exeext" = no && ac_cv_exeext=
2716
 
 
2717
 
else
2718
 
  ac_file=''
2719
 
fi
2720
 
if test -z "$ac_file"; then :
2721
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2722
 
$as_echo "no" >&6; }
2723
 
$as_echo "$as_me: failed program was:" >&5
2724
 
sed 's/^/| /' conftest.$ac_ext >&5
2725
 
 
2726
 
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2727
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2728
 
as_fn_error 77 "C compiler cannot create executables
2729
 
See \`config.log' for more details" "$LINENO" 5; }
2730
 
else
2731
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2732
 
$as_echo "yes" >&6; }
2733
 
fi
2734
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2735
 
$as_echo_n "checking for C compiler default output file name... " >&6; }
2736
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2737
 
$as_echo "$ac_file" >&6; }
2738
 
ac_exeext=$ac_cv_exeext
2739
 
 
2740
 
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2741
 
ac_clean_files=$ac_clean_files_save
2742
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2743
 
$as_echo_n "checking for suffix of executables... " >&6; }
2744
 
if { { ac_try="$ac_link"
2745
 
case "(($ac_try" in
2746
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747
 
  *) ac_try_echo=$ac_try;;
2748
 
esac
2749
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2750
 
$as_echo "$ac_try_echo"; } >&5
2751
 
  (eval "$ac_link") 2>&5
2752
 
  ac_status=$?
2753
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2754
 
  test $ac_status = 0; }; then :
2755
 
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2756
 
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2757
 
# work properly (i.e., refer to `conftest.exe'), while it won't with
2758
 
# `rm'.
2759
 
for ac_file in conftest.exe conftest conftest.*; do
2760
 
  test -f "$ac_file" || continue
2761
 
  case $ac_file in
2762
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2763
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2764
 
          break;;
2765
 
    * ) break;;
2766
 
  esac
2767
 
done
2768
 
else
2769
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2770
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2771
 
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2772
 
See \`config.log' for more details" "$LINENO" 5; }
2773
 
fi
2774
 
rm -f conftest conftest$ac_cv_exeext
2775
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2776
 
$as_echo "$ac_cv_exeext" >&6; }
2777
 
 
2778
 
rm -f conftest.$ac_ext
2779
 
EXEEXT=$ac_cv_exeext
2780
 
ac_exeext=$EXEEXT
2781
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2782
 
/* end confdefs.h.  */
2783
 
@%:@include <stdio.h>
2784
 
int
2785
 
main ()
2786
 
{
2787
 
FILE *f = fopen ("conftest.out", "w");
2788
 
 return ferror (f) || fclose (f) != 0;
2789
 
 
2790
 
  ;
2791
 
  return 0;
2792
 
}
2793
 
_ACEOF
2794
 
ac_clean_files="$ac_clean_files conftest.out"
2795
 
# Check that the compiler produces executables we can run.  If not, either
2796
 
# the compiler is broken, or we cross compile.
2797
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2798
 
$as_echo_n "checking whether we are cross compiling... " >&6; }
2799
 
if test "$cross_compiling" != yes; then
2800
 
  { { ac_try="$ac_link"
2801
 
case "(($ac_try" in
2802
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2803
 
  *) ac_try_echo=$ac_try;;
2804
 
esac
2805
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2806
 
$as_echo "$ac_try_echo"; } >&5
2807
 
  (eval "$ac_link") 2>&5
2808
 
  ac_status=$?
2809
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2810
 
  test $ac_status = 0; }
2811
 
  if { ac_try='./conftest$ac_cv_exeext'
2812
 
  { { case "(($ac_try" in
2813
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814
 
  *) ac_try_echo=$ac_try;;
2815
 
esac
2816
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2817
 
$as_echo "$ac_try_echo"; } >&5
2818
 
  (eval "$ac_try") 2>&5
2819
 
  ac_status=$?
2820
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2821
 
  test $ac_status = 0; }; }; then
2822
 
    cross_compiling=no
2823
 
  else
2824
 
    if test "$cross_compiling" = maybe; then
2825
 
        cross_compiling=yes
2826
 
    else
2827
 
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2828
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2829
 
as_fn_error $? "cannot run C compiled programs.
2830
 
If you meant to cross compile, use \`--host'.
2831
 
See \`config.log' for more details" "$LINENO" 5; }
2832
 
    fi
2833
 
  fi
2834
 
fi
2835
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2836
 
$as_echo "$cross_compiling" >&6; }
2837
 
 
2838
 
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2839
 
ac_clean_files=$ac_clean_files_save
2840
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2841
 
$as_echo_n "checking for suffix of object files... " >&6; }
2842
 
if ${ac_cv_objext+:} false; then :
2843
 
  $as_echo_n "(cached) " >&6
2844
 
else
2845
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2846
 
/* end confdefs.h.  */
2847
 
 
2848
 
int
2849
 
main ()
2850
 
{
2851
 
 
2852
 
  ;
2853
 
  return 0;
2854
 
}
2855
 
_ACEOF
2856
 
rm -f conftest.o conftest.obj
2857
 
if { { ac_try="$ac_compile"
2858
 
case "(($ac_try" in
2859
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860
 
  *) ac_try_echo=$ac_try;;
2861
 
esac
2862
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2863
 
$as_echo "$ac_try_echo"; } >&5
2864
 
  (eval "$ac_compile") 2>&5
2865
 
  ac_status=$?
2866
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2867
 
  test $ac_status = 0; }; then :
2868
 
  for ac_file in conftest.o conftest.obj conftest.*; do
2869
 
  test -f "$ac_file" || continue;
2870
 
  case $ac_file in
2871
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2872
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2873
 
       break;;
2874
 
  esac
2875
 
done
2876
 
else
2877
 
  $as_echo "$as_me: failed program was:" >&5
2878
 
sed 's/^/| /' conftest.$ac_ext >&5
2879
 
 
2880
 
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2881
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2882
 
as_fn_error $? "cannot compute suffix of object files: cannot compile
2883
 
See \`config.log' for more details" "$LINENO" 5; }
2884
 
fi
2885
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2886
 
fi
2887
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2888
 
$as_echo "$ac_cv_objext" >&6; }
2889
 
OBJEXT=$ac_cv_objext
2890
 
ac_objext=$OBJEXT
2891
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2892
 
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2893
 
if ${ac_cv_c_compiler_gnu+:} false; then :
2894
 
  $as_echo_n "(cached) " >&6
2895
 
else
2896
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2897
 
/* end confdefs.h.  */
2898
 
 
2899
 
int
2900
 
main ()
2901
 
{
2902
 
#ifndef __GNUC__
2903
 
       choke me
2904
 
#endif
2905
 
 
2906
 
  ;
2907
 
  return 0;
2908
 
}
2909
 
_ACEOF
2910
 
if ac_fn_c_try_compile "$LINENO"; then :
2911
 
  ac_compiler_gnu=yes
2912
 
else
2913
 
  ac_compiler_gnu=no
2914
 
fi
2915
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2916
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2917
 
 
2918
 
fi
2919
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2920
 
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2921
 
if test $ac_compiler_gnu = yes; then
2922
 
  GCC=yes
2923
 
else
2924
 
  GCC=
2925
 
fi
2926
 
ac_test_CFLAGS=${CFLAGS+set}
2927
 
ac_save_CFLAGS=$CFLAGS
2928
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2929
 
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2930
 
if ${ac_cv_prog_cc_g+:} false; then :
2931
 
  $as_echo_n "(cached) " >&6
2932
 
else
2933
 
  ac_save_c_werror_flag=$ac_c_werror_flag
2934
 
   ac_c_werror_flag=yes
2935
 
   ac_cv_prog_cc_g=no
2936
 
   CFLAGS="-g"
2937
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2938
 
/* end confdefs.h.  */
2939
 
 
2940
 
int
2941
 
main ()
2942
 
{
2943
 
 
2944
 
  ;
2945
 
  return 0;
2946
 
}
2947
 
_ACEOF
2948
 
if ac_fn_c_try_compile "$LINENO"; then :
2949
 
  ac_cv_prog_cc_g=yes
2950
 
else
2951
 
  CFLAGS=""
2952
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2953
 
/* end confdefs.h.  */
2954
 
 
2955
 
int
2956
 
main ()
2957
 
{
2958
 
 
2959
 
  ;
2960
 
  return 0;
2961
 
}
2962
 
_ACEOF
2963
 
if ac_fn_c_try_compile "$LINENO"; then :
2964
 
  
2965
 
else
2966
 
  ac_c_werror_flag=$ac_save_c_werror_flag
2967
 
         CFLAGS="-g"
2968
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2969
 
/* end confdefs.h.  */
2970
 
 
2971
 
int
2972
 
main ()
2973
 
{
2974
 
 
2975
 
  ;
2976
 
  return 0;
2977
 
}
2978
 
_ACEOF
2979
 
if ac_fn_c_try_compile "$LINENO"; then :
2980
 
  ac_cv_prog_cc_g=yes
2981
 
fi
2982
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2983
 
fi
2984
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985
 
fi
2986
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2987
 
   ac_c_werror_flag=$ac_save_c_werror_flag
2988
 
fi
2989
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2990
 
$as_echo "$ac_cv_prog_cc_g" >&6; }
2991
 
if test "$ac_test_CFLAGS" = set; then
2992
 
  CFLAGS=$ac_save_CFLAGS
2993
 
elif test $ac_cv_prog_cc_g = yes; then
2994
 
  if test "$GCC" = yes; then
2995
 
    CFLAGS="-g -O2"
2996
 
  else
2997
 
    CFLAGS="-g"
2998
 
  fi
2999
 
else
3000
 
  if test "$GCC" = yes; then
3001
 
    CFLAGS="-O2"
3002
 
  else
3003
 
    CFLAGS=
3004
 
  fi
3005
 
fi
3006
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3007
 
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3008
 
if ${ac_cv_prog_cc_c89+:} false; then :
3009
 
  $as_echo_n "(cached) " >&6
3010
 
else
3011
 
  ac_cv_prog_cc_c89=no
3012
 
ac_save_CC=$CC
3013
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3014
 
/* end confdefs.h.  */
3015
 
#include <stdarg.h>
3016
 
#include <stdio.h>
3017
 
struct stat;
3018
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3019
 
struct buf { int x; };
3020
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3021
 
static char *e (p, i)
3022
 
     char **p;
3023
 
     int i;
3024
 
{
3025
 
  return p[i];
3026
 
}
3027
 
static char *f (char * (*g) (char **, int), char **p, ...)
3028
 
{
3029
 
  char *s;
3030
 
  va_list v;
3031
 
  va_start (v,p);
3032
 
  s = g (p, va_arg (v,int));
3033
 
  va_end (v);
3034
 
  return s;
3035
 
}
3036
 
 
3037
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3038
 
   function prototypes and stuff, but not '\xHH' hex character constants.
3039
 
   These don't provoke an error unfortunately, instead are silently treated
3040
 
   as 'x'.  The following induces an error, until -std is added to get
3041
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3042
 
   array size at least.  It's necessary to write '\x00'==0 to get something
3043
 
   that's true only with -std.  */
3044
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3045
 
 
3046
 
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3047
 
   inside strings and character constants.  */
3048
 
#define FOO(x) 'x'
3049
 
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3050
 
 
3051
 
int test (int i, double x);
3052
 
struct s1 {int (*f) (int a);};
3053
 
struct s2 {int (*f) (double a);};
3054
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3055
 
int argc;
3056
 
char **argv;
3057
 
int
3058
 
main ()
3059
 
{
3060
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3061
 
  ;
3062
 
  return 0;
3063
 
}
3064
 
_ACEOF
3065
 
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3066
 
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3067
 
do
3068
 
  CC="$ac_save_CC $ac_arg"
3069
 
  if ac_fn_c_try_compile "$LINENO"; then :
3070
 
  ac_cv_prog_cc_c89=$ac_arg
3071
 
fi
3072
 
rm -f core conftest.err conftest.$ac_objext
3073
 
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3074
 
done
3075
 
rm -f conftest.$ac_ext
3076
 
CC=$ac_save_CC
3077
 
 
3078
 
fi
3079
 
# AC_CACHE_VAL
3080
 
case "x$ac_cv_prog_cc_c89" in
3081
 
  x)
3082
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3083
 
$as_echo "none needed" >&6; } ;;
3084
 
  xno)
3085
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3086
 
$as_echo "unsupported" >&6; } ;;
3087
 
  *)
3088
 
    CC="$CC $ac_cv_prog_cc_c89"
3089
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3090
 
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3091
 
esac
3092
 
if test "x$ac_cv_prog_cc_c89" != xno; then :
3093
 
  
3094
 
fi
3095
 
 
3096
 
ac_ext=c
3097
 
ac_cpp='$CPP $CPPFLAGS'
3098
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3101
 
 
3102
 
ac_ext=c
3103
 
ac_cpp='$CPP $CPPFLAGS'
3104
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3107
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3108
 
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3109
 
# On Suns, sometimes $CPP names a directory.
3110
 
if test -n "$CPP" && test -d "$CPP"; then
3111
 
  CPP=
3112
 
fi
3113
 
if test -z "$CPP"; then
3114
 
  if ${ac_cv_prog_CPP+:} false; then :
3115
 
  $as_echo_n "(cached) " >&6
3116
 
else
3117
 
      # Double quotes because CPP needs to be expanded
3118
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3119
 
    do
3120
 
      ac_preproc_ok=false
3121
 
for ac_c_preproc_warn_flag in '' yes
3122
 
do
3123
 
  # Use a header file that comes with gcc, so configuring glibc
3124
 
  # with a fresh cross-compiler works.
3125
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3126
 
  # <limits.h> exists even on freestanding compilers.
3127
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
3128
 
  # not just through cpp. "Syntax error" is here to catch this case.
3129
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3130
 
/* end confdefs.h.  */
3131
 
@%:@ifdef __STDC__
3132
 
@%:@ include <limits.h>
3133
 
@%:@else
3134
 
@%:@ include <assert.h>
3135
 
@%:@endif
3136
 
                     Syntax error
3137
 
_ACEOF
3138
 
if ac_fn_c_try_cpp "$LINENO"; then :
3139
 
  
3140
 
else
3141
 
  # Broken: fails on valid input.
3142
 
continue
3143
 
fi
3144
 
rm -f conftest.err conftest.i conftest.$ac_ext
3145
 
 
3146
 
  # OK, works on sane cases.  Now check whether nonexistent headers
3147
 
  # can be detected and how.
3148
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3149
 
/* end confdefs.h.  */
3150
 
@%:@include <ac_nonexistent.h>
3151
 
_ACEOF
3152
 
if ac_fn_c_try_cpp "$LINENO"; then :
3153
 
  # Broken: success on invalid input.
3154
 
continue
3155
 
else
3156
 
  # Passes both tests.
3157
 
ac_preproc_ok=:
3158
 
break
3159
 
fi
3160
 
rm -f conftest.err conftest.i conftest.$ac_ext
3161
 
 
3162
 
done
3163
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3164
 
rm -f conftest.i conftest.err conftest.$ac_ext
3165
 
if $ac_preproc_ok; then :
3166
 
  break
3167
 
fi
3168
 
 
3169
 
    done
3170
 
    ac_cv_prog_CPP=$CPP
3171
 
  
3172
 
fi
3173
 
  CPP=$ac_cv_prog_CPP
3174
 
else
3175
 
  ac_cv_prog_CPP=$CPP
3176
 
fi
3177
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3178
 
$as_echo "$CPP" >&6; }
3179
 
ac_preproc_ok=false
3180
 
for ac_c_preproc_warn_flag in '' yes
3181
 
do
3182
 
  # Use a header file that comes with gcc, so configuring glibc
3183
 
  # with a fresh cross-compiler works.
3184
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3185
 
  # <limits.h> exists even on freestanding compilers.
3186
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
3187
 
  # not just through cpp. "Syntax error" is here to catch this case.
3188
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3189
 
/* end confdefs.h.  */
3190
 
@%:@ifdef __STDC__
3191
 
@%:@ include <limits.h>
3192
 
@%:@else
3193
 
@%:@ include <assert.h>
3194
 
@%:@endif
3195
 
                     Syntax error
3196
 
_ACEOF
3197
 
if ac_fn_c_try_cpp "$LINENO"; then :
3198
 
  
3199
 
else
3200
 
  # Broken: fails on valid input.
3201
 
continue
3202
 
fi
3203
 
rm -f conftest.err conftest.i conftest.$ac_ext
3204
 
 
3205
 
  # OK, works on sane cases.  Now check whether nonexistent headers
3206
 
  # can be detected and how.
3207
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3208
 
/* end confdefs.h.  */
3209
 
@%:@include <ac_nonexistent.h>
3210
 
_ACEOF
3211
 
if ac_fn_c_try_cpp "$LINENO"; then :
3212
 
  # Broken: success on invalid input.
3213
 
continue
3214
 
else
3215
 
  # Passes both tests.
3216
 
ac_preproc_ok=:
3217
 
break
3218
 
fi
3219
 
rm -f conftest.err conftest.i conftest.$ac_ext
3220
 
 
3221
 
done
3222
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3223
 
rm -f conftest.i conftest.err conftest.$ac_ext
3224
 
if $ac_preproc_ok; then :
3225
 
  
3226
 
else
3227
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3228
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3229
 
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3230
 
See \`config.log' for more details" "$LINENO" 5; }
3231
 
fi
3232
 
 
3233
 
ac_ext=c
3234
 
ac_cpp='$CPP $CPPFLAGS'
3235
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238
 
 
3239
 
 
3240
 
 
3241
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3242
 
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3243
 
if ${ac_cv_path_GREP+:} false; then :
3244
 
  $as_echo_n "(cached) " >&6
3245
 
else
3246
 
  if test -z "$GREP"; then
3247
 
  ac_path_GREP_found=false
3248
 
  # Loop through the user's path and test for each of PROGNAME-LIST
3249
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3251
 
do
3252
 
  IFS=$as_save_IFS
3253
 
  test -z "$as_dir" && as_dir=.
3254
 
    for ac_prog in grep ggrep; do
3255
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3256
 
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3257
 
      as_fn_executable_p "$ac_path_GREP" || continue
3258
 
# Check for GNU ac_path_GREP and select it if it is found.
3259
 
  # Check for GNU $ac_path_GREP
3260
 
case `"$ac_path_GREP" --version 2>&1` in
3261
 
*GNU*)
3262
 
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3263
 
*)
3264
 
  ac_count=0
3265
 
  $as_echo_n 0123456789 >"conftest.in"
3266
 
  while :
3267
 
  do
3268
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3269
 
    mv "conftest.tmp" "conftest.in"
3270
 
    cp "conftest.in" "conftest.nl"
3271
 
    $as_echo 'GREP' >> "conftest.nl"
3272
 
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3273
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3274
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3275
 
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3276
 
      # Best one so far, save it but keep looking for a better one
3277
 
      ac_cv_path_GREP="$ac_path_GREP"
3278
 
      ac_path_GREP_max=$ac_count
3279
 
    fi
3280
 
    # 10*(2^10) chars as input seems more than enough
3281
 
    test $ac_count -gt 10 && break
3282
 
  done
3283
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3284
 
esac
3285
 
 
3286
 
      $ac_path_GREP_found && break 3
3287
 
    done
3288
 
  done
3289
 
  done
3290
 
IFS=$as_save_IFS
3291
 
  if test -z "$ac_cv_path_GREP"; then
3292
 
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3293
 
  fi
3294
 
else
3295
 
  ac_cv_path_GREP=$GREP
3296
 
fi
3297
 
 
3298
 
fi
3299
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3300
 
$as_echo "$ac_cv_path_GREP" >&6; }
3301
 
 GREP="$ac_cv_path_GREP"
3302
 
 
3303
 
 
3304
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3305
 
$as_echo_n "checking for egrep... " >&6; }
3306
 
if ${ac_cv_path_EGREP+:} false; then :
3307
 
  $as_echo_n "(cached) " >&6
3308
 
else
3309
 
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3310
 
   then ac_cv_path_EGREP="$GREP -E"
3311
 
   else
3312
 
     if test -z "$EGREP"; then
3313
 
  ac_path_EGREP_found=false
3314
 
  # Loop through the user's path and test for each of PROGNAME-LIST
3315
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3317
 
do
3318
 
  IFS=$as_save_IFS
3319
 
  test -z "$as_dir" && as_dir=.
3320
 
    for ac_prog in egrep; do
3321
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3322
 
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3323
 
      as_fn_executable_p "$ac_path_EGREP" || continue
3324
 
# Check for GNU ac_path_EGREP and select it if it is found.
3325
 
  # Check for GNU $ac_path_EGREP
3326
 
case `"$ac_path_EGREP" --version 2>&1` in
3327
 
*GNU*)
3328
 
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3329
 
*)
3330
 
  ac_count=0
3331
 
  $as_echo_n 0123456789 >"conftest.in"
3332
 
  while :
3333
 
  do
3334
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3335
 
    mv "conftest.tmp" "conftest.in"
3336
 
    cp "conftest.in" "conftest.nl"
3337
 
    $as_echo 'EGREP' >> "conftest.nl"
3338
 
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3339
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3340
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3341
 
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3342
 
      # Best one so far, save it but keep looking for a better one
3343
 
      ac_cv_path_EGREP="$ac_path_EGREP"
3344
 
      ac_path_EGREP_max=$ac_count
3345
 
    fi
3346
 
    # 10*(2^10) chars as input seems more than enough
3347
 
    test $ac_count -gt 10 && break
3348
 
  done
3349
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3350
 
esac
3351
 
 
3352
 
      $ac_path_EGREP_found && break 3
3353
 
    done
3354
 
  done
3355
 
  done
3356
 
IFS=$as_save_IFS
3357
 
  if test -z "$ac_cv_path_EGREP"; then
3358
 
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3359
 
  fi
3360
 
else
3361
 
  ac_cv_path_EGREP=$EGREP
3362
 
fi
3363
 
 
3364
 
   fi
3365
 
fi
3366
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3367
 
$as_echo "$ac_cv_path_EGREP" >&6; }
3368
 
 EGREP="$ac_cv_path_EGREP"
3369
 
 
3370
 
 
3371
 
if test $ac_cv_c_compiler_gnu = yes; then
3372
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
3373
 
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
3374
 
if ${ac_cv_prog_gcc_traditional+:} false; then :
3375
 
  $as_echo_n "(cached) " >&6
3376
 
else
3377
 
    ac_pattern="Autoconf.*'x'"
3378
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3379
 
/* end confdefs.h.  */
3380
 
#include <sgtty.h>
3381
 
Autoconf TIOCGETP
3382
 
_ACEOF
3383
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3384
 
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3385
 
  ac_cv_prog_gcc_traditional=yes
3386
 
else
3387
 
  ac_cv_prog_gcc_traditional=no
3388
 
fi
3389
 
rm -f conftest*
3390
 
 
3391
 
 
3392
 
  if test $ac_cv_prog_gcc_traditional = no; then
3393
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394
 
/* end confdefs.h.  */
3395
 
#include <termio.h>
3396
 
Autoconf TCGETA
3397
 
_ACEOF
3398
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3399
 
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3400
 
  ac_cv_prog_gcc_traditional=yes
3401
 
fi
3402
 
rm -f conftest*
3403
 
 
3404
 
  fi
3405
 
fi
3406
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
3407
 
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3408
 
  if test $ac_cv_prog_gcc_traditional = yes; then
3409
 
    CC="$CC -traditional"
3410
 
  fi
3411
 
fi
3412
 
 
3413
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3414
 
$as_echo_n "checking for library containing strerror... " >&6; }
3415
 
if ${ac_cv_search_strerror+:} false; then :
3416
 
  $as_echo_n "(cached) " >&6
3417
 
else
3418
 
  ac_func_search_save_LIBS=$LIBS
3419
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420
 
/* end confdefs.h.  */
3421
 
 
3422
 
/* Override any GCC internal prototype to avoid an error.
3423
 
   Use char because int might match the return type of a GCC
3424
 
   builtin and then its argument prototype would still apply.  */
3425
 
#ifdef __cplusplus
3426
 
extern "C"
3427
 
#endif
3428
 
char strerror ();
3429
 
int
3430
 
main ()
3431
 
{
3432
 
return strerror ();
3433
 
  ;
3434
 
  return 0;
3435
 
}
3436
 
_ACEOF
3437
 
for ac_lib in '' cposix; do
3438
 
  if test -z "$ac_lib"; then
3439
 
    ac_res="none required"
3440
 
  else
3441
 
    ac_res=-l$ac_lib
3442
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3443
 
  fi
3444
 
  if ac_fn_c_try_link "$LINENO"; then :
3445
 
  ac_cv_search_strerror=$ac_res
3446
 
fi
3447
 
rm -f core conftest.err conftest.$ac_objext \
3448
 
    conftest$ac_exeext
3449
 
  if ${ac_cv_search_strerror+:} false; then :
3450
 
  break
3451
 
fi
3452
 
done
3453
 
if ${ac_cv_search_strerror+:} false; then :
3454
 
  
3455
 
else
3456
 
  ac_cv_search_strerror=no
3457
 
fi
3458
 
rm conftest.$ac_ext
3459
 
LIBS=$ac_func_search_save_LIBS
3460
 
fi
3461
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3462
 
$as_echo "$ac_cv_search_strerror" >&6; }
3463
 
ac_res=$ac_cv_search_strerror
3464
 
if test "$ac_res" != no; then :
3465
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3466
 
  
3467
 
fi
3468
 
 
3469
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3470
 
$as_echo_n "checking for ANSI C header files... " >&6; }
3471
 
if ${ac_cv_header_stdc+:} false; then :
3472
 
  $as_echo_n "(cached) " >&6
3473
 
else
3474
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475
 
/* end confdefs.h.  */
3476
 
#include <stdlib.h>
3477
 
#include <stdarg.h>
3478
 
#include <string.h>
3479
 
#include <float.h>
3480
 
 
3481
 
int
3482
 
main ()
3483
 
{
3484
 
 
3485
 
  ;
3486
 
  return 0;
3487
 
}
3488
 
_ACEOF
3489
 
if ac_fn_c_try_compile "$LINENO"; then :
3490
 
  ac_cv_header_stdc=yes
3491
 
else
3492
 
  ac_cv_header_stdc=no
3493
 
fi
3494
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495
 
 
3496
 
if test $ac_cv_header_stdc = yes; then
3497
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3498
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499
 
/* end confdefs.h.  */
3500
 
#include <string.h>
3501
 
 
3502
 
_ACEOF
3503
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3504
 
  $EGREP "memchr" >/dev/null 2>&1; then :
3505
 
  
3506
 
else
3507
 
  ac_cv_header_stdc=no
3508
 
fi
3509
 
rm -f conftest*
3510
 
 
3511
 
fi
3512
 
 
3513
 
if test $ac_cv_header_stdc = yes; then
3514
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3515
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516
 
/* end confdefs.h.  */
3517
 
#include <stdlib.h>
3518
 
 
3519
 
_ACEOF
3520
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3521
 
  $EGREP "free" >/dev/null 2>&1; then :
3522
 
  
3523
 
else
3524
 
  ac_cv_header_stdc=no
3525
 
fi
3526
 
rm -f conftest*
3527
 
 
3528
 
fi
3529
 
 
3530
 
if test $ac_cv_header_stdc = yes; then
3531
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3532
 
  if test "$cross_compiling" = yes; then :
3533
 
  :
3534
 
else
3535
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536
 
/* end confdefs.h.  */
3537
 
#include <ctype.h>
3538
 
#include <stdlib.h>
3539
 
#if ((' ' & 0x0FF) == 0x020)
3540
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3541
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3542
 
#else
3543
 
# define ISLOWER(c) \
3544
 
                   (('a' <= (c) && (c) <= 'i') \
3545
 
                     || ('j' <= (c) && (c) <= 'r') \
3546
 
                     || ('s' <= (c) && (c) <= 'z'))
3547
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3548
 
#endif
3549
 
 
3550
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3551
 
int
3552
 
main ()
3553
 
{
3554
 
  int i;
3555
 
  for (i = 0; i < 256; i++)
3556
 
    if (XOR (islower (i), ISLOWER (i))
3557
 
        || toupper (i) != TOUPPER (i))
3558
 
      return 2;
3559
 
  return 0;
3560
 
}
3561
 
_ACEOF
3562
 
if ac_fn_c_try_run "$LINENO"; then :
3563
 
  
3564
 
else
3565
 
  ac_cv_header_stdc=no
3566
 
fi
3567
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3568
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
3569
 
fi
3570
 
 
3571
 
fi
3572
 
fi
3573
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3574
 
$as_echo "$ac_cv_header_stdc" >&6; }
3575
 
if test $ac_cv_header_stdc = yes; then
3576
 
  
3577
 
$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
3578
 
 
3579
 
fi
3580
 
 
3581
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3582
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3583
 
                  inttypes.h stdint.h unistd.h
3584
 
do :
3585
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3586
 
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3587
 
"
3588
 
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3589
 
  cat >>confdefs.h <<_ACEOF
3590
 
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3591
 
_ACEOF
3592
 
 
3593
 
fi
3594
 
 
3595
 
done
3596
 
 
3597
 
 
3598
 
 
3599
 
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3600
 
if test "x$ac_cv_header_minix_config_h" = xyes; then :
3601
 
  MINIX=yes
3602
 
else
3603
 
  MINIX=
3604
 
fi
3605
 
 
3606
 
 
3607
 
  if test "$MINIX" = yes; then
3608
 
    
3609
 
$as_echo "@%:@define _POSIX_SOURCE 1" >>confdefs.h
3610
 
 
3611
 
    
3612
 
$as_echo "@%:@define _POSIX_1_SOURCE 2" >>confdefs.h
3613
 
 
3614
 
    
3615
 
$as_echo "@%:@define _MINIX 1" >>confdefs.h
3616
 
 
3617
 
  fi
3618
 
 
3619
 
  
3620
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3621
 
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3622
 
if ${ac_cv_safe_to_define___extensions__+:} false; then :
3623
 
  $as_echo_n "(cached) " >&6
3624
 
else
3625
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626
 
/* end confdefs.h.  */
3627
 
 
3628
 
#         define __EXTENSIONS__ 1
3629
 
          $ac_includes_default
3630
 
int
3631
 
main ()
3632
 
{
3633
 
 
3634
 
  ;
3635
 
  return 0;
3636
 
}
3637
 
_ACEOF
3638
 
if ac_fn_c_try_compile "$LINENO"; then :
3639
 
  ac_cv_safe_to_define___extensions__=yes
3640
 
else
3641
 
  ac_cv_safe_to_define___extensions__=no
3642
 
fi
3643
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3644
 
fi
3645
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3646
 
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3647
 
  test $ac_cv_safe_to_define___extensions__ = yes &&
3648
 
    $as_echo "@%:@define __EXTENSIONS__ 1" >>confdefs.h
3649
 
 
3650
 
  $as_echo "@%:@define _ALL_SOURCE 1" >>confdefs.h
3651
 
 
3652
 
  $as_echo "@%:@define _GNU_SOURCE 1" >>confdefs.h
3653
 
 
3654
 
  $as_echo "@%:@define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3655
 
 
3656
 
  $as_echo "@%:@define _TANDEM_SOURCE 1" >>confdefs.h
3657
 
 
3658
 
 
3659
 
 
3660
 
if test "$cross_compiling" = yes; then :
3661
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3662
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3663
 
as_fn_error $? "cannot run test program while cross compiling
3664
 
See \`config.log' for more details" "$LINENO" 5; }
3665
 
else
3666
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667
 
/* end confdefs.h.  */
3668
 
main(){exit(0);}
3669
 
_ACEOF
3670
 
if ac_fn_c_try_run "$LINENO"; then :
3671
 
  
3672
 
else
3673
 
  
3674
 
if test $CC != cc ; then
3675
 
echo "Your $CC failed - restarting with CC=cc" 1>&6
3676
 
 
3677
 
echo "" 1>&6
3678
 
 
3679
 
CC=cc
3680
 
export CC
3681
 
exec $0 $configure_args
3682
 
fi
3683
 
 
3684
 
fi
3685
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3686
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
3687
 
fi
3688
 
 
3689
 
 
3690
 
if test "$cross_compiling" = yes; then :
3691
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3692
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3693
 
as_fn_error $? "cannot run test program while cross compiling
3694
 
See \`config.log' for more details" "$LINENO" 5; }
3695
 
else
3696
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697
 
/* end confdefs.h.  */
3698
 
main(){exit(0);}
3699
 
_ACEOF
3700
 
if ac_fn_c_try_run "$LINENO"; then :
3701
 
  
3702
 
else
3703
 
  exec 5>&2
3704
 
eval $ac_link
3705
 
echo "CC=$CC; CFLAGS=$CFLAGS; LIBS=$LIBS;" 1>&6
3706
 
 
3707
 
echo "$ac_compile" 1>&6
3708
 
 
3709
 
as_fn_error $? "Can't run the compiler - sorry" "$LINENO" 5
3710
 
fi
3711
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3712
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
3713
 
fi
3714
 
 
3715
 
 
3716
 
if test "$cross_compiling" = yes; then :
3717
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3718
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3719
 
as_fn_error $? "cannot run test program while cross compiling
3720
 
See \`config.log' for more details" "$LINENO" 5; }
3721
 
else
3722
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723
 
/* end confdefs.h.  */
3724
 
 
3725
 
main()
3726
 
{
3727
 
  int __something_strange_();
3728
 
  __something_strange_(0);
3729
 
}
3730
 
 
3731
 
_ACEOF
3732
 
if ac_fn_c_try_run "$LINENO"; then :
3733
 
  as_fn_error $? "Your compiler does not set the exit status - sorry" "$LINENO" 5
3734
 
fi
3735
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3736
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
3737
 
fi
3738
 
 
3739
 
 
3740
 
for ac_prog in gawk mawk nawk awk
3741
 
do
3742
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3743
 
set dummy $ac_prog; ac_word=$2
3744
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745
 
$as_echo_n "checking for $ac_word... " >&6; }
3746
 
if ${ac_cv_prog_AWK+:} false; then :
3747
 
  $as_echo_n "(cached) " >&6
3748
 
else
3749
 
  if test -n "$AWK"; then
3750
 
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3751
 
else
3752
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753
 
for as_dir in $PATH
3754
 
do
3755
 
  IFS=$as_save_IFS
3756
 
  test -z "$as_dir" && as_dir=.
3757
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3758
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3759
 
    ac_cv_prog_AWK="$ac_prog"
3760
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3761
 
    break 2
3762
 
  fi
3763
 
done
3764
 
  done
3765
 
IFS=$as_save_IFS
3766
 
 
3767
 
fi
3768
 
fi
3769
 
AWK=$ac_cv_prog_AWK
3770
 
if test -n "$AWK"; then
3771
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3772
 
$as_echo "$AWK" >&6; }
3773
 
else
3774
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775
 
$as_echo "no" >&6; }
3776
 
fi
3777
 
 
3778
 
 
3779
 
  test -n "$AWK" && break
3780
 
done
3781
 
 
3782
 
 
3783
 
ac_aux_dir=
3784
 
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3785
 
  if test -f "$ac_dir/install-sh"; then
3786
 
    ac_aux_dir=$ac_dir
3787
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
3788
 
    break
3789
 
  elif test -f "$ac_dir/install.sh"; then
3790
 
    ac_aux_dir=$ac_dir
3791
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
3792
 
    break
3793
 
  elif test -f "$ac_dir/shtool"; then
3794
 
    ac_aux_dir=$ac_dir
3795
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
3796
 
    break
3797
 
  fi
3798
 
done
3799
 
if test -z "$ac_aux_dir"; then
3800
 
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3801
 
fi
3802
 
 
3803
 
# These three variables are undocumented and unsupported,
3804
 
# and are intended to be withdrawn in a future Autoconf release.
3805
 
# They can cause serious problems if a builder's source tree is in a directory
3806
 
# whose full name contains unusual characters.
3807
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3808
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3809
 
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3810
 
 
3811
 
 
3812
 
# Find a good install program.  We prefer a C program (faster),
3813
 
# so one script is as good as another.  But avoid the broken or
3814
 
# incompatible versions:
3815
 
# SysV /etc/install, /usr/sbin/install
3816
 
# SunOS /usr/etc/install
3817
 
# IRIX /sbin/install
3818
 
# AIX /bin/install
3819
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
3820
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3821
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3822
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3823
 
# OS/2's system install, which has a completely different semantic
3824
 
# ./install, which can be erroneously created by make from ./install.sh.
3825
 
# Reject install programs that cannot install multiple files.
3826
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3827
 
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3828
 
if test -z "$INSTALL"; then
3829
 
if ${ac_cv_path_install+:} false; then :
3830
 
  $as_echo_n "(cached) " >&6
3831
 
else
3832
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833
 
for as_dir in $PATH
3834
 
do
3835
 
  IFS=$as_save_IFS
3836
 
  test -z "$as_dir" && as_dir=.
3837
 
    # Account for people who put trailing slashes in PATH elements.
3838
 
case $as_dir/ in @%:@((
3839
 
  ./ | .// | /[cC]/* | \
3840
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3841
 
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3842
 
  /usr/ucb/* ) ;;
3843
 
  *)
3844
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
3845
 
    # Don't use installbsd from OSF since it installs stuff as root
3846
 
    # by default.
3847
 
    for ac_prog in ginstall scoinst install; do
3848
 
      for ac_exec_ext in '' $ac_executable_extensions; do
3849
 
        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3850
 
          if test $ac_prog = install &&
3851
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3852
 
            # AIX install.  It has an incompatible calling convention.
3853
 
            :
3854
 
          elif test $ac_prog = install &&
3855
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3856
 
            # program-specific install script used by HP pwplus--don't use.
3857
 
            :
3858
 
          else
3859
 
            rm -rf conftest.one conftest.two conftest.dir
3860
 
            echo one > conftest.one
3861
 
            echo two > conftest.two
3862
 
            mkdir conftest.dir
3863
 
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3864
 
              test -s conftest.one && test -s conftest.two &&
3865
 
              test -s conftest.dir/conftest.one &&
3866
 
              test -s conftest.dir/conftest.two
3867
 
            then
3868
 
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3869
 
              break 3
3870
 
            fi
3871
 
          fi
3872
 
        fi
3873
 
      done
3874
 
    done
3875
 
    ;;
3876
 
esac
3877
 
 
3878
 
  done
3879
 
IFS=$as_save_IFS
3880
 
 
3881
 
rm -rf conftest.one conftest.two conftest.dir
3882
 
 
3883
 
fi
3884
 
  if test "${ac_cv_path_install+set}" = set; then
3885
 
    INSTALL=$ac_cv_path_install
3886
 
  else
3887
 
    # As a last resort, use the slow shell script.  Don't cache a
3888
 
    # value for INSTALL within a source directory, because that will
3889
 
    # break other packages using the cache if that directory is
3890
 
    # removed, or if the value is a relative name.
3891
 
    INSTALL=$ac_install_sh
3892
 
  fi
3893
 
fi
3894
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3895
 
$as_echo "$INSTALL" >&6; }
3896
 
 
3897
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3898
 
# It thinks the first close brace ends the variable substitution.
3899
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3900
 
 
3901
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3902
 
 
3903
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3904
 
 
3905
 
 
3906
 
if test -f etc/toolcheck; then
3907
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5
3908
 
$as_echo "$as_me: checking for buggy tools..." >&6;}
3909
 
sh etc/toolcheck 1>&6
3910
 
fi
3911
 
 
3912
 
 
3913
 
 
3914
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if a system-wide socket dir should be used" >&5
3915
 
$as_echo_n "checking if a system-wide socket dir should be used... " >&6; } 
3916
 
@%:@ Check whether --enable-socket-dir was given.
3917
 
if test "${enable_socket_dir+set}" = set; then :
3918
 
  enableval=$enable_socket_dir; 
3919
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no.  ~/.screen will be used instead." >&5
3920
 
$as_echo "no.  ~/.screen will be used instead." >&6; }
3921
 
    
3922
 
else
3923
 
  
3924
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3925
 
$as_echo "yes" >&6; }
3926
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the socket dir" >&5
3927
 
$as_echo_n "checking for the socket dir... " >&6; }
3928
 
        SOCKDIR="(eff_uid ? \"/tmp/uscreens\" : \"/tmp/screens\")"
3929
 
        
3930
 
@%:@ Check whether --with-socket-dir was given.
3931
 
if test "${with_socket_dir+set}" = set; then :
3932
 
  withval=$with_socket_dir;  
3933
 
          case "${withval}" in
3934
 
            *\"*) SOCKDIR="${withval}" ;;
3935
 
            *) SOCKDIR="\"${withval}\"" ;;
3936
 
          esac
3937
 
        
3938
 
fi
3939
 
 
3940
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SOCKDIR}" >&5
3941
 
$as_echo "${SOCKDIR}" >&6; }
3942
 
        cat >>confdefs.h <<_ACEOF
3943
 
@%:@define SOCKDIR $SOCKDIR
3944
 
_ACEOF
3945
 
 
3946
 
    
3947
 
 
3948
 
fi
3949
 
 
3950
 
 
3951
 
 
3952
 
if test -n "$ISC"; then
3953
 
  $as_echo "@%:@define ISC 1" >>confdefs.h
3954
 
 LIBS="$LIBS -linet"
3955
 
fi
3956
 
 
3957
 
 
3958
 
if test -f /sysV68 ; then
3959
 
$as_echo "@%:@define sysV68 1" >>confdefs.h
3960
 
 
3961
 
fi
3962
 
 
3963
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MIPS..." >&5
3964
 
$as_echo "$as_me: checking for MIPS..." >&6;}
3965
 
if test -f /lib/libmld.a || test -f /usr/lib/libmld.a || test -f /usr/lib/cmplrs/cc/libmld.a; then
3966
 
oldlibs="$LIBS"
3967
 
test -f /bin/mx || LIBS="$LIBS -lmld" # for nlist. But not on alpha.
3968
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking mld library..." >&5
3969
 
$as_echo "$as_me: checking mld library..." >&6;}
3970
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971
 
/* end confdefs.h.  */
3972
 
 
3973
 
int
3974
 
main ()
3975
 
{
3976
 
 
3977
 
  ;
3978
 
  return 0;
3979
 
}
3980
 
_ACEOF
3981
 
if ac_fn_c_try_link "$LINENO"; then :
3982
 
  
3983
 
else
3984
 
  LIBS="$oldlibs"
3985
 
fi
3986
 
rm -f core conftest.err conftest.$ac_objext \
3987
 
    conftest$ac_exeext conftest.$ac_ext
3988
 
if test -r /dev/ptc; then
3989
 
$as_echo "@%:@define MIPS 1" >>confdefs.h
3990
 
 
3991
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking wait3..." >&5
3992
 
$as_echo "$as_me: checking wait3..." >&6;}
3993
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994
 
/* end confdefs.h.  */
3995
 
 
3996
 
int
3997
 
main ()
3998
 
{
3999
 
wait3();
4000
 
  ;
4001
 
  return 0;
4002
 
}
4003
 
_ACEOF
4004
 
if ac_fn_c_try_link "$LINENO"; then :
4005
 
  
4006
 
else
4007
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking wait2..." >&5
4008
 
$as_echo "$as_me: checking wait2..." >&6;}
4009
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010
 
/* end confdefs.h.  */
4011
 
 
4012
 
int
4013
 
main ()
4014
 
{
4015
 
wait2();
4016
 
  ;
4017
 
  return 0;
4018
 
}
4019
 
_ACEOF
4020
 
if ac_fn_c_try_link "$LINENO"; then :
4021
 
  $as_echo "@%:@define USE_WAIT2 1" >>confdefs.h
4022
 
 LIBS="$LIBS -lbsd" ; CC="$CC -I/usr/include/bsd"
4023
 
 
4024
 
fi
4025
 
rm -f core conftest.err conftest.$ac_objext \
4026
 
    conftest$ac_exeext conftest.$ac_ext
4027
 
fi
4028
 
rm -f core conftest.err conftest.$ac_objext \
4029
 
    conftest$ac_exeext conftest.$ac_ext
4030
 
fi
4031
 
fi
4032
 
 
4033
 
 
4034
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ultrix..." >&5
4035
 
$as_echo "$as_me: checking for Ultrix..." >&6;}
4036
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037
 
/* end confdefs.h.  */
4038
 
#if defined(ultrix) || defined(__ultrix)
4039
 
   yes;
4040
 
#endif
4041
 
 
4042
 
_ACEOF
4043
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4044
 
  $EGREP "yes" >/dev/null 2>&1; then :
4045
 
  ULTRIX=1
4046
 
fi
4047
 
rm -f conftest*
4048
 
 
4049
 
 
4050
 
if test -f /usr/lib/libpyr.a ; then
4051
 
oldlibs="$LIBS"
4052
 
LIBS="$LIBS -lpyr"
4053
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Pyramid OSX..." >&5
4054
 
$as_echo "$as_me: checking Pyramid OSX..." >&6;}
4055
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056
 
/* end confdefs.h.  */
4057
 
 
4058
 
int
4059
 
main ()
4060
 
{
4061
 
open_controlling_pty("")
4062
 
  ;
4063
 
  return 0;
4064
 
}
4065
 
_ACEOF
4066
 
if ac_fn_c_try_link "$LINENO"; then :
4067
 
  $as_echo "@%:@define OSX 1" >>confdefs.h
4068
 
 
4069
 
else
4070
 
  LIBS="$oldlibs"
4071
 
fi
4072
 
rm -f core conftest.err conftest.$ac_objext \
4073
 
    conftest$ac_exeext conftest.$ac_ext
4074
 
fi
4075
 
 
4076
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for butterfly..." >&5
4077
 
$as_echo "$as_me: checking for butterfly..." >&6;}
4078
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079
 
/* end confdefs.h.  */
4080
 
#if defined(butterfly)
4081
 
  yes;
4082
 
#endif
4083
 
 
4084
 
_ACEOF
4085
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4086
 
  $EGREP "yes" >/dev/null 2>&1; then :
4087
 
  butterfly=1
4088
 
fi
4089
 
rm -f conftest*
4090
 
 
4091
 
 
4092
 
if test -z "$butterfly"; then
4093
 
if test -n "$ULTRIX"; then
4094
 
  test -z "$GCC" && CC="$CC -YBSD"
4095
 
fi
4096
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX.1..." >&5
4097
 
$as_echo "$as_me: checking for POSIX.1..." >&6;}
4098
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099
 
/* end confdefs.h.  */
4100
 
#include <sys/types.h>
4101
 
#include <unistd.h>
4102
 
main () {
4103
 
#ifdef _POSIX_VERSION
4104
 
  yes;
4105
 
#endif
4106
 
 
4107
 
_ACEOF
4108
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4109
 
  $EGREP "yes" >/dev/null 2>&1; then :
4110
 
  echo "- you have a POSIX system" 1>&6
4111
 
 $as_echo "@%:@define POSIX 1" >>confdefs.h
4112
 
 posix=1
4113
 
fi
4114
 
rm -f conftest*
4115
 
 
4116
 
fi
4117
 
 
4118
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for System V..." >&5
4119
 
$as_echo "$as_me: checking for System V..." >&6;}
4120
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121
 
/* end confdefs.h.  */
4122
 
#include <sys/types.h>
4123
 
#include <signal.h>
4124
 
#include <fcntl.h>
4125
 
int
4126
 
main ()
4127
 
{
4128
 
int x = SIGCHLD | FNDELAY;
4129
 
  ;
4130
 
  return 0;
4131
 
}
4132
 
_ACEOF
4133
 
if ac_fn_c_try_compile "$LINENO"; then :
4134
 
  
4135
 
else
4136
 
  $as_echo "@%:@define SYSV 1" >>confdefs.h
4137
 
 
4138
 
fi
4139
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4140
 
 
4141
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sequent/ptx..." >&5
4142
 
$as_echo "$as_me: checking for sequent/ptx..." >&6;}
4143
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144
 
/* end confdefs.h.  */
4145
 
#ifdef _SEQUENT_
4146
 
  yes;
4147
 
#endif
4148
 
 
4149
 
_ACEOF
4150
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4151
 
  $EGREP "yes" >/dev/null 2>&1; then :
4152
 
  LIBS="$LIBS -lsocket -linet";seqptx=1
4153
 
fi
4154
 
rm -f conftest*
4155
 
 
4156
 
 
4157
 
oldlibs="$LIBS"
4158
 
LIBS="$LIBS -lelf"
4159
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SVR4..." >&5
4160
 
$as_echo "$as_me: checking SVR4..." >&6;}
4161
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162
 
/* end confdefs.h.  */
4163
 
#include <utmpx.h>
4164
 
 
4165
 
int
4166
 
main ()
4167
 
{
4168
 
 
4169
 
  ;
4170
 
  return 0;
4171
 
}
4172
 
_ACEOF
4173
 
if ac_fn_c_try_link "$LINENO"; then :
4174
 
  ac_fn_c_check_header_mongrel "$LINENO" "dwarf.h" "ac_cv_header_dwarf_h" "$ac_includes_default"
4175
 
if test "x$ac_cv_header_dwarf_h" = xyes; then :
4176
 
  $as_echo "@%:@define SVR4 1" >>confdefs.h
4177
 
 $as_echo "@%:@define BUGGYGETLOGIN 1" >>confdefs.h
4178
 
 
4179
 
else
4180
 
  ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
4181
 
if test "x$ac_cv_header_elf_h" = xyes; then :
4182
 
  $as_echo "@%:@define SVR4 1" >>confdefs.h
4183
 
 $as_echo "@%:@define BUGGYGETLOGIN 1" >>confdefs.h
4184
 
 
4185
 
fi
4186
 
 
4187
 
 
4188
 
fi
4189
 
 
4190
 
 
4191
 
 
4192
 
else
4193
 
  LIBS="$oldlibs"
4194
 
fi
4195
 
rm -f core conftest.err conftest.$ac_objext \
4196
 
    conftest$ac_exeext conftest.$ac_ext
4197
 
for ac_header in stropts.h string.h strings.h
4198
 
do :
4199
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4200
 
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4201
 
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4202
 
  cat >>confdefs.h <<_ACEOF
4203
 
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4204
 
_ACEOF
4205
 
 
4206
 
fi
4207
 
 
4208
 
done
4209
 
 
4210
 
 
4211
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris 2.x..." >&5
4212
 
$as_echo "$as_me: checking for Solaris 2.x..." >&6;}
4213
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214
 
/* end confdefs.h.  */
4215
 
#if defined(SVR4) && defined(sun)
4216
 
  yes
4217
 
#endif
4218
 
 
4219
 
_ACEOF
4220
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4221
 
  $EGREP "yes" >/dev/null 2>&1; then :
4222
 
  LIBS="$LIBS -lsocket -lnsl -lkstat"
4223
 
fi
4224
 
rm -f conftest*
4225
 
 
4226
 
 
4227
 
 
4228
 
 
4229
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking BSD job jontrol..." >&5
4230
 
$as_echo "$as_me: checking BSD job jontrol..." >&6;}
4231
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232
 
/* end confdefs.h.  */
4233
 
#include <sys/types.h>
4234
 
#include <sys/ioctl.h>
4235
 
 
4236
 
int
4237
 
main ()
4238
 
{
4239
 
 
4240
 
#ifdef POSIX
4241
 
tcsetpgrp(0, 0);
4242
 
#else
4243
 
int x = TIOCSPGRP;
4244
 
#ifdef SYSV
4245
 
setpgrp();
4246
 
#else
4247
 
int y = TIOCNOTTY;
4248
 
#endif
4249
 
#endif
4250
 
 
4251
 
  ;
4252
 
  return 0;
4253
 
}
4254
 
_ACEOF
4255
 
if ac_fn_c_try_link "$LINENO"; then :
4256
 
  echo "- you have jobcontrol" 1>&6
4257
 
 $as_echo "@%:@define BSDJOBS 1" >>confdefs.h
4258
 
 
4259
 
else
4260
 
  echo "- you don't have jobcontrol" 1>&6
4261
 
 
4262
 
fi
4263
 
rm -f core conftest.err conftest.$ac_objext \
4264
 
    conftest$ac_exeext conftest.$ac_ext
4265
 
 
4266
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking setresuid..." >&5
4267
 
$as_echo "$as_me: checking setresuid..." >&6;}
4268
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269
 
/* end confdefs.h.  */
4270
 
 
4271
 
int
4272
 
main ()
4273
 
{
4274
 
 
4275
 
setresuid(0, 0, 0);
4276
 
 
4277
 
  ;
4278
 
  return 0;
4279
 
}
4280
 
_ACEOF
4281
 
if ac_fn_c_try_link "$LINENO"; then :
4282
 
  $as_echo "@%:@define HAVE_SETRESUID 1" >>confdefs.h
4283
 
 
4284
 
fi
4285
 
rm -f core conftest.err conftest.$ac_objext \
4286
 
    conftest$ac_exeext conftest.$ac_ext
4287
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking setreuid..." >&5
4288
 
$as_echo "$as_me: checking setreuid..." >&6;}
4289
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290
 
/* end confdefs.h.  */
4291
 
 
4292
 
int
4293
 
main ()
4294
 
{
4295
 
 
4296
 
setreuid(0, 0);
4297
 
 
4298
 
  ;
4299
 
  return 0;
4300
 
}
4301
 
_ACEOF
4302
 
if ac_fn_c_try_link "$LINENO"; then :
4303
 
  $as_echo "@%:@define HAVE_SETREUID 1" >>confdefs.h
4304
 
 
4305
 
fi
4306
 
rm -f core conftest.err conftest.$ac_objext \
4307
 
    conftest$ac_exeext conftest.$ac_ext
4308
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking seteuid..." >&5
4309
 
$as_echo "$as_me: checking seteuid..." >&6;}
4310
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311
 
/* end confdefs.h.  */
4312
 
 
4313
 
int
4314
 
main ()
4315
 
{
4316
 
 
4317
 
#if defined(linux) || defined(NeXT) || defined(_AUX_SOURCE) || defined(AUX) || defined(ultrix) || (defined(sun) && defined(SVR4)) || defined(ISC) || defined(sony_news)
4318
 
seteuid_is_broken(0);
4319
 
#else
4320
 
seteuid(0);
4321
 
#endif
4322
 
 
4323
 
  ;
4324
 
  return 0;
4325
 
}
4326
 
_ACEOF
4327
 
if ac_fn_c_try_link "$LINENO"; then :
4328
 
  $as_echo "@%:@define HAVE_SETEUID 1" >>confdefs.h
4329
 
 
4330
 
fi
4331
 
rm -f core conftest.err conftest.$ac_objext \
4332
 
    conftest$ac_exeext conftest.$ac_ext
4333
 
 
4334
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking execvpe..." >&5
4335
 
$as_echo "$as_me: checking execvpe..." >&6;}
4336
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337
 
/* end confdefs.h.  */
4338
 
 
4339
 
int
4340
 
main ()
4341
 
{
4342
 
 
4343
 
    execvpe(0, 0, 0);
4344
 
 
4345
 
  ;
4346
 
  return 0;
4347
 
}
4348
 
_ACEOF
4349
 
if ac_fn_c_try_link "$LINENO"; then :
4350
 
  $as_echo "@%:@define HAVE_EXECVPE 1" >>confdefs.h
4351
 
 
4352
 
CFLAGS="$CFLAGS -D_GNU_SOURCE"
4353
 
fi
4354
 
rm -f core conftest.err conftest.$ac_objext \
4355
 
    conftest$ac_exeext conftest.$ac_ext
4356
 
 
4357
 
 
4358
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking select..." >&5
4359
 
$as_echo "$as_me: checking select..." >&6;}
4360
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361
 
/* end confdefs.h.  */
4362
 
 
4363
 
int
4364
 
main ()
4365
 
{
4366
 
select(0, 0, 0, 0, 0);
4367
 
  ;
4368
 
  return 0;
4369
 
}
4370
 
_ACEOF
4371
 
if ac_fn_c_try_link "$LINENO"; then :
4372
 
  
4373
 
else
4374
 
  LIBS="$LIBS -lnet -lnsl"
4375
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking select with $LIBS..." >&5
4376
 
$as_echo "$as_me: checking select with $LIBS..." >&6;}
4377
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378
 
/* end confdefs.h.  */
4379
 
 
4380
 
int
4381
 
main ()
4382
 
{
4383
 
select(0, 0, 0, 0, 0);
4384
 
  ;
4385
 
  return 0;
4386
 
}
4387
 
_ACEOF
4388
 
if ac_fn_c_try_link "$LINENO"; then :
4389
 
  
4390
 
else
4391
 
  as_fn_error $? "!!! no select - no screen" "$LINENO" 5
4392
 
fi
4393
 
rm -f core conftest.err conftest.$ac_objext \
4394
 
    conftest$ac_exeext conftest.$ac_ext
4395
 
 
4396
 
fi
4397
 
rm -f core conftest.err conftest.$ac_objext \
4398
 
    conftest$ac_exeext conftest.$ac_ext
4399
 
 
4400
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking fifos..." >&5
4401
 
$as_echo "$as_me: checking fifos..." >&6;}
4402
 
if test "$cross_compiling" = yes; then :
4403
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4404
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4405
 
as_fn_error $? "cannot run test program while cross compiling
4406
 
See \`config.log' for more details" "$LINENO" 5; }
4407
 
else
4408
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409
 
/* end confdefs.h.  */
4410
 
 
4411
 
/* For select - According to POSIX 1003.1-2001 */
4412
 
#include <sys/select.h>
4413
 
 
4414
 
/* For select - According to earlier standards */
4415
 
#include <sys/time.h>
4416
 
#include <sys/types.h>
4417
 
#include <unistd.h>
4418
 
 
4419
 
#include <sys/stat.h>
4420
 
#include <fcntl.h>
4421
 
 
4422
 
#ifndef O_NONBLOCK
4423
 
#define O_NONBLOCK O_NDELAY
4424
 
#endif
4425
 
#ifndef S_IFIFO
4426
 
#define S_IFIFO 0010000
4427
 
#endif
4428
 
 
4429
 
char *fin = "/tmp/conftest$$";
4430
 
 
4431
 
main()
4432
 
{
4433
 
  struct stat stb;
4434
 
  fd_set f;
4435
 
 
4436
 
  (void)alarm(5);
4437
 
  unlink(fin);
4438
 
#ifdef POSIX
4439
 
  if (mkfifo(fin, 0777))
4440
 
#else
4441
 
  if (mknod(fin, S_IFIFO|0777, 0))
4442
 
#endif
4443
 
    exit(1);
4444
 
  if (stat(fin, &stb) || (stb.st_mode & S_IFIFO) != S_IFIFO)
4445
 
    exit(1);
4446
 
  close(0);
4447
 
#ifdef __386BSD__
4448
 
  /*
4449
 
   * The next test fails under 386BSD, but screen works using fifos.
4450
 
   * Fifos in O_RDWR mode are only used for the BROKEN_PIPE case and for
4451
 
   * the select() configuration test.
4452
 
   */
4453
 
  exit(0);
4454
 
#endif
4455
 
  if (open(fin, O_RDONLY | O_NONBLOCK))
4456
 
    exit(1);
4457
 
  if (fork() == 0)
4458
 
    {
4459
 
      close(0);
4460
 
      if (open(fin, O_WRONLY | O_NONBLOCK))
4461
 
        exit(1);
4462
 
      close(0);
4463
 
      if (open(fin, O_WRONLY | O_NONBLOCK))
4464
 
        exit(1);
4465
 
      if (write(0, "TEST", 4) == -1)
4466
 
        exit(1);
4467
 
      exit(0);
4468
 
    }
4469
 
  FD_SET(0, &f);
4470
 
  if (select(1, &f, 0, 0, 0) == -1)
4471
 
    exit(1);
4472
 
  exit(0);
4473
 
}
4474
 
 
4475
 
_ACEOF
4476
 
if ac_fn_c_try_run "$LINENO"; then :
4477
 
  echo "- your fifos are usable" 1>&6
4478
 
 fifo=1
4479
 
else
4480
 
  echo "- your fifos are not usable" 1>&6
4481
 
 
4482
 
fi
4483
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4484
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
4485
 
fi
4486
 
 
4487
 
rm -f /tmp/conftest*
4488
 
 
4489
 
if test -n "$fifo"; then
4490
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken fifo implementation..." >&5
4491
 
$as_echo "$as_me: checking for broken fifo implementation..." >&6;}
4492
 
if test "$cross_compiling" = yes; then :
4493
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4494
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4495
 
as_fn_error $? "cannot run test program while cross compiling
4496
 
See \`config.log' for more details" "$LINENO" 5; }
4497
 
else
4498
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499
 
/* end confdefs.h.  */
4500
 
 
4501
 
/* For select - According to POSIX 1003.1-2001 */
4502
 
#include <sys/select.h>
4503
 
 
4504
 
/* For select - According to earlier standards */
4505
 
#include <sys/time.h>
4506
 
#include <sys/types.h>
4507
 
#include <unistd.h>
4508
 
 
4509
 
#include <sys/stat.h>
4510
 
#include <fcntl.h>
4511
 
 
4512
 
#ifndef O_NONBLOCK
4513
 
#define O_NONBLOCK O_NDELAY
4514
 
#endif
4515
 
#ifndef S_IFIFO
4516
 
#define S_IFIFO 0010000
4517
 
#endif
4518
 
 
4519
 
char *fin = "/tmp/conftest$$";
4520
 
 
4521
 
main()
4522
 
{
4523
 
  struct timeval tv;
4524
 
  fd_set f;
4525
 
 
4526
 
#ifdef POSIX
4527
 
  if (mkfifo(fin, 0600))
4528
 
#else
4529
 
  if (mknod(fin, S_IFIFO|0600, 0))
4530
 
#endif
4531
 
    exit(1);
4532
 
  close(0);
4533
 
  if (open(fin, O_RDONLY|O_NONBLOCK))
4534
 
    exit(1);
4535
 
  FD_SET(0, &f);
4536
 
  tv.tv_sec = 1;
4537
 
  tv.tv_usec = 0;
4538
 
  if (select(1, &f, 0, 0, &tv))
4539
 
    exit(1);
4540
 
  exit(0);
4541
 
}
4542
 
 
4543
 
_ACEOF
4544
 
if ac_fn_c_try_run "$LINENO"; then :
4545
 
  echo "- your implementation is ok" 1>&6
4546
 
 
4547
 
else
4548
 
  echo "- you have a broken implementation" 1>&6
4549
 
 $as_echo "@%:@define BROKEN_PIPE 1" >>confdefs.h
4550
 
 fifobr=1
4551
 
fi
4552
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4553
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
4554
 
fi
4555
 
 
4556
 
rm -f /tmp/conftest*
4557
 
fi
4558
 
 
4559
 
 
4560
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sockets..." >&5
4561
 
$as_echo "$as_me: checking sockets..." >&6;}
4562
 
if test "$cross_compiling" = yes; then :
4563
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4564
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4565
 
as_fn_error $? "cannot run test program while cross compiling
4566
 
See \`config.log' for more details" "$LINENO" 5; }
4567
 
else
4568
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569
 
/* end confdefs.h.  */
4570
 
 
4571
 
/* For select - According to POSIX 1003.1-2001 */
4572
 
#include <sys/select.h>
4573
 
 
4574
 
/* For select - According to earlier standards */
4575
 
#include <sys/time.h>
4576
 
#include <sys/types.h>
4577
 
#include <unistd.h>
4578
 
 
4579
 
#include <sys/stat.h>
4580
 
#include <fcntl.h>
4581
 
#include <sys/socket.h>
4582
 
#include <sys/un.h>
4583
 
 
4584
 
char *son = "/tmp/conftest$$";
4585
 
 
4586
 
main()
4587
 
{
4588
 
  int s1, s2, l;
4589
 
  struct sockaddr_un a;
4590
 
  fd_set f;
4591
 
 
4592
 
  (void)alarm(5);
4593
 
  if ((s1 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
4594
 
    exit(1);
4595
 
  a.sun_family = AF_UNIX;
4596
 
  strcpy(a.sun_path, son);
4597
 
  (void) unlink(son);
4598
 
  if (bind(s1, (struct sockaddr *) &a, strlen(son)+2) == -1)
4599
 
    exit(1);
4600
 
  if (listen(s1, 2))
4601
 
    exit(1);
4602
 
  if (fork() == 0)
4603
 
    {
4604
 
      if ((s2 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
4605
 
        kill(getppid(), 3);
4606
 
      (void)connect(s2, (struct sockaddr *)&a, strlen(son) + 2);
4607
 
      if (write(s2, "HELLO", 5) == -1)
4608
 
        kill(getppid(), 3);
4609
 
      exit(0);
4610
 
    }
4611
 
  l = sizeof(a);
4612
 
  close(0);
4613
 
  if (accept(s1, &a, &l))
4614
 
    exit(1);
4615
 
  FD_SET(0, &f);
4616
 
  if (select(1, &f, 0, 0, 0) == -1)
4617
 
    exit(1);
4618
 
  exit(0);
4619
 
}
4620
 
 
4621
 
_ACEOF
4622
 
if ac_fn_c_try_run "$LINENO"; then :
4623
 
  echo "- your sockets are usable" 1>&6
4624
 
 sock=1
4625
 
else
4626
 
  echo "- your sockets are not usable" 1>&6
4627
 
 
4628
 
fi
4629
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4630
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
4631
 
fi
4632
 
 
4633
 
rm -f /tmp/conftest*
4634
 
 
4635
 
if test -n "$sock"; then
4636
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking socket implementation..." >&5
4637
 
$as_echo "$as_me: checking socket implementation..." >&6;}
4638
 
if test "$cross_compiling" = yes; then :
4639
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4640
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4641
 
as_fn_error $? "cannot run test program while cross compiling
4642
 
See \`config.log' for more details" "$LINENO" 5; }
4643
 
else
4644
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645
 
/* end confdefs.h.  */
4646
 
 
4647
 
/* For select - According to POSIX 1003.1-2001 */
4648
 
#include <sys/select.h>
4649
 
 
4650
 
/* For select - According to earlier standards */
4651
 
#include <sys/time.h>
4652
 
#include <sys/types.h>
4653
 
#include <unistd.h>
4654
 
 
4655
 
#include <sys/stat.h>
4656
 
#include <sys/socket.h>
4657
 
#include <sys/un.h>
4658
 
 
4659
 
char *son = "/tmp/conftest$$";
4660
 
 
4661
 
main()
4662
 
{
4663
 
  int s;
4664
 
  struct stat stb;
4665
 
  struct sockaddr_un a;
4666
 
  if ((s = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
4667
 
    exit(0);
4668
 
  a.sun_family = AF_UNIX;
4669
 
  strcpy(a.sun_path, son);
4670
 
  (void) unlink(son);
4671
 
  if (bind(s, (struct sockaddr *) &a, strlen(son)+2) == -1)
4672
 
    exit(0);
4673
 
  if (stat(son, &stb))
4674
 
    exit(1);
4675
 
  close(s);
4676
 
  exit(0);
4677
 
}
4678
 
 
4679
 
_ACEOF
4680
 
if ac_fn_c_try_run "$LINENO"; then :
4681
 
  echo "- you are normal" 1>&6
4682
 
 
4683
 
else
4684
 
  echo "- unix domain sockets are not kept in the filesystem" 1>&6
4685
 
 
4686
 
$as_echo "@%:@define SOCK_NOT_IN_FS 1" >>confdefs.h
4687
 
 socknofs=1
4688
 
fi
4689
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4690
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
4691
 
fi
4692
 
 
4693
 
rm -f /tmp/conftest*
4694
 
fi
4695
 
 
4696
 
 
4697
 
if test -n "$fifo"; then
4698
 
  if test -n "$sock"; then
4699
 
    if test -n "$nore"; then
4700
 
      echo "- hmmm... better take the fifos" 1>&6
4701
 
 
4702
 
      $as_echo "@%:@define NAMEDPIPE 1" >>confdefs.h
4703
 
 
4704
 
    elif test -n "$fifobr"; then
4705
 
      echo "- as your fifos are broken lets use the sockets." 1>&6
4706
 
 
4707
 
    else
4708
 
      echo "- both sockets and fifos usable. let's take sockets." 1>&6
4709
 
 
4710
 
    fi
4711
 
  else
4712
 
    echo "- using named pipes" 1>&6
4713
 
 
4714
 
    $as_echo "@%:@define NAMEDPIPE 1" >>confdefs.h
4715
 
 
4716
 
  fi
4717
 
elif test -n "$sock"; then
4718
 
  echo "- using unix-domain sockets" 1>&6
4719
 
 
4720
 
else
4721
 
  as_fn_error $? "you have neither usable sockets nor usable pipes -> no screen" "$LINENO" 5
4722
 
fi
4723
 
 
4724
 
 
4725
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking select return value..." >&5
4726
 
$as_echo "$as_me: checking select return value..." >&6;}
4727
 
if test "$cross_compiling" = yes; then :
4728
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4729
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4730
 
as_fn_error $? "cannot run test program while cross compiling
4731
 
See \`config.log' for more details" "$LINENO" 5; }
4732
 
else
4733
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734
 
/* end confdefs.h.  */
4735
 
 
4736
 
/* For select - According to POSIX 1003.1-2001 */
4737
 
#include <sys/select.h>
4738
 
 
4739
 
/* For select - According to earlier standards */
4740
 
#include <sys/time.h>
4741
 
#include <sys/types.h>
4742
 
#include <unistd.h>
4743
 
 
4744
 
#include <sys/stat.h>
4745
 
#include <fcntl.h>
4746
 
 
4747
 
char *nam = "/tmp/conftest$$";
4748
 
 
4749
 
#ifdef NAMEDPIPE
4750
 
 
4751
 
#ifndef O_NONBLOCK
4752
 
#define O_NONBLOCK O_NDELAY
4753
 
#endif
4754
 
#ifndef S_IFIFO
4755
 
#define S_IFIFO 0010000
4756
 
#endif
4757
 
 
4758
 
 
4759
 
main()
4760
 
{
4761
 
  fd_set f;
4762
 
 
4763
 
#ifdef __FreeBSD__
4764
 
/* From Andrew A. Chernov (ache@astral.msk.su):
4765
 
 * opening RDWR fifo fails in BSD 4.4, but select return values are
4766
 
 * right.
4767
 
 */
4768
 
  exit(0);
4769
 
#endif
4770
 
  (void)alarm(5);
4771
 
#ifdef POSIX
4772
 
  if (mkfifo(nam, 0777))
4773
 
#else
4774
 
  if (mknod(nam, S_IFIFO|0777, 0))
4775
 
#endif
4776
 
    exit(1);
4777
 
  close(0);
4778
 
  if (open(nam, O_RDWR | O_NONBLOCK))
4779
 
    exit(1);
4780
 
  if (write(0, "TEST", 4) == -1)
4781
 
    exit(1);
4782
 
 
4783
 
#else
4784
 
 
4785
 
#include <sys/types.h>
4786
 
#include <sys/socket.h>
4787
 
#include <sys/un.h>
4788
 
 
4789
 
main()
4790
 
{
4791
 
  int s1, s2, l;
4792
 
  struct sockaddr_un a;
4793
 
  fd_set f;
4794
 
 
4795
 
  (void)alarm(5);
4796
 
  if ((s1 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
4797
 
    exit(1);
4798
 
  a.sun_family = AF_UNIX;
4799
 
  strcpy(a.sun_path, nam);
4800
 
  (void) unlink(nam);
4801
 
  if (bind(s1, (struct sockaddr *) &a, strlen(nam)+2) == -1)
4802
 
    exit(1);
4803
 
  if (listen(s1, 2))
4804
 
    exit(1);
4805
 
  if (fork() == 0)
4806
 
    {
4807
 
      if ((s2 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
4808
 
        kill(getppid(), 3);
4809
 
      (void)connect(s2, (struct sockaddr *)&a, strlen(nam) + 2);
4810
 
      if (write(s2, "HELLO", 5) == -1)
4811
 
        kill(getppid(), 3);
4812
 
      exit(0);
4813
 
    }
4814
 
  l = sizeof(a);
4815
 
  close(0);
4816
 
  if (accept(s1, (struct sockaddr *)&a, &l))
4817
 
    exit(1);
4818
 
#endif
4819
 
 
4820
 
 
4821
 
  FD_SET(0, &f);
4822
 
  if (select(1, &f, 0, 0, 0) == -1)
4823
 
    exit(1);
4824
 
  if (select(1, &f, &f, 0, 0) != 2)
4825
 
    exit(1);
4826
 
  exit(0);
4827
 
}
4828
 
 
4829
 
_ACEOF
4830
 
if ac_fn_c_try_run "$LINENO"; then :
4831
 
  echo "- select is ok" 1>&6
4832
 
 
4833
 
else
4834
 
  echo "- select can't count" 1>&6
4835
 
 $as_echo "@%:@define SELECT_BROKEN 1" >>confdefs.h
4836
 
 
4837
 
fi
4838
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4839
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
4840
 
fi
4841
 
 
4842
 
 
4843
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent..." >&5
4844
 
$as_echo "$as_me: checking for tgetent..." >&6;}
4845
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4846
 
/* end confdefs.h.  */
4847
 
 
4848
 
int
4849
 
main ()
4850
 
{
4851
 
tgetent((char *)0, (char *)0);
4852
 
  ;
4853
 
  return 0;
4854
 
}
4855
 
_ACEOF
4856
 
if ac_fn_c_try_link "$LINENO"; then :
4857
 
  
4858
 
else
4859
 
  olibs="$LIBS"
4860
 
LIBS="-lcurses $olibs"
4861
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libcurses..." >&5
4862
 
$as_echo "$as_me: checking libcurses..." >&6;}
4863
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864
 
/* end confdefs.h.  */
4865
 
 
4866
 
int
4867
 
main ()
4868
 
{
4869
 
 
4870
 
#ifdef __hpux
4871
 
__sorry_hpux_libcurses_is_totally_broken_in_10_10();
4872
 
#else
4873
 
tgetent((char *)0, (char *)0);
4874
 
#endif
4875
 
 
4876
 
  ;
4877
 
  return 0;
4878
 
}
4879
 
_ACEOF
4880
 
if ac_fn_c_try_link "$LINENO"; then :
4881
 
  
4882
 
else
4883
 
  LIBS="-ltermcap $olibs"
4884
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libtermcap..." >&5
4885
 
$as_echo "$as_me: checking libtermcap..." >&6;}
4886
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887
 
/* end confdefs.h.  */
4888
 
 
4889
 
int
4890
 
main ()
4891
 
{
4892
 
tgetent((char *)0, (char *)0);
4893
 
  ;
4894
 
  return 0;
4895
 
}
4896
 
_ACEOF
4897
 
if ac_fn_c_try_link "$LINENO"; then :
4898
 
  
4899
 
else
4900
 
  LIBS="-ltermlib $olibs"
4901
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libtermlib..." >&5
4902
 
$as_echo "$as_me: checking libtermlib..." >&6;}
4903
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904
 
/* end confdefs.h.  */
4905
 
 
4906
 
int
4907
 
main ()
4908
 
{
4909
 
tgetent((char *)0, (char *)0);
4910
 
  ;
4911
 
  return 0;
4912
 
}
4913
 
_ACEOF
4914
 
if ac_fn_c_try_link "$LINENO"; then :
4915
 
  
4916
 
else
4917
 
  LIBS="-lncursesw $olibs"
4918
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libncursesw..." >&5
4919
 
$as_echo "$as_me: checking libncursesw..." >&6;}
4920
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921
 
/* end confdefs.h.  */
4922
 
 
4923
 
int
4924
 
main ()
4925
 
{
4926
 
tgetent((char *)0, (char *)0);
4927
 
  ;
4928
 
  return 0;
4929
 
}
4930
 
_ACEOF
4931
 
if ac_fn_c_try_link "$LINENO"; then :
4932
 
  
4933
 
else
4934
 
  LIBS="-ltinfow $olibs"
4935
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libtinfow..." >&5
4936
 
$as_echo "$as_me: checking libtinfow..." >&6;}
4937
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938
 
/* end confdefs.h.  */
4939
 
 
4940
 
int
4941
 
main ()
4942
 
{
4943
 
tgetent((char *)0, (char *)0);
4944
 
  ;
4945
 
  return 0;
4946
 
}
4947
 
_ACEOF
4948
 
if ac_fn_c_try_link "$LINENO"; then :
4949
 
  
4950
 
else
4951
 
  LIBS="-lncurses $olibs"
4952
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libncurses..." >&5
4953
 
$as_echo "$as_me: checking libncurses..." >&6;}
4954
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955
 
/* end confdefs.h.  */
4956
 
 
4957
 
int
4958
 
main ()
4959
 
{
4960
 
tgetent((char *)0, (char *)0);
4961
 
  ;
4962
 
  return 0;
4963
 
}
4964
 
_ACEOF
4965
 
if ac_fn_c_try_link "$LINENO"; then :
4966
 
  
4967
 
else
4968
 
  LIBS="-ltinfo $olibs"
4969
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libtinfo..." >&5
4970
 
$as_echo "$as_me: checking libtinfo..." >&6;}
4971
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972
 
/* end confdefs.h.  */
4973
 
 
4974
 
int
4975
 
main ()
4976
 
{
4977
 
tgetent((char *)0, (char *)0);
4978
 
  ;
4979
 
  return 0;
4980
 
}
4981
 
_ACEOF
4982
 
if ac_fn_c_try_link "$LINENO"; then :
4983
 
  
4984
 
else
4985
 
  as_fn_error $? "!!! no tgetent - no screen" "$LINENO" 5
4986
 
fi
4987
 
rm -f core conftest.err conftest.$ac_objext \
4988
 
    conftest$ac_exeext conftest.$ac_ext
4989
 
fi
4990
 
rm -f core conftest.err conftest.$ac_objext \
4991
 
    conftest$ac_exeext conftest.$ac_ext
4992
 
fi
4993
 
rm -f core conftest.err conftest.$ac_objext \
4994
 
    conftest$ac_exeext conftest.$ac_ext
4995
 
fi
4996
 
rm -f core conftest.err conftest.$ac_objext \
4997
 
    conftest$ac_exeext conftest.$ac_ext
4998
 
fi
4999
 
rm -f core conftest.err conftest.$ac_objext \
5000
 
    conftest$ac_exeext conftest.$ac_ext
5001
 
fi
5002
 
rm -f core conftest.err conftest.$ac_objext \
5003
 
    conftest$ac_exeext conftest.$ac_ext
5004
 
fi
5005
 
rm -f core conftest.err conftest.$ac_objext \
5006
 
    conftest$ac_exeext conftest.$ac_ext
5007
 
fi
5008
 
rm -f core conftest.err conftest.$ac_objext \
5009
 
    conftest$ac_exeext conftest.$ac_ext
5010
 
 
5011
 
if test "$cross_compiling" = yes; then :
5012
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5013
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5014
 
as_fn_error $? "cannot run test program while cross compiling
5015
 
See \`config.log' for more details" "$LINENO" 5; }
5016
 
else
5017
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018
 
/* end confdefs.h.  */
5019
 
 
5020
 
main()
5021
 
{
5022
 
 exit(strcmp(tgoto("%p1%d", 0, 1), "1") ? 0 : 1);
5023
 
}
5024
 
_ACEOF
5025
 
if ac_fn_c_try_run "$LINENO"; then :
5026
 
  echo "- you use the termcap database" 1>&6
5027
 
 
5028
 
else
5029
 
  echo "- you use the terminfo database" 1>&6
5030
 
 $as_echo "@%:@define TERMINFO 1" >>confdefs.h
5031
 
 
5032
 
fi
5033
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5034
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5035
 
fi
5036
 
 
5037
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ospeed..." >&5
5038
 
$as_echo "$as_me: checking ospeed..." >&6;}
5039
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040
 
/* end confdefs.h.  */
5041
 
extern short ospeed;
5042
 
int
5043
 
main ()
5044
 
{
5045
 
ospeed=5;
5046
 
  ;
5047
 
  return 0;
5048
 
}
5049
 
_ACEOF
5050
 
if ac_fn_c_try_link "$LINENO"; then :
5051
 
  
5052
 
else
5053
 
  $as_echo "@%:@define NEED_OSPEED 1" >>confdefs.h
5054
 
 
5055
 
fi
5056
 
rm -f core conftest.err conftest.$ac_objext \
5057
 
    conftest$ac_exeext conftest.$ac_ext
5058
 
 
5059
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc..." >&5
5060
 
$as_echo "$as_me: checking for /dev/ptc..." >&6;}
5061
 
if test -r /dev/ptc; then
5062
 
$as_echo "@%:@define HAVE_DEV_PTC 1" >>confdefs.h
5063
 
 
5064
 
fi
5065
 
 
5066
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys..." >&5
5067
 
$as_echo "$as_me: checking for SVR4 ptys..." >&6;}
5068
 
sysvr4ptys=
5069
 
if test -c /dev/ptmx ; then
5070
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071
 
/* end confdefs.h.  */
5072
 
 
5073
 
int
5074
 
main ()
5075
 
{
5076
 
ptsname(0);grantpt(0);unlockpt(0);
5077
 
  ;
5078
 
  return 0;
5079
 
}
5080
 
_ACEOF
5081
 
if ac_fn_c_try_link "$LINENO"; then :
5082
 
  $as_echo "@%:@define HAVE_SVR4_PTYS 1" >>confdefs.h
5083
 
 
5084
 
sysvr4ptys=1
5085
 
fi
5086
 
rm -f core conftest.err conftest.$ac_objext \
5087
 
    conftest$ac_exeext conftest.$ac_ext
5088
 
fi
5089
 
 
5090
 
for ac_func in getpt
5091
 
do :
5092
 
  ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
5093
 
if test "x$ac_cv_func_getpt" = xyes; then :
5094
 
  cat >>confdefs.h <<_ACEOF
5095
 
@%:@define HAVE_GETPT 1
5096
 
_ACEOF
5097
 
 
5098
 
fi
5099
 
done
5100
 
 
5101
 
 
5102
 
if test -z "$sysvr4ptys"; then
5103
 
for ac_func in openpty
5104
 
do :
5105
 
  ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
5106
 
if test "x$ac_cv_func_openpty" = xyes; then :
5107
 
  cat >>confdefs.h <<_ACEOF
5108
 
@%:@define HAVE_OPENPTY 1
5109
 
_ACEOF
5110
 
 
5111
 
else
5112
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
5113
 
$as_echo_n "checking for openpty in -lutil... " >&6; }
5114
 
if ${ac_cv_lib_util_openpty+:} false; then :
5115
 
  $as_echo_n "(cached) " >&6
5116
 
else
5117
 
  ac_check_lib_save_LIBS=$LIBS
5118
 
LIBS="-lutil  $LIBS"
5119
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120
 
/* end confdefs.h.  */
5121
 
 
5122
 
/* Override any GCC internal prototype to avoid an error.
5123
 
   Use char because int might match the return type of a GCC
5124
 
   builtin and then its argument prototype would still apply.  */
5125
 
#ifdef __cplusplus
5126
 
extern "C"
5127
 
#endif
5128
 
char openpty ();
5129
 
int
5130
 
main ()
5131
 
{
5132
 
return openpty ();
5133
 
  ;
5134
 
  return 0;
5135
 
}
5136
 
_ACEOF
5137
 
if ac_fn_c_try_link "$LINENO"; then :
5138
 
  ac_cv_lib_util_openpty=yes
5139
 
else
5140
 
  ac_cv_lib_util_openpty=no
5141
 
fi
5142
 
rm -f core conftest.err conftest.$ac_objext \
5143
 
    conftest$ac_exeext conftest.$ac_ext
5144
 
LIBS=$ac_check_lib_save_LIBS
5145
 
fi
5146
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
5147
 
$as_echo "$ac_cv_lib_util_openpty" >&6; }
5148
 
if test "x$ac_cv_lib_util_openpty" = xyes; then :
5149
 
  $as_echo "@%:@define HAVE_OPENPTY 1" >>confdefs.h
5150
 
 LIBS="$LIBS -lutil"
5151
 
fi
5152
 
 
5153
 
fi
5154
 
done
5155
 
 
5156
 
fi
5157
 
 
5158
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges..." >&5
5159
 
$as_echo "$as_me: checking for ptyranges..." >&6;}
5160
 
if test -d /dev/ptym ; then
5161
 
pdir='/dev/ptym'
5162
 
else
5163
 
pdir='/dev'
5164
 
fi
5165
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166
 
/* end confdefs.h.  */
5167
 
#ifdef M_UNIX
5168
 
   yes;
5169
 
#endif
5170
 
 
5171
 
_ACEOF
5172
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5173
 
  $EGREP "yes" >/dev/null 2>&1; then :
5174
 
  ptys=`echo /dev/ptyp??`
5175
 
else
5176
 
  ptys=`echo $pdir/pty??`
5177
 
fi
5178
 
rm -f conftest*
5179
 
 
5180
 
if test "$ptys" != "$pdir/pty??" ; then
5181
 
p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
5182
 
p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
5183
 
cat >>confdefs.h <<_ACEOF
5184
 
@%:@define PTYRANGE0 "$p0"
5185
 
_ACEOF
5186
 
 
5187
 
cat >>confdefs.h <<_ACEOF
5188
 
@%:@define PTYRANGE1 "$p1"
5189
 
_ACEOF
5190
 
 
5191
 
fi
5192
 
 
5193
 
 
5194
 
@%:@ Check whether --with-pty-mode was given.
5195
 
if test "${with_pty_mode+set}" = set; then :
5196
 
  withval=$with_pty_mode;  ptymode="${withval}" 
5197
 
fi
5198
 
 
5199
 
 
5200
 
@%:@ Check whether --with-pty-group was given.
5201
 
if test "${with_pty_group+set}" = set; then :
5202
 
  withval=$with_pty_group;  ptygrp="${withval}" 
5203
 
fi
5204
 
 
5205
 
test -n "$ptymode" || ptymode=0620
5206
 
if test -n "$ptygrp" ; then
5207
 
cat >>confdefs.h <<_ACEOF
5208
 
@%:@define PTYMODE $ptymode
5209
 
_ACEOF
5210
 
 
5211
 
cat >>confdefs.h <<_ACEOF
5212
 
@%:@define PTYGROUP $ptygrp
5213
 
_ACEOF
5214
 
 
5215
 
else
5216
 
 
5217
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group..." >&5
5218
 
$as_echo "$as_me: checking default tty permissions/group..." >&6;}
5219
 
rm -f conftest_grp
5220
 
if test "$cross_compiling" = yes; then :
5221
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5222
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5223
 
as_fn_error $? "cannot run test program while cross compiling
5224
 
See \`config.log' for more details" "$LINENO" 5; }
5225
 
else
5226
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227
 
/* end confdefs.h.  */
5228
 
 
5229
 
#include <sys/types.h>
5230
 
#include <sys/stat.h>
5231
 
#include <stdio.h>
5232
 
main()
5233
 
{
5234
 
  struct stat sb;
5235
 
  char *x,*ttyname();
5236
 
  int om, m;
5237
 
  FILE *fp;
5238
 
 
5239
 
  if (!(x = ttyname(0))) exit(1);
5240
 
  if (stat(x, &sb)) exit(1);
5241
 
  om = sb.st_mode;
5242
 
  if (om & 002) exit(0);
5243
 
  m = system("mesg y");
5244
 
  if (m == -1 || m == 127) exit(1);
5245
 
  if (stat(x, &sb)) exit(1);
5246
 
  m = sb.st_mode;
5247
 
  if (chmod(x, om)) exit(1);
5248
 
  if (m & 002) exit(0);
5249
 
  if (sb.st_gid == getgid()) exit(1);
5250
 
  if (!(fp=fopen("conftest_grp", "w")))
5251
 
    exit(1);
5252
 
  fprintf(fp, "%d\n", sb.st_gid);
5253
 
  fclose(fp);
5254
 
  exit(0);
5255
 
}
5256
 
 
5257
 
_ACEOF
5258
 
if ac_fn_c_try_run "$LINENO"; then :
5259
 
  
5260
 
    if test -f conftest_grp; then
5261
 
        ptygrp=`cat conftest_grp`
5262
 
        echo "- pty mode: $ptymode, group: $ptygrp" 1>&6
5263
 
 
5264
 
        cat >>confdefs.h <<_ACEOF
5265
 
@%:@define PTYMODE $ptymode
5266
 
_ACEOF
5267
 
 
5268
 
        cat >>confdefs.h <<_ACEOF
5269
 
@%:@define PTYGROUP $ptygrp
5270
 
_ACEOF
5271
 
 
5272
 
    else
5273
 
        echo "- ptys are world accessable" 1>&6
5274
 
 
5275
 
    fi
5276
 
 
5277
 
else
5278
 
  
5279
 
    WRITEPATH=''
5280
 
    XTERMPATH=''
5281
 
    # Extract the first word of "write", so it can be a program name with args.
5282
 
set dummy write; ac_word=$2
5283
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284
 
$as_echo_n "checking for $ac_word... " >&6; }
5285
 
if ${ac_cv_path_WRITEPATH+:} false; then :
5286
 
  $as_echo_n "(cached) " >&6
5287
 
else
5288
 
  case $WRITEPATH in
5289
 
  [\\/]* | ?:[\\/]*)
5290
 
  ac_cv_path_WRITEPATH="$WRITEPATH" # Let the user override the test with a path.
5291
 
  ;;
5292
 
  *)
5293
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294
 
for as_dir in $PATH
5295
 
do
5296
 
  IFS=$as_save_IFS
5297
 
  test -z "$as_dir" && as_dir=.
5298
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5299
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5300
 
    ac_cv_path_WRITEPATH="$as_dir/$ac_word$ac_exec_ext"
5301
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302
 
    break 2
5303
 
  fi
5304
 
done
5305
 
  done
5306
 
IFS=$as_save_IFS
5307
 
 
5308
 
  ;;
5309
 
esac
5310
 
fi
5311
 
WRITEPATH=$ac_cv_path_WRITEPATH
5312
 
if test -n "$WRITEPATH"; then
5313
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WRITEPATH" >&5
5314
 
$as_echo "$WRITEPATH" >&6; }
5315
 
else
5316
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317
 
$as_echo "no" >&6; }
5318
 
fi
5319
 
 
5320
 
 
5321
 
    # Extract the first word of "xterm", so it can be a program name with args.
5322
 
set dummy xterm; ac_word=$2
5323
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5324
 
$as_echo_n "checking for $ac_word... " >&6; }
5325
 
if ${ac_cv_path_XTERMPATH+:} false; then :
5326
 
  $as_echo_n "(cached) " >&6
5327
 
else
5328
 
  case $XTERMPATH in
5329
 
  [\\/]* | ?:[\\/]*)
5330
 
  ac_cv_path_XTERMPATH="$XTERMPATH" # Let the user override the test with a path.
5331
 
  ;;
5332
 
  *)
5333
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334
 
for as_dir in $PATH
5335
 
do
5336
 
  IFS=$as_save_IFS
5337
 
  test -z "$as_dir" && as_dir=.
5338
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5339
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5340
 
    ac_cv_path_XTERMPATH="$as_dir/$ac_word$ac_exec_ext"
5341
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5342
 
    break 2
5343
 
  fi
5344
 
done
5345
 
  done
5346
 
IFS=$as_save_IFS
5347
 
 
5348
 
  ;;
5349
 
esac
5350
 
fi
5351
 
XTERMPATH=$ac_cv_path_XTERMPATH
5352
 
if test -n "$XTERMPATH"; then
5353
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XTERMPATH" >&5
5354
 
$as_echo "$XTERMPATH" >&6; }
5355
 
else
5356
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357
 
$as_echo "no" >&6; }
5358
 
fi
5359
 
 
5360
 
 
5361
 
    found=
5362
 
    if test -n "$WRITEPATH$XTERMPATH"; then
5363
 
      findfollow=
5364
 
      lsfollow=
5365
 
      found=`find $WRITEPATH $XTERMPATH -follow -print 2>/dev/null`
5366
 
      if test -n "$found"; then
5367
 
        findfollow=-follow
5368
 
        lsfollow=L
5369
 
      fi
5370
 
      if test -n "$XTERMPATH"; then
5371
 
        ptygrpn=`ls -l$lsfollow $XTERMPATH | sed -n -e 1p | $AWK '{print $4}'`
5372
 
        if test tty != "$ptygrpn"; then
5373
 
          XTERMPATH=
5374
 
        fi
5375
 
      fi
5376
 
    fi
5377
 
    if test -n "$WRITEPATH$XTERMPATH"; then
5378
 
      found=`find $WRITEPATH $XTERMPATH $findfollow -perm -2000 -print` 
5379
 
      if test -n "$found"; then
5380
 
        ptygrp=`ls -ln$lsfollow $found | sed -n -e 1p | $AWK '{print $4}'`
5381
 
        echo "- pty mode: $ptymode, group: $ptygrp" 1>&6
5382
 
 
5383
 
        cat >>confdefs.h <<_ACEOF
5384
 
@%:@define PTYMODE $ptymode
5385
 
_ACEOF
5386
 
 
5387
 
        cat >>confdefs.h <<_ACEOF
5388
 
@%:@define PTYGROUP $ptygrp
5389
 
_ACEOF
5390
 
 
5391
 
      else
5392
 
        echo "- ptys are world accessable" 1>&6
5393
 
 
5394
 
      fi
5395
 
    else
5396
 
      echo "- can't determine - assume ptys are world accessable" 1>&6
5397
 
 
5398
 
    fi
5399
 
  
5400
 
 
5401
 
fi
5402
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5403
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5404
 
fi
5405
 
 
5406
 
rm -f conftest_grp
5407
 
fi
5408
 
 
5409
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getutent..." >&5
5410
 
$as_echo "$as_me: checking getutent..." >&6;}
5411
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412
 
/* end confdefs.h.  */
5413
 
 
5414
 
#include <time.h> /* to get time_t on SCO */
5415
 
#include <sys/types.h>
5416
 
#if defined(SVR4) && !defined(DGUX)
5417
 
#include <utmpx.h>
5418
 
#define utmp utmpx
5419
 
#else
5420
 
#include <utmp.h>
5421
 
#endif
5422
 
#ifdef __hpux
5423
 
#define pututline _pututline
5424
 
#endif
5425
 
 
5426
 
int
5427
 
main ()
5428
 
{
5429
 
int x = DEAD_PROCESS; pututline((struct utmp *)0); getutent();
5430
 
  ;
5431
 
  return 0;
5432
 
}
5433
 
_ACEOF
5434
 
if ac_fn_c_try_link "$LINENO"; then :
5435
 
  $as_echo "@%:@define GETUTENT 1" >>confdefs.h
5436
 
 
5437
 
else
5438
 
  olibs="$LIBS"
5439
 
LIBS="$LIBS -lgen"
5440
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getutent with -lgen..." >&5
5441
 
$as_echo "$as_me: checking getutent with -lgen..." >&6;}
5442
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443
 
/* end confdefs.h.  */
5444
 
 
5445
 
#include <time.h>
5446
 
#include <sys/types.h>
5447
 
#if defined(SVR4) && !defined(DGUX)
5448
 
#include <utmpx.h>
5449
 
#define utmp utmpx
5450
 
#else
5451
 
#include <utmp.h>
5452
 
#endif
5453
 
#ifdef __hpux
5454
 
#define pututline _pututline
5455
 
#endif
5456
 
 
5457
 
int
5458
 
main ()
5459
 
{
5460
 
int x = DEAD_PROCESS; pututline((struct utmp *)0); getutent();
5461
 
  ;
5462
 
  return 0;
5463
 
}
5464
 
_ACEOF
5465
 
if ac_fn_c_try_link "$LINENO"; then :
5466
 
  $as_echo "@%:@define GETUTENT 1" >>confdefs.h
5467
 
 
5468
 
else
5469
 
  LIBS="$olibs"
5470
 
fi
5471
 
rm -f core conftest.err conftest.$ac_objext \
5472
 
    conftest$ac_exeext conftest.$ac_ext
5473
 
 
5474
 
fi
5475
 
rm -f core conftest.err conftest.$ac_objext \
5476
 
    conftest$ac_exeext conftest.$ac_ext
5477
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ut_host..." >&5
5478
 
$as_echo "$as_me: checking ut_host..." >&6;}
5479
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480
 
/* end confdefs.h.  */
5481
 
 
5482
 
#include <time.h>
5483
 
#include <sys/types.h>
5484
 
#if defined(SVR4) && !defined(DGUX)
5485
 
#include <utmpx.h>
5486
 
#define utmp utmpx
5487
 
#else
5488
 
#include <utmp.h>
5489
 
#endif
5490
 
 
5491
 
int
5492
 
main ()
5493
 
{
5494
 
struct utmp u; u.ut_host[0] = 0;
5495
 
  ;
5496
 
  return 0;
5497
 
}
5498
 
_ACEOF
5499
 
if ac_fn_c_try_compile "$LINENO"; then :
5500
 
  $as_echo "@%:@define UTHOST 1" >>confdefs.h
5501
 
 
5502
 
fi
5503
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504
 
ac_fn_c_check_header_mongrel "$LINENO" "utempter.h" "ac_cv_header_utempter_h" "$ac_includes_default"
5505
 
if test "x$ac_cv_header_utempter_h" = xyes; then :
5506
 
  have_utempter=yes
5507
 
else
5508
 
  have_utempter=no
5509
 
fi
5510
 
 
5511
 
 
5512
 
if test "$have_utempter" = yes; then
5513
 
  $as_echo "@%:@define HAVE_UTEMPTER 1" >>confdefs.h
5514
 
 
5515
 
  LIBS="$LIBS -lutempter"
5516
 
fi
5517
 
 
5518
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libutil(s)..." >&5
5519
 
$as_echo "$as_me: checking for libutil(s)..." >&6;}
5520
 
test -f /usr/lib/libutils.a && LIBS="$LIBS -lutils"
5521
 
test -f /usr/lib/libutil.a && LIBS="$LIBS -lutil"
5522
 
 
5523
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getloadavg..." >&5
5524
 
$as_echo "$as_me: checking getloadavg..." >&6;}
5525
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526
 
/* end confdefs.h.  */
5527
 
 
5528
 
int
5529
 
main ()
5530
 
{
5531
 
getloadavg((double *)0, 0);
5532
 
  ;
5533
 
  return 0;
5534
 
}
5535
 
_ACEOF
5536
 
if ac_fn_c_try_link "$LINENO"; then :
5537
 
  $as_echo "@%:@define LOADAV_GETLOADAVG 1" >>confdefs.h
5538
 
 load=1
5539
 
else
5540
 
  if test -f /usr/lib/libkvm.a ; then
5541
 
olibs="$LIBS"
5542
 
LIBS="$LIBS -lkvm"
5543
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getloadavg with -lkvm..." >&5
5544
 
$as_echo "$as_me: checking getloadavg with -lkvm..." >&6;}
5545
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546
 
/* end confdefs.h.  */
5547
 
 
5548
 
int
5549
 
main ()
5550
 
{
5551
 
getloadavg((double *)0, 0);
5552
 
  ;
5553
 
  return 0;
5554
 
}
5555
 
_ACEOF
5556
 
if ac_fn_c_try_link "$LINENO"; then :
5557
 
  $as_echo "@%:@define LOADAV_GETLOADAVG 1" >>confdefs.h
5558
 
 load=1
5559
 
else
5560
 
  LIBS="$olibs"
5561
 
fi
5562
 
rm -f core conftest.err conftest.$ac_objext \
5563
 
    conftest$ac_exeext conftest.$ac_ext
5564
 
fi
5565
 
 
5566
 
fi
5567
 
rm -f core conftest.err conftest.$ac_objext \
5568
 
    conftest$ac_exeext conftest.$ac_ext
5569
 
 
5570
 
if test -z "$load" ; then
5571
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572
 
/* end confdefs.h.  */
5573
 
#if defined(NeXT) || defined(apollo) || defined(linux)
5574
 
  yes;
5575
 
#endif
5576
 
 
5577
 
_ACEOF
5578
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5579
 
  $EGREP "yes" >/dev/null 2>&1; then :
5580
 
  load=1
5581
 
fi
5582
 
rm -f conftest*
5583
 
 
5584
 
fi
5585
 
if test -z "$load" ; then
5586
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernelfile..." >&5
5587
 
$as_echo "$as_me: checking for kernelfile..." >&6;}
5588
 
for core in /unix /vmunix /dynix /hp-ux /xelos /dev/ksyms /kernel/unix /kernel/genunix /unicos /mach /netbsd /386bsd /dgux /bsd /stand/vmunix; do
5589
 
  if test -f $core || test -c $core; then
5590
 
    break
5591
 
  fi
5592
 
done
5593
 
if test ! -f $core && test ! -c $core ; then
5594
 
  echo "- no kernelfile found" 1>&6
5595
 
 
5596
 
else
5597
 
  echo "- using kernelfile '$core'" 1>&6
5598
 
 
5599
 
  if test -r $core ; then
5600
 
  cat >>confdefs.h <<_ACEOF
5601
 
@%:@define LOADAV_UNIX "$core"
5602
 
_ACEOF
5603
 
 
5604
 
  ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
5605
 
if test "x$ac_cv_header_nlist_h" = xyes; then :
5606
 
  $as_echo "@%:@define NLIST_STRUCT 1" >>confdefs.h
5607
 
 
5608
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking n_un in struct nlist..." >&5
5609
 
$as_echo "$as_me: checking n_un in struct nlist..." >&6;}
5610
 
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611
 
/* end confdefs.h.  */
5612
 
#include <nlist.h>
5613
 
int
5614
 
main ()
5615
 
{
5616
 
struct nlist n; n.n_un.n_name = 0;
5617
 
  ;
5618
 
  return 0;
5619
 
}
5620
 
_ACEOF
5621
 
if ac_fn_c_try_compile "$LINENO"; then :
5622
 
  $as_echo "@%:@define NLIST_NAME_UNION 1" >>confdefs.h
5623
 
 
5624
 
fi
5625
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5626
 
fi
5627
 
 
5628
 
 
5629
 
 
5630
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist declaration..." >&5
5631
 
$as_echo "$as_me: checking for nlist declaration..." >&6;}
5632
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633
 
/* end confdefs.h.  */
5634
 
 
5635
 
#ifdef NLIST_STRUCT
5636
 
# include <nlist.h>
5637
 
#else
5638
 
# include <a.out.h>
5639
 
#endif
5640
 
 
5641
 
_ACEOF
5642
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5643
 
  $EGREP "nlist(( |     )( |    )*.*\(|\()" >/dev/null 2>&1; then :
5644
 
  $as_echo "@%:@define NLIST_DECLARED 1" >>confdefs.h
5645
 
 
5646
 
fi
5647
 
rm -f conftest*
5648
 
 
5649
 
 
5650
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avenrun symbol..." >&5
5651
 
$as_echo "$as_me: checking for avenrun symbol..." >&6;}
5652
 
  nlist64=
5653
 
  for av in avenrun _avenrun _Loadavg avenrun _avenrun _Loadavg; do
5654
 
  if test "$cross_compiling" = yes; then :
5655
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5656
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5657
 
as_fn_error $? "cannot run test program while cross compiling
5658
 
See \`config.log' for more details" "$LINENO" 5; }
5659
 
else
5660
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661
 
/* end confdefs.h.  */
5662
 
 
5663
 
#include <sys/types.h>
5664
 
#ifdef NLIST_STRUCT
5665
 
#include <nlist.h>
5666
 
#else
5667
 
#include <a.out.h>
5668
 
#endif
5669
 
 
5670
 
$nlist64
5671
 
 
5672
 
struct nlist nl[2];
5673
 
 
5674
 
main()
5675
 
{
5676
 
#if !defined(_AUX_SOURCE) && !defined(AUX)
5677
 
# ifdef NLIST_NAME_UNION
5678
 
  nl[0].n_un.n_name = "$av";
5679
 
# else
5680
 
  nl[0].n_name = "$av";
5681
 
# endif
5682
 
#else
5683
 
  strncpy(nl[0].n_name, "$av", sizeof(nl[0].n_name));
5684
 
#endif
5685
 
  nlist(LOADAV_UNIX, nl);
5686
 
  if (nl[0].n_value == 0)
5687
 
    exit(1);
5688
 
  exit(0);
5689
 
}
5690
 
  
5691
 
_ACEOF
5692
 
if ac_fn_c_try_run "$LINENO"; then :
5693
 
  avensym=$av;break
5694
 
fi
5695
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5696
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5697
 
fi
5698
 
 
5699
 
  if test "$av" = _Loadavg; then
5700
 
    nlist64='#define nlist nlist64'
5701
 
  fi
5702
 
  done
5703
 
  if test -z "$avensym" ; then
5704
 
    echo "- no avenrun symbol found" 1>&6
5705
 
 
5706
 
  else
5707
 
    echo "- using avenrun symbol '$avensym'" 1>&6
5708
 
 
5709
 
    cat >>confdefs.h <<_ACEOF
5710
 
@%:@define LOADAV_AVENRUN "$avensym"
5711
 
_ACEOF
5712
 
 
5713
 
    if test -n "$nlist64"; then
5714
 
      echo "- used nlist64 to find it" 1>&6
5715
 
 
5716
 
      $as_echo "@%:@define LOADAV_USE_NLIST64 1" >>confdefs.h
5717
 
 
5718
 
    fi
5719
 
    load=1
5720
 
  fi
5721
 
  else
5722
 
    echo "Can't configure the load average display feature" 1>&6
5723
 
 
5724
 
    echo "because $core is not readable by you." 1>&6
5725
 
 
5726
 
    echo "To configure the load average display feature" 1>&6
5727
 
 
5728
 
    echo "re-run configure as root if possible." 1>&6
5729
 
 
5730
 
    echo "If you are not the system administrator then disregard" 1>&6
5731
 
 
5732
 
    echo "this warning.  You can still use screen without" 1>&6
5733
 
 
5734
 
    echo "the load average display feature." 1>&6
5735
 
 
5736
 
  fi
5737
 
fi
5738
 
fi
5739
 
 
5740
 
cat > conftest.c <<EOF
5741
 
#include "confdefs.h"
5742
 
 
5743
 
#include <sys/types.h>
5744
 
#include <sys/param.h>
5745
 
 
5746
 
_CUT_HERE_
5747
 
 
5748
 
#if !defined(LOADAV_GETLOADAVG) && ((defined(hp300) && !defined(__hpux)) || defined(sun) || (defined(ultrix) && defined(mips)) || defined(_SEQUENT_) || defined(sgi) || (defined(SVR4) && !defined(__hpux)) || defined(sony_news) || (!defined(__osf__) && defined(__alpha)) || defined(_IBMR2) || defined(_AUX_SOURCE) || defined(AUX) || defined(m88k))
5749
 
loadtype=long
5750
 
# if defined(apollo) || defined(_IBMR2) || defined(_AUX_SOURCE) || defined(AUX)
5751
 
loadscale=65536
5752
 
# else
5753
 
#  if defined(FSCALE) && !defined(__osf__)
5754
 
#   undef FSCALE
5755
 
loadscale=FSCALE
5756
 
#  else
5757
 
#   ifdef sgi
5758
 
loadtype=int
5759
 
loadscale=1024
5760
 
#   else
5761
 
#    if defined(MIPS) || defined(SVR4) || defined(m88k)
5762
 
loadscale=256
5763
 
#    else /* not MIPS */
5764
 
loadscale=1000  /* our default value */
5765
 
#    endif /* MIPS */
5766
 
#   endif /* sgi */
5767
 
#  endif /* not FSCALE */
5768
 
# endif /* not apollo */
5769
 
#else
5770
 
loadtype=double
5771
 
loadscale=1
5772
 
#endif
5773
 
#ifdef alliant
5774
 
loadnum=4
5775
 
#else
5776
 
loadnum=3
5777
 
#endif
5778
 
 
5779
 
EOF
5780
 
eval "$ac_cpp conftest.c 2>&5 | sed -e '1,/_CUT_HERE_/d' -e 's/ //g' > conftest.out"
5781
 
. ./conftest.out
5782
 
rm -f conftest*
5783
 
 
5784
 
 
5785
 
if test -n "$load" ; then $as_echo "@%:@define LOADAV 1" >>confdefs.h
5786
 
 fi
5787
 
if test -n "$loadtype" ; then cat >>confdefs.h <<_ACEOF
5788
 
@%:@define LOADAV_TYPE $loadtype
5789
 
_ACEOF
5790
 
 fi
5791
 
if test -n "$loadnum" ; then cat >>confdefs.h <<_ACEOF
5792
 
@%:@define LOADAV_NUM $loadnum
5793
 
_ACEOF
5794
 
 fi
5795
 
if test -n "$loadscale" ; then cat >>confdefs.h <<_ACEOF
5796
 
@%:@define LOADAV_SCALE $loadscale
5797
 
_ACEOF
5798
 
 fi
5799
 
 
5800
 
if test -n "$posix" ; then
5801
 
 
5802
 
echo "assuming posix signal definition" 1>&6
5803
 
 
5804
 
$as_echo "@%:@define SIGVOID 1" >>confdefs.h
5805
 
 
5806
 
 
5807
 
else
5808
 
 
5809
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers..." >&5
5810
 
$as_echo "$as_me: checking return type of signal handlers..." >&6;}
5811
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812
 
/* end confdefs.h.  */
5813
 
#include <sys/types.h>
5814
 
#include <signal.h>
5815
 
#ifdef signal
5816
 
#undef signal
5817
 
#endif
5818
 
extern void (*signal ()) ();
5819
 
int
5820
 
main ()
5821
 
{
5822
 
int i;
5823
 
  ;
5824
 
  return 0;
5825
 
}
5826
 
_ACEOF
5827
 
if ac_fn_c_try_compile "$LINENO"; then :
5828
 
  $as_echo "@%:@define SIGVOID 1" >>confdefs.h
5829
 
 
5830
 
fi
5831
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sigset..." >&5
5833
 
$as_echo "$as_me: checking sigset..." >&6;}
5834
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835
 
/* end confdefs.h.  */
5836
 
 
5837
 
#include <sys/types.h>
5838
 
#include <signal.h>
5839
 
 
5840
 
int
5841
 
main ()
5842
 
{
5843
 
 
5844
 
#ifdef SIGVOID
5845
 
sigset(0, (void (*)())0);
5846
 
#else
5847
 
sigset(0, (int (*)())0);
5848
 
#endif
5849
 
 
5850
 
  ;
5851
 
  return 0;
5852
 
}
5853
 
_ACEOF
5854
 
if ac_fn_c_try_link "$LINENO"; then :
5855
 
  $as_echo "@%:@define USESIGSET 1" >>confdefs.h
5856
 
 
5857
 
fi
5858
 
rm -f core conftest.err conftest.$ac_objext \
5859
 
    conftest$ac_exeext conftest.$ac_ext
5860
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking signal implementation..." >&5
5861
 
$as_echo "$as_me: checking signal implementation..." >&6;}
5862
 
if test "$cross_compiling" = yes; then :
5863
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5864
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5865
 
as_fn_error $? "cannot run test program while cross compiling
5866
 
See \`config.log' for more details" "$LINENO" 5; }
5867
 
else
5868
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869
 
/* end confdefs.h.  */
5870
 
 
5871
 
#include <sys/types.h>
5872
 
#include <signal.h>
5873
 
 
5874
 
#ifndef SIGCLD
5875
 
#define SIGCLD SIGCHLD
5876
 
#endif
5877
 
#ifdef USESIGSET
5878
 
#define signal sigset
5879
 
#endif
5880
 
 
5881
 
int got;
5882
 
 
5883
 
#ifdef SIGVOID
5884
 
void
5885
 
#endif
5886
 
hand()
5887
 
{
5888
 
  got++;
5889
 
}
5890
 
 
5891
 
main()
5892
 
{
5893
 
  /* on hpux we use sigvec to get bsd signals */
5894
 
#ifdef __hpux
5895
 
  (void)signal(SIGCLD, hand);
5896
 
  kill(getpid(), SIGCLD);
5897
 
  kill(getpid(), SIGCLD);
5898
 
  if (got < 2)
5899
 
    exit(1);
5900
 
#endif
5901
 
  exit(0);
5902
 
}
5903
 
 
5904
 
_ACEOF
5905
 
if ac_fn_c_try_run "$LINENO"; then :
5906
 
  
5907
 
else
5908
 
  $as_echo "@%:@define SYSVSIGS 1" >>confdefs.h
5909
 
 
5910
 
fi
5911
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5912
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5913
 
fi
5914
 
 
5915
 
 
5916
 
fi
5917
 
 
5918
 
 
5919
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt and sec libraries..." >&5
5920
 
$as_echo "$as_me: checking for crypt and sec libraries..." >&6;}
5921
 
test -f /lib/libcrypt_d.a || test -f /usr/lib/libcrypt_d.a && LIBS="$LIBS -lcrypt_d"
5922
 
oldlibs="$LIBS"
5923
 
LIBS="$LIBS -lcrypt"
5924
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking crypt..." >&5
5925
 
$as_echo "$as_me: checking crypt..." >&6;}
5926
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927
 
/* end confdefs.h.  */
5928
 
 
5929
 
int
5930
 
main ()
5931
 
{
5932
 
 
5933
 
  ;
5934
 
  return 0;
5935
 
}
5936
 
_ACEOF
5937
 
if ac_fn_c_try_link "$LINENO"; then :
5938
 
  
5939
 
else
5940
 
  LIBS="$oldlibs"
5941
 
fi
5942
 
rm -f core conftest.err conftest.$ac_objext \
5943
 
    conftest$ac_exeext conftest.$ac_ext
5944
 
test -f /lib/libsec.a || test -f /usr/lib/libsec.a && LIBS="$LIBS -lsec"
5945
 
test -f /lib/libshadow.a || test -f /usr/lib/libshadow.a && LIBS="$LIBS -lshadow"
5946
 
oldlibs="$LIBS"
5947
 
LIBS="$LIBS -lsun"
5948
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIX sun library..." >&5
5949
 
$as_echo "$as_me: checking IRIX sun library..." >&6;}
5950
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951
 
/* end confdefs.h.  */
5952
 
 
5953
 
int
5954
 
main ()
5955
 
{
5956
 
 
5957
 
  ;
5958
 
  return 0;
5959
 
}
5960
 
_ACEOF
5961
 
if ac_fn_c_try_link "$LINENO"; then :
5962
 
  
5963
 
else
5964
 
  LIBS="$oldlibs"
5965
 
fi
5966
 
rm -f core conftest.err conftest.$ac_objext \
5967
 
    conftest$ac_exeext conftest.$ac_ext
5968
 
 
5969
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking syslog..." >&5
5970
 
$as_echo "$as_me: checking syslog..." >&6;}
5971
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972
 
/* end confdefs.h.  */
5973
 
 
5974
 
int
5975
 
main ()
5976
 
{
5977
 
closelog();
5978
 
  ;
5979
 
  return 0;
5980
 
}
5981
 
_ACEOF
5982
 
if ac_fn_c_try_link "$LINENO"; then :
5983
 
  
5984
 
else
5985
 
  oldlibs="$LIBS"
5986
 
LIBS="$LIBS -lbsd"
5987
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking syslog in libbsd.a..." >&5
5988
 
$as_echo "$as_me: checking syslog in libbsd.a..." >&6;}
5989
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990
 
/* end confdefs.h.  */
5991
 
 
5992
 
int
5993
 
main ()
5994
 
{
5995
 
closelog();
5996
 
  ;
5997
 
  return 0;
5998
 
}
5999
 
_ACEOF
6000
 
if ac_fn_c_try_link "$LINENO"; then :
6001
 
  echo "- found." 1>&6
6002
 
 
6003
 
else
6004
 
  LIBS="$oldlibs"
6005
 
echo "- bad news: syslog missing." 1>&6
6006
 
 $as_echo "@%:@define NOSYSLOG 1" >>confdefs.h
6007
 
 
6008
 
fi
6009
 
rm -f core conftest.err conftest.$ac_objext \
6010
 
    conftest$ac_exeext conftest.$ac_ext
6011
 
fi
6012
 
rm -f core conftest.err conftest.$ac_objext \
6013
 
    conftest$ac_exeext conftest.$ac_ext
6014
 
 
6015
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016
 
/* end confdefs.h.  */
6017
 
#ifdef M_UNIX
6018
 
   yes;
6019
 
#endif
6020
 
 
6021
 
_ACEOF
6022
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6023
 
  $EGREP "yes" >/dev/null 2>&1; then :
6024
 
  LIBS="$LIBS -lsocket -lcrypt_i"
6025
 
fi
6026
 
rm -f conftest*
6027
 
 
6028
 
 
6029
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking wait union..." >&5
6030
 
$as_echo "$as_me: checking wait union..." >&6;}
6031
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032
 
/* end confdefs.h.  */
6033
 
#include <sys/types.h>
6034
 
#include <sys/wait.h>
6035
 
 
6036
 
int
6037
 
main ()
6038
 
{
6039
 
 
6040
 
  union wait x;
6041
 
  int y;
6042
 
#ifdef WEXITSTATUS
6043
 
  y = WEXITSTATUS(x);
6044
 
#endif
6045
 
 
6046
 
  ;
6047
 
  return 0;
6048
 
}
6049
 
_ACEOF
6050
 
if ac_fn_c_try_compile "$LINENO"; then :
6051
 
  $as_echo "@%:@define BSDWAIT 1" >>confdefs.h
6052
 
 
6053
 
fi
6054
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055
 
 
6056
 
if test -z "$butterfly"; then
6057
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for termio or termios..." >&5
6058
 
$as_echo "$as_me: checking for termio or termios..." >&6;}
6059
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060
 
/* end confdefs.h.  */
6061
 
#include <termio.h>
6062
 
_ACEOF
6063
 
if ac_fn_c_try_cpp "$LINENO"; then :
6064
 
  $as_echo "@%:@define TERMIO 1" >>confdefs.h
6065
 
 
6066
 
else
6067
 
  if test -n "$posix"; then
6068
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069
 
/* end confdefs.h.  */
6070
 
#include <termios.h>
6071
 
_ACEOF
6072
 
if ac_fn_c_try_cpp "$LINENO"; then :
6073
 
  $as_echo "@%:@define TERMIO 1" >>confdefs.h
6074
 
 
6075
 
fi
6076
 
rm -f conftest.err conftest.i conftest.$ac_ext
6077
 
fi
6078
 
 
6079
 
fi
6080
 
rm -f conftest.err conftest.i conftest.$ac_ext
6081
 
fi
6082
 
 
6083
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getspnam..." >&5
6084
 
$as_echo "$as_me: checking getspnam..." >&6;}
6085
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6086
 
/* end confdefs.h.  */
6087
 
#include <shadow.h>
6088
 
int
6089
 
main ()
6090
 
{
6091
 
getspnam("x");
6092
 
  ;
6093
 
  return 0;
6094
 
}
6095
 
_ACEOF
6096
 
if ac_fn_c_try_link "$LINENO"; then :
6097
 
  $as_echo "@%:@define SHADOWPW 1" >>confdefs.h
6098
 
 
6099
 
fi
6100
 
rm -f core conftest.err conftest.$ac_objext \
6101
 
    conftest$ac_exeext conftest.$ac_ext
6102
 
 
6103
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getttyent..." >&5
6104
 
$as_echo "$as_me: checking getttyent..." >&6;}
6105
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106
 
/* end confdefs.h.  */
6107
 
 
6108
 
int
6109
 
main ()
6110
 
{
6111
 
getttyent();
6112
 
  ;
6113
 
  return 0;
6114
 
}
6115
 
_ACEOF
6116
 
if ac_fn_c_try_link "$LINENO"; then :
6117
 
  $as_echo "@%:@define GETTTYENT 1" >>confdefs.h
6118
 
 
6119
 
fi
6120
 
rm -f core conftest.err conftest.$ac_objext \
6121
 
    conftest$ac_exeext conftest.$ac_ext
6122
 
 
6123
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking fdwalk..." >&5
6124
 
$as_echo "$as_me: checking fdwalk..." >&6;}
6125
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126
 
/* end confdefs.h.  */
6127
 
#include <stdlib.h>
6128
 
int
6129
 
main ()
6130
 
{
6131
 
fdwalk(NULL, NULL);
6132
 
  ;
6133
 
  return 0;
6134
 
}
6135
 
_ACEOF
6136
 
if ac_fn_c_try_link "$LINENO"; then :
6137
 
  $as_echo "@%:@define HAVE_FDWALK 1" >>confdefs.h
6138
 
 
6139
 
fi
6140
 
rm -f core conftest.err conftest.$ac_objext \
6141
 
    conftest$ac_exeext conftest.$ac_ext
6142
 
 
6143
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy/memmove/bcopy handles overlapping arguments..." >&5
6144
 
$as_echo "$as_me: checking whether memcpy/memmove/bcopy handles overlapping arguments..." >&6;}
6145
 
if test "$cross_compiling" = yes; then :
6146
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6147
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6148
 
as_fn_error $? "cannot run test program while cross compiling
6149
 
See \`config.log' for more details" "$LINENO" 5; }
6150
 
else
6151
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152
 
/* end confdefs.h.  */
6153
 
 
6154
 
main() {
6155
 
  char buf[10];
6156
 
  strcpy(buf, "abcdefghi");
6157
 
  bcopy(buf, buf + 2, 3);
6158
 
  if (strncmp(buf, "ababcf", 6))
6159
 
    exit(1);
6160
 
  strcpy(buf, "abcdefghi");
6161
 
  bcopy(buf + 2, buf, 3);
6162
 
  if (strncmp(buf, "cdedef", 6))
6163
 
    exit(1);
6164
 
  exit(0); /* libc version works properly.  */
6165
 
}
6166
 
_ACEOF
6167
 
if ac_fn_c_try_run "$LINENO"; then :
6168
 
  $as_echo "@%:@define USEBCOPY 1" >>confdefs.h
6169
 
 
6170
 
fi
6171
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6172
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
6173
 
fi
6174
 
 
6175
 
 
6176
 
if test "$cross_compiling" = yes; then :
6177
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6178
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6179
 
as_fn_error $? "cannot run test program while cross compiling
6180
 
See \`config.log' for more details" "$LINENO" 5; }
6181
 
else
6182
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183
 
/* end confdefs.h.  */
6184
 
 
6185
 
#define bcopy(s,d,l) memmove(d,s,l)
6186
 
main() {
6187
 
  char buf[10];
6188
 
  strcpy(buf, "abcdefghi");
6189
 
  bcopy(buf, buf + 2, 3);
6190
 
  if (strncmp(buf, "ababcf", 6))
6191
 
    exit(1);
6192
 
  strcpy(buf, "abcdefghi");
6193
 
  bcopy(buf + 2, buf, 3);
6194
 
  if (strncmp(buf, "cdedef", 6))
6195
 
    exit(1);
6196
 
  exit(0); /* libc version works properly.  */
6197
 
}
6198
 
_ACEOF
6199
 
if ac_fn_c_try_run "$LINENO"; then :
6200
 
  $as_echo "@%:@define USEMEMMOVE 1" >>confdefs.h
6201
 
 
6202
 
fi
6203
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6204
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
6205
 
fi
6206
 
 
6207
 
 
6208
 
 
6209
 
if test "$cross_compiling" = yes; then :
6210
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6211
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6212
 
as_fn_error $? "cannot run test program while cross compiling
6213
 
See \`config.log' for more details" "$LINENO" 5; }
6214
 
else
6215
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216
 
/* end confdefs.h.  */
6217
 
 
6218
 
#define bcopy(s,d,l) memcpy(d,s,l)
6219
 
main() {
6220
 
  char buf[10];
6221
 
  strcpy(buf, "abcdefghi");
6222
 
  bcopy(buf, buf + 2, 3);
6223
 
  if (strncmp(buf, "ababcf", 6))
6224
 
    exit(1);
6225
 
  strcpy(buf, "abcdefghi");
6226
 
  bcopy(buf + 2, buf, 3);
6227
 
  if (strncmp(buf, "cdedef", 6))
6228
 
    exit(1);
6229
 
  exit(0); /* libc version works properly.  */
6230
 
}
6231
 
_ACEOF
6232
 
if ac_fn_c_try_run "$LINENO"; then :
6233
 
  $as_echo "@%:@define USEMEMCPY 1" >>confdefs.h
6234
 
 
6235
 
fi
6236
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6237
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
6238
 
fi
6239
 
 
6240
 
 
6241
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
6242
 
$as_echo_n "checking for long file names... " >&6; }
6243
 
if ${ac_cv_sys_long_file_names+:} false; then :
6244
 
  $as_echo_n "(cached) " >&6
6245
 
else
6246
 
  ac_cv_sys_long_file_names=yes
6247
 
# Test for long file names in all the places we know might matter:
6248
 
#      .                the current directory, where building will happen
6249
 
#      $prefix/lib      where we will be installing things
6250
 
#      $exec_prefix/lib likewise
6251
 
#      $TMPDIR          if set, where it might want to write temporary files
6252
 
#      /tmp             where it might want to write temporary files
6253
 
#      /var/tmp         likewise
6254
 
#      /usr/tmp         likewise
6255
 
for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
6256
 
  # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
6257
 
  # in the usual case where exec_prefix is '${prefix}'.
6258
 
  case $ac_dir in #(
6259
 
    . | /* | ?:[\\/]*) ;; #(
6260
 
    *) continue;;
6261
 
  esac
6262
 
  test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
6263
 
  ac_xdir=$ac_dir/cf$$
6264
 
  (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
6265
 
  ac_tf1=$ac_xdir/conftest9012345
6266
 
  ac_tf2=$ac_xdir/conftest9012346
6267
 
  touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
6268
 
    ac_cv_sys_long_file_names=no
6269
 
  rm -f -r "$ac_xdir" 2>/dev/null
6270
 
  test $ac_cv_sys_long_file_names = no && break
6271
 
done
6272
 
fi
6273
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
6274
 
$as_echo "$ac_cv_sys_long_file_names" >&6; }
6275
 
if test $ac_cv_sys_long_file_names = yes; then
6276
 
  
6277
 
$as_echo "@%:@define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
6278
 
 
6279
 
fi
6280
 
 
6281
 
 
6282
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for vsprintf" >&5
6283
 
$as_echo_n "checking for vsprintf... " >&6; }
6284
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6285
 
/* end confdefs.h.  */
6286
 
#include <stdarg.h>
6287
 
int
6288
 
main ()
6289
 
{
6290
 
va_list valist; vsprintf(0,0,valist);
6291
 
  ;
6292
 
  return 0;
6293
 
}
6294
 
_ACEOF
6295
 
if ac_fn_c_try_link "$LINENO"; then :
6296
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6297
 
$as_echo "yes" >&6; };$as_echo "@%:@define USEVARARGS 1" >>confdefs.h
6298
 
 
6299
 
else
6300
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6301
 
$as_echo "no" >&6; }
6302
 
fi
6303
 
rm -f core conftest.err conftest.$ac_objext \
6304
 
    conftest$ac_exeext conftest.$ac_ext
6305
 
 
6306
 
ac_header_dirent=no
6307
 
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6308
 
  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6309
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6310
 
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6311
 
if eval \${$as_ac_Header+:} false; then :
6312
 
  $as_echo_n "(cached) " >&6
6313
 
else
6314
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6315
 
/* end confdefs.h.  */
6316
 
#include <sys/types.h>
6317
 
#include <$ac_hdr>
6318
 
 
6319
 
int
6320
 
main ()
6321
 
{
6322
 
if ((DIR *) 0)
6323
 
return 0;
6324
 
  ;
6325
 
  return 0;
6326
 
}
6327
 
_ACEOF
6328
 
if ac_fn_c_try_compile "$LINENO"; then :
6329
 
  eval "$as_ac_Header=yes"
6330
 
else
6331
 
  eval "$as_ac_Header=no"
6332
 
fi
6333
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6334
 
fi
6335
 
eval ac_res=\$$as_ac_Header
6336
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6337
 
$as_echo "$ac_res" >&6; }
6338
 
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6339
 
  cat >>confdefs.h <<_ACEOF
6340
 
@%:@define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6341
 
_ACEOF
6342
 
 
6343
 
ac_header_dirent=$ac_hdr; break
6344
 
fi
6345
 
 
6346
 
done
6347
 
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6348
 
if test $ac_header_dirent = dirent.h; then
6349
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6350
 
$as_echo_n "checking for library containing opendir... " >&6; }
6351
 
if ${ac_cv_search_opendir+:} false; then :
6352
 
  $as_echo_n "(cached) " >&6
6353
 
else
6354
 
  ac_func_search_save_LIBS=$LIBS
6355
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6356
 
/* end confdefs.h.  */
6357
 
 
6358
 
/* Override any GCC internal prototype to avoid an error.
6359
 
   Use char because int might match the return type of a GCC
6360
 
   builtin and then its argument prototype would still apply.  */
6361
 
#ifdef __cplusplus
6362
 
extern "C"
6363
 
#endif
6364
 
char opendir ();
6365
 
int
6366
 
main ()
6367
 
{
6368
 
return opendir ();
6369
 
  ;
6370
 
  return 0;
6371
 
}
6372
 
_ACEOF
6373
 
for ac_lib in '' dir; do
6374
 
  if test -z "$ac_lib"; then
6375
 
    ac_res="none required"
6376
 
  else
6377
 
    ac_res=-l$ac_lib
6378
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6379
 
  fi
6380
 
  if ac_fn_c_try_link "$LINENO"; then :
6381
 
  ac_cv_search_opendir=$ac_res
6382
 
fi
6383
 
rm -f core conftest.err conftest.$ac_objext \
6384
 
    conftest$ac_exeext
6385
 
  if ${ac_cv_search_opendir+:} false; then :
6386
 
  break
6387
 
fi
6388
 
done
6389
 
if ${ac_cv_search_opendir+:} false; then :
6390
 
  
6391
 
else
6392
 
  ac_cv_search_opendir=no
6393
 
fi
6394
 
rm conftest.$ac_ext
6395
 
LIBS=$ac_func_search_save_LIBS
6396
 
fi
6397
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6398
 
$as_echo "$ac_cv_search_opendir" >&6; }
6399
 
ac_res=$ac_cv_search_opendir
6400
 
if test "$ac_res" != no; then :
6401
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6402
 
  
6403
 
fi
6404
 
 
6405
 
else
6406
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6407
 
$as_echo_n "checking for library containing opendir... " >&6; }
6408
 
if ${ac_cv_search_opendir+:} false; then :
6409
 
  $as_echo_n "(cached) " >&6
6410
 
else
6411
 
  ac_func_search_save_LIBS=$LIBS
6412
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6413
 
/* end confdefs.h.  */
6414
 
 
6415
 
/* Override any GCC internal prototype to avoid an error.
6416
 
   Use char because int might match the return type of a GCC
6417
 
   builtin and then its argument prototype would still apply.  */
6418
 
#ifdef __cplusplus
6419
 
extern "C"
6420
 
#endif
6421
 
char opendir ();
6422
 
int
6423
 
main ()
6424
 
{
6425
 
return opendir ();
6426
 
  ;
6427
 
  return 0;
6428
 
}
6429
 
_ACEOF
6430
 
for ac_lib in '' x; do
6431
 
  if test -z "$ac_lib"; then
6432
 
    ac_res="none required"
6433
 
  else
6434
 
    ac_res=-l$ac_lib
6435
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6436
 
  fi
6437
 
  if ac_fn_c_try_link "$LINENO"; then :
6438
 
  ac_cv_search_opendir=$ac_res
6439
 
fi
6440
 
rm -f core conftest.err conftest.$ac_objext \
6441
 
    conftest$ac_exeext
6442
 
  if ${ac_cv_search_opendir+:} false; then :
6443
 
  break
6444
 
fi
6445
 
done
6446
 
if ${ac_cv_search_opendir+:} false; then :
6447
 
  
6448
 
else
6449
 
  ac_cv_search_opendir=no
6450
 
fi
6451
 
rm conftest.$ac_ext
6452
 
LIBS=$ac_func_search_save_LIBS
6453
 
fi
6454
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6455
 
$as_echo "$ac_cv_search_opendir" >&6; }
6456
 
ac_res=$ac_cv_search_opendir
6457
 
if test "$ac_res" != no; then :
6458
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6459
 
  
6460
 
fi
6461
 
 
6462
 
fi
6463
 
 
6464
 
 
6465
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setenv" >&5
6466
 
$as_echo_n "checking for setenv... " >&6; }
6467
 
if test -z "$ac_setenv_args"; then
6468
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469
 
/* end confdefs.h.  */
6470
 
#include <stdlib.h>
6471
 
int
6472
 
main ()
6473
 
{
6474
 
 
6475
 
        setenv((char *) 0, (char *) 0, 0);
6476
 
    
6477
 
  ;
6478
 
  return 0;
6479
 
}
6480
 
_ACEOF
6481
 
if ac_fn_c_try_link "$LINENO"; then :
6482
 
  ac_setenv_args=3
6483
 
fi
6484
 
rm -f core conftest.err conftest.$ac_objext \
6485
 
    conftest$ac_exeext conftest.$ac_ext
6486
 
fi
6487
 
if test -z "$ac_setenv_args"; then
6488
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6489
 
/* end confdefs.h.  */
6490
 
#include <stdlib.h>
6491
 
int
6492
 
main ()
6493
 
{
6494
 
 
6495
 
        setenv((char *) 0, (char *) 0);
6496
 
    
6497
 
  ;
6498
 
  return 0;
6499
 
}
6500
 
_ACEOF
6501
 
if ac_fn_c_try_link "$LINENO"; then :
6502
 
  ac_setenv_args=2
6503
 
fi
6504
 
rm -f core conftest.err conftest.$ac_objext \
6505
 
    conftest$ac_exeext conftest.$ac_ext
6506
 
fi
6507
 
if test -n "$ac_setenv_args"; then
6508
 
    $as_echo "@%:@define USESETENV 1" >>confdefs.h
6509
 
 
6510
 
    if test "$ac_setenv_args" = 3; then
6511
 
        $as_echo "@%:@define HAVE_SETENV_3 1" >>confdefs.h
6512
 
 
6513
 
    elif test "$ac_setenv_args" = 2; then
6514
 
        $as_echo "@%:@define HAVE_SETENV_2 1" >>confdefs.h
6515
 
 
6516
 
    fi
6517
 
else
6518
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519
 
$as_echo "no" >&6; }
6520
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv" >&5
6521
 
$as_echo_n "checking for putenv... " >&6; }
6522
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523
 
/* end confdefs.h.  */
6524
 
 
6525
 
int
6526
 
main ()
6527
 
{
6528
 
putenv((char *)0);unsetenv((char *)0);
6529
 
  ;
6530
 
  return 0;
6531
 
}
6532
 
_ACEOF
6533
 
if ac_fn_c_try_link "$LINENO"; then :
6534
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6535
 
$as_echo "yes" >&6; } 
6536
 
else
6537
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538
 
$as_echo "no" >&6; };$as_echo "@%:@define NEEDPUTENV 1" >>confdefs.h
6539
 
 
6540
 
fi
6541
 
rm -f core conftest.err conftest.$ac_objext \
6542
 
    conftest$ac_exeext conftest.$ac_ext
6543
 
fi
6544
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5
6545
 
$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
6546
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547
 
/* end confdefs.h.  */
6548
 
 
6549
 
#include <langinfo.h>
6550
 
 
6551
 
int
6552
 
main ()
6553
 
{
6554
 
nl_langinfo(CODESET);
6555
 
  ;
6556
 
  return 0;
6557
 
}
6558
 
_ACEOF
6559
 
if ac_fn_c_try_link "$LINENO"; then :
6560
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6561
 
$as_echo "yes" >&6; };$as_echo "@%:@define HAVE_NL_LANGINFO 1" >>confdefs.h
6562
 
 
6563
 
else
6564
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565
 
$as_echo "no" >&6; }
6566
 
fi
6567
 
rm -f core conftest.err conftest.$ac_objext \
6568
 
    conftest$ac_exeext conftest.$ac_ext
6569
 
 
6570
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
6571
 
$as_echo_n "checking for library containing gethostname... " >&6; }
6572
 
if ${ac_cv_search_gethostname+:} false; then :
6573
 
  $as_echo_n "(cached) " >&6
6574
 
else
6575
 
  ac_func_search_save_LIBS=$LIBS
6576
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577
 
/* end confdefs.h.  */
6578
 
 
6579
 
/* Override any GCC internal prototype to avoid an error.
6580
 
   Use char because int might match the return type of a GCC
6581
 
   builtin and then its argument prototype would still apply.  */
6582
 
#ifdef __cplusplus
6583
 
extern "C"
6584
 
#endif
6585
 
char gethostname ();
6586
 
int
6587
 
main ()
6588
 
{
6589
 
return gethostname ();
6590
 
  ;
6591
 
  return 0;
6592
 
}
6593
 
_ACEOF
6594
 
for ac_lib in '' nsl; do
6595
 
  if test -z "$ac_lib"; then
6596
 
    ac_res="none required"
6597
 
  else
6598
 
    ac_res=-l$ac_lib
6599
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6600
 
  fi
6601
 
  if ac_fn_c_try_link "$LINENO"; then :
6602
 
  ac_cv_search_gethostname=$ac_res
6603
 
fi
6604
 
rm -f core conftest.err conftest.$ac_objext \
6605
 
    conftest$ac_exeext
6606
 
  if ${ac_cv_search_gethostname+:} false; then :
6607
 
  break
6608
 
fi
6609
 
done
6610
 
if ${ac_cv_search_gethostname+:} false; then :
6611
 
  
6612
 
else
6613
 
  ac_cv_search_gethostname=no
6614
 
fi
6615
 
rm conftest.$ac_ext
6616
 
LIBS=$ac_func_search_save_LIBS
6617
 
fi
6618
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
6619
 
$as_echo "$ac_cv_search_gethostname" >&6; }
6620
 
ac_res=$ac_cv_search_gethostname
6621
 
if test "$ac_res" != no; then :
6622
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6623
 
  
6624
 
fi
6625
 
 
6626
 
 
6627
 
for ac_func in rename fchmod fchown strerror lstat _exit utimes vsnprintf getcwd setlocale strftime
6628
 
do :
6629
 
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6630
 
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6631
 
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6632
 
  cat >>confdefs.h <<_ACEOF
6633
 
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6634
 
_ACEOF
6635
 
 
6636
 
fi
6637
 
done
6638
 
 
6639
 
 
6640
 
@%:@ Check whether --enable-pam was given.
6641
 
if test "${enable_pam+set}" = set; then :
6642
 
  enableval=$enable_pam; 
6643
 
fi
6644
 
 
6645
 
if test "$enable_pam" = "yes"; then
6646
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAM support" >&5
6647
 
$as_echo_n "checking for PAM support... " >&6; }
6648
 
    oldlibs="$LIBS"
6649
 
    LIBS="$LIBS -lpam"
6650
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6651
 
/* end confdefs.h.  */
6652
 
#include <security/pam_appl.h>
6653
 
int
6654
 
main ()
6655
 
{
6656
 
 
6657
 
        pam_start(0, 0, 0, 0);
6658
 
        pam_authenticate(0, 0);
6659
 
        pam_end(0,0);
6660
 
    
6661
 
  ;
6662
 
  return 0;
6663
 
}
6664
 
_ACEOF
6665
 
if ac_fn_c_try_link "$LINENO"; then :
6666
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6667
 
$as_echo "yes" >&6; };$as_echo "@%:@define USE_PAM 1" >>confdefs.h
6668
 
 
6669
 
else
6670
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6671
 
$as_echo "no" >&6; };LIBS="$oldlibs"
6672
 
fi
6673
 
rm -f core conftest.err conftest.$ac_objext \
6674
 
    conftest$ac_exeext conftest.$ac_ext
6675
 
fi
6676
 
 
6677
 
@%:@ Check whether --enable-use_locale was given.
6678
 
if test "${enable_use_locale+set}" = set; then :
6679
 
  enableval=$enable_use_locale; 
6680
 
fi
6681
 
 
6682
 
if test "$enable_use_locale" = "yes"; then
6683
 
  $as_echo "@%:@define USE_LOCALE 1" >>confdefs.h
6684
 
 
6685
 
fi
6686
 
@%:@ Check whether --enable-telnet was given.
6687
 
if test "${enable_telnet+set}" = set; then :
6688
 
  enableval=$enable_telnet; 
6689
 
fi
6690
 
 
6691
 
if test "$enable_telnet" = "yes"; then
6692
 
  $as_echo "@%:@define BUILTIN_TELNET 1" >>confdefs.h
6693
 
 
6694
 
fi
6695
 
@%:@ Check whether --enable-colors256 was given.
6696
 
if test "${enable_colors256+set}" = set; then :
6697
 
  enableval=$enable_colors256; 
6698
 
fi
6699
 
 
6700
 
if test "$enable_colors256" = "yes"; then
6701
 
  $as_echo "@%:@define COLORS256 1" >>confdefs.h
6702
 
 
6703
 
fi
6704
 
@%:@ Check whether --enable-rxvt_osc was given.
6705
 
if test "${enable_rxvt_osc+set}" = set; then :
6706
 
  enableval=$enable_rxvt_osc; 
6707
 
fi
6708
 
 
6709
 
if test "$enable_rxvt_osc" = "yes"; then
6710
 
  $as_echo "@%:@define RXVT_OSC 1" >>confdefs.h
6711
 
 
6712
 
fi
6713
 
 
6714
 
if test -z "$old_CFLAGS"; then
6715
 
  if test "x$CFLAGS" = "x-g"; then
6716
 
    CFLAGS="-O"
6717
 
  fi
6718
 
fi
6719
 
test -n "$seqptx" && LIBS="-ltermcap -lc -lsocket -linet -lnsl -lsec -lseq"
6720
 
 
6721
 
if test "$cross_compiling" = yes; then :
6722
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6723
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6724
 
as_fn_error $? "cannot run test program while cross compiling
6725
 
See \`config.log' for more details" "$LINENO" 5; }
6726
 
else
6727
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728
 
/* end confdefs.h.  */
6729
 
main(){exit(0);}
6730
 
_ACEOF
6731
 
if ac_fn_c_try_run "$LINENO"; then :
6732
 
  
6733
 
else
6734
 
  as_fn_error $? "Can't run the compiler - internal error. Sorry." "$LINENO" 5
6735
 
fi
6736
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6737
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
6738
 
fi
6739
 
 
6740
 
 
6741
 
ETCSCREENRC=
6742
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the global screenrc file" >&5
6743
 
$as_echo_n "checking for the global screenrc file... " >&6; }
6744
 
 
6745
 
@%:@ Check whether --with-sys-screenrc was given.
6746
 
if test "${with_sys_screenrc+set}" = set; then :
6747
 
  withval=$with_sys_screenrc;  ETCSCREENRC="${withval}" 
6748
 
fi
6749
 
 
6750
 
 
6751
 
 
6752
 
ac_config_files="$ac_config_files Makefile doc/Makefile"
6753
 
 
6754
 
ac_config_commands="$ac_config_commands default"
6755
 
 
6756
 
cat >confcache <<\_ACEOF
6757
 
# This file is a shell script that caches the results of configure
6758
 
# tests run on this system so they can be shared between configure
6759
 
# scripts and configure runs, see configure's option --config-cache.
6760
 
# It is not useful on other systems.  If it contains results you don't
6761
 
# want to keep, you may remove or edit it.
6762
 
#
6763
 
# config.status only pays attention to the cache file if you give it
6764
 
# the --recheck option to rerun configure.
6765
 
#
6766
 
# `ac_cv_env_foo' variables (set or unset) will be overridden when
6767
 
# loading this file, other *unset* `ac_cv_foo' will be assigned the
6768
 
# following values.
6769
 
 
6770
 
_ACEOF
6771
 
 
6772
 
# The following way of writing the cache mishandles newlines in values,
6773
 
# but we know of no workaround that is simple, portable, and efficient.
6774
 
# So, we kill variables containing newlines.
6775
 
# Ultrix sh set writes to stderr and can't be redirected directly,
6776
 
# and sets the high bit in the cache file unless we assign to the vars.
6777
 
(
6778
 
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6779
 
    eval ac_val=\$$ac_var
6780
 
    case $ac_val in #(
6781
 
    *${as_nl}*)
6782
 
      case $ac_var in #(
6783
 
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6784
 
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6785
 
      esac
6786
 
      case $ac_var in #(
6787
 
      _ | IFS | as_nl) ;; #(
6788
 
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6789
 
      *) { eval $ac_var=; unset $ac_var;} ;;
6790
 
      esac ;;
6791
 
    esac
6792
 
  done
6793
 
 
6794
 
  (set) 2>&1 |
6795
 
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
6796
 
    *${as_nl}ac_space=\ *)
6797
 
      # `set' does not quote correctly, so add quotes: double-quote
6798
 
      # substitution turns \\\\ into \\, and sed turns \\ into \.
6799
 
      sed -n \
6800
 
        "s/'/'\\\\''/g;
6801
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6802
 
      ;; #(
6803
 
    *)
6804
 
      # `set' quotes correctly as required by POSIX, so do not add quotes.
6805
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6806
 
      ;;
6807
 
    esac |
6808
 
    sort
6809
 
) |
6810
 
  sed '
6811
 
     /^ac_cv_env_/b end
6812
 
     t clear
6813
 
     :clear
6814
 
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6815
 
     t end
6816
 
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6817
 
     :end' >>confcache
6818
 
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6819
 
  if test -w "$cache_file"; then
6820
 
    if test "x$cache_file" != "x/dev/null"; then
6821
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6822
 
$as_echo "$as_me: updating cache $cache_file" >&6;}
6823
 
      if test ! -f "$cache_file" || test -h "$cache_file"; then
6824
 
        cat confcache >"$cache_file"
6825
 
      else
6826
 
        case $cache_file in #(
6827
 
        */* | ?:*)
6828
 
          mv -f confcache "$cache_file"$$ &&
6829
 
          mv -f "$cache_file"$$ "$cache_file" ;; #(
6830
 
        *)
6831
 
          mv -f confcache "$cache_file" ;;
6832
 
        esac
6833
 
      fi
6834
 
    fi
6835
 
  else
6836
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6837
 
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6838
 
  fi
6839
 
fi
6840
 
rm -f confcache
6841
 
 
6842
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
6843
 
# Let make expand exec_prefix.
6844
 
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6845
 
 
6846
 
DEFS=-DHAVE_CONFIG_H
6847
 
 
6848
 
ac_libobjs=
6849
 
ac_ltlibobjs=
6850
 
U=
6851
 
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
6852
 
  # 1. Remove the extension, and $U if already installed.
6853
 
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6854
 
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6855
 
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6856
 
  #    will be set to the directory where LIBOBJS objects are built.
6857
 
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6858
 
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6859
 
done
6860
 
LIB@&t@OBJS=$ac_libobjs
6861
 
 
6862
 
LTLIBOBJS=$ac_ltlibobjs
6863
 
 
6864
 
 
6865
 
 
6866
 
: "${CONFIG_STATUS=./config.status}"
6867
 
ac_write_fail=0
6868
 
ac_clean_files_save=$ac_clean_files
6869
 
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6870
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6871
 
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6872
 
as_write_fail=0
6873
 
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6874
 
#! $SHELL
6875
 
# Generated by $as_me.
6876
 
# Run this file to recreate the current configuration.
6877
 
# Compiler output produced by configure, useful for debugging
6878
 
# configure, is in config.log if it exists.
6879
 
 
6880
 
debug=false
6881
 
ac_cs_recheck=false
6882
 
ac_cs_silent=false
6883
 
 
6884
 
SHELL=\${CONFIG_SHELL-$SHELL}
6885
 
export SHELL
6886
 
_ASEOF
6887
 
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6888
 
## -------------------- ##
6889
 
## M4sh Initialization. ##
6890
 
## -------------------- ##
6891
 
 
6892
 
# Be more Bourne compatible
6893
 
DUALCASE=1; export DUALCASE # for MKS sh
6894
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6895
 
  emulate sh
6896
 
  NULLCMD=:
6897
 
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6898
 
  # is contrary to our usage.  Disable this feature.
6899
 
  alias -g '${1+"$@"}'='"$@"'
6900
 
  setopt NO_GLOB_SUBST
6901
 
else
6902
 
  case `(set -o) 2>/dev/null` in @%:@(
6903
 
  *posix*) :
6904
 
    set -o posix ;; @%:@(
6905
 
  *) :
6906
 
     ;;
6907
 
esac
6908
 
fi
6909
 
 
6910
 
 
6911
 
as_nl='
6912
 
'
6913
 
export as_nl
6914
 
# Printing a long string crashes Solaris 7 /usr/bin/printf.
6915
 
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6916
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6917
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6918
 
# Prefer a ksh shell builtin over an external printf program on Solaris,
6919
 
# but without wasting forks for bash or zsh.
6920
 
if test -z "$BASH_VERSION$ZSH_VERSION" \
6921
 
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6922
 
  as_echo='print -r --'
6923
 
  as_echo_n='print -rn --'
6924
 
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6925
 
  as_echo='printf %s\n'
6926
 
  as_echo_n='printf %s'
6927
 
else
6928
 
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6929
 
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6930
 
    as_echo_n='/usr/ucb/echo -n'
6931
 
  else
6932
 
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6933
 
    as_echo_n_body='eval
6934
 
      arg=$1;
6935
 
      case $arg in @%:@(
6936
 
      *"$as_nl"*)
6937
 
        expr "X$arg" : "X\\(.*\\)$as_nl";
6938
 
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6939
 
      esac;
6940
 
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6941
 
    '
6942
 
    export as_echo_n_body
6943
 
    as_echo_n='sh -c $as_echo_n_body as_echo'
6944
 
  fi
6945
 
  export as_echo_body
6946
 
  as_echo='sh -c $as_echo_body as_echo'
6947
 
fi
6948
 
 
6949
 
# The user is always right.
6950
 
if test "${PATH_SEPARATOR+set}" != set; then
6951
 
  PATH_SEPARATOR=:
6952
 
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6953
 
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6954
 
      PATH_SEPARATOR=';'
6955
 
  }
6956
 
fi
6957
 
 
6958
 
 
6959
 
# IFS
6960
 
# We need space, tab and new line, in precisely that order.  Quoting is
6961
 
# there to prevent editors from complaining about space-tab.
6962
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6963
 
# splitting by setting IFS to empty value.)
6964
 
IFS=" ""        $as_nl"
6965
 
 
6966
 
# Find who we are.  Look in the path if we contain no directory separator.
6967
 
as_myself=
6968
 
case $0 in @%:@((
6969
 
  *[\\/]* ) as_myself=$0 ;;
6970
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971
 
for as_dir in $PATH
6972
 
do
6973
 
  IFS=$as_save_IFS
6974
 
  test -z "$as_dir" && as_dir=.
6975
 
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6976
 
  done
6977
 
IFS=$as_save_IFS
6978
 
 
6979
 
     ;;
6980
 
esac
6981
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
6982
 
# in which case we are not to be found in the path.
6983
 
if test "x$as_myself" = x; then
6984
 
  as_myself=$0
6985
 
fi
6986
 
if test ! -f "$as_myself"; then
6987
 
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6988
 
  exit 1
6989
 
fi
6990
 
 
6991
 
# Unset variables that we do not need and which cause bugs (e.g. in
6992
 
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
6993
 
# suppresses any "Segmentation fault" message there.  '((' could
6994
 
# trigger a bug in pdksh 5.2.14.
6995
 
for as_var in BASH_ENV ENV MAIL MAILPATH
6996
 
do eval test x\${$as_var+set} = xset \
6997
 
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6998
 
done
6999
 
PS1='$ '
7000
 
PS2='> '
7001
 
PS4='+ '
7002
 
 
7003
 
# NLS nuisances.
7004
 
LC_ALL=C
7005
 
export LC_ALL
7006
 
LANGUAGE=C
7007
 
export LANGUAGE
7008
 
 
7009
 
# CDPATH.
7010
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7011
 
 
7012
 
 
7013
 
@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
7014
 
@%:@ ----------------------------------------
7015
 
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7016
 
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7017
 
@%:@ script with STATUS, using 1 if that was 0.
7018
 
as_fn_error ()
7019
 
{
7020
 
  as_status=$1; test $as_status -eq 0 && as_status=1
7021
 
  if test "$4"; then
7022
 
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7023
 
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7024
 
  fi
7025
 
  $as_echo "$as_me: error: $2" >&2
7026
 
  as_fn_exit $as_status
7027
 
} @%:@ as_fn_error
7028
 
 
7029
 
 
7030
 
@%:@ as_fn_set_status STATUS
7031
 
@%:@ -----------------------
7032
 
@%:@ Set @S|@? to STATUS, without forking.
7033
 
as_fn_set_status ()
7034
 
{
7035
 
  return $1
7036
 
} @%:@ as_fn_set_status
7037
 
 
7038
 
@%:@ as_fn_exit STATUS
7039
 
@%:@ -----------------
7040
 
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7041
 
as_fn_exit ()
7042
 
{
7043
 
  set +e
7044
 
  as_fn_set_status $1
7045
 
  exit $1
7046
 
} @%:@ as_fn_exit
7047
 
 
7048
 
@%:@ as_fn_unset VAR
7049
 
@%:@ ---------------
7050
 
@%:@ Portably unset VAR.
7051
 
as_fn_unset ()
7052
 
{
7053
 
  { eval $1=; unset $1;}
7054
 
}
7055
 
as_unset=as_fn_unset
7056
 
@%:@ as_fn_append VAR VALUE
7057
 
@%:@ ----------------------
7058
 
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
7059
 
@%:@ advantage of any shell optimizations that allow amortized linear growth over
7060
 
@%:@ repeated appends, instead of the typical quadratic growth present in naive
7061
 
@%:@ implementations.
7062
 
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7063
 
  eval 'as_fn_append ()
7064
 
  {
7065
 
    eval $1+=\$2
7066
 
  }'
7067
 
else
7068
 
  as_fn_append ()
7069
 
  {
7070
 
    eval $1=\$$1\$2
7071
 
  }
7072
 
fi # as_fn_append
7073
 
 
7074
 
@%:@ as_fn_arith ARG...
7075
 
@%:@ ------------------
7076
 
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
7077
 
@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
7078
 
@%:@ must be portable across @S|@(()) and expr.
7079
 
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7080
 
  eval 'as_fn_arith ()
7081
 
  {
7082
 
    as_val=$(( $* ))
7083
 
  }'
7084
 
else
7085
 
  as_fn_arith ()
7086
 
  {
7087
 
    as_val=`expr "$@" || test $? -eq 1`
7088
 
  }
7089
 
fi # as_fn_arith
7090
 
 
7091
 
 
7092
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
7093
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7094
 
  as_expr=expr
7095
 
else
7096
 
  as_expr=false
7097
 
fi
7098
 
 
7099
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7100
 
  as_basename=basename
7101
 
else
7102
 
  as_basename=false
7103
 
fi
7104
 
 
7105
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7106
 
  as_dirname=dirname
7107
 
else
7108
 
  as_dirname=false
7109
 
fi
7110
 
 
7111
 
as_me=`$as_basename -- "$0" ||
7112
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7113
 
         X"$0" : 'X\(//\)$' \| \
7114
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7115
 
$as_echo X/"$0" |
7116
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
7117
 
            s//\1/
7118
 
            q
7119
 
          }
7120
 
          /^X\/\(\/\/\)$/{
7121
 
            s//\1/
7122
 
            q
7123
 
          }
7124
 
          /^X\/\(\/\).*/{
7125
 
            s//\1/
7126
 
            q
7127
 
          }
7128
 
          s/.*/./; q'`
7129
 
 
7130
 
# Avoid depending upon Character Ranges.
7131
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7132
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7133
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7134
 
as_cr_digits='0123456789'
7135
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
7136
 
 
7137
 
ECHO_C= ECHO_N= ECHO_T=
7138
 
case `echo -n x` in @%:@(((((
7139
 
-n*)
7140
 
  case `echo 'xy\c'` in
7141
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
7142
 
  xy)  ECHO_C='\c';;
7143
 
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
7144
 
       ECHO_T=' ';;
7145
 
  esac;;
7146
 
*)
7147
 
  ECHO_N='-n';;
7148
 
esac
7149
 
 
7150
 
rm -f conf$$ conf$$.exe conf$$.file
7151
 
if test -d conf$$.dir; then
7152
 
  rm -f conf$$.dir/conf$$.file
7153
 
else
7154
 
  rm -f conf$$.dir
7155
 
  mkdir conf$$.dir 2>/dev/null
7156
 
fi
7157
 
if (echo >conf$$.file) 2>/dev/null; then
7158
 
  if ln -s conf$$.file conf$$ 2>/dev/null; then
7159
 
    as_ln_s='ln -s'
7160
 
    # ... but there are two gotchas:
7161
 
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7162
 
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7163
 
    # In both cases, we have to default to `cp -pR'.
7164
 
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7165
 
      as_ln_s='cp -pR'
7166
 
  elif ln conf$$.file conf$$ 2>/dev/null; then
7167
 
    as_ln_s=ln
7168
 
  else
7169
 
    as_ln_s='cp -pR'
7170
 
  fi
7171
 
else
7172
 
  as_ln_s='cp -pR'
7173
 
fi
7174
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7175
 
rmdir conf$$.dir 2>/dev/null
7176
 
 
7177
 
 
7178
 
@%:@ as_fn_mkdir_p
7179
 
@%:@ -------------
7180
 
@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
7181
 
as_fn_mkdir_p ()
7182
 
{
7183
 
 
7184
 
  case $as_dir in #(
7185
 
  -*) as_dir=./$as_dir;;
7186
 
  esac
7187
 
  test -d "$as_dir" || eval $as_mkdir_p || {
7188
 
    as_dirs=
7189
 
    while :; do
7190
 
      case $as_dir in #(
7191
 
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7192
 
      *) as_qdir=$as_dir;;
7193
 
      esac
7194
 
      as_dirs="'$as_qdir' $as_dirs"
7195
 
      as_dir=`$as_dirname -- "$as_dir" ||
7196
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7197
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
7198
 
         X"$as_dir" : 'X\(//\)$' \| \
7199
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7200
 
$as_echo X"$as_dir" |
7201
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7202
 
            s//\1/
7203
 
            q
7204
 
          }
7205
 
          /^X\(\/\/\)[^/].*/{
7206
 
            s//\1/
7207
 
            q
7208
 
          }
7209
 
          /^X\(\/\/\)$/{
7210
 
            s//\1/
7211
 
            q
7212
 
          }
7213
 
          /^X\(\/\).*/{
7214
 
            s//\1/
7215
 
            q
7216
 
          }
7217
 
          s/.*/./; q'`
7218
 
      test -d "$as_dir" && break
7219
 
    done
7220
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
7221
 
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7222
 
 
7223
 
 
7224
 
} @%:@ as_fn_mkdir_p
7225
 
if mkdir -p . 2>/dev/null; then
7226
 
  as_mkdir_p='mkdir -p "$as_dir"'
7227
 
else
7228
 
  test -d ./-p && rmdir ./-p
7229
 
  as_mkdir_p=false
7230
 
fi
7231
 
 
7232
 
 
7233
 
@%:@ as_fn_executable_p FILE
7234
 
@%:@ -----------------------
7235
 
@%:@ Test if FILE is an executable regular file.
7236
 
as_fn_executable_p ()
7237
 
{
7238
 
  test -f "$1" && test -x "$1"
7239
 
} @%:@ as_fn_executable_p
7240
 
as_test_x='test -x'
7241
 
as_executable_p=as_fn_executable_p
7242
 
 
7243
 
# Sed expression to map a string onto a valid CPP name.
7244
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7245
 
 
7246
 
# Sed expression to map a string onto a valid variable name.
7247
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7248
 
 
7249
 
 
7250
 
exec 6>&1
7251
 
## ----------------------------------- ##
7252
 
## Main body of $CONFIG_STATUS script. ##
7253
 
## ----------------------------------- ##
7254
 
_ASEOF
7255
 
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7256
 
 
7257
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7258
 
# Save the log message, to keep $0 and so on meaningful, and to
7259
 
# report actual input values of CONFIG_FILES etc. instead of their
7260
 
# values after options handling.
7261
 
ac_log="
7262
 
This file was extended by $as_me, which was
7263
 
generated by GNU Autoconf 2.69.  Invocation command line was
7264
 
 
7265
 
  CONFIG_FILES    = $CONFIG_FILES
7266
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
7267
 
  CONFIG_LINKS    = $CONFIG_LINKS
7268
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
7269
 
  $ $0 $@
7270
 
 
7271
 
on `(hostname || uname -n) 2>/dev/null | sed 1q`
7272
 
"
7273
 
 
7274
 
_ACEOF
7275
 
 
7276
 
case $ac_config_files in *"
7277
 
"*) set x $ac_config_files; shift; ac_config_files=$*;;
7278
 
esac
7279
 
 
7280
 
case $ac_config_headers in *"
7281
 
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7282
 
esac
7283
 
 
7284
 
 
7285
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7286
 
# Files that config.status was made for.
7287
 
config_files="$ac_config_files"
7288
 
config_headers="$ac_config_headers"
7289
 
config_commands="$ac_config_commands"
7290
 
 
7291
 
_ACEOF
7292
 
 
7293
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7294
 
ac_cs_usage="\
7295
 
\`$as_me' instantiates files and other configuration actions
7296
 
from templates according to the current configuration.  Unless the files
7297
 
and actions are specified as TAGs, all are instantiated by default.
7298
 
 
7299
 
Usage: $0 [OPTION]... [TAG]...
7300
 
 
7301
 
  -h, --help       print this help, then exit
7302
 
  -V, --version    print version number and configuration settings, then exit
7303
 
      --config     print configuration, then exit
7304
 
  -q, --quiet, --silent
7305
 
                   do not print progress messages
7306
 
  -d, --debug      don't remove temporary files
7307
 
      --recheck    update $as_me by reconfiguring in the same conditions
7308
 
      --file=FILE[:TEMPLATE] 
7309
 
                   instantiate the configuration file FILE
7310
 
      --header=FILE[:TEMPLATE] 
7311
 
                   instantiate the configuration header FILE
7312
 
 
7313
 
Configuration files:
7314
 
$config_files
7315
 
 
7316
 
Configuration headers:
7317
 
$config_headers
7318
 
 
7319
 
Configuration commands:
7320
 
$config_commands
7321
 
 
7322
 
Report bugs to the package provider."
7323
 
 
7324
 
_ACEOF
7325
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7326
 
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7327
 
ac_cs_version="\\
7328
 
config.status
7329
 
configured by $0, generated by GNU Autoconf 2.69,
7330
 
  with options \\"\$ac_cs_config\\"
7331
 
 
7332
 
Copyright (C) 2012 Free Software Foundation, Inc.
7333
 
This config.status script is free software; the Free Software Foundation
7334
 
gives unlimited permission to copy, distribute and modify it."
7335
 
 
7336
 
ac_pwd='$ac_pwd'
7337
 
srcdir='$srcdir'
7338
 
INSTALL='$INSTALL'
7339
 
AWK='$AWK'
7340
 
test -n "\$AWK" || AWK=awk
7341
 
_ACEOF
7342
 
 
7343
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7344
 
# The default lists apply if the user does not specify any file.
7345
 
ac_need_defaults=:
7346
 
while test $# != 0
7347
 
do
7348
 
  case $1 in
7349
 
  --*=?*)
7350
 
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7351
 
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7352
 
    ac_shift=:
7353
 
    ;;
7354
 
  --*=)
7355
 
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7356
 
    ac_optarg=
7357
 
    ac_shift=:
7358
 
    ;;
7359
 
  *)
7360
 
    ac_option=$1
7361
 
    ac_optarg=$2
7362
 
    ac_shift=shift
7363
 
    ;;
7364
 
  esac
7365
 
 
7366
 
  case $ac_option in
7367
 
  # Handling of the options.
7368
 
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7369
 
    ac_cs_recheck=: ;;
7370
 
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7371
 
    $as_echo "$ac_cs_version"; exit ;;
7372
 
  --config | --confi | --conf | --con | --co | --c )
7373
 
    $as_echo "$ac_cs_config"; exit ;;
7374
 
  --debug | --debu | --deb | --de | --d | -d )
7375
 
    debug=: ;;
7376
 
  --file | --fil | --fi | --f )
7377
 
    $ac_shift
7378
 
    case $ac_optarg in
7379
 
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7380
 
    '') as_fn_error $? "missing file argument" ;;
7381
 
    esac
7382
 
    as_fn_append CONFIG_FILES " '$ac_optarg'"
7383
 
    ac_need_defaults=false;;
7384
 
  --header | --heade | --head | --hea )
7385
 
    $ac_shift
7386
 
    case $ac_optarg in
7387
 
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7388
 
    esac
7389
 
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7390
 
    ac_need_defaults=false;;
7391
 
  --he | --h)
7392
 
    # Conflict between --help and --header
7393
 
    as_fn_error $? "ambiguous option: \`$1'
7394
 
Try \`$0 --help' for more information.";;
7395
 
  --help | --hel | -h )
7396
 
    $as_echo "$ac_cs_usage"; exit ;;
7397
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7398
 
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7399
 
    ac_cs_silent=: ;;
7400
 
 
7401
 
  # This is an error.
7402
 
  -*) as_fn_error $? "unrecognized option: \`$1'
7403
 
Try \`$0 --help' for more information." ;;
7404
 
 
7405
 
  *) as_fn_append ac_config_targets " $1"
7406
 
     ac_need_defaults=false ;;
7407
 
 
7408
 
  esac
7409
 
  shift
7410
 
done
7411
 
 
7412
 
ac_configure_extra_args=
7413
 
 
7414
 
if $ac_cs_silent; then
7415
 
  exec 6>/dev/null
7416
 
  ac_configure_extra_args="$ac_configure_extra_args --silent"
7417
 
fi
7418
 
 
7419
 
_ACEOF
7420
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7421
 
if \$ac_cs_recheck; then
7422
 
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7423
 
  shift
7424
 
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7425
 
  CONFIG_SHELL='$SHELL'
7426
 
  export CONFIG_SHELL
7427
 
  exec "\$@"
7428
 
fi
7429
 
 
7430
 
_ACEOF
7431
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7432
 
exec 5>>config.log
7433
 
{
7434
 
  echo
7435
 
  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
7436
 
@%:@@%:@ Running $as_me. @%:@@%:@
7437
 
_ASBOX
7438
 
  $as_echo "$ac_log"
7439
 
} >&5
7440
 
 
7441
 
_ACEOF
7442
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7443
 
_ACEOF
7444
 
 
7445
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7446
 
 
7447
 
# Handling of arguments.
7448
 
for ac_config_target in $ac_config_targets
7449
 
do
7450
 
  case $ac_config_target in
7451
 
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7452
 
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7453
 
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7454
 
    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7455
 
 
7456
 
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7457
 
  esac
7458
 
done
7459
 
 
7460
 
 
7461
 
# If the user did not use the arguments to specify the items to instantiate,
7462
 
# then the envvar interface is used.  Set only those that are not.
7463
 
# We use the long form for the default assignment because of an extremely
7464
 
# bizarre bug on SunOS 4.1.3.
7465
 
if $ac_need_defaults; then
7466
 
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7467
 
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7468
 
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7469
 
fi
7470
 
 
7471
 
# Have a temporary directory for convenience.  Make it in the build tree
7472
 
# simply because there is no reason against having it here, and in addition,
7473
 
# creating and moving files from /tmp can sometimes cause problems.
7474
 
# Hook for its removal unless debugging.
7475
 
# Note that there is a small window in which the directory will not be cleaned:
7476
 
# after its creation but before its name has been assigned to `$tmp'.
7477
 
$debug ||
7478
 
{
7479
 
  tmp= ac_tmp=
7480
 
  trap 'exit_status=$?
7481
 
  : "${ac_tmp:=$tmp}"
7482
 
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7483
 
' 0
7484
 
  trap 'as_fn_exit 1' 1 2 13 15
7485
 
}
7486
 
# Create a (secure) tmp directory for tmp files.
7487
 
 
7488
 
{
7489
 
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7490
 
  test -d "$tmp"
7491
 
}  ||
7492
 
{
7493
 
  tmp=./conf$$-$RANDOM
7494
 
  (umask 077 && mkdir "$tmp")
7495
 
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7496
 
ac_tmp=$tmp
7497
 
 
7498
 
# Set up the scripts for CONFIG_FILES section.
7499
 
# No need to generate them if there are no CONFIG_FILES.
7500
 
# This happens for instance with `./config.status config.h'.
7501
 
if test -n "$CONFIG_FILES"; then
7502
 
 
7503
 
 
7504
 
ac_cr=`echo X | tr X '\015'`
7505
 
# On cygwin, bash can eat \r inside `` if the user requested igncr.
7506
 
# But we know of no other shell where ac_cr would be empty at this
7507
 
# point, so we can use a bashism as a fallback.
7508
 
if test "x$ac_cr" = x; then
7509
 
  eval ac_cr=\$\'\\r\'
7510
 
fi
7511
 
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7512
 
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7513
 
  ac_cs_awk_cr='\\r'
7514
 
else
7515
 
  ac_cs_awk_cr=$ac_cr
7516
 
fi
7517
 
 
7518
 
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7519
 
_ACEOF
7520
 
 
7521
 
 
7522
 
{
7523
 
  echo "cat >conf$$subs.awk <<_ACEOF" &&
7524
 
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7525
 
  echo "_ACEOF"
7526
 
} >conf$$subs.sh ||
7527
 
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7528
 
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7529
 
ac_delim='%!_!# '
7530
 
for ac_last_try in false false false false false :; do
7531
 
  . ./conf$$subs.sh ||
7532
 
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7533
 
 
7534
 
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7535
 
  if test $ac_delim_n = $ac_delim_num; then
7536
 
    break
7537
 
  elif $ac_last_try; then
7538
 
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7539
 
  else
7540
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7541
 
  fi
7542
 
done
7543
 
rm -f conf$$subs.sh
7544
 
 
7545
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7546
 
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7547
 
_ACEOF
7548
 
sed -n '
7549
 
h
7550
 
s/^/S["/; s/!.*/"]=/
7551
 
p
7552
 
g
7553
 
s/^[^!]*!//
7554
 
:repl
7555
 
t repl
7556
 
s/'"$ac_delim"'$//
7557
 
t delim
7558
 
:nl
7559
 
h
7560
 
s/\(.\{148\}\)..*/\1/
7561
 
t more1
7562
 
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7563
 
p
7564
 
n
7565
 
b repl
7566
 
:more1
7567
 
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7568
 
p
7569
 
g
7570
 
s/.\{148\}//
7571
 
t nl
7572
 
:delim
7573
 
h
7574
 
s/\(.\{148\}\)..*/\1/
7575
 
t more2
7576
 
s/["\\]/\\&/g; s/^/"/; s/$/"/
7577
 
p
7578
 
b
7579
 
:more2
7580
 
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7581
 
p
7582
 
g
7583
 
s/.\{148\}//
7584
 
t delim
7585
 
' <conf$$subs.awk | sed '
7586
 
/^[^""]/{
7587
 
  N
7588
 
  s/\n//
7589
 
}
7590
 
' >>$CONFIG_STATUS || ac_write_fail=1
7591
 
rm -f conf$$subs.awk
7592
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7593
 
_ACAWK
7594
 
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7595
 
  for (key in S) S_is_set[key] = 1
7596
 
  FS = ""
7597
 
 
7598
 
}
7599
 
{
7600
 
  line = $ 0
7601
 
  nfields = split(line, field, "@")
7602
 
  substed = 0
7603
 
  len = length(field[1])
7604
 
  for (i = 2; i < nfields; i++) {
7605
 
    key = field[i]
7606
 
    keylen = length(key)
7607
 
    if (S_is_set[key]) {
7608
 
      value = S[key]
7609
 
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7610
 
      len += length(value) + length(field[++i])
7611
 
      substed = 1
7612
 
    } else
7613
 
      len += 1 + keylen
7614
 
  }
7615
 
 
7616
 
  print line
7617
 
}
7618
 
 
7619
 
_ACAWK
7620
 
_ACEOF
7621
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7622
 
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7623
 
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7624
 
else
7625
 
  cat
7626
 
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7627
 
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7628
 
_ACEOF
7629
 
 
7630
 
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7631
 
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7632
 
# trailing colons and then remove the whole line if VPATH becomes empty
7633
 
# (actually we leave an empty line to preserve line numbers).
7634
 
if test "x$srcdir" = x.; then
7635
 
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
7636
 
h
7637
 
s///
7638
 
s/^/:/
7639
 
s/[      ]*$/:/
7640
 
s/:\$(srcdir):/:/g
7641
 
s/:\${srcdir}:/:/g
7642
 
s/:@srcdir@:/:/g
7643
 
s/^:*//
7644
 
s/:*$//
7645
 
x
7646
 
s/\(=[   ]*\).*/\1/
7647
 
G
7648
 
s/\n//
7649
 
s/^[^=]*=[       ]*$//
7650
 
}'
7651
 
fi
7652
 
 
7653
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7654
 
fi # test -n "$CONFIG_FILES"
7655
 
 
7656
 
# Set up the scripts for CONFIG_HEADERS section.
7657
 
# No need to generate them if there are no CONFIG_HEADERS.
7658
 
# This happens for instance with `./config.status Makefile'.
7659
 
if test -n "$CONFIG_HEADERS"; then
7660
 
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7661
 
BEGIN {
7662
 
_ACEOF
7663
 
 
7664
 
# Transform confdefs.h into an awk script `defines.awk', embedded as
7665
 
# here-document in config.status, that substitutes the proper values into
7666
 
# config.h.in to produce config.h.
7667
 
 
7668
 
# Create a delimiter string that does not exist in confdefs.h, to ease
7669
 
# handling of long lines.
7670
 
ac_delim='%!_!# '
7671
 
for ac_last_try in false false :; do
7672
 
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7673
 
  if test -z "$ac_tt"; then
7674
 
    break
7675
 
  elif $ac_last_try; then
7676
 
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7677
 
  else
7678
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7679
 
  fi
7680
 
done
7681
 
 
7682
 
# For the awk script, D is an array of macro values keyed by name,
7683
 
# likewise P contains macro parameters if any.  Preserve backslash
7684
 
# newline sequences.
7685
 
 
7686
 
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7687
 
sed -n '
7688
 
s/.\{148\}/&'"$ac_delim"'/g
7689
 
t rset
7690
 
:rset
7691
 
s/^[     ]*#[    ]*define[       ][      ]*/ /
7692
 
t def
7693
 
d
7694
 
:def
7695
 
s/\\$//
7696
 
t bsnl
7697
 
s/["\\]/\\&/g
7698
 
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
7699
 
D["\1"]=" \3"/p
7700
 
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
7701
 
d
7702
 
:bsnl
7703
 
s/["\\]/\\&/g
7704
 
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
7705
 
D["\1"]=" \3\\\\\\n"\\/p
7706
 
t cont
7707
 
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7708
 
t cont
7709
 
d
7710
 
:cont
7711
 
n
7712
 
s/.\{148\}/&'"$ac_delim"'/g
7713
 
t clear
7714
 
:clear
7715
 
s/\\$//
7716
 
t bsnlc
7717
 
s/["\\]/\\&/g; s/^/"/; s/$/"/p
7718
 
d
7719
 
:bsnlc
7720
 
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7721
 
b cont
7722
 
' <confdefs.h | sed '
7723
 
s/'"$ac_delim"'/"\\\
7724
 
"/g' >>$CONFIG_STATUS || ac_write_fail=1
7725
 
 
7726
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7727
 
  for (key in D) D_is_set[key] = 1
7728
 
  FS = ""
7729
 
}
7730
 
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7731
 
  line = \$ 0
7732
 
  split(line, arg, " ")
7733
 
  if (arg[1] == "#") {
7734
 
    defundef = arg[2]
7735
 
    mac1 = arg[3]
7736
 
  } else {
7737
 
    defundef = substr(arg[1], 2)
7738
 
    mac1 = arg[2]
7739
 
  }
7740
 
  split(mac1, mac2, "(") #)
7741
 
  macro = mac2[1]
7742
 
  prefix = substr(line, 1, index(line, defundef) - 1)
7743
 
  if (D_is_set[macro]) {
7744
 
    # Preserve the white space surrounding the "#".
7745
 
    print prefix "define", macro P[macro] D[macro]
7746
 
    next
7747
 
  } else {
7748
 
    # Replace #undef with comments.  This is necessary, for example,
7749
 
    # in the case of _POSIX_SOURCE, which is predefined and required
7750
 
    # on some systems where configure will not decide to define it.
7751
 
    if (defundef == "undef") {
7752
 
      print "/*", prefix defundef, macro, "*/"
7753
 
      next
7754
 
    }
7755
 
  }
7756
 
}
7757
 
{ print }
7758
 
_ACAWK
7759
 
_ACEOF
7760
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7761
 
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7762
 
fi # test -n "$CONFIG_HEADERS"
7763
 
 
7764
 
 
7765
 
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
7766
 
shift
7767
 
for ac_tag
7768
 
do
7769
 
  case $ac_tag in
7770
 
  :[FHLC]) ac_mode=$ac_tag; continue;;
7771
 
  esac
7772
 
  case $ac_mode$ac_tag in
7773
 
  :[FHL]*:*);;
7774
 
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7775
 
  :[FH]-) ac_tag=-:-;;
7776
 
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7777
 
  esac
7778
 
  ac_save_IFS=$IFS
7779
 
  IFS=:
7780
 
  set x $ac_tag
7781
 
  IFS=$ac_save_IFS
7782
 
  shift
7783
 
  ac_file=$1
7784
 
  shift
7785
 
 
7786
 
  case $ac_mode in
7787
 
  :L) ac_source=$1;;
7788
 
  :[FH])
7789
 
    ac_file_inputs=
7790
 
    for ac_f
7791
 
    do
7792
 
      case $ac_f in
7793
 
      -) ac_f="$ac_tmp/stdin";;
7794
 
      *) # Look for the file first in the build tree, then in the source tree
7795
 
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
7796
 
         # because $ac_f cannot contain `:'.
7797
 
         test -f "$ac_f" ||
7798
 
           case $ac_f in
7799
 
           [\\/$]*) false;;
7800
 
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7801
 
           esac ||
7802
 
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7803
 
      esac
7804
 
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7805
 
      as_fn_append ac_file_inputs " '$ac_f'"
7806
 
    done
7807
 
 
7808
 
    # Let's still pretend it is `configure' which instantiates (i.e., don't
7809
 
    # use $as_me), people would be surprised to read:
7810
 
    #    /* config.h.  Generated by config.status.  */
7811
 
    configure_input='Generated from '`
7812
 
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7813
 
        `' by configure.'
7814
 
    if test x"$ac_file" != x-; then
7815
 
      configure_input="$ac_file.  $configure_input"
7816
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7817
 
$as_echo "$as_me: creating $ac_file" >&6;}
7818
 
    fi
7819
 
    # Neutralize special characters interpreted by sed in replacement strings.
7820
 
    case $configure_input in #(
7821
 
    *\&* | *\|* | *\\* )
7822
 
       ac_sed_conf_input=`$as_echo "$configure_input" |
7823
 
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
7824
 
    *) ac_sed_conf_input=$configure_input;;
7825
 
    esac
7826
 
 
7827
 
    case $ac_tag in
7828
 
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
7829
 
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7830
 
    esac
7831
 
    ;;
7832
 
  esac
7833
 
 
7834
 
  ac_dir=`$as_dirname -- "$ac_file" ||
7835
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7836
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
7837
 
         X"$ac_file" : 'X\(//\)$' \| \
7838
 
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7839
 
$as_echo X"$ac_file" |
7840
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7841
 
            s//\1/
7842
 
            q
7843
 
          }
7844
 
          /^X\(\/\/\)[^/].*/{
7845
 
            s//\1/
7846
 
            q
7847
 
          }
7848
 
          /^X\(\/\/\)$/{
7849
 
            s//\1/
7850
 
            q
7851
 
          }
7852
 
          /^X\(\/\).*/{
7853
 
            s//\1/
7854
 
            q
7855
 
          }
7856
 
          s/.*/./; q'`
7857
 
  as_dir="$ac_dir"; as_fn_mkdir_p
7858
 
  ac_builddir=.
7859
 
 
7860
 
case "$ac_dir" in
7861
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7862
 
*)
7863
 
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7864
 
  # A ".." for each directory in $ac_dir_suffix.
7865
 
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7866
 
  case $ac_top_builddir_sub in
7867
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7868
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7869
 
  esac ;;
7870
 
esac
7871
 
ac_abs_top_builddir=$ac_pwd
7872
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
7873
 
# for backward compatibility:
7874
 
ac_top_builddir=$ac_top_build_prefix
7875
 
 
7876
 
case $srcdir in
7877
 
  .)  # We are building in place.
7878
 
    ac_srcdir=.
7879
 
    ac_top_srcdir=$ac_top_builddir_sub
7880
 
    ac_abs_top_srcdir=$ac_pwd ;;
7881
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
7882
 
    ac_srcdir=$srcdir$ac_dir_suffix;
7883
 
    ac_top_srcdir=$srcdir
7884
 
    ac_abs_top_srcdir=$srcdir ;;
7885
 
  *) # Relative name.
7886
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7887
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
7888
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7889
 
esac
7890
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7891
 
 
7892
 
 
7893
 
  case $ac_mode in
7894
 
  :F)
7895
 
  #
7896
 
  # CONFIG_FILE
7897
 
  #
7898
 
 
7899
 
  case $INSTALL in
7900
 
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7901
 
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7902
 
  esac
7903
 
_ACEOF
7904
 
 
7905
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7906
 
# If the template does not know about datarootdir, expand it.
7907
 
# FIXME: This hack should be removed a few years after 2.60.
7908
 
ac_datarootdir_hack=; ac_datarootdir_seen=
7909
 
ac_sed_dataroot='
7910
 
/datarootdir/ {
7911
 
  p
7912
 
  q
7913
 
}
7914
 
/@datadir@/p
7915
 
/@docdir@/p
7916
 
/@infodir@/p
7917
 
/@localedir@/p
7918
 
/@mandir@/p'
7919
 
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7920
 
*datarootdir*) ac_datarootdir_seen=yes;;
7921
 
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7922
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7923
 
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7924
 
_ACEOF
7925
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7926
 
  ac_datarootdir_hack='
7927
 
  s&@datadir@&$datadir&g
7928
 
  s&@docdir@&$docdir&g
7929
 
  s&@infodir@&$infodir&g
7930
 
  s&@localedir@&$localedir&g
7931
 
  s&@mandir@&$mandir&g
7932
 
  s&\\\${datarootdir}&$datarootdir&g' ;;
7933
 
esac
7934
 
_ACEOF
7935
 
 
7936
 
# Neutralize VPATH when `$srcdir' = `.'.
7937
 
# Shell code in configure.ac might set extrasub.
7938
 
# FIXME: do we really want to maintain this feature?
7939
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7940
 
ac_sed_extra="$ac_vpsub
7941
 
$extrasub
7942
 
_ACEOF
7943
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7944
 
:t
7945
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7946
 
s|@configure_input@|$ac_sed_conf_input|;t t
7947
 
s&@top_builddir@&$ac_top_builddir_sub&;t t
7948
 
s&@top_build_prefix@&$ac_top_build_prefix&;t t
7949
 
s&@srcdir@&$ac_srcdir&;t t
7950
 
s&@abs_srcdir@&$ac_abs_srcdir&;t t
7951
 
s&@top_srcdir@&$ac_top_srcdir&;t t
7952
 
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7953
 
s&@builddir@&$ac_builddir&;t t
7954
 
s&@abs_builddir@&$ac_abs_builddir&;t t
7955
 
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7956
 
s&@INSTALL@&$ac_INSTALL&;t t
7957
 
$ac_datarootdir_hack
7958
 
"
7959
 
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7960
 
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7961
 
 
7962
 
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7963
 
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7964
 
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
7965
 
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
7966
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7967
 
which seems to be undefined.  Please make sure it is defined" >&5
7968
 
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7969
 
which seems to be undefined.  Please make sure it is defined" >&2;}
7970
 
 
7971
 
  rm -f "$ac_tmp/stdin"
7972
 
  case $ac_file in
7973
 
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7974
 
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7975
 
  esac \
7976
 
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7977
 
 ;;
7978
 
  :H)
7979
 
  #
7980
 
  # CONFIG_HEADER
7981
 
  #
7982
 
  if test x"$ac_file" != x-; then
7983
 
    {
7984
 
      $as_echo "/* $configure_input  */" \
7985
 
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7986
 
    } >"$ac_tmp/config.h" \
7987
 
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7988
 
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7989
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7990
 
$as_echo "$as_me: $ac_file is unchanged" >&6;}
7991
 
    else
7992
 
      rm -f "$ac_file"
7993
 
      mv "$ac_tmp/config.h" "$ac_file" \
7994
 
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7995
 
    fi
7996
 
  else
7997
 
    $as_echo "/* $configure_input  */" \
7998
 
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7999
 
      || as_fn_error $? "could not create -" "$LINENO" 5
8000
 
  fi
8001
 
 ;;
8002
 
  
8003
 
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8004
 
$as_echo "$as_me: executing $ac_file commands" >&6;}
8005
 
 ;;
8006
 
  esac
8007
 
 
8008
 
 
8009
 
  case $ac_file$ac_mode in
8010
 
    "default":C) 
8011
 
# a hook for preserving undef directive in config.h
8012
 
mv config.h conftest
8013
 
sed -e 's@^\(.*\)defin.\( .*\) .*/\*\(.*KEEP_UNDEF_HERE\)@\1undef\2     /\*\3@' < conftest > config.h
8014
 
rm -f conftest
8015
 
 ;;
8016
 
 
8017
 
  esac
8018
 
done # for ac_tag
8019
 
 
8020
 
 
8021
 
as_fn_exit 0
8022
 
_ACEOF
8023
 
ac_clean_files=$ac_clean_files_save
8024
 
 
8025
 
test $ac_write_fail = 0 ||
8026
 
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8027
 
 
8028
 
 
8029
 
# configure is writing to config.log, and then calls config.status.
8030
 
# config.status does its own redirection, appending to config.log.
8031
 
# Unfortunately, on DOS this fails, as config.log is still kept open
8032
 
# by configure, so config.status won't be able to write to it; its
8033
 
# output is simply discarded.  So we exec the FD to /dev/null,
8034
 
# effectively closing config.log, so it can be properly (re)opened and
8035
 
# appended to by config.status.  When coming back to configure, we
8036
 
# need to make the FD available again.
8037
 
if test "$no_create" != yes; then
8038
 
  ac_cs_success=:
8039
 
  ac_config_status_args=
8040
 
  test "$silent" = yes &&
8041
 
    ac_config_status_args="$ac_config_status_args --quiet"
8042
 
  exec 5>/dev/null
8043
 
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8044
 
  exec 5>>config.log
8045
 
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8046
 
  # would make configure fail if this is the last instruction.
8047
 
  $ac_cs_success || as_fn_exit 1
8048
 
fi
8049
 
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8050
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8051
 
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8052
 
fi
8053
 
 
8054
 
 
8055
 
echo ""
8056
 
if test -z "$AWK"; then
8057
 
echo "!!! Since you have no awk you must copy the files 'comm.h.dist'"
8058
 
echo "!!! and 'term.h.dist' to 'comm.h' and 'term.h'."
8059
 
echo "!!! Do _not_ change the user configuration section in config.h!"
8060
 
echo "Please check the pathnames in the Makefile."
8061
 
else
8062
 
echo "Now please check the pathnames in the Makefile and in the user"
8063
 
echo "configuration section in config.h."
8064
 
fi
8065
 
echo "Then type 'make' to make screen. Good luck."
8066
 
echo ""