~ubuntu-branches/ubuntu/saucy/biosdevname/saucy-proposed

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2011-02-23 17:58:36 UTC
  • Revision ID: james.westby@ubuntu.com-20110223175836-4f0cbcno9zm0lmdu
Tags: upstream-0.3.7
ImportĀ upstreamĀ versionĀ 0.3.7

Show diffs side-by-side

added added

removed removed

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