~hamo/ubuntu/precise/grub2/grub2.hi_res

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson, Colin Watson, Robert Millan, Updated translations
  • Date: 2010-11-22 12:24:56 UTC
  • mfrom: (1.26.4 upstream) (17.3.36 sid)
  • mto: (17.3.43 sid)
  • mto: This revision was merged to the branch mainline in revision 89.
  • Revision ID: james.westby@ubuntu.com-20101122122456-y82z3sfb7k4zfdcc
Tags: 1.99~20101122-1
[ Colin Watson ]
* New Bazaar snapshot.  Too many changes to list in full, but some of the
  more user-visible ones are as follows:
  - GRUB script:
    + Function parameters, "break", "continue", "shift", "setparams",
      "return", and "!".
    + "export" command supports multiple variable names.
    + Multi-line quoted strings support.
    + Wildcard expansion.
  - sendkey support.
  - USB hotunplugging and USB serial support.
  - Rename CD-ROM to cd on BIOS.
  - Add new --boot-directory option to grub-install, grub-reboot, and
    grub-set-default; the old --root-directory option is still accepted
    but was often confusing.
  - Basic btrfs detection/UUID support (but no file reading yet).
  - bash-completion for utilities.
  - If a device is listed in device.map, always assume that it is
    BIOS-visible rather than using extra layers such as LVM or RAID.
  - Add grub-mknetdir script (closes: #550658).
  - Remove deprecated "root" command.
  - Handle RAID devices containing virtio components.
  - GRUB Legacy configuration file support (via grub-menulst2cfg).
  - Keyboard layout support (via grub-mklayout and grub-kbdcomp).
  - Check generated grub.cfg for syntax errors before saving.
  - Pause execution for at most ten seconds if any errors are displayed,
    so that the user has a chance to see them.
  - Support submenus.
  - Write embedding zone using Reed-Solomon, so that it's robust against
    being partially overwritten (closes: #550702, #591416, #593347).
  - GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY merged
    into a single GRUB_DISABLE_RECOVERY variable.
  - Fix loader memory allocation failure (closes: #551627).
  - Don't call savedefault on recovery entries (closes: #589325).
  - Support triple-indirect blocks on ext2 (closes: #543924).
  - Recognise DDF1 fake RAID (closes: #603354).

[ Robert Millan ]
* Use dpkg architecture wildcards.

[ Updated translations ]
* Slovenian (Vanja Cvelbar).  Closes: #604003
* Dzongkha (dawa pemo via Tenzin Dendup).  Closes: #604102

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 GRUB 1.99~20101119-1.
 
4
#
 
5
# Report bugs to <bug-grub@gnu.org>.
 
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 bug-grub@gnu.org
 
234
$0: about your system, including any error possibly output
 
235
$0: before this message. Then install a modern shell, or
 
236
$0: manually run the script under such a shell if you do
 
237
$0: 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='GRUB'
 
554
PACKAGE_TARNAME='grub'
 
555
PACKAGE_VERSION='1.99~20101119-1'
 
556
PACKAGE_STRING='GRUB 1.99~20101119-1'
 
557
PACKAGE_BUGREPORT='bug-grub@gnu.org'
 
558
PACKAGE_URL=''
 
559
 
 
560
ac_unique_file="include/grub/dl.h"
 
561
# Factoring default headers for most tests.
 
562
ac_includes_default="\
 
563
#include <stdio.h>
 
564
#ifdef HAVE_SYS_TYPES_H
 
565
# include <sys/types.h>
 
566
#endif
 
567
#ifdef HAVE_SYS_STAT_H
 
568
# include <sys/stat.h>
 
569
#endif
 
570
#ifdef STDC_HEADERS
 
571
# include <stdlib.h>
 
572
# include <stddef.h>
 
573
#else
 
574
# ifdef HAVE_STDLIB_H
 
575
#  include <stdlib.h>
 
576
# endif
 
577
#endif
 
578
#ifdef HAVE_STRING_H
 
579
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
580
#  include <memory.h>
 
581
# endif
 
582
# include <string.h>
 
583
#endif
 
584
#ifdef HAVE_STRINGS_H
 
585
# include <strings.h>
 
586
#endif
 
587
#ifdef HAVE_INTTYPES_H
 
588
# include <inttypes.h>
 
589
#endif
 
590
#ifdef HAVE_STDINT_H
 
591
# include <stdint.h>
 
592
#endif
 
593
#ifdef HAVE_UNISTD_H
 
594
# include <unistd.h>
 
595
#endif"
 
596
 
 
597
gt_needs=
 
598
ac_func_list=
 
599
ac_header_list=
 
600
gl_fnmatch_required=POSIX
 
601
gl_getopt_required=POSIX
 
602
gl_getopt_required=POSIX
 
603
ac_subst_vars='gltests_LTLIBOBJS
 
604
gltests_LIBOBJS
 
605
gl_LTLIBOBJS
 
606
gl_LIBOBJS
 
607
am__EXEEXT_FALSE
 
608
am__EXEEXT_TRUE
 
609
LTLIBOBJS
 
610
LIBOBJS
 
611
COND_HAVE_ASM_USCORE_FALSE
 
612
COND_HAVE_ASM_USCORE_TRUE
 
613
COND_ENABLE_EFIEMU_FALSE
 
614
COND_ENABLE_EFIEMU_TRUE
 
615
COND_APPLE_CC_FALSE
 
616
COND_APPLE_CC_TRUE
 
617
COND_GRUB_PE2ELF_FALSE
 
618
COND_GRUB_PE2ELF_TRUE
 
619
COND_HAVE_FONT_SOURCE_FALSE
 
620
COND_HAVE_FONT_SOURCE_TRUE
 
621
COND_GRUB_MKFONT_FALSE
 
622
COND_GRUB_MKFONT_TRUE
 
623
COND_GRUB_EMU_PCI_FALSE
 
624
COND_GRUB_EMU_PCI_TRUE
 
625
COND_GRUB_EMU_SDL_FALSE
 
626
COND_GRUB_EMU_SDL_TRUE
 
627
COND_GRUB_EMU_USB_FALSE
 
628
COND_GRUB_EMU_USB_TRUE
 
629
COND_MAN_PAGES_FALSE
 
630
COND_MAN_PAGES_TRUE
 
631
COND_HOST_KFREEBSD_FALSE
 
632
COND_HOST_KFREEBSD_TRUE
 
633
COND_HOST_WINDOWS_FALSE
 
634
COND_HOST_WINDOWS_TRUE
 
635
COND_HOST_NETBSD_FALSE
 
636
COND_HOST_NETBSD_TRUE
 
637
COND_HOST_LINUX_FALSE
 
638
COND_HOST_LINUX_TRUE
 
639
COND_HOST_HURD_FALSE
 
640
COND_HOST_HURD_TRUE
 
641
COND_mips_FALSE
 
642
COND_mips_TRUE
 
643
COND_powerpc_ieee1275_FALSE
 
644
COND_powerpc_ieee1275_TRUE
 
645
COND_sparc64_ieee1275_FALSE
 
646
COND_sparc64_ieee1275_TRUE
 
647
COND_mips_qemu_mips_FALSE
 
648
COND_mips_qemu_mips_TRUE
 
649
COND_mips_yeeloong_FALSE
 
650
COND_mips_yeeloong_TRUE
 
651
COND_x86_64_efi_FALSE
 
652
COND_x86_64_efi_TRUE
 
653
COND_i386_multiboot_FALSE
 
654
COND_i386_multiboot_TRUE
 
655
COND_i386_coreboot_FALSE
 
656
COND_i386_coreboot_TRUE
 
657
COND_i386_ieee1275_FALSE
 
658
COND_i386_ieee1275_TRUE
 
659
COND_i386_qemu_FALSE
 
660
COND_i386_qemu_TRUE
 
661
COND_i386_efi_FALSE
 
662
COND_i386_efi_TRUE
 
663
COND_i386_pc_FALSE
 
664
COND_i386_pc_TRUE
 
665
COND_emu_FALSE
 
666
COND_emu_TRUE
 
667
NEED_REGISTER_FRAME_INFO
 
668
NEED_ENABLE_EXECUTE_STACK
 
669
END_SYMBOL
 
670
BSS_START_SYMBOL
 
671
DATA32
 
672
ADDR32
 
673
HAVE_ASM_USCORE
 
674
USE_APPLE_CC_FIXES
 
675
GRUB_BOOT_MACHINE_LINK_ADDR
 
676
pkglibrootdir
 
677
LIBNVPAIR
 
678
LIBZFS
 
679
LIBLZMA
 
680
LIBDEVMAPPER
 
681
freetype_libs
 
682
freetype_cflags
 
683
enable_grub_mkfont
 
684
FREETYPE
 
685
enable_grub_emu_pci
 
686
enable_grub_emu_usb
 
687
enable_grub_emu_sdl
 
688
LIBPCIACCESS
 
689
LIBSDL
 
690
LIBUSB
 
691
LIBCURSES
 
692
enable_efiemu
 
693
HOST_CCASFLAGS
 
694
HOST_CPPFLAGS
 
695
HOST_LDFLAGS
 
696
HOST_CFLAGS
 
697
TARGET_IMG_BASE_LDOPT
 
698
TARGET_IMG_CFLAGS
 
699
TARGET_IMG_LDFLAGS
 
700
TARGET_IMG_LDSCRIPT
 
701
TARGET_CCASFLAGS
 
702
TARGET_CPPFLAGS
 
703
TARGET_LDFLAGS
 
704
TARGET_CFLAGS
 
705
TARGET_MODULE_FORMAT
 
706
TARGET_APPLE_CC
 
707
TARGET_OBJ2ELF
 
708
TARGET_CCAS
 
709
TARGET_CPP
 
710
OBJCONV
 
711
HOST_CC
 
712
NM
 
713
OBJCOPY
 
714
ac_ct_TARGET_CC
 
715
TARGET_CC
 
716
LIBGNU_LTLIBDEPS
 
717
LIBGNU_LIBDEPS
 
718
gltests_WITNESS
 
719
REPLACE_ISWCNTRL
 
720
HAVE_WCTYPE_H
 
721
NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
 
722
NEXT_WCTYPE_H
 
723
REPLACE_ISWBLANK
 
724
HAVE_ISWBLANK
 
725
HAVE_ISWCNTRL
 
726
HAVE_WINT_T
 
727
HAVE_WCHAR_H
 
728
NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
 
729
NEXT_WCHAR_H
 
730
HAVE_UNISTD_H
 
731
NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
 
732
NEXT_UNISTD_H
 
733
SYSEXITS_H
 
734
HAVE_SYSEXITS_H
 
735
NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H
 
736
NEXT_SYSEXITS_H
 
737
NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H
 
738
NEXT_SYS_WAIT_H
 
739
NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
 
740
NEXT_STRINGS_H
 
741
NEXT_AS_FIRST_DIRECTIVE_STRING_H
 
742
NEXT_STRING_H
 
743
HAVE_DECL_STRNCASECMP
 
744
HAVE_STRCASECMP
 
745
HAVE_RANDOM_H
 
746
NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
 
747
NEXT_STDLIB_H
 
748
NEXT_AS_FIRST_DIRECTIVE_STDIO_H
 
749
NEXT_STDIO_H
 
750
ASM_SYMBOL_PREFIX
 
751
STDINT_H
 
752
WINT_T_SUFFIX
 
753
WCHAR_T_SUFFIX
 
754
SIG_ATOMIC_T_SUFFIX
 
755
SIZE_T_SUFFIX
 
756
PTRDIFF_T_SUFFIX
 
757
HAVE_SIGNED_WINT_T
 
758
HAVE_SIGNED_WCHAR_T
 
759
HAVE_SIGNED_SIG_ATOMIC_T
 
760
BITSIZEOF_WINT_T
 
761
BITSIZEOF_WCHAR_T
 
762
BITSIZEOF_SIG_ATOMIC_T
 
763
BITSIZEOF_SIZE_T
 
764
BITSIZEOF_PTRDIFF_T
 
765
HAVE_SYS_BITYPES_H
 
766
HAVE_SYS_INTTYPES_H
 
767
HAVE_STDINT_H
 
768
NEXT_AS_FIRST_DIRECTIVE_STDINT_H
 
769
NEXT_STDINT_H
 
770
HAVE_SYS_TYPES_H
 
771
HAVE_INTTYPES_H
 
772
HAVE_UNSIGNED_LONG_LONG_INT
 
773
HAVE_LONG_LONG_INT
 
774
NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
 
775
NEXT_STDDEF_H
 
776
STDDEF_H
 
777
HAVE_WCHAR_T
 
778
REPLACE_NULL
 
779
HAVE__BOOL
 
780
STDBOOL_H
 
781
APPLE_UNIVERSAL_BUILD
 
782
UNDEFINE_STRTOK_R
 
783
REPLACE_STRTOK_R
 
784
REPLACE_STRSIGNAL
 
785
REPLACE_STRNLEN
 
786
REPLACE_STRNDUP
 
787
REPLACE_STRNCAT
 
788
REPLACE_STRERROR
 
789
REPLACE_STRCASESTR
 
790
REPLACE_STRSTR
 
791
REPLACE_STRDUP
 
792
REPLACE_STPNCPY
 
793
REPLACE_MEMMEM
 
794
REPLACE_MEMCHR
 
795
HAVE_STRVERSCMP
 
796
HAVE_DECL_STRSIGNAL
 
797
HAVE_DECL_STRTOK_R
 
798
HAVE_STRCASESTR
 
799
HAVE_STRSEP
 
800
HAVE_STRPBRK
 
801
HAVE_DECL_STRNLEN
 
802
HAVE_DECL_STRNDUP
 
803
HAVE_DECL_STRDUP
 
804
HAVE_STRCHRNUL
 
805
HAVE_STPNCPY
 
806
HAVE_STPCPY
 
807
HAVE_RAWMEMCHR
 
808
HAVE_DECL_MEMRCHR
 
809
HAVE_MEMPCPY
 
810
HAVE_DECL_MEMMEM
 
811
HAVE_MEMCHR
 
812
HAVE_MBSLEN
 
813
GNULIB_STRVERSCMP
 
814
GNULIB_STRSIGNAL
 
815
GNULIB_STRERROR
 
816
GNULIB_MBSTOK_R
 
817
GNULIB_MBSSEP
 
818
GNULIB_MBSSPN
 
819
GNULIB_MBSPBRK
 
820
GNULIB_MBSCSPN
 
821
GNULIB_MBSCASESTR
 
822
GNULIB_MBSPCASECMP
 
823
GNULIB_MBSNCASECMP
 
824
GNULIB_MBSCASECMP
 
825
GNULIB_MBSSTR
 
826
GNULIB_MBSRCHR
 
827
GNULIB_MBSCHR
 
828
GNULIB_MBSNLEN
 
829
GNULIB_MBSLEN
 
830
GNULIB_STRTOK_R
 
831
GNULIB_STRCASESTR
 
832
GNULIB_STRSTR
 
833
GNULIB_STRSEP
 
834
GNULIB_STRPBRK
 
835
GNULIB_STRNLEN
 
836
GNULIB_STRNDUP
 
837
GNULIB_STRNCAT
 
838
GNULIB_STRDUP
 
839
GNULIB_STRCHRNUL
 
840
GNULIB_STPNCPY
 
841
GNULIB_STPCPY
 
842
GNULIB_RAWMEMCHR
 
843
GNULIB_MEMRCHR
 
844
GNULIB_MEMPCPY
 
845
GNULIB_MEMMEM
 
846
GNULIB_MEMCHR
 
847
LOCALE_FR_UTF8
 
848
LOCALE_ZH_CN
 
849
LOCALE_JA
 
850
REPLACE_UNSETENV
 
851
REPLACE_STRTOD
 
852
REPLACE_SETENV
 
853
REPLACE_REALPATH
 
854
REPLACE_REALLOC
 
855
REPLACE_PUTENV
 
856
REPLACE_MKSTEMP
 
857
REPLACE_MALLOC
 
858
REPLACE_CANONICALIZE_FILE_NAME
 
859
REPLACE_CALLOC
 
860
HAVE_UNSETENV
 
861
HAVE_UNLOCKPT
 
862
HAVE_SYS_LOADAVG_H
 
863
HAVE_STRUCT_RANDOM_DATA
 
864
HAVE_STRTOULL
 
865
HAVE_STRTOLL
 
866
HAVE_STRTOD
 
867
HAVE_SETENV
 
868
HAVE_RPMATCH
 
869
HAVE_REALPATH
 
870
HAVE_RANDOM_R
 
871
HAVE_PTSNAME
 
872
HAVE_MKSTEMPS
 
873
HAVE_MKSTEMP
 
874
HAVE_MKOSTEMPS
 
875
HAVE_MKOSTEMP
 
876
HAVE_MKDTEMP
 
877
HAVE_GRANTPT
 
878
HAVE_GETSUBOPT
 
879
HAVE_DECL_GETLOADAVG
 
880
HAVE_CANONICALIZE_FILE_NAME
 
881
HAVE_ATOLL
 
882
HAVE__EXIT
 
883
GNULIB_UNSETENV
 
884
GNULIB_UNLOCKPT
 
885
GNULIB_STRTOULL
 
886
GNULIB_STRTOLL
 
887
GNULIB_STRTOD
 
888
GNULIB_SETENV
 
889
GNULIB_RPMATCH
 
890
GNULIB_REALPATH
 
891
GNULIB_REALLOC_POSIX
 
892
GNULIB_RANDOM_R
 
893
GNULIB_PUTENV
 
894
GNULIB_PTSNAME
 
895
GNULIB_MKSTEMPS
 
896
GNULIB_MKSTEMP
 
897
GNULIB_MKOSTEMPS
 
898
GNULIB_MKOSTEMP
 
899
GNULIB_MKDTEMP
 
900
GNULIB_MALLOC_POSIX
 
901
GNULIB_GRANTPT
 
902
GNULIB_GETSUBOPT
 
903
GNULIB_GETLOADAVG
 
904
GNULIB_CANONICALIZE_FILE_NAME
 
905
GNULIB_CALLOC_POSIX
 
906
GNULIB_ATOLL
 
907
GNULIB__EXIT
 
908
LOCALCHARSET_TESTS_ENVIRONMENT
 
909
GLIBC21
 
910
HAVE_LANGINFO_YESEXPR
 
911
HAVE_LANGINFO_ERA
 
912
HAVE_LANGINFO_T_FMT_AMPM
 
913
HAVE_LANGINFO_CODESET
 
914
HAVE_LANGINFO_H
 
915
NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
 
916
NEXT_LANGINFO_H
 
917
REPLACE_NL_LANGINFO
 
918
HAVE_NL_LANGINFO
 
919
GNULIB_NL_LANGINFO
 
920
HAVE_GETOPT_H
 
921
NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
 
922
NEXT_GETOPT_H
 
923
UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
 
924
UNISTD_H_HAVE_WINSOCK2_H
 
925
REPLACE_WRITE
 
926
REPLACE_USLEEP
 
927
REPLACE_UNLINKAT
 
928
REPLACE_UNLINK
 
929
REPLACE_TTYNAME_R
 
930
REPLACE_SYMLINK
 
931
REPLACE_SLEEP
 
932
REPLACE_RMDIR
 
933
REPLACE_READLINK
 
934
REPLACE_PWRITE
 
935
REPLACE_PREAD
 
936
REPLACE_LSEEK
 
937
REPLACE_LINKAT
 
938
REPLACE_LINK
 
939
REPLACE_LCHOWN
 
940
REPLACE_GETPAGESIZE
 
941
REPLACE_GETGROUPS
 
942
REPLACE_GETCWD
 
943
REPLACE_FCHOWNAT
 
944
REPLACE_DUP2
 
945
REPLACE_DUP
 
946
REPLACE_CLOSE
 
947
REPLACE_CHOWN
 
948
HAVE_SYS_PARAM_H
 
949
HAVE_OS_H
 
950
HAVE_DECL_GETUSERSHELL
 
951
HAVE_DECL_GETPAGESIZE
 
952
HAVE_DECL_GETLOGIN_R
 
953
HAVE_DECL_ENVIRON
 
954
HAVE_USLEEP
 
955
HAVE_UNLINKAT
 
956
HAVE_TTYNAME_R
 
957
HAVE_SYMLINKAT
 
958
HAVE_SYMLINK
 
959
HAVE_SLEEP
 
960
HAVE_READLINKAT
 
961
HAVE_READLINK
 
962
HAVE_PWRITE
 
963
HAVE_PREAD
 
964
HAVE_PIPE2
 
965
HAVE_LINKAT
 
966
HAVE_LINK
 
967
HAVE_LCHOWN
 
968
HAVE_GETPAGESIZE
 
969
HAVE_GETLOGIN
 
970
HAVE_GETHOSTNAME
 
971
HAVE_GETGROUPS
 
972
HAVE_GETDTABLESIZE
 
973
HAVE_GETDOMAINNAME
 
974
HAVE_FTRUNCATE
 
975
HAVE_FSYNC
 
976
HAVE_FCHOWNAT
 
977
HAVE_FCHDIR
 
978
HAVE_FACCESSAT
 
979
HAVE_EUIDACCESS
 
980
HAVE_DUP3
 
981
HAVE_DUP2
 
982
HAVE_CHOWN
 
983
GNULIB_WRITE
 
984
GNULIB_USLEEP
 
985
GNULIB_UNLINKAT
 
986
GNULIB_UNLINK
 
987
GNULIB_UNISTD_H_SIGPIPE
 
988
GNULIB_UNISTD_H_GETOPT
 
989
GNULIB_TTYNAME_R
 
990
GNULIB_SYMLINKAT
 
991
GNULIB_SYMLINK
 
992
GNULIB_SLEEP
 
993
GNULIB_RMDIR
 
994
GNULIB_READLINKAT
 
995
GNULIB_READLINK
 
996
GNULIB_PWRITE
 
997
GNULIB_PREAD
 
998
GNULIB_PIPE2
 
999
GNULIB_LSEEK
 
1000
GNULIB_LINKAT
 
1001
GNULIB_LINK
 
1002
GNULIB_LCHOWN
 
1003
GNULIB_GETUSERSHELL
 
1004
GNULIB_GETPAGESIZE
 
1005
GNULIB_GETLOGIN_R
 
1006
GNULIB_GETLOGIN
 
1007
GNULIB_GETHOSTNAME
 
1008
GNULIB_GETGROUPS
 
1009
GNULIB_GETDTABLESIZE
 
1010
GNULIB_GETDOMAINNAME
 
1011
GNULIB_GETCWD
 
1012
GNULIB_FTRUNCATE
 
1013
GNULIB_FSYNC
 
1014
GNULIB_FCHOWNAT
 
1015
GNULIB_FCHDIR
 
1016
GNULIB_FACCESSAT
 
1017
GNULIB_EUIDACCESS
 
1018
GNULIB_ENVIRON
 
1019
GNULIB_DUP3
 
1020
GNULIB_DUP2
 
1021
GNULIB_CLOSE
 
1022
GNULIB_CHOWN
 
1023
REPLACE_VSPRINTF
 
1024
REPLACE_VSNPRINTF
 
1025
REPLACE_VPRINTF
 
1026
REPLACE_VFPRINTF
 
1027
REPLACE_VDPRINTF
 
1028
REPLACE_VASPRINTF
 
1029
REPLACE_TMPFILE
 
1030
REPLACE_STDIO_WRITE_FUNCS
 
1031
REPLACE_SPRINTF
 
1032
REPLACE_SNPRINTF
 
1033
REPLACE_RENAMEAT
 
1034
REPLACE_RENAME
 
1035
REPLACE_REMOVE
 
1036
REPLACE_PRINTF
 
1037
REPLACE_POPEN
 
1038
REPLACE_PERROR
 
1039
REPLACE_OBSTACK_PRINTF
 
1040
REPLACE_GETLINE
 
1041
REPLACE_GETDELIM
 
1042
REPLACE_FTELLO
 
1043
REPLACE_FTELL
 
1044
REPLACE_FSEEKO
 
1045
REPLACE_FSEEK
 
1046
REPLACE_FREOPEN
 
1047
REPLACE_FPURGE
 
1048
REPLACE_FPRINTF
 
1049
REPLACE_FOPEN
 
1050
REPLACE_FFLUSH
 
1051
REPLACE_FCLOSE
 
1052
REPLACE_DPRINTF
 
1053
HAVE_VDPRINTF
 
1054
HAVE_VASPRINTF
 
1055
HAVE_RENAMEAT
 
1056
HAVE_FTELLO
 
1057
HAVE_FSEEKO
 
1058
HAVE_DPRINTF
 
1059
HAVE_DECL_VSNPRINTF
 
1060
HAVE_DECL_SNPRINTF
 
1061
HAVE_DECL_OBSTACK_PRINTF
 
1062
HAVE_DECL_GETLINE
 
1063
HAVE_DECL_GETDELIM
 
1064
HAVE_DECL_FPURGE
 
1065
GNULIB_VSPRINTF_POSIX
 
1066
GNULIB_VSNPRINTF
 
1067
GNULIB_VPRINTF_POSIX
 
1068
GNULIB_VPRINTF
 
1069
GNULIB_VFPRINTF_POSIX
 
1070
GNULIB_VFPRINTF
 
1071
GNULIB_VDPRINTF
 
1072
GNULIB_VASPRINTF
 
1073
GNULIB_TMPFILE
 
1074
GNULIB_STDIO_H_SIGPIPE
 
1075
GNULIB_SPRINTF_POSIX
 
1076
GNULIB_SNPRINTF
 
1077
GNULIB_RENAMEAT
 
1078
GNULIB_RENAME
 
1079
GNULIB_REMOVE
 
1080
GNULIB_PUTS
 
1081
GNULIB_PUTCHAR
 
1082
GNULIB_PUTC
 
1083
GNULIB_PRINTF_POSIX
 
1084
GNULIB_PRINTF
 
1085
GNULIB_POPEN
 
1086
GNULIB_PERROR
 
1087
GNULIB_OBSTACK_PRINTF_POSIX
 
1088
GNULIB_OBSTACK_PRINTF
 
1089
GNULIB_GETLINE
 
1090
GNULIB_GETDELIM
 
1091
GNULIB_FWRITE
 
1092
GNULIB_FTELLO
 
1093
GNULIB_FTELL
 
1094
GNULIB_FSEEKO
 
1095
GNULIB_FSEEK
 
1096
GNULIB_FREOPEN
 
1097
GNULIB_FPUTS
 
1098
GNULIB_FPUTC
 
1099
GNULIB_FPURGE
 
1100
GNULIB_FPRINTF_POSIX
 
1101
GNULIB_FPRINTF
 
1102
GNULIB_FOPEN
 
1103
GNULIB_FFLUSH
 
1104
GNULIB_FCLOSE
 
1105
GNULIB_DPRINTF
 
1106
FNMATCH_H
 
1107
FLOAT_H
 
1108
NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
 
1109
NEXT_FLOAT_H
 
1110
EOVERFLOW_VALUE
 
1111
EOVERFLOW_HIDDEN
 
1112
ENOLINK_VALUE
 
1113
ENOLINK_HIDDEN
 
1114
EMULTIHOP_VALUE
 
1115
EMULTIHOP_HIDDEN
 
1116
ERRNO_H
 
1117
NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
 
1118
NEXT_ERRNO_H
 
1119
PRAGMA_SYSTEM_HEADER
 
1120
INCLUDE_NEXT_AS_FIRST_DIRECTIVE
 
1121
INCLUDE_NEXT
 
1122
LOCALE_FR
 
1123
REPLACE_WCWIDTH
 
1124
REPLACE_WCSNRTOMBS
 
1125
REPLACE_WCSRTOMBS
 
1126
REPLACE_WCRTOMB
 
1127
REPLACE_MBSNRTOWCS
 
1128
REPLACE_MBSRTOWCS
 
1129
REPLACE_MBRLEN
 
1130
REPLACE_MBRTOWC
 
1131
REPLACE_MBSINIT
 
1132
REPLACE_WCTOB
 
1133
REPLACE_BTOWC
 
1134
REPLACE_MBSTATE_T
 
1135
HAVE_DECL_WCWIDTH
 
1136
HAVE_DECL_WCTOB
 
1137
HAVE_WCSNRTOMBS
 
1138
HAVE_WCSRTOMBS
 
1139
HAVE_WCRTOMB
 
1140
HAVE_MBSNRTOWCS
 
1141
HAVE_MBSRTOWCS
 
1142
HAVE_MBRLEN
 
1143
HAVE_MBRTOWC
 
1144
HAVE_MBSINIT
 
1145
HAVE_BTOWC
 
1146
GNULIB_WCWIDTH
 
1147
GNULIB_WCSNRTOMBS
 
1148
GNULIB_WCSRTOMBS
 
1149
GNULIB_WCRTOMB
 
1150
GNULIB_MBSNRTOWCS
 
1151
GNULIB_MBSRTOWCS
 
1152
GNULIB_MBRLEN
 
1153
GNULIB_MBRTOWC
 
1154
GNULIB_MBSINIT
 
1155
GNULIB_WCTOB
 
1156
GNULIB_BTOWC
 
1157
GETOPT_H
 
1158
ALLOCA_H
 
1159
ALLOCA
 
1160
GL_COND_LIBTOOL_FALSE
 
1161
GL_COND_LIBTOOL_TRUE
 
1162
BUILD_CC
 
1163
LIBUTIL
 
1164
HELP2MAN
 
1165
POSUB
 
1166
LTLIBINTL
 
1167
LIBINTL
 
1168
INTLLIBS
 
1169
LTLIBICONV
 
1170
LIBICONV
 
1171
INTL_MACOSX_LIBS
 
1172
XGETTEXT_EXTRA_OPTIONS
 
1173
MSGMERGE
 
1174
XGETTEXT_015
 
1175
XGETTEXT
 
1176
GMSGFMT_015
 
1177
MSGFMT_015
 
1178
GMSGFMT
 
1179
MSGFMT
 
1180
GETTEXT_MACRO_VERSION
 
1181
USE_NLS
 
1182
am__fastdepCCAS_FALSE
 
1183
am__fastdepCCAS_TRUE
 
1184
CCASDEPMODE
 
1185
CCASFLAGS
 
1186
CCAS
 
1187
EGREP
 
1188
GREP
 
1189
CPP
 
1190
LN_S
 
1191
YFLAGS
 
1192
LEXLIB
 
1193
am__fastdepCC_FALSE
 
1194
am__fastdepCC_TRUE
 
1195
CCDEPMODE
 
1196
AMDEPBACKSLASH
 
1197
AMDEP_FALSE
 
1198
AMDEP_TRUE
 
1199
am__quote
 
1200
am__include
 
1201
DEPDIR
 
1202
OBJEXT
 
1203
EXEEXT
 
1204
ac_ct_CC
 
1205
CPPFLAGS
 
1206
LDFLAGS
 
1207
CFLAGS
 
1208
CC
 
1209
LEX_OUTPUT_ROOT
 
1210
LEX
 
1211
RANLIB
 
1212
FONT_SOURCE
 
1213
YACC
 
1214
CMP
 
1215
grubdirname
 
1216
bootdirname
 
1217
platform
 
1218
host_kernel
 
1219
am__untar
 
1220
am__tar
 
1221
AMTAR
 
1222
am__leading_dot
 
1223
SET_MAKE
 
1224
AWK
 
1225
mkdir_p
 
1226
MKDIR_P
 
1227
INSTALL_STRIP_PROGRAM
 
1228
STRIP
 
1229
install_sh
 
1230
MAKEINFO
 
1231
AUTOHEADER
 
1232
AUTOMAKE
 
1233
AUTOCONF
 
1234
ACLOCAL
 
1235
VERSION
 
1236
PACKAGE
 
1237
CYGPATH_W
 
1238
am__isrc
 
1239
INSTALL_DATA
 
1240
INSTALL_SCRIPT
 
1241
INSTALL_PROGRAM
 
1242
target_os
 
1243
target_vendor
 
1244
target_cpu
 
1245
target
 
1246
host_os
 
1247
host_vendor
 
1248
host_cpu
 
1249
host
 
1250
build_os
 
1251
build_vendor
 
1252
build_cpu
 
1253
build
 
1254
target_alias
 
1255
host_alias
 
1256
build_alias
 
1257
LIBS
 
1258
ECHO_T
 
1259
ECHO_N
 
1260
ECHO_C
 
1261
DEFS
 
1262
mandir
 
1263
localedir
 
1264
libdir
 
1265
psdir
 
1266
pdfdir
 
1267
dvidir
 
1268
htmldir
 
1269
infodir
 
1270
docdir
 
1271
oldincludedir
 
1272
includedir
 
1273
localstatedir
 
1274
sharedstatedir
 
1275
sysconfdir
 
1276
datadir
 
1277
datarootdir
 
1278
libexecdir
 
1279
sbindir
 
1280
bindir
 
1281
program_transform_name
 
1282
prefix
 
1283
exec_prefix
 
1284
PACKAGE_URL
 
1285
PACKAGE_BUGREPORT
 
1286
PACKAGE_STRING
 
1287
PACKAGE_VERSION
 
1288
PACKAGE_TARNAME
 
1289
PACKAGE_NAME
 
1290
PATH_SEPARATOR
 
1291
SHELL'
 
1292
ac_subst_files=''
 
1293
ac_user_opts='
 
1294
enable_option_checking
 
1295
with_platform
 
1296
enable_dependency_tracking
 
1297
enable_nls
 
1298
with_gnu_ld
 
1299
enable_rpath
 
1300
with_libiconv_prefix
 
1301
with_libintl_prefix
 
1302
enable_largefile
 
1303
with_included_regex
 
1304
enable_werror
 
1305
enable_efiemu
 
1306
enable_mm_debug
 
1307
enable_grub_emu_usb
 
1308
enable_grub_emu_sdl
 
1309
enable_grub_emu_pci
 
1310
enable_grub_mkfont
 
1311
enable_device_mapper
 
1312
'
 
1313
      ac_precious_vars='build_alias
 
1314
host_alias
 
1315
target_alias
 
1316
CC
 
1317
CFLAGS
 
1318
LDFLAGS
 
1319
LIBS
 
1320
CPPFLAGS
 
1321
YACC
 
1322
YFLAGS
 
1323
CPP
 
1324
CCAS
 
1325
CCASFLAGS'
 
1326
 
 
1327
 
 
1328
# Initialize some variables set by options.
 
1329
ac_init_help=
 
1330
ac_init_version=false
 
1331
ac_unrecognized_opts=
 
1332
ac_unrecognized_sep=
 
1333
# The variables have the same names as the options, with
 
1334
# dashes changed to underlines.
 
1335
cache_file=/dev/null
 
1336
exec_prefix=NONE
 
1337
no_create=
 
1338
no_recursion=
 
1339
prefix=NONE
 
1340
program_prefix=NONE
 
1341
program_suffix=NONE
 
1342
program_transform_name=s,x,x,
 
1343
silent=
 
1344
site=
 
1345
srcdir=
 
1346
verbose=
 
1347
x_includes=NONE
 
1348
x_libraries=NONE
 
1349
 
 
1350
# Installation directory options.
 
1351
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
1352
# and all the variables that are supposed to be based on exec_prefix
 
1353
# by default will actually change.
 
1354
# Use braces instead of parens because sh, perl, etc. also accept them.
 
1355
# (The list follows the same order as the GNU Coding Standards.)
 
1356
bindir='${exec_prefix}/bin'
 
1357
sbindir='${exec_prefix}/sbin'
 
1358
libexecdir='${exec_prefix}/libexec'
 
1359
datarootdir='${prefix}/share'
 
1360
datadir='${datarootdir}'
 
1361
sysconfdir='${prefix}/etc'
 
1362
sharedstatedir='${prefix}/com'
 
1363
localstatedir='${prefix}/var'
 
1364
includedir='${prefix}/include'
 
1365
oldincludedir='/usr/include'
 
1366
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
1367
infodir='${datarootdir}/info'
 
1368
htmldir='${docdir}'
 
1369
dvidir='${docdir}'
 
1370
pdfdir='${docdir}'
 
1371
psdir='${docdir}'
 
1372
libdir='${exec_prefix}/lib'
 
1373
localedir='${datarootdir}/locale'
 
1374
mandir='${datarootdir}/man'
 
1375
 
 
1376
ac_prev=
 
1377
ac_dashdash=
 
1378
for ac_option
 
1379
do
 
1380
  # If the previous option needs an argument, assign it.
 
1381
  if test -n "$ac_prev"; then
 
1382
    eval $ac_prev=\$ac_option
 
1383
    ac_prev=
 
1384
    continue
 
1385
  fi
 
1386
 
 
1387
  case $ac_option in
 
1388
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
1389
  *=)   ac_optarg= ;;
 
1390
  *)    ac_optarg=yes ;;
 
1391
  esac
 
1392
 
 
1393
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
1394
 
 
1395
  case $ac_dashdash$ac_option in
 
1396
  --)
 
1397
    ac_dashdash=yes ;;
 
1398
 
 
1399
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
1400
    ac_prev=bindir ;;
 
1401
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
1402
    bindir=$ac_optarg ;;
 
1403
 
 
1404
  -build | --build | --buil | --bui | --bu)
 
1405
    ac_prev=build_alias ;;
 
1406
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
1407
    build_alias=$ac_optarg ;;
 
1408
 
 
1409
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
1410
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
1411
    ac_prev=cache_file ;;
 
1412
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
1413
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
1414
    cache_file=$ac_optarg ;;
 
1415
 
 
1416
  --config-cache | -C)
 
1417
    cache_file=config.cache ;;
 
1418
 
 
1419
  -datadir | --datadir | --datadi | --datad)
 
1420
    ac_prev=datadir ;;
 
1421
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1422
    datadir=$ac_optarg ;;
 
1423
 
 
1424
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1425
  | --dataroo | --dataro | --datar)
 
1426
    ac_prev=datarootdir ;;
 
1427
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1428
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1429
    datarootdir=$ac_optarg ;;
 
1430
 
 
1431
  -disable-* | --disable-*)
 
1432
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1433
    # Reject names that are not valid shell variable names.
 
1434
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1435
      as_fn_error $? "invalid feature name: $ac_useropt"
 
1436
    ac_useropt_orig=$ac_useropt
 
1437
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1438
    case $ac_user_opts in
 
1439
      *"
 
1440
"enable_$ac_useropt"
 
1441
"*) ;;
 
1442
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
1443
         ac_unrecognized_sep=', ';;
 
1444
    esac
 
1445
    eval enable_$ac_useropt=no ;;
 
1446
 
 
1447
  -docdir | --docdir | --docdi | --doc | --do)
 
1448
    ac_prev=docdir ;;
 
1449
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1450
    docdir=$ac_optarg ;;
 
1451
 
 
1452
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1453
    ac_prev=dvidir ;;
 
1454
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1455
    dvidir=$ac_optarg ;;
 
1456
 
 
1457
  -enable-* | --enable-*)
 
1458
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1459
    # Reject names that are not valid shell variable names.
 
1460
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1461
      as_fn_error $? "invalid feature name: $ac_useropt"
 
1462
    ac_useropt_orig=$ac_useropt
 
1463
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1464
    case $ac_user_opts in
 
1465
      *"
 
1466
"enable_$ac_useropt"
 
1467
"*) ;;
 
1468
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
1469
         ac_unrecognized_sep=', ';;
 
1470
    esac
 
1471
    eval enable_$ac_useropt=\$ac_optarg ;;
 
1472
 
 
1473
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1474
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1475
  | --exec | --exe | --ex)
 
1476
    ac_prev=exec_prefix ;;
 
1477
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1478
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1479
  | --exec=* | --exe=* | --ex=*)
 
1480
    exec_prefix=$ac_optarg ;;
 
1481
 
 
1482
  -gas | --gas | --ga | --g)
 
1483
    # Obsolete; use --with-gas.
 
1484
    with_gas=yes ;;
 
1485
 
 
1486
  -help | --help | --hel | --he | -h)
 
1487
    ac_init_help=long ;;
 
1488
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1489
    ac_init_help=recursive ;;
 
1490
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1491
    ac_init_help=short ;;
 
1492
 
 
1493
  -host | --host | --hos | --ho)
 
1494
    ac_prev=host_alias ;;
 
1495
  -host=* | --host=* | --hos=* | --ho=*)
 
1496
    host_alias=$ac_optarg ;;
 
1497
 
 
1498
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1499
    ac_prev=htmldir ;;
 
1500
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1501
  | --ht=*)
 
1502
    htmldir=$ac_optarg ;;
 
1503
 
 
1504
  -includedir | --includedir | --includedi | --included | --include \
 
1505
  | --includ | --inclu | --incl | --inc)
 
1506
    ac_prev=includedir ;;
 
1507
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1508
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1509
    includedir=$ac_optarg ;;
 
1510
 
 
1511
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1512
    ac_prev=infodir ;;
 
1513
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1514
    infodir=$ac_optarg ;;
 
1515
 
 
1516
  -libdir | --libdir | --libdi | --libd)
 
1517
    ac_prev=libdir ;;
 
1518
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1519
    libdir=$ac_optarg ;;
 
1520
 
 
1521
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1522
  | --libexe | --libex | --libe)
 
1523
    ac_prev=libexecdir ;;
 
1524
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1525
  | --libexe=* | --libex=* | --libe=*)
 
1526
    libexecdir=$ac_optarg ;;
 
1527
 
 
1528
  -localedir | --localedir | --localedi | --localed | --locale)
 
1529
    ac_prev=localedir ;;
 
1530
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1531
    localedir=$ac_optarg ;;
 
1532
 
 
1533
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1534
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1535
    ac_prev=localstatedir ;;
 
1536
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1537
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1538
    localstatedir=$ac_optarg ;;
 
1539
 
 
1540
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1541
    ac_prev=mandir ;;
 
1542
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1543
    mandir=$ac_optarg ;;
 
1544
 
 
1545
  -nfp | --nfp | --nf)
 
1546
    # Obsolete; use --without-fp.
 
1547
    with_fp=no ;;
 
1548
 
 
1549
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1550
  | --no-cr | --no-c | -n)
 
1551
    no_create=yes ;;
 
1552
 
 
1553
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1554
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1555
    no_recursion=yes ;;
 
1556
 
 
1557
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1558
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1559
  | --oldin | --oldi | --old | --ol | --o)
 
1560
    ac_prev=oldincludedir ;;
 
1561
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1562
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1563
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1564
    oldincludedir=$ac_optarg ;;
 
1565
 
 
1566
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1567
    ac_prev=prefix ;;
 
1568
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1569
    prefix=$ac_optarg ;;
 
1570
 
 
1571
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1572
  | --program-pre | --program-pr | --program-p)
 
1573
    ac_prev=program_prefix ;;
 
1574
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1575
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1576
    program_prefix=$ac_optarg ;;
 
1577
 
 
1578
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1579
  | --program-suf | --program-su | --program-s)
 
1580
    ac_prev=program_suffix ;;
 
1581
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1582
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1583
    program_suffix=$ac_optarg ;;
 
1584
 
 
1585
  -program-transform-name | --program-transform-name \
 
1586
  | --program-transform-nam | --program-transform-na \
 
1587
  | --program-transform-n | --program-transform- \
 
1588
  | --program-transform | --program-transfor \
 
1589
  | --program-transfo | --program-transf \
 
1590
  | --program-trans | --program-tran \
 
1591
  | --progr-tra | --program-tr | --program-t)
 
1592
    ac_prev=program_transform_name ;;
 
1593
  -program-transform-name=* | --program-transform-name=* \
 
1594
  | --program-transform-nam=* | --program-transform-na=* \
 
1595
  | --program-transform-n=* | --program-transform-=* \
 
1596
  | --program-transform=* | --program-transfor=* \
 
1597
  | --program-transfo=* | --program-transf=* \
 
1598
  | --program-trans=* | --program-tran=* \
 
1599
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1600
    program_transform_name=$ac_optarg ;;
 
1601
 
 
1602
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1603
    ac_prev=pdfdir ;;
 
1604
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1605
    pdfdir=$ac_optarg ;;
 
1606
 
 
1607
  -psdir | --psdir | --psdi | --psd | --ps)
 
1608
    ac_prev=psdir ;;
 
1609
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1610
    psdir=$ac_optarg ;;
 
1611
 
 
1612
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1613
  | -silent | --silent | --silen | --sile | --sil)
 
1614
    silent=yes ;;
 
1615
 
 
1616
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1617
    ac_prev=sbindir ;;
 
1618
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1619
  | --sbi=* | --sb=*)
 
1620
    sbindir=$ac_optarg ;;
 
1621
 
 
1622
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1623
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1624
  | --sharedst | --shareds | --shared | --share | --shar \
 
1625
  | --sha | --sh)
 
1626
    ac_prev=sharedstatedir ;;
 
1627
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1628
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1629
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1630
  | --sha=* | --sh=*)
 
1631
    sharedstatedir=$ac_optarg ;;
 
1632
 
 
1633
  -site | --site | --sit)
 
1634
    ac_prev=site ;;
 
1635
  -site=* | --site=* | --sit=*)
 
1636
    site=$ac_optarg ;;
 
1637
 
 
1638
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1639
    ac_prev=srcdir ;;
 
1640
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1641
    srcdir=$ac_optarg ;;
 
1642
 
 
1643
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1644
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1645
    ac_prev=sysconfdir ;;
 
1646
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1647
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1648
    sysconfdir=$ac_optarg ;;
 
1649
 
 
1650
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1651
    ac_prev=target_alias ;;
 
1652
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1653
    target_alias=$ac_optarg ;;
 
1654
 
 
1655
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1656
    verbose=yes ;;
 
1657
 
 
1658
  -version | --version | --versio | --versi | --vers | -V)
 
1659
    ac_init_version=: ;;
 
1660
 
 
1661
  -with-* | --with-*)
 
1662
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1663
    # Reject names that are not valid shell variable names.
 
1664
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1665
      as_fn_error $? "invalid package name: $ac_useropt"
 
1666
    ac_useropt_orig=$ac_useropt
 
1667
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1668
    case $ac_user_opts in
 
1669
      *"
 
1670
"with_$ac_useropt"
 
1671
"*) ;;
 
1672
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1673
         ac_unrecognized_sep=', ';;
 
1674
    esac
 
1675
    eval with_$ac_useropt=\$ac_optarg ;;
 
1676
 
 
1677
  -without-* | --without-*)
 
1678
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1679
    # Reject names that are not valid shell variable names.
 
1680
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1681
      as_fn_error $? "invalid package name: $ac_useropt"
 
1682
    ac_useropt_orig=$ac_useropt
 
1683
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1684
    case $ac_user_opts in
 
1685
      *"
 
1686
"with_$ac_useropt"
 
1687
"*) ;;
 
1688
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1689
         ac_unrecognized_sep=', ';;
 
1690
    esac
 
1691
    eval with_$ac_useropt=no ;;
 
1692
 
 
1693
  --x)
 
1694
    # Obsolete; use --with-x.
 
1695
    with_x=yes ;;
 
1696
 
 
1697
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1698
  | --x-incl | --x-inc | --x-in | --x-i)
 
1699
    ac_prev=x_includes ;;
 
1700
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1701
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1702
    x_includes=$ac_optarg ;;
 
1703
 
 
1704
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1705
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1706
    ac_prev=x_libraries ;;
 
1707
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1708
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1709
    x_libraries=$ac_optarg ;;
 
1710
 
 
1711
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1712
Try \`$0 --help' for more information"
 
1713
    ;;
 
1714
 
 
1715
  *=*)
 
1716
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1717
    # Reject names that are not valid shell variable names.
 
1718
    case $ac_envvar in #(
 
1719
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1720
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1721
    esac
 
1722
    eval $ac_envvar=\$ac_optarg
 
1723
    export $ac_envvar ;;
 
1724
 
 
1725
  *)
 
1726
    # FIXME: should be removed in autoconf 3.0.
 
1727
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1728
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1729
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1730
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1731
    ;;
 
1732
 
 
1733
  esac
 
1734
done
 
1735
 
 
1736
if test -n "$ac_prev"; then
 
1737
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1738
  as_fn_error $? "missing argument to $ac_option"
 
1739
fi
 
1740
 
 
1741
if test -n "$ac_unrecognized_opts"; then
 
1742
  case $enable_option_checking in
 
1743
    no) ;;
 
1744
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1745
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1746
  esac
 
1747
fi
 
1748
 
 
1749
# Check all directory arguments for consistency.
 
1750
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1751
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1752
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1753
                libdir localedir mandir
 
1754
do
 
1755
  eval ac_val=\$$ac_var
 
1756
  # Remove trailing slashes.
 
1757
  case $ac_val in
 
1758
    */ )
 
1759
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1760
      eval $ac_var=\$ac_val;;
 
1761
  esac
 
1762
  # Be sure to have absolute directory names.
 
1763
  case $ac_val in
 
1764
    [\\/$]* | ?:[\\/]* )  continue;;
 
1765
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1766
  esac
 
1767
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 
1768
done
 
1769
 
 
1770
# There might be people who depend on the old broken behavior: `$host'
 
1771
# used to hold the argument of --host etc.
 
1772
# FIXME: To remove some day.
 
1773
build=$build_alias
 
1774
host=$host_alias
 
1775
target=$target_alias
 
1776
 
 
1777
# FIXME: To remove some day.
 
1778
if test "x$host_alias" != x; then
 
1779
  if test "x$build_alias" = x; then
 
1780
    cross_compiling=maybe
 
1781
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
 
1782
    If a cross compiler is detected then cross compile mode will be used" >&2
 
1783
  elif test "x$build_alias" != "x$host_alias"; then
 
1784
    cross_compiling=yes
 
1785
  fi
 
1786
fi
 
1787
 
 
1788
ac_tool_prefix=
 
1789
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1790
 
 
1791
test "$silent" = yes && exec 6>/dev/null
 
1792
 
 
1793
 
 
1794
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1795
ac_ls_di=`ls -di .` &&
 
1796
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1797
  as_fn_error $? "working directory cannot be determined"
 
1798
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1799
  as_fn_error $? "pwd does not report name of working directory"
 
1800
 
 
1801
 
 
1802
# Find the source files, if location was not specified.
 
1803
if test -z "$srcdir"; then
 
1804
  ac_srcdir_defaulted=yes
 
1805
  # Try the directory containing this script, then the parent directory.
 
1806
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1807
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1808
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1809
         X"$as_myself" : 'X\(//\)$' \| \
 
1810
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1811
$as_echo X"$as_myself" |
 
1812
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1813
            s//\1/
 
1814
            q
 
1815
          }
 
1816
          /^X\(\/\/\)[^/].*/{
 
1817
            s//\1/
 
1818
            q
 
1819
          }
 
1820
          /^X\(\/\/\)$/{
 
1821
            s//\1/
 
1822
            q
 
1823
          }
 
1824
          /^X\(\/\).*/{
 
1825
            s//\1/
 
1826
            q
 
1827
          }
 
1828
          s/.*/./; q'`
 
1829
  srcdir=$ac_confdir
 
1830
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1831
    srcdir=..
 
1832
  fi
 
1833
else
 
1834
  ac_srcdir_defaulted=no
 
1835
fi
 
1836
if test ! -r "$srcdir/$ac_unique_file"; then
 
1837
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1838
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 
1839
fi
 
1840
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1841
ac_abs_confdir=`(
 
1842
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 
1843
        pwd)`
 
1844
# When building in place, set srcdir=.
 
1845
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1846
  srcdir=.
 
1847
fi
 
1848
# Remove unnecessary trailing slashes from srcdir.
 
1849
# Double slashes in file names in object file debugging info
 
1850
# mess up M-x gdb in Emacs.
 
1851
case $srcdir in
 
1852
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1853
esac
 
1854
for ac_var in $ac_precious_vars; do
 
1855
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1856
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1857
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1858
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1859
done
 
1860
 
 
1861
#
 
1862
# Report the --help message.
 
1863
#
 
1864
if test "$ac_init_help" = "long"; then
 
1865
  # Omit some internal or obsolete options to make the list less imposing.
 
1866
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1867
  cat <<_ACEOF
 
1868
\`configure' configures GRUB 1.99~20101119-1 to adapt to many kinds of systems.
 
1869
 
 
1870
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1871
 
 
1872
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1873
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1874
 
 
1875
Defaults for the options are specified in brackets.
 
1876
 
 
1877
Configuration:
 
1878
  -h, --help              display this help and exit
 
1879
      --help=short        display options specific to this package
 
1880
      --help=recursive    display the short help of all the included packages
 
1881
  -V, --version           display version information and exit
 
1882
  -q, --quiet, --silent   do not print \`checking ...' messages
 
1883
      --cache-file=FILE   cache test results in FILE [disabled]
 
1884
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1885
  -n, --no-create         do not create output files
 
1886
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1887
 
 
1888
Installation directories:
 
1889
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1890
                          [$ac_default_prefix]
 
1891
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1892
                          [PREFIX]
 
1893
 
 
1894
By default, \`make install' will install all the files in
 
1895
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1896
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1897
for instance \`--prefix=\$HOME'.
 
1898
 
 
1899
For better control, use the options below.
 
1900
 
 
1901
Fine tuning of the installation directories:
 
1902
  --bindir=DIR            user executables [EPREFIX/bin]
 
1903
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1904
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1905
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1906
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1907
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1908
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1909
  --includedir=DIR        C header files [PREFIX/include]
 
1910
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1911
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1912
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1913
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1914
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1915
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1916
  --docdir=DIR            documentation root [DATAROOTDIR/doc/grub]
 
1917
  --htmldir=DIR           html documentation [DOCDIR]
 
1918
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1919
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1920
  --psdir=DIR             ps documentation [DOCDIR]
 
1921
_ACEOF
 
1922
 
 
1923
  cat <<\_ACEOF
 
1924
 
 
1925
Program names:
 
1926
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1927
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1928
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1929
 
 
1930
System types:
 
1931
  --build=BUILD     configure for building on BUILD [guessed]
 
1932
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1933
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
1934
_ACEOF
 
1935
fi
 
1936
 
 
1937
if test -n "$ac_init_help"; then
 
1938
  case $ac_init_help in
 
1939
     short | recursive ) echo "Configuration of GRUB 1.99~20101119-1:";;
 
1940
   esac
 
1941
  cat <<\_ACEOF
 
1942
 
 
1943
Optional Features:
 
1944
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1945
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1946
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1947
  --disable-dependency-tracking  speeds up one-time build
 
1948
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1949
  --disable-nls           do not use Native Language Support
 
1950
  --disable-rpath         do not hardcode runtime library paths
 
1951
  --disable-largefile     omit support for large files
 
1952
  --disable-werror        do not use -Werror when building GRUB
 
1953
  --enable-efiemu         build and install the efiemu runtimes
 
1954
                          (default=guessed)
 
1955
  --enable-mm-debug       include memory manager debugging
 
1956
  --enable-grub-emu-usb   build and install the `grub-emu' debugging utility
 
1957
                          with USB support (default=guessed)
 
1958
  --enable-grub-emu-sdl   build and install the `grub-emu' debugging utility
 
1959
                          with SDL support (default=guessed)
 
1960
  --enable-grub-emu-pci   build and install the `grub-emu' debugging utility
 
1961
                          with PCI support (potentially dangerous)
 
1962
                          (default=no)
 
1963
  --enable-grub-mkfont    build and install the `grub-mkfont' utility
 
1964
                          (default=guessed)
 
1965
  --enable-device-mapper  enable Linux device-mapper support (default=guessed)
 
1966
 
 
1967
Optional Packages:
 
1968
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1969
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1970
  --with-platform=PLATFORM
 
1971
                          select the host platform [[guessed]]
 
1972
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
1973
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
 
1974
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
 
1975
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
 
1976
  --without-libintl-prefix     don't search for libintl in includedir and libdir
 
1977
  --without-included-regex
 
1978
                          don't compile regex; this is the default on systems
 
1979
                          with recent-enough versions of the GNU C Library
 
1980
                          (use with caution on other systems).
 
1981
 
 
1982
Some influential environment variables:
 
1983
  CC          C compiler command
 
1984
  CFLAGS      C compiler flags
 
1985
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1986
              nonstandard directory <lib dir>
 
1987
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1988
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1989
              you have headers in a nonstandard directory <include dir>
 
1990
  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
 
1991
              the first program found out of: `bison -y', `byacc', `yacc'.
 
1992
  YFLAGS      The list of arguments that will be passed by default to $YACC.
 
1993
              This script will default YFLAGS to the empty string to avoid a
 
1994
              default value of `-d' given by some make applications.
 
1995
  CPP         C preprocessor
 
1996
  CCAS        assembler compiler command (defaults to CC)
 
1997
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
 
1998
 
 
1999
Use these variables to override the choices made by `configure' or to help
 
2000
it to find libraries and programs with nonstandard names/locations.
 
2001
 
 
2002
Report bugs to <bug-grub@gnu.org>.
 
2003
_ACEOF
 
2004
ac_status=$?
 
2005
fi
 
2006
 
 
2007
if test "$ac_init_help" = "recursive"; then
 
2008
  # If there are subdirs, report their specific --help.
 
2009
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
2010
    test -d "$ac_dir" ||
 
2011
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
2012
      continue
 
2013
    ac_builddir=.
 
2014
 
 
2015
case "$ac_dir" in
 
2016
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
2017
*)
 
2018
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
2019
  # A ".." for each directory in $ac_dir_suffix.
 
2020
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
2021
  case $ac_top_builddir_sub in
 
2022
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
2023
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
2024
  esac ;;
 
2025
esac
 
2026
ac_abs_top_builddir=$ac_pwd
 
2027
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
2028
# for backward compatibility:
 
2029
ac_top_builddir=$ac_top_build_prefix
 
2030
 
 
2031
case $srcdir in
 
2032
  .)  # We are building in place.
 
2033
    ac_srcdir=.
 
2034
    ac_top_srcdir=$ac_top_builddir_sub
 
2035
    ac_abs_top_srcdir=$ac_pwd ;;
 
2036
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
2037
    ac_srcdir=$srcdir$ac_dir_suffix;
 
2038
    ac_top_srcdir=$srcdir
 
2039
    ac_abs_top_srcdir=$srcdir ;;
 
2040
  *) # Relative name.
 
2041
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
2042
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
2043
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
2044
esac
 
2045
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
2046
 
 
2047
    cd "$ac_dir" || { ac_status=$?; continue; }
 
2048
    # Check for guested configure.
 
2049
    if test -f "$ac_srcdir/configure.gnu"; then
 
2050
      echo &&
 
2051
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
2052
    elif test -f "$ac_srcdir/configure"; then
 
2053
      echo &&
 
2054
      $SHELL "$ac_srcdir/configure" --help=recursive
 
2055
    else
 
2056
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
2057
    fi || ac_status=$?
 
2058
    cd "$ac_pwd" || { ac_status=$?; break; }
 
2059
  done
 
2060
fi
 
2061
 
 
2062
test -n "$ac_init_help" && exit $ac_status
 
2063
if $ac_init_version; then
 
2064
  cat <<\_ACEOF
 
2065
GRUB configure 1.99~20101119-1
 
2066
generated by GNU Autoconf 2.67
 
2067
 
 
2068
Copyright (C) 2010 Free Software Foundation, Inc.
 
2069
This configure script is free software; the Free Software Foundation
 
2070
gives unlimited permission to copy, distribute and modify it.
 
2071
_ACEOF
 
2072
  exit
 
2073
fi
 
2074
 
 
2075
## ------------------------ ##
 
2076
## Autoconf initialization. ##
 
2077
## ------------------------ ##
 
2078
 
 
2079
# ac_fn_c_try_compile LINENO
 
2080
# --------------------------
 
2081
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
2082
ac_fn_c_try_compile ()
 
2083
{
 
2084
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2085
  rm -f conftest.$ac_objext
 
2086
  if { { ac_try="$ac_compile"
 
2087
case "(($ac_try" in
 
2088
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2089
  *) ac_try_echo=$ac_try;;
 
2090
esac
 
2091
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2092
$as_echo "$ac_try_echo"; } >&5
 
2093
  (eval "$ac_compile") 2>conftest.err
 
2094
  ac_status=$?
 
2095
  if test -s conftest.err; then
 
2096
    grep -v '^ *+' conftest.err >conftest.er1
 
2097
    cat conftest.er1 >&5
 
2098
    mv -f conftest.er1 conftest.err
 
2099
  fi
 
2100
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2101
  test $ac_status = 0; } && {
 
2102
         test -z "$ac_c_werror_flag" ||
 
2103
         test ! -s conftest.err
 
2104
       } && test -s conftest.$ac_objext; then :
 
2105
  ac_retval=0
 
2106
else
 
2107
  $as_echo "$as_me: failed program was:" >&5
 
2108
sed 's/^/| /' conftest.$ac_ext >&5
 
2109
 
 
2110
        ac_retval=1
 
2111
fi
 
2112
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2113
  as_fn_set_status $ac_retval
 
2114
 
 
2115
} # ac_fn_c_try_compile
 
2116
 
 
2117
# ac_fn_c_try_link LINENO
 
2118
# -----------------------
 
2119
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
2120
ac_fn_c_try_link ()
 
2121
{
 
2122
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2123
  rm -f conftest.$ac_objext conftest$ac_exeext
 
2124
  if { { ac_try="$ac_link"
 
2125
case "(($ac_try" in
 
2126
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2127
  *) ac_try_echo=$ac_try;;
 
2128
esac
 
2129
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2130
$as_echo "$ac_try_echo"; } >&5
 
2131
  (eval "$ac_link") 2>conftest.err
 
2132
  ac_status=$?
 
2133
  if test -s conftest.err; then
 
2134
    grep -v '^ *+' conftest.err >conftest.er1
 
2135
    cat conftest.er1 >&5
 
2136
    mv -f conftest.er1 conftest.err
 
2137
  fi
 
2138
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2139
  test $ac_status = 0; } && {
 
2140
         test -z "$ac_c_werror_flag" ||
 
2141
         test ! -s conftest.err
 
2142
       } && test -s conftest$ac_exeext && {
 
2143
         test "$cross_compiling" = yes ||
 
2144
         $as_test_x conftest$ac_exeext
 
2145
       }; then :
 
2146
  ac_retval=0
 
2147
else
 
2148
  $as_echo "$as_me: failed program was:" >&5
 
2149
sed 's/^/| /' conftest.$ac_ext >&5
 
2150
 
 
2151
        ac_retval=1
 
2152
fi
 
2153
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
2154
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
2155
  # interfere with the next link command; also delete a directory that is
 
2156
  # left behind by Apple's compiler.  We do this before executing the actions.
 
2157
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
2158
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2159
  as_fn_set_status $ac_retval
 
2160
 
 
2161
} # ac_fn_c_try_link
 
2162
 
 
2163
# ac_fn_c_try_cpp LINENO
 
2164
# ----------------------
 
2165
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
2166
ac_fn_c_try_cpp ()
 
2167
{
 
2168
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2169
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
2170
case "(($ac_try" in
 
2171
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2172
  *) ac_try_echo=$ac_try;;
 
2173
esac
 
2174
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2175
$as_echo "$ac_try_echo"; } >&5
 
2176
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
2177
  ac_status=$?
 
2178
  if test -s conftest.err; then
 
2179
    grep -v '^ *+' conftest.err >conftest.er1
 
2180
    cat conftest.er1 >&5
 
2181
    mv -f conftest.er1 conftest.err
 
2182
  fi
 
2183
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2184
  test $ac_status = 0; } > conftest.i && {
 
2185
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
2186
         test ! -s conftest.err
 
2187
       }; then :
 
2188
  ac_retval=0
 
2189
else
 
2190
  $as_echo "$as_me: failed program was:" >&5
 
2191
sed 's/^/| /' conftest.$ac_ext >&5
 
2192
 
 
2193
    ac_retval=1
 
2194
fi
 
2195
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2196
  as_fn_set_status $ac_retval
 
2197
 
 
2198
} # ac_fn_c_try_cpp
 
2199
 
 
2200
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
2201
# -------------------------------------------------------
 
2202
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
2203
# the include files in INCLUDES and setting the cache variable VAR
 
2204
# accordingly.
 
2205
ac_fn_c_check_header_mongrel ()
 
2206
{
 
2207
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2208
  if eval "test \"\${$3+set}\"" = set; then :
 
2209
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2210
$as_echo_n "checking for $2... " >&6; }
 
2211
if eval "test \"\${$3+set}\"" = set; then :
 
2212
  $as_echo_n "(cached) " >&6
 
2213
fi
 
2214
eval ac_res=\$$3
 
2215
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2216
$as_echo "$ac_res" >&6; }
 
2217
else
 
2218
  # Is the header compilable?
 
2219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
2220
$as_echo_n "checking $2 usability... " >&6; }
 
2221
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2222
/* end confdefs.h.  */
 
2223
$4
 
2224
#include <$2>
 
2225
_ACEOF
 
2226
if ac_fn_c_try_compile "$LINENO"; then :
 
2227
  ac_header_compiler=yes
 
2228
else
 
2229
  ac_header_compiler=no
 
2230
fi
 
2231
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2232
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
2233
$as_echo "$ac_header_compiler" >&6; }
 
2234
 
 
2235
# Is the header present?
 
2236
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
2237
$as_echo_n "checking $2 presence... " >&6; }
 
2238
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2239
/* end confdefs.h.  */
 
2240
#include <$2>
 
2241
_ACEOF
 
2242
if ac_fn_c_try_cpp "$LINENO"; then :
 
2243
  ac_header_preproc=yes
 
2244
else
 
2245
  ac_header_preproc=no
 
2246
fi
 
2247
rm -f conftest.err conftest.i conftest.$ac_ext
 
2248
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
2249
$as_echo "$ac_header_preproc" >&6; }
 
2250
 
 
2251
# So?  What about this header?
 
2252
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
2253
  yes:no: )
 
2254
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
2255
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
2256
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
2257
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
2258
    ;;
 
2259
  no:yes:* )
 
2260
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
2261
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
2262
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
2263
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
2264
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
2265
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
2266
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
2267
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
2268
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
2269
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
2270
( $as_echo "## ------------------------------- ##
 
2271
## Report this to bug-grub@gnu.org ##
 
2272
## ------------------------------- ##"
 
2273
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
2274
    ;;
 
2275
esac
 
2276
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2277
$as_echo_n "checking for $2... " >&6; }
 
2278
if eval "test \"\${$3+set}\"" = set; then :
 
2279
  $as_echo_n "(cached) " >&6
 
2280
else
 
2281
  eval "$3=\$ac_header_compiler"
 
2282
fi
 
2283
eval ac_res=\$$3
 
2284
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2285
$as_echo "$ac_res" >&6; }
 
2286
fi
 
2287
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2288
 
 
2289
} # ac_fn_c_check_header_mongrel
 
2290
 
 
2291
# ac_fn_c_try_run LINENO
 
2292
# ----------------------
 
2293
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
2294
# that executables *can* be run.
 
2295
ac_fn_c_try_run ()
 
2296
{
 
2297
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2298
  if { { ac_try="$ac_link"
 
2299
case "(($ac_try" in
 
2300
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2301
  *) ac_try_echo=$ac_try;;
 
2302
esac
 
2303
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2304
$as_echo "$ac_try_echo"; } >&5
 
2305
  (eval "$ac_link") 2>&5
 
2306
  ac_status=$?
 
2307
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2308
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
2309
  { { case "(($ac_try" in
 
2310
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2311
  *) ac_try_echo=$ac_try;;
 
2312
esac
 
2313
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2314
$as_echo "$ac_try_echo"; } >&5
 
2315
  (eval "$ac_try") 2>&5
 
2316
  ac_status=$?
 
2317
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2318
  test $ac_status = 0; }; }; then :
 
2319
  ac_retval=0
 
2320
else
 
2321
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
2322
       $as_echo "$as_me: failed program was:" >&5
 
2323
sed 's/^/| /' conftest.$ac_ext >&5
 
2324
 
 
2325
       ac_retval=$ac_status
 
2326
fi
 
2327
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
2328
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2329
  as_fn_set_status $ac_retval
 
2330
 
 
2331
} # ac_fn_c_try_run
 
2332
 
 
2333
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
2334
# -------------------------------------------------------
 
2335
# Tests whether HEADER exists and can be compiled using the include files in
 
2336
# INCLUDES, setting the cache variable VAR accordingly.
 
2337
ac_fn_c_check_header_compile ()
 
2338
{
 
2339
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2340
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2341
$as_echo_n "checking for $2... " >&6; }
 
2342
if eval "test \"\${$3+set}\"" = set; then :
 
2343
  $as_echo_n "(cached) " >&6
 
2344
else
 
2345
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2346
/* end confdefs.h.  */
 
2347
$4
 
2348
#include <$2>
 
2349
_ACEOF
 
2350
if ac_fn_c_try_compile "$LINENO"; then :
 
2351
  eval "$3=yes"
 
2352
else
 
2353
  eval "$3=no"
 
2354
fi
 
2355
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2356
fi
 
2357
eval ac_res=\$$3
 
2358
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2359
$as_echo "$ac_res" >&6; }
 
2360
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2361
 
 
2362
} # ac_fn_c_check_header_compile
 
2363
 
 
2364
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
 
2365
# --------------------------------------------
 
2366
# Tries to find the compile-time value of EXPR in a program that includes
 
2367
# INCLUDES, setting VAR accordingly. Returns whether the value could be
 
2368
# computed
 
2369
ac_fn_c_compute_int ()
 
2370
{
 
2371
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2372
  if test "$cross_compiling" = yes; then
 
2373
    # Depending upon the size, compute the lo and hi bounds.
 
2374
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2375
/* end confdefs.h.  */
 
2376
$4
 
2377
int
 
2378
main (void)
 
2379
{
 
2380
static int test_array [1 - 2 * !(($2) >= 0)];
 
2381
test_array [0] = 0
 
2382
 
 
2383
  ;
 
2384
  return 0;
 
2385
}
 
2386
_ACEOF
 
2387
if ac_fn_c_try_compile "$LINENO"; then :
 
2388
  ac_lo=0 ac_mid=0
 
2389
  while :; do
 
2390
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2391
/* end confdefs.h.  */
 
2392
$4
 
2393
int
 
2394
main (void)
 
2395
{
 
2396
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 
2397
test_array [0] = 0
 
2398
 
 
2399
  ;
 
2400
  return 0;
 
2401
}
 
2402
_ACEOF
 
2403
if ac_fn_c_try_compile "$LINENO"; then :
 
2404
  ac_hi=$ac_mid; break
 
2405
else
 
2406
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
 
2407
                        if test $ac_lo -le $ac_mid; then
 
2408
                          ac_lo= ac_hi=
 
2409
                          break
 
2410
                        fi
 
2411
                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
 
2412
fi
 
2413
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2414
  done
 
2415
else
 
2416
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2417
/* end confdefs.h.  */
 
2418
$4
 
2419
int
 
2420
main (void)
 
2421
{
 
2422
static int test_array [1 - 2 * !(($2) < 0)];
 
2423
test_array [0] = 0
 
2424
 
 
2425
  ;
 
2426
  return 0;
 
2427
}
 
2428
_ACEOF
 
2429
if ac_fn_c_try_compile "$LINENO"; then :
 
2430
  ac_hi=-1 ac_mid=-1
 
2431
  while :; do
 
2432
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2433
/* end confdefs.h.  */
 
2434
$4
 
2435
int
 
2436
main (void)
 
2437
{
 
2438
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
 
2439
test_array [0] = 0
 
2440
 
 
2441
  ;
 
2442
  return 0;
 
2443
}
 
2444
_ACEOF
 
2445
if ac_fn_c_try_compile "$LINENO"; then :
 
2446
  ac_lo=$ac_mid; break
 
2447
else
 
2448
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
 
2449
                        if test $ac_mid -le $ac_hi; then
 
2450
                          ac_lo= ac_hi=
 
2451
                          break
 
2452
                        fi
 
2453
                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
 
2454
fi
 
2455
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2456
  done
 
2457
else
 
2458
  ac_lo= ac_hi=
 
2459
fi
 
2460
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2461
fi
 
2462
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2463
# Binary search between lo and hi bounds.
 
2464
while test "x$ac_lo" != "x$ac_hi"; do
 
2465
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
 
2466
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2467
/* end confdefs.h.  */
 
2468
$4
 
2469
int
 
2470
main (void)
 
2471
{
 
2472
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 
2473
test_array [0] = 0
 
2474
 
 
2475
  ;
 
2476
  return 0;
 
2477
}
 
2478
_ACEOF
 
2479
if ac_fn_c_try_compile "$LINENO"; then :
 
2480
  ac_hi=$ac_mid
 
2481
else
 
2482
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
 
2483
fi
 
2484
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2485
done
 
2486
case $ac_lo in #((
 
2487
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
 
2488
'') ac_retval=1 ;;
 
2489
esac
 
2490
  else
 
2491
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2492
/* end confdefs.h.  */
 
2493
$4
 
2494
static long int longval () { return $2; }
 
2495
static unsigned long int ulongval () { return $2; }
 
2496
#include <stdio.h>
 
2497
#include <stdlib.h>
 
2498
int
 
2499
main (void)
 
2500
{
 
2501
 
 
2502
  FILE *f = fopen ("conftest.val", "w");
 
2503
  if (! f)
 
2504
    return 1;
 
2505
  if (($2) < 0)
 
2506
    {
 
2507
      long int i = longval ();
 
2508
      if (i != ($2))
 
2509
        return 1;
 
2510
      fprintf (f, "%ld", i);
 
2511
    }
 
2512
  else
 
2513
    {
 
2514
      unsigned long int i = ulongval ();
 
2515
      if (i != ($2))
 
2516
        return 1;
 
2517
      fprintf (f, "%lu", i);
 
2518
    }
 
2519
  /* Do not output a trailing newline, as this causes \r\n confusion
 
2520
     on some platforms.  */
 
2521
  return ferror (f) || fclose (f) != 0;
 
2522
 
 
2523
  ;
 
2524
  return 0;
 
2525
}
 
2526
_ACEOF
 
2527
if ac_fn_c_try_run "$LINENO"; then :
 
2528
  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
 
2529
else
 
2530
  ac_retval=1
 
2531
fi
 
2532
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
2533
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
2534
rm -f conftest.val
 
2535
 
 
2536
  fi
 
2537
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2538
  as_fn_set_status $ac_retval
 
2539
 
 
2540
} # ac_fn_c_compute_int
 
2541
 
 
2542
# ac_fn_c_check_func LINENO FUNC VAR
 
2543
# ----------------------------------
 
2544
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
2545
ac_fn_c_check_func ()
 
2546
{
 
2547
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2548
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2549
$as_echo_n "checking for $2... " >&6; }
 
2550
if eval "test \"\${$3+set}\"" = set; then :
 
2551
  $as_echo_n "(cached) " >&6
 
2552
else
 
2553
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2554
/* end confdefs.h.  */
 
2555
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
2556
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
2557
#define $2 innocuous_$2
 
2558
 
 
2559
/* System header to define __stub macros and hopefully few prototypes,
 
2560
    which can conflict with char $2 (); below.
 
2561
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2562
    <limits.h> exists even on freestanding compilers.  */
 
2563
 
 
2564
#ifdef __STDC__
 
2565
# include <limits.h>
 
2566
#else
 
2567
# include <assert.h>
 
2568
#endif
 
2569
 
 
2570
#undef $2
 
2571
 
 
2572
/* Override any GCC internal prototype to avoid an error.
 
2573
   Use char because int might match the return type of a GCC
 
2574
   builtin and then its argument prototype would still apply.  */
 
2575
#ifdef __cplusplus
 
2576
extern "C"
 
2577
#endif
 
2578
char $2 ();
 
2579
/* The GNU C library defines this for functions which it implements
 
2580
    to always fail with ENOSYS.  Some functions are actually named
 
2581
    something starting with __ and the normal name is an alias.  */
 
2582
#if defined __stub_$2 || defined __stub___$2
 
2583
choke me
 
2584
#endif
 
2585
 
 
2586
int
 
2587
main (void)
 
2588
{
 
2589
return $2 ();
 
2590
  ;
 
2591
  return 0;
 
2592
}
 
2593
_ACEOF
 
2594
if ac_fn_c_try_link "$LINENO"; then :
 
2595
  eval "$3=yes"
 
2596
else
 
2597
  eval "$3=no"
 
2598
fi
 
2599
rm -f core conftest.err conftest.$ac_objext \
 
2600
    conftest$ac_exeext conftest.$ac_ext
 
2601
fi
 
2602
eval ac_res=\$$3
 
2603
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2604
$as_echo "$ac_res" >&6; }
 
2605
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2606
 
 
2607
} # ac_fn_c_check_func
 
2608
 
 
2609
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
 
2610
# ----------------------------------------------------
 
2611
# Tries to find if the field MEMBER exists in type AGGR, after including
 
2612
# INCLUDES, setting cache variable VAR accordingly.
 
2613
ac_fn_c_check_member ()
 
2614
{
 
2615
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2616
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
 
2617
$as_echo_n "checking for $2.$3... " >&6; }
 
2618
if eval "test \"\${$4+set}\"" = set; then :
 
2619
  $as_echo_n "(cached) " >&6
 
2620
else
 
2621
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2622
/* end confdefs.h.  */
 
2623
$5
 
2624
int
 
2625
main (void)
 
2626
{
 
2627
static $2 ac_aggr;
 
2628
if (ac_aggr.$3)
 
2629
return 0;
 
2630
  ;
 
2631
  return 0;
 
2632
}
 
2633
_ACEOF
 
2634
if ac_fn_c_try_compile "$LINENO"; then :
 
2635
  eval "$4=yes"
 
2636
else
 
2637
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2638
/* end confdefs.h.  */
 
2639
$5
 
2640
int
 
2641
main (void)
 
2642
{
 
2643
static $2 ac_aggr;
 
2644
if (sizeof ac_aggr.$3)
 
2645
return 0;
 
2646
  ;
 
2647
  return 0;
 
2648
}
 
2649
_ACEOF
 
2650
if ac_fn_c_try_compile "$LINENO"; then :
 
2651
  eval "$4=yes"
 
2652
else
 
2653
  eval "$4=no"
 
2654
fi
 
2655
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2656
fi
 
2657
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2658
fi
 
2659
eval ac_res=\$$4
 
2660
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2661
$as_echo "$ac_res" >&6; }
 
2662
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2663
 
 
2664
} # ac_fn_c_check_member
 
2665
 
 
2666
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
 
2667
# ---------------------------------------------
 
2668
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
 
2669
# accordingly.
 
2670
ac_fn_c_check_decl ()
 
2671
{
 
2672
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2673
  as_decl_name=`echo $2|sed 's/ *(.*//'`
 
2674
  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
 
2675
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
 
2676
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
 
2677
if eval "test \"\${$3+set}\"" = set; then :
 
2678
  $as_echo_n "(cached) " >&6
 
2679
else
 
2680
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2681
/* end confdefs.h.  */
 
2682
$4
 
2683
int
 
2684
main (void)
 
2685
{
 
2686
#ifndef $as_decl_name
 
2687
#ifdef __cplusplus
 
2688
  (void) $as_decl_use;
 
2689
#else
 
2690
  (void) $as_decl_name;
 
2691
#endif
 
2692
#endif
 
2693
 
 
2694
  ;
 
2695
  return 0;
 
2696
}
 
2697
_ACEOF
 
2698
if ac_fn_c_try_compile "$LINENO"; then :
 
2699
  eval "$3=yes"
 
2700
else
 
2701
  eval "$3=no"
 
2702
fi
 
2703
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2704
fi
 
2705
eval ac_res=\$$3
 
2706
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2707
$as_echo "$ac_res" >&6; }
 
2708
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2709
 
 
2710
} # ac_fn_c_check_decl
 
2711
 
 
2712
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 
2713
# -------------------------------------------
 
2714
# Tests whether TYPE exists after having included INCLUDES, setting cache
 
2715
# variable VAR accordingly.
 
2716
ac_fn_c_check_type ()
 
2717
{
 
2718
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2719
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2720
$as_echo_n "checking for $2... " >&6; }
 
2721
if eval "test \"\${$3+set}\"" = set; then :
 
2722
  $as_echo_n "(cached) " >&6
 
2723
else
 
2724
  eval "$3=no"
 
2725
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2726
/* end confdefs.h.  */
 
2727
$4
 
2728
int
 
2729
main (void)
 
2730
{
 
2731
if (sizeof ($2))
 
2732
         return 0;
 
2733
  ;
 
2734
  return 0;
 
2735
}
 
2736
_ACEOF
 
2737
if ac_fn_c_try_compile "$LINENO"; then :
 
2738
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2739
/* end confdefs.h.  */
 
2740
$4
 
2741
int
 
2742
main (void)
 
2743
{
 
2744
if (sizeof (($2)))
 
2745
            return 0;
 
2746
  ;
 
2747
  return 0;
 
2748
}
 
2749
_ACEOF
 
2750
if ac_fn_c_try_compile "$LINENO"; then :
 
2751
 
 
2752
else
 
2753
  eval "$3=yes"
 
2754
fi
 
2755
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2756
fi
 
2757
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2758
fi
 
2759
eval ac_res=\$$3
 
2760
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2761
$as_echo "$ac_res" >&6; }
 
2762
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2763
 
 
2764
} # ac_fn_c_check_type
 
2765
cat >config.log <<_ACEOF
 
2766
This file contains any messages produced by compilers while
 
2767
running configure, to aid debugging if configure makes a mistake.
 
2768
 
 
2769
It was created by GRUB $as_me 1.99~20101119-1, which was
 
2770
generated by GNU Autoconf 2.67.  Invocation command line was
 
2771
 
 
2772
  $ $0 $@
 
2773
 
 
2774
_ACEOF
 
2775
exec 5>>config.log
 
2776
{
 
2777
cat <<_ASUNAME
 
2778
## --------- ##
 
2779
## Platform. ##
 
2780
## --------- ##
 
2781
 
 
2782
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
2783
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
2784
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
2785
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
2786
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
2787
 
 
2788
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
2789
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
2790
 
 
2791
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
2792
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
2793
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
2794
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
2795
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
2796
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
2797
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
2798
 
 
2799
_ASUNAME
 
2800
 
 
2801
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2802
for as_dir in $PATH
 
2803
do
 
2804
  IFS=$as_save_IFS
 
2805
  test -z "$as_dir" && as_dir=.
 
2806
    $as_echo "PATH: $as_dir"
 
2807
  done
 
2808
IFS=$as_save_IFS
 
2809
 
 
2810
} >&5
 
2811
 
 
2812
cat >&5 <<_ACEOF
 
2813
 
 
2814
 
 
2815
## ----------- ##
 
2816
## Core tests. ##
 
2817
## ----------- ##
 
2818
 
 
2819
_ACEOF
 
2820
 
 
2821
 
 
2822
# Keep a trace of the command line.
 
2823
# Strip out --no-create and --no-recursion so they do not pile up.
 
2824
# Strip out --silent because we don't want to record it for future runs.
 
2825
# Also quote any args containing shell meta-characters.
 
2826
# Make two passes to allow for proper duplicate-argument suppression.
 
2827
ac_configure_args=
 
2828
ac_configure_args0=
 
2829
ac_configure_args1=
 
2830
ac_must_keep_next=false
 
2831
for ac_pass in 1 2
 
2832
do
 
2833
  for ac_arg
 
2834
  do
 
2835
    case $ac_arg in
 
2836
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
2837
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
2838
    | -silent | --silent | --silen | --sile | --sil)
 
2839
      continue ;;
 
2840
    *\'*)
 
2841
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2842
    esac
 
2843
    case $ac_pass in
 
2844
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
2845
    2)
 
2846
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
2847
      if test $ac_must_keep_next = true; then
 
2848
        ac_must_keep_next=false # Got value, back to normal.
 
2849
      else
 
2850
        case $ac_arg in
 
2851
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
2852
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
2853
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
2854
          | -with-* | --with-* | -without-* | --without-* | --x)
 
2855
            case "$ac_configure_args0 " in
 
2856
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
2857
            esac
 
2858
            ;;
 
2859
          -* ) ac_must_keep_next=true ;;
 
2860
        esac
 
2861
      fi
 
2862
      as_fn_append ac_configure_args " '$ac_arg'"
 
2863
      ;;
 
2864
    esac
 
2865
  done
 
2866
done
 
2867
{ ac_configure_args0=; unset ac_configure_args0;}
 
2868
{ ac_configure_args1=; unset ac_configure_args1;}
 
2869
 
 
2870
# When interrupted or exit'd, cleanup temporary files, and complete
 
2871
# config.log.  We remove comments because anyway the quotes in there
 
2872
# would cause problems or look ugly.
 
2873
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
2874
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
2875
trap 'exit_status=$?
 
2876
  # Save into config.log some information that might help in debugging.
 
2877
  {
 
2878
    echo
 
2879
 
 
2880
    $as_echo "## ---------------- ##
 
2881
## Cache variables. ##
 
2882
## ---------------- ##"
 
2883
    echo
 
2884
    # The following way of writing the cache mishandles newlines in values,
 
2885
(
 
2886
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
2887
    eval ac_val=\$$ac_var
 
2888
    case $ac_val in #(
 
2889
    *${as_nl}*)
 
2890
      case $ac_var in #(
 
2891
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2892
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
2893
      esac
 
2894
      case $ac_var in #(
 
2895
      _ | IFS | as_nl) ;; #(
 
2896
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2897
      *) { eval $ac_var=; unset $ac_var;} ;;
 
2898
      esac ;;
 
2899
    esac
 
2900
  done
 
2901
  (set) 2>&1 |
 
2902
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2903
    *${as_nl}ac_space=\ *)
 
2904
      sed -n \
 
2905
        "s/'\''/'\''\\\\'\'''\''/g;
 
2906
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2907
      ;; #(
 
2908
    *)
 
2909
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
2910
      ;;
 
2911
    esac |
 
2912
    sort
 
2913
)
 
2914
    echo
 
2915
 
 
2916
    $as_echo "## ----------------- ##
 
2917
## Output variables. ##
 
2918
## ----------------- ##"
 
2919
    echo
 
2920
    for ac_var in $ac_subst_vars
 
2921
    do
 
2922
      eval ac_val=\$$ac_var
 
2923
      case $ac_val in
 
2924
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2925
      esac
 
2926
      $as_echo "$ac_var='\''$ac_val'\''"
 
2927
    done | sort
 
2928
    echo
 
2929
 
 
2930
    if test -n "$ac_subst_files"; then
 
2931
      $as_echo "## ------------------- ##
 
2932
## File substitutions. ##
 
2933
## ------------------- ##"
 
2934
      echo
 
2935
      for ac_var in $ac_subst_files
 
2936
      do
 
2937
        eval ac_val=\$$ac_var
 
2938
        case $ac_val in
 
2939
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2940
        esac
 
2941
        $as_echo "$ac_var='\''$ac_val'\''"
 
2942
      done | sort
 
2943
      echo
 
2944
    fi
 
2945
 
 
2946
    if test -s confdefs.h; then
 
2947
      $as_echo "## ----------- ##
 
2948
## confdefs.h. ##
 
2949
## ----------- ##"
 
2950
      echo
 
2951
      cat confdefs.h
 
2952
      echo
 
2953
    fi
 
2954
    test "$ac_signal" != 0 &&
 
2955
      $as_echo "$as_me: caught signal $ac_signal"
 
2956
    $as_echo "$as_me: exit $exit_status"
 
2957
  } >&5
 
2958
  rm -f core *.core core.conftest.* &&
 
2959
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2960
    exit $exit_status
 
2961
' 0
 
2962
for ac_signal in 1 2 13 15; do
 
2963
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
2964
done
 
2965
ac_signal=0
 
2966
 
 
2967
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2968
rm -f -r conftest* confdefs.h
 
2969
 
 
2970
$as_echo "/* confdefs.h */" > confdefs.h
 
2971
 
 
2972
# Predefined preprocessor variables.
 
2973
 
 
2974
cat >>confdefs.h <<_ACEOF
 
2975
#define PACKAGE_NAME "$PACKAGE_NAME"
 
2976
_ACEOF
 
2977
 
 
2978
cat >>confdefs.h <<_ACEOF
 
2979
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2980
_ACEOF
 
2981
 
 
2982
cat >>confdefs.h <<_ACEOF
 
2983
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2984
_ACEOF
 
2985
 
 
2986
cat >>confdefs.h <<_ACEOF
 
2987
#define PACKAGE_STRING "$PACKAGE_STRING"
 
2988
_ACEOF
 
2989
 
 
2990
cat >>confdefs.h <<_ACEOF
 
2991
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2992
_ACEOF
 
2993
 
 
2994
cat >>confdefs.h <<_ACEOF
 
2995
#define PACKAGE_URL "$PACKAGE_URL"
 
2996
_ACEOF
 
2997
 
 
2998
 
 
2999
# Let the site file select an alternate cache file if it wants to.
 
3000
# Prefer an explicitly selected file to automatically selected ones.
 
3001
ac_site_file1=NONE
 
3002
ac_site_file2=NONE
 
3003
if test -n "$CONFIG_SITE"; then
 
3004
  # We do not want a PATH search for config.site.
 
3005
  case $CONFIG_SITE in #((
 
3006
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
3007
    */*) ac_site_file1=$CONFIG_SITE;;
 
3008
    *)   ac_site_file1=./$CONFIG_SITE;;
 
3009
  esac
 
3010
elif test "x$prefix" != xNONE; then
 
3011
  ac_site_file1=$prefix/share/config.site
 
3012
  ac_site_file2=$prefix/etc/config.site
 
3013
else
 
3014
  ac_site_file1=$ac_default_prefix/share/config.site
 
3015
  ac_site_file2=$ac_default_prefix/etc/config.site
 
3016
fi
 
3017
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
3018
do
 
3019
  test "x$ac_site_file" = xNONE && continue
 
3020
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
3021
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
3022
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
3023
    sed 's/^/| /' "$ac_site_file" >&5
 
3024
    . "$ac_site_file" \
 
3025
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3026
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3027
as_fn_error $? "failed to load site script $ac_site_file
 
3028
See \`config.log' for more details" "$LINENO" 5 ; }
 
3029
  fi
 
3030
done
 
3031
 
 
3032
if test -r "$cache_file"; then
 
3033
  # Some versions of bash will fail to source /dev/null (special files
 
3034
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
3035
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
3036
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
3037
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
3038
    case $cache_file in
 
3039
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
3040
      *)                      . "./$cache_file";;
 
3041
    esac
 
3042
  fi
 
3043
else
 
3044
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
3045
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
3046
  >$cache_file
 
3047
fi
 
3048
 
 
3049
gt_needs="$gt_needs "
 
3050
as_fn_append ac_func_list " flockfile"
 
3051
as_fn_append ac_func_list " funlockfile"
 
3052
as_fn_append ac_header_list " features.h"
 
3053
as_fn_append ac_header_list " linewrap.h"
 
3054
as_fn_append ac_func_list " btowc"
 
3055
as_fn_append ac_header_list " errno.h"
 
3056
as_fn_append ac_header_list " float.h"
 
3057
as_fn_append ac_func_list " isblank"
 
3058
as_fn_append ac_func_list " iswctype"
 
3059
as_fn_append ac_func_list " mbsrtowcs"
 
3060
as_fn_append ac_func_list " mempcpy"
 
3061
as_fn_append ac_func_list " wmemchr"
 
3062
as_fn_append ac_func_list " wmemcpy"
 
3063
as_fn_append ac_func_list " wmempcpy"
 
3064
as_fn_append ac_header_list " wctype.h"
 
3065
as_fn_append ac_func_list " getdelim"
 
3066
gl_getopt_required=GNU
 
3067
as_fn_append ac_header_list " getopt.h"
 
3068
as_fn_append ac_header_list " langinfo.h"
 
3069
as_fn_append ac_func_list " mbsinit"
 
3070
as_fn_append ac_func_list " mbrtowc"
 
3071
as_fn_append ac_header_list " sys/mman.h"
 
3072
as_fn_append ac_func_list " mprotect"
 
3073
as_fn_append ac_func_list " memchr"
 
3074
as_fn_append ac_func_list " nl_langinfo"
 
3075
as_fn_append ac_header_list " locale.h"
 
3076
as_fn_append ac_func_list " wcscoll"
 
3077
as_fn_append ac_func_list " sleep"
 
3078
as_fn_append ac_header_list " stddef.h"
 
3079
as_fn_append ac_header_list " stdint.h"
 
3080
as_fn_append ac_header_list " wchar.h"
 
3081
as_fn_append ac_header_list " stdio.h"
 
3082
as_fn_append ac_header_list " stdlib.h"
 
3083
as_fn_append ac_header_list " sys/socket.h"
 
3084
as_fn_append ac_header_list " string.h"
 
3085
as_fn_append ac_header_list " strings.h"
 
3086
as_fn_append ac_func_list " strndup"
 
3087
as_fn_append ac_header_list " sys/wait.h"
 
3088
as_fn_append ac_header_list " sysexits.h"
 
3089
as_fn_append ac_header_list " unistd.h"
 
3090
as_fn_append ac_func_list " vasnprintf"
 
3091
as_fn_append ac_func_list " wcrtomb"
 
3092
as_fn_append ac_func_list " iswcntrl"
 
3093
as_fn_append ac_func_list " iswblank"
 
3094
# Check that the precious variables saved in the cache have kept the same
 
3095
# value.
 
3096
ac_cache_corrupted=false
 
3097
for ac_var in $ac_precious_vars; do
 
3098
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
3099
  eval ac_new_set=\$ac_env_${ac_var}_set
 
3100
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
3101
  eval ac_new_val=\$ac_env_${ac_var}_value
 
3102
  case $ac_old_set,$ac_new_set in
 
3103
    set,)
 
3104
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
3105
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
3106
      ac_cache_corrupted=: ;;
 
3107
    ,set)
 
3108
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
3109
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
3110
      ac_cache_corrupted=: ;;
 
3111
    ,);;
 
3112
    *)
 
3113
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
3114
        # differences in whitespace do not lead to failure.
 
3115
        ac_old_val_w=`echo x $ac_old_val`
 
3116
        ac_new_val_w=`echo x $ac_new_val`
 
3117
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
3118
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
3119
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
3120
          ac_cache_corrupted=:
 
3121
        else
 
3122
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
3123
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
3124
          eval $ac_var=\$ac_old_val
 
3125
        fi
 
3126
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
3127
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
3128
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
3129
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
3130
      fi;;
 
3131
  esac
 
3132
  # Pass precious variables to config.status.
 
3133
  if test "$ac_new_set" = set; then
 
3134
    case $ac_new_val in
 
3135
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
3136
    *) ac_arg=$ac_var=$ac_new_val ;;
 
3137
    esac
 
3138
    case " $ac_configure_args " in
 
3139
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
3140
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
3141
    esac
 
3142
  fi
 
3143
done
 
3144
if $ac_cache_corrupted; then
 
3145
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3146
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3147
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
3148
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
3149
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
3150
fi
 
3151
## -------------------- ##
 
3152
## Main body of script. ##
 
3153
## -------------------- ##
 
3154
 
 
3155
ac_ext=c
 
3156
ac_cpp='$CPP $CPPFLAGS'
 
3157
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3158
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3159
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3160
 
 
3161
 
 
3162
 
 
3163
ac_aux_dir=
 
3164
for ac_dir in build-aux "$srcdir"/build-aux; do
 
3165
  if test -f "$ac_dir/install-sh"; then
 
3166
    ac_aux_dir=$ac_dir
 
3167
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
3168
    break
 
3169
  elif test -f "$ac_dir/install.sh"; then
 
3170
    ac_aux_dir=$ac_dir
 
3171
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
3172
    break
 
3173
  elif test -f "$ac_dir/shtool"; then
 
3174
    ac_aux_dir=$ac_dir
 
3175
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
3176
    break
 
3177
  fi
 
3178
done
 
3179
if test -z "$ac_aux_dir"; then
 
3180
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
 
3181
fi
 
3182
 
 
3183
# These three variables are undocumented and unsupported,
 
3184
# and are intended to be withdrawn in a future Autoconf release.
 
3185
# They can cause serious problems if a builder's source tree is in a directory
 
3186
# whose full name contains unusual characters.
 
3187
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
3188
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
3189
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
3190
 
 
3191
 
 
3192
 
 
3193
# We don't want -g -O2 by default in CFLAGS
 
3194
: ${CFLAGS=""}
 
3195
 
 
3196
# Checks for host and target systems.
 
3197
# Make sure we can run config.sub.
 
3198
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
3199
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
3200
 
 
3201
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
3202
$as_echo_n "checking build system type... " >&6; }
 
3203
if test "${ac_cv_build+set}" = set; then :
 
3204
  $as_echo_n "(cached) " >&6
 
3205
else
 
3206
  ac_build_alias=$build_alias
 
3207
test "x$ac_build_alias" = x &&
 
3208
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
3209
test "x$ac_build_alias" = x &&
 
3210
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 
3211
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
3212
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
3213
 
 
3214
fi
 
3215
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
3216
$as_echo "$ac_cv_build" >&6; }
 
3217
case $ac_cv_build in
 
3218
*-*-*) ;;
 
3219
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
 
3220
esac
 
3221
build=$ac_cv_build
 
3222
ac_save_IFS=$IFS; IFS='-'
 
3223
set x $ac_cv_build
 
3224
shift
 
3225
build_cpu=$1
 
3226
build_vendor=$2
 
3227
shift; shift
 
3228
# Remember, the first character of IFS is used to create $*,
 
3229
# except with old shells:
 
3230
build_os=$*
 
3231
IFS=$ac_save_IFS
 
3232
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
3233
 
 
3234
 
 
3235
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
3236
$as_echo_n "checking host system type... " >&6; }
 
3237
if test "${ac_cv_host+set}" = set; then :
 
3238
  $as_echo_n "(cached) " >&6
 
3239
else
 
3240
  if test "x$host_alias" = x; then
 
3241
  ac_cv_host=$ac_cv_build
 
3242
else
 
3243
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
3244
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
3245
fi
 
3246
 
 
3247
fi
 
3248
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
3249
$as_echo "$ac_cv_host" >&6; }
 
3250
case $ac_cv_host in
 
3251
*-*-*) ;;
 
3252
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
 
3253
esac
 
3254
host=$ac_cv_host
 
3255
ac_save_IFS=$IFS; IFS='-'
 
3256
set x $ac_cv_host
 
3257
shift
 
3258
host_cpu=$1
 
3259
host_vendor=$2
 
3260
shift; shift
 
3261
# Remember, the first character of IFS is used to create $*,
 
3262
# except with old shells:
 
3263
host_os=$*
 
3264
IFS=$ac_save_IFS
 
3265
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
3266
 
 
3267
 
 
3268
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
 
3269
$as_echo_n "checking target system type... " >&6; }
 
3270
if test "${ac_cv_target+set}" = set; then :
 
3271
  $as_echo_n "(cached) " >&6
 
3272
else
 
3273
  if test "x$target_alias" = x; then
 
3274
  ac_cv_target=$ac_cv_host
 
3275
else
 
3276
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
 
3277
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
 
3278
fi
 
3279
 
 
3280
fi
 
3281
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
 
3282
$as_echo "$ac_cv_target" >&6; }
 
3283
case $ac_cv_target in
 
3284
*-*-*) ;;
 
3285
*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
 
3286
esac
 
3287
target=$ac_cv_target
 
3288
ac_save_IFS=$IFS; IFS='-'
 
3289
set x $ac_cv_target
 
3290
shift
 
3291
target_cpu=$1
 
3292
target_vendor=$2
 
3293
shift; shift
 
3294
# Remember, the first character of IFS is used to create $*,
 
3295
# except with old shells:
 
3296
target_os=$*
 
3297
IFS=$ac_save_IFS
 
3298
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
 
3299
 
 
3300
 
 
3301
# The aliases save the names the user supplied, while $host etc.
 
3302
# will get canonicalized.
 
3303
test -n "$target_alias" &&
 
3304
  test "$program_prefix$program_suffix$program_transform_name" = \
 
3305
    NONENONEs,x,x, &&
 
3306
  program_prefix=${target_alias}-
 
3307
 
 
3308
am__api_version='1.11'
 
3309
 
 
3310
# Find a good install program.  We prefer a C program (faster),
 
3311
# so one script is as good as another.  But avoid the broken or
 
3312
# incompatible versions:
 
3313
# SysV /etc/install, /usr/sbin/install
 
3314
# SunOS /usr/etc/install
 
3315
# IRIX /sbin/install
 
3316
# AIX /bin/install
 
3317
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
3318
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
3319
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
3320
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3321
# OS/2's system install, which has a completely different semantic
 
3322
# ./install, which can be erroneously created by make from ./install.sh.
 
3323
# Reject install programs that cannot install multiple files.
 
3324
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
3325
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
3326
if test -z "$INSTALL"; then
 
3327
if test "${ac_cv_path_install+set}" = set; then :
 
3328
  $as_echo_n "(cached) " >&6
 
3329
else
 
3330
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3331
for as_dir in $PATH
 
3332
do
 
3333
  IFS=$as_save_IFS
 
3334
  test -z "$as_dir" && as_dir=.
 
3335
    # Account for people who put trailing slashes in PATH elements.
 
3336
case $as_dir/ in #((
 
3337
  ./ | .// | /[cC]/* | \
 
3338
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3339
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
3340
  /usr/ucb/* ) ;;
 
3341
  *)
 
3342
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3343
    # Don't use installbsd from OSF since it installs stuff as root
 
3344
    # by default.
 
3345
    for ac_prog in ginstall scoinst install; do
 
3346
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3347
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
3348
          if test $ac_prog = install &&
 
3349
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3350
            # AIX install.  It has an incompatible calling convention.
 
3351
            :
 
3352
          elif test $ac_prog = install &&
 
3353
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3354
            # program-specific install script used by HP pwplus--don't use.
 
3355
            :
 
3356
          else
 
3357
            rm -rf conftest.one conftest.two conftest.dir
 
3358
            echo one > conftest.one
 
3359
            echo two > conftest.two
 
3360
            mkdir conftest.dir
 
3361
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
3362
              test -s conftest.one && test -s conftest.two &&
 
3363
              test -s conftest.dir/conftest.one &&
 
3364
              test -s conftest.dir/conftest.two
 
3365
            then
 
3366
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3367
              break 3
 
3368
            fi
 
3369
          fi
 
3370
        fi
 
3371
      done
 
3372
    done
 
3373
    ;;
 
3374
esac
 
3375
 
 
3376
  done
 
3377
IFS=$as_save_IFS
 
3378
 
 
3379
rm -rf conftest.one conftest.two conftest.dir
 
3380
 
 
3381
fi
 
3382
  if test "${ac_cv_path_install+set}" = set; then
 
3383
    INSTALL=$ac_cv_path_install
 
3384
  else
 
3385
    # As a last resort, use the slow shell script.  Don't cache a
 
3386
    # value for INSTALL within a source directory, because that will
 
3387
    # break other packages using the cache if that directory is
 
3388
    # removed, or if the value is a relative name.
 
3389
    INSTALL=$ac_install_sh
 
3390
  fi
 
3391
fi
 
3392
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
3393
$as_echo "$INSTALL" >&6; }
 
3394
 
 
3395
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
3396
# It thinks the first close brace ends the variable substitution.
 
3397
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
3398
 
 
3399
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3400
 
 
3401
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3402
 
 
3403
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
3404
$as_echo_n "checking whether build environment is sane... " >&6; }
 
3405
# Just in case
 
3406
sleep 1
 
3407
echo timestamp > conftest.file
 
3408
# Reject unsafe characters in $srcdir or the absolute working directory
 
3409
# name.  Accept space and tab only in the latter.
 
3410
am_lf='
 
3411
'
 
3412
case `pwd` in
 
3413
  *[\\\"\#\$\&\'\`$am_lf]*)
 
3414
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
 
3415
esac
 
3416
case $srcdir in
 
3417
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
3418
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
 
3419
esac
 
3420
 
 
3421
# Do `set' in a subshell so we don't clobber the current shell's
 
3422
# arguments.  Must try -L first in case configure is actually a
 
3423
# symlink; some systems play weird games with the mod time of symlinks
 
3424
# (eg FreeBSD returns the mod time of the symlink's containing
 
3425
# directory).
 
3426
if (
 
3427
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
3428
   if test "$*" = "X"; then
 
3429
      # -L didn't work.
 
3430
      set X `ls -t "$srcdir/configure" conftest.file`
 
3431
   fi
 
3432
   rm -f conftest.file
 
3433
   if test "$*" != "X $srcdir/configure conftest.file" \
 
3434
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
3435
 
 
3436
      # If neither matched, then we have a broken ls.  This can happen
 
3437
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
3438
      # broken ls alias from the environment.  This has actually
 
3439
      # happened.  Such a system could not be considered "sane".
 
3440
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 
3441
alias in your environment" "$LINENO" 5
 
3442
   fi
 
3443
 
 
3444
   test "$2" = conftest.file
 
3445
   )
 
3446
then
 
3447
   # Ok.
 
3448
   :
 
3449
else
 
3450
   as_fn_error $? "newly created file is older than distributed files!
 
3451
Check your system clock" "$LINENO" 5
 
3452
fi
 
3453
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3454
$as_echo "yes" >&6; }
 
3455
test "$program_prefix" != NONE &&
 
3456
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
3457
# Use a double $ so make ignores it.
 
3458
test "$program_suffix" != NONE &&
 
3459
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
3460
# Double any \ or $.
 
3461
# By default was `s,x,x', remove it if useless.
 
3462
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
3463
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
3464
 
 
3465
# expand $ac_aux_dir to an absolute path
 
3466
am_aux_dir=`cd $ac_aux_dir && pwd`
 
3467
 
 
3468
if test x"${MISSING+set}" != xset; then
 
3469
  case $am_aux_dir in
 
3470
  *\ * | *\     *)
 
3471
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
3472
  *)
 
3473
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
3474
  esac
 
3475
fi
 
3476
# Use eval to expand $SHELL
 
3477
if eval "$MISSING --run true"; then
 
3478
  am_missing_run="$MISSING --run "
 
3479
else
 
3480
  am_missing_run=
 
3481
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
 
3482
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
3483
fi
 
3484
 
 
3485
if test x"${install_sh}" != xset; then
 
3486
  case $am_aux_dir in
 
3487
  *\ * | *\     *)
 
3488
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
3489
  *)
 
3490
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
3491
  esac
 
3492
fi
 
3493
 
 
3494
# Installed binaries are usually stripped using `strip' when the user
 
3495
# run `make install-strip'.  However `strip' might not be the right
 
3496
# tool to use in cross-compilation environments, therefore Automake
 
3497
# will honor the `STRIP' environment variable to overrule this program.
 
3498
if test "$cross_compiling" != no; then
 
3499
  if test -n "$ac_tool_prefix"; then
 
3500
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
3501
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
3502
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3503
$as_echo_n "checking for $ac_word... " >&6; }
 
3504
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
3505
  $as_echo_n "(cached) " >&6
 
3506
else
 
3507
  if test -n "$STRIP"; then
 
3508
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
3509
else
 
3510
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3511
for as_dir in $PATH
 
3512
do
 
3513
  IFS=$as_save_IFS
 
3514
  test -z "$as_dir" && as_dir=.
 
3515
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3516
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3517
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
3518
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3519
    break 2
 
3520
  fi
 
3521
done
 
3522
  done
 
3523
IFS=$as_save_IFS
 
3524
 
 
3525
fi
 
3526
fi
 
3527
STRIP=$ac_cv_prog_STRIP
 
3528
if test -n "$STRIP"; then
 
3529
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
3530
$as_echo "$STRIP" >&6; }
 
3531
else
 
3532
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3533
$as_echo "no" >&6; }
 
3534
fi
 
3535
 
 
3536
 
 
3537
fi
 
3538
if test -z "$ac_cv_prog_STRIP"; then
 
3539
  ac_ct_STRIP=$STRIP
 
3540
  # Extract the first word of "strip", so it can be a program name with args.
 
3541
set dummy strip; ac_word=$2
 
3542
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3543
$as_echo_n "checking for $ac_word... " >&6; }
 
3544
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
3545
  $as_echo_n "(cached) " >&6
 
3546
else
 
3547
  if test -n "$ac_ct_STRIP"; then
 
3548
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
3549
else
 
3550
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3551
for as_dir in $PATH
 
3552
do
 
3553
  IFS=$as_save_IFS
 
3554
  test -z "$as_dir" && as_dir=.
 
3555
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3556
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3557
    ac_cv_prog_ac_ct_STRIP="strip"
 
3558
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3559
    break 2
 
3560
  fi
 
3561
done
 
3562
  done
 
3563
IFS=$as_save_IFS
 
3564
 
 
3565
fi
 
3566
fi
 
3567
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
3568
if test -n "$ac_ct_STRIP"; then
 
3569
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
3570
$as_echo "$ac_ct_STRIP" >&6; }
 
3571
else
 
3572
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3573
$as_echo "no" >&6; }
 
3574
fi
 
3575
 
 
3576
  if test "x$ac_ct_STRIP" = x; then
 
3577
    STRIP=":"
 
3578
  else
 
3579
    case $cross_compiling:$ac_tool_warned in
 
3580
yes:)
 
3581
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3582
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3583
ac_tool_warned=yes ;;
 
3584
esac
 
3585
    STRIP=$ac_ct_STRIP
 
3586
  fi
 
3587
else
 
3588
  STRIP="$ac_cv_prog_STRIP"
 
3589
fi
 
3590
 
 
3591
fi
 
3592
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
3593
 
 
3594
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
3595
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
3596
if test -z "$MKDIR_P"; then
 
3597
  if test "${ac_cv_path_mkdir+set}" = set; then :
 
3598
  $as_echo_n "(cached) " >&6
 
3599
else
 
3600
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3601
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
3602
do
 
3603
  IFS=$as_save_IFS
 
3604
  test -z "$as_dir" && as_dir=.
 
3605
    for ac_prog in mkdir gmkdir; do
 
3606
         for ac_exec_ext in '' $ac_executable_extensions; do
 
3607
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
3608
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
3609
             'mkdir (GNU coreutils) '* | \
 
3610
             'mkdir (coreutils) '* | \
 
3611
             'mkdir (fileutils) '4.1*)
 
3612
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
3613
               break 3;;
 
3614
           esac
 
3615
         done
 
3616
       done
 
3617
  done
 
3618
IFS=$as_save_IFS
 
3619
 
 
3620
fi
 
3621
 
 
3622
  test -d ./--version && rmdir ./--version
 
3623
  if test "${ac_cv_path_mkdir+set}" = set; then
 
3624
    MKDIR_P="$ac_cv_path_mkdir -p"
 
3625
  else
 
3626
    # As a last resort, use the slow shell script.  Don't cache a
 
3627
    # value for MKDIR_P within a source directory, because that will
 
3628
    # break other packages using the cache if that directory is
 
3629
    # removed, or if the value is a relative name.
 
3630
    MKDIR_P="$ac_install_sh -d"
 
3631
  fi
 
3632
fi
 
3633
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
3634
$as_echo "$MKDIR_P" >&6; }
 
3635
 
 
3636
 
 
3637
mkdir_p="$MKDIR_P"
 
3638
case $mkdir_p in
 
3639
  [\\/$]* | ?:[\\/]*) ;;
 
3640
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
3641
esac
 
3642
 
 
3643
for ac_prog in gawk mawk nawk awk
 
3644
do
 
3645
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3646
set dummy $ac_prog; ac_word=$2
 
3647
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3648
$as_echo_n "checking for $ac_word... " >&6; }
 
3649
if test "${ac_cv_prog_AWK+set}" = set; then :
 
3650
  $as_echo_n "(cached) " >&6
 
3651
else
 
3652
  if test -n "$AWK"; then
 
3653
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
3654
else
 
3655
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3656
for as_dir in $PATH
 
3657
do
 
3658
  IFS=$as_save_IFS
 
3659
  test -z "$as_dir" && as_dir=.
 
3660
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3661
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3662
    ac_cv_prog_AWK="$ac_prog"
 
3663
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3664
    break 2
 
3665
  fi
 
3666
done
 
3667
  done
 
3668
IFS=$as_save_IFS
 
3669
 
 
3670
fi
 
3671
fi
 
3672
AWK=$ac_cv_prog_AWK
 
3673
if test -n "$AWK"; then
 
3674
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
3675
$as_echo "$AWK" >&6; }
 
3676
else
 
3677
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3678
$as_echo "no" >&6; }
 
3679
fi
 
3680
 
 
3681
 
 
3682
  test -n "$AWK" && break
 
3683
done
 
3684
 
 
3685
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3686
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
3687
set x ${MAKE-make}
 
3688
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
3689
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
 
3690
  $as_echo_n "(cached) " >&6
 
3691
else
 
3692
  cat >conftest.make <<\_ACEOF
 
3693
SHELL = /bin/sh
 
3694
all:
 
3695
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
3696
_ACEOF
 
3697
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
3698
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
3699
  *@@@%%%=?*=@@@%%%*)
 
3700
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
3701
  *)
 
3702
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
3703
esac
 
3704
rm -f conftest.make
 
3705
fi
 
3706
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
3707
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3708
$as_echo "yes" >&6; }
 
3709
  SET_MAKE=
 
3710
else
 
3711
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3712
$as_echo "no" >&6; }
 
3713
  SET_MAKE="MAKE=${MAKE-make}"
 
3714
fi
 
3715
 
 
3716
rm -rf .tst 2>/dev/null
 
3717
mkdir .tst 2>/dev/null
 
3718
if test -d .tst; then
 
3719
  am__leading_dot=.
 
3720
else
 
3721
  am__leading_dot=_
 
3722
fi
 
3723
rmdir .tst 2>/dev/null
 
3724
 
 
3725
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
3726
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
3727
  # is not polluted with repeated "-I."
 
3728
  am__isrc=' -I$(srcdir)'
 
3729
  # test to see if srcdir already configured
 
3730
  if test -f $srcdir/config.status; then
 
3731
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
3732
  fi
 
3733
fi
 
3734
 
 
3735
# test whether we have cygpath
 
3736
if test -z "$CYGPATH_W"; then
 
3737
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
3738
    CYGPATH_W='cygpath -w'
 
3739
  else
 
3740
    CYGPATH_W=echo
 
3741
  fi
 
3742
fi
 
3743
 
 
3744
 
 
3745
# Define the identity of the package.
 
3746
 PACKAGE='grub'
 
3747
 VERSION='1.99~20101119-1'
 
3748
 
 
3749
 
 
3750
cat >>confdefs.h <<_ACEOF
 
3751
#define PACKAGE "$PACKAGE"
 
3752
_ACEOF
 
3753
 
 
3754
 
 
3755
cat >>confdefs.h <<_ACEOF
 
3756
#define VERSION "$VERSION"
 
3757
_ACEOF
 
3758
 
 
3759
# Some tools Automake needs.
 
3760
 
 
3761
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
3762
 
 
3763
 
 
3764
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
3765
 
 
3766
 
 
3767
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
3768
 
 
3769
 
 
3770
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
3771
 
 
3772
 
 
3773
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
3774
 
 
3775
# We need awk for the "check" target.  The system "awk" is bad on
 
3776
# some platforms.
 
3777
# Always define AMTAR for backward compatibility.
 
3778
 
 
3779
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
3780
 
 
3781
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
3782
 
 
3783
 
 
3784
 
 
3785
 
 
3786
 
 
3787
 
 
3788
 
 
3789
ac_config_headers="$ac_config_headers config-util.h"
 
3790
 
 
3791
 
 
3792
# Program name transformations
 
3793
 
 
3794
 
 
3795
# Optimization flag.  Allow user to override.
 
3796
if test "x$TARGET_CFLAGS" = x; then
 
3797
  TARGET_CFLAGS="$TARGET_CFLAGS -Os"
 
3798
fi
 
3799
 
 
3800
# Default HOST_CPPFLAGS
 
3801
HOST_CPPFLAGS="$HOST_CPPFLAGS -Wall -W"
 
3802
HOST_CPPFLAGS="$HOST_CPPFLAGS -I\$(top_builddir)/include"
 
3803
HOST_CPPFLAGS="$HOST_CPPFLAGS -DGRUB_UTIL=1"
 
3804
HOST_CPPFLAGS="$HOST_CPPFLAGS -DGRUB_LIBDIR=\\\"\$(pkglibdir)\\\""
 
3805
HOST_CPPFLAGS="$HOST_CPPFLAGS -DLOCALEDIR=\\\"\$(localedir)\\\""
 
3806
 
 
3807
TARGET_CPPFLAGS="$TARGET_CPPFLAGS -Wall -W"
 
3808
TARGET_CPPFLAGS="$TARGET_CPPFLAGS -I\$(top_srcdir)/include"
 
3809
TARGET_CPPFLAGS="$TARGET_CPPFLAGS -I\$(top_builddir)/include"
 
3810
 
 
3811
case "$target_cpu" in
 
3812
  i[3456]86)    target_cpu=i386 ;;
 
3813
  amd64)        target_cpu=x86_64 ;;
 
3814
  sparc)        target_cpu=sparc64 ;;
 
3815
  mipsel|mips64el)
 
3816
                target_cpu=mips;
 
3817
                machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_CPU_MIPSEL=1";
 
3818
                ;;
 
3819
  mips|mips64)
 
3820
                target_cpu=mips;
 
3821
                machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_CPU_MIPS=1";
 
3822
                ;;
 
3823
esac
 
3824
 
 
3825
# Specify the platform (such as firmware).
 
3826
 
 
3827
# Check whether --with-platform was given.
 
3828
if test "${with_platform+set}" = set; then :
 
3829
  withval=$with_platform;
 
3830
fi
 
3831
 
 
3832
 
 
3833
# Guess the platform if not specified.
 
3834
if test "x$with_platform" = x; then
 
3835
  case "$target_cpu"-"$target_vendor" in
 
3836
    i386-apple) platform=efi ;;
 
3837
    i386-*) platform=pc ;;
 
3838
    x86_64-apple) platform=efi ;;
 
3839
    x86_64-*) platform=pc ;;
 
3840
    powerpc-*) platform=ieee1275 ;;
 
3841
    powerpc64-*) platform=ieee1275 ;;
 
3842
    sparc64-*) platform=ieee1275 ;;
 
3843
    mips-*) platform=yeeloong ;;
 
3844
    *) as_fn_error $? "unsupported CPU: \"$target_cpu\"" "$LINENO" 5  ;;
 
3845
  esac
 
3846
else
 
3847
  platform="$with_platform"
 
3848
fi
 
3849
 
 
3850
# Adjust CPU unless target was explicitly specified.
 
3851
if test -z "$target_alias"; then
 
3852
  case "$target_cpu"-"$platform" in
 
3853
    x86_64-efi) ;;
 
3854
    x86_64-emu) ;;
 
3855
    x86_64-*) target_cpu=i386 ;;
 
3856
    powerpc64-ieee1275) target_cpu=powerpc ;;
 
3857
  esac
 
3858
fi
 
3859
 
 
3860
# Check if the platform is supported, make final adjustments.
 
3861
case "$target_cpu"-"$platform" in
 
3862
  i386-efi) ;;
 
3863
  x86_64-efi) ;;
 
3864
  i386-pc) ;;
 
3865
  i386-multiboot) ;;
 
3866
  i386-coreboot) ;;
 
3867
  i386-linuxbios) platform=coreboot ;;
 
3868
  i386-ieee1275) ;;
 
3869
  i386-qemu) ;;
 
3870
  powerpc-ieee1275) ;;
 
3871
  sparc64-ieee1275) ;;
 
3872
  mips-qemu-mips) ;;
 
3873
  mips-yeeloong) ;;
 
3874
  *-emu) ;;
 
3875
  *) as_fn_error $? "platform \"$platform\" is not supported for target CPU \"$target_cpu\"" "$LINENO" 5  ;;
 
3876
esac
 
3877
 
 
3878
case "$target_cpu" in
 
3879
  i386 | powerpc) target_m32=1 ;;
 
3880
  x86_64 | sparc64) target_m64=1 ;;
 
3881
esac
 
3882
 
 
3883
case "$host_os" in
 
3884
  mingw32*) host_os=cygwin ;;
 
3885
esac
 
3886
 
 
3887
# This normalizes the names, and creates a new variable ("host_kernel")
 
3888
# while at it, since the mapping is not always 1:1 (e.g. different OSes
 
3889
# using the same kernel type).
 
3890
case "$host_os" in
 
3891
  gnu*)                         host_kernel=hurd ;;
 
3892
  linux*)                       host_kernel=linux ;;
 
3893
  freebsd* | kfreebsd*-gnu)     host_kernel=kfreebsd ;;
 
3894
  netbsd*)                      host_kernel=netbsd ;;
 
3895
  cygwin)                       host_kernel=windows ;;
 
3896
esac
 
3897
 
 
3898
case "$platform" in
 
3899
  coreboot)     machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_COREBOOT=1" ;;
 
3900
  multiboot)    machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MULTIBOOT=1" ;;
 
3901
  efi)          machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_EFI=1" ;;
 
3902
  ieee1275)     machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_IEEE1275=1" ;;
 
3903
  qemu)         machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_QEMU=1" ;;
 
3904
  pc)           machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_PCBIOS=1" ;;
 
3905
  emu)          machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_EMU=1" ;;
 
3906
  yeeloong)     machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_YEELOONG=1 -DGRUB_MACHINE_MIPS_BONITO=1" ;;
 
3907
  qemu-mips)    machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_QEMU_MIPS=1 -DGRUB_MACHINE_MIPS_BONITO=1" ;;
 
3908
esac
 
3909
case "$target_cpu" in
 
3910
  mips)         machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS=1" ;;
 
3911
  sparc64)      machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_SPARC64=1" ;;
 
3912
esac
 
3913
machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE=`echo ${target_cpu}_$platform | sed y,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ,`"
 
3914
 
 
3915
HOST_CPPFLAGS="$HOST_CPPFLAGS $machine_CPPFLAGS"
 
3916
TARGET_CPPFLAGS="$TARGET_CPPFLAGS $machine_CPPFLAGS"
 
3917
 
 
3918
 
 
3919
 
 
3920
 
 
3921
 
 
3922
 
 
3923
 
 
3924
 
 
3925
# Define default variables
 
3926
case "$host_os" in
 
3927
  netbsd* | openbsd*)
 
3928
        # Because /boot is used for the boot block in NetBSD and OpenBSD,
 
3929
        bootdirname=''      ;;
 
3930
  *)    bootdirname='boot'  ;;
 
3931
esac
 
3932
bootdirname=`echo "$bootdirname" | sed "$program_transform_name"`
 
3933
 
 
3934
 
 
3935
cat >>confdefs.h <<_ACEOF
 
3936
#define GRUB_BOOT_DIR_NAME "$bootdirname"
 
3937
_ACEOF
 
3938
 
 
3939
 
 
3940
grubdirname=`echo "$PACKAGE" | sed "$program_transform_name"`
 
3941
 
 
3942
 
 
3943
cat >>confdefs.h <<_ACEOF
 
3944
#define GRUB_DIR_NAME "$grubdirname"
 
3945
_ACEOF
 
3946
 
 
3947
 
 
3948
#
 
3949
# Checks for build programs.
 
3950
#
 
3951
 
 
3952
# Although cmp is listed in the GNU Coding Standards as a command which
 
3953
# can used directly, OpenBSD lacks cmp in the default installation.
 
3954
for ac_prog in cmp
 
3955
do
 
3956
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3957
set dummy $ac_prog; ac_word=$2
 
3958
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3959
$as_echo_n "checking for $ac_word... " >&6; }
 
3960
if test "${ac_cv_prog_CMP+set}" = set; then :
 
3961
  $as_echo_n "(cached) " >&6
 
3962
else
 
3963
  if test -n "$CMP"; then
 
3964
  ac_cv_prog_CMP="$CMP" # Let the user override the test.
 
3965
else
 
3966
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3967
for as_dir in $PATH
 
3968
do
 
3969
  IFS=$as_save_IFS
 
3970
  test -z "$as_dir" && as_dir=.
 
3971
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3972
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3973
    ac_cv_prog_CMP="$ac_prog"
 
3974
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3975
    break 2
 
3976
  fi
 
3977
done
 
3978
  done
 
3979
IFS=$as_save_IFS
 
3980
 
 
3981
fi
 
3982
fi
 
3983
CMP=$ac_cv_prog_CMP
 
3984
if test -n "$CMP"; then
 
3985
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
 
3986
$as_echo "$CMP" >&6; }
 
3987
else
 
3988
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3989
$as_echo "no" >&6; }
 
3990
fi
 
3991
 
 
3992
 
 
3993
  test -n "$CMP" && break
 
3994
done
 
3995
 
 
3996
if test "x$CMP" = x; then
 
3997
  as_fn_error $? "cmp is not found" "$LINENO" 5
 
3998
fi
 
3999
 
 
4000
for ac_prog in bison
 
4001
do
 
4002
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4003
set dummy $ac_prog; ac_word=$2
 
4004
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4005
$as_echo_n "checking for $ac_word... " >&6; }
 
4006
if test "${ac_cv_prog_YACC+set}" = set; then :
 
4007
  $as_echo_n "(cached) " >&6
 
4008
else
 
4009
  if test -n "$YACC"; then
 
4010
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
 
4011
else
 
4012
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4013
for as_dir in $PATH
 
4014
do
 
4015
  IFS=$as_save_IFS
 
4016
  test -z "$as_dir" && as_dir=.
 
4017
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4018
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4019
    ac_cv_prog_YACC="$ac_prog"
 
4020
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4021
    break 2
 
4022
  fi
 
4023
done
 
4024
  done
 
4025
IFS=$as_save_IFS
 
4026
 
 
4027
fi
 
4028
fi
 
4029
YACC=$ac_cv_prog_YACC
 
4030
if test -n "$YACC"; then
 
4031
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
 
4032
$as_echo "$YACC" >&6; }
 
4033
else
 
4034
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4035
$as_echo "no" >&6; }
 
4036
fi
 
4037
 
 
4038
 
 
4039
  test -n "$YACC" && break
 
4040
done
 
4041
 
 
4042
if test "x$YACC" = x; then
 
4043
  as_fn_error $? "bison is not found" "$LINENO" 5
 
4044
fi
 
4045
 
 
4046
FONT_SOURCE=
 
4047
 
 
4048
for ext in pcf pcf.gz bdf bdf.gz ttf ttf.gz; do
 
4049
  for dir in . /usr/src /usr/share/fonts/X11/misc /usr/share/fonts/unifont; do
 
4050
    if test -f "$dir/unifont.$ext"; then
 
4051
      FONT_SOURCE="$dir/unifont.$ext"
 
4052
      break 2
 
4053
    fi
 
4054
  done
 
4055
done
 
4056
 
 
4057
if test "x$FONT_SOURCE" = x && ( test "x$platform" = xqemu || test "x$platform" = xyeeloong ); then
 
4058
   as_fn_error $? "qemu and yeeloong ports need unifont" "$LINENO" 5
 
4059
fi
 
4060
 
 
4061
 
 
4062
 
 
4063
if test -n "$ac_tool_prefix"; then
 
4064
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
4065
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
4066
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4067
$as_echo_n "checking for $ac_word... " >&6; }
 
4068
if test "${ac_cv_prog_RANLIB+set}" = set; then :
 
4069
  $as_echo_n "(cached) " >&6
 
4070
else
 
4071
  if test -n "$RANLIB"; then
 
4072
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
4073
else
 
4074
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4075
for as_dir in $PATH
 
4076
do
 
4077
  IFS=$as_save_IFS
 
4078
  test -z "$as_dir" && as_dir=.
 
4079
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4080
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4081
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
4082
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4083
    break 2
 
4084
  fi
 
4085
done
 
4086
  done
 
4087
IFS=$as_save_IFS
 
4088
 
 
4089
fi
 
4090
fi
 
4091
RANLIB=$ac_cv_prog_RANLIB
 
4092
if test -n "$RANLIB"; then
 
4093
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
4094
$as_echo "$RANLIB" >&6; }
 
4095
else
 
4096
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4097
$as_echo "no" >&6; }
 
4098
fi
 
4099
 
 
4100
 
 
4101
fi
 
4102
if test -z "$ac_cv_prog_RANLIB"; then
 
4103
  ac_ct_RANLIB=$RANLIB
 
4104
  # Extract the first word of "ranlib", so it can be a program name with args.
 
4105
set dummy ranlib; ac_word=$2
 
4106
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4107
$as_echo_n "checking for $ac_word... " >&6; }
 
4108
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
 
4109
  $as_echo_n "(cached) " >&6
 
4110
else
 
4111
  if test -n "$ac_ct_RANLIB"; then
 
4112
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
4113
else
 
4114
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4115
for as_dir in $PATH
 
4116
do
 
4117
  IFS=$as_save_IFS
 
4118
  test -z "$as_dir" && as_dir=.
 
4119
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4120
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4121
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
4122
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4123
    break 2
 
4124
  fi
 
4125
done
 
4126
  done
 
4127
IFS=$as_save_IFS
 
4128
 
 
4129
fi
 
4130
fi
 
4131
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
4132
if test -n "$ac_ct_RANLIB"; then
 
4133
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
4134
$as_echo "$ac_ct_RANLIB" >&6; }
 
4135
else
 
4136
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4137
$as_echo "no" >&6; }
 
4138
fi
 
4139
 
 
4140
  if test "x$ac_ct_RANLIB" = x; then
 
4141
    RANLIB=":"
 
4142
  else
 
4143
    case $cross_compiling:$ac_tool_warned in
 
4144
yes:)
 
4145
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4146
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4147
ac_tool_warned=yes ;;
 
4148
esac
 
4149
    RANLIB=$ac_ct_RANLIB
 
4150
  fi
 
4151
else
 
4152
  RANLIB="$ac_cv_prog_RANLIB"
 
4153
fi
 
4154
 
 
4155
 
 
4156
for ac_prog in gawk mawk nawk awk
 
4157
do
 
4158
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4159
set dummy $ac_prog; ac_word=$2
 
4160
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4161
$as_echo_n "checking for $ac_word... " >&6; }
 
4162
if test "${ac_cv_prog_AWK+set}" = set; then :
 
4163
  $as_echo_n "(cached) " >&6
 
4164
else
 
4165
  if test -n "$AWK"; then
 
4166
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
4167
else
 
4168
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4169
for as_dir in $PATH
 
4170
do
 
4171
  IFS=$as_save_IFS
 
4172
  test -z "$as_dir" && as_dir=.
 
4173
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4174
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4175
    ac_cv_prog_AWK="$ac_prog"
 
4176
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4177
    break 2
 
4178
  fi
 
4179
done
 
4180
  done
 
4181
IFS=$as_save_IFS
 
4182
 
 
4183
fi
 
4184
fi
 
4185
AWK=$ac_cv_prog_AWK
 
4186
if test -n "$AWK"; then
 
4187
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
4188
$as_echo "$AWK" >&6; }
 
4189
else
 
4190
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4191
$as_echo "no" >&6; }
 
4192
fi
 
4193
 
 
4194
 
 
4195
  test -n "$AWK" && break
 
4196
done
 
4197
 
 
4198
DEPDIR="${am__leading_dot}deps"
 
4199
 
 
4200
ac_config_commands="$ac_config_commands depfiles"
 
4201
 
 
4202
 
 
4203
am_make=${MAKE-make}
 
4204
cat > confinc << 'END'
 
4205
am__doit:
 
4206
        @echo this is the am__doit target
 
4207
.PHONY: am__doit
 
4208
END
 
4209
# If we don't find an include directive, just comment out the code.
 
4210
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
4211
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
4212
am__include="#"
 
4213
am__quote=
 
4214
_am_result=none
 
4215
# First try GNU make style include.
 
4216
echo "include confinc" > confmf
 
4217
# Ignore all kinds of additional output from `make'.
 
4218
case `$am_make -s -f confmf 2> /dev/null` in #(
 
4219
*the\ am__doit\ target*)
 
4220
  am__include=include
 
4221
  am__quote=
 
4222
  _am_result=GNU
 
4223
  ;;
 
4224
esac
 
4225
# Now try BSD make style include.
 
4226
if test "$am__include" = "#"; then
 
4227
   echo '.include "confinc"' > confmf
 
4228
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
4229
   *the\ am__doit\ target*)
 
4230
     am__include=.include
 
4231
     am__quote="\""
 
4232
     _am_result=BSD
 
4233
     ;;
 
4234
   esac
 
4235
fi
 
4236
 
 
4237
 
 
4238
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
4239
$as_echo "$_am_result" >&6; }
 
4240
rm -f confinc confmf
 
4241
 
 
4242
# Check whether --enable-dependency-tracking was given.
 
4243
if test "${enable_dependency_tracking+set}" = set; then :
 
4244
  enableval=$enable_dependency_tracking;
 
4245
fi
 
4246
 
 
4247
if test "x$enable_dependency_tracking" != xno; then
 
4248
  am_depcomp="$ac_aux_dir/depcomp"
 
4249
  AMDEPBACKSLASH='\'
 
4250
fi
 
4251
 if test "x$enable_dependency_tracking" != xno; then
 
4252
  AMDEP_TRUE=
 
4253
  AMDEP_FALSE='#'
 
4254
else
 
4255
  AMDEP_TRUE='#'
 
4256
  AMDEP_FALSE=
 
4257
fi
 
4258
 
 
4259
 
 
4260
ac_ext=c
 
4261
ac_cpp='$CPP $CPPFLAGS'
 
4262
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4263
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4264
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4265
if test -n "$ac_tool_prefix"; then
 
4266
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
4267
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
4268
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4269
$as_echo_n "checking for $ac_word... " >&6; }
 
4270
if test "${ac_cv_prog_CC+set}" = set; then :
 
4271
  $as_echo_n "(cached) " >&6
 
4272
else
 
4273
  if test -n "$CC"; then
 
4274
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4275
else
 
4276
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4277
for as_dir in $PATH
 
4278
do
 
4279
  IFS=$as_save_IFS
 
4280
  test -z "$as_dir" && as_dir=.
 
4281
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4282
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4283
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
4284
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4285
    break 2
 
4286
  fi
 
4287
done
 
4288
  done
 
4289
IFS=$as_save_IFS
 
4290
 
 
4291
fi
 
4292
fi
 
4293
CC=$ac_cv_prog_CC
 
4294
if test -n "$CC"; then
 
4295
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4296
$as_echo "$CC" >&6; }
 
4297
else
 
4298
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4299
$as_echo "no" >&6; }
 
4300
fi
 
4301
 
 
4302
 
 
4303
fi
 
4304
if test -z "$ac_cv_prog_CC"; then
 
4305
  ac_ct_CC=$CC
 
4306
  # Extract the first word of "gcc", so it can be a program name with args.
 
4307
set dummy gcc; ac_word=$2
 
4308
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4309
$as_echo_n "checking for $ac_word... " >&6; }
 
4310
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
4311
  $as_echo_n "(cached) " >&6
 
4312
else
 
4313
  if test -n "$ac_ct_CC"; then
 
4314
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
4315
else
 
4316
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4317
for as_dir in $PATH
 
4318
do
 
4319
  IFS=$as_save_IFS
 
4320
  test -z "$as_dir" && as_dir=.
 
4321
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4322
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4323
    ac_cv_prog_ac_ct_CC="gcc"
 
4324
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4325
    break 2
 
4326
  fi
 
4327
done
 
4328
  done
 
4329
IFS=$as_save_IFS
 
4330
 
 
4331
fi
 
4332
fi
 
4333
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
4334
if test -n "$ac_ct_CC"; then
 
4335
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
4336
$as_echo "$ac_ct_CC" >&6; }
 
4337
else
 
4338
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4339
$as_echo "no" >&6; }
 
4340
fi
 
4341
 
 
4342
  if test "x$ac_ct_CC" = x; then
 
4343
    CC=""
 
4344
  else
 
4345
    case $cross_compiling:$ac_tool_warned in
 
4346
yes:)
 
4347
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4348
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4349
ac_tool_warned=yes ;;
 
4350
esac
 
4351
    CC=$ac_ct_CC
 
4352
  fi
 
4353
else
 
4354
  CC="$ac_cv_prog_CC"
 
4355
fi
 
4356
 
 
4357
if test -z "$CC"; then
 
4358
          if test -n "$ac_tool_prefix"; then
 
4359
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
4360
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
4361
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4362
$as_echo_n "checking for $ac_word... " >&6; }
 
4363
if test "${ac_cv_prog_CC+set}" = set; then :
 
4364
  $as_echo_n "(cached) " >&6
 
4365
else
 
4366
  if test -n "$CC"; then
 
4367
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4368
else
 
4369
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4370
for as_dir in $PATH
 
4371
do
 
4372
  IFS=$as_save_IFS
 
4373
  test -z "$as_dir" && as_dir=.
 
4374
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4375
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4376
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
4377
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4378
    break 2
 
4379
  fi
 
4380
done
 
4381
  done
 
4382
IFS=$as_save_IFS
 
4383
 
 
4384
fi
 
4385
fi
 
4386
CC=$ac_cv_prog_CC
 
4387
if test -n "$CC"; then
 
4388
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4389
$as_echo "$CC" >&6; }
 
4390
else
 
4391
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4392
$as_echo "no" >&6; }
 
4393
fi
 
4394
 
 
4395
 
 
4396
  fi
 
4397
fi
 
4398
if test -z "$CC"; then
 
4399
  # Extract the first word of "cc", so it can be a program name with args.
 
4400
set dummy cc; ac_word=$2
 
4401
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4402
$as_echo_n "checking for $ac_word... " >&6; }
 
4403
if test "${ac_cv_prog_CC+set}" = set; then :
 
4404
  $as_echo_n "(cached) " >&6
 
4405
else
 
4406
  if test -n "$CC"; then
 
4407
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4408
else
 
4409
  ac_prog_rejected=no
 
4410
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4411
for as_dir in $PATH
 
4412
do
 
4413
  IFS=$as_save_IFS
 
4414
  test -z "$as_dir" && as_dir=.
 
4415
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4416
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4417
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
4418
       ac_prog_rejected=yes
 
4419
       continue
 
4420
     fi
 
4421
    ac_cv_prog_CC="cc"
 
4422
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4423
    break 2
 
4424
  fi
 
4425
done
 
4426
  done
 
4427
IFS=$as_save_IFS
 
4428
 
 
4429
if test $ac_prog_rejected = yes; then
 
4430
  # We found a bogon in the path, so make sure we never use it.
 
4431
  set dummy $ac_cv_prog_CC
 
4432
  shift
 
4433
  if test $# != 0; then
 
4434
    # We chose a different compiler from the bogus one.
 
4435
    # However, it has the same basename, so the bogon will be chosen
 
4436
    # first if we set CC to just the basename; use the full file name.
 
4437
    shift
 
4438
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
4439
  fi
 
4440
fi
 
4441
fi
 
4442
fi
 
4443
CC=$ac_cv_prog_CC
 
4444
if test -n "$CC"; then
 
4445
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4446
$as_echo "$CC" >&6; }
 
4447
else
 
4448
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4449
$as_echo "no" >&6; }
 
4450
fi
 
4451
 
 
4452
 
 
4453
fi
 
4454
if test -z "$CC"; then
 
4455
  if test -n "$ac_tool_prefix"; then
 
4456
  for ac_prog in cl.exe
 
4457
  do
 
4458
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4459
set dummy $ac_tool_prefix$ac_prog; 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$ac_prog"
 
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
    test -n "$CC" && break
 
4496
  done
 
4497
fi
 
4498
if test -z "$CC"; then
 
4499
  ac_ct_CC=$CC
 
4500
  for ac_prog in cl.exe
 
4501
do
 
4502
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4503
set dummy $ac_prog; ac_word=$2
 
4504
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4505
$as_echo_n "checking for $ac_word... " >&6; }
 
4506
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
4507
  $as_echo_n "(cached) " >&6
 
4508
else
 
4509
  if test -n "$ac_ct_CC"; then
 
4510
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
4511
else
 
4512
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4513
for as_dir in $PATH
 
4514
do
 
4515
  IFS=$as_save_IFS
 
4516
  test -z "$as_dir" && as_dir=.
 
4517
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4518
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4519
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
4520
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4521
    break 2
 
4522
  fi
 
4523
done
 
4524
  done
 
4525
IFS=$as_save_IFS
 
4526
 
 
4527
fi
 
4528
fi
 
4529
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
4530
if test -n "$ac_ct_CC"; then
 
4531
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
4532
$as_echo "$ac_ct_CC" >&6; }
 
4533
else
 
4534
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4535
$as_echo "no" >&6; }
 
4536
fi
 
4537
 
 
4538
 
 
4539
  test -n "$ac_ct_CC" && break
 
4540
done
 
4541
 
 
4542
  if test "x$ac_ct_CC" = x; then
 
4543
    CC=""
 
4544
  else
 
4545
    case $cross_compiling:$ac_tool_warned in
 
4546
yes:)
 
4547
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4548
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4549
ac_tool_warned=yes ;;
 
4550
esac
 
4551
    CC=$ac_ct_CC
 
4552
  fi
 
4553
fi
 
4554
 
 
4555
fi
 
4556
 
 
4557
 
 
4558
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4559
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4560
as_fn_error $? "no acceptable C compiler found in \$PATH
 
4561
See \`config.log' for more details" "$LINENO" 5 ; }
 
4562
 
 
4563
# Provide some information about the compiler.
 
4564
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
4565
set X $ac_compile
 
4566
ac_compiler=$2
 
4567
for ac_option in --version -v -V -qversion; do
 
4568
  { { ac_try="$ac_compiler $ac_option >&5"
 
4569
case "(($ac_try" in
 
4570
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4571
  *) ac_try_echo=$ac_try;;
 
4572
esac
 
4573
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4574
$as_echo "$ac_try_echo"; } >&5
 
4575
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
4576
  ac_status=$?
 
4577
  if test -s conftest.err; then
 
4578
    sed '10a\
 
4579
... rest of stderr output deleted ...
 
4580
         10q' conftest.err >conftest.er1
 
4581
    cat conftest.er1 >&5
 
4582
  fi
 
4583
  rm -f conftest.er1 conftest.err
 
4584
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4585
  test $ac_status = 0; }
 
4586
done
 
4587
 
 
4588
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4589
/* end confdefs.h.  */
 
4590
 
 
4591
int
 
4592
main (void)
 
4593
{
 
4594
 
 
4595
  ;
 
4596
  return 0;
 
4597
}
 
4598
_ACEOF
 
4599
ac_clean_files_save=$ac_clean_files
 
4600
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
4601
# Try to create an executable without -o first, disregard a.out.
 
4602
# It will help us diagnose broken compilers, and finding out an intuition
 
4603
# of exeext.
 
4604
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
4605
$as_echo_n "checking whether the C compiler works... " >&6; }
 
4606
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
4607
 
 
4608
# The possible output files:
 
4609
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
4610
 
 
4611
ac_rmfiles=
 
4612
for ac_file in $ac_files
 
4613
do
 
4614
  case $ac_file in
 
4615
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
4616
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
4617
  esac
 
4618
done
 
4619
rm -f $ac_rmfiles
 
4620
 
 
4621
if { { ac_try="$ac_link_default"
 
4622
case "(($ac_try" in
 
4623
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4624
  *) ac_try_echo=$ac_try;;
 
4625
esac
 
4626
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4627
$as_echo "$ac_try_echo"; } >&5
 
4628
  (eval "$ac_link_default") 2>&5
 
4629
  ac_status=$?
 
4630
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4631
  test $ac_status = 0; }; then :
 
4632
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
4633
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
4634
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
4635
# so that the user can short-circuit this test for compilers unknown to
 
4636
# Autoconf.
 
4637
for ac_file in $ac_files ''
 
4638
do
 
4639
  test -f "$ac_file" || continue
 
4640
  case $ac_file in
 
4641
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
4642
        ;;
 
4643
    [ab].out )
 
4644
        # We found the default executable, but exeext='' is most
 
4645
        # certainly right.
 
4646
        break;;
 
4647
    *.* )
 
4648
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
4649
        then :; else
 
4650
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
4651
        fi
 
4652
        # We set ac_cv_exeext here because the later test for it is not
 
4653
        # safe: cross compilers may not add the suffix if given an `-o'
 
4654
        # argument, so we may need to know it at that point already.
 
4655
        # Even if this section looks crufty: it has the advantage of
 
4656
        # actually working.
 
4657
        break;;
 
4658
    * )
 
4659
        break;;
 
4660
  esac
 
4661
done
 
4662
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
4663
 
 
4664
else
 
4665
  ac_file=''
 
4666
fi
 
4667
if test -z "$ac_file"; then :
 
4668
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4669
$as_echo "no" >&6; }
 
4670
$as_echo "$as_me: failed program was:" >&5
 
4671
sed 's/^/| /' conftest.$ac_ext >&5
 
4672
 
 
4673
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4674
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4675
as_fn_error 77 "C compiler cannot create executables
 
4676
See \`config.log' for more details" "$LINENO" 5 ; }
 
4677
else
 
4678
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4679
$as_echo "yes" >&6; }
 
4680
fi
 
4681
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
4682
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
4683
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
4684
$as_echo "$ac_file" >&6; }
 
4685
ac_exeext=$ac_cv_exeext
 
4686
 
 
4687
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
4688
ac_clean_files=$ac_clean_files_save
 
4689
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
4690
$as_echo_n "checking for suffix of executables... " >&6; }
 
4691
if { { ac_try="$ac_link"
 
4692
case "(($ac_try" in
 
4693
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4694
  *) ac_try_echo=$ac_try;;
 
4695
esac
 
4696
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4697
$as_echo "$ac_try_echo"; } >&5
 
4698
  (eval "$ac_link") 2>&5
 
4699
  ac_status=$?
 
4700
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4701
  test $ac_status = 0; }; then :
 
4702
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
4703
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
4704
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
4705
# `rm'.
 
4706
for ac_file in conftest.exe conftest conftest.*; do
 
4707
  test -f "$ac_file" || continue
 
4708
  case $ac_file in
 
4709
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
4710
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
4711
          break;;
 
4712
    * ) break;;
 
4713
  esac
 
4714
done
 
4715
else
 
4716
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4717
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4718
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
4719
See \`config.log' for more details" "$LINENO" 5 ; }
 
4720
fi
 
4721
rm -f conftest conftest$ac_cv_exeext
 
4722
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
4723
$as_echo "$ac_cv_exeext" >&6; }
 
4724
 
 
4725
rm -f conftest.$ac_ext
 
4726
EXEEXT=$ac_cv_exeext
 
4727
ac_exeext=$EXEEXT
 
4728
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4729
/* end confdefs.h.  */
 
4730
#include <stdio.h>
 
4731
int
 
4732
main (void)
 
4733
{
 
4734
FILE *f = fopen ("conftest.out", "w");
 
4735
 return ferror (f) || fclose (f) != 0;
 
4736
 
 
4737
  ;
 
4738
  return 0;
 
4739
}
 
4740
_ACEOF
 
4741
ac_clean_files="$ac_clean_files conftest.out"
 
4742
# Check that the compiler produces executables we can run.  If not, either
 
4743
# the compiler is broken, or we cross compile.
 
4744
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
4745
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
4746
if test "$cross_compiling" != yes; then
 
4747
  { { ac_try="$ac_link"
 
4748
case "(($ac_try" in
 
4749
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4750
  *) ac_try_echo=$ac_try;;
 
4751
esac
 
4752
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4753
$as_echo "$ac_try_echo"; } >&5
 
4754
  (eval "$ac_link") 2>&5
 
4755
  ac_status=$?
 
4756
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4757
  test $ac_status = 0; }
 
4758
  if { ac_try='./conftest$ac_cv_exeext'
 
4759
  { { case "(($ac_try" in
 
4760
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4761
  *) ac_try_echo=$ac_try;;
 
4762
esac
 
4763
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4764
$as_echo "$ac_try_echo"; } >&5
 
4765
  (eval "$ac_try") 2>&5
 
4766
  ac_status=$?
 
4767
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4768
  test $ac_status = 0; }; }; then
 
4769
    cross_compiling=no
 
4770
  else
 
4771
    if test "$cross_compiling" = maybe; then
 
4772
        cross_compiling=yes
 
4773
    else
 
4774
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4775
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4776
as_fn_error $? "cannot run C compiled programs.
 
4777
If you meant to cross compile, use \`--host'.
 
4778
See \`config.log' for more details" "$LINENO" 5 ; }
 
4779
    fi
 
4780
  fi
 
4781
fi
 
4782
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
4783
$as_echo "$cross_compiling" >&6; }
 
4784
 
 
4785
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
4786
ac_clean_files=$ac_clean_files_save
 
4787
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
4788
$as_echo_n "checking for suffix of object files... " >&6; }
 
4789
if test "${ac_cv_objext+set}" = set; then :
 
4790
  $as_echo_n "(cached) " >&6
 
4791
else
 
4792
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4793
/* end confdefs.h.  */
 
4794
 
 
4795
int
 
4796
main (void)
 
4797
{
 
4798
 
 
4799
  ;
 
4800
  return 0;
 
4801
}
 
4802
_ACEOF
 
4803
rm -f conftest.o conftest.obj
 
4804
if { { ac_try="$ac_compile"
 
4805
case "(($ac_try" in
 
4806
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4807
  *) ac_try_echo=$ac_try;;
 
4808
esac
 
4809
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4810
$as_echo "$ac_try_echo"; } >&5
 
4811
  (eval "$ac_compile") 2>&5
 
4812
  ac_status=$?
 
4813
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4814
  test $ac_status = 0; }; then :
 
4815
  for ac_file in conftest.o conftest.obj conftest.*; do
 
4816
  test -f "$ac_file" || continue;
 
4817
  case $ac_file in
 
4818
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
4819
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
4820
       break;;
 
4821
  esac
 
4822
done
 
4823
else
 
4824
  $as_echo "$as_me: failed program was:" >&5
 
4825
sed 's/^/| /' conftest.$ac_ext >&5
 
4826
 
 
4827
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4828
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4829
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
4830
See \`config.log' for more details" "$LINENO" 5 ; }
 
4831
fi
 
4832
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
4833
fi
 
4834
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
4835
$as_echo "$ac_cv_objext" >&6; }
 
4836
OBJEXT=$ac_cv_objext
 
4837
ac_objext=$OBJEXT
 
4838
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
4839
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
4840
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
4841
  $as_echo_n "(cached) " >&6
 
4842
else
 
4843
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4844
/* end confdefs.h.  */
 
4845
 
 
4846
int
 
4847
main (void)
 
4848
{
 
4849
#ifndef __GNUC__
 
4850
       choke me
 
4851
#endif
 
4852
 
 
4853
  ;
 
4854
  return 0;
 
4855
}
 
4856
_ACEOF
 
4857
if ac_fn_c_try_compile "$LINENO"; then :
 
4858
  ac_compiler_gnu=yes
 
4859
else
 
4860
  ac_compiler_gnu=no
 
4861
fi
 
4862
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4863
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
4864
 
 
4865
fi
 
4866
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
4867
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
4868
if test $ac_compiler_gnu = yes; then
 
4869
  GCC=yes
 
4870
else
 
4871
  GCC=
 
4872
fi
 
4873
ac_test_CFLAGS=${CFLAGS+set}
 
4874
ac_save_CFLAGS=$CFLAGS
 
4875
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
4876
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
4877
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
4878
  $as_echo_n "(cached) " >&6
 
4879
else
 
4880
  ac_save_c_werror_flag=$ac_c_werror_flag
 
4881
   ac_c_werror_flag=yes
 
4882
   ac_cv_prog_cc_g=no
 
4883
   CFLAGS="-g"
 
4884
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4885
/* end confdefs.h.  */
 
4886
 
 
4887
int
 
4888
main (void)
 
4889
{
 
4890
 
 
4891
  ;
 
4892
  return 0;
 
4893
}
 
4894
_ACEOF
 
4895
if ac_fn_c_try_compile "$LINENO"; then :
 
4896
  ac_cv_prog_cc_g=yes
 
4897
else
 
4898
  CFLAGS=""
 
4899
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4900
/* end confdefs.h.  */
 
4901
 
 
4902
int
 
4903
main (void)
 
4904
{
 
4905
 
 
4906
  ;
 
4907
  return 0;
 
4908
}
 
4909
_ACEOF
 
4910
if ac_fn_c_try_compile "$LINENO"; then :
 
4911
 
 
4912
else
 
4913
  ac_c_werror_flag=$ac_save_c_werror_flag
 
4914
         CFLAGS="-g"
 
4915
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4916
/* end confdefs.h.  */
 
4917
 
 
4918
int
 
4919
main (void)
 
4920
{
 
4921
 
 
4922
  ;
 
4923
  return 0;
 
4924
}
 
4925
_ACEOF
 
4926
if ac_fn_c_try_compile "$LINENO"; then :
 
4927
  ac_cv_prog_cc_g=yes
 
4928
fi
 
4929
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4930
fi
 
4931
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4932
fi
 
4933
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4934
   ac_c_werror_flag=$ac_save_c_werror_flag
 
4935
fi
 
4936
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
4937
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
4938
if test "$ac_test_CFLAGS" = set; then
 
4939
  CFLAGS=$ac_save_CFLAGS
 
4940
elif test $ac_cv_prog_cc_g = yes; then
 
4941
  if test "$GCC" = yes; then
 
4942
    CFLAGS="-g -O2"
 
4943
  else
 
4944
    CFLAGS="-g"
 
4945
  fi
 
4946
else
 
4947
  if test "$GCC" = yes; then
 
4948
    CFLAGS="-O2"
 
4949
  else
 
4950
    CFLAGS=
 
4951
  fi
 
4952
fi
 
4953
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
4954
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
4955
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
4956
  $as_echo_n "(cached) " >&6
 
4957
else
 
4958
  ac_cv_prog_cc_c89=no
 
4959
ac_save_CC=$CC
 
4960
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4961
/* end confdefs.h.  */
 
4962
#include <stdarg.h>
 
4963
#include <stdio.h>
 
4964
#include <sys/types.h>
 
4965
#include <sys/stat.h>
 
4966
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
4967
struct buf { int x; };
 
4968
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
4969
static char *e (p, i)
 
4970
     char **p;
 
4971
     int i;
 
4972
{
 
4973
  return p[i];
 
4974
}
 
4975
static char *f (char * (*g) (char **, int), char **p, ...)
 
4976
{
 
4977
  char *s;
 
4978
  va_list v;
 
4979
  va_start (v,p);
 
4980
  s = g (p, va_arg (v,int));
 
4981
  va_end (v);
 
4982
  return s;
 
4983
}
 
4984
 
 
4985
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
4986
   function prototypes and stuff, but not '\xHH' hex character constants.
 
4987
   These don't provoke an error unfortunately, instead are silently treated
 
4988
   as 'x'.  The following induces an error, until -std is added to get
 
4989
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
4990
   array size at least.  It's necessary to write '\x00'==0 to get something
 
4991
   that's true only with -std.  */
 
4992
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
4993
 
 
4994
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
4995
   inside strings and character constants.  */
 
4996
#define FOO(x) 'x'
 
4997
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
4998
 
 
4999
int test (int i, double x);
 
5000
struct s1 {int (*f) (int a);};
 
5001
struct s2 {int (*f) (double a);};
 
5002
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
5003
int argc;
 
5004
char **argv;
 
5005
int
 
5006
main (void)
 
5007
{
 
5008
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
5009
  ;
 
5010
  return 0;
 
5011
}
 
5012
_ACEOF
 
5013
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
5014
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
5015
do
 
5016
  CC="$ac_save_CC $ac_arg"
 
5017
  if ac_fn_c_try_compile "$LINENO"; then :
 
5018
  ac_cv_prog_cc_c89=$ac_arg
 
5019
fi
 
5020
rm -f core conftest.err conftest.$ac_objext
 
5021
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
5022
done
 
5023
rm -f conftest.$ac_ext
 
5024
CC=$ac_save_CC
 
5025
 
 
5026
fi
 
5027
# AC_CACHE_VAL
 
5028
case "x$ac_cv_prog_cc_c89" in
 
5029
  x)
 
5030
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
5031
$as_echo "none needed" >&6; } ;;
 
5032
  xno)
 
5033
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
5034
$as_echo "unsupported" >&6; } ;;
 
5035
  *)
 
5036
    CC="$CC $ac_cv_prog_cc_c89"
 
5037
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
5038
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
5039
esac
 
5040
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
5041
 
 
5042
fi
 
5043
 
 
5044
ac_ext=c
 
5045
ac_cpp='$CPP $CPPFLAGS'
 
5046
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5047
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5048
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5049
 
 
5050
depcc="$CC"   am_compiler_list=
 
5051
 
 
5052
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
5053
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
5054
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
 
5055
  $as_echo_n "(cached) " >&6
 
5056
else
 
5057
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
5058
  # We make a subdir and do the tests there.  Otherwise we can end up
 
5059
  # making bogus files that we don't know about and never remove.  For
 
5060
  # instance it was reported that on HP-UX the gcc test will end up
 
5061
  # making a dummy file named `D' -- because `-MD' means `put the output
 
5062
  # in D'.
 
5063
  mkdir conftest.dir
 
5064
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
5065
  # using a relative directory.
 
5066
  cp "$am_depcomp" conftest.dir
 
5067
  cd conftest.dir
 
5068
  # We will build objects and dependencies in a subdirectory because
 
5069
  # it helps to detect inapplicable dependency modes.  For instance
 
5070
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
5071
  # side effect of compilation, but ICC will put the dependencies in
 
5072
  # the current directory while Tru64 will put them in the object
 
5073
  # directory.
 
5074
  mkdir sub
 
5075
 
 
5076
  am_cv_CC_dependencies_compiler_type=none
 
5077
  if test "$am_compiler_list" = ""; then
 
5078
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
5079
  fi
 
5080
  am__universal=false
 
5081
  case " $depcc " in #(
 
5082
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
5083
     esac
 
5084
 
 
5085
  for depmode in $am_compiler_list; do
 
5086
    # Setup a source with many dependencies, because some compilers
 
5087
    # like to wrap large dependency lists on column 80 (with \), and
 
5088
    # we should not choose a depcomp mode which is confused by this.
 
5089
    #
 
5090
    # We need to recreate these files for each test, as the compiler may
 
5091
    # overwrite some of them when testing with obscure command lines.
 
5092
    # This happens at least with the AIX C compiler.
 
5093
    : > sub/conftest.c
 
5094
    for i in 1 2 3 4 5 6; do
 
5095
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
5096
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
5097
      # Solaris 8's {/usr,}/bin/sh.
 
5098
      touch sub/conftst$i.h
 
5099
    done
 
5100
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
5101
 
 
5102
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
5103
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
5104
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
5105
    # versions had trouble with output in subdirs
 
5106
    am__obj=sub/conftest.${OBJEXT-o}
 
5107
    am__minus_obj="-o $am__obj"
 
5108
    case $depmode in
 
5109
    gcc)
 
5110
      # This depmode causes a compiler race in universal mode.
 
5111
      test "$am__universal" = false || continue
 
5112
      ;;
 
5113
    nosideeffect)
 
5114
      # after this tag, mechanisms are not by side-effect, so they'll
 
5115
      # only be used when explicitly requested
 
5116
      if test "x$enable_dependency_tracking" = xyes; then
 
5117
        continue
 
5118
      else
 
5119
        break
 
5120
      fi
 
5121
      ;;
 
5122
    msvisualcpp | msvcmsys)
 
5123
      # This compiler won't grok `-c -o', but also, the minuso test has
 
5124
      # not run yet.  These depmodes are late enough in the game, and
 
5125
      # so weak that their functioning should not be impacted.
 
5126
      am__obj=conftest.${OBJEXT-o}
 
5127
      am__minus_obj=
 
5128
      ;;
 
5129
    none) break ;;
 
5130
    esac
 
5131
    if depmode=$depmode \
 
5132
       source=sub/conftest.c object=$am__obj \
 
5133
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
5134
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
5135
         >/dev/null 2>conftest.err &&
 
5136
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
5137
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
5138
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
5139
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
5140
      # icc doesn't choke on unknown options, it will just issue warnings
 
5141
      # or remarks (even with -Werror).  So we grep stderr for any message
 
5142
      # that says an option was ignored or not supported.
 
5143
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
5144
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
5145
      # The diagnosis changed in icc 8.0:
 
5146
      #   icc: Command line remark: option '-MP' not supported
 
5147
      if (grep 'ignoring option' conftest.err ||
 
5148
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
5149
        am_cv_CC_dependencies_compiler_type=$depmode
 
5150
        break
 
5151
      fi
 
5152
    fi
 
5153
  done
 
5154
 
 
5155
  cd ..
 
5156
  rm -rf conftest.dir
 
5157
else
 
5158
  am_cv_CC_dependencies_compiler_type=none
 
5159
fi
 
5160
 
 
5161
fi
 
5162
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
5163
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
5164
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
5165
 
 
5166
 if
 
5167
  test "x$enable_dependency_tracking" != xno \
 
5168
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
5169
  am__fastdepCC_TRUE=
 
5170
  am__fastdepCC_FALSE='#'
 
5171
else
 
5172
  am__fastdepCC_TRUE='#'
 
5173
  am__fastdepCC_FALSE=
 
5174
fi
 
5175
 
 
5176
 
 
5177
 
 
5178
for ac_prog in flex lex
 
5179
do
 
5180
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5181
set dummy $ac_prog; ac_word=$2
 
5182
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5183
$as_echo_n "checking for $ac_word... " >&6; }
 
5184
if test "${ac_cv_prog_LEX+set}" = set; then :
 
5185
  $as_echo_n "(cached) " >&6
 
5186
else
 
5187
  if test -n "$LEX"; then
 
5188
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
 
5189
else
 
5190
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5191
for as_dir in $PATH
 
5192
do
 
5193
  IFS=$as_save_IFS
 
5194
  test -z "$as_dir" && as_dir=.
 
5195
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5196
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5197
    ac_cv_prog_LEX="$ac_prog"
 
5198
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5199
    break 2
 
5200
  fi
 
5201
done
 
5202
  done
 
5203
IFS=$as_save_IFS
 
5204
 
 
5205
fi
 
5206
fi
 
5207
LEX=$ac_cv_prog_LEX
 
5208
if test -n "$LEX"; then
 
5209
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
 
5210
$as_echo "$LEX" >&6; }
 
5211
else
 
5212
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5213
$as_echo "no" >&6; }
 
5214
fi
 
5215
 
 
5216
 
 
5217
  test -n "$LEX" && break
 
5218
done
 
5219
test -n "$LEX" || LEX=":"
 
5220
 
 
5221
if test "x$LEX" != "x:"; then
 
5222
  cat >conftest.l <<_ACEOF
 
5223
%%
 
5224
a { ECHO; }
 
5225
b { REJECT; }
 
5226
c { yymore (); }
 
5227
d { yyless (1); }
 
5228
e { yyless (input () != 0); }
 
5229
f { unput (yytext[0]); }
 
5230
. { BEGIN INITIAL; }
 
5231
%%
 
5232
#ifdef YYTEXT_POINTER
 
5233
extern char *yytext;
 
5234
#endif
 
5235
int
 
5236
main (void)
 
5237
{
 
5238
  return ! yylex () + ! yywrap ();
 
5239
}
 
5240
_ACEOF
 
5241
{ { ac_try="$LEX conftest.l"
 
5242
case "(($ac_try" in
 
5243
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5244
  *) ac_try_echo=$ac_try;;
 
5245
esac
 
5246
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
5247
$as_echo "$ac_try_echo"; } >&5
 
5248
  (eval "$LEX conftest.l") 2>&5
 
5249
  ac_status=$?
 
5250
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5251
  test $ac_status = 0; }
 
5252
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
 
5253
$as_echo_n "checking lex output file root... " >&6; }
 
5254
if test "${ac_cv_prog_lex_root+set}" = set; then :
 
5255
  $as_echo_n "(cached) " >&6
 
5256
else
 
5257
 
 
5258
if test -f lex.yy.c; then
 
5259
  ac_cv_prog_lex_root=lex.yy
 
5260
elif test -f lexyy.c; then
 
5261
  ac_cv_prog_lex_root=lexyy
 
5262
else
 
5263
  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
 
5264
fi
 
5265
fi
 
5266
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
 
5267
$as_echo "$ac_cv_prog_lex_root" >&6; }
 
5268
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
 
5269
 
 
5270
if test -z "${LEXLIB+set}"; then
 
5271
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
 
5272
$as_echo_n "checking lex library... " >&6; }
 
5273
if test "${ac_cv_lib_lex+set}" = set; then :
 
5274
  $as_echo_n "(cached) " >&6
 
5275
else
 
5276
 
 
5277
    ac_save_LIBS=$LIBS
 
5278
    ac_cv_lib_lex='none needed'
 
5279
    for ac_lib in '' -lfl -ll; do
 
5280
      LIBS="$ac_lib $ac_save_LIBS"
 
5281
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5282
/* end confdefs.h.  */
 
5283
`cat $LEX_OUTPUT_ROOT.c`
 
5284
_ACEOF
 
5285
if ac_fn_c_try_link "$LINENO"; then :
 
5286
  ac_cv_lib_lex=$ac_lib
 
5287
fi
 
5288
rm -f core conftest.err conftest.$ac_objext \
 
5289
    conftest$ac_exeext conftest.$ac_ext
 
5290
      test "$ac_cv_lib_lex" != 'none needed' && break
 
5291
    done
 
5292
    LIBS=$ac_save_LIBS
 
5293
 
 
5294
fi
 
5295
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
 
5296
$as_echo "$ac_cv_lib_lex" >&6; }
 
5297
  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
 
5298
fi
 
5299
 
 
5300
 
 
5301
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
 
5302
$as_echo_n "checking whether yytext is a pointer... " >&6; }
 
5303
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
 
5304
  $as_echo_n "(cached) " >&6
 
5305
else
 
5306
  # POSIX says lex can declare yytext either as a pointer or an array; the
 
5307
# default is implementation-dependent.  Figure out which it is, since
 
5308
# not all implementations provide the %pointer and %array declarations.
 
5309
ac_cv_prog_lex_yytext_pointer=no
 
5310
ac_save_LIBS=$LIBS
 
5311
LIBS="$LEXLIB $ac_save_LIBS"
 
5312
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5313
/* end confdefs.h.  */
 
5314
#define YYTEXT_POINTER 1
 
5315
`cat $LEX_OUTPUT_ROOT.c`
 
5316
_ACEOF
 
5317
if ac_fn_c_try_link "$LINENO"; then :
 
5318
  ac_cv_prog_lex_yytext_pointer=yes
 
5319
fi
 
5320
rm -f core conftest.err conftest.$ac_objext \
 
5321
    conftest$ac_exeext conftest.$ac_ext
 
5322
LIBS=$ac_save_LIBS
 
5323
 
 
5324
fi
 
5325
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
 
5326
$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
 
5327
if test $ac_cv_prog_lex_yytext_pointer = yes; then
 
5328
 
 
5329
$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
 
5330
 
 
5331
fi
 
5332
rm -f conftest.l $LEX_OUTPUT_ROOT.c
 
5333
 
 
5334
fi
 
5335
for ac_prog in 'bison -y' byacc
 
5336
do
 
5337
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5338
set dummy $ac_prog; ac_word=$2
 
5339
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5340
$as_echo_n "checking for $ac_word... " >&6; }
 
5341
if test "${ac_cv_prog_YACC+set}" = set; then :
 
5342
  $as_echo_n "(cached) " >&6
 
5343
else
 
5344
  if test -n "$YACC"; then
 
5345
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
 
5346
else
 
5347
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5348
for as_dir in $PATH
 
5349
do
 
5350
  IFS=$as_save_IFS
 
5351
  test -z "$as_dir" && as_dir=.
 
5352
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5353
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5354
    ac_cv_prog_YACC="$ac_prog"
 
5355
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5356
    break 2
 
5357
  fi
 
5358
done
 
5359
  done
 
5360
IFS=$as_save_IFS
 
5361
 
 
5362
fi
 
5363
fi
 
5364
YACC=$ac_cv_prog_YACC
 
5365
if test -n "$YACC"; then
 
5366
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
 
5367
$as_echo "$YACC" >&6; }
 
5368
else
 
5369
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5370
$as_echo "no" >&6; }
 
5371
fi
 
5372
 
 
5373
 
 
5374
  test -n "$YACC" && break
 
5375
done
 
5376
test -n "$YACC" || YACC="yacc"
 
5377
 
 
5378
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
5379
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
5380
set x ${MAKE-make}
 
5381
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
5382
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
 
5383
  $as_echo_n "(cached) " >&6
 
5384
else
 
5385
  cat >conftest.make <<\_ACEOF
 
5386
SHELL = /bin/sh
 
5387
all:
 
5388
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
5389
_ACEOF
 
5390
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
5391
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
5392
  *@@@%%%=?*=@@@%%%*)
 
5393
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
5394
  *)
 
5395
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
5396
esac
 
5397
rm -f conftest.make
 
5398
fi
 
5399
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
5400
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5401
$as_echo "yes" >&6; }
 
5402
  SET_MAKE=
 
5403
else
 
5404
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5405
$as_echo "no" >&6; }
 
5406
  SET_MAKE="MAKE=${MAKE-make}"
 
5407
fi
 
5408
 
 
5409
 
 
5410
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
5411
$as_echo_n "checking whether ln -s works... " >&6; }
 
5412
LN_S=$as_ln_s
 
5413
if test "$LN_S" = "ln -s"; then
 
5414
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5415
$as_echo "yes" >&6; }
 
5416
else
 
5417
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
5418
$as_echo "no, using $LN_S" >&6; }
 
5419
fi
 
5420
 
 
5421
 
 
5422
if test "x$LEX" = "x:"; then
 
5423
  as_fn_error $? "flex is not found" "$LINENO" 5
 
5424
else
 
5425
  version=`$LEX --version | $AWK '{ split($NF,x,"."); print x[1]*10000+x[2]*100+x[3]; }'`
 
5426
  if test -n "$version" -a "$version" -ge 20535; then
 
5427
    :
 
5428
  else
 
5429
    as_fn_error $? "flex is too old. GRUB requires 2.5.35 or above" "$LINENO" 5
 
5430
  fi
 
5431
fi
 
5432
 
 
5433
# These are not a "must".
 
5434
# Extract the first word of "makeinfo", so it can be a program name with args.
 
5435
set dummy makeinfo; ac_word=$2
 
5436
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5437
$as_echo_n "checking for $ac_word... " >&6; }
 
5438
if test "${ac_cv_path_MAKEINFO+set}" = set; then :
 
5439
  $as_echo_n "(cached) " >&6
 
5440
else
 
5441
  case $MAKEINFO in
 
5442
  [\\/]* | ?:[\\/]*)
 
5443
  ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
 
5444
  ;;
 
5445
  *)
 
5446
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5447
for as_dir in $PATH
 
5448
do
 
5449
  IFS=$as_save_IFS
 
5450
  test -z "$as_dir" && as_dir=.
 
5451
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5452
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5453
    ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
 
5454
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5455
    break 2
 
5456
  fi
 
5457
done
 
5458
  done
 
5459
IFS=$as_save_IFS
 
5460
 
 
5461
  ;;
 
5462
esac
 
5463
fi
 
5464
MAKEINFO=$ac_cv_path_MAKEINFO
 
5465
if test -n "$MAKEINFO"; then
 
5466
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
 
5467
$as_echo "$MAKEINFO" >&6; }
 
5468
else
 
5469
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5470
$as_echo "no" >&6; }
 
5471
fi
 
5472
 
 
5473
 
 
5474
 
 
5475
#
 
5476
# Checks for host programs.
 
5477
#
 
5478
 
 
5479
ac_ext=c
 
5480
ac_cpp='$CPP $CPPFLAGS'
 
5481
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5482
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5483
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5484
if test -n "$ac_tool_prefix"; then
 
5485
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
5486
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
5487
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5488
$as_echo_n "checking for $ac_word... " >&6; }
 
5489
if test "${ac_cv_prog_CC+set}" = set; then :
 
5490
  $as_echo_n "(cached) " >&6
 
5491
else
 
5492
  if test -n "$CC"; then
 
5493
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
5494
else
 
5495
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5496
for as_dir in $PATH
 
5497
do
 
5498
  IFS=$as_save_IFS
 
5499
  test -z "$as_dir" && as_dir=.
 
5500
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5501
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5502
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
5503
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5504
    break 2
 
5505
  fi
 
5506
done
 
5507
  done
 
5508
IFS=$as_save_IFS
 
5509
 
 
5510
fi
 
5511
fi
 
5512
CC=$ac_cv_prog_CC
 
5513
if test -n "$CC"; then
 
5514
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
5515
$as_echo "$CC" >&6; }
 
5516
else
 
5517
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5518
$as_echo "no" >&6; }
 
5519
fi
 
5520
 
 
5521
 
 
5522
fi
 
5523
if test -z "$ac_cv_prog_CC"; then
 
5524
  ac_ct_CC=$CC
 
5525
  # Extract the first word of "gcc", so it can be a program name with args.
 
5526
set dummy gcc; ac_word=$2
 
5527
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5528
$as_echo_n "checking for $ac_word... " >&6; }
 
5529
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
5530
  $as_echo_n "(cached) " >&6
 
5531
else
 
5532
  if test -n "$ac_ct_CC"; then
 
5533
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
5534
else
 
5535
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5536
for as_dir in $PATH
 
5537
do
 
5538
  IFS=$as_save_IFS
 
5539
  test -z "$as_dir" && as_dir=.
 
5540
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5541
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5542
    ac_cv_prog_ac_ct_CC="gcc"
 
5543
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5544
    break 2
 
5545
  fi
 
5546
done
 
5547
  done
 
5548
IFS=$as_save_IFS
 
5549
 
 
5550
fi
 
5551
fi
 
5552
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
5553
if test -n "$ac_ct_CC"; then
 
5554
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
5555
$as_echo "$ac_ct_CC" >&6; }
 
5556
else
 
5557
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5558
$as_echo "no" >&6; }
 
5559
fi
 
5560
 
 
5561
  if test "x$ac_ct_CC" = x; then
 
5562
    CC=""
 
5563
  else
 
5564
    case $cross_compiling:$ac_tool_warned in
 
5565
yes:)
 
5566
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5567
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5568
ac_tool_warned=yes ;;
 
5569
esac
 
5570
    CC=$ac_ct_CC
 
5571
  fi
 
5572
else
 
5573
  CC="$ac_cv_prog_CC"
 
5574
fi
 
5575
 
 
5576
if test -z "$CC"; then
 
5577
          if test -n "$ac_tool_prefix"; then
 
5578
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
5579
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
5580
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5581
$as_echo_n "checking for $ac_word... " >&6; }
 
5582
if test "${ac_cv_prog_CC+set}" = set; then :
 
5583
  $as_echo_n "(cached) " >&6
 
5584
else
 
5585
  if test -n "$CC"; then
 
5586
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
5587
else
 
5588
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5589
for as_dir in $PATH
 
5590
do
 
5591
  IFS=$as_save_IFS
 
5592
  test -z "$as_dir" && as_dir=.
 
5593
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5594
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5595
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
5596
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5597
    break 2
 
5598
  fi
 
5599
done
 
5600
  done
 
5601
IFS=$as_save_IFS
 
5602
 
 
5603
fi
 
5604
fi
 
5605
CC=$ac_cv_prog_CC
 
5606
if test -n "$CC"; then
 
5607
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
5608
$as_echo "$CC" >&6; }
 
5609
else
 
5610
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5611
$as_echo "no" >&6; }
 
5612
fi
 
5613
 
 
5614
 
 
5615
  fi
 
5616
fi
 
5617
if test -z "$CC"; then
 
5618
  # Extract the first word of "cc", so it can be a program name with args.
 
5619
set dummy cc; ac_word=$2
 
5620
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5621
$as_echo_n "checking for $ac_word... " >&6; }
 
5622
if test "${ac_cv_prog_CC+set}" = set; then :
 
5623
  $as_echo_n "(cached) " >&6
 
5624
else
 
5625
  if test -n "$CC"; then
 
5626
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
5627
else
 
5628
  ac_prog_rejected=no
 
5629
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5630
for as_dir in $PATH
 
5631
do
 
5632
  IFS=$as_save_IFS
 
5633
  test -z "$as_dir" && as_dir=.
 
5634
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5635
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5636
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
5637
       ac_prog_rejected=yes
 
5638
       continue
 
5639
     fi
 
5640
    ac_cv_prog_CC="cc"
 
5641
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5642
    break 2
 
5643
  fi
 
5644
done
 
5645
  done
 
5646
IFS=$as_save_IFS
 
5647
 
 
5648
if test $ac_prog_rejected = yes; then
 
5649
  # We found a bogon in the path, so make sure we never use it.
 
5650
  set dummy $ac_cv_prog_CC
 
5651
  shift
 
5652
  if test $# != 0; then
 
5653
    # We chose a different compiler from the bogus one.
 
5654
    # However, it has the same basename, so the bogon will be chosen
 
5655
    # first if we set CC to just the basename; use the full file name.
 
5656
    shift
 
5657
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
5658
  fi
 
5659
fi
 
5660
fi
 
5661
fi
 
5662
CC=$ac_cv_prog_CC
 
5663
if test -n "$CC"; then
 
5664
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
5665
$as_echo "$CC" >&6; }
 
5666
else
 
5667
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5668
$as_echo "no" >&6; }
 
5669
fi
 
5670
 
 
5671
 
 
5672
fi
 
5673
if test -z "$CC"; then
 
5674
  if test -n "$ac_tool_prefix"; then
 
5675
  for ac_prog in cl.exe
 
5676
  do
 
5677
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5678
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5679
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5680
$as_echo_n "checking for $ac_word... " >&6; }
 
5681
if test "${ac_cv_prog_CC+set}" = set; then :
 
5682
  $as_echo_n "(cached) " >&6
 
5683
else
 
5684
  if test -n "$CC"; then
 
5685
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
5686
else
 
5687
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5688
for as_dir in $PATH
 
5689
do
 
5690
  IFS=$as_save_IFS
 
5691
  test -z "$as_dir" && as_dir=.
 
5692
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5693
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5694
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
5695
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5696
    break 2
 
5697
  fi
 
5698
done
 
5699
  done
 
5700
IFS=$as_save_IFS
 
5701
 
 
5702
fi
 
5703
fi
 
5704
CC=$ac_cv_prog_CC
 
5705
if test -n "$CC"; then
 
5706
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
5707
$as_echo "$CC" >&6; }
 
5708
else
 
5709
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5710
$as_echo "no" >&6; }
 
5711
fi
 
5712
 
 
5713
 
 
5714
    test -n "$CC" && break
 
5715
  done
 
5716
fi
 
5717
if test -z "$CC"; then
 
5718
  ac_ct_CC=$CC
 
5719
  for ac_prog in cl.exe
 
5720
do
 
5721
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5722
set dummy $ac_prog; ac_word=$2
 
5723
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5724
$as_echo_n "checking for $ac_word... " >&6; }
 
5725
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
5726
  $as_echo_n "(cached) " >&6
 
5727
else
 
5728
  if test -n "$ac_ct_CC"; then
 
5729
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
5730
else
 
5731
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5732
for as_dir in $PATH
 
5733
do
 
5734
  IFS=$as_save_IFS
 
5735
  test -z "$as_dir" && as_dir=.
 
5736
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5737
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5738
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
5739
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5740
    break 2
 
5741
  fi
 
5742
done
 
5743
  done
 
5744
IFS=$as_save_IFS
 
5745
 
 
5746
fi
 
5747
fi
 
5748
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
5749
if test -n "$ac_ct_CC"; then
 
5750
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
5751
$as_echo "$ac_ct_CC" >&6; }
 
5752
else
 
5753
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5754
$as_echo "no" >&6; }
 
5755
fi
 
5756
 
 
5757
 
 
5758
  test -n "$ac_ct_CC" && break
 
5759
done
 
5760
 
 
5761
  if test "x$ac_ct_CC" = x; then
 
5762
    CC=""
 
5763
  else
 
5764
    case $cross_compiling:$ac_tool_warned in
 
5765
yes:)
 
5766
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5767
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5768
ac_tool_warned=yes ;;
 
5769
esac
 
5770
    CC=$ac_ct_CC
 
5771
  fi
 
5772
fi
 
5773
 
 
5774
fi
 
5775
 
 
5776
 
 
5777
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
5778
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
5779
as_fn_error $? "no acceptable C compiler found in \$PATH
 
5780
See \`config.log' for more details" "$LINENO" 5 ; }
 
5781
 
 
5782
# Provide some information about the compiler.
 
5783
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
5784
set X $ac_compile
 
5785
ac_compiler=$2
 
5786
for ac_option in --version -v -V -qversion; do
 
5787
  { { ac_try="$ac_compiler $ac_option >&5"
 
5788
case "(($ac_try" in
 
5789
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5790
  *) ac_try_echo=$ac_try;;
 
5791
esac
 
5792
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
5793
$as_echo "$ac_try_echo"; } >&5
 
5794
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
5795
  ac_status=$?
 
5796
  if test -s conftest.err; then
 
5797
    sed '10a\
 
5798
... rest of stderr output deleted ...
 
5799
         10q' conftest.err >conftest.er1
 
5800
    cat conftest.er1 >&5
 
5801
  fi
 
5802
  rm -f conftest.er1 conftest.err
 
5803
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5804
  test $ac_status = 0; }
 
5805
done
 
5806
 
 
5807
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
5808
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
5809
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
5810
  $as_echo_n "(cached) " >&6
 
5811
else
 
5812
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5813
/* end confdefs.h.  */
 
5814
 
 
5815
int
 
5816
main (void)
 
5817
{
 
5818
#ifndef __GNUC__
 
5819
       choke me
 
5820
#endif
 
5821
 
 
5822
  ;
 
5823
  return 0;
 
5824
}
 
5825
_ACEOF
 
5826
if ac_fn_c_try_compile "$LINENO"; then :
 
5827
  ac_compiler_gnu=yes
 
5828
else
 
5829
  ac_compiler_gnu=no
 
5830
fi
 
5831
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5832
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
5833
 
 
5834
fi
 
5835
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
5836
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
5837
if test $ac_compiler_gnu = yes; then
 
5838
  GCC=yes
 
5839
else
 
5840
  GCC=
 
5841
fi
 
5842
ac_test_CFLAGS=${CFLAGS+set}
 
5843
ac_save_CFLAGS=$CFLAGS
 
5844
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
5845
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
5846
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
5847
  $as_echo_n "(cached) " >&6
 
5848
else
 
5849
  ac_save_c_werror_flag=$ac_c_werror_flag
 
5850
   ac_c_werror_flag=yes
 
5851
   ac_cv_prog_cc_g=no
 
5852
   CFLAGS="-g"
 
5853
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5854
/* end confdefs.h.  */
 
5855
 
 
5856
int
 
5857
main (void)
 
5858
{
 
5859
 
 
5860
  ;
 
5861
  return 0;
 
5862
}
 
5863
_ACEOF
 
5864
if ac_fn_c_try_compile "$LINENO"; then :
 
5865
  ac_cv_prog_cc_g=yes
 
5866
else
 
5867
  CFLAGS=""
 
5868
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5869
/* end confdefs.h.  */
 
5870
 
 
5871
int
 
5872
main (void)
 
5873
{
 
5874
 
 
5875
  ;
 
5876
  return 0;
 
5877
}
 
5878
_ACEOF
 
5879
if ac_fn_c_try_compile "$LINENO"; then :
 
5880
 
 
5881
else
 
5882
  ac_c_werror_flag=$ac_save_c_werror_flag
 
5883
         CFLAGS="-g"
 
5884
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5885
/* end confdefs.h.  */
 
5886
 
 
5887
int
 
5888
main (void)
 
5889
{
 
5890
 
 
5891
  ;
 
5892
  return 0;
 
5893
}
 
5894
_ACEOF
 
5895
if ac_fn_c_try_compile "$LINENO"; then :
 
5896
  ac_cv_prog_cc_g=yes
 
5897
fi
 
5898
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5899
fi
 
5900
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5901
fi
 
5902
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5903
   ac_c_werror_flag=$ac_save_c_werror_flag
 
5904
fi
 
5905
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
5906
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
5907
if test "$ac_test_CFLAGS" = set; then
 
5908
  CFLAGS=$ac_save_CFLAGS
 
5909
elif test $ac_cv_prog_cc_g = yes; then
 
5910
  if test "$GCC" = yes; then
 
5911
    CFLAGS="-g -O2"
 
5912
  else
 
5913
    CFLAGS="-g"
 
5914
  fi
 
5915
else
 
5916
  if test "$GCC" = yes; then
 
5917
    CFLAGS="-O2"
 
5918
  else
 
5919
    CFLAGS=
 
5920
  fi
 
5921
fi
 
5922
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
5923
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
5924
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
5925
  $as_echo_n "(cached) " >&6
 
5926
else
 
5927
  ac_cv_prog_cc_c89=no
 
5928
ac_save_CC=$CC
 
5929
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5930
/* end confdefs.h.  */
 
5931
#include <stdarg.h>
 
5932
#include <stdio.h>
 
5933
#include <sys/types.h>
 
5934
#include <sys/stat.h>
 
5935
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
5936
struct buf { int x; };
 
5937
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
5938
static char *e (p, i)
 
5939
     char **p;
 
5940
     int i;
 
5941
{
 
5942
  return p[i];
 
5943
}
 
5944
static char *f (char * (*g) (char **, int), char **p, ...)
 
5945
{
 
5946
  char *s;
 
5947
  va_list v;
 
5948
  va_start (v,p);
 
5949
  s = g (p, va_arg (v,int));
 
5950
  va_end (v);
 
5951
  return s;
 
5952
}
 
5953
 
 
5954
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
5955
   function prototypes and stuff, but not '\xHH' hex character constants.
 
5956
   These don't provoke an error unfortunately, instead are silently treated
 
5957
   as 'x'.  The following induces an error, until -std is added to get
 
5958
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
5959
   array size at least.  It's necessary to write '\x00'==0 to get something
 
5960
   that's true only with -std.  */
 
5961
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
5962
 
 
5963
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
5964
   inside strings and character constants.  */
 
5965
#define FOO(x) 'x'
 
5966
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
5967
 
 
5968
int test (int i, double x);
 
5969
struct s1 {int (*f) (int a);};
 
5970
struct s2 {int (*f) (double a);};
 
5971
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
5972
int argc;
 
5973
char **argv;
 
5974
int
 
5975
main (void)
 
5976
{
 
5977
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
5978
  ;
 
5979
  return 0;
 
5980
}
 
5981
_ACEOF
 
5982
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
5983
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
5984
do
 
5985
  CC="$ac_save_CC $ac_arg"
 
5986
  if ac_fn_c_try_compile "$LINENO"; then :
 
5987
  ac_cv_prog_cc_c89=$ac_arg
 
5988
fi
 
5989
rm -f core conftest.err conftest.$ac_objext
 
5990
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
5991
done
 
5992
rm -f conftest.$ac_ext
 
5993
CC=$ac_save_CC
 
5994
 
 
5995
fi
 
5996
# AC_CACHE_VAL
 
5997
case "x$ac_cv_prog_cc_c89" in
 
5998
  x)
 
5999
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
6000
$as_echo "none needed" >&6; } ;;
 
6001
  xno)
 
6002
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
6003
$as_echo "unsupported" >&6; } ;;
 
6004
  *)
 
6005
    CC="$CC $ac_cv_prog_cc_c89"
 
6006
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
6007
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
6008
esac
 
6009
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
6010
 
 
6011
fi
 
6012
 
 
6013
ac_ext=c
 
6014
ac_cpp='$CPP $CPPFLAGS'
 
6015
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6016
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6017
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6018
 
 
6019
depcc="$CC"   am_compiler_list=
 
6020
 
 
6021
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
6022
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
6023
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
 
6024
  $as_echo_n "(cached) " >&6
 
6025
else
 
6026
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
6027
  # We make a subdir and do the tests there.  Otherwise we can end up
 
6028
  # making bogus files that we don't know about and never remove.  For
 
6029
  # instance it was reported that on HP-UX the gcc test will end up
 
6030
  # making a dummy file named `D' -- because `-MD' means `put the output
 
6031
  # in D'.
 
6032
  mkdir conftest.dir
 
6033
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
6034
  # using a relative directory.
 
6035
  cp "$am_depcomp" conftest.dir
 
6036
  cd conftest.dir
 
6037
  # We will build objects and dependencies in a subdirectory because
 
6038
  # it helps to detect inapplicable dependency modes.  For instance
 
6039
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
6040
  # side effect of compilation, but ICC will put the dependencies in
 
6041
  # the current directory while Tru64 will put them in the object
 
6042
  # directory.
 
6043
  mkdir sub
 
6044
 
 
6045
  am_cv_CC_dependencies_compiler_type=none
 
6046
  if test "$am_compiler_list" = ""; then
 
6047
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
6048
  fi
 
6049
  am__universal=false
 
6050
  case " $depcc " in #(
 
6051
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
6052
     esac
 
6053
 
 
6054
  for depmode in $am_compiler_list; do
 
6055
    # Setup a source with many dependencies, because some compilers
 
6056
    # like to wrap large dependency lists on column 80 (with \), and
 
6057
    # we should not choose a depcomp mode which is confused by this.
 
6058
    #
 
6059
    # We need to recreate these files for each test, as the compiler may
 
6060
    # overwrite some of them when testing with obscure command lines.
 
6061
    # This happens at least with the AIX C compiler.
 
6062
    : > sub/conftest.c
 
6063
    for i in 1 2 3 4 5 6; do
 
6064
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
6065
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
6066
      # Solaris 8's {/usr,}/bin/sh.
 
6067
      touch sub/conftst$i.h
 
6068
    done
 
6069
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
6070
 
 
6071
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
6072
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
6073
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
6074
    # versions had trouble with output in subdirs
 
6075
    am__obj=sub/conftest.${OBJEXT-o}
 
6076
    am__minus_obj="-o $am__obj"
 
6077
    case $depmode in
 
6078
    gcc)
 
6079
      # This depmode causes a compiler race in universal mode.
 
6080
      test "$am__universal" = false || continue
 
6081
      ;;
 
6082
    nosideeffect)
 
6083
      # after this tag, mechanisms are not by side-effect, so they'll
 
6084
      # only be used when explicitly requested
 
6085
      if test "x$enable_dependency_tracking" = xyes; then
 
6086
        continue
 
6087
      else
 
6088
        break
 
6089
      fi
 
6090
      ;;
 
6091
    msvisualcpp | msvcmsys)
 
6092
      # This compiler won't grok `-c -o', but also, the minuso test has
 
6093
      # not run yet.  These depmodes are late enough in the game, and
 
6094
      # so weak that their functioning should not be impacted.
 
6095
      am__obj=conftest.${OBJEXT-o}
 
6096
      am__minus_obj=
 
6097
      ;;
 
6098
    none) break ;;
 
6099
    esac
 
6100
    if depmode=$depmode \
 
6101
       source=sub/conftest.c object=$am__obj \
 
6102
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
6103
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
6104
         >/dev/null 2>conftest.err &&
 
6105
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
6106
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
6107
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
6108
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
6109
      # icc doesn't choke on unknown options, it will just issue warnings
 
6110
      # or remarks (even with -Werror).  So we grep stderr for any message
 
6111
      # that says an option was ignored or not supported.
 
6112
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
6113
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
6114
      # The diagnosis changed in icc 8.0:
 
6115
      #   icc: Command line remark: option '-MP' not supported
 
6116
      if (grep 'ignoring option' conftest.err ||
 
6117
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
6118
        am_cv_CC_dependencies_compiler_type=$depmode
 
6119
        break
 
6120
      fi
 
6121
    fi
 
6122
  done
 
6123
 
 
6124
  cd ..
 
6125
  rm -rf conftest.dir
 
6126
else
 
6127
  am_cv_CC_dependencies_compiler_type=none
 
6128
fi
 
6129
 
 
6130
fi
 
6131
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
6132
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
6133
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
6134
 
 
6135
 if
 
6136
  test "x$enable_dependency_tracking" != xno \
 
6137
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
6138
  am__fastdepCC_TRUE=
 
6139
  am__fastdepCC_FALSE='#'
 
6140
else
 
6141
  am__fastdepCC_TRUE='#'
 
6142
  am__fastdepCC_FALSE=
 
6143
fi
 
6144
 
 
6145
 
 
6146
ac_ext=c
 
6147
ac_cpp='$CPP $CPPFLAGS'
 
6148
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6149
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6150
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6151
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
6152
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
6153
# On Suns, sometimes $CPP names a directory.
 
6154
if test -n "$CPP" && test -d "$CPP"; then
 
6155
  CPP=
 
6156
fi
 
6157
if test -z "$CPP"; then
 
6158
  if test "${ac_cv_prog_CPP+set}" = set; then :
 
6159
  $as_echo_n "(cached) " >&6
 
6160
else
 
6161
      # Double quotes because CPP needs to be expanded
 
6162
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
6163
    do
 
6164
      ac_preproc_ok=false
 
6165
for ac_c_preproc_warn_flag in '' yes
 
6166
do
 
6167
  # Use a header file that comes with gcc, so configuring glibc
 
6168
  # with a fresh cross-compiler works.
 
6169
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6170
  # <limits.h> exists even on freestanding compilers.
 
6171
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6172
  # not just through cpp. "Syntax error" is here to catch this case.
 
6173
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6174
/* end confdefs.h.  */
 
6175
#ifdef __STDC__
 
6176
# include <limits.h>
 
6177
#else
 
6178
# include <assert.h>
 
6179
#endif
 
6180
                     Syntax error
 
6181
_ACEOF
 
6182
if ac_fn_c_try_cpp "$LINENO"; then :
 
6183
 
 
6184
else
 
6185
  # Broken: fails on valid input.
 
6186
continue
 
6187
fi
 
6188
rm -f conftest.err conftest.i conftest.$ac_ext
 
6189
 
 
6190
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6191
  # can be detected and how.
 
6192
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6193
/* end confdefs.h.  */
 
6194
#include <ac_nonexistent.h>
 
6195
_ACEOF
 
6196
if ac_fn_c_try_cpp "$LINENO"; then :
 
6197
  # Broken: success on invalid input.
 
6198
continue
 
6199
else
 
6200
  # Passes both tests.
 
6201
ac_preproc_ok=:
 
6202
break
 
6203
fi
 
6204
rm -f conftest.err conftest.i conftest.$ac_ext
 
6205
 
 
6206
done
 
6207
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6208
rm -f conftest.i conftest.err conftest.$ac_ext
 
6209
if $ac_preproc_ok; then :
 
6210
  break
 
6211
fi
 
6212
 
 
6213
    done
 
6214
    ac_cv_prog_CPP=$CPP
 
6215
 
 
6216
fi
 
6217
  CPP=$ac_cv_prog_CPP
 
6218
else
 
6219
  ac_cv_prog_CPP=$CPP
 
6220
fi
 
6221
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
6222
$as_echo "$CPP" >&6; }
 
6223
ac_preproc_ok=false
 
6224
for ac_c_preproc_warn_flag in '' yes
 
6225
do
 
6226
  # Use a header file that comes with gcc, so configuring glibc
 
6227
  # with a fresh cross-compiler works.
 
6228
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6229
  # <limits.h> exists even on freestanding compilers.
 
6230
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6231
  # not just through cpp. "Syntax error" is here to catch this case.
 
6232
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6233
/* end confdefs.h.  */
 
6234
#ifdef __STDC__
 
6235
# include <limits.h>
 
6236
#else
 
6237
# include <assert.h>
 
6238
#endif
 
6239
                     Syntax error
 
6240
_ACEOF
 
6241
if ac_fn_c_try_cpp "$LINENO"; then :
 
6242
 
 
6243
else
 
6244
  # Broken: fails on valid input.
 
6245
continue
 
6246
fi
 
6247
rm -f conftest.err conftest.i conftest.$ac_ext
 
6248
 
 
6249
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6250
  # can be detected and how.
 
6251
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6252
/* end confdefs.h.  */
 
6253
#include <ac_nonexistent.h>
 
6254
_ACEOF
 
6255
if ac_fn_c_try_cpp "$LINENO"; then :
 
6256
  # Broken: success on invalid input.
 
6257
continue
 
6258
else
 
6259
  # Passes both tests.
 
6260
ac_preproc_ok=:
 
6261
break
 
6262
fi
 
6263
rm -f conftest.err conftest.i conftest.$ac_ext
 
6264
 
 
6265
done
 
6266
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6267
rm -f conftest.i conftest.err conftest.$ac_ext
 
6268
if $ac_preproc_ok; then :
 
6269
 
 
6270
else
 
6271
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
6272
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
6273
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
6274
See \`config.log' for more details" "$LINENO" 5 ; }
 
6275
fi
 
6276
 
 
6277
ac_ext=c
 
6278
ac_cpp='$CPP $CPPFLAGS'
 
6279
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6280
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6281
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6282
 
 
6283
 
 
6284
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
6285
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
6286
if test "${ac_cv_path_GREP+set}" = set; then :
 
6287
  $as_echo_n "(cached) " >&6
 
6288
else
 
6289
  if test -z "$GREP"; then
 
6290
  ac_path_GREP_found=false
 
6291
  # Loop through the user's path and test for each of PROGNAME-LIST
 
6292
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6293
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
6294
do
 
6295
  IFS=$as_save_IFS
 
6296
  test -z "$as_dir" && as_dir=.
 
6297
    for ac_prog in grep ggrep; do
 
6298
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6299
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
6300
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
6301
# Check for GNU ac_path_GREP and select it if it is found.
 
6302
  # Check for GNU $ac_path_GREP
 
6303
case `"$ac_path_GREP" --version 2>&1` in
 
6304
*GNU*)
 
6305
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
6306
*)
 
6307
  ac_count=0
 
6308
  $as_echo_n 0123456789 >"conftest.in"
 
6309
  while :
 
6310
  do
 
6311
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
6312
    mv "conftest.tmp" "conftest.in"
 
6313
    cp "conftest.in" "conftest.nl"
 
6314
    $as_echo 'GREP' >> "conftest.nl"
 
6315
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
6316
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
6317
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
6318
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
6319
      # Best one so far, save it but keep looking for a better one
 
6320
      ac_cv_path_GREP="$ac_path_GREP"
 
6321
      ac_path_GREP_max=$ac_count
 
6322
    fi
 
6323
    # 10*(2^10) chars as input seems more than enough
 
6324
    test $ac_count -gt 10 && break
 
6325
  done
 
6326
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
6327
esac
 
6328
 
 
6329
      $ac_path_GREP_found && break 3
 
6330
    done
 
6331
  done
 
6332
  done
 
6333
IFS=$as_save_IFS
 
6334
  if test -z "$ac_cv_path_GREP"; then
 
6335
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
6336
  fi
 
6337
else
 
6338
  ac_cv_path_GREP=$GREP
 
6339
fi
 
6340
 
 
6341
fi
 
6342
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
6343
$as_echo "$ac_cv_path_GREP" >&6; }
 
6344
 GREP="$ac_cv_path_GREP"
 
6345
 
 
6346
 
 
6347
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
6348
$as_echo_n "checking for egrep... " >&6; }
 
6349
if test "${ac_cv_path_EGREP+set}" = set; then :
 
6350
  $as_echo_n "(cached) " >&6
 
6351
else
 
6352
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
6353
   then ac_cv_path_EGREP="$GREP -E"
 
6354
   else
 
6355
     if test -z "$EGREP"; then
 
6356
  ac_path_EGREP_found=false
 
6357
  # Loop through the user's path and test for each of PROGNAME-LIST
 
6358
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6359
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
6360
do
 
6361
  IFS=$as_save_IFS
 
6362
  test -z "$as_dir" && as_dir=.
 
6363
    for ac_prog in egrep; do
 
6364
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6365
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
6366
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
6367
# Check for GNU ac_path_EGREP and select it if it is found.
 
6368
  # Check for GNU $ac_path_EGREP
 
6369
case `"$ac_path_EGREP" --version 2>&1` in
 
6370
*GNU*)
 
6371
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
6372
*)
 
6373
  ac_count=0
 
6374
  $as_echo_n 0123456789 >"conftest.in"
 
6375
  while :
 
6376
  do
 
6377
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
6378
    mv "conftest.tmp" "conftest.in"
 
6379
    cp "conftest.in" "conftest.nl"
 
6380
    $as_echo 'EGREP' >> "conftest.nl"
 
6381
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
6382
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
6383
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
6384
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
6385
      # Best one so far, save it but keep looking for a better one
 
6386
      ac_cv_path_EGREP="$ac_path_EGREP"
 
6387
      ac_path_EGREP_max=$ac_count
 
6388
    fi
 
6389
    # 10*(2^10) chars as input seems more than enough
 
6390
    test $ac_count -gt 10 && break
 
6391
  done
 
6392
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
6393
esac
 
6394
 
 
6395
      $ac_path_EGREP_found && break 3
 
6396
    done
 
6397
  done
 
6398
  done
 
6399
IFS=$as_save_IFS
 
6400
  if test -z "$ac_cv_path_EGREP"; then
 
6401
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
6402
  fi
 
6403
else
 
6404
  ac_cv_path_EGREP=$EGREP
 
6405
fi
 
6406
 
 
6407
   fi
 
6408
fi
 
6409
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
6410
$as_echo "$ac_cv_path_EGREP" >&6; }
 
6411
 EGREP="$ac_cv_path_EGREP"
 
6412
 
 
6413
 
 
6414
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
6415
$as_echo_n "checking for ANSI C header files... " >&6; }
 
6416
if test "${ac_cv_header_stdc+set}" = set; then :
 
6417
  $as_echo_n "(cached) " >&6
 
6418
else
 
6419
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6420
/* end confdefs.h.  */
 
6421
#include <stdlib.h>
 
6422
#include <stdarg.h>
 
6423
#include <string.h>
 
6424
#include <float.h>
 
6425
 
 
6426
int
 
6427
main (void)
 
6428
{
 
6429
 
 
6430
  ;
 
6431
  return 0;
 
6432
}
 
6433
_ACEOF
 
6434
if ac_fn_c_try_compile "$LINENO"; then :
 
6435
  ac_cv_header_stdc=yes
 
6436
else
 
6437
  ac_cv_header_stdc=no
 
6438
fi
 
6439
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6440
 
 
6441
if test $ac_cv_header_stdc = yes; then
 
6442
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
6443
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6444
/* end confdefs.h.  */
 
6445
#include <string.h>
 
6446
 
 
6447
_ACEOF
 
6448
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6449
  $EGREP "memchr" >/dev/null 2>&1; then :
 
6450
 
 
6451
else
 
6452
  ac_cv_header_stdc=no
 
6453
fi
 
6454
rm -f conftest*
 
6455
 
 
6456
fi
 
6457
 
 
6458
if test $ac_cv_header_stdc = yes; then
 
6459
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
6460
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6461
/* end confdefs.h.  */
 
6462
#include <stdlib.h>
 
6463
 
 
6464
_ACEOF
 
6465
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6466
  $EGREP "free" >/dev/null 2>&1; then :
 
6467
 
 
6468
else
 
6469
  ac_cv_header_stdc=no
 
6470
fi
 
6471
rm -f conftest*
 
6472
 
 
6473
fi
 
6474
 
 
6475
if test $ac_cv_header_stdc = yes; then
 
6476
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
6477
  if test "$cross_compiling" = yes; then :
 
6478
  :
 
6479
else
 
6480
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6481
/* end confdefs.h.  */
 
6482
#include <ctype.h>
 
6483
#include <stdlib.h>
 
6484
#if ((' ' & 0x0FF) == 0x020)
 
6485
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
6486
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
6487
#else
 
6488
# define ISLOWER(c) \
 
6489
                   (('a' <= (c) && (c) <= 'i') \
 
6490
                     || ('j' <= (c) && (c) <= 'r') \
 
6491
                     || ('s' <= (c) && (c) <= 'z'))
 
6492
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
6493
#endif
 
6494
 
 
6495
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
6496
int
 
6497
main ()
 
6498
{
 
6499
  int i;
 
6500
  for (i = 0; i < 256; i++)
 
6501
    if (XOR (islower (i), ISLOWER (i))
 
6502
        || toupper (i) != TOUPPER (i))
 
6503
      return 2;
 
6504
  return 0;
 
6505
}
 
6506
_ACEOF
 
6507
if ac_fn_c_try_run "$LINENO"; then :
 
6508
 
 
6509
else
 
6510
  ac_cv_header_stdc=no
 
6511
fi
 
6512
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
6513
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
6514
fi
 
6515
 
 
6516
fi
 
6517
fi
 
6518
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
6519
$as_echo "$ac_cv_header_stdc" >&6; }
 
6520
if test $ac_cv_header_stdc = yes; then
 
6521
 
 
6522
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
6523
 
 
6524
fi
 
6525
 
 
6526
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
6527
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
6528
                  inttypes.h stdint.h unistd.h
 
6529
do :
 
6530
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6531
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
6532
"
 
6533
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
6534
  cat >>confdefs.h <<_ACEOF
 
6535
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6536
_ACEOF
 
6537
 
 
6538
fi
 
6539
 
 
6540
done
 
6541
 
 
6542
 
 
6543
 
 
6544
 
 
6545
 
 
6546
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
 
6547
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
 
6548
  MINIX=yes
 
6549
else
 
6550
  MINIX=
 
6551
fi
 
6552
 
 
6553
 
 
6554
  if test "$MINIX" = yes; then
 
6555
 
 
6556
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
 
6557
 
 
6558
 
 
6559
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
 
6560
 
 
6561
 
 
6562
$as_echo "#define _MINIX 1" >>confdefs.h
 
6563
 
 
6564
  fi
 
6565
 
 
6566
        case "$host_os" in
 
6567
    hpux*)
 
6568
 
 
6569
$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
 
6570
 
 
6571
      ;;
 
6572
  esac
 
6573
 
 
6574
 
 
6575
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
 
6576
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
 
6577
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
 
6578
  $as_echo_n "(cached) " >&6
 
6579
else
 
6580
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6581
/* end confdefs.h.  */
 
6582
 
 
6583
#         define __EXTENSIONS__ 1
 
6584
          $ac_includes_default
 
6585
int
 
6586
main (void)
 
6587
{
 
6588
 
 
6589
  ;
 
6590
  return 0;
 
6591
}
 
6592
_ACEOF
 
6593
if ac_fn_c_try_compile "$LINENO"; then :
 
6594
  ac_cv_safe_to_define___extensions__=yes
 
6595
else
 
6596
  ac_cv_safe_to_define___extensions__=no
 
6597
fi
 
6598
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6599
fi
 
6600
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
 
6601
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
 
6602
  test $ac_cv_safe_to_define___extensions__ = yes &&
 
6603
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
 
6604
 
 
6605
  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
 
6606
 
 
6607
  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
 
6608
 
 
6609
  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
 
6610
 
 
6611
  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
 
6612
 
 
6613
 
 
6614
 
 
6615
 
 
6616
 
 
6617
 
 
6618
 
 
6619
 
 
6620
 
 
6621
 
 
6622
  # Code from module alloca:
 
6623
  # Code from module alloca-opt:
 
6624
  # Code from module arg-nonnull:
 
6625
  # Code from module argp:
 
6626
  # Code from module btowc:
 
6627
  # Code from module c++defs:
 
6628
  # Code from module configmake:
 
6629
  # Code from module dirname-lgpl:
 
6630
  # Code from module double-slash-root:
 
6631
  # Code from module errno:
 
6632
  # Code from module error:
 
6633
  # Code from module extensions:
 
6634
 
 
6635
  # Code from module float:
 
6636
  # Code from module fnmatch:
 
6637
  # Code from module getdelim:
 
6638
  # Code from module getline:
 
6639
  # Code from module getopt-gnu:
 
6640
  # Code from module getopt-posix:
 
6641
  # Code from module gettext:
 
6642
  # Code from module gettext-h:
 
6643
  # Code from module havelib:
 
6644
  # Code from module include_next:
 
6645
  # Code from module intprops:
 
6646
  # Code from module langinfo:
 
6647
  # Code from module localcharset:
 
6648
  # Code from module malloc-gnu:
 
6649
  # Code from module malloc-posix:
 
6650
  # Code from module mbrtowc:
 
6651
  # Code from module mbsinit:
 
6652
  # Code from module mbsrtowcs:
 
6653
  # Code from module memchr:
 
6654
  # Code from module mempcpy:
 
6655
  # Code from module multiarch:
 
6656
  # Code from module nl_langinfo:
 
6657
  # Code from module progname:
 
6658
  # Code from module rawmemchr:
 
6659
  # Code from module realloc-posix:
 
6660
  # Code from module regex:
 
6661
  # Code from module size_max:
 
6662
  # Code from module sleep:
 
6663
  # Code from module ssize_t:
 
6664
  # Code from module stdbool:
 
6665
  # Code from module stddef:
 
6666
  # Code from module stdint:
 
6667
  # Code from module stdio:
 
6668
  # Code from module stdlib:
 
6669
  # Code from module strcase:
 
6670
  # Code from module strchrnul:
 
6671
  # Code from module streq:
 
6672
  # Code from module strerror:
 
6673
  # Code from module string:
 
6674
  # Code from module strings:
 
6675
  # Code from module strndup:
 
6676
  # Code from module strnlen:
 
6677
  # Code from module strnlen1:
 
6678
  # Code from module sys_wait:
 
6679
  # Code from module sysexits:
 
6680
  # Code from module unistd:
 
6681
  # Code from module vasnprintf:
 
6682
  # Code from module verify:
 
6683
  # Code from module vsnprintf:
 
6684
  # Code from module warn-on-use:
 
6685
  # Code from module wchar:
 
6686
  # Code from module wcrtomb:
 
6687
  # Code from module wctype:
 
6688
  # Code from module xsize:
 
6689
 
 
6690
if test "x$CC" != xcc; then
 
6691
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
 
6692
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
 
6693
else
 
6694
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
 
6695
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
 
6696
fi
 
6697
set dummy $CC; ac_cc=`$as_echo "$2" |
 
6698
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
6699
if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
 
6700
  $as_echo_n "(cached) " >&6
 
6701
else
 
6702
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6703
/* end confdefs.h.  */
 
6704
 
 
6705
int
 
6706
main (void)
 
6707
{
 
6708
 
 
6709
  ;
 
6710
  return 0;
 
6711
}
 
6712
_ACEOF
 
6713
# Make sure it works both with $CC and with simple cc.
 
6714
# We do the test twice because some compilers refuse to overwrite an
 
6715
# existing .o file with -o, though they will create one.
 
6716
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
6717
rm -f conftest2.*
 
6718
if { { case "(($ac_try" in
 
6719
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6720
  *) ac_try_echo=$ac_try;;
 
6721
esac
 
6722
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
6723
$as_echo "$ac_try_echo"; } >&5
 
6724
  (eval "$ac_try") 2>&5
 
6725
  ac_status=$?
 
6726
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6727
  test $ac_status = 0; } &&
 
6728
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
 
6729
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6730
  *) ac_try_echo=$ac_try;;
 
6731
esac
 
6732
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
6733
$as_echo "$ac_try_echo"; } >&5
 
6734
  (eval "$ac_try") 2>&5
 
6735
  ac_status=$?
 
6736
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6737
  test $ac_status = 0; };
 
6738
then
 
6739
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
 
6740
  if test "x$CC" != xcc; then
 
6741
    # Test first that cc exists at all.
 
6742
    if { ac_try='cc -c conftest.$ac_ext >&5'
 
6743
  { { case "(($ac_try" in
 
6744
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6745
  *) ac_try_echo=$ac_try;;
 
6746
esac
 
6747
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
6748
$as_echo "$ac_try_echo"; } >&5
 
6749
  (eval "$ac_try") 2>&5
 
6750
  ac_status=$?
 
6751
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6752
  test $ac_status = 0; }; }; then
 
6753
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
6754
      rm -f conftest2.*
 
6755
      if { { case "(($ac_try" in
 
6756
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6757
  *) ac_try_echo=$ac_try;;
 
6758
esac
 
6759
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
6760
$as_echo "$ac_try_echo"; } >&5
 
6761
  (eval "$ac_try") 2>&5
 
6762
  ac_status=$?
 
6763
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6764
  test $ac_status = 0; } &&
 
6765
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
 
6766
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6767
  *) ac_try_echo=$ac_try;;
 
6768
esac
 
6769
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
6770
$as_echo "$ac_try_echo"; } >&5
 
6771
  (eval "$ac_try") 2>&5
 
6772
  ac_status=$?
 
6773
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6774
  test $ac_status = 0; };
 
6775
      then
 
6776
        # cc works too.
 
6777
        :
 
6778
      else
 
6779
        # cc exists but doesn't like -o.
 
6780
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
6781
      fi
 
6782
    fi
 
6783
  fi
 
6784
else
 
6785
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
6786
fi
 
6787
rm -f core conftest*
 
6788
 
 
6789
fi
 
6790
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
 
6791
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
6792
$as_echo "yes" >&6; }
 
6793
else
 
6794
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6795
$as_echo "no" >&6; }
 
6796
 
 
6797
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
 
6798
 
 
6799
fi
 
6800
 
 
6801
# FIXME: we rely on the cache variable name because
 
6802
# there is no other way.
 
6803
set dummy $CC
 
6804
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
6805
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
 
6806
if test "$am_t" != yes; then
 
6807
   # Losing compiler, so override with the script.
 
6808
   # FIXME: It is wrong to rewrite CC.
 
6809
   # But if we don't then we get into trouble of one sort or another.
 
6810
   # A longer-term fix would be to have automake use am__CC in this case,
 
6811
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
6812
   CC="$am_aux_dir/compile $CC"
 
6813
fi
 
6814
 
 
6815
 
 
6816
# By default we simply use the C compiler to build assembly code.
 
6817
 
 
6818
test "${CCAS+set}" = set || CCAS=$CC
 
6819
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
 
6820
 
 
6821
 
 
6822
 
 
6823
depcc="$CCAS"   am_compiler_list=
 
6824
 
 
6825
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
6826
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
6827
if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
 
6828
  $as_echo_n "(cached) " >&6
 
6829
else
 
6830
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
6831
  # We make a subdir and do the tests there.  Otherwise we can end up
 
6832
  # making bogus files that we don't know about and never remove.  For
 
6833
  # instance it was reported that on HP-UX the gcc test will end up
 
6834
  # making a dummy file named `D' -- because `-MD' means `put the output
 
6835
  # in D'.
 
6836
  mkdir conftest.dir
 
6837
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
6838
  # using a relative directory.
 
6839
  cp "$am_depcomp" conftest.dir
 
6840
  cd conftest.dir
 
6841
  # We will build objects and dependencies in a subdirectory because
 
6842
  # it helps to detect inapplicable dependency modes.  For instance
 
6843
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
6844
  # side effect of compilation, but ICC will put the dependencies in
 
6845
  # the current directory while Tru64 will put them in the object
 
6846
  # directory.
 
6847
  mkdir sub
 
6848
 
 
6849
  am_cv_CCAS_dependencies_compiler_type=none
 
6850
  if test "$am_compiler_list" = ""; then
 
6851
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
6852
  fi
 
6853
  am__universal=false
 
6854
 
 
6855
 
 
6856
  for depmode in $am_compiler_list; do
 
6857
    # Setup a source with many dependencies, because some compilers
 
6858
    # like to wrap large dependency lists on column 80 (with \), and
 
6859
    # we should not choose a depcomp mode which is confused by this.
 
6860
    #
 
6861
    # We need to recreate these files for each test, as the compiler may
 
6862
    # overwrite some of them when testing with obscure command lines.
 
6863
    # This happens at least with the AIX C compiler.
 
6864
    : > sub/conftest.c
 
6865
    for i in 1 2 3 4 5 6; do
 
6866
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
6867
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
6868
      # Solaris 8's {/usr,}/bin/sh.
 
6869
      touch sub/conftst$i.h
 
6870
    done
 
6871
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
6872
 
 
6873
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
6874
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
6875
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
6876
    # versions had trouble with output in subdirs
 
6877
    am__obj=sub/conftest.${OBJEXT-o}
 
6878
    am__minus_obj="-o $am__obj"
 
6879
    case $depmode in
 
6880
    gcc)
 
6881
      # This depmode causes a compiler race in universal mode.
 
6882
      test "$am__universal" = false || continue
 
6883
      ;;
 
6884
    nosideeffect)
 
6885
      # after this tag, mechanisms are not by side-effect, so they'll
 
6886
      # only be used when explicitly requested
 
6887
      if test "x$enable_dependency_tracking" = xyes; then
 
6888
        continue
 
6889
      else
 
6890
        break
 
6891
      fi
 
6892
      ;;
 
6893
    msvisualcpp | msvcmsys)
 
6894
      # This compiler won't grok `-c -o', but also, the minuso test has
 
6895
      # not run yet.  These depmodes are late enough in the game, and
 
6896
      # so weak that their functioning should not be impacted.
 
6897
      am__obj=conftest.${OBJEXT-o}
 
6898
      am__minus_obj=
 
6899
      ;;
 
6900
    none) break ;;
 
6901
    esac
 
6902
    if depmode=$depmode \
 
6903
       source=sub/conftest.c object=$am__obj \
 
6904
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
6905
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
6906
         >/dev/null 2>conftest.err &&
 
6907
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
6908
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
6909
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
6910
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
6911
      # icc doesn't choke on unknown options, it will just issue warnings
 
6912
      # or remarks (even with -Werror).  So we grep stderr for any message
 
6913
      # that says an option was ignored or not supported.
 
6914
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
6915
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
6916
      # The diagnosis changed in icc 8.0:
 
6917
      #   icc: Command line remark: option '-MP' not supported
 
6918
      if (grep 'ignoring option' conftest.err ||
 
6919
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
6920
        am_cv_CCAS_dependencies_compiler_type=$depmode
 
6921
        break
 
6922
      fi
 
6923
    fi
 
6924
  done
 
6925
 
 
6926
  cd ..
 
6927
  rm -rf conftest.dir
 
6928
else
 
6929
  am_cv_CCAS_dependencies_compiler_type=none
 
6930
fi
 
6931
 
 
6932
fi
 
6933
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
 
6934
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
 
6935
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
 
6936
 
 
6937
 if
 
6938
  test "x$enable_dependency_tracking" != xno \
 
6939
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
 
6940
  am__fastdepCCAS_TRUE=
 
6941
  am__fastdepCCAS_FALSE='#'
 
6942
else
 
6943
  am__fastdepCCAS_TRUE='#'
 
6944
  am__fastdepCCAS_FALSE=
 
6945
fi
 
6946
 
 
6947
 
 
6948
 
 
6949
# Must be GCC.
 
6950
test "x$GCC" = xyes || as_fn_error $? "GCC is required" "$LINENO" 5
 
6951
 
 
6952
 
 
6953
 
 
6954
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
 
6955
$as_echo_n "checking whether NLS is requested... " >&6; }
 
6956
    # Check whether --enable-nls was given.
 
6957
if test "${enable_nls+set}" = set; then :
 
6958
  enableval=$enable_nls; USE_NLS=$enableval
 
6959
else
 
6960
  USE_NLS=yes
 
6961
fi
 
6962
 
 
6963
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
 
6964
$as_echo "$USE_NLS" >&6; }
 
6965
 
 
6966
 
 
6967
 
 
6968
 
 
6969
      GETTEXT_MACRO_VERSION=0.18
 
6970
 
 
6971
 
 
6972
 
 
6973
 
 
6974
# Prepare PATH_SEPARATOR.
 
6975
# The user is always right.
 
6976
if test "${PATH_SEPARATOR+set}" != set; then
 
6977
  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
 
6978
  # contains only /bin. Note that ksh looks also at the FPATH variable,
 
6979
  # so we have to set that as well for the test.
 
6980
  PATH_SEPARATOR=:
 
6981
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
 
6982
    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
 
6983
           || PATH_SEPARATOR=';'
 
6984
       }
 
6985
fi
 
6986
 
 
6987
# Find out how to test for executable files. Don't use a zero-byte file,
 
6988
# as systems may use methods other than mode bits to determine executability.
 
6989
cat >conf$$.file <<_ASEOF
 
6990
#! /bin/sh
 
6991
exit 0
 
6992
_ASEOF
 
6993
chmod +x conf$$.file
 
6994
if test -x conf$$.file >/dev/null 2>&1; then
 
6995
  ac_executable_p="test -x"
 
6996
else
 
6997
  ac_executable_p="test -f"
 
6998
fi
 
6999
rm -f conf$$.file
 
7000
 
 
7001
# Extract the first word of "msgfmt", so it can be a program name with args.
 
7002
set dummy msgfmt; ac_word=$2
 
7003
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7004
$as_echo_n "checking for $ac_word... " >&6; }
 
7005
if test "${ac_cv_path_MSGFMT+set}" = set; then :
 
7006
  $as_echo_n "(cached) " >&6
 
7007
else
 
7008
  case "$MSGFMT" in
 
7009
  [\\/]* | ?:[\\/]*)
 
7010
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
7011
    ;;
 
7012
  *)
 
7013
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
7014
    for ac_dir in $PATH; do
 
7015
      IFS="$ac_save_IFS"
 
7016
      test -z "$ac_dir" && ac_dir=.
 
7017
      for ac_exec_ext in '' $ac_executable_extensions; do
 
7018
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
7019
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
 
7020
          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
 
7021
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
7022
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
 
7023
            break 2
 
7024
          fi
 
7025
        fi
 
7026
      done
 
7027
    done
 
7028
    IFS="$ac_save_IFS"
 
7029
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
 
7030
    ;;
 
7031
esac
 
7032
fi
 
7033
MSGFMT="$ac_cv_path_MSGFMT"
 
7034
if test "$MSGFMT" != ":"; then
 
7035
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
 
7036
$as_echo "$MSGFMT" >&6; }
 
7037
else
 
7038
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7039
$as_echo "no" >&6; }
 
7040
fi
 
7041
 
 
7042
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
7043
set dummy gmsgfmt; ac_word=$2
 
7044
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7045
$as_echo_n "checking for $ac_word... " >&6; }
 
7046
if test "${ac_cv_path_GMSGFMT+set}" = set; then :
 
7047
  $as_echo_n "(cached) " >&6
 
7048
else
 
7049
  case $GMSGFMT in
 
7050
  [\\/]* | ?:[\\/]*)
 
7051
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
7052
  ;;
 
7053
  *)
 
7054
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7055
for as_dir in $PATH
 
7056
do
 
7057
  IFS=$as_save_IFS
 
7058
  test -z "$as_dir" && as_dir=.
 
7059
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7060
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7061
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
7062
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7063
    break 2
 
7064
  fi
 
7065
done
 
7066
  done
 
7067
IFS=$as_save_IFS
 
7068
 
 
7069
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
7070
  ;;
 
7071
esac
 
7072
fi
 
7073
GMSGFMT=$ac_cv_path_GMSGFMT
 
7074
if test -n "$GMSGFMT"; then
 
7075
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
 
7076
$as_echo "$GMSGFMT" >&6; }
 
7077
else
 
7078
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7079
$as_echo "no" >&6; }
 
7080
fi
 
7081
 
 
7082
 
 
7083
 
 
7084
    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
7085
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
 
7086
    *) MSGFMT_015=$MSGFMT ;;
 
7087
  esac
 
7088
 
 
7089
  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
7090
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
 
7091
    *) GMSGFMT_015=$GMSGFMT ;;
 
7092
  esac
 
7093
 
 
7094
 
 
7095
 
 
7096
# Prepare PATH_SEPARATOR.
 
7097
# The user is always right.
 
7098
if test "${PATH_SEPARATOR+set}" != set; then
 
7099
  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
 
7100
  # contains only /bin. Note that ksh looks also at the FPATH variable,
 
7101
  # so we have to set that as well for the test.
 
7102
  PATH_SEPARATOR=:
 
7103
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
 
7104
    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
 
7105
           || PATH_SEPARATOR=';'
 
7106
       }
 
7107
fi
 
7108
 
 
7109
# Find out how to test for executable files. Don't use a zero-byte file,
 
7110
# as systems may use methods other than mode bits to determine executability.
 
7111
cat >conf$$.file <<_ASEOF
 
7112
#! /bin/sh
 
7113
exit 0
 
7114
_ASEOF
 
7115
chmod +x conf$$.file
 
7116
if test -x conf$$.file >/dev/null 2>&1; then
 
7117
  ac_executable_p="test -x"
 
7118
else
 
7119
  ac_executable_p="test -f"
 
7120
fi
 
7121
rm -f conf$$.file
 
7122
 
 
7123
# Extract the first word of "xgettext", so it can be a program name with args.
 
7124
set dummy xgettext; ac_word=$2
 
7125
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7126
$as_echo_n "checking for $ac_word... " >&6; }
 
7127
if test "${ac_cv_path_XGETTEXT+set}" = set; then :
 
7128
  $as_echo_n "(cached) " >&6
 
7129
else
 
7130
  case "$XGETTEXT" in
 
7131
  [\\/]* | ?:[\\/]*)
 
7132
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
7133
    ;;
 
7134
  *)
 
7135
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
7136
    for ac_dir in $PATH; do
 
7137
      IFS="$ac_save_IFS"
 
7138
      test -z "$ac_dir" && ac_dir=.
 
7139
      for ac_exec_ext in '' $ac_executable_extensions; do
 
7140
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
7141
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
 
7142
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
 
7143
     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
7144
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
 
7145
            break 2
 
7146
          fi
 
7147
        fi
 
7148
      done
 
7149
    done
 
7150
    IFS="$ac_save_IFS"
 
7151
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
7152
    ;;
 
7153
esac
 
7154
fi
 
7155
XGETTEXT="$ac_cv_path_XGETTEXT"
 
7156
if test "$XGETTEXT" != ":"; then
 
7157
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
 
7158
$as_echo "$XGETTEXT" >&6; }
 
7159
else
 
7160
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7161
$as_echo "no" >&6; }
 
7162
fi
 
7163
 
 
7164
    rm -f messages.po
 
7165
 
 
7166
    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
7167
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
 
7168
    *) XGETTEXT_015=$XGETTEXT ;;
 
7169
  esac
 
7170
 
 
7171
 
 
7172
 
 
7173
# Prepare PATH_SEPARATOR.
 
7174
# The user is always right.
 
7175
if test "${PATH_SEPARATOR+set}" != set; then
 
7176
  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
 
7177
  # contains only /bin. Note that ksh looks also at the FPATH variable,
 
7178
  # so we have to set that as well for the test.
 
7179
  PATH_SEPARATOR=:
 
7180
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
 
7181
    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
 
7182
           || PATH_SEPARATOR=';'
 
7183
       }
 
7184
fi
 
7185
 
 
7186
# Find out how to test for executable files. Don't use a zero-byte file,
 
7187
# as systems may use methods other than mode bits to determine executability.
 
7188
cat >conf$$.file <<_ASEOF
 
7189
#! /bin/sh
 
7190
exit 0
 
7191
_ASEOF
 
7192
chmod +x conf$$.file
 
7193
if test -x conf$$.file >/dev/null 2>&1; then
 
7194
  ac_executable_p="test -x"
 
7195
else
 
7196
  ac_executable_p="test -f"
 
7197
fi
 
7198
rm -f conf$$.file
 
7199
 
 
7200
# Extract the first word of "msgmerge", so it can be a program name with args.
 
7201
set dummy msgmerge; ac_word=$2
 
7202
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7203
$as_echo_n "checking for $ac_word... " >&6; }
 
7204
if test "${ac_cv_path_MSGMERGE+set}" = set; then :
 
7205
  $as_echo_n "(cached) " >&6
 
7206
else
 
7207
  case "$MSGMERGE" in
 
7208
  [\\/]* | ?:[\\/]*)
 
7209
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
 
7210
    ;;
 
7211
  *)
 
7212
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
7213
    for ac_dir in $PATH; do
 
7214
      IFS="$ac_save_IFS"
 
7215
      test -z "$ac_dir" && ac_dir=.
 
7216
      for ac_exec_ext in '' $ac_executable_extensions; do
 
7217
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
7218
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
 
7219
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
 
7220
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
 
7221
            break 2
 
7222
          fi
 
7223
        fi
 
7224
      done
 
7225
    done
 
7226
    IFS="$ac_save_IFS"
 
7227
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
 
7228
    ;;
 
7229
esac
 
7230
fi
 
7231
MSGMERGE="$ac_cv_path_MSGMERGE"
 
7232
if test "$MSGMERGE" != ":"; then
 
7233
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
 
7234
$as_echo "$MSGMERGE" >&6; }
 
7235
else
 
7236
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7237
$as_echo "no" >&6; }
 
7238
fi
 
7239
 
 
7240
 
 
7241
        test -n "$localedir" || localedir='${datadir}/locale'
 
7242
 
 
7243
 
 
7244
    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
 
7245
 
 
7246
 
 
7247
  ac_config_commands="$ac_config_commands po-directories"
 
7248
 
 
7249
 
 
7250
 
 
7251
      if test "X$prefix" = "XNONE"; then
 
7252
    acl_final_prefix="$ac_default_prefix"
 
7253
  else
 
7254
    acl_final_prefix="$prefix"
 
7255
  fi
 
7256
  if test "X$exec_prefix" = "XNONE"; then
 
7257
    acl_final_exec_prefix='${prefix}'
 
7258
  else
 
7259
    acl_final_exec_prefix="$exec_prefix"
 
7260
  fi
 
7261
  acl_save_prefix="$prefix"
 
7262
  prefix="$acl_final_prefix"
 
7263
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
 
7264
  prefix="$acl_save_prefix"
 
7265
 
 
7266
 
 
7267
# Check whether --with-gnu-ld was given.
 
7268
if test "${with_gnu_ld+set}" = set; then :
 
7269
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
7270
else
 
7271
  with_gnu_ld=no
 
7272
fi
 
7273
 
 
7274
# Prepare PATH_SEPARATOR.
 
7275
# The user is always right.
 
7276
if test "${PATH_SEPARATOR+set}" != set; then
 
7277
  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
 
7278
  # contains only /bin. Note that ksh looks also at the FPATH variable,
 
7279
  # so we have to set that as well for the test.
 
7280
  PATH_SEPARATOR=:
 
7281
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
 
7282
    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
 
7283
           || PATH_SEPARATOR=';'
 
7284
       }
 
7285
fi
 
7286
ac_prog=ld
 
7287
if test "$GCC" = yes; then
 
7288
  # Check if gcc -print-prog-name=ld gives a path.
 
7289
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
 
7290
$as_echo_n "checking for ld used by GCC... " >&6; }
 
7291
  case $host in
 
7292
  *-*-mingw*)
 
7293
    # gcc leaves a trailing carriage return which upsets mingw
 
7294
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
7295
  *)
 
7296
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
7297
  esac
 
7298
  case $ac_prog in
 
7299
    # Accept absolute paths.
 
7300
    [\\/]* | [A-Za-z]:[\\/]*)
 
7301
      re_direlt='/[^/][^/]*/\.\./'
 
7302
      # Canonicalize the path of ld
 
7303
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
7304
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
7305
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
7306
      done
 
7307
      test -z "$LD" && LD="$ac_prog"
 
7308
      ;;
 
7309
  "")
 
7310
    # If it fails, then pretend we aren't using GCC.
 
7311
    ac_prog=ld
 
7312
    ;;
 
7313
  *)
 
7314
    # If it is relative, then search for the first ld in PATH.
 
7315
    with_gnu_ld=unknown
 
7316
    ;;
 
7317
  esac
 
7318
elif test "$with_gnu_ld" = yes; then
 
7319
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
7320
$as_echo_n "checking for GNU ld... " >&6; }
 
7321
else
 
7322
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
7323
$as_echo_n "checking for non-GNU ld... " >&6; }
 
7324
fi
 
7325
if test "${acl_cv_path_LD+set}" = set; then :
 
7326
  $as_echo_n "(cached) " >&6
 
7327
else
 
7328
  if test -z "$LD"; then
 
7329
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
7330
  for ac_dir in $PATH; do
 
7331
    test -z "$ac_dir" && ac_dir=.
 
7332
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
7333
      acl_cv_path_LD="$ac_dir/$ac_prog"
 
7334
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
7335
      # but apparently some GNU ld's only accept -v.
 
7336
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
7337
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
 
7338
      *GNU* | *'with BFD'*)
 
7339
        test "$with_gnu_ld" != no && break ;;
 
7340
      *)
 
7341
        test "$with_gnu_ld" != yes && break ;;
 
7342
      esac
 
7343
    fi
 
7344
  done
 
7345
  IFS="$ac_save_ifs"
 
7346
else
 
7347
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
 
7348
fi
 
7349
fi
 
7350
 
 
7351
LD="$acl_cv_path_LD"
 
7352
if test -n "$LD"; then
 
7353
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
7354
$as_echo "$LD" >&6; }
 
7355
else
 
7356
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7357
$as_echo "no" >&6; }
 
7358
fi
 
7359
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
7360
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
7361
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
7362
if test "${acl_cv_prog_gnu_ld+set}" = set; then :
 
7363
  $as_echo_n "(cached) " >&6
 
7364
else
 
7365
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
7366
case `$LD -v 2>&1 </dev/null` in
 
7367
*GNU* | *'with BFD'*)
 
7368
  acl_cv_prog_gnu_ld=yes ;;
 
7369
*)
 
7370
  acl_cv_prog_gnu_ld=no ;;
 
7371
esac
 
7372
fi
 
7373
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
 
7374
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
 
7375
with_gnu_ld=$acl_cv_prog_gnu_ld
 
7376
 
 
7377
 
 
7378
 
 
7379
 
 
7380
                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
 
7381
$as_echo_n "checking for shared library run path origin... " >&6; }
 
7382
if test "${acl_cv_rpath+set}" = set; then :
 
7383
  $as_echo_n "(cached) " >&6
 
7384
else
 
7385
 
 
7386
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
 
7387
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
 
7388
    . ./conftest.sh
 
7389
    rm -f ./conftest.sh
 
7390
    acl_cv_rpath=done
 
7391
 
 
7392
fi
 
7393
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
 
7394
$as_echo "$acl_cv_rpath" >&6; }
 
7395
  wl="$acl_cv_wl"
 
7396
  acl_libext="$acl_cv_libext"
 
7397
  acl_shlibext="$acl_cv_shlibext"
 
7398
  acl_libname_spec="$acl_cv_libname_spec"
 
7399
  acl_library_names_spec="$acl_cv_library_names_spec"
 
7400
  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 
7401
  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 
7402
  acl_hardcode_direct="$acl_cv_hardcode_direct"
 
7403
  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
 
7404
    # Check whether --enable-rpath was given.
 
7405
if test "${enable_rpath+set}" = set; then :
 
7406
  enableval=$enable_rpath; :
 
7407
else
 
7408
  enable_rpath=yes
 
7409
fi
 
7410
 
 
7411
 
 
7412
 
 
7413
 
 
7414
  acl_libdirstem=lib
 
7415
  acl_libdirstem2=
 
7416
  case "$host_os" in
 
7417
    solaris*)
 
7418
                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
 
7419
$as_echo_n "checking for 64-bit host... " >&6; }
 
7420
if test "${gl_cv_solaris_64bit+set}" = set; then :
 
7421
  $as_echo_n "(cached) " >&6
 
7422
else
 
7423
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7424
/* end confdefs.h.  */
 
7425
 
 
7426
#ifdef _LP64
 
7427
sixtyfour bits
 
7428
#endif
 
7429
 
 
7430
_ACEOF
 
7431
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7432
  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
 
7433
  gl_cv_solaris_64bit=yes
 
7434
else
 
7435
  gl_cv_solaris_64bit=no
 
7436
fi
 
7437
rm -f conftest*
 
7438
 
 
7439
 
 
7440
fi
 
7441
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
 
7442
$as_echo "$gl_cv_solaris_64bit" >&6; }
 
7443
      if test $gl_cv_solaris_64bit = yes; then
 
7444
        acl_libdirstem=lib/64
 
7445
        case "$host_cpu" in
 
7446
          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
 
7447
          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
 
7448
        esac
 
7449
      fi
 
7450
      ;;
 
7451
    *)
 
7452
      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
 
7453
      if test -n "$searchpath"; then
 
7454
        acl_save_IFS="${IFS=    }"; IFS=":"
 
7455
        for searchdir in $searchpath; do
 
7456
          if test -d "$searchdir"; then
 
7457
            case "$searchdir" in
 
7458
              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
 
7459
              */../ | */.. )
 
7460
                # Better ignore directories of this form. They are misleading.
 
7461
                ;;
 
7462
              *) searchdir=`cd "$searchdir" && pwd`
 
7463
                 case "$searchdir" in
 
7464
                   */lib64 ) acl_libdirstem=lib64 ;;
 
7465
                 esac ;;
 
7466
            esac
 
7467
          fi
 
7468
        done
 
7469
        IFS="$acl_save_IFS"
 
7470
      fi
 
7471
      ;;
 
7472
  esac
 
7473
  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
 
7474
 
 
7475
 
 
7476
 
 
7477
 
 
7478
 
 
7479
 
 
7480
 
 
7481
 
 
7482
 
 
7483
 
 
7484
 
 
7485
 
 
7486
    use_additional=yes
 
7487
 
 
7488
  acl_save_prefix="$prefix"
 
7489
  prefix="$acl_final_prefix"
 
7490
  acl_save_exec_prefix="$exec_prefix"
 
7491
  exec_prefix="$acl_final_exec_prefix"
 
7492
 
 
7493
    eval additional_includedir=\"$includedir\"
 
7494
    eval additional_libdir=\"$libdir\"
 
7495
 
 
7496
  exec_prefix="$acl_save_exec_prefix"
 
7497
  prefix="$acl_save_prefix"
 
7498
 
 
7499
 
 
7500
# Check whether --with-libiconv-prefix was given.
 
7501
if test "${with_libiconv_prefix+set}" = set; then :
 
7502
  withval=$with_libiconv_prefix;
 
7503
    if test "X$withval" = "Xno"; then
 
7504
      use_additional=no
 
7505
    else
 
7506
      if test "X$withval" = "X"; then
 
7507
 
 
7508
  acl_save_prefix="$prefix"
 
7509
  prefix="$acl_final_prefix"
 
7510
  acl_save_exec_prefix="$exec_prefix"
 
7511
  exec_prefix="$acl_final_exec_prefix"
 
7512
 
 
7513
          eval additional_includedir=\"$includedir\"
 
7514
          eval additional_libdir=\"$libdir\"
 
7515
 
 
7516
  exec_prefix="$acl_save_exec_prefix"
 
7517
  prefix="$acl_save_prefix"
 
7518
 
 
7519
      else
 
7520
        additional_includedir="$withval/include"
 
7521
        additional_libdir="$withval/$acl_libdirstem"
 
7522
        if test "$acl_libdirstem2" != "$acl_libdirstem" \
 
7523
           && ! test -d "$withval/$acl_libdirstem"; then
 
7524
          additional_libdir="$withval/$acl_libdirstem2"
 
7525
        fi
 
7526
      fi
 
7527
    fi
 
7528
 
 
7529
fi
 
7530
 
 
7531
      LIBICONV=
 
7532
  LTLIBICONV=
 
7533
  INCICONV=
 
7534
  LIBICONV_PREFIX=
 
7535
      HAVE_LIBICONV=
 
7536
  rpathdirs=
 
7537
  ltrpathdirs=
 
7538
  names_already_handled=
 
7539
  names_next_round='iconv '
 
7540
  while test -n "$names_next_round"; do
 
7541
    names_this_round="$names_next_round"
 
7542
    names_next_round=
 
7543
    for name in $names_this_round; do
 
7544
      already_handled=
 
7545
      for n in $names_already_handled; do
 
7546
        if test "$n" = "$name"; then
 
7547
          already_handled=yes
 
7548
          break
 
7549
        fi
 
7550
      done
 
7551
      if test -z "$already_handled"; then
 
7552
        names_already_handled="$names_already_handled $name"
 
7553
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
 
7554
        eval value=\"\$HAVE_LIB$uppername\"
 
7555
        if test -n "$value"; then
 
7556
          if test "$value" = yes; then
 
7557
            eval value=\"\$LIB$uppername\"
 
7558
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
 
7559
            eval value=\"\$LTLIB$uppername\"
 
7560
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
 
7561
          else
 
7562
                                    :
 
7563
          fi
 
7564
        else
 
7565
                              found_dir=
 
7566
          found_la=
 
7567
          found_so=
 
7568
          found_a=
 
7569
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
7570
          if test -n "$acl_shlibext"; then
 
7571
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
7572
          else
 
7573
            shrext=
 
7574
          fi
 
7575
          if test $use_additional = yes; then
 
7576
            dir="$additional_libdir"
 
7577
                                    if test -n "$acl_shlibext"; then
 
7578
              if test -f "$dir/$libname$shrext"; then
 
7579
                found_dir="$dir"
 
7580
                found_so="$dir/$libname$shrext"
 
7581
              else
 
7582
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
7583
                  ver=`(cd "$dir" && \
 
7584
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
7585
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
7586
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
7587
                        | sed 1q ) 2>/dev/null`
 
7588
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
7589
                    found_dir="$dir"
 
7590
                    found_so="$dir/$libname$shrext.$ver"
 
7591
                  fi
 
7592
                else
 
7593
                  eval library_names=\"$acl_library_names_spec\"
 
7594
                  for f in $library_names; do
 
7595
                    if test -f "$dir/$f"; then
 
7596
                      found_dir="$dir"
 
7597
                      found_so="$dir/$f"
 
7598
                      break
 
7599
                    fi
 
7600
                  done
 
7601
                fi
 
7602
              fi
 
7603
            fi
 
7604
                        if test "X$found_dir" = "X"; then
 
7605
              if test -f "$dir/$libname.$acl_libext"; then
 
7606
                found_dir="$dir"
 
7607
                found_a="$dir/$libname.$acl_libext"
 
7608
              fi
 
7609
            fi
 
7610
            if test "X$found_dir" != "X"; then
 
7611
              if test -f "$dir/$libname.la"; then
 
7612
                found_la="$dir/$libname.la"
 
7613
              fi
 
7614
            fi
 
7615
          fi
 
7616
          if test "X$found_dir" = "X"; then
 
7617
            for x in $LDFLAGS $LTLIBICONV; do
 
7618
 
 
7619
  acl_save_prefix="$prefix"
 
7620
  prefix="$acl_final_prefix"
 
7621
  acl_save_exec_prefix="$exec_prefix"
 
7622
  exec_prefix="$acl_final_exec_prefix"
 
7623
  eval x=\"$x\"
 
7624
  exec_prefix="$acl_save_exec_prefix"
 
7625
  prefix="$acl_save_prefix"
 
7626
 
 
7627
              case "$x" in
 
7628
                -L*)
 
7629
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
7630
                                    if test -n "$acl_shlibext"; then
 
7631
                    if test -f "$dir/$libname$shrext"; then
 
7632
                      found_dir="$dir"
 
7633
                      found_so="$dir/$libname$shrext"
 
7634
                    else
 
7635
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
7636
                        ver=`(cd "$dir" && \
 
7637
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
7638
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
7639
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
7640
                              | sed 1q ) 2>/dev/null`
 
7641
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
7642
                          found_dir="$dir"
 
7643
                          found_so="$dir/$libname$shrext.$ver"
 
7644
                        fi
 
7645
                      else
 
7646
                        eval library_names=\"$acl_library_names_spec\"
 
7647
                        for f in $library_names; do
 
7648
                          if test -f "$dir/$f"; then
 
7649
                            found_dir="$dir"
 
7650
                            found_so="$dir/$f"
 
7651
                            break
 
7652
                          fi
 
7653
                        done
 
7654
                      fi
 
7655
                    fi
 
7656
                  fi
 
7657
                                    if test "X$found_dir" = "X"; then
 
7658
                    if test -f "$dir/$libname.$acl_libext"; then
 
7659
                      found_dir="$dir"
 
7660
                      found_a="$dir/$libname.$acl_libext"
 
7661
                    fi
 
7662
                  fi
 
7663
                  if test "X$found_dir" != "X"; then
 
7664
                    if test -f "$dir/$libname.la"; then
 
7665
                      found_la="$dir/$libname.la"
 
7666
                    fi
 
7667
                  fi
 
7668
                  ;;
 
7669
              esac
 
7670
              if test "X$found_dir" != "X"; then
 
7671
                break
 
7672
              fi
 
7673
            done
 
7674
          fi
 
7675
          if test "X$found_dir" != "X"; then
 
7676
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
 
7677
            if test "X$found_so" != "X"; then
 
7678
                                                        if test "$enable_rpath" = no \
 
7679
                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
 
7680
                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
 
7681
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
7682
              else
 
7683
                                                                                haveit=
 
7684
                for x in $ltrpathdirs; do
 
7685
                  if test "X$x" = "X$found_dir"; then
 
7686
                    haveit=yes
 
7687
                    break
 
7688
                  fi
 
7689
                done
 
7690
                if test -z "$haveit"; then
 
7691
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
7692
                fi
 
7693
                                if test "$acl_hardcode_direct" = yes; then
 
7694
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
7695
                else
 
7696
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 
7697
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
7698
                                                            haveit=
 
7699
                    for x in $rpathdirs; do
 
7700
                      if test "X$x" = "X$found_dir"; then
 
7701
                        haveit=yes
 
7702
                        break
 
7703
                      fi
 
7704
                    done
 
7705
                    if test -z "$haveit"; then
 
7706
                      rpathdirs="$rpathdirs $found_dir"
 
7707
                    fi
 
7708
                  else
 
7709
                                                                                haveit=
 
7710
                    for x in $LDFLAGS $LIBICONV; do
 
7711
 
 
7712
  acl_save_prefix="$prefix"
 
7713
  prefix="$acl_final_prefix"
 
7714
  acl_save_exec_prefix="$exec_prefix"
 
7715
  exec_prefix="$acl_final_exec_prefix"
 
7716
  eval x=\"$x\"
 
7717
  exec_prefix="$acl_save_exec_prefix"
 
7718
  prefix="$acl_save_prefix"
 
7719
 
 
7720
                      if test "X$x" = "X-L$found_dir"; then
 
7721
                        haveit=yes
 
7722
                        break
 
7723
                      fi
 
7724
                    done
 
7725
                    if test -z "$haveit"; then
 
7726
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
 
7727
                    fi
 
7728
                    if test "$acl_hardcode_minus_L" != no; then
 
7729
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
7730
                    else
 
7731
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
7732
                    fi
 
7733
                  fi
 
7734
                fi
 
7735
              fi
 
7736
            else
 
7737
              if test "X$found_a" != "X"; then
 
7738
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
 
7739
              else
 
7740
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
 
7741
              fi
 
7742
            fi
 
7743
                        additional_includedir=
 
7744
            case "$found_dir" in
 
7745
              */$acl_libdirstem | */$acl_libdirstem/)
 
7746
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
7747
                if test "$name" = 'iconv'; then
 
7748
                  LIBICONV_PREFIX="$basedir"
 
7749
                fi
 
7750
                additional_includedir="$basedir/include"
 
7751
                ;;
 
7752
              */$acl_libdirstem2 | */$acl_libdirstem2/)
 
7753
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
 
7754
                if test "$name" = 'iconv'; then
 
7755
                  LIBICONV_PREFIX="$basedir"
 
7756
                fi
 
7757
                additional_includedir="$basedir/include"
 
7758
                ;;
 
7759
            esac
 
7760
            if test "X$additional_includedir" != "X"; then
 
7761
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
7762
                haveit=
 
7763
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
7764
                  if test -n "$GCC"; then
 
7765
                    case $host_os in
 
7766
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
7767
                    esac
 
7768
                  fi
 
7769
                fi
 
7770
                if test -z "$haveit"; then
 
7771
                  for x in $CPPFLAGS $INCICONV; do
 
7772
 
 
7773
  acl_save_prefix="$prefix"
 
7774
  prefix="$acl_final_prefix"
 
7775
  acl_save_exec_prefix="$exec_prefix"
 
7776
  exec_prefix="$acl_final_exec_prefix"
 
7777
  eval x=\"$x\"
 
7778
  exec_prefix="$acl_save_exec_prefix"
 
7779
  prefix="$acl_save_prefix"
 
7780
 
 
7781
                    if test "X$x" = "X-I$additional_includedir"; then
 
7782
                      haveit=yes
 
7783
                      break
 
7784
                    fi
 
7785
                  done
 
7786
                  if test -z "$haveit"; then
 
7787
                    if test -d "$additional_includedir"; then
 
7788
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
 
7789
                    fi
 
7790
                  fi
 
7791
                fi
 
7792
              fi
 
7793
            fi
 
7794
                        if test -n "$found_la"; then
 
7795
                                                        save_libdir="$libdir"
 
7796
              case "$found_la" in
 
7797
                */* | *\\*) . "$found_la" ;;
 
7798
                *) . "./$found_la" ;;
 
7799
              esac
 
7800
              libdir="$save_libdir"
 
7801
                            for dep in $dependency_libs; do
 
7802
                case "$dep" in
 
7803
                  -L*)
 
7804
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
7805
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
 
7806
                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
 
7807
                      haveit=
 
7808
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
 
7809
                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
 
7810
                        if test -n "$GCC"; then
 
7811
                          case $host_os in
 
7812
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
7813
                          esac
 
7814
                        fi
 
7815
                      fi
 
7816
                      if test -z "$haveit"; then
 
7817
                        haveit=
 
7818
                        for x in $LDFLAGS $LIBICONV; do
 
7819
 
 
7820
  acl_save_prefix="$prefix"
 
7821
  prefix="$acl_final_prefix"
 
7822
  acl_save_exec_prefix="$exec_prefix"
 
7823
  exec_prefix="$acl_final_exec_prefix"
 
7824
  eval x=\"$x\"
 
7825
  exec_prefix="$acl_save_exec_prefix"
 
7826
  prefix="$acl_save_prefix"
 
7827
 
 
7828
                          if test "X$x" = "X-L$additional_libdir"; then
 
7829
                            haveit=yes
 
7830
                            break
 
7831
                          fi
 
7832
                        done
 
7833
                        if test -z "$haveit"; then
 
7834
                          if test -d "$additional_libdir"; then
 
7835
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
 
7836
                          fi
 
7837
                        fi
 
7838
                        haveit=
 
7839
                        for x in $LDFLAGS $LTLIBICONV; do
 
7840
 
 
7841
  acl_save_prefix="$prefix"
 
7842
  prefix="$acl_final_prefix"
 
7843
  acl_save_exec_prefix="$exec_prefix"
 
7844
  exec_prefix="$acl_final_exec_prefix"
 
7845
  eval x=\"$x\"
 
7846
  exec_prefix="$acl_save_exec_prefix"
 
7847
  prefix="$acl_save_prefix"
 
7848
 
 
7849
                          if test "X$x" = "X-L$additional_libdir"; then
 
7850
                            haveit=yes
 
7851
                            break
 
7852
                          fi
 
7853
                        done
 
7854
                        if test -z "$haveit"; then
 
7855
                          if test -d "$additional_libdir"; then
 
7856
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
 
7857
                          fi
 
7858
                        fi
 
7859
                      fi
 
7860
                    fi
 
7861
                    ;;
 
7862
                  -R*)
 
7863
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
7864
                    if test "$enable_rpath" != no; then
 
7865
                                                                  haveit=
 
7866
                      for x in $rpathdirs; do
 
7867
                        if test "X$x" = "X$dir"; then
 
7868
                          haveit=yes
 
7869
                          break
 
7870
                        fi
 
7871
                      done
 
7872
                      if test -z "$haveit"; then
 
7873
                        rpathdirs="$rpathdirs $dir"
 
7874
                      fi
 
7875
                                                                  haveit=
 
7876
                      for x in $ltrpathdirs; do
 
7877
                        if test "X$x" = "X$dir"; then
 
7878
                          haveit=yes
 
7879
                          break
 
7880
                        fi
 
7881
                      done
 
7882
                      if test -z "$haveit"; then
 
7883
                        ltrpathdirs="$ltrpathdirs $dir"
 
7884
                      fi
 
7885
                    fi
 
7886
                    ;;
 
7887
                  -l*)
 
7888
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
7889
                    ;;
 
7890
                  *.la)
 
7891
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
7892
                    ;;
 
7893
                  *)
 
7894
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
 
7895
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
 
7896
                    ;;
 
7897
                esac
 
7898
              done
 
7899
            fi
 
7900
          else
 
7901
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
7902
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
 
7903
          fi
 
7904
        fi
 
7905
      fi
 
7906
    done
 
7907
  done
 
7908
  if test "X$rpathdirs" != "X"; then
 
7909
    if test -n "$acl_hardcode_libdir_separator"; then
 
7910
                        alldirs=
 
7911
      for found_dir in $rpathdirs; do
 
7912
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
 
7913
      done
 
7914
            acl_save_libdir="$libdir"
 
7915
      libdir="$alldirs"
 
7916
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
7917
      libdir="$acl_save_libdir"
 
7918
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
7919
    else
 
7920
            for found_dir in $rpathdirs; do
 
7921
        acl_save_libdir="$libdir"
 
7922
        libdir="$found_dir"
 
7923
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
7924
        libdir="$acl_save_libdir"
 
7925
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
7926
      done
 
7927
    fi
 
7928
  fi
 
7929
  if test "X$ltrpathdirs" != "X"; then
 
7930
            for found_dir in $ltrpathdirs; do
 
7931
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
 
7932
    done
 
7933
  fi
 
7934
 
 
7935
 
 
7936
 
 
7937
 
 
7938
 
 
7939
 
 
7940
 
 
7941
 
 
7942
 
 
7943
 
 
7944
 
 
7945
 
 
7946
 
 
7947
 
 
7948
 
 
7949
 
 
7950
 
 
7951
 
 
7952
 
 
7953
 
 
7954
 
 
7955
 
 
7956
 
 
7957
 
 
7958
 
 
7959
 
 
7960
 
 
7961
 
 
7962
 
 
7963
 
 
7964
 
 
7965
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
 
7966
$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
 
7967
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
 
7968
  $as_echo_n "(cached) " >&6
 
7969
else
 
7970
  gt_save_LIBS="$LIBS"
 
7971
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
7972
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7973
/* end confdefs.h.  */
 
7974
#include <CoreFoundation/CFPreferences.h>
 
7975
int
 
7976
main (void)
 
7977
{
 
7978
CFPreferencesCopyAppValue(NULL, NULL)
 
7979
  ;
 
7980
  return 0;
 
7981
}
 
7982
_ACEOF
 
7983
if ac_fn_c_try_link "$LINENO"; then :
 
7984
  gt_cv_func_CFPreferencesCopyAppValue=yes
 
7985
else
 
7986
  gt_cv_func_CFPreferencesCopyAppValue=no
 
7987
fi
 
7988
rm -f core conftest.err conftest.$ac_objext \
 
7989
    conftest$ac_exeext conftest.$ac_ext
 
7990
     LIBS="$gt_save_LIBS"
 
7991
fi
 
7992
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
 
7993
$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
 
7994
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
 
7995
 
 
7996
$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
 
7997
 
 
7998
  fi
 
7999
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
 
8000
$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
 
8001
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
 
8002
  $as_echo_n "(cached) " >&6
 
8003
else
 
8004
  gt_save_LIBS="$LIBS"
 
8005
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
8006
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8007
/* end confdefs.h.  */
 
8008
#include <CoreFoundation/CFLocale.h>
 
8009
int
 
8010
main (void)
 
8011
{
 
8012
CFLocaleCopyCurrent();
 
8013
  ;
 
8014
  return 0;
 
8015
}
 
8016
_ACEOF
 
8017
if ac_fn_c_try_link "$LINENO"; then :
 
8018
  gt_cv_func_CFLocaleCopyCurrent=yes
 
8019
else
 
8020
  gt_cv_func_CFLocaleCopyCurrent=no
 
8021
fi
 
8022
rm -f core conftest.err conftest.$ac_objext \
 
8023
    conftest$ac_exeext conftest.$ac_ext
 
8024
     LIBS="$gt_save_LIBS"
 
8025
fi
 
8026
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
 
8027
$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
 
8028
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
8029
 
 
8030
$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
 
8031
 
 
8032
  fi
 
8033
  INTL_MACOSX_LIBS=
 
8034
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
8035
    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
 
8036
  fi
 
8037
 
 
8038
 
 
8039
 
 
8040
 
 
8041
 
 
8042
 
 
8043
  LIBINTL=
 
8044
  LTLIBINTL=
 
8045
  POSUB=
 
8046
 
 
8047
    case " $gt_needs " in
 
8048
    *" need-formatstring-macros "*) gt_api_version=3 ;;
 
8049
    *" need-ngettext "*) gt_api_version=2 ;;
 
8050
    *) gt_api_version=1 ;;
 
8051
  esac
 
8052
  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
 
8053
  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
 
8054
 
 
8055
    if test "$USE_NLS" = "yes"; then
 
8056
    gt_use_preinstalled_gnugettext=no
 
8057
 
 
8058
 
 
8059
        if test $gt_api_version -ge 3; then
 
8060
          gt_revision_test_code='
 
8061
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
 
8062
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
 
8063
#endif
 
8064
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
 
8065
'
 
8066
        else
 
8067
          gt_revision_test_code=
 
8068
        fi
 
8069
        if test $gt_api_version -ge 2; then
 
8070
          gt_expression_test_code=' + * ngettext ("", "", 0)'
 
8071
        else
 
8072
          gt_expression_test_code=
 
8073
        fi
 
8074
 
 
8075
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
 
8076
$as_echo_n "checking for GNU gettext in libc... " >&6; }
 
8077
if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then :
 
8078
  $as_echo_n "(cached) " >&6
 
8079
else
 
8080
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8081
/* end confdefs.h.  */
 
8082
 
 
8083
#include <libintl.h>
 
8084
$gt_revision_test_code
 
8085
extern int _nl_msg_cat_cntr;
 
8086
extern int *_nl_domain_bindings;
 
8087
 
 
8088
int
 
8089
main (void)
 
8090
{
 
8091
 
 
8092
bindtextdomain ("", "");
 
8093
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
 
8094
 
 
8095
  ;
 
8096
  return 0;
 
8097
}
 
8098
_ACEOF
 
8099
if ac_fn_c_try_link "$LINENO"; then :
 
8100
  eval "$gt_func_gnugettext_libc=yes"
 
8101
else
 
8102
  eval "$gt_func_gnugettext_libc=no"
 
8103
fi
 
8104
rm -f core conftest.err conftest.$ac_objext \
 
8105
    conftest$ac_exeext conftest.$ac_ext
 
8106
fi
 
8107
eval ac_res=\$$gt_func_gnugettext_libc
 
8108
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
8109
$as_echo "$ac_res" >&6; }
 
8110
 
 
8111
        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
 
8112
 
 
8113
 
 
8114
 
 
8115
 
 
8116
 
 
8117
          am_save_CPPFLAGS="$CPPFLAGS"
 
8118
 
 
8119
  for element in $INCICONV; do
 
8120
    haveit=
 
8121
    for x in $CPPFLAGS; do
 
8122
 
 
8123
  acl_save_prefix="$prefix"
 
8124
  prefix="$acl_final_prefix"
 
8125
  acl_save_exec_prefix="$exec_prefix"
 
8126
  exec_prefix="$acl_final_exec_prefix"
 
8127
  eval x=\"$x\"
 
8128
  exec_prefix="$acl_save_exec_prefix"
 
8129
  prefix="$acl_save_prefix"
 
8130
 
 
8131
      if test "X$x" = "X$element"; then
 
8132
        haveit=yes
 
8133
        break
 
8134
      fi
 
8135
    done
 
8136
    if test -z "$haveit"; then
 
8137
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
8138
    fi
 
8139
  done
 
8140
 
 
8141
 
 
8142
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
 
8143
$as_echo_n "checking for iconv... " >&6; }
 
8144
if test "${am_cv_func_iconv+set}" = set; then :
 
8145
  $as_echo_n "(cached) " >&6
 
8146
else
 
8147
 
 
8148
    am_cv_func_iconv="no, consider installing GNU libiconv"
 
8149
    am_cv_lib_iconv=no
 
8150
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8151
/* end confdefs.h.  */
 
8152
 
 
8153
#include <stdlib.h>
 
8154
#include <iconv.h>
 
8155
 
 
8156
int
 
8157
main (void)
 
8158
{
 
8159
iconv_t cd = iconv_open("","");
 
8160
           iconv(cd,NULL,NULL,NULL,NULL);
 
8161
           iconv_close(cd);
 
8162
  ;
 
8163
  return 0;
 
8164
}
 
8165
_ACEOF
 
8166
if ac_fn_c_try_link "$LINENO"; then :
 
8167
  am_cv_func_iconv=yes
 
8168
fi
 
8169
rm -f core conftest.err conftest.$ac_objext \
 
8170
    conftest$ac_exeext conftest.$ac_ext
 
8171
    if test "$am_cv_func_iconv" != yes; then
 
8172
      am_save_LIBS="$LIBS"
 
8173
      LIBS="$LIBS $LIBICONV"
 
8174
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8175
/* end confdefs.h.  */
 
8176
 
 
8177
#include <stdlib.h>
 
8178
#include <iconv.h>
 
8179
 
 
8180
int
 
8181
main (void)
 
8182
{
 
8183
iconv_t cd = iconv_open("","");
 
8184
             iconv(cd,NULL,NULL,NULL,NULL);
 
8185
             iconv_close(cd);
 
8186
  ;
 
8187
  return 0;
 
8188
}
 
8189
_ACEOF
 
8190
if ac_fn_c_try_link "$LINENO"; then :
 
8191
  am_cv_lib_iconv=yes
 
8192
        am_cv_func_iconv=yes
 
8193
fi
 
8194
rm -f core conftest.err conftest.$ac_objext \
 
8195
    conftest$ac_exeext conftest.$ac_ext
 
8196
      LIBS="$am_save_LIBS"
 
8197
    fi
 
8198
 
 
8199
fi
 
8200
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
 
8201
$as_echo "$am_cv_func_iconv" >&6; }
 
8202
  if test "$am_cv_func_iconv" = yes; then
 
8203
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
 
8204
$as_echo_n "checking for working iconv... " >&6; }
 
8205
if test "${am_cv_func_iconv_works+set}" = set; then :
 
8206
  $as_echo_n "(cached) " >&6
 
8207
else
 
8208
 
 
8209
                  am_save_LIBS="$LIBS"
 
8210
      if test $am_cv_lib_iconv = yes; then
 
8211
        LIBS="$LIBS $LIBICONV"
 
8212
      fi
 
8213
      if test "$cross_compiling" = yes; then :
 
8214
 
 
8215
         case "$host_os" in
 
8216
           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
 
8217
           *)            am_cv_func_iconv_works="guessing yes" ;;
 
8218
         esac
 
8219
 
 
8220
else
 
8221
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8222
/* end confdefs.h.  */
 
8223
 
 
8224
#include <iconv.h>
 
8225
#include <string.h>
 
8226
int main ()
 
8227
{
 
8228
  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
 
8229
     returns.  */
 
8230
  {
 
8231
    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
 
8232
    if (cd_utf8_to_88591 != (iconv_t)(-1))
 
8233
      {
 
8234
        static const char input[] = "\342\202\254"; /* EURO SIGN */
 
8235
        char buf[10];
 
8236
        const char *inptr = input;
 
8237
        size_t inbytesleft = strlen (input);
 
8238
        char *outptr = buf;
 
8239
        size_t outbytesleft = sizeof (buf);
 
8240
        size_t res = iconv (cd_utf8_to_88591,
 
8241
                            (char **) &inptr, &inbytesleft,
 
8242
                            &outptr, &outbytesleft);
 
8243
        if (res == 0)
 
8244
          return 1;
 
8245
      }
 
8246
  }
 
8247
  /* Test against Solaris 10 bug: Failures are not distinguishable from
 
8248
     successful returns.  */
 
8249
  {
 
8250
    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
 
8251
    if (cd_ascii_to_88591 != (iconv_t)(-1))
 
8252
      {
 
8253
        static const char input[] = "\263";
 
8254
        char buf[10];
 
8255
        const char *inptr = input;
 
8256
        size_t inbytesleft = strlen (input);
 
8257
        char *outptr = buf;
 
8258
        size_t outbytesleft = sizeof (buf);
 
8259
        size_t res = iconv (cd_ascii_to_88591,
 
8260
                            (char **) &inptr, &inbytesleft,
 
8261
                            &outptr, &outbytesleft);
 
8262
        if (res == 0)
 
8263
          return 1;
 
8264
      }
 
8265
  }
 
8266
  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
 
8267
  {
 
8268
    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
 
8269
    if (cd_88591_to_utf8 != (iconv_t)(-1))
 
8270
      {
 
8271
        static const char input[] = "\304";
 
8272
        static char buf[2] = { (char)0xDE, (char)0xAD };
 
8273
        const char *inptr = input;
 
8274
        size_t inbytesleft = 1;
 
8275
        char *outptr = buf;
 
8276
        size_t outbytesleft = 1;
 
8277
        size_t res = iconv (cd_88591_to_utf8,
 
8278
                            (char **) &inptr, &inbytesleft,
 
8279
                            &outptr, &outbytesleft);
 
8280
        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
 
8281
          return 1;
 
8282
      }
 
8283
  }
 
8284
#if 0 /* This bug could be worked around by the caller.  */
 
8285
  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
 
8286
  {
 
8287
    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
 
8288
    if (cd_88591_to_utf8 != (iconv_t)(-1))
 
8289
      {
 
8290
        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
 
8291
        char buf[50];
 
8292
        const char *inptr = input;
 
8293
        size_t inbytesleft = strlen (input);
 
8294
        char *outptr = buf;
 
8295
        size_t outbytesleft = sizeof (buf);
 
8296
        size_t res = iconv (cd_88591_to_utf8,
 
8297
                            (char **) &inptr, &inbytesleft,
 
8298
                            &outptr, &outbytesleft);
 
8299
        if ((int)res > 0)
 
8300
          return 1;
 
8301
      }
 
8302
  }
 
8303
#endif
 
8304
  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
 
8305
     provided.  */
 
8306
  if (/* Try standardized names.  */
 
8307
      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
 
8308
      /* Try IRIX, OSF/1 names.  */
 
8309
      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
 
8310
      /* Try AIX names.  */
 
8311
      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
 
8312
      /* Try HP-UX names.  */
 
8313
      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
 
8314
    return 1;
 
8315
  return 0;
 
8316
}
 
8317
_ACEOF
 
8318
if ac_fn_c_try_run "$LINENO"; then :
 
8319
  am_cv_func_iconv_works=yes
 
8320
else
 
8321
  am_cv_func_iconv_works=no
 
8322
fi
 
8323
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
8324
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
8325
fi
 
8326
 
 
8327
      LIBS="$am_save_LIBS"
 
8328
 
 
8329
fi
 
8330
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
 
8331
$as_echo "$am_cv_func_iconv_works" >&6; }
 
8332
    case "$am_cv_func_iconv_works" in
 
8333
      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
 
8334
      *)   am_func_iconv=yes ;;
 
8335
    esac
 
8336
  else
 
8337
    am_func_iconv=no am_cv_lib_iconv=no
 
8338
  fi
 
8339
  if test "$am_func_iconv" = yes; then
 
8340
 
 
8341
$as_echo "#define HAVE_ICONV 1" >>confdefs.h
 
8342
 
 
8343
  fi
 
8344
  if test "$am_cv_lib_iconv" = yes; then
 
8345
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
 
8346
$as_echo_n "checking how to link with libiconv... " >&6; }
 
8347
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
 
8348
$as_echo "$LIBICONV" >&6; }
 
8349
  else
 
8350
            CPPFLAGS="$am_save_CPPFLAGS"
 
8351
    LIBICONV=
 
8352
    LTLIBICONV=
 
8353
  fi
 
8354
 
 
8355
 
 
8356
 
 
8357
 
 
8358
 
 
8359
 
 
8360
 
 
8361
 
 
8362
 
 
8363
 
 
8364
 
 
8365
    use_additional=yes
 
8366
 
 
8367
  acl_save_prefix="$prefix"
 
8368
  prefix="$acl_final_prefix"
 
8369
  acl_save_exec_prefix="$exec_prefix"
 
8370
  exec_prefix="$acl_final_exec_prefix"
 
8371
 
 
8372
    eval additional_includedir=\"$includedir\"
 
8373
    eval additional_libdir=\"$libdir\"
 
8374
 
 
8375
  exec_prefix="$acl_save_exec_prefix"
 
8376
  prefix="$acl_save_prefix"
 
8377
 
 
8378
 
 
8379
# Check whether --with-libintl-prefix was given.
 
8380
if test "${with_libintl_prefix+set}" = set; then :
 
8381
  withval=$with_libintl_prefix;
 
8382
    if test "X$withval" = "Xno"; then
 
8383
      use_additional=no
 
8384
    else
 
8385
      if test "X$withval" = "X"; then
 
8386
 
 
8387
  acl_save_prefix="$prefix"
 
8388
  prefix="$acl_final_prefix"
 
8389
  acl_save_exec_prefix="$exec_prefix"
 
8390
  exec_prefix="$acl_final_exec_prefix"
 
8391
 
 
8392
          eval additional_includedir=\"$includedir\"
 
8393
          eval additional_libdir=\"$libdir\"
 
8394
 
 
8395
  exec_prefix="$acl_save_exec_prefix"
 
8396
  prefix="$acl_save_prefix"
 
8397
 
 
8398
      else
 
8399
        additional_includedir="$withval/include"
 
8400
        additional_libdir="$withval/$acl_libdirstem"
 
8401
        if test "$acl_libdirstem2" != "$acl_libdirstem" \
 
8402
           && ! test -d "$withval/$acl_libdirstem"; then
 
8403
          additional_libdir="$withval/$acl_libdirstem2"
 
8404
        fi
 
8405
      fi
 
8406
    fi
 
8407
 
 
8408
fi
 
8409
 
 
8410
      LIBINTL=
 
8411
  LTLIBINTL=
 
8412
  INCINTL=
 
8413
  LIBINTL_PREFIX=
 
8414
      HAVE_LIBINTL=
 
8415
  rpathdirs=
 
8416
  ltrpathdirs=
 
8417
  names_already_handled=
 
8418
  names_next_round='intl '
 
8419
  while test -n "$names_next_round"; do
 
8420
    names_this_round="$names_next_round"
 
8421
    names_next_round=
 
8422
    for name in $names_this_round; do
 
8423
      already_handled=
 
8424
      for n in $names_already_handled; do
 
8425
        if test "$n" = "$name"; then
 
8426
          already_handled=yes
 
8427
          break
 
8428
        fi
 
8429
      done
 
8430
      if test -z "$already_handled"; then
 
8431
        names_already_handled="$names_already_handled $name"
 
8432
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
 
8433
        eval value=\"\$HAVE_LIB$uppername\"
 
8434
        if test -n "$value"; then
 
8435
          if test "$value" = yes; then
 
8436
            eval value=\"\$LIB$uppername\"
 
8437
            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
 
8438
            eval value=\"\$LTLIB$uppername\"
 
8439
            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
 
8440
          else
 
8441
                                    :
 
8442
          fi
 
8443
        else
 
8444
                              found_dir=
 
8445
          found_la=
 
8446
          found_so=
 
8447
          found_a=
 
8448
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
8449
          if test -n "$acl_shlibext"; then
 
8450
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
8451
          else
 
8452
            shrext=
 
8453
          fi
 
8454
          if test $use_additional = yes; then
 
8455
            dir="$additional_libdir"
 
8456
                                    if test -n "$acl_shlibext"; then
 
8457
              if test -f "$dir/$libname$shrext"; then
 
8458
                found_dir="$dir"
 
8459
                found_so="$dir/$libname$shrext"
 
8460
              else
 
8461
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
8462
                  ver=`(cd "$dir" && \
 
8463
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
8464
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
8465
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
8466
                        | sed 1q ) 2>/dev/null`
 
8467
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
8468
                    found_dir="$dir"
 
8469
                    found_so="$dir/$libname$shrext.$ver"
 
8470
                  fi
 
8471
                else
 
8472
                  eval library_names=\"$acl_library_names_spec\"
 
8473
                  for f in $library_names; do
 
8474
                    if test -f "$dir/$f"; then
 
8475
                      found_dir="$dir"
 
8476
                      found_so="$dir/$f"
 
8477
                      break
 
8478
                    fi
 
8479
                  done
 
8480
                fi
 
8481
              fi
 
8482
            fi
 
8483
                        if test "X$found_dir" = "X"; then
 
8484
              if test -f "$dir/$libname.$acl_libext"; then
 
8485
                found_dir="$dir"
 
8486
                found_a="$dir/$libname.$acl_libext"
 
8487
              fi
 
8488
            fi
 
8489
            if test "X$found_dir" != "X"; then
 
8490
              if test -f "$dir/$libname.la"; then
 
8491
                found_la="$dir/$libname.la"
 
8492
              fi
 
8493
            fi
 
8494
          fi
 
8495
          if test "X$found_dir" = "X"; then
 
8496
            for x in $LDFLAGS $LTLIBINTL; do
 
8497
 
 
8498
  acl_save_prefix="$prefix"
 
8499
  prefix="$acl_final_prefix"
 
8500
  acl_save_exec_prefix="$exec_prefix"
 
8501
  exec_prefix="$acl_final_exec_prefix"
 
8502
  eval x=\"$x\"
 
8503
  exec_prefix="$acl_save_exec_prefix"
 
8504
  prefix="$acl_save_prefix"
 
8505
 
 
8506
              case "$x" in
 
8507
                -L*)
 
8508
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
8509
                                    if test -n "$acl_shlibext"; then
 
8510
                    if test -f "$dir/$libname$shrext"; then
 
8511
                      found_dir="$dir"
 
8512
                      found_so="$dir/$libname$shrext"
 
8513
                    else
 
8514
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
8515
                        ver=`(cd "$dir" && \
 
8516
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
8517
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
8518
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
8519
                              | sed 1q ) 2>/dev/null`
 
8520
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
8521
                          found_dir="$dir"
 
8522
                          found_so="$dir/$libname$shrext.$ver"
 
8523
                        fi
 
8524
                      else
 
8525
                        eval library_names=\"$acl_library_names_spec\"
 
8526
                        for f in $library_names; do
 
8527
                          if test -f "$dir/$f"; then
 
8528
                            found_dir="$dir"
 
8529
                            found_so="$dir/$f"
 
8530
                            break
 
8531
                          fi
 
8532
                        done
 
8533
                      fi
 
8534
                    fi
 
8535
                  fi
 
8536
                                    if test "X$found_dir" = "X"; then
 
8537
                    if test -f "$dir/$libname.$acl_libext"; then
 
8538
                      found_dir="$dir"
 
8539
                      found_a="$dir/$libname.$acl_libext"
 
8540
                    fi
 
8541
                  fi
 
8542
                  if test "X$found_dir" != "X"; then
 
8543
                    if test -f "$dir/$libname.la"; then
 
8544
                      found_la="$dir/$libname.la"
 
8545
                    fi
 
8546
                  fi
 
8547
                  ;;
 
8548
              esac
 
8549
              if test "X$found_dir" != "X"; then
 
8550
                break
 
8551
              fi
 
8552
            done
 
8553
          fi
 
8554
          if test "X$found_dir" != "X"; then
 
8555
                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
 
8556
            if test "X$found_so" != "X"; then
 
8557
                                                        if test "$enable_rpath" = no \
 
8558
                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
 
8559
                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
 
8560
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
8561
              else
 
8562
                                                                                haveit=
 
8563
                for x in $ltrpathdirs; do
 
8564
                  if test "X$x" = "X$found_dir"; then
 
8565
                    haveit=yes
 
8566
                    break
 
8567
                  fi
 
8568
                done
 
8569
                if test -z "$haveit"; then
 
8570
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
8571
                fi
 
8572
                                if test "$acl_hardcode_direct" = yes; then
 
8573
                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
8574
                else
 
8575
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 
8576
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
8577
                                                            haveit=
 
8578
                    for x in $rpathdirs; do
 
8579
                      if test "X$x" = "X$found_dir"; then
 
8580
                        haveit=yes
 
8581
                        break
 
8582
                      fi
 
8583
                    done
 
8584
                    if test -z "$haveit"; then
 
8585
                      rpathdirs="$rpathdirs $found_dir"
 
8586
                    fi
 
8587
                  else
 
8588
                                                                                haveit=
 
8589
                    for x in $LDFLAGS $LIBINTL; do
 
8590
 
 
8591
  acl_save_prefix="$prefix"
 
8592
  prefix="$acl_final_prefix"
 
8593
  acl_save_exec_prefix="$exec_prefix"
 
8594
  exec_prefix="$acl_final_exec_prefix"
 
8595
  eval x=\"$x\"
 
8596
  exec_prefix="$acl_save_exec_prefix"
 
8597
  prefix="$acl_save_prefix"
 
8598
 
 
8599
                      if test "X$x" = "X-L$found_dir"; then
 
8600
                        haveit=yes
 
8601
                        break
 
8602
                      fi
 
8603
                    done
 
8604
                    if test -z "$haveit"; then
 
8605
                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
 
8606
                    fi
 
8607
                    if test "$acl_hardcode_minus_L" != no; then
 
8608
                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
8609
                    else
 
8610
                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
8611
                    fi
 
8612
                  fi
 
8613
                fi
 
8614
              fi
 
8615
            else
 
8616
              if test "X$found_a" != "X"; then
 
8617
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
 
8618
              else
 
8619
                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
 
8620
              fi
 
8621
            fi
 
8622
                        additional_includedir=
 
8623
            case "$found_dir" in
 
8624
              */$acl_libdirstem | */$acl_libdirstem/)
 
8625
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
8626
                if test "$name" = 'intl'; then
 
8627
                  LIBINTL_PREFIX="$basedir"
 
8628
                fi
 
8629
                additional_includedir="$basedir/include"
 
8630
                ;;
 
8631
              */$acl_libdirstem2 | */$acl_libdirstem2/)
 
8632
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
 
8633
                if test "$name" = 'intl'; then
 
8634
                  LIBINTL_PREFIX="$basedir"
 
8635
                fi
 
8636
                additional_includedir="$basedir/include"
 
8637
                ;;
 
8638
            esac
 
8639
            if test "X$additional_includedir" != "X"; then
 
8640
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
8641
                haveit=
 
8642
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
8643
                  if test -n "$GCC"; then
 
8644
                    case $host_os in
 
8645
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
8646
                    esac
 
8647
                  fi
 
8648
                fi
 
8649
                if test -z "$haveit"; then
 
8650
                  for x in $CPPFLAGS $INCINTL; do
 
8651
 
 
8652
  acl_save_prefix="$prefix"
 
8653
  prefix="$acl_final_prefix"
 
8654
  acl_save_exec_prefix="$exec_prefix"
 
8655
  exec_prefix="$acl_final_exec_prefix"
 
8656
  eval x=\"$x\"
 
8657
  exec_prefix="$acl_save_exec_prefix"
 
8658
  prefix="$acl_save_prefix"
 
8659
 
 
8660
                    if test "X$x" = "X-I$additional_includedir"; then
 
8661
                      haveit=yes
 
8662
                      break
 
8663
                    fi
 
8664
                  done
 
8665
                  if test -z "$haveit"; then
 
8666
                    if test -d "$additional_includedir"; then
 
8667
                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
 
8668
                    fi
 
8669
                  fi
 
8670
                fi
 
8671
              fi
 
8672
            fi
 
8673
                        if test -n "$found_la"; then
 
8674
                                                        save_libdir="$libdir"
 
8675
              case "$found_la" in
 
8676
                */* | *\\*) . "$found_la" ;;
 
8677
                *) . "./$found_la" ;;
 
8678
              esac
 
8679
              libdir="$save_libdir"
 
8680
                            for dep in $dependency_libs; do
 
8681
                case "$dep" in
 
8682
                  -L*)
 
8683
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
8684
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
 
8685
                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
 
8686
                      haveit=
 
8687
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
 
8688
                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
 
8689
                        if test -n "$GCC"; then
 
8690
                          case $host_os in
 
8691
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
8692
                          esac
 
8693
                        fi
 
8694
                      fi
 
8695
                      if test -z "$haveit"; then
 
8696
                        haveit=
 
8697
                        for x in $LDFLAGS $LIBINTL; do
 
8698
 
 
8699
  acl_save_prefix="$prefix"
 
8700
  prefix="$acl_final_prefix"
 
8701
  acl_save_exec_prefix="$exec_prefix"
 
8702
  exec_prefix="$acl_final_exec_prefix"
 
8703
  eval x=\"$x\"
 
8704
  exec_prefix="$acl_save_exec_prefix"
 
8705
  prefix="$acl_save_prefix"
 
8706
 
 
8707
                          if test "X$x" = "X-L$additional_libdir"; then
 
8708
                            haveit=yes
 
8709
                            break
 
8710
                          fi
 
8711
                        done
 
8712
                        if test -z "$haveit"; then
 
8713
                          if test -d "$additional_libdir"; then
 
8714
                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
 
8715
                          fi
 
8716
                        fi
 
8717
                        haveit=
 
8718
                        for x in $LDFLAGS $LTLIBINTL; do
 
8719
 
 
8720
  acl_save_prefix="$prefix"
 
8721
  prefix="$acl_final_prefix"
 
8722
  acl_save_exec_prefix="$exec_prefix"
 
8723
  exec_prefix="$acl_final_exec_prefix"
 
8724
  eval x=\"$x\"
 
8725
  exec_prefix="$acl_save_exec_prefix"
 
8726
  prefix="$acl_save_prefix"
 
8727
 
 
8728
                          if test "X$x" = "X-L$additional_libdir"; then
 
8729
                            haveit=yes
 
8730
                            break
 
8731
                          fi
 
8732
                        done
 
8733
                        if test -z "$haveit"; then
 
8734
                          if test -d "$additional_libdir"; then
 
8735
                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
 
8736
                          fi
 
8737
                        fi
 
8738
                      fi
 
8739
                    fi
 
8740
                    ;;
 
8741
                  -R*)
 
8742
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
8743
                    if test "$enable_rpath" != no; then
 
8744
                                                                  haveit=
 
8745
                      for x in $rpathdirs; do
 
8746
                        if test "X$x" = "X$dir"; then
 
8747
                          haveit=yes
 
8748
                          break
 
8749
                        fi
 
8750
                      done
 
8751
                      if test -z "$haveit"; then
 
8752
                        rpathdirs="$rpathdirs $dir"
 
8753
                      fi
 
8754
                                                                  haveit=
 
8755
                      for x in $ltrpathdirs; do
 
8756
                        if test "X$x" = "X$dir"; then
 
8757
                          haveit=yes
 
8758
                          break
 
8759
                        fi
 
8760
                      done
 
8761
                      if test -z "$haveit"; then
 
8762
                        ltrpathdirs="$ltrpathdirs $dir"
 
8763
                      fi
 
8764
                    fi
 
8765
                    ;;
 
8766
                  -l*)
 
8767
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
8768
                    ;;
 
8769
                  *.la)
 
8770
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
8771
                    ;;
 
8772
                  *)
 
8773
                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
 
8774
                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
 
8775
                    ;;
 
8776
                esac
 
8777
              done
 
8778
            fi
 
8779
          else
 
8780
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
8781
            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
 
8782
          fi
 
8783
        fi
 
8784
      fi
 
8785
    done
 
8786
  done
 
8787
  if test "X$rpathdirs" != "X"; then
 
8788
    if test -n "$acl_hardcode_libdir_separator"; then
 
8789
                        alldirs=
 
8790
      for found_dir in $rpathdirs; do
 
8791
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
 
8792
      done
 
8793
            acl_save_libdir="$libdir"
 
8794
      libdir="$alldirs"
 
8795
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
8796
      libdir="$acl_save_libdir"
 
8797
      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
8798
    else
 
8799
            for found_dir in $rpathdirs; do
 
8800
        acl_save_libdir="$libdir"
 
8801
        libdir="$found_dir"
 
8802
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
8803
        libdir="$acl_save_libdir"
 
8804
        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
8805
      done
 
8806
    fi
 
8807
  fi
 
8808
  if test "X$ltrpathdirs" != "X"; then
 
8809
            for found_dir in $ltrpathdirs; do
 
8810
      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
 
8811
    done
 
8812
  fi
 
8813
 
 
8814
 
 
8815
 
 
8816
 
 
8817
 
 
8818
 
 
8819
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
 
8820
$as_echo_n "checking for GNU gettext in libintl... " >&6; }
 
8821
if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then :
 
8822
  $as_echo_n "(cached) " >&6
 
8823
else
 
8824
  gt_save_CPPFLAGS="$CPPFLAGS"
 
8825
            CPPFLAGS="$CPPFLAGS $INCINTL"
 
8826
            gt_save_LIBS="$LIBS"
 
8827
            LIBS="$LIBS $LIBINTL"
 
8828
                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8829
/* end confdefs.h.  */
 
8830
 
 
8831
#include <libintl.h>
 
8832
$gt_revision_test_code
 
8833
extern int _nl_msg_cat_cntr;
 
8834
extern
 
8835
#ifdef __cplusplus
 
8836
"C"
 
8837
#endif
 
8838
const char *_nl_expand_alias (const char *);
 
8839
 
 
8840
int
 
8841
main (void)
 
8842
{
 
8843
 
 
8844
bindtextdomain ("", "");
 
8845
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
 
8846
 
 
8847
  ;
 
8848
  return 0;
 
8849
}
 
8850
_ACEOF
 
8851
if ac_fn_c_try_link "$LINENO"; then :
 
8852
  eval "$gt_func_gnugettext_libintl=yes"
 
8853
else
 
8854
  eval "$gt_func_gnugettext_libintl=no"
 
8855
fi
 
8856
rm -f core conftest.err conftest.$ac_objext \
 
8857
    conftest$ac_exeext conftest.$ac_ext
 
8858
                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
 
8859
              LIBS="$LIBS $LIBICONV"
 
8860
              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8861
/* end confdefs.h.  */
 
8862
 
 
8863
#include <libintl.h>
 
8864
$gt_revision_test_code
 
8865
extern int _nl_msg_cat_cntr;
 
8866
extern
 
8867
#ifdef __cplusplus
 
8868
"C"
 
8869
#endif
 
8870
const char *_nl_expand_alias (const char *);
 
8871
 
 
8872
int
 
8873
main (void)
 
8874
{
 
8875
 
 
8876
bindtextdomain ("", "");
 
8877
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
 
8878
 
 
8879
  ;
 
8880
  return 0;
 
8881
}
 
8882
_ACEOF
 
8883
if ac_fn_c_try_link "$LINENO"; then :
 
8884
  LIBINTL="$LIBINTL $LIBICONV"
 
8885
                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
 
8886
                 eval "$gt_func_gnugettext_libintl=yes"
 
8887
 
 
8888
fi
 
8889
rm -f core conftest.err conftest.$ac_objext \
 
8890
    conftest$ac_exeext conftest.$ac_ext
 
8891
            fi
 
8892
            CPPFLAGS="$gt_save_CPPFLAGS"
 
8893
            LIBS="$gt_save_LIBS"
 
8894
fi
 
8895
eval ac_res=\$$gt_func_gnugettext_libintl
 
8896
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
8897
$as_echo "$ac_res" >&6; }
 
8898
        fi
 
8899
 
 
8900
                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
 
8901
           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
 
8902
                && test "$PACKAGE" != gettext-runtime \
 
8903
                && test "$PACKAGE" != gettext-tools; }; then
 
8904
          gt_use_preinstalled_gnugettext=yes
 
8905
        else
 
8906
                    LIBINTL=
 
8907
          LTLIBINTL=
 
8908
          INCINTL=
 
8909
        fi
 
8910
 
 
8911
 
 
8912
 
 
8913
    if test -n "$INTL_MACOSX_LIBS"; then
 
8914
      if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
8915
         || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
8916
                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
 
8917
        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
 
8918
      fi
 
8919
    fi
 
8920
 
 
8921
    if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
8922
       || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
8923
 
 
8924
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
 
8925
 
 
8926
    else
 
8927
      USE_NLS=no
 
8928
    fi
 
8929
  fi
 
8930
 
 
8931
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
 
8932
$as_echo_n "checking whether to use NLS... " >&6; }
 
8933
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
 
8934
$as_echo "$USE_NLS" >&6; }
 
8935
  if test "$USE_NLS" = "yes"; then
 
8936
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
 
8937
$as_echo_n "checking where the gettext function comes from... " >&6; }
 
8938
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
8939
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
 
8940
        gt_source="external libintl"
 
8941
      else
 
8942
        gt_source="libc"
 
8943
      fi
 
8944
    else
 
8945
      gt_source="included intl directory"
 
8946
    fi
 
8947
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
 
8948
$as_echo "$gt_source" >&6; }
 
8949
  fi
 
8950
 
 
8951
  if test "$USE_NLS" = "yes"; then
 
8952
 
 
8953
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
8954
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
 
8955
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
 
8956
$as_echo_n "checking how to link with libintl... " >&6; }
 
8957
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
 
8958
$as_echo "$LIBINTL" >&6; }
 
8959
 
 
8960
  for element in $INCINTL; do
 
8961
    haveit=
 
8962
    for x in $CPPFLAGS; do
 
8963
 
 
8964
  acl_save_prefix="$prefix"
 
8965
  prefix="$acl_final_prefix"
 
8966
  acl_save_exec_prefix="$exec_prefix"
 
8967
  exec_prefix="$acl_final_exec_prefix"
 
8968
  eval x=\"$x\"
 
8969
  exec_prefix="$acl_save_exec_prefix"
 
8970
  prefix="$acl_save_prefix"
 
8971
 
 
8972
      if test "X$x" = "X$element"; then
 
8973
        haveit=yes
 
8974
        break
 
8975
      fi
 
8976
    done
 
8977
    if test -z "$haveit"; then
 
8978
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
8979
    fi
 
8980
  done
 
8981
 
 
8982
      fi
 
8983
 
 
8984
 
 
8985
$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
 
8986
 
 
8987
 
 
8988
$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
 
8989
 
 
8990
    fi
 
8991
 
 
8992
        POSUB=po
 
8993
  fi
 
8994
 
 
8995
 
 
8996
 
 
8997
    INTLLIBS="$LIBINTL"
 
8998
 
 
8999
 
 
9000
 
 
9001
 
 
9002
 
 
9003
 
 
9004
# Check whether --enable-largefile was given.
 
9005
if test "${enable_largefile+set}" = set; then :
 
9006
  enableval=$enable_largefile;
 
9007
fi
 
9008
 
 
9009
if test "$enable_largefile" != no; then
 
9010
 
 
9011
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
 
9012
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
 
9013
if test "${ac_cv_sys_largefile_CC+set}" = set; then :
 
9014
  $as_echo_n "(cached) " >&6
 
9015
else
 
9016
  ac_cv_sys_largefile_CC=no
 
9017
     if test "$GCC" != yes; then
 
9018
       ac_save_CC=$CC
 
9019
       while :; do
 
9020
         # IRIX 6.2 and later do not support large files by default,
 
9021
         # so use the C compiler's -n32 option if that helps.
 
9022
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9023
/* end confdefs.h.  */
 
9024
#include <sys/types.h>
 
9025
 /* Check that off_t can represent 2**63 - 1 correctly.
 
9026
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
9027
    since some C++ compilers masquerading as C compilers
 
9028
    incorrectly reject 9223372036854775807.  */
 
9029
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
9030
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
9031
                       && LARGE_OFF_T % 2147483647 == 1)
 
9032
                      ? 1 : -1];
 
9033
int
 
9034
main (void)
 
9035
{
 
9036
 
 
9037
  ;
 
9038
  return 0;
 
9039
}
 
9040
_ACEOF
 
9041
         if ac_fn_c_try_compile "$LINENO"; then :
 
9042
  break
 
9043
fi
 
9044
rm -f core conftest.err conftest.$ac_objext
 
9045
         CC="$CC -n32"
 
9046
         if ac_fn_c_try_compile "$LINENO"; then :
 
9047
  ac_cv_sys_largefile_CC=' -n32'; break
 
9048
fi
 
9049
rm -f core conftest.err conftest.$ac_objext
 
9050
         break
 
9051
       done
 
9052
       CC=$ac_save_CC
 
9053
       rm -f conftest.$ac_ext
 
9054
    fi
 
9055
fi
 
9056
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
 
9057
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
 
9058
  if test "$ac_cv_sys_largefile_CC" != no; then
 
9059
    CC=$CC$ac_cv_sys_largefile_CC
 
9060
  fi
 
9061
 
 
9062
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
 
9063
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
 
9064
if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
 
9065
  $as_echo_n "(cached) " >&6
 
9066
else
 
9067
  while :; do
 
9068
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9069
/* end confdefs.h.  */
 
9070
#include <sys/types.h>
 
9071
 /* Check that off_t can represent 2**63 - 1 correctly.
 
9072
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
9073
    since some C++ compilers masquerading as C compilers
 
9074
    incorrectly reject 9223372036854775807.  */
 
9075
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
9076
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
9077
                       && LARGE_OFF_T % 2147483647 == 1)
 
9078
                      ? 1 : -1];
 
9079
int
 
9080
main (void)
 
9081
{
 
9082
 
 
9083
  ;
 
9084
  return 0;
 
9085
}
 
9086
_ACEOF
 
9087
if ac_fn_c_try_compile "$LINENO"; then :
 
9088
  ac_cv_sys_file_offset_bits=no; break
 
9089
fi
 
9090
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9091
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9092
/* end confdefs.h.  */
 
9093
#define _FILE_OFFSET_BITS 64
 
9094
#include <sys/types.h>
 
9095
 /* Check that off_t can represent 2**63 - 1 correctly.
 
9096
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
9097
    since some C++ compilers masquerading as C compilers
 
9098
    incorrectly reject 9223372036854775807.  */
 
9099
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
9100
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
9101
                       && LARGE_OFF_T % 2147483647 == 1)
 
9102
                      ? 1 : -1];
 
9103
int
 
9104
main (void)
 
9105
{
 
9106
 
 
9107
  ;
 
9108
  return 0;
 
9109
}
 
9110
_ACEOF
 
9111
if ac_fn_c_try_compile "$LINENO"; then :
 
9112
  ac_cv_sys_file_offset_bits=64; break
 
9113
fi
 
9114
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9115
  ac_cv_sys_file_offset_bits=unknown
 
9116
  break
 
9117
done
 
9118
fi
 
9119
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
 
9120
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
 
9121
case $ac_cv_sys_file_offset_bits in #(
 
9122
  no | unknown) ;;
 
9123
  *)
 
9124
cat >>confdefs.h <<_ACEOF
 
9125
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
 
9126
_ACEOF
 
9127
;;
 
9128
esac
 
9129
rm -rf conftest*
 
9130
  if test $ac_cv_sys_file_offset_bits = unknown; then
 
9131
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
 
9132
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
 
9133
if test "${ac_cv_sys_large_files+set}" = set; then :
 
9134
  $as_echo_n "(cached) " >&6
 
9135
else
 
9136
  while :; do
 
9137
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9138
/* end confdefs.h.  */
 
9139
#include <sys/types.h>
 
9140
 /* Check that off_t can represent 2**63 - 1 correctly.
 
9141
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
9142
    since some C++ compilers masquerading as C compilers
 
9143
    incorrectly reject 9223372036854775807.  */
 
9144
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
9145
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
9146
                       && LARGE_OFF_T % 2147483647 == 1)
 
9147
                      ? 1 : -1];
 
9148
int
 
9149
main (void)
 
9150
{
 
9151
 
 
9152
  ;
 
9153
  return 0;
 
9154
}
 
9155
_ACEOF
 
9156
if ac_fn_c_try_compile "$LINENO"; then :
 
9157
  ac_cv_sys_large_files=no; break
 
9158
fi
 
9159
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9160
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9161
/* end confdefs.h.  */
 
9162
#define _LARGE_FILES 1
 
9163
#include <sys/types.h>
 
9164
 /* Check that off_t can represent 2**63 - 1 correctly.
 
9165
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
9166
    since some C++ compilers masquerading as C compilers
 
9167
    incorrectly reject 9223372036854775807.  */
 
9168
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
9169
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
9170
                       && LARGE_OFF_T % 2147483647 == 1)
 
9171
                      ? 1 : -1];
 
9172
int
 
9173
main (void)
 
9174
{
 
9175
 
 
9176
  ;
 
9177
  return 0;
 
9178
}
 
9179
_ACEOF
 
9180
if ac_fn_c_try_compile "$LINENO"; then :
 
9181
  ac_cv_sys_large_files=1; break
 
9182
fi
 
9183
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9184
  ac_cv_sys_large_files=unknown
 
9185
  break
 
9186
done
 
9187
fi
 
9188
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
 
9189
$as_echo "$ac_cv_sys_large_files" >&6; }
 
9190
case $ac_cv_sys_large_files in #(
 
9191
  no | unknown) ;;
 
9192
  *)
 
9193
cat >>confdefs.h <<_ACEOF
 
9194
#define _LARGE_FILES $ac_cv_sys_large_files
 
9195
_ACEOF
 
9196
;;
 
9197
esac
 
9198
rm -rf conftest*
 
9199
  fi
 
9200
fi
 
9201
 
 
9202
 
 
9203
# Identify characteristics of the host architecture.
 
9204
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
 
9205
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
 
9206
if test "${ac_cv_c_bigendian+set}" = set; then :
 
9207
  $as_echo_n "(cached) " >&6
 
9208
else
 
9209
  ac_cv_c_bigendian=unknown
 
9210
    # See if we're dealing with a universal compiler.
 
9211
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9212
/* end confdefs.h.  */
 
9213
#ifndef __APPLE_CC__
 
9214
               not a universal capable compiler
 
9215
             #endif
 
9216
             typedef int dummy;
 
9217
 
 
9218
_ACEOF
 
9219
if ac_fn_c_try_compile "$LINENO"; then :
 
9220
 
 
9221
        # Check for potential -arch flags.  It is not universal unless
 
9222
        # there are at least two -arch flags with different values.
 
9223
        ac_arch=
 
9224
        ac_prev=
 
9225
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
 
9226
         if test -n "$ac_prev"; then
 
9227
           case $ac_word in
 
9228
             i?86 | x86_64 | ppc | ppc64)
 
9229
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
 
9230
                 ac_arch=$ac_word
 
9231
               else
 
9232
                 ac_cv_c_bigendian=universal
 
9233
                 break
 
9234
               fi
 
9235
               ;;
 
9236
           esac
 
9237
           ac_prev=
 
9238
         elif test "x$ac_word" = "x-arch"; then
 
9239
           ac_prev=arch
 
9240
         fi
 
9241
       done
 
9242
fi
 
9243
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9244
    if test $ac_cv_c_bigendian = unknown; then
 
9245
      # See if sys/param.h defines the BYTE_ORDER macro.
 
9246
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9247
/* end confdefs.h.  */
 
9248
#include <sys/types.h>
 
9249
             #include <sys/param.h>
 
9250
 
 
9251
int
 
9252
main (void)
 
9253
{
 
9254
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
 
9255
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
 
9256
                     && LITTLE_ENDIAN)
 
9257
              bogus endian macros
 
9258
             #endif
 
9259
 
 
9260
  ;
 
9261
  return 0;
 
9262
}
 
9263
_ACEOF
 
9264
if ac_fn_c_try_compile "$LINENO"; then :
 
9265
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
9266
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9267
/* end confdefs.h.  */
 
9268
#include <sys/types.h>
 
9269
                #include <sys/param.h>
 
9270
 
 
9271
int
 
9272
main (void)
 
9273
{
 
9274
#if BYTE_ORDER != BIG_ENDIAN
 
9275
                 not big endian
 
9276
                #endif
 
9277
 
 
9278
  ;
 
9279
  return 0;
 
9280
}
 
9281
_ACEOF
 
9282
if ac_fn_c_try_compile "$LINENO"; then :
 
9283
  ac_cv_c_bigendian=yes
 
9284
else
 
9285
  ac_cv_c_bigendian=no
 
9286
fi
 
9287
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9288
fi
 
9289
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9290
    fi
 
9291
    if test $ac_cv_c_bigendian = unknown; then
 
9292
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
 
9293
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9294
/* end confdefs.h.  */
 
9295
#include <limits.h>
 
9296
 
 
9297
int
 
9298
main (void)
 
9299
{
 
9300
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
 
9301
              bogus endian macros
 
9302
             #endif
 
9303
 
 
9304
  ;
 
9305
  return 0;
 
9306
}
 
9307
_ACEOF
 
9308
if ac_fn_c_try_compile "$LINENO"; then :
 
9309
  # It does; now see whether it defined to _BIG_ENDIAN or not.
 
9310
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9311
/* end confdefs.h.  */
 
9312
#include <limits.h>
 
9313
 
 
9314
int
 
9315
main (void)
 
9316
{
 
9317
#ifndef _BIG_ENDIAN
 
9318
                 not big endian
 
9319
                #endif
 
9320
 
 
9321
  ;
 
9322
  return 0;
 
9323
}
 
9324
_ACEOF
 
9325
if ac_fn_c_try_compile "$LINENO"; then :
 
9326
  ac_cv_c_bigendian=yes
 
9327
else
 
9328
  ac_cv_c_bigendian=no
 
9329
fi
 
9330
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9331
fi
 
9332
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9333
    fi
 
9334
    if test $ac_cv_c_bigendian = unknown; then
 
9335
      # Compile a test program.
 
9336
      if test "$cross_compiling" = yes; then :
 
9337
  # Try to guess by grepping values from an object file.
 
9338
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9339
/* end confdefs.h.  */
 
9340
short int ascii_mm[] =
 
9341
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
9342
                short int ascii_ii[] =
 
9343
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
9344
                int use_ascii (int i) {
 
9345
                  return ascii_mm[i] + ascii_ii[i];
 
9346
                }
 
9347
                short int ebcdic_ii[] =
 
9348
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
9349
                short int ebcdic_mm[] =
 
9350
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
9351
                int use_ebcdic (int i) {
 
9352
                  return ebcdic_mm[i] + ebcdic_ii[i];
 
9353
                }
 
9354
                extern int foo;
 
9355
 
 
9356
int
 
9357
main (void)
 
9358
{
 
9359
return use_ascii (foo) == use_ebcdic (foo);
 
9360
  ;
 
9361
  return 0;
 
9362
}
 
9363
_ACEOF
 
9364
if ac_fn_c_try_compile "$LINENO"; then :
 
9365
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
 
9366
              ac_cv_c_bigendian=yes
 
9367
            fi
 
9368
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
9369
              if test "$ac_cv_c_bigendian" = unknown; then
 
9370
                ac_cv_c_bigendian=no
 
9371
              else
 
9372
                # finding both strings is unlikely to happen, but who knows?
 
9373
                ac_cv_c_bigendian=unknown
 
9374
              fi
 
9375
            fi
 
9376
fi
 
9377
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9378
else
 
9379
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9380
/* end confdefs.h.  */
 
9381
$ac_includes_default
 
9382
int
 
9383
main (void)
 
9384
{
 
9385
 
 
9386
             /* Are we little or big endian?  From Harbison&Steele.  */
 
9387
             union
 
9388
             {
 
9389
               long int l;
 
9390
               char c[sizeof (long int)];
 
9391
             } u;
 
9392
             u.l = 1;
 
9393
             return u.c[sizeof (long int) - 1] == 1;
 
9394
 
 
9395
  ;
 
9396
  return 0;
 
9397
}
 
9398
_ACEOF
 
9399
if ac_fn_c_try_run "$LINENO"; then :
 
9400
  ac_cv_c_bigendian=no
 
9401
else
 
9402
  ac_cv_c_bigendian=yes
 
9403
fi
 
9404
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
9405
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
9406
fi
 
9407
 
 
9408
    fi
 
9409
fi
 
9410
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
 
9411
$as_echo "$ac_cv_c_bigendian" >&6; }
 
9412
 case $ac_cv_c_bigendian in #(
 
9413
   yes)
 
9414
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
 
9415
;; #(
 
9416
   no)
 
9417
      ;; #(
 
9418
   universal)
 
9419
 
 
9420
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
 
9421
 
 
9422
     ;; #(
 
9423
   *)
 
9424
     as_fn_error $? "unknown endianness
 
9425
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
 
9426
 esac
 
9427
 
 
9428
# The cast to long int works around a bug in the HP C Compiler
 
9429
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
9430
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
9431
# This bug is HP SR number 8606223364.
 
9432
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
 
9433
$as_echo_n "checking size of void *... " >&6; }
 
9434
if test "${ac_cv_sizeof_void_p+set}" = set; then :
 
9435
  $as_echo_n "(cached) " >&6
 
9436
else
 
9437
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
 
9438
 
 
9439
else
 
9440
  if test "$ac_cv_type_void_p" = yes; then
 
9441
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
9442
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
9443
as_fn_error 77 "cannot compute sizeof (void *)
 
9444
See \`config.log' for more details" "$LINENO" 5 ; }
 
9445
   else
 
9446
     ac_cv_sizeof_void_p=0
 
9447
   fi
 
9448
fi
 
9449
 
 
9450
fi
 
9451
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
 
9452
$as_echo "$ac_cv_sizeof_void_p" >&6; }
 
9453
 
 
9454
 
 
9455
 
 
9456
cat >>confdefs.h <<_ACEOF
 
9457
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
 
9458
_ACEOF
 
9459
 
 
9460
 
 
9461
# The cast to long int works around a bug in the HP C Compiler
 
9462
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
9463
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
9464
# This bug is HP SR number 8606223364.
 
9465
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
 
9466
$as_echo_n "checking size of long... " >&6; }
 
9467
if test "${ac_cv_sizeof_long+set}" = set; then :
 
9468
  $as_echo_n "(cached) " >&6
 
9469
else
 
9470
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
 
9471
 
 
9472
else
 
9473
  if test "$ac_cv_type_long" = yes; then
 
9474
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
9475
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
9476
as_fn_error 77 "cannot compute sizeof (long)
 
9477
See \`config.log' for more details" "$LINENO" 5 ; }
 
9478
   else
 
9479
     ac_cv_sizeof_long=0
 
9480
   fi
 
9481
fi
 
9482
 
 
9483
fi
 
9484
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
 
9485
$as_echo "$ac_cv_sizeof_long" >&6; }
 
9486
 
 
9487
 
 
9488
 
 
9489
cat >>confdefs.h <<_ACEOF
 
9490
#define SIZEOF_LONG $ac_cv_sizeof_long
 
9491
_ACEOF
 
9492
 
 
9493
 
 
9494
 
 
9495
 
 
9496
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler is apple cc" >&5
 
9497
$as_echo_n "checking whether our compiler is apple cc... " >&6; }
 
9498
if test "${grub_cv_apple_cc+set}" = set; then :
 
9499
  $as_echo_n "(cached) " >&6
 
9500
else
 
9501
  if $CC -v 2>&1 | grep "Apple Inc." > /dev/null; then
 
9502
  grub_cv_apple_cc=yes
 
9503
else
 
9504
  grub_cv_apple_cc=no
 
9505
fi
 
9506
 
 
9507
fi
 
9508
 
 
9509
 
 
9510
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_apple_cc" >&5
 
9511
$as_echo "$grub_cv_apple_cc" >&6; }
 
9512
if test x$grub_cv_apple_cc = xyes ; then
 
9513
  HOST_CPPFLAGS="$HOST_CPPFLAGS -DAPPLE_CC=1"
 
9514
  HOST_CFLAGS="$HOST_CFLAGS -fnested-functions"
 
9515
fi
 
9516
 
 
9517
if test "x$cross_compiling" = xyes; then
 
9518
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot generate manual pages while cross compiling" >&5
 
9519
$as_echo "$as_me: WARNING: cannot generate manual pages while cross compiling" >&2;}
 
9520
else
 
9521
  # Extract the first word of "help2man", so it can be a program name with args.
 
9522
set dummy help2man; ac_word=$2
 
9523
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
9524
$as_echo_n "checking for $ac_word... " >&6; }
 
9525
if test "${ac_cv_path_HELP2MAN+set}" = set; then :
 
9526
  $as_echo_n "(cached) " >&6
 
9527
else
 
9528
  case $HELP2MAN in
 
9529
  [\\/]* | ?:[\\/]*)
 
9530
  ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
 
9531
  ;;
 
9532
  *)
 
9533
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9534
for as_dir in $PATH
 
9535
do
 
9536
  IFS=$as_save_IFS
 
9537
  test -z "$as_dir" && as_dir=.
 
9538
    for ac_exec_ext in '' $ac_executable_extensions; do
 
9539
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
9540
    ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
 
9541
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9542
    break 2
 
9543
  fi
 
9544
done
 
9545
  done
 
9546
IFS=$as_save_IFS
 
9547
 
 
9548
  ;;
 
9549
esac
 
9550
fi
 
9551
HELP2MAN=$ac_cv_path_HELP2MAN
 
9552
if test -n "$HELP2MAN"; then
 
9553
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
 
9554
$as_echo "$HELP2MAN" >&6; }
 
9555
else
 
9556
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
9557
$as_echo "no" >&6; }
 
9558
fi
 
9559
 
 
9560
 
 
9561
fi
 
9562
 
 
9563
# Check for functions and headers.
 
9564
for ac_func in posix_memalign memalign asprintf vasprintf getextmntent
 
9565
do :
 
9566
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9567
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
9568
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
9569
  cat >>confdefs.h <<_ACEOF
 
9570
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
9571
_ACEOF
 
9572
 
 
9573
fi
 
9574
done
 
9575
 
 
9576
for ac_header in libzfs.h libnvpair.h sys/param.h sys/mount.h sys/mnttab.h sys/mkdev.h
 
9577
do :
 
9578
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9579
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
9580
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
9581
  cat >>confdefs.h <<_ACEOF
 
9582
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9583
_ACEOF
 
9584
 
 
9585
fi
 
9586
 
 
9587
done
 
9588
 
 
9589
 
 
9590
ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "$ac_includes_default
 
9591
#include <sys/param.h>
 
9592
#include <sys/mount.h>
 
9593
"
 
9594
if test "x$ac_cv_member_struct_statfs_f_fstypename" = x""yes; then :
 
9595
 
 
9596
cat >>confdefs.h <<_ACEOF
 
9597
#define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
 
9598
_ACEOF
 
9599
 
 
9600
 
 
9601
fi
 
9602
 
 
9603
 
 
9604
ac_fn_c_check_member "$LINENO" "struct statfs" "f_mntfromname" "ac_cv_member_struct_statfs_f_mntfromname" "$ac_includes_default
 
9605
#include <sys/param.h>
 
9606
#include <sys/mount.h>
 
9607
"
 
9608
if test "x$ac_cv_member_struct_statfs_f_mntfromname" = x""yes; then :
 
9609
 
 
9610
cat >>confdefs.h <<_ACEOF
 
9611
#define HAVE_STRUCT_STATFS_F_MNTFROMNAME 1
 
9612
_ACEOF
 
9613
 
 
9614
 
 
9615
fi
 
9616
 
 
9617
 
 
9618
# For opendisk() and getrawpartition() on NetBSD.
 
9619
# Used in util/deviceiter.c and in util/hostdisk.c.
 
9620
ac_fn_c_check_header_mongrel "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default"
 
9621
if test "x$ac_cv_header_util_h" = x""yes; then :
 
9622
 
 
9623
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opendisk in -lutil" >&5
 
9624
$as_echo_n "checking for opendisk in -lutil... " >&6; }
 
9625
if test "${ac_cv_lib_util_opendisk+set}" = set; then :
 
9626
  $as_echo_n "(cached) " >&6
 
9627
else
 
9628
  ac_check_lib_save_LIBS=$LIBS
 
9629
LIBS="-lutil  $LIBS"
 
9630
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9631
/* end confdefs.h.  */
 
9632
 
 
9633
/* Override any GCC internal prototype to avoid an error.
 
9634
   Use char because int might match the return type of a GCC
 
9635
   builtin and then its argument prototype would still apply.  */
 
9636
#ifdef __cplusplus
 
9637
extern "C"
 
9638
#endif
 
9639
char opendisk ();
 
9640
int
 
9641
main (void)
 
9642
{
 
9643
return opendisk ();
 
9644
  ;
 
9645
  return 0;
 
9646
}
 
9647
_ACEOF
 
9648
if ac_fn_c_try_link "$LINENO"; then :
 
9649
  ac_cv_lib_util_opendisk=yes
 
9650
else
 
9651
  ac_cv_lib_util_opendisk=no
 
9652
fi
 
9653
rm -f core conftest.err conftest.$ac_objext \
 
9654
    conftest$ac_exeext conftest.$ac_ext
 
9655
LIBS=$ac_check_lib_save_LIBS
 
9656
fi
 
9657
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_opendisk" >&5
 
9658
$as_echo "$ac_cv_lib_util_opendisk" >&6; }
 
9659
if test "x$ac_cv_lib_util_opendisk" = x""yes; then :
 
9660
 
 
9661
    LIBUTIL="-lutil"
 
9662
 
 
9663
$as_echo "#define HAVE_OPENDISK 1" >>confdefs.h
 
9664
 
 
9665
 
 
9666
fi
 
9667
 
 
9668
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getrawpartition in -lutil" >&5
 
9669
$as_echo_n "checking for getrawpartition in -lutil... " >&6; }
 
9670
if test "${ac_cv_lib_util_getrawpartition+set}" = set; then :
 
9671
  $as_echo_n "(cached) " >&6
 
9672
else
 
9673
  ac_check_lib_save_LIBS=$LIBS
 
9674
LIBS="-lutil  $LIBS"
 
9675
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9676
/* end confdefs.h.  */
 
9677
 
 
9678
/* Override any GCC internal prototype to avoid an error.
 
9679
   Use char because int might match the return type of a GCC
 
9680
   builtin and then its argument prototype would still apply.  */
 
9681
#ifdef __cplusplus
 
9682
extern "C"
 
9683
#endif
 
9684
char getrawpartition ();
 
9685
int
 
9686
main (void)
 
9687
{
 
9688
return getrawpartition ();
 
9689
  ;
 
9690
  return 0;
 
9691
}
 
9692
_ACEOF
 
9693
if ac_fn_c_try_link "$LINENO"; then :
 
9694
  ac_cv_lib_util_getrawpartition=yes
 
9695
else
 
9696
  ac_cv_lib_util_getrawpartition=no
 
9697
fi
 
9698
rm -f core conftest.err conftest.$ac_objext \
 
9699
    conftest$ac_exeext conftest.$ac_ext
 
9700
LIBS=$ac_check_lib_save_LIBS
 
9701
fi
 
9702
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getrawpartition" >&5
 
9703
$as_echo "$ac_cv_lib_util_getrawpartition" >&6; }
 
9704
if test "x$ac_cv_lib_util_getrawpartition" = x""yes; then :
 
9705
 
 
9706
    LIBUTIL="-lutil"
 
9707
 
 
9708
$as_echo "#define HAVE_GETRAWPARTITION 1" >>confdefs.h
 
9709
 
 
9710
 
 
9711
fi
 
9712
 
 
9713
 
 
9714
fi
 
9715
 
 
9716
 
 
9717
 
 
9718
 
 
9719
#
 
9720
# Check for host and build compilers.
 
9721
#
 
9722
HOST_CC=$CC
 
9723
for ac_prog in gcc egcs cc
 
9724
do
 
9725
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
9726
set dummy $ac_prog; ac_word=$2
 
9727
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
9728
$as_echo_n "checking for $ac_word... " >&6; }
 
9729
if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
 
9730
  $as_echo_n "(cached) " >&6
 
9731
else
 
9732
  if test -n "$BUILD_CC"; then
 
9733
  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
 
9734
else
 
9735
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9736
for as_dir in $PATH
 
9737
do
 
9738
  IFS=$as_save_IFS
 
9739
  test -z "$as_dir" && as_dir=.
 
9740
    for ac_exec_ext in '' $ac_executable_extensions; do
 
9741
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
9742
    ac_cv_prog_BUILD_CC="$ac_prog"
 
9743
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9744
    break 2
 
9745
  fi
 
9746
done
 
9747
  done
 
9748
IFS=$as_save_IFS
 
9749
 
 
9750
fi
 
9751
fi
 
9752
BUILD_CC=$ac_cv_prog_BUILD_CC
 
9753
if test -n "$BUILD_CC"; then
 
9754
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
 
9755
$as_echo "$BUILD_CC" >&6; }
 
9756
else
 
9757
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
9758
$as_echo "no" >&6; }
 
9759
fi
 
9760
 
 
9761
 
 
9762
  test -n "$BUILD_CC" && break
 
9763
done
 
9764
test -n "$BUILD_CC" || BUILD_CC="as_fn_error $? "none of gcc, egcs and cc is found. set BUILD_CC manually." "$LINENO" 5 "
 
9765
 
 
9766
 
 
9767
# For gnulib.
 
9768
 
 
9769
 
 
9770
 
 
9771
 
 
9772
          LIBC_FATAL_STDERR_=1
 
9773
  export LIBC_FATAL_STDERR_
 
9774
 
 
9775
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 
9776
# for constant arguments.  Useless!
 
9777
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
 
9778
$as_echo_n "checking for working alloca.h... " >&6; }
 
9779
if test "${ac_cv_working_alloca_h+set}" = set; then :
 
9780
  $as_echo_n "(cached) " >&6
 
9781
else
 
9782
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9783
/* end confdefs.h.  */
 
9784
#include <alloca.h>
 
9785
int
 
9786
main (void)
 
9787
{
 
9788
char *p = (char *) alloca (2 * sizeof (int));
 
9789
                          if (p) return 0;
 
9790
  ;
 
9791
  return 0;
 
9792
}
 
9793
_ACEOF
 
9794
if ac_fn_c_try_link "$LINENO"; then :
 
9795
  ac_cv_working_alloca_h=yes
 
9796
else
 
9797
  ac_cv_working_alloca_h=no
 
9798
fi
 
9799
rm -f core conftest.err conftest.$ac_objext \
 
9800
    conftest$ac_exeext conftest.$ac_ext
 
9801
fi
 
9802
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
 
9803
$as_echo "$ac_cv_working_alloca_h" >&6; }
 
9804
if test $ac_cv_working_alloca_h = yes; then
 
9805
 
 
9806
$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
 
9807
 
 
9808
fi
 
9809
 
 
9810
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
 
9811
$as_echo_n "checking for alloca... " >&6; }
 
9812
if test "${ac_cv_func_alloca_works+set}" = set; then :
 
9813
  $as_echo_n "(cached) " >&6
 
9814
else
 
9815
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9816
/* end confdefs.h.  */
 
9817
#ifdef __GNUC__
 
9818
# define alloca __builtin_alloca
 
9819
#else
 
9820
# ifdef _MSC_VER
 
9821
#  include <malloc.h>
 
9822
#  define alloca _alloca
 
9823
# else
 
9824
#  ifdef HAVE_ALLOCA_H
 
9825
#   include <alloca.h>
 
9826
#  else
 
9827
#   ifdef _AIX
 
9828
 #pragma alloca
 
9829
#   else
 
9830
#    ifndef alloca /* predefined by HP cc +Olibcalls */
 
9831
char *alloca ();
 
9832
#    endif
 
9833
#   endif
 
9834
#  endif
 
9835
# endif
 
9836
#endif
 
9837
 
 
9838
int
 
9839
main (void)
 
9840
{
 
9841
char *p = (char *) alloca (1);
 
9842
                                    if (p) return 0;
 
9843
  ;
 
9844
  return 0;
 
9845
}
 
9846
_ACEOF
 
9847
if ac_fn_c_try_link "$LINENO"; then :
 
9848
  ac_cv_func_alloca_works=yes
 
9849
else
 
9850
  ac_cv_func_alloca_works=no
 
9851
fi
 
9852
rm -f core conftest.err conftest.$ac_objext \
 
9853
    conftest$ac_exeext conftest.$ac_ext
 
9854
fi
 
9855
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
 
9856
$as_echo "$ac_cv_func_alloca_works" >&6; }
 
9857
 
 
9858
if test $ac_cv_func_alloca_works = yes; then
 
9859
 
 
9860
$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
 
9861
 
 
9862
else
 
9863
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
 
9864
# that cause trouble.  Some versions do not even contain alloca or
 
9865
# contain a buggy version.  If you still want to use their alloca,
 
9866
# use ar to extract alloca.o from them instead of compiling alloca.c.
 
9867
 
 
9868
 
 
9869
 
 
9870
 
 
9871
 
 
9872
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
 
9873
 
 
9874
$as_echo "#define C_ALLOCA 1" >>confdefs.h
 
9875
 
 
9876
 
 
9877
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
 
9878
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
 
9879
if test "${ac_cv_os_cray+set}" = set; then :
 
9880
  $as_echo_n "(cached) " >&6
 
9881
else
 
9882
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9883
/* end confdefs.h.  */
 
9884
#if defined CRAY && ! defined CRAY2
 
9885
webecray
 
9886
#else
 
9887
wenotbecray
 
9888
#endif
 
9889
 
 
9890
_ACEOF
 
9891
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
9892
  $EGREP "webecray" >/dev/null 2>&1; then :
 
9893
  ac_cv_os_cray=yes
 
9894
else
 
9895
  ac_cv_os_cray=no
 
9896
fi
 
9897
rm -f conftest*
 
9898
 
 
9899
fi
 
9900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
 
9901
$as_echo "$ac_cv_os_cray" >&6; }
 
9902
if test $ac_cv_os_cray = yes; then
 
9903
  for ac_func in _getb67 GETB67 getb67; do
 
9904
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9905
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
9906
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
9907
 
 
9908
cat >>confdefs.h <<_ACEOF
 
9909
#define CRAY_STACKSEG_END $ac_func
 
9910
_ACEOF
 
9911
 
 
9912
    break
 
9913
fi
 
9914
 
 
9915
  done
 
9916
fi
 
9917
 
 
9918
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
 
9919
$as_echo_n "checking stack direction for C alloca... " >&6; }
 
9920
if test "${ac_cv_c_stack_direction+set}" = set; then :
 
9921
  $as_echo_n "(cached) " >&6
 
9922
else
 
9923
  if test "$cross_compiling" = yes; then :
 
9924
  ac_cv_c_stack_direction=0
 
9925
else
 
9926
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9927
/* end confdefs.h.  */
 
9928
$ac_includes_default
 
9929
int
 
9930
find_stack_direction ()
 
9931
{
 
9932
  static char *addr = 0;
 
9933
  auto char dummy;
 
9934
  if (addr == 0)
 
9935
    {
 
9936
      addr = &dummy;
 
9937
      return find_stack_direction ();
 
9938
    }
 
9939
  else
 
9940
    return (&dummy > addr) ? 1 : -1;
 
9941
}
 
9942
 
 
9943
int
 
9944
main ()
 
9945
{
 
9946
  return find_stack_direction () < 0;
 
9947
}
 
9948
_ACEOF
 
9949
if ac_fn_c_try_run "$LINENO"; then :
 
9950
  ac_cv_c_stack_direction=1
 
9951
else
 
9952
  ac_cv_c_stack_direction=-1
 
9953
fi
 
9954
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
9955
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
9956
fi
 
9957
 
 
9958
fi
 
9959
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
 
9960
$as_echo "$ac_cv_c_stack_direction" >&6; }
 
9961
cat >>confdefs.h <<_ACEOF
 
9962
#define STACK_DIRECTION $ac_cv_c_stack_direction
 
9963
_ACEOF
 
9964
 
 
9965
 
 
9966
fi
 
9967
 
 
9968
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
 
9969
$as_echo_n "checking for inline... " >&6; }
 
9970
if test "${ac_cv_c_inline+set}" = set; then :
 
9971
  $as_echo_n "(cached) " >&6
 
9972
else
 
9973
  ac_cv_c_inline=no
 
9974
for ac_kw in inline __inline__ __inline; do
 
9975
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9976
/* end confdefs.h.  */
 
9977
#ifndef __cplusplus
 
9978
typedef int foo_t;
 
9979
static $ac_kw foo_t static_foo () {return 0; }
 
9980
$ac_kw foo_t foo () {return 0; }
 
9981
#endif
 
9982
 
 
9983
_ACEOF
 
9984
if ac_fn_c_try_compile "$LINENO"; then :
 
9985
  ac_cv_c_inline=$ac_kw
 
9986
fi
 
9987
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9988
  test "$ac_cv_c_inline" != no && break
 
9989
done
 
9990
 
 
9991
fi
 
9992
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
 
9993
$as_echo "$ac_cv_c_inline" >&6; }
 
9994
 
 
9995
case $ac_cv_c_inline in
 
9996
  inline | yes) ;;
 
9997
  *)
 
9998
    case $ac_cv_c_inline in
 
9999
      no) ac_val=;;
 
10000
      *) ac_val=$ac_cv_c_inline;;
 
10001
    esac
 
10002
    cat >>confdefs.h <<_ACEOF
 
10003
#ifndef __cplusplus
 
10004
#define inline $ac_val
 
10005
#endif
 
10006
_ACEOF
 
10007
    ;;
 
10008
esac
 
10009
 
 
10010
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
 
10011
$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
 
10012
if test "${ac_cv_c_restrict+set}" = set; then :
 
10013
  $as_echo_n "(cached) " >&6
 
10014
else
 
10015
  ac_cv_c_restrict=no
 
10016
   # The order here caters to the fact that C++ does not require restrict.
 
10017
   for ac_kw in __restrict __restrict__ _Restrict restrict; do
 
10018
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10019
/* end confdefs.h.  */
 
10020
typedef int * int_ptr;
 
10021
        int foo (int_ptr $ac_kw ip) {
 
10022
        return ip[0];
 
10023
       }
 
10024
int
 
10025
main (void)
 
10026
{
 
10027
int s[1];
 
10028
        int * $ac_kw t = s;
 
10029
        t[0] = 0;
 
10030
        return foo(t)
 
10031
  ;
 
10032
  return 0;
 
10033
}
 
10034
_ACEOF
 
10035
if ac_fn_c_try_compile "$LINENO"; then :
 
10036
  ac_cv_c_restrict=$ac_kw
 
10037
fi
 
10038
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10039
     test "$ac_cv_c_restrict" != no && break
 
10040
   done
 
10041
 
 
10042
fi
 
10043
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
 
10044
$as_echo "$ac_cv_c_restrict" >&6; }
 
10045
 
 
10046
 case $ac_cv_c_restrict in
 
10047
   restrict) ;;
 
10048
   no) $as_echo "#define restrict /**/" >>confdefs.h
 
10049
 ;;
 
10050
   *)  cat >>confdefs.h <<_ACEOF
 
10051
#define restrict $ac_cv_c_restrict
 
10052
_ACEOF
 
10053
 ;;
 
10054
 esac
 
10055
 
 
10056
ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
 
10057
if test "x$ac_cv_have_decl_getenv" = x""yes; then :
 
10058
  ac_have_decl=1
 
10059
else
 
10060
  ac_have_decl=0
 
10061
fi
 
10062
 
 
10063
cat >>confdefs.h <<_ACEOF
 
10064
#define HAVE_DECL_GETENV $ac_have_decl
 
10065
_ACEOF
 
10066
 
 
10067
ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
 
10068
if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then :
 
10069
  ac_have_decl=1
 
10070
else
 
10071
  ac_have_decl=0
 
10072
fi
 
10073
 
 
10074
cat >>confdefs.h <<_ACEOF
 
10075
#define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
 
10076
_ACEOF
 
10077
 
 
10078
ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
 
10079
if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then :
 
10080
  ac_have_decl=1
 
10081
else
 
10082
  ac_have_decl=0
 
10083
fi
 
10084
 
 
10085
cat >>confdefs.h <<_ACEOF
 
10086
#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
 
10087
_ACEOF
 
10088
 
 
10089
ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
 
10090
if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then :
 
10091
  ac_have_decl=1
 
10092
else
 
10093
  ac_have_decl=0
 
10094
fi
 
10095
 
 
10096
cat >>confdefs.h <<_ACEOF
 
10097
#define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
 
10098
_ACEOF
 
10099
 
 
10100
ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
 
10101
if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then :
 
10102
  ac_have_decl=1
 
10103
else
 
10104
  ac_have_decl=0
 
10105
fi
 
10106
 
 
10107
cat >>confdefs.h <<_ACEOF
 
10108
#define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
 
10109
_ACEOF
 
10110
 
 
10111
ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
 
10112
if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then :
 
10113
  ac_have_decl=1
 
10114
else
 
10115
  ac_have_decl=0
 
10116
fi
 
10117
 
 
10118
cat >>confdefs.h <<_ACEOF
 
10119
#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
 
10120
_ACEOF
 
10121
 
 
10122
ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
 
10123
if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then :
 
10124
  ac_have_decl=1
 
10125
else
 
10126
  ac_have_decl=0
 
10127
fi
 
10128
 
 
10129
cat >>confdefs.h <<_ACEOF
 
10130
#define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
 
10131
_ACEOF
 
10132
 
 
10133
ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
 
10134
if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then :
 
10135
  ac_have_decl=1
 
10136
else
 
10137
  ac_have_decl=0
 
10138
fi
 
10139
 
 
10140
cat >>confdefs.h <<_ACEOF
 
10141
#define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
 
10142
_ACEOF
 
10143
 
 
10144
ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
 
10145
if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then :
 
10146
  ac_have_decl=1
 
10147
else
 
10148
  ac_have_decl=0
 
10149
fi
 
10150
 
 
10151
cat >>confdefs.h <<_ACEOF
 
10152
#define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
 
10153
_ACEOF
 
10154
 
 
10155
ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
 
10156
if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then :
 
10157
  ac_have_decl=1
 
10158
else
 
10159
  ac_have_decl=0
 
10160
fi
 
10161
 
 
10162
cat >>confdefs.h <<_ACEOF
 
10163
#define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
 
10164
_ACEOF
 
10165
 
 
10166
ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
 
10167
if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
 
10168
  ac_have_decl=1
 
10169
else
 
10170
  ac_have_decl=0
 
10171
fi
 
10172
 
 
10173
cat >>confdefs.h <<_ACEOF
 
10174
#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
 
10175
_ACEOF
 
10176
 
 
10177
ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
 
10178
if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then :
 
10179
  ac_have_decl=1
 
10180
else
 
10181
  ac_have_decl=0
 
10182
fi
 
10183
 
 
10184
cat >>confdefs.h <<_ACEOF
 
10185
#define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
 
10186
_ACEOF
 
10187
 
 
10188
ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
 
10189
if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then :
 
10190
  ac_have_decl=1
 
10191
else
 
10192
  ac_have_decl=0
 
10193
fi
 
10194
 
 
10195
cat >>confdefs.h <<_ACEOF
 
10196
#define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
 
10197
_ACEOF
 
10198
 
 
10199
ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
 
10200
if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then :
 
10201
  ac_have_decl=1
 
10202
else
 
10203
  ac_have_decl=0
 
10204
fi
 
10205
 
 
10206
cat >>confdefs.h <<_ACEOF
 
10207
#define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
 
10208
_ACEOF
 
10209
 
 
10210
 
 
10211
 
 
10212
 
 
10213
  for ac_func in $ac_func_list
 
10214
do :
 
10215
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
10216
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
10217
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
10218
  cat >>confdefs.h <<_ACEOF
 
10219
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
10220
_ACEOF
 
10221
 
 
10222
fi
 
10223
done
 
10224
 
 
10225
 
 
10226
 
 
10227
 
 
10228
 
 
10229
 
 
10230
 
 
10231
 
 
10232
  for ac_header in $ac_header_list
 
10233
do :
 
10234
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
10235
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
10236
"
 
10237
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
10238
  cat >>confdefs.h <<_ACEOF
 
10239
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
10240
_ACEOF
 
10241
 
 
10242
fi
 
10243
 
 
10244
done
 
10245
 
 
10246
 
 
10247
 
 
10248
 
 
10249
 
 
10250
 
 
10251
  XGETTEXT_EXTRA_OPTIONS=
 
10252
 
 
10253
 
 
10254
  GNULIB_BTOWC=0;
 
10255
  GNULIB_WCTOB=0;
 
10256
  GNULIB_MBSINIT=0;
 
10257
  GNULIB_MBRTOWC=0;
 
10258
  GNULIB_MBRLEN=0;
 
10259
  GNULIB_MBSRTOWCS=0;
 
10260
  GNULIB_MBSNRTOWCS=0;
 
10261
  GNULIB_WCRTOMB=0;
 
10262
  GNULIB_WCSRTOMBS=0;
 
10263
  GNULIB_WCSNRTOMBS=0;
 
10264
  GNULIB_WCWIDTH=0;
 
10265
    HAVE_BTOWC=1;
 
10266
  HAVE_MBSINIT=1;
 
10267
  HAVE_MBRTOWC=1;
 
10268
  HAVE_MBRLEN=1;
 
10269
  HAVE_MBSRTOWCS=1;
 
10270
  HAVE_MBSNRTOWCS=1;
 
10271
  HAVE_WCRTOMB=1;
 
10272
  HAVE_WCSRTOMBS=1;
 
10273
  HAVE_WCSNRTOMBS=1;
 
10274
  HAVE_DECL_WCTOB=1;
 
10275
  HAVE_DECL_WCWIDTH=1;
 
10276
  REPLACE_MBSTATE_T=0;
 
10277
  REPLACE_BTOWC=0;
 
10278
  REPLACE_WCTOB=0;
 
10279
  REPLACE_MBSINIT=0;
 
10280
  REPLACE_MBRTOWC=0;
 
10281
  REPLACE_MBRLEN=0;
 
10282
  REPLACE_MBSRTOWCS=0;
 
10283
  REPLACE_MBSNRTOWCS=0;
 
10284
  REPLACE_WCRTOMB=0;
 
10285
  REPLACE_WCSRTOMBS=0;
 
10286
  REPLACE_WCSNRTOMBS=0;
 
10287
  REPLACE_WCWIDTH=0;
 
10288
 
 
10289
 
 
10290
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
 
10291
$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
 
10292
if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
 
10293
  $as_echo_n "(cached) " >&6
 
10294
else
 
10295
  gl_cv_header_wchar_h_correct_inline=yes
 
10296
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10297
/* end confdefs.h.  */
 
10298
 
 
10299
       #define wcstod renamed_wcstod
 
10300
#include <wchar.h>
 
10301
extern int zero (void);
 
10302
int main () { return zero(); }
 
10303
 
 
10304
_ACEOF
 
10305
     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
10306
  (eval $ac_compile) 2>&5
 
10307
  ac_status=$?
 
10308
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10309
  test $ac_status = 0; }; then
 
10310
       mv conftest.$ac_objext conftest1.$ac_objext
 
10311
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10312
/* end confdefs.h.  */
 
10313
 
 
10314
         #define wcstod renamed_wcstod
 
10315
#include <wchar.h>
 
10316
int zero (void) { return 0; }
 
10317
 
 
10318
_ACEOF
 
10319
       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
10320
  (eval $ac_compile) 2>&5
 
10321
  ac_status=$?
 
10322
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10323
  test $ac_status = 0; }; then
 
10324
         mv conftest.$ac_objext conftest2.$ac_objext
 
10325
         if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
 
10326
           :
 
10327
         else
 
10328
           gl_cv_header_wchar_h_correct_inline=no
 
10329
         fi
 
10330
       fi
 
10331
     fi
 
10332
     rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
 
10333
 
 
10334
fi
 
10335
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
 
10336
$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
 
10337
  if test $gl_cv_header_wchar_h_correct_inline = no; then
 
10338
    as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
 
10339
This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
 
10340
C99 mode. You have four options:
 
10341
  - Add the flag -fgnu89-inline to CC and reconfigure, or
 
10342
  - Fix your include files, using parts of
 
10343
    <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
 
10344
  - Use a gcc version older than 4.3, or
 
10345
  - Don't use the flags -std=c99 or -std=gnu99.
 
10346
Configuration aborted." "$LINENO" 5
 
10347
  fi
 
10348
 
 
10349
 
 
10350
 
 
10351
 
 
10352
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
 
10353
$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
 
10354
if test "${am_cv_langinfo_codeset+set}" = set; then :
 
10355
  $as_echo_n "(cached) " >&6
 
10356
else
 
10357
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10358
/* end confdefs.h.  */
 
10359
#include <langinfo.h>
 
10360
int
 
10361
main (void)
 
10362
{
 
10363
char* cs = nl_langinfo(CODESET); return !cs;
 
10364
  ;
 
10365
  return 0;
 
10366
}
 
10367
_ACEOF
 
10368
if ac_fn_c_try_link "$LINENO"; then :
 
10369
  am_cv_langinfo_codeset=yes
 
10370
else
 
10371
  am_cv_langinfo_codeset=no
 
10372
fi
 
10373
rm -f core conftest.err conftest.$ac_objext \
 
10374
    conftest$ac_exeext conftest.$ac_ext
 
10375
 
 
10376
fi
 
10377
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
 
10378
$as_echo "$am_cv_langinfo_codeset" >&6; }
 
10379
  if test $am_cv_langinfo_codeset = yes; then
 
10380
 
 
10381
$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
 
10382
 
 
10383
  fi
 
10384
 
 
10385
 
 
10386
 
 
10387
 
 
10388
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
 
10389
$as_echo_n "checking for a traditional french locale... " >&6; }
 
10390
if test "${gt_cv_locale_fr+set}" = set; then :
 
10391
  $as_echo_n "(cached) " >&6
 
10392
else
 
10393
 
 
10394
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10395
/* end confdefs.h.  */
 
10396
 
 
10397
#include <locale.h>
 
10398
#include <time.h>
 
10399
#if HAVE_LANGINFO_CODESET
 
10400
# include <langinfo.h>
 
10401
#endif
 
10402
#include <stdlib.h>
 
10403
#include <string.h>
 
10404
struct tm t;
 
10405
char buf[16];
 
10406
int main () {
 
10407
  /* Check whether the given locale name is recognized by the system.  */
 
10408
  if (setlocale (LC_ALL, "") == NULL) return 1;
 
10409
  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
 
10410
     On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
 
10411
     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
 
10412
     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
 
10413
     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
 
10414
     some unit tests fail.  */
 
10415
#if HAVE_LANGINFO_CODESET
 
10416
  {
 
10417
    const char *cs = nl_langinfo (CODESET);
 
10418
    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
 
10419
      return 1;
 
10420
  }
 
10421
#endif
 
10422
#ifdef __CYGWIN__
 
10423
  /* On Cygwin, avoid locale names without encoding suffix, because the
 
10424
     locale_charset() function relies on the encoding suffix.  Note that
 
10425
     LC_ALL is set on the command line.  */
 
10426
  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
 
10427
#endif
 
10428
  /* Check whether in the abbreviation of the second month, the second
 
10429
     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
 
10430
     one byte long. This excludes the UTF-8 encoding.  */
 
10431
  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
 
10432
  if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
 
10433
  /* Check whether the decimal separator is a comma.
 
10434
     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
 
10435
     are nl_langinfo(RADIXCHAR) are both ".".  */
 
10436
  if (localeconv () ->decimal_point[0] != ',') return 1;
 
10437
  return 0;
 
10438
}
 
10439
 
 
10440
_ACEOF
 
10441
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
10442
  (eval $ac_link) 2>&5
 
10443
  ac_status=$?
 
10444
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10445
  test $ac_status = 0; } && test -s conftest$ac_exeext; then
 
10446
      # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
 
10447
      # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
 
10448
      # configure script would override the LC_ALL setting. Likewise for
 
10449
      # LC_CTYPE, which is also set at the beginning of the configure script.
 
10450
      # Test for the usual locale name.
 
10451
      if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
10452
        gt_cv_locale_fr=fr_FR
 
10453
      else
 
10454
        # Test for the locale name with explicit encoding suffix.
 
10455
        if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
10456
          gt_cv_locale_fr=fr_FR.ISO-8859-1
 
10457
        else
 
10458
          # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
 
10459
          if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
10460
            gt_cv_locale_fr=fr_FR.ISO8859-1
 
10461
          else
 
10462
            # Test for the HP-UX locale name.
 
10463
            if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
10464
              gt_cv_locale_fr=fr_FR.iso88591
 
10465
            else
 
10466
              # Test for the Solaris 7 locale name.
 
10467
              if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
10468
                gt_cv_locale_fr=fr
 
10469
              else
 
10470
                # None found.
 
10471
                gt_cv_locale_fr=none
 
10472
              fi
 
10473
            fi
 
10474
          fi
 
10475
        fi
 
10476
      fi
 
10477
    fi
 
10478
    rm -fr conftest*
 
10479
 
 
10480
fi
 
10481
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
 
10482
$as_echo "$gt_cv_locale_fr" >&6; }
 
10483
  LOCALE_FR=$gt_cv_locale_fr
 
10484
 
 
10485
 
 
10486
 
 
10487
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system is Windows or MSDOS" >&5
 
10488
$as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
 
10489
if test "${ac_cv_win_or_dos+set}" = set; then :
 
10490
  $as_echo_n "(cached) " >&6
 
10491
else
 
10492
 
 
10493
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10494
/* end confdefs.h.  */
 
10495
 
 
10496
int
 
10497
main (void)
 
10498
{
 
10499
 
 
10500
#if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
 
10501
neither MSDOS nor Windows
 
10502
#endif
 
10503
  ;
 
10504
  return 0;
 
10505
}
 
10506
_ACEOF
 
10507
if ac_fn_c_try_compile "$LINENO"; then :
 
10508
  ac_cv_win_or_dos=yes
 
10509
else
 
10510
  ac_cv_win_or_dos=no
 
10511
fi
 
10512
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10513
 
 
10514
fi
 
10515
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_win_or_dos" >&5
 
10516
$as_echo "$ac_cv_win_or_dos" >&6; }
 
10517
 
 
10518
    if test x"$ac_cv_win_or_dos" = xyes; then
 
10519
      ac_fs_accepts_drive_letter_prefix=1
 
10520
      ac_fs_backslash_is_file_name_separator=1
 
10521
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether drive letter can start relative path" >&5
 
10522
$as_echo_n "checking whether drive letter can start relative path... " >&6; }
 
10523
if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then :
 
10524
  $as_echo_n "(cached) " >&6
 
10525
else
 
10526
 
 
10527
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10528
/* end confdefs.h.  */
 
10529
 
 
10530
int
 
10531
main (void)
 
10532
{
 
10533
 
 
10534
#if defined __CYGWIN__
 
10535
drive letters are always absolute
 
10536
#endif
 
10537
  ;
 
10538
  return 0;
 
10539
}
 
10540
_ACEOF
 
10541
if ac_fn_c_try_compile "$LINENO"; then :
 
10542
  ac_cv_drive_letter_can_be_relative=yes
 
10543
else
 
10544
  ac_cv_drive_letter_can_be_relative=no
 
10545
fi
 
10546
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10547
 
 
10548
fi
 
10549
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_drive_letter_can_be_relative" >&5
 
10550
$as_echo "$ac_cv_drive_letter_can_be_relative" >&6; }
 
10551
      if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
 
10552
        ac_fs_drive_letter_can_be_relative=1
 
10553
      else
 
10554
        ac_fs_drive_letter_can_be_relative=0
 
10555
      fi
 
10556
    else
 
10557
      ac_fs_accepts_drive_letter_prefix=0
 
10558
      ac_fs_backslash_is_file_name_separator=0
 
10559
      ac_fs_drive_letter_can_be_relative=0
 
10560
    fi
 
10561
 
 
10562
 
 
10563
cat >>confdefs.h <<_ACEOF
 
10564
#define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
 
10565
_ACEOF
 
10566
 
 
10567
 
 
10568
 
 
10569
 
 
10570
 
 
10571
cat >>confdefs.h <<_ACEOF
 
10572
#define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
 
10573
_ACEOF
 
10574
 
 
10575
 
 
10576
 
 
10577
cat >>confdefs.h <<_ACEOF
 
10578
#define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
 
10579
_ACEOF
 
10580
 
 
10581
 
 
10582
 
 
10583
 
 
10584
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
 
10585
$as_echo_n "checking whether // is distinct from /... " >&6; }
 
10586
if test "${gl_cv_double_slash_root+set}" = set; then :
 
10587
  $as_echo_n "(cached) " >&6
 
10588
else
 
10589
   if test x"$cross_compiling" = xyes ; then
 
10590
        # When cross-compiling, there is no way to tell whether // is special
 
10591
        # short of a list of hosts.  However, the only known hosts to date
 
10592
        # that have a distinct // are Apollo DomainOS (too old to port to),
 
10593
        # Cygwin, and z/OS.  If anyone knows of another system for which // has
 
10594
        # special semantics and is distinct from /, please report it to
 
10595
        # <bug-gnulib@gnu.org>.
 
10596
        case $host in
 
10597
          *-cygwin | i370-ibm-openedition)
 
10598
            gl_cv_double_slash_root=yes ;;
 
10599
          *)
 
10600
            # Be optimistic and assume that / and // are the same when we
 
10601
            # don't know.
 
10602
            gl_cv_double_slash_root='unknown, assuming no' ;;
 
10603
        esac
 
10604
      else
 
10605
        set x `ls -di / // 2>/dev/null`
 
10606
        if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
 
10607
          gl_cv_double_slash_root=no
 
10608
        else
 
10609
          gl_cv_double_slash_root=yes
 
10610
        fi
 
10611
      fi
 
10612
fi
 
10613
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
 
10614
$as_echo "$gl_cv_double_slash_root" >&6; }
 
10615
  if test "$gl_cv_double_slash_root" = yes; then
 
10616
 
 
10617
$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
 
10618
 
 
10619
  fi
 
10620
 
 
10621
 
 
10622
 
 
10623
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
 
10624
$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
 
10625
if test "${gl_cv_have_include_next+set}" = set; then :
 
10626
  $as_echo_n "(cached) " >&6
 
10627
else
 
10628
  rm -rf conftestd1a conftestd1b conftestd2
 
10629
     mkdir conftestd1a conftestd1b conftestd2
 
10630
                                                  cat <<EOF > conftestd1a/conftest.h
 
10631
#define DEFINED_IN_CONFTESTD1
 
10632
#include_next <conftest.h>
 
10633
#ifdef DEFINED_IN_CONFTESTD2
 
10634
int foo;
 
10635
#else
 
10636
#error "include_next doesn't work"
 
10637
#endif
 
10638
EOF
 
10639
     cat <<EOF > conftestd1b/conftest.h
 
10640
#define DEFINED_IN_CONFTESTD1
 
10641
#include <stdio.h>
 
10642
#include_next <conftest.h>
 
10643
#ifdef DEFINED_IN_CONFTESTD2
 
10644
int foo;
 
10645
#else
 
10646
#error "include_next doesn't work"
 
10647
#endif
 
10648
EOF
 
10649
     cat <<EOF > conftestd2/conftest.h
 
10650
#ifndef DEFINED_IN_CONFTESTD1
 
10651
#error "include_next test doesn't work"
 
10652
#endif
 
10653
#define DEFINED_IN_CONFTESTD2
 
10654
EOF
 
10655
     gl_save_CPPFLAGS="$CPPFLAGS"
 
10656
     CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
 
10657
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10658
/* end confdefs.h.  */
 
10659
#include <conftest.h>
 
10660
_ACEOF
 
10661
if ac_fn_c_try_compile "$LINENO"; then :
 
10662
  gl_cv_have_include_next=yes
 
10663
else
 
10664
  CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
 
10665
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10666
/* end confdefs.h.  */
 
10667
#include <conftest.h>
 
10668
_ACEOF
 
10669
if ac_fn_c_try_compile "$LINENO"; then :
 
10670
  gl_cv_have_include_next=buggy
 
10671
else
 
10672
  gl_cv_have_include_next=no
 
10673
fi
 
10674
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10675
 
 
10676
fi
 
10677
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10678
     CPPFLAGS="$gl_save_CPPFLAGS"
 
10679
     rm -rf conftestd1a conftestd1b conftestd2
 
10680
 
 
10681
fi
 
10682
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
 
10683
$as_echo "$gl_cv_have_include_next" >&6; }
 
10684
  PRAGMA_SYSTEM_HEADER=
 
10685
  if test $gl_cv_have_include_next = yes; then
 
10686
    INCLUDE_NEXT=include_next
 
10687
    INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
 
10688
    if test -n "$GCC"; then
 
10689
      PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
 
10690
    fi
 
10691
  else
 
10692
    if test $gl_cv_have_include_next = buggy; then
 
10693
      INCLUDE_NEXT=include
 
10694
      INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
 
10695
    else
 
10696
      INCLUDE_NEXT=include
 
10697
      INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
 
10698
    fi
 
10699
  fi
 
10700
 
 
10701
 
 
10702
 
 
10703
 
 
10704
 
 
10705
 
 
10706
 
 
10707
 
 
10708
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
 
10709
$as_echo_n "checking for complete errno.h... " >&6; }
 
10710
if test "${gl_cv_header_errno_h_complete+set}" = set; then :
 
10711
  $as_echo_n "(cached) " >&6
 
10712
else
 
10713
 
 
10714
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10715
/* end confdefs.h.  */
 
10716
 
 
10717
#include <errno.h>
 
10718
#if !defined ENOMSG
 
10719
booboo
 
10720
#endif
 
10721
#if !defined EIDRM
 
10722
booboo
 
10723
#endif
 
10724
#if !defined ENOLINK
 
10725
booboo
 
10726
#endif
 
10727
#if !defined EPROTO
 
10728
booboo
 
10729
#endif
 
10730
#if !defined EMULTIHOP
 
10731
booboo
 
10732
#endif
 
10733
#if !defined EBADMSG
 
10734
booboo
 
10735
#endif
 
10736
#if !defined EOVERFLOW
 
10737
booboo
 
10738
#endif
 
10739
#if !defined ENOTSUP
 
10740
booboo
 
10741
#endif
 
10742
#if !defined ESTALE
 
10743
booboo
 
10744
#endif
 
10745
#if !defined ECANCELED
 
10746
booboo
 
10747
#endif
 
10748
 
 
10749
_ACEOF
 
10750
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
10751
  $EGREP "booboo" >/dev/null 2>&1; then :
 
10752
  gl_cv_header_errno_h_complete=no
 
10753
else
 
10754
  gl_cv_header_errno_h_complete=yes
 
10755
fi
 
10756
rm -f conftest*
 
10757
 
 
10758
 
 
10759
fi
 
10760
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
 
10761
$as_echo "$gl_cv_header_errno_h_complete" >&6; }
 
10762
  if test $gl_cv_header_errno_h_complete = yes; then
 
10763
    ERRNO_H=''
 
10764
  else
 
10765
 
 
10766
 
 
10767
 
 
10768
 
 
10769
 
 
10770
 
 
10771
     if test $gl_cv_have_include_next = yes; then
 
10772
       gl_cv_next_errno_h='<'errno.h'>'
 
10773
     else
 
10774
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
 
10775
$as_echo_n "checking absolute name of <errno.h>... " >&6; }
 
10776
if test "${gl_cv_next_errno_h+set}" = set; then :
 
10777
  $as_echo_n "(cached) " >&6
 
10778
else
 
10779
 
 
10780
          if test $ac_cv_header_errno_h = yes; then
 
10781
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10782
/* end confdefs.h.  */
 
10783
#include <errno.h>
 
10784
 
 
10785
_ACEOF
 
10786
                                                                                                case "$host_os" in
 
10787
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
10788
              *)    gl_absname_cpp="$ac_cpp" ;;
 
10789
            esac
 
10790
                                                gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
10791
               sed -n '\#/errno.h#{
 
10792
                 s#.*"\(.*/errno.h\)".*#\1#
 
10793
                 s#^/[^/]#//&#
 
10794
                 p
 
10795
                 q
 
10796
               }'`'"'
 
10797
          else
 
10798
            gl_cv_next_errno_h='<'errno.h'>'
 
10799
          fi
 
10800
 
 
10801
fi
 
10802
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
 
10803
$as_echo "$gl_cv_next_errno_h" >&6; }
 
10804
     fi
 
10805
     NEXT_ERRNO_H=$gl_cv_next_errno_h
 
10806
 
 
10807
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
10808
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
10809
       gl_next_as_first_directive='<'errno.h'>'
 
10810
     else
 
10811
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
10812
       gl_next_as_first_directive=$gl_cv_next_errno_h
 
10813
     fi
 
10814
     NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
 
10815
 
 
10816
 
 
10817
 
 
10818
    ERRNO_H='errno.h'
 
10819
  fi
 
10820
 
 
10821
 
 
10822
  if test -n "$ERRNO_H"; then
 
10823
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
 
10824
$as_echo_n "checking for EMULTIHOP value... " >&6; }
 
10825
if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
 
10826
  $as_echo_n "(cached) " >&6
 
10827
else
 
10828
 
 
10829
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10830
/* end confdefs.h.  */
 
10831
 
 
10832
#include <errno.h>
 
10833
#ifdef EMULTIHOP
 
10834
yes
 
10835
#endif
 
10836
 
 
10837
_ACEOF
 
10838
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
10839
  $EGREP "yes" >/dev/null 2>&1; then :
 
10840
  gl_cv_header_errno_h_EMULTIHOP=yes
 
10841
else
 
10842
  gl_cv_header_errno_h_EMULTIHOP=no
 
10843
fi
 
10844
rm -f conftest*
 
10845
 
 
10846
      if test $gl_cv_header_errno_h_EMULTIHOP = no; then
 
10847
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10848
/* end confdefs.h.  */
 
10849
 
 
10850
#define _XOPEN_SOURCE_EXTENDED 1
 
10851
#include <errno.h>
 
10852
#ifdef EMULTIHOP
 
10853
yes
 
10854
#endif
 
10855
 
 
10856
_ACEOF
 
10857
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
10858
  $EGREP "yes" >/dev/null 2>&1; then :
 
10859
  gl_cv_header_errno_h_EMULTIHOP=hidden
 
10860
fi
 
10861
rm -f conftest*
 
10862
 
 
10863
        if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
 
10864
                              if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
 
10865
#define _XOPEN_SOURCE_EXTENDED 1
 
10866
#include <errno.h>
 
10867
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
10868
#include <stdio.h>
 
10869
#include <stdlib.h>
 
10870
"; then :
 
10871
 
 
10872
fi
 
10873
 
 
10874
        fi
 
10875
      fi
 
10876
 
 
10877
fi
 
10878
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
 
10879
$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
 
10880
    case $gl_cv_header_errno_h_EMULTIHOP in
 
10881
      yes | no)
 
10882
        EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
 
10883
        ;;
 
10884
      *)
 
10885
        EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
 
10886
        ;;
 
10887
    esac
 
10888
 
 
10889
 
 
10890
  fi
 
10891
 
 
10892
 
 
10893
  if test -n "$ERRNO_H"; then
 
10894
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
 
10895
$as_echo_n "checking for ENOLINK value... " >&6; }
 
10896
if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
 
10897
  $as_echo_n "(cached) " >&6
 
10898
else
 
10899
 
 
10900
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10901
/* end confdefs.h.  */
 
10902
 
 
10903
#include <errno.h>
 
10904
#ifdef ENOLINK
 
10905
yes
 
10906
#endif
 
10907
 
 
10908
_ACEOF
 
10909
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
10910
  $EGREP "yes" >/dev/null 2>&1; then :
 
10911
  gl_cv_header_errno_h_ENOLINK=yes
 
10912
else
 
10913
  gl_cv_header_errno_h_ENOLINK=no
 
10914
fi
 
10915
rm -f conftest*
 
10916
 
 
10917
      if test $gl_cv_header_errno_h_ENOLINK = no; then
 
10918
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10919
/* end confdefs.h.  */
 
10920
 
 
10921
#define _XOPEN_SOURCE_EXTENDED 1
 
10922
#include <errno.h>
 
10923
#ifdef ENOLINK
 
10924
yes
 
10925
#endif
 
10926
 
 
10927
_ACEOF
 
10928
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
10929
  $EGREP "yes" >/dev/null 2>&1; then :
 
10930
  gl_cv_header_errno_h_ENOLINK=hidden
 
10931
fi
 
10932
rm -f conftest*
 
10933
 
 
10934
        if test $gl_cv_header_errno_h_ENOLINK = hidden; then
 
10935
                              if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
 
10936
#define _XOPEN_SOURCE_EXTENDED 1
 
10937
#include <errno.h>
 
10938
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
10939
#include <stdio.h>
 
10940
#include <stdlib.h>
 
10941
"; then :
 
10942
 
 
10943
fi
 
10944
 
 
10945
        fi
 
10946
      fi
 
10947
 
 
10948
fi
 
10949
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
 
10950
$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
 
10951
    case $gl_cv_header_errno_h_ENOLINK in
 
10952
      yes | no)
 
10953
        ENOLINK_HIDDEN=0; ENOLINK_VALUE=
 
10954
        ;;
 
10955
      *)
 
10956
        ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
 
10957
        ;;
 
10958
    esac
 
10959
 
 
10960
 
 
10961
  fi
 
10962
 
 
10963
 
 
10964
  if test -n "$ERRNO_H"; then
 
10965
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
 
10966
$as_echo_n "checking for EOVERFLOW value... " >&6; }
 
10967
if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
 
10968
  $as_echo_n "(cached) " >&6
 
10969
else
 
10970
 
 
10971
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10972
/* end confdefs.h.  */
 
10973
 
 
10974
#include <errno.h>
 
10975
#ifdef EOVERFLOW
 
10976
yes
 
10977
#endif
 
10978
 
 
10979
_ACEOF
 
10980
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
10981
  $EGREP "yes" >/dev/null 2>&1; then :
 
10982
  gl_cv_header_errno_h_EOVERFLOW=yes
 
10983
else
 
10984
  gl_cv_header_errno_h_EOVERFLOW=no
 
10985
fi
 
10986
rm -f conftest*
 
10987
 
 
10988
      if test $gl_cv_header_errno_h_EOVERFLOW = no; then
 
10989
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10990
/* end confdefs.h.  */
 
10991
 
 
10992
#define _XOPEN_SOURCE_EXTENDED 1
 
10993
#include <errno.h>
 
10994
#ifdef EOVERFLOW
 
10995
yes
 
10996
#endif
 
10997
 
 
10998
_ACEOF
 
10999
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
11000
  $EGREP "yes" >/dev/null 2>&1; then :
 
11001
  gl_cv_header_errno_h_EOVERFLOW=hidden
 
11002
fi
 
11003
rm -f conftest*
 
11004
 
 
11005
        if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
 
11006
                              if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
 
11007
#define _XOPEN_SOURCE_EXTENDED 1
 
11008
#include <errno.h>
 
11009
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
11010
#include <stdio.h>
 
11011
#include <stdlib.h>
 
11012
"; then :
 
11013
 
 
11014
fi
 
11015
 
 
11016
        fi
 
11017
      fi
 
11018
 
 
11019
fi
 
11020
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
 
11021
$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
 
11022
    case $gl_cv_header_errno_h_EOVERFLOW in
 
11023
      yes | no)
 
11024
        EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
 
11025
        ;;
 
11026
      *)
 
11027
        EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
 
11028
        ;;
 
11029
    esac
 
11030
 
 
11031
 
 
11032
  fi
 
11033
 
 
11034
 
 
11035
ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
 
11036
if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
 
11037
  ac_have_decl=1
 
11038
else
 
11039
  ac_have_decl=0
 
11040
fi
 
11041
 
 
11042
cat >>confdefs.h <<_ACEOF
 
11043
#define HAVE_DECL_STRERROR_R $ac_have_decl
 
11044
_ACEOF
 
11045
 
 
11046
for ac_func in strerror_r
 
11047
do :
 
11048
  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
 
11049
if test "x$ac_cv_func_strerror_r" = x""yes; then :
 
11050
  cat >>confdefs.h <<_ACEOF
 
11051
#define HAVE_STRERROR_R 1
 
11052
_ACEOF
 
11053
 
 
11054
fi
 
11055
done
 
11056
 
 
11057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
 
11058
$as_echo_n "checking whether strerror_r returns char *... " >&6; }
 
11059
if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
 
11060
  $as_echo_n "(cached) " >&6
 
11061
else
 
11062
 
 
11063
    ac_cv_func_strerror_r_char_p=no
 
11064
    if test $ac_cv_have_decl_strerror_r = yes; then
 
11065
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11066
/* end confdefs.h.  */
 
11067
$ac_includes_default
 
11068
int
 
11069
main (void)
 
11070
{
 
11071
 
 
11072
          char buf[100];
 
11073
          char x = *strerror_r (0, buf, sizeof buf);
 
11074
          char *p = strerror_r (0, buf, sizeof buf);
 
11075
          return !p || x;
 
11076
 
 
11077
  ;
 
11078
  return 0;
 
11079
}
 
11080
_ACEOF
 
11081
if ac_fn_c_try_compile "$LINENO"; then :
 
11082
  ac_cv_func_strerror_r_char_p=yes
 
11083
fi
 
11084
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11085
    else
 
11086
      # strerror_r is not declared.  Choose between
 
11087
      # systems that have relatively inaccessible declarations for the
 
11088
      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
 
11089
      # former has a strerror_r that returns char*, while the latter
 
11090
      # has a strerror_r that returns `int'.
 
11091
      # This test should segfault on the DEC system.
 
11092
      if test "$cross_compiling" = yes; then :
 
11093
  :
 
11094
else
 
11095
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11096
/* end confdefs.h.  */
 
11097
$ac_includes_default
 
11098
        extern char *strerror_r ();
 
11099
int
 
11100
main (void)
 
11101
{
 
11102
char buf[100];
 
11103
          char x = *strerror_r (0, buf, sizeof buf);
 
11104
          return ! isalpha (x);
 
11105
  ;
 
11106
  return 0;
 
11107
}
 
11108
_ACEOF
 
11109
if ac_fn_c_try_run "$LINENO"; then :
 
11110
  ac_cv_func_strerror_r_char_p=yes
 
11111
fi
 
11112
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
11113
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
11114
fi
 
11115
 
 
11116
    fi
 
11117
 
 
11118
fi
 
11119
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
 
11120
$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
 
11121
if test $ac_cv_func_strerror_r_char_p = yes; then
 
11122
 
 
11123
$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
 
11124
 
 
11125
fi
 
11126
 
 
11127
 
 
11128
 
 
11129
 
 
11130
 
 
11131
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
 
11132
$as_echo_n "checking for mbstate_t... " >&6; }
 
11133
if test "${ac_cv_type_mbstate_t+set}" = set; then :
 
11134
  $as_echo_n "(cached) " >&6
 
11135
else
 
11136
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11137
/* end confdefs.h.  */
 
11138
$ac_includes_default
 
11139
#           include <wchar.h>
 
11140
int
 
11141
main (void)
 
11142
{
 
11143
mbstate_t x; return sizeof x;
 
11144
  ;
 
11145
  return 0;
 
11146
}
 
11147
_ACEOF
 
11148
if ac_fn_c_try_compile "$LINENO"; then :
 
11149
  ac_cv_type_mbstate_t=yes
 
11150
else
 
11151
  ac_cv_type_mbstate_t=no
 
11152
fi
 
11153
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11154
fi
 
11155
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
 
11156
$as_echo "$ac_cv_type_mbstate_t" >&6; }
 
11157
   if test $ac_cv_type_mbstate_t = yes; then
 
11158
 
 
11159
$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
 
11160
 
 
11161
   else
 
11162
 
 
11163
$as_echo "#define mbstate_t int" >>confdefs.h
 
11164
 
 
11165
   fi
 
11166
 
 
11167
 
 
11168
 
 
11169
 
 
11170
 
 
11171
 
 
11172
 
 
11173
 
 
11174
 
 
11175
 
 
11176
 
 
11177
 
 
11178
 
 
11179
 
 
11180
 
 
11181
 
 
11182
 
 
11183
 
 
11184
  GNULIB_DPRINTF=0;
 
11185
  GNULIB_FCLOSE=0;
 
11186
  GNULIB_FFLUSH=0;
 
11187
  GNULIB_FOPEN=0;
 
11188
  GNULIB_FPRINTF=0;
 
11189
  GNULIB_FPRINTF_POSIX=0;
 
11190
  GNULIB_FPURGE=0;
 
11191
  GNULIB_FPUTC=0;
 
11192
  GNULIB_FPUTS=0;
 
11193
  GNULIB_FREOPEN=0;
 
11194
  GNULIB_FSEEK=0;
 
11195
  GNULIB_FSEEKO=0;
 
11196
  GNULIB_FTELL=0;
 
11197
  GNULIB_FTELLO=0;
 
11198
  GNULIB_FWRITE=0;
 
11199
  GNULIB_GETDELIM=0;
 
11200
  GNULIB_GETLINE=0;
 
11201
  GNULIB_OBSTACK_PRINTF=0;
 
11202
  GNULIB_OBSTACK_PRINTF_POSIX=0;
 
11203
  GNULIB_PERROR=0;
 
11204
  GNULIB_POPEN=0;
 
11205
  GNULIB_PRINTF=0;
 
11206
  GNULIB_PRINTF_POSIX=0;
 
11207
  GNULIB_PUTC=0;
 
11208
  GNULIB_PUTCHAR=0;
 
11209
  GNULIB_PUTS=0;
 
11210
  GNULIB_REMOVE=0;
 
11211
  GNULIB_RENAME=0;
 
11212
  GNULIB_RENAMEAT=0;
 
11213
  GNULIB_SNPRINTF=0;
 
11214
  GNULIB_SPRINTF_POSIX=0;
 
11215
  GNULIB_STDIO_H_SIGPIPE=0;
 
11216
  GNULIB_TMPFILE=0;
 
11217
  GNULIB_VASPRINTF=0;
 
11218
  GNULIB_VDPRINTF=0;
 
11219
  GNULIB_VFPRINTF=0;
 
11220
  GNULIB_VFPRINTF_POSIX=0;
 
11221
  GNULIB_VPRINTF=0;
 
11222
  GNULIB_VPRINTF_POSIX=0;
 
11223
  GNULIB_VSNPRINTF=0;
 
11224
  GNULIB_VSPRINTF_POSIX=0;
 
11225
    HAVE_DECL_FPURGE=1;
 
11226
  HAVE_DECL_GETDELIM=1;
 
11227
  HAVE_DECL_GETLINE=1;
 
11228
  HAVE_DECL_OBSTACK_PRINTF=1;
 
11229
  HAVE_DECL_SNPRINTF=1;
 
11230
  HAVE_DECL_VSNPRINTF=1;
 
11231
  HAVE_DPRINTF=1;
 
11232
  HAVE_FSEEKO=1;
 
11233
  HAVE_FTELLO=1;
 
11234
  HAVE_RENAMEAT=1;
 
11235
  HAVE_VASPRINTF=1;
 
11236
  HAVE_VDPRINTF=1;
 
11237
  REPLACE_DPRINTF=0;
 
11238
  REPLACE_FCLOSE=0;
 
11239
  REPLACE_FFLUSH=0;
 
11240
  REPLACE_FOPEN=0;
 
11241
  REPLACE_FPRINTF=0;
 
11242
  REPLACE_FPURGE=0;
 
11243
  REPLACE_FREOPEN=0;
 
11244
  REPLACE_FSEEK=0;
 
11245
  REPLACE_FSEEKO=0;
 
11246
  REPLACE_FTELL=0;
 
11247
  REPLACE_FTELLO=0;
 
11248
  REPLACE_GETDELIM=0;
 
11249
  REPLACE_GETLINE=0;
 
11250
  REPLACE_OBSTACK_PRINTF=0;
 
11251
  REPLACE_PERROR=0;
 
11252
  REPLACE_POPEN=0;
 
11253
  REPLACE_PRINTF=0;
 
11254
  REPLACE_REMOVE=0;
 
11255
  REPLACE_RENAME=0;
 
11256
  REPLACE_RENAMEAT=0;
 
11257
  REPLACE_SNPRINTF=0;
 
11258
  REPLACE_SPRINTF=0;
 
11259
  REPLACE_STDIO_WRITE_FUNCS=0;
 
11260
  REPLACE_TMPFILE=0;
 
11261
  REPLACE_VASPRINTF=0;
 
11262
  REPLACE_VDPRINTF=0;
 
11263
  REPLACE_VFPRINTF=0;
 
11264
  REPLACE_VPRINTF=0;
 
11265
  REPLACE_VSNPRINTF=0;
 
11266
  REPLACE_VSPRINTF=0;
 
11267
 
 
11268
ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
 
11269
if test "x$ac_cv_have_decl_getdelim" = x""yes; then :
 
11270
  ac_have_decl=1
 
11271
else
 
11272
  ac_have_decl=0
 
11273
fi
 
11274
 
 
11275
cat >>confdefs.h <<_ACEOF
 
11276
#define HAVE_DECL_GETDELIM $ac_have_decl
 
11277
_ACEOF
 
11278
 
 
11279
 
 
11280
 
 
11281
ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
 
11282
if test "x$ac_cv_have_decl_getline" = x""yes; then :
 
11283
  ac_have_decl=1
 
11284
else
 
11285
  ac_have_decl=0
 
11286
fi
 
11287
 
 
11288
cat >>confdefs.h <<_ACEOF
 
11289
#define HAVE_DECL_GETLINE $ac_have_decl
 
11290
_ACEOF
 
11291
 
 
11292
 
 
11293
  GNULIB_CHOWN=0;
 
11294
  GNULIB_CLOSE=0;
 
11295
  GNULIB_DUP2=0;
 
11296
  GNULIB_DUP3=0;
 
11297
  GNULIB_ENVIRON=0;
 
11298
  GNULIB_EUIDACCESS=0;
 
11299
  GNULIB_FACCESSAT=0;
 
11300
  GNULIB_FCHDIR=0;
 
11301
  GNULIB_FCHOWNAT=0;
 
11302
  GNULIB_FSYNC=0;
 
11303
  GNULIB_FTRUNCATE=0;
 
11304
  GNULIB_GETCWD=0;
 
11305
  GNULIB_GETDOMAINNAME=0;
 
11306
  GNULIB_GETDTABLESIZE=0;
 
11307
  GNULIB_GETGROUPS=0;
 
11308
  GNULIB_GETHOSTNAME=0;
 
11309
  GNULIB_GETLOGIN=0;
 
11310
  GNULIB_GETLOGIN_R=0;
 
11311
  GNULIB_GETPAGESIZE=0;
 
11312
  GNULIB_GETUSERSHELL=0;
 
11313
  GNULIB_LCHOWN=0;
 
11314
  GNULIB_LINK=0;
 
11315
  GNULIB_LINKAT=0;
 
11316
  GNULIB_LSEEK=0;
 
11317
  GNULIB_PIPE2=0;
 
11318
  GNULIB_PREAD=0;
 
11319
  GNULIB_PWRITE=0;
 
11320
  GNULIB_READLINK=0;
 
11321
  GNULIB_READLINKAT=0;
 
11322
  GNULIB_RMDIR=0;
 
11323
  GNULIB_SLEEP=0;
 
11324
  GNULIB_SYMLINK=0;
 
11325
  GNULIB_SYMLINKAT=0;
 
11326
  GNULIB_TTYNAME_R=0;
 
11327
  GNULIB_UNISTD_H_GETOPT=0;
 
11328
  GNULIB_UNISTD_H_SIGPIPE=0;
 
11329
  GNULIB_UNLINK=0;
 
11330
  GNULIB_UNLINKAT=0;
 
11331
  GNULIB_USLEEP=0;
 
11332
  GNULIB_WRITE=0;
 
11333
    HAVE_CHOWN=1;
 
11334
  HAVE_DUP2=1;
 
11335
  HAVE_DUP3=1;
 
11336
  HAVE_EUIDACCESS=1;
 
11337
  HAVE_FACCESSAT=1;
 
11338
  HAVE_FCHDIR=1;
 
11339
  HAVE_FCHOWNAT=1;
 
11340
  HAVE_FSYNC=1;
 
11341
  HAVE_FTRUNCATE=1;
 
11342
  HAVE_GETDOMAINNAME=1;
 
11343
  HAVE_GETDTABLESIZE=1;
 
11344
  HAVE_GETGROUPS=1;
 
11345
  HAVE_GETHOSTNAME=1;
 
11346
  HAVE_GETLOGIN=1;
 
11347
  HAVE_GETPAGESIZE=1;
 
11348
  HAVE_LCHOWN=1;
 
11349
  HAVE_LINK=1;
 
11350
  HAVE_LINKAT=1;
 
11351
  HAVE_PIPE2=1;
 
11352
  HAVE_PREAD=1;
 
11353
  HAVE_PWRITE=1;
 
11354
  HAVE_READLINK=1;
 
11355
  HAVE_READLINKAT=1;
 
11356
  HAVE_SLEEP=1;
 
11357
  HAVE_SYMLINK=1;
 
11358
  HAVE_SYMLINKAT=1;
 
11359
  HAVE_TTYNAME_R=1;
 
11360
  HAVE_UNLINKAT=1;
 
11361
  HAVE_USLEEP=1;
 
11362
  HAVE_DECL_ENVIRON=1;
 
11363
  HAVE_DECL_GETLOGIN_R=1;
 
11364
  HAVE_DECL_GETPAGESIZE=1;
 
11365
  HAVE_DECL_GETUSERSHELL=1;
 
11366
  HAVE_OS_H=0;
 
11367
  HAVE_SYS_PARAM_H=0;
 
11368
  REPLACE_CHOWN=0;
 
11369
  REPLACE_CLOSE=0;
 
11370
  REPLACE_DUP=0;
 
11371
  REPLACE_DUP2=0;
 
11372
  REPLACE_FCHOWNAT=0;
 
11373
  REPLACE_GETCWD=0;
 
11374
  REPLACE_GETGROUPS=0;
 
11375
  REPLACE_GETPAGESIZE=0;
 
11376
  REPLACE_LCHOWN=0;
 
11377
  REPLACE_LINK=0;
 
11378
  REPLACE_LINKAT=0;
 
11379
  REPLACE_LSEEK=0;
 
11380
  REPLACE_PREAD=0;
 
11381
  REPLACE_PWRITE=0;
 
11382
  REPLACE_READLINK=0;
 
11383
  REPLACE_RMDIR=0;
 
11384
  REPLACE_SLEEP=0;
 
11385
  REPLACE_SYMLINK=0;
 
11386
  REPLACE_TTYNAME_R=0;
 
11387
  REPLACE_UNLINK=0;
 
11388
  REPLACE_UNLINKAT=0;
 
11389
  REPLACE_USLEEP=0;
 
11390
  REPLACE_WRITE=0;
 
11391
  UNISTD_H_HAVE_WINSOCK2_H=0;
 
11392
  UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
 
11393
 
 
11394
 
 
11395
 
 
11396
 
 
11397
 
 
11398
 
 
11399
 
 
11400
 
 
11401
 
 
11402
 
 
11403
 
 
11404
 
 
11405
 
 
11406
 
 
11407
     if test $gl_cv_have_include_next = yes; then
 
11408
       gl_cv_next_getopt_h='<'getopt.h'>'
 
11409
     else
 
11410
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
 
11411
$as_echo_n "checking absolute name of <getopt.h>... " >&6; }
 
11412
if test "${gl_cv_next_getopt_h+set}" = set; then :
 
11413
  $as_echo_n "(cached) " >&6
 
11414
else
 
11415
 
 
11416
          if test $ac_cv_header_getopt_h = yes; then
 
11417
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11418
/* end confdefs.h.  */
 
11419
#include <getopt.h>
 
11420
 
 
11421
_ACEOF
 
11422
                                                                                                case "$host_os" in
 
11423
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
11424
              *)    gl_absname_cpp="$ac_cpp" ;;
 
11425
            esac
 
11426
                                                gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
11427
               sed -n '\#/getopt.h#{
 
11428
                 s#.*"\(.*/getopt.h\)".*#\1#
 
11429
                 s#^/[^/]#//&#
 
11430
                 p
 
11431
                 q
 
11432
               }'`'"'
 
11433
          else
 
11434
            gl_cv_next_getopt_h='<'getopt.h'>'
 
11435
          fi
 
11436
 
 
11437
fi
 
11438
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
 
11439
$as_echo "$gl_cv_next_getopt_h" >&6; }
 
11440
     fi
 
11441
     NEXT_GETOPT_H=$gl_cv_next_getopt_h
 
11442
 
 
11443
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
11444
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
11445
       gl_next_as_first_directive='<'getopt.h'>'
 
11446
     else
 
11447
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
11448
       gl_next_as_first_directive=$gl_cv_next_getopt_h
 
11449
     fi
 
11450
     NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
 
11451
 
 
11452
 
 
11453
 
 
11454
 
 
11455
  if test $ac_cv_header_getopt_h = yes; then
 
11456
    HAVE_GETOPT_H=1
 
11457
  else
 
11458
    HAVE_GETOPT_H=0
 
11459
  fi
 
11460
 
 
11461
 
 
11462
  gl_replace_getopt=
 
11463
 
 
11464
    if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
 
11465
    for ac_header in getopt.h
 
11466
do :
 
11467
  ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
 
11468
if test "x$ac_cv_header_getopt_h" = x""yes; then :
 
11469
  cat >>confdefs.h <<_ACEOF
 
11470
#define HAVE_GETOPT_H 1
 
11471
_ACEOF
 
11472
 
 
11473
else
 
11474
  gl_replace_getopt=yes
 
11475
fi
 
11476
 
 
11477
done
 
11478
 
 
11479
  fi
 
11480
 
 
11481
    if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
 
11482
    for ac_func in getopt_long_only
 
11483
do :
 
11484
  ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
 
11485
if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
 
11486
  cat >>confdefs.h <<_ACEOF
 
11487
#define HAVE_GETOPT_LONG_ONLY 1
 
11488
_ACEOF
 
11489
 
 
11490
else
 
11491
  gl_replace_getopt=yes
 
11492
fi
 
11493
done
 
11494
 
 
11495
  fi
 
11496
 
 
11497
              if test -z "$gl_replace_getopt"; then
 
11498
    ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
 
11499
"
 
11500
if test "x$ac_cv_have_decl_optreset" = x""yes; then :
 
11501
  ac_have_decl=1
 
11502
else
 
11503
  ac_have_decl=0
 
11504
fi
 
11505
 
 
11506
cat >>confdefs.h <<_ACEOF
 
11507
#define HAVE_DECL_OPTRESET $ac_have_decl
 
11508
_ACEOF
 
11509
if test $ac_have_decl = 1; then :
 
11510
 
 
11511
else
 
11512
  ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
 
11513
"
 
11514
if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
 
11515
  ac_have_decl=1
 
11516
else
 
11517
  ac_have_decl=0
 
11518
fi
 
11519
 
 
11520
cat >>confdefs.h <<_ACEOF
 
11521
#define HAVE_DECL_GETOPT_CLIP $ac_have_decl
 
11522
_ACEOF
 
11523
 
 
11524
 
 
11525
fi
 
11526
 
 
11527
  fi
 
11528
 
 
11529
                    if test -z "$gl_replace_getopt"; then
 
11530
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
 
11531
$as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
 
11532
if test "${gl_cv_func_getopt_posix+set}" = set; then :
 
11533
  $as_echo_n "(cached) " >&6
 
11534
else
 
11535
 
 
11536
                if test "$cross_compiling" = yes; then :
 
11537
  case "$host_os" in
 
11538
             mingw*)         gl_cv_func_getopt_posix="guessing no";;
 
11539
             darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
 
11540
             *)              gl_cv_func_getopt_posix="guessing yes";;
 
11541
           esac
 
11542
 
 
11543
else
 
11544
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11545
/* end confdefs.h.  */
 
11546
 
 
11547
#include <unistd.h>
 
11548
#include <stdlib.h>
 
11549
#include <string.h>
 
11550
 
 
11551
#if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP
 
11552
# define OPTIND_MIN 0
 
11553
#else
 
11554
# define OPTIND_MIN 1
 
11555
#endif
 
11556
 
 
11557
int
 
11558
main ()
 
11559
{
 
11560
  {
 
11561
    int argc = 0;
 
11562
    char *argv[10];
 
11563
    int c;
 
11564
 
 
11565
    argv[argc++] = "program";
 
11566
    argv[argc++] = "-a";
 
11567
    argv[argc++] = "foo";
 
11568
    argv[argc++] = "bar";
 
11569
    argv[argc] = NULL;
 
11570
    optind = OPTIND_MIN;
 
11571
    opterr = 0;
 
11572
 
 
11573
    c = getopt (argc, argv, "ab");
 
11574
    if (!(c == 'a'))
 
11575
      return 1;
 
11576
    c = getopt (argc, argv, "ab");
 
11577
    if (!(c == -1))
 
11578
      return 2;
 
11579
    if (!(optind == 2))
 
11580
      return 3;
 
11581
  }
 
11582
  /* Some internal state exists at this point.  */
 
11583
  {
 
11584
    int argc = 0;
 
11585
    char *argv[10];
 
11586
    int c;
 
11587
 
 
11588
    argv[argc++] = "program";
 
11589
    argv[argc++] = "donald";
 
11590
    argv[argc++] = "-p";
 
11591
    argv[argc++] = "billy";
 
11592
    argv[argc++] = "duck";
 
11593
    argv[argc++] = "-a";
 
11594
    argv[argc++] = "bar";
 
11595
    argv[argc] = NULL;
 
11596
    optind = OPTIND_MIN;
 
11597
    opterr = 0;
 
11598
 
 
11599
    c = getopt (argc, argv, "+abp:q:");
 
11600
    if (!(c == -1))
 
11601
      return 4;
 
11602
    if (!(strcmp (argv[0], "program") == 0))
 
11603
      return 5;
 
11604
    if (!(strcmp (argv[1], "donald") == 0))
 
11605
      return 6;
 
11606
    if (!(strcmp (argv[2], "-p") == 0))
 
11607
      return 7;
 
11608
    if (!(strcmp (argv[3], "billy") == 0))
 
11609
      return 8;
 
11610
    if (!(strcmp (argv[4], "duck") == 0))
 
11611
      return 9;
 
11612
    if (!(strcmp (argv[5], "-a") == 0))
 
11613
      return 10;
 
11614
    if (!(strcmp (argv[6], "bar") == 0))
 
11615
      return 11;
 
11616
    if (!(optind == 1))
 
11617
      return 12;
 
11618
  }
 
11619
  /* Detect MacOS 10.5, AIX 7.1 bug.  */
 
11620
  {
 
11621
    char *argv[3] = { "program", "-ab", NULL };
 
11622
    optind = OPTIND_MIN;
 
11623
    opterr = 0;
 
11624
    if (getopt (2, argv, "ab:") != 'a')
 
11625
      return 13;
 
11626
    if (getopt (2, argv, "ab:") != '?')
 
11627
      return 14;
 
11628
    if (optopt != 'b')
 
11629
      return 15;
 
11630
    if (optind != 2)
 
11631
      return 16;
 
11632
  }
 
11633
 
 
11634
  return 0;
 
11635
}
 
11636
 
 
11637
_ACEOF
 
11638
if ac_fn_c_try_run "$LINENO"; then :
 
11639
  gl_cv_func_getopt_posix=yes
 
11640
else
 
11641
  gl_cv_func_getopt_posix=no
 
11642
fi
 
11643
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
11644
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
11645
fi
 
11646
 
 
11647
 
 
11648
fi
 
11649
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
 
11650
$as_echo "$gl_cv_func_getopt_posix" >&6; }
 
11651
    case "$gl_cv_func_getopt_posix" in
 
11652
      *no) gl_replace_getopt=yes ;;
 
11653
    esac
 
11654
  fi
 
11655
 
 
11656
  if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
 
11657
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
 
11658
$as_echo_n "checking for working GNU getopt function... " >&6; }
 
11659
if test "${gl_cv_func_getopt_gnu+set}" = set; then :
 
11660
  $as_echo_n "(cached) " >&6
 
11661
else
 
11662
  # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
 
11663
       # optstring is necessary for programs like m4 that have POSIX-mandated
 
11664
       # semantics for supporting options interspersed with files.
 
11665
       # Also, since getopt_long is a GNU extension, we require optind=0.
 
11666
       # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
 
11667
       # so take care to revert to the correct (non-)export state.
 
11668
       gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
 
11669
       case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
 
11670
         xx) gl_had_POSIXLY_CORRECT=exported ;;
 
11671
         x)  gl_had_POSIXLY_CORRECT=yes      ;;
 
11672
         *)  gl_had_POSIXLY_CORRECT=         ;;
 
11673
       esac
 
11674
       POSIXLY_CORRECT=1
 
11675
       export POSIXLY_CORRECT
 
11676
       if test "$cross_compiling" = yes; then :
 
11677
           case $host_os:$ac_cv_have_decl_optreset in
 
11678
           *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
 
11679
           *:yes)               gl_cv_func_getopt_gnu=no;;
 
11680
           *)                   gl_cv_func_getopt_gnu=yes;;
 
11681
         esac
 
11682
 
 
11683
else
 
11684
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11685
/* end confdefs.h.  */
 
11686
#include <getopt.h>
 
11687
                           #include <stddef.h>
 
11688
                           #include <string.h>
 
11689
 
 
11690
int
 
11691
main (void)
 
11692
{
 
11693
 
 
11694
             /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
 
11695
                and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
 
11696
                OSF/1 5.1, Solaris 10.  */
 
11697
             {
 
11698
               char *myargv[3];
 
11699
               myargv[0] = "conftest";
 
11700
               myargv[1] = "-+";
 
11701
               myargv[2] = 0;
 
11702
               opterr = 0;
 
11703
               if (getopt (2, myargv, "+a") != '?')
 
11704
                 return 1;
 
11705
             }
 
11706
             /* This code succeeds on glibc 2.8, mingw,
 
11707
                and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
 
11708
                IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x.  */
 
11709
             {
 
11710
               char *argv[] = { "program", "-p", "foo", "bar", NULL };
 
11711
 
 
11712
               optind = 1;
 
11713
               if (getopt (4, argv, "p::") != 'p')
 
11714
                 return 2;
 
11715
               if (optarg != NULL)
 
11716
                 return 3;
 
11717
               if (getopt (4, argv, "p::") != -1)
 
11718
                 return 4;
 
11719
               if (optind != 2)
 
11720
                 return 5;
 
11721
             }
 
11722
             /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0.  */
 
11723
             {
 
11724
               char *argv[] = { "program", "foo", "-p", NULL };
 
11725
               optind = 0;
 
11726
               if (getopt (3, argv, "-p") != 1)
 
11727
                 return 6;
 
11728
               if (getopt (3, argv, "-p") != 'p')
 
11729
                 return 7;
 
11730
             }
 
11731
             /* This code fails on glibc 2.11.  */
 
11732
             {
 
11733
               char *argv[] = { "program", "-b", "-a", NULL };
 
11734
               optind = opterr = 0;
 
11735
               if (getopt (3, argv, "+:a:b") != 'b')
 
11736
                 return 8;
 
11737
               if (getopt (3, argv, "+:a:b") != ':')
 
11738
                 return 9;
 
11739
             }
 
11740
             return 0;
 
11741
 
 
11742
  ;
 
11743
  return 0;
 
11744
}
 
11745
_ACEOF
 
11746
if ac_fn_c_try_run "$LINENO"; then :
 
11747
  gl_cv_func_getopt_gnu=yes
 
11748
else
 
11749
  gl_cv_func_getopt_gnu=no
 
11750
fi
 
11751
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
11752
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
11753
fi
 
11754
 
 
11755
       case $gl_had_POSIXLY_CORRECT in
 
11756
         exported) ;;
 
11757
         yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
 
11758
         *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
 
11759
       esac
 
11760
 
 
11761
fi
 
11762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
 
11763
$as_echo "$gl_cv_func_getopt_gnu" >&6; }
 
11764
    if test "$gl_cv_func_getopt_gnu" = "no"; then
 
11765
      gl_replace_getopt=yes
 
11766
    fi
 
11767
  fi
 
11768
 
 
11769
 
 
11770
 
 
11771
 
 
11772
 
 
11773
 
 
11774
  if test -n "$gl_replace_getopt"; then :
 
11775
 
 
11776
 
 
11777
 
 
11778
  GETOPT_H=getopt.h
 
11779
 
 
11780
$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
 
11781
 
 
11782
 
 
11783
 
 
11784
    GNULIB_UNISTD_H_GETOPT=1
 
11785
 
 
11786
 
 
11787
 
 
11788
 
 
11789
 
 
11790
 
 
11791
 
 
11792
 
 
11793
  gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
 
11794
 
 
11795
 
 
11796
 
 
11797
 
 
11798
 
 
11799
 
 
11800
 
 
11801
 
 
11802
 
 
11803
  gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
 
11804
 
 
11805
 
 
11806
 
 
11807
 
 
11808
 
 
11809
 
 
11810
fi
 
11811
 
 
11812
 
 
11813
 
 
11814
  GNULIB_NL_LANGINFO=0;
 
11815
    HAVE_NL_LANGINFO=1;
 
11816
  REPLACE_NL_LANGINFO=0;
 
11817
 
 
11818
 
 
11819
 
 
11820
 
 
11821
 
 
11822
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
 
11823
$as_echo_n "checking for working fcntl.h... " >&6; }
 
11824
if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
 
11825
  $as_echo_n "(cached) " >&6
 
11826
else
 
11827
  if test "$cross_compiling" = yes; then :
 
11828
  gl_cv_header_working_fcntl_h=cross-compiling
 
11829
else
 
11830
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11831
/* end confdefs.h.  */
 
11832
#include <sys/types.h>
 
11833
           #include <sys/stat.h>
 
11834
           #include <unistd.h>
 
11835
           #include <fcntl.h>
 
11836
           #ifndef O_NOATIME
 
11837
            #define O_NOATIME 0
 
11838
           #endif
 
11839
           #ifndef O_NOFOLLOW
 
11840
            #define O_NOFOLLOW 0
 
11841
           #endif
 
11842
           static int const constants[] =
 
11843
            {
 
11844
              O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
 
11845
              O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
 
11846
            };
 
11847
 
 
11848
int
 
11849
main (void)
 
11850
{
 
11851
 
 
11852
            int status = !constants;
 
11853
            {
 
11854
              static char const sym[] = "conftest.sym";
 
11855
              if (symlink (".", sym) != 0
 
11856
                  || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
 
11857
                status |= 32;
 
11858
              unlink (sym);
 
11859
            }
 
11860
            {
 
11861
              static char const file[] = "confdefs.h";
 
11862
              int fd = open (file, O_RDONLY | O_NOATIME);
 
11863
              char c;
 
11864
              struct stat st0, st1;
 
11865
              if (fd < 0
 
11866
                  || fstat (fd, &st0) != 0
 
11867
                  || sleep (1) != 0
 
11868
                  || read (fd, &c, 1) != 1
 
11869
                  || close (fd) != 0
 
11870
                  || stat (file, &st1) != 0
 
11871
                  || st0.st_atime != st1.st_atime)
 
11872
                status |= 64;
 
11873
            }
 
11874
            return status;
 
11875
  ;
 
11876
  return 0;
 
11877
}
 
11878
_ACEOF
 
11879
if ac_fn_c_try_run "$LINENO"; then :
 
11880
  gl_cv_header_working_fcntl_h=yes
 
11881
else
 
11882
  case $? in #(
 
11883
        32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
 
11884
        64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
 
11885
        96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
 
11886
         *) gl_cv_header_working_fcntl_h='no';;
 
11887
        esac
 
11888
fi
 
11889
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
11890
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
11891
fi
 
11892
 
 
11893
fi
 
11894
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
 
11895
$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
 
11896
 
 
11897
  case $gl_cv_header_working_fcntl_h in #(
 
11898
  *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
 
11899
  *) ac_val=1;;
 
11900
  esac
 
11901
 
 
11902
cat >>confdefs.h <<_ACEOF
 
11903
#define HAVE_WORKING_O_NOATIME $ac_val
 
11904
_ACEOF
 
11905
 
 
11906
 
 
11907
  case $gl_cv_header_working_fcntl_h in #(
 
11908
  *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
 
11909
  *) ac_val=1;;
 
11910
  esac
 
11911
 
 
11912
cat >>confdefs.h <<_ACEOF
 
11913
#define HAVE_WORKING_O_NOFOLLOW $ac_val
 
11914
_ACEOF
 
11915
 
 
11916
 
 
11917
 
 
11918
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
 
11919
$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
 
11920
if test "${ac_cv_gnu_library_2_1+set}" = set; then :
 
11921
  $as_echo_n "(cached) " >&6
 
11922
else
 
11923
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11924
/* end confdefs.h.  */
 
11925
 
 
11926
#include <features.h>
 
11927
#ifdef __GNU_LIBRARY__
 
11928
 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
 
11929
  Lucky GNU user
 
11930
 #endif
 
11931
#endif
 
11932
 
 
11933
_ACEOF
 
11934
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
11935
  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
 
11936
  ac_cv_gnu_library_2_1=yes
 
11937
else
 
11938
  ac_cv_gnu_library_2_1=no
 
11939
fi
 
11940
rm -f conftest*
 
11941
 
 
11942
 
 
11943
 
 
11944
fi
 
11945
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
 
11946
$as_echo "$ac_cv_gnu_library_2_1" >&6; }
 
11947
 
 
11948
    GLIBC21="$ac_cv_gnu_library_2_1"
 
11949
 
 
11950
 
 
11951
 
 
11952
  GNULIB__EXIT=0;
 
11953
  GNULIB_ATOLL=0;
 
11954
  GNULIB_CALLOC_POSIX=0;
 
11955
  GNULIB_CANONICALIZE_FILE_NAME=0;
 
11956
  GNULIB_GETLOADAVG=0;
 
11957
  GNULIB_GETSUBOPT=0;
 
11958
  GNULIB_GRANTPT=0;
 
11959
  GNULIB_MALLOC_POSIX=0;
 
11960
  GNULIB_MKDTEMP=0;
 
11961
  GNULIB_MKOSTEMP=0;
 
11962
  GNULIB_MKOSTEMPS=0;
 
11963
  GNULIB_MKSTEMP=0;
 
11964
  GNULIB_MKSTEMPS=0;
 
11965
  GNULIB_PTSNAME=0;
 
11966
  GNULIB_PUTENV=0;
 
11967
  GNULIB_RANDOM_R=0;
 
11968
  GNULIB_REALLOC_POSIX=0;
 
11969
  GNULIB_REALPATH=0;
 
11970
  GNULIB_RPMATCH=0;
 
11971
  GNULIB_SETENV=0;
 
11972
  GNULIB_STRTOD=0;
 
11973
  GNULIB_STRTOLL=0;
 
11974
  GNULIB_STRTOULL=0;
 
11975
  GNULIB_UNLOCKPT=0;
 
11976
  GNULIB_UNSETENV=0;
 
11977
    HAVE__EXIT=1;
 
11978
  HAVE_ATOLL=1;
 
11979
  HAVE_CANONICALIZE_FILE_NAME=1;
 
11980
  HAVE_DECL_GETLOADAVG=1;
 
11981
  HAVE_GETSUBOPT=1;
 
11982
  HAVE_GRANTPT=1;
 
11983
  HAVE_MKDTEMP=1;
 
11984
  HAVE_MKOSTEMP=1;
 
11985
  HAVE_MKOSTEMPS=1;
 
11986
  HAVE_MKSTEMP=1;
 
11987
  HAVE_MKSTEMPS=1;
 
11988
  HAVE_PTSNAME=1;
 
11989
  HAVE_RANDOM_R=1;
 
11990
  HAVE_REALPATH=1;
 
11991
  HAVE_RPMATCH=1;
 
11992
  HAVE_SETENV=1;
 
11993
  HAVE_STRTOD=1;
 
11994
  HAVE_STRTOLL=1;
 
11995
  HAVE_STRTOULL=1;
 
11996
  HAVE_STRUCT_RANDOM_DATA=1;
 
11997
  HAVE_SYS_LOADAVG_H=0;
 
11998
  HAVE_UNLOCKPT=1;
 
11999
  HAVE_UNSETENV=1;
 
12000
  REPLACE_CALLOC=0;
 
12001
  REPLACE_CANONICALIZE_FILE_NAME=0;
 
12002
  REPLACE_MALLOC=0;
 
12003
  REPLACE_MKSTEMP=0;
 
12004
  REPLACE_PUTENV=0;
 
12005
  REPLACE_REALLOC=0;
 
12006
  REPLACE_REALPATH=0;
 
12007
  REPLACE_SETENV=0;
 
12008
  REPLACE_STRTOD=0;
 
12009
  REPLACE_UNSETENV=0;
 
12010
 
 
12011
 
 
12012
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
 
12013
$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
 
12014
if test "${gl_cv_func_malloc_posix+set}" = set; then :
 
12015
  $as_echo_n "(cached) " >&6
 
12016
else
 
12017
 
 
12018
                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12019
/* end confdefs.h.  */
 
12020
 
 
12021
int
 
12022
main (void)
 
12023
{
 
12024
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
 
12025
             choke me
 
12026
             #endif
 
12027
 
 
12028
  ;
 
12029
  return 0;
 
12030
}
 
12031
_ACEOF
 
12032
if ac_fn_c_try_compile "$LINENO"; then :
 
12033
  gl_cv_func_malloc_posix=yes
 
12034
else
 
12035
  gl_cv_func_malloc_posix=no
 
12036
fi
 
12037
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12038
 
 
12039
fi
 
12040
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
 
12041
$as_echo "$gl_cv_func_malloc_posix" >&6; }
 
12042
 
 
12043
 
 
12044
 
 
12045
 
 
12046
 
 
12047
 
 
12048
 
 
12049
 
 
12050
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
 
12051
$as_echo_n "checking for a traditional japanese locale... " >&6; }
 
12052
if test "${gt_cv_locale_ja+set}" = set; then :
 
12053
  $as_echo_n "(cached) " >&6
 
12054
else
 
12055
 
 
12056
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12057
/* end confdefs.h.  */
 
12058
 
 
12059
#include <locale.h>
 
12060
#include <time.h>
 
12061
#if HAVE_LANGINFO_CODESET
 
12062
# include <langinfo.h>
 
12063
#endif
 
12064
#include <stdlib.h>
 
12065
#include <string.h>
 
12066
struct tm t;
 
12067
char buf[16];
 
12068
int main ()
 
12069
{
 
12070
  const char *p;
 
12071
  /* Check whether the given locale name is recognized by the system.  */
 
12072
  if (setlocale (LC_ALL, "") == NULL) return 1;
 
12073
  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
 
12074
     On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
 
12075
     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
 
12076
     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
 
12077
     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
 
12078
     some unit tests fail.  */
 
12079
#if HAVE_LANGINFO_CODESET
 
12080
  {
 
12081
    const char *cs = nl_langinfo (CODESET);
 
12082
    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
 
12083
      return 1;
 
12084
  }
 
12085
#endif
 
12086
#ifdef __CYGWIN__
 
12087
  /* On Cygwin, avoid locale names without encoding suffix, because the
 
12088
     locale_charset() function relies on the encoding suffix.  Note that
 
12089
     LC_ALL is set on the command line.  */
 
12090
  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
 
12091
#endif
 
12092
  /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
 
12093
     on Cygwin 1.5.x.  */
 
12094
  if (MB_CUR_MAX == 1)
 
12095
    return 1;
 
12096
  /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
 
12097
     This excludes the UTF-8 encoding.  */
 
12098
  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
 
12099
  if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
 
12100
  for (p = buf; *p != '\0'; p++)
 
12101
    if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
 
12102
      return 1;
 
12103
  return 0;
 
12104
}
 
12105
 
 
12106
_ACEOF
 
12107
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
12108
  (eval $ac_link) 2>&5
 
12109
  ac_status=$?
 
12110
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12111
  test $ac_status = 0; } && test -s conftest$ac_exeext; then
 
12112
      # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
 
12113
      # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
 
12114
      # configure script would override the LC_ALL setting. Likewise for
 
12115
      # LC_CTYPE, which is also set at the beginning of the configure script.
 
12116
      # Test for the AIX locale name.
 
12117
      if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
12118
        gt_cv_locale_ja=ja_JP
 
12119
      else
 
12120
        # Test for the locale name with explicit encoding suffix.
 
12121
        if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
12122
          gt_cv_locale_ja=ja_JP.EUC-JP
 
12123
        else
 
12124
          # Test for the HP-UX, OSF/1, NetBSD locale name.
 
12125
          if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
12126
            gt_cv_locale_ja=ja_JP.eucJP
 
12127
          else
 
12128
            # Test for the IRIX, FreeBSD locale name.
 
12129
            if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
12130
              gt_cv_locale_ja=ja_JP.EUC
 
12131
            else
 
12132
              # Test for the Solaris 7 locale name.
 
12133
              if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
12134
                gt_cv_locale_ja=ja
 
12135
              else
 
12136
                # Special test for NetBSD 1.6.
 
12137
                if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
 
12138
                  gt_cv_locale_ja=ja_JP.eucJP
 
12139
                else
 
12140
                  # None found.
 
12141
                  gt_cv_locale_ja=none
 
12142
                fi
 
12143
              fi
 
12144
            fi
 
12145
          fi
 
12146
        fi
 
12147
      fi
 
12148
    fi
 
12149
    rm -fr conftest*
 
12150
 
 
12151
fi
 
12152
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
 
12153
$as_echo "$gt_cv_locale_ja" >&6; }
 
12154
  LOCALE_JA=$gt_cv_locale_ja
 
12155
 
 
12156
 
 
12157
 
 
12158
 
 
12159
 
 
12160
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
 
12161
$as_echo_n "checking for a transitional chinese locale... " >&6; }
 
12162
if test "${gt_cv_locale_zh_CN+set}" = set; then :
 
12163
  $as_echo_n "(cached) " >&6
 
12164
else
 
12165
 
 
12166
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12167
/* end confdefs.h.  */
 
12168
 
 
12169
#include <locale.h>
 
12170
#include <stdlib.h>
 
12171
#include <time.h>
 
12172
#if HAVE_LANGINFO_CODESET
 
12173
# include <langinfo.h>
 
12174
#endif
 
12175
#include <stdlib.h>
 
12176
#include <string.h>
 
12177
struct tm t;
 
12178
char buf[16];
 
12179
int main ()
 
12180
{
 
12181
  const char *p;
 
12182
  /* Check whether the given locale name is recognized by the system.  */
 
12183
  if (setlocale (LC_ALL, "") == NULL) return 1;
 
12184
  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
 
12185
     On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
 
12186
     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
 
12187
     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
 
12188
     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
 
12189
     some unit tests fail.  */
 
12190
#if HAVE_LANGINFO_CODESET
 
12191
  {
 
12192
    const char *cs = nl_langinfo (CODESET);
 
12193
    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
 
12194
      return 1;
 
12195
  }
 
12196
#endif
 
12197
#ifdef __CYGWIN__
 
12198
  /* On Cygwin, avoid locale names without encoding suffix, because the
 
12199
     locale_charset() function relies on the encoding suffix.  Note that
 
12200
     LC_ALL is set on the command line.  */
 
12201
  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
 
12202
#endif
 
12203
  /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
 
12204
     This excludes the UTF-8 encoding.  */
 
12205
  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
 
12206
  if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
 
12207
  for (p = buf; *p != '\0'; p++)
 
12208
    if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
 
12209
      return 1;
 
12210
  /* Check whether a typical GB18030 multibyte sequence is recognized as a
 
12211
     single wide character.  This excludes the GB2312 and GBK encodings.  */
 
12212
  if (mblen ("\203\062\332\066", 5) != 4)
 
12213
    return 1;
 
12214
  return 0;
 
12215
}
 
12216
 
 
12217
_ACEOF
 
12218
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
12219
  (eval $ac_link) 2>&5
 
12220
  ac_status=$?
 
12221
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12222
  test $ac_status = 0; } && test -s conftest$ac_exeext; then
 
12223
      # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
 
12224
      # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
 
12225
      # configure script would override the LC_ALL setting. Likewise for
 
12226
      # LC_CTYPE, which is also set at the beginning of the configure script.
 
12227
      # Test for the locale name without encoding suffix.
 
12228
      if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
12229
        gt_cv_locale_zh_CN=zh_CN
 
12230
      else
 
12231
        # Test for the locale name with explicit encoding suffix.
 
12232
        if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
12233
          gt_cv_locale_zh_CN=zh_CN.GB18030
 
12234
        else
 
12235
          # None found.
 
12236
          gt_cv_locale_zh_CN=none
 
12237
        fi
 
12238
      fi
 
12239
    else
 
12240
      # If there was a link error, due to mblen(), the system is so old that
 
12241
      # it certainly doesn't have a chinese locale.
 
12242
      gt_cv_locale_zh_CN=none
 
12243
    fi
 
12244
    rm -fr conftest*
 
12245
 
 
12246
fi
 
12247
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
 
12248
$as_echo "$gt_cv_locale_zh_CN" >&6; }
 
12249
  LOCALE_ZH_CN=$gt_cv_locale_zh_CN
 
12250
 
 
12251
 
 
12252
 
 
12253
 
 
12254
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
 
12255
$as_echo_n "checking for a french Unicode locale... " >&6; }
 
12256
if test "${gt_cv_locale_fr_utf8+set}" = set; then :
 
12257
  $as_echo_n "(cached) " >&6
 
12258
else
 
12259
 
 
12260
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12261
/* end confdefs.h.  */
 
12262
 
 
12263
#include <locale.h>
 
12264
#include <time.h>
 
12265
#if HAVE_LANGINFO_CODESET
 
12266
# include <langinfo.h>
 
12267
#endif
 
12268
#include <stdlib.h>
 
12269
#include <string.h>
 
12270
struct tm t;
 
12271
char buf[16];
 
12272
int main () {
 
12273
  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
 
12274
     imitates locale dependent behaviour by looking at the environment
 
12275
     variables, and all locales use the UTF-8 encoding.  */
 
12276
#if !(defined __BEOS__ || defined __HAIKU__)
 
12277
  /* Check whether the given locale name is recognized by the system.  */
 
12278
  if (setlocale (LC_ALL, "") == NULL) return 1;
 
12279
  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
 
12280
     On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
 
12281
     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
 
12282
     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
 
12283
     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
 
12284
     some unit tests fail.  */
 
12285
# if HAVE_LANGINFO_CODESET
 
12286
  {
 
12287
    const char *cs = nl_langinfo (CODESET);
 
12288
    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
 
12289
      return 1;
 
12290
  }
 
12291
# endif
 
12292
# ifdef __CYGWIN__
 
12293
  /* On Cygwin, avoid locale names without encoding suffix, because the
 
12294
     locale_charset() function relies on the encoding suffix.  Note that
 
12295
     LC_ALL is set on the command line.  */
 
12296
  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
 
12297
# endif
 
12298
  /* Check whether in the abbreviation of the second month, the second
 
12299
     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
 
12300
     two bytes long, with UTF-8 encoding.  */
 
12301
  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
 
12302
  if (strftime (buf, sizeof (buf), "%b", &t) < 4
 
12303
      || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
 
12304
    return 1;
 
12305
#endif
 
12306
  /* Check whether the decimal separator is a comma.
 
12307
     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
 
12308
     are nl_langinfo(RADIXCHAR) are both ".".  */
 
12309
  if (localeconv () ->decimal_point[0] != ',') return 1;
 
12310
  return 0;
 
12311
}
 
12312
 
 
12313
_ACEOF
 
12314
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
12315
  (eval $ac_link) 2>&5
 
12316
  ac_status=$?
 
12317
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12318
  test $ac_status = 0; } && test -s conftest$ac_exeext; then
 
12319
      # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
 
12320
      # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
 
12321
      # configure script would override the LC_ALL setting. Likewise for
 
12322
      # LC_CTYPE, which is also set at the beginning of the configure script.
 
12323
      # Test for the usual locale name.
 
12324
      if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
12325
        gt_cv_locale_fr_utf8=fr_FR
 
12326
      else
 
12327
        # Test for the locale name with explicit encoding suffix.
 
12328
        if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
12329
          gt_cv_locale_fr_utf8=fr_FR.UTF-8
 
12330
        else
 
12331
          # Test for the Solaris 7 locale name.
 
12332
          if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
12333
            gt_cv_locale_fr_utf8=fr.UTF-8
 
12334
          else
 
12335
            # None found.
 
12336
            gt_cv_locale_fr_utf8=none
 
12337
          fi
 
12338
        fi
 
12339
      fi
 
12340
    fi
 
12341
    rm -fr conftest*
 
12342
 
 
12343
fi
 
12344
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
 
12345
$as_echo "$gt_cv_locale_fr_utf8" >&6; }
 
12346
  LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
 
12347
 
 
12348
 
 
12349
 
 
12350
 
 
12351
 
 
12352
 
 
12353
 
 
12354
  GNULIB_MEMCHR=0;
 
12355
  GNULIB_MEMMEM=0;
 
12356
  GNULIB_MEMPCPY=0;
 
12357
  GNULIB_MEMRCHR=0;
 
12358
  GNULIB_RAWMEMCHR=0;
 
12359
  GNULIB_STPCPY=0;
 
12360
  GNULIB_STPNCPY=0;
 
12361
  GNULIB_STRCHRNUL=0;
 
12362
  GNULIB_STRDUP=0;
 
12363
  GNULIB_STRNCAT=0;
 
12364
  GNULIB_STRNDUP=0;
 
12365
  GNULIB_STRNLEN=0;
 
12366
  GNULIB_STRPBRK=0;
 
12367
  GNULIB_STRSEP=0;
 
12368
  GNULIB_STRSTR=0;
 
12369
  GNULIB_STRCASESTR=0;
 
12370
  GNULIB_STRTOK_R=0;
 
12371
  GNULIB_MBSLEN=0;
 
12372
  GNULIB_MBSNLEN=0;
 
12373
  GNULIB_MBSCHR=0;
 
12374
  GNULIB_MBSRCHR=0;
 
12375
  GNULIB_MBSSTR=0;
 
12376
  GNULIB_MBSCASECMP=0;
 
12377
  GNULIB_MBSNCASECMP=0;
 
12378
  GNULIB_MBSPCASECMP=0;
 
12379
  GNULIB_MBSCASESTR=0;
 
12380
  GNULIB_MBSCSPN=0;
 
12381
  GNULIB_MBSPBRK=0;
 
12382
  GNULIB_MBSSPN=0;
 
12383
  GNULIB_MBSSEP=0;
 
12384
  GNULIB_MBSTOK_R=0;
 
12385
  GNULIB_STRERROR=0;
 
12386
  GNULIB_STRSIGNAL=0;
 
12387
  GNULIB_STRVERSCMP=0;
 
12388
  HAVE_MBSLEN=0;
 
12389
    HAVE_MEMCHR=1;
 
12390
  HAVE_DECL_MEMMEM=1;
 
12391
  HAVE_MEMPCPY=1;
 
12392
  HAVE_DECL_MEMRCHR=1;
 
12393
  HAVE_RAWMEMCHR=1;
 
12394
  HAVE_STPCPY=1;
 
12395
  HAVE_STPNCPY=1;
 
12396
  HAVE_STRCHRNUL=1;
 
12397
  HAVE_DECL_STRDUP=1;
 
12398
  HAVE_DECL_STRNDUP=1;
 
12399
  HAVE_DECL_STRNLEN=1;
 
12400
  HAVE_STRPBRK=1;
 
12401
  HAVE_STRSEP=1;
 
12402
  HAVE_STRCASESTR=1;
 
12403
  HAVE_DECL_STRTOK_R=1;
 
12404
  HAVE_DECL_STRSIGNAL=1;
 
12405
  HAVE_STRVERSCMP=1;
 
12406
  REPLACE_MEMCHR=0;
 
12407
  REPLACE_MEMMEM=0;
 
12408
  REPLACE_STPNCPY=0;
 
12409
  REPLACE_STRDUP=0;
 
12410
  REPLACE_STRSTR=0;
 
12411
  REPLACE_STRCASESTR=0;
 
12412
  REPLACE_STRERROR=0;
 
12413
  REPLACE_STRNCAT=0;
 
12414
  REPLACE_STRNDUP=0;
 
12415
  REPLACE_STRNLEN=0;
 
12416
  REPLACE_STRSIGNAL=0;
 
12417
  REPLACE_STRTOK_R=0;
 
12418
  UNDEFINE_STRTOK_R=0;
 
12419
 
 
12420
 
 
12421
 
 
12422
 
 
12423
 
 
12424
 
 
12425
 
 
12426
 
 
12427
 
 
12428
 
 
12429
  # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
 
12430
  # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
 
12431
  # irrelevant for anonymous mappings.
 
12432
  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
 
12433
if test "x$ac_cv_func_mmap" = x""yes; then :
 
12434
  gl_have_mmap=yes
 
12435
else
 
12436
  gl_have_mmap=no
 
12437
fi
 
12438
 
 
12439
 
 
12440
  # Try to allow MAP_ANONYMOUS.
 
12441
  gl_have_mmap_anonymous=no
 
12442
  if test $gl_have_mmap = yes; then
 
12443
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
 
12444
$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
 
12445
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12446
/* end confdefs.h.  */
 
12447
 
 
12448
#include <sys/mman.h>
 
12449
#ifdef MAP_ANONYMOUS
 
12450
    I cant identify this map.
 
12451
#endif
 
12452
 
 
12453
_ACEOF
 
12454
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
12455
  $EGREP "I cant identify this map." >/dev/null 2>&1; then :
 
12456
  gl_have_mmap_anonymous=yes
 
12457
fi
 
12458
rm -f conftest*
 
12459
 
 
12460
    if test $gl_have_mmap_anonymous != yes; then
 
12461
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12462
/* end confdefs.h.  */
 
12463
 
 
12464
#include <sys/mman.h>
 
12465
#ifdef MAP_ANON
 
12466
    I cant identify this map.
 
12467
#endif
 
12468
 
 
12469
_ACEOF
 
12470
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
12471
  $EGREP "I cant identify this map." >/dev/null 2>&1; then :
 
12472
 
 
12473
$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
 
12474
 
 
12475
         gl_have_mmap_anonymous=yes
 
12476
fi
 
12477
rm -f conftest*
 
12478
 
 
12479
    fi
 
12480
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
 
12481
$as_echo "$gl_have_mmap_anonymous" >&6; }
 
12482
    if test $gl_have_mmap_anonymous = yes; then
 
12483
 
 
12484
$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
 
12485
 
 
12486
    fi
 
12487
  fi
 
12488
 
 
12489
 
 
12490
 
 
12491
 
 
12492
 
 
12493
 
 
12494
  if test $ac_cv_func_memchr = yes; then
 
12495
    # Detect platform-specific bugs in some versions of glibc:
 
12496
    # memchr should not dereference anything with length 0
 
12497
    #   http://bugzilla.redhat.com/499689
 
12498
    # memchr should not dereference overestimated length after a match
 
12499
    #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
 
12500
    #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
 
12501
    # Assume that memchr works on platforms that lack mprotect.
 
12502
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
 
12503
$as_echo_n "checking whether memchr works... " >&6; }
 
12504
if test "${gl_cv_func_memchr_works+set}" = set; then :
 
12505
  $as_echo_n "(cached) " >&6
 
12506
else
 
12507
  if test "$cross_compiling" = yes; then :
 
12508
         gl_cv_func_memchr_works="guessing no"
 
12509
else
 
12510
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12511
/* end confdefs.h.  */
 
12512
 
 
12513
#include <string.h>
 
12514
#if HAVE_SYS_MMAN_H
 
12515
# include <fcntl.h>
 
12516
# include <unistd.h>
 
12517
# include <sys/types.h>
 
12518
# include <sys/mman.h>
 
12519
# ifndef MAP_FILE
 
12520
#  define MAP_FILE 0
 
12521
# endif
 
12522
#endif
 
12523
 
 
12524
int
 
12525
main (void)
 
12526
{
 
12527
 
 
12528
  char *fence = NULL;
 
12529
#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
 
12530
# if HAVE_MAP_ANONYMOUS
 
12531
  const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
 
12532
  const int fd = -1;
 
12533
# else /* !HAVE_MAP_ANONYMOUS */
 
12534
  const int flags = MAP_FILE | MAP_PRIVATE;
 
12535
  int fd = open ("/dev/zero", O_RDONLY, 0666);
 
12536
  if (fd >= 0)
 
12537
# endif
 
12538
    {
 
12539
      int pagesize = getpagesize ();
 
12540
      char *two_pages =
 
12541
        (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
 
12542
                       flags, fd, 0);
 
12543
      if (two_pages != (char *)(-1)
 
12544
          && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
 
12545
        fence = two_pages + pagesize;
 
12546
    }
 
12547
#endif
 
12548
  if (fence)
 
12549
    {
 
12550
      if (memchr (fence, 0, 0))
 
12551
        return 1;
 
12552
      strcpy (fence - 9, "12345678");
 
12553
      if (memchr (fence - 9, 0, 79) != fence - 1)
 
12554
        return 2;
 
12555
      if (memchr (fence - 1, 0, 3) != fence - 1)
 
12556
        return 3;
 
12557
    }
 
12558
  return 0;
 
12559
 
 
12560
  ;
 
12561
  return 0;
 
12562
}
 
12563
_ACEOF
 
12564
if ac_fn_c_try_run "$LINENO"; then :
 
12565
  gl_cv_func_memchr_works=yes
 
12566
else
 
12567
  gl_cv_func_memchr_works=no
 
12568
fi
 
12569
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
12570
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
12571
fi
 
12572
 
 
12573
fi
 
12574
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
 
12575
$as_echo "$gl_cv_func_memchr_works" >&6; }
 
12576
    if test "$gl_cv_func_memchr_works" != yes; then
 
12577
      REPLACE_MEMCHR=1
 
12578
    fi
 
12579
  else
 
12580
    HAVE_MEMCHR=0
 
12581
  fi
 
12582
  if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
 
12583
 
 
12584
 
 
12585
 
 
12586
 
 
12587
 
 
12588
 
 
12589
 
 
12590
 
 
12591
  gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
 
12592
 
 
12593
 
 
12594
  for ac_header in bp-sym.h
 
12595
do :
 
12596
  ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
 
12597
if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
 
12598
  cat >>confdefs.h <<_ACEOF
 
12599
#define HAVE_BP_SYM_H 1
 
12600
_ACEOF
 
12601
 
 
12602
fi
 
12603
 
 
12604
done
 
12605
 
 
12606
 
 
12607
  fi
 
12608
 
 
12609
 
 
12610
    gl_cv_c_multiarch=no
 
12611
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12612
/* end confdefs.h.  */
 
12613
#ifndef __APPLE_CC__
 
12614
         not a universal capable compiler
 
12615
        #endif
 
12616
        typedef int dummy;
 
12617
 
 
12618
_ACEOF
 
12619
if ac_fn_c_try_compile "$LINENO"; then :
 
12620
 
 
12621
               arch=
 
12622
     prev=
 
12623
     for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
 
12624
       if test -n "$prev"; then
 
12625
         case $word in
 
12626
           i?86 | x86_64 | ppc | ppc64)
 
12627
             if test -z "$arch" || test "$arch" = "$word"; then
 
12628
               arch="$word"
 
12629
             else
 
12630
               gl_cv_c_multiarch=yes
 
12631
             fi
 
12632
             ;;
 
12633
         esac
 
12634
         prev=
 
12635
       else
 
12636
         if test "x$word" = "x-arch"; then
 
12637
           prev=arch
 
12638
         fi
 
12639
       fi
 
12640
     done
 
12641
 
 
12642
fi
 
12643
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12644
  if test $gl_cv_c_multiarch = yes; then
 
12645
 
 
12646
$as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
 
12647
 
 
12648
    APPLE_UNIVERSAL_BUILD=1
 
12649
  else
 
12650
    APPLE_UNIVERSAL_BUILD=0
 
12651
  fi
 
12652
 
 
12653
 
 
12654
 
 
12655
 
 
12656
 
 
12657
 
 
12658
 
 
12659
 
 
12660
 
 
12661
 
 
12662
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
 
12663
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
 
12664
if test "${ac_cv_header_stdbool_h+set}" = set; then :
 
12665
  $as_echo_n "(cached) " >&6
 
12666
else
 
12667
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12668
/* end confdefs.h.  */
 
12669
 
 
12670
             #include <stdbool.h>
 
12671
             #ifndef bool
 
12672
              "error: bool is not defined"
 
12673
             #endif
 
12674
             #ifndef false
 
12675
              "error: false is not defined"
 
12676
             #endif
 
12677
             #if false
 
12678
              "error: false is not 0"
 
12679
             #endif
 
12680
             #ifndef true
 
12681
              "error: true is not defined"
 
12682
             #endif
 
12683
             #if true != 1
 
12684
              "error: true is not 1"
 
12685
             #endif
 
12686
             #ifndef __bool_true_false_are_defined
 
12687
              "error: __bool_true_false_are_defined is not defined"
 
12688
             #endif
 
12689
 
 
12690
             struct s { _Bool s: 1; _Bool t; } s;
 
12691
 
 
12692
             char a[true == 1 ? 1 : -1];
 
12693
             char b[false == 0 ? 1 : -1];
 
12694
             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
 
12695
             char d[(bool) 0.5 == true ? 1 : -1];
 
12696
             /* See body of main program for 'e'.  */
 
12697
             char f[(_Bool) 0.0 == false ? 1 : -1];
 
12698
             char g[true];
 
12699
             char h[sizeof (_Bool)];
 
12700
             char i[sizeof s.t];
 
12701
             enum { j = false, k = true, l = false * true, m = true * 256 };
 
12702
             /* The following fails for
 
12703
                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
 
12704
             _Bool n[m];
 
12705
             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
 
12706
             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
 
12707
             /* Catch a bug in an HP-UX C compiler.  See
 
12708
                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
 
12709
                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
 
12710
              */
 
12711
             _Bool q = true;
 
12712
             _Bool *pq = &q;
 
12713
 
 
12714
int
 
12715
main (void)
 
12716
{
 
12717
 
 
12718
             bool e = &s;
 
12719
             *pq |= q;
 
12720
             *pq |= ! q;
 
12721
             /* Refer to every declared value, to avoid compiler optimizations.  */
 
12722
             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
 
12723
                     + !m + !n + !o + !p + !q + !pq);
 
12724
 
 
12725
  ;
 
12726
  return 0;
 
12727
}
 
12728
_ACEOF
 
12729
if ac_fn_c_try_compile "$LINENO"; then :
 
12730
  ac_cv_header_stdbool_h=yes
 
12731
else
 
12732
  ac_cv_header_stdbool_h=no
 
12733
fi
 
12734
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12735
fi
 
12736
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
 
12737
$as_echo "$ac_cv_header_stdbool_h" >&6; }
 
12738
   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
 
12739
if test "x$ac_cv_type__Bool" = x""yes; then :
 
12740
 
 
12741
cat >>confdefs.h <<_ACEOF
 
12742
#define HAVE__BOOL 1
 
12743
_ACEOF
 
12744
 
 
12745
 
 
12746
fi
 
12747
 
 
12748
   if test $ac_cv_header_stdbool_h = yes; then
 
12749
 
 
12750
$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
 
12751
 
 
12752
   fi
 
12753
 
 
12754
    REPLACE_NULL=0;
 
12755
  HAVE_WCHAR_T=1;
 
12756
  STDDEF_H='';
 
12757
 
 
12758
 
 
12759
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
 
12760
$as_echo_n "checking for wchar_t... " >&6; }
 
12761
if test "${gt_cv_c_wchar_t+set}" = set; then :
 
12762
  $as_echo_n "(cached) " >&6
 
12763
else
 
12764
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12765
/* end confdefs.h.  */
 
12766
#include <stddef.h>
 
12767
            wchar_t foo = (wchar_t)'\0';
 
12768
int
 
12769
main (void)
 
12770
{
 
12771
 
 
12772
  ;
 
12773
  return 0;
 
12774
}
 
12775
_ACEOF
 
12776
if ac_fn_c_try_compile "$LINENO"; then :
 
12777
  gt_cv_c_wchar_t=yes
 
12778
else
 
12779
  gt_cv_c_wchar_t=no
 
12780
fi
 
12781
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12782
fi
 
12783
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
 
12784
$as_echo "$gt_cv_c_wchar_t" >&6; }
 
12785
  if test $gt_cv_c_wchar_t = yes; then
 
12786
 
 
12787
$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
 
12788
 
 
12789
  fi
 
12790
 
 
12791
 
 
12792
 
 
12793
 
 
12794
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
 
12795
$as_echo_n "checking for long long int... " >&6; }
 
12796
if test "${ac_cv_type_long_long_int+set}" = set; then :
 
12797
  $as_echo_n "(cached) " >&6
 
12798
else
 
12799
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12800
/* end confdefs.h.  */
 
12801
 
 
12802
  /* For now, do not test the preprocessor; as of 2007 there are too many
 
12803
         implementations with broken preprocessors.  Perhaps this can
 
12804
         be revisited in 2012.  In the meantime, code should not expect
 
12805
         #if to work with literals wider than 32 bits.  */
 
12806
      /* Test literals.  */
 
12807
      long long int ll = 9223372036854775807ll;
 
12808
      long long int nll = -9223372036854775807LL;
 
12809
      unsigned long long int ull = 18446744073709551615ULL;
 
12810
      /* Test constant expressions.   */
 
12811
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
12812
                     ? 1 : -1)];
 
12813
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
 
12814
                     ? 1 : -1)];
 
12815
      int i = 63;
 
12816
int
 
12817
main (void)
 
12818
{
 
12819
/* Test availability of runtime routines for shift and division.  */
 
12820
      long long int llmax = 9223372036854775807ll;
 
12821
      unsigned long long int ullmax = 18446744073709551615ull;
 
12822
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
 
12823
              | (llmax / ll) | (llmax % ll)
 
12824
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
 
12825
              | (ullmax / ull) | (ullmax % ull));
 
12826
  ;
 
12827
  return 0;
 
12828
}
 
12829
 
 
12830
_ACEOF
 
12831
if ac_fn_c_try_link "$LINENO"; then :
 
12832
                          if test "$cross_compiling" = yes; then :
 
12833
  ac_cv_type_long_long_int=yes
 
12834
else
 
12835
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12836
/* end confdefs.h.  */
 
12837
#include <limits.h>
 
12838
               #ifndef LLONG_MAX
 
12839
               # define HALF \
 
12840
                        (1LL << (sizeof (long long int) * CHAR_BIT - 2))
 
12841
               # define LLONG_MAX (HALF - 1 + HALF)
 
12842
               #endif
 
12843
int
 
12844
main (void)
 
12845
{
 
12846
long long int n = 1;
 
12847
               int i;
 
12848
               for (i = 0; ; i++)
 
12849
                 {
 
12850
                   long long int m = n << i;
 
12851
                   if (m >> i != n)
 
12852
                     return 1;
 
12853
                   if (LLONG_MAX / 2 < m)
 
12854
                     break;
 
12855
                 }
 
12856
               return 0;
 
12857
  ;
 
12858
  return 0;
 
12859
}
 
12860
_ACEOF
 
12861
if ac_fn_c_try_run "$LINENO"; then :
 
12862
  ac_cv_type_long_long_int=yes
 
12863
else
 
12864
  ac_cv_type_long_long_int=no
 
12865
fi
 
12866
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
12867
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
12868
fi
 
12869
 
 
12870
else
 
12871
  ac_cv_type_long_long_int=no
 
12872
fi
 
12873
rm -f core conftest.err conftest.$ac_objext \
 
12874
    conftest$ac_exeext conftest.$ac_ext
 
12875
fi
 
12876
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
 
12877
$as_echo "$ac_cv_type_long_long_int" >&6; }
 
12878
  if test $ac_cv_type_long_long_int = yes; then
 
12879
 
 
12880
$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
 
12881
 
 
12882
  fi
 
12883
 
 
12884
 
 
12885
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
 
12886
$as_echo_n "checking for unsigned long long int... " >&6; }
 
12887
if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
 
12888
  $as_echo_n "(cached) " >&6
 
12889
else
 
12890
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12891
/* end confdefs.h.  */
 
12892
 
 
12893
  /* For now, do not test the preprocessor; as of 2007 there are too many
 
12894
         implementations with broken preprocessors.  Perhaps this can
 
12895
         be revisited in 2012.  In the meantime, code should not expect
 
12896
         #if to work with literals wider than 32 bits.  */
 
12897
      /* Test literals.  */
 
12898
      long long int ll = 9223372036854775807ll;
 
12899
      long long int nll = -9223372036854775807LL;
 
12900
      unsigned long long int ull = 18446744073709551615ULL;
 
12901
      /* Test constant expressions.   */
 
12902
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
12903
                     ? 1 : -1)];
 
12904
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
 
12905
                     ? 1 : -1)];
 
12906
      int i = 63;
 
12907
int
 
12908
main (void)
 
12909
{
 
12910
/* Test availability of runtime routines for shift and division.  */
 
12911
      long long int llmax = 9223372036854775807ll;
 
12912
      unsigned long long int ullmax = 18446744073709551615ull;
 
12913
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
 
12914
              | (llmax / ll) | (llmax % ll)
 
12915
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
 
12916
              | (ullmax / ull) | (ullmax % ull));
 
12917
  ;
 
12918
  return 0;
 
12919
}
 
12920
 
 
12921
_ACEOF
 
12922
if ac_fn_c_try_link "$LINENO"; then :
 
12923
  ac_cv_type_unsigned_long_long_int=yes
 
12924
else
 
12925
  ac_cv_type_unsigned_long_long_int=no
 
12926
fi
 
12927
rm -f core conftest.err conftest.$ac_objext \
 
12928
    conftest$ac_exeext conftest.$ac_ext
 
12929
fi
 
12930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
 
12931
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
 
12932
  if test $ac_cv_type_unsigned_long_long_int = yes; then
 
12933
 
 
12934
$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
 
12935
 
 
12936
  fi
 
12937
 
 
12938
 
 
12939
 
 
12940
 
 
12941
 
 
12942
 
 
12943
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
 
12944
$as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
 
12945
if test "${gl_cv_prog_as_underscore+set}" = set; then :
 
12946
  $as_echo_n "(cached) " >&6
 
12947
else
 
12948
  cat > conftest.c <<EOF
 
12949
#ifdef __cplusplus
 
12950
extern "C" int foo (void);
 
12951
#endif
 
12952
int foo(void) { return 0; }
 
12953
EOF
 
12954
     # Look for the assembly language name in the .s file.
 
12955
     { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c'
 
12956
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
 
12957
  (eval $ac_try) 2>&5
 
12958
  ac_status=$?
 
12959
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12960
  test $ac_status = 0; }; } >/dev/null 2>&1
 
12961
     if grep _foo conftest.s >/dev/null ; then
 
12962
       gl_cv_prog_as_underscore=yes
 
12963
     else
 
12964
       gl_cv_prog_as_underscore=no
 
12965
     fi
 
12966
     rm -f conftest*
 
12967
 
 
12968
fi
 
12969
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5
 
12970
$as_echo "$gl_cv_prog_as_underscore" >&6; }
 
12971
  if test $gl_cv_prog_as_underscore = yes; then
 
12972
    USER_LABEL_PREFIX=_
 
12973
  else
 
12974
    USER_LABEL_PREFIX=
 
12975
  fi
 
12976
 
 
12977
cat >>confdefs.h <<_ACEOF
 
12978
#define USER_LABEL_PREFIX $USER_LABEL_PREFIX
 
12979
_ACEOF
 
12980
 
 
12981
  ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
 
12982
 
 
12983
 
 
12984
 
 
12985
 
 
12986
 
 
12987
 
 
12988
 
 
12989
    HAVE_STRCASECMP=1;
 
12990
  HAVE_DECL_STRNCASECMP=1;
 
12991
 
 
12992
 
 
12993
 
 
12994
 
 
12995
 
 
12996
 
 
12997
  if test -z "$ERRNO_H"; then
 
12998
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
 
12999
$as_echo_n "checking for working strerror function... " >&6; }
 
13000
if test "${gl_cv_func_working_strerror+set}" = set; then :
 
13001
  $as_echo_n "(cached) " >&6
 
13002
else
 
13003
  if test "$cross_compiling" = yes; then :
 
13004
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13005
/* end confdefs.h.  */
 
13006
#include <string.h>
 
13007
 
 
13008
int
 
13009
main (void)
 
13010
{
 
13011
return !*strerror (-2);
 
13012
  ;
 
13013
  return 0;
 
13014
}
 
13015
_ACEOF
 
13016
if ac_fn_c_try_compile "$LINENO"; then :
 
13017
  gl_cv_func_working_strerror=yes
 
13018
else
 
13019
  gl_cv_func_working_strerror=no
 
13020
fi
 
13021
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13022
 
 
13023
else
 
13024
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13025
/* end confdefs.h.  */
 
13026
#include <string.h>
 
13027
 
 
13028
int
 
13029
main (void)
 
13030
{
 
13031
return !*strerror (-2);
 
13032
  ;
 
13033
  return 0;
 
13034
}
 
13035
_ACEOF
 
13036
if ac_fn_c_try_run "$LINENO"; then :
 
13037
  gl_cv_func_working_strerror=yes
 
13038
else
 
13039
  gl_cv_func_working_strerror=no
 
13040
fi
 
13041
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
13042
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
13043
fi
 
13044
 
 
13045
 
 
13046
fi
 
13047
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
 
13048
$as_echo "$gl_cv_func_working_strerror" >&6; }
 
13049
    if test $gl_cv_func_working_strerror = no; then
 
13050
                  REPLACE_STRERROR=1
 
13051
    fi
 
13052
  else
 
13053
            REPLACE_STRERROR=1
 
13054
  fi
 
13055
  if test $REPLACE_STRERROR = 1; then
 
13056
 
 
13057
  ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
 
13058
if test "x$ac_cv_have_decl_strerror" = x""yes; then :
 
13059
  ac_have_decl=1
 
13060
else
 
13061
  ac_have_decl=0
 
13062
fi
 
13063
 
 
13064
cat >>confdefs.h <<_ACEOF
 
13065
#define HAVE_DECL_STRERROR $ac_have_decl
 
13066
_ACEOF
 
13067
 
 
13068
 
 
13069
  if test $ac_cv_header_sys_socket_h != yes; then
 
13070
                    for ac_header in winsock2.h
 
13071
do :
 
13072
  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
 
13073
if test "x$ac_cv_header_winsock2_h" = x""yes; then :
 
13074
  cat >>confdefs.h <<_ACEOF
 
13075
#define HAVE_WINSOCK2_H 1
 
13076
_ACEOF
 
13077
 
 
13078
fi
 
13079
 
 
13080
done
 
13081
 
 
13082
  fi
 
13083
 
 
13084
  fi
 
13085
 
 
13086
 
 
13087
 
 
13088
 
 
13089
 
 
13090
 
 
13091
 
 
13092
 
 
13093
 
 
13094
 
 
13095
 
 
13096
 
 
13097
     if test $gl_cv_have_include_next = yes; then
 
13098
       gl_cv_next_string_h='<'string.h'>'
 
13099
     else
 
13100
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
 
13101
$as_echo_n "checking absolute name of <string.h>... " >&6; }
 
13102
if test "${gl_cv_next_string_h+set}" = set; then :
 
13103
  $as_echo_n "(cached) " >&6
 
13104
else
 
13105
 
 
13106
          if test $ac_cv_header_string_h = yes; then
 
13107
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13108
/* end confdefs.h.  */
 
13109
#include <string.h>
 
13110
 
 
13111
_ACEOF
 
13112
                                                                                                case "$host_os" in
 
13113
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
13114
              *)    gl_absname_cpp="$ac_cpp" ;;
 
13115
            esac
 
13116
                                                gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
13117
               sed -n '\#/string.h#{
 
13118
                 s#.*"\(.*/string.h\)".*#\1#
 
13119
                 s#^/[^/]#//&#
 
13120
                 p
 
13121
                 q
 
13122
               }'`'"'
 
13123
          else
 
13124
            gl_cv_next_string_h='<'string.h'>'
 
13125
          fi
 
13126
 
 
13127
fi
 
13128
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
 
13129
$as_echo "$gl_cv_next_string_h" >&6; }
 
13130
     fi
 
13131
     NEXT_STRING_H=$gl_cv_next_string_h
 
13132
 
 
13133
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
13134
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
13135
       gl_next_as_first_directive='<'string.h'>'
 
13136
     else
 
13137
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
13138
       gl_next_as_first_directive=$gl_cv_next_string_h
 
13139
     fi
 
13140
     NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
 
13141
 
 
13142
 
 
13143
 
 
13144
 
 
13145
 
 
13146
    for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup      strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal      strverscmp; do
 
13147
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
 
13148
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
 
13149
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
 
13150
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
 
13151
  $as_echo_n "(cached) " >&6
 
13152
else
 
13153
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13154
/* end confdefs.h.  */
 
13155
#include <string.h>
 
13156
 
 
13157
int
 
13158
main (void)
 
13159
{
 
13160
#undef $gl_func
 
13161
  (void) $gl_func;
 
13162
  ;
 
13163
  return 0;
 
13164
}
 
13165
_ACEOF
 
13166
if ac_fn_c_try_compile "$LINENO"; then :
 
13167
  eval "$as_gl_Symbol=yes"
 
13168
else
 
13169
  eval "$as_gl_Symbol=no"
 
13170
fi
 
13171
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13172
fi
 
13173
eval ac_res=\$$as_gl_Symbol
 
13174
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
13175
$as_echo "$ac_res" >&6; }
 
13176
     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
 
13177
  cat >>confdefs.h <<_ACEOF
 
13178
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
 
13179
_ACEOF
 
13180
 
 
13181
                     eval ac_cv_have_decl_$gl_func=yes
 
13182
fi
 
13183
      done
 
13184
 
 
13185
 
 
13186
 
 
13187
 
 
13188
 
 
13189
 
 
13190
 
 
13191
 
 
13192
 
 
13193
 
 
13194
 
 
13195
 
 
13196
     if test $gl_cv_have_include_next = yes; then
 
13197
       gl_cv_next_strings_h='<'strings.h'>'
 
13198
     else
 
13199
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5
 
13200
$as_echo_n "checking absolute name of <strings.h>... " >&6; }
 
13201
if test "${gl_cv_next_strings_h+set}" = set; then :
 
13202
  $as_echo_n "(cached) " >&6
 
13203
else
 
13204
 
 
13205
          if test $ac_cv_header_strings_h = yes; then
 
13206
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13207
/* end confdefs.h.  */
 
13208
#include <strings.h>
 
13209
 
 
13210
_ACEOF
 
13211
                                                                                                case "$host_os" in
 
13212
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
13213
              *)    gl_absname_cpp="$ac_cpp" ;;
 
13214
            esac
 
13215
                                                gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
13216
               sed -n '\#/strings.h#{
 
13217
                 s#.*"\(.*/strings.h\)".*#\1#
 
13218
                 s#^/[^/]#//&#
 
13219
                 p
 
13220
                 q
 
13221
               }'`'"'
 
13222
          else
 
13223
            gl_cv_next_strings_h='<'strings.h'>'
 
13224
          fi
 
13225
 
 
13226
fi
 
13227
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
 
13228
$as_echo "$gl_cv_next_strings_h" >&6; }
 
13229
     fi
 
13230
     NEXT_STRINGS_H=$gl_cv_next_strings_h
 
13231
 
 
13232
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
13233
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
13234
       gl_next_as_first_directive='<'strings.h'>'
 
13235
     else
 
13236
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
13237
       gl_next_as_first_directive=$gl_cv_next_strings_h
 
13238
     fi
 
13239
     NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
 
13240
 
 
13241
 
 
13242
 
 
13243
 
 
13244
 
 
13245
    for gl_func in strcasecmp strncasecmp; do
 
13246
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
 
13247
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
 
13248
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
 
13249
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
 
13250
  $as_echo_n "(cached) " >&6
 
13251
else
 
13252
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13253
/* end confdefs.h.  */
 
13254
#include <strings.h>
 
13255
 
 
13256
int
 
13257
main (void)
 
13258
{
 
13259
#undef $gl_func
 
13260
  (void) $gl_func;
 
13261
  ;
 
13262
  return 0;
 
13263
}
 
13264
_ACEOF
 
13265
if ac_fn_c_try_compile "$LINENO"; then :
 
13266
  eval "$as_gl_Symbol=yes"
 
13267
else
 
13268
  eval "$as_gl_Symbol=no"
 
13269
fi
 
13270
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13271
fi
 
13272
eval ac_res=\$$as_gl_Symbol
 
13273
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
13274
$as_echo "$ac_res" >&6; }
 
13275
     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
 
13276
  cat >>confdefs.h <<_ACEOF
 
13277
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
 
13278
_ACEOF
 
13279
 
 
13280
                     eval ac_cv_have_decl_$gl_func=yes
 
13281
fi
 
13282
      done
 
13283
 
 
13284
 
 
13285
ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
 
13286
if test "x$ac_cv_have_decl_strndup" = x""yes; then :
 
13287
  ac_have_decl=1
 
13288
else
 
13289
  ac_have_decl=0
 
13290
fi
 
13291
 
 
13292
cat >>confdefs.h <<_ACEOF
 
13293
#define HAVE_DECL_STRNDUP $ac_have_decl
 
13294
_ACEOF
 
13295
 
 
13296
 
 
13297
 
 
13298
ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
 
13299
if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
 
13300
  ac_have_decl=1
 
13301
else
 
13302
  ac_have_decl=0
 
13303
fi
 
13304
 
 
13305
cat >>confdefs.h <<_ACEOF
 
13306
#define HAVE_DECL_STRNLEN $ac_have_decl
 
13307
_ACEOF
 
13308
 
 
13309
 
 
13310
 
 
13311
 
 
13312
 
 
13313
 
 
13314
 
 
13315
 
 
13316
 
 
13317
 
 
13318
 
 
13319
 
 
13320
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
 
13321
$as_echo_n "checking for wint_t... " >&6; }
 
13322
if test "${gt_cv_c_wint_t+set}" = set; then :
 
13323
  $as_echo_n "(cached) " >&6
 
13324
else
 
13325
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13326
/* end confdefs.h.  */
 
13327
 
 
13328
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
 
13329
   <wchar.h>.
 
13330
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
 
13331
   before <wchar.h>.  */
 
13332
#include <stddef.h>
 
13333
#include <stdio.h>
 
13334
#include <time.h>
 
13335
#include <wchar.h>
 
13336
            wint_t foo = (wchar_t)'\0';
 
13337
int
 
13338
main (void)
 
13339
{
 
13340
 
 
13341
  ;
 
13342
  return 0;
 
13343
}
 
13344
_ACEOF
 
13345
if ac_fn_c_try_compile "$LINENO"; then :
 
13346
  gt_cv_c_wint_t=yes
 
13347
else
 
13348
  gt_cv_c_wint_t=no
 
13349
fi
 
13350
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13351
fi
 
13352
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
 
13353
$as_echo "$gt_cv_c_wint_t" >&6; }
 
13354
  if test $gt_cv_c_wint_t = yes; then
 
13355
 
 
13356
$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
 
13357
 
 
13358
  fi
 
13359
 
 
13360
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
 
13361
if test "x$ac_cv_type_size_t" = x""yes; then :
 
13362
 
 
13363
else
 
13364
 
 
13365
cat >>confdefs.h <<_ACEOF
 
13366
#define size_t unsigned int
 
13367
_ACEOF
 
13368
 
 
13369
fi
 
13370
 
 
13371
 
 
13372
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
 
13373
$as_echo_n "checking for inttypes.h... " >&6; }
 
13374
if test "${gl_cv_header_inttypes_h+set}" = set; then :
 
13375
  $as_echo_n "(cached) " >&6
 
13376
else
 
13377
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13378
/* end confdefs.h.  */
 
13379
 
 
13380
#include <sys/types.h>
 
13381
#include <inttypes.h>
 
13382
 
 
13383
int
 
13384
main (void)
 
13385
{
 
13386
uintmax_t i = (uintmax_t) -1; return !i;
 
13387
  ;
 
13388
  return 0;
 
13389
}
 
13390
_ACEOF
 
13391
if ac_fn_c_try_compile "$LINENO"; then :
 
13392
  gl_cv_header_inttypes_h=yes
 
13393
else
 
13394
  gl_cv_header_inttypes_h=no
 
13395
fi
 
13396
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13397
fi
 
13398
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
 
13399
$as_echo "$gl_cv_header_inttypes_h" >&6; }
 
13400
  if test $gl_cv_header_inttypes_h = yes; then
 
13401
 
 
13402
cat >>confdefs.h <<_ACEOF
 
13403
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
 
13404
_ACEOF
 
13405
 
 
13406
  fi
 
13407
 
 
13408
 
 
13409
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
 
13410
$as_echo_n "checking for stdint.h... " >&6; }
 
13411
if test "${gl_cv_header_stdint_h+set}" = set; then :
 
13412
  $as_echo_n "(cached) " >&6
 
13413
else
 
13414
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13415
/* end confdefs.h.  */
 
13416
#include <sys/types.h>
 
13417
            #include <stdint.h>
 
13418
int
 
13419
main (void)
 
13420
{
 
13421
uintmax_t i = (uintmax_t) -1; return !i;
 
13422
  ;
 
13423
  return 0;
 
13424
}
 
13425
_ACEOF
 
13426
if ac_fn_c_try_compile "$LINENO"; then :
 
13427
  gl_cv_header_stdint_h=yes
 
13428
else
 
13429
  gl_cv_header_stdint_h=no
 
13430
fi
 
13431
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13432
fi
 
13433
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
 
13434
$as_echo "$gl_cv_header_stdint_h" >&6; }
 
13435
  if test $gl_cv_header_stdint_h = yes; then
 
13436
 
 
13437
cat >>confdefs.h <<_ACEOF
 
13438
#define HAVE_STDINT_H_WITH_UINTMAX 1
 
13439
_ACEOF
 
13440
 
 
13441
  fi
 
13442
 
 
13443
 
 
13444
 
 
13445
 
 
13446
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
 
13447
$as_echo_n "checking for intmax_t... " >&6; }
 
13448
if test "${gt_cv_c_intmax_t+set}" = set; then :
 
13449
  $as_echo_n "(cached) " >&6
 
13450
else
 
13451
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13452
/* end confdefs.h.  */
 
13453
 
 
13454
#include <stddef.h>
 
13455
#include <stdlib.h>
 
13456
#if HAVE_STDINT_H_WITH_UINTMAX
 
13457
#include <stdint.h>
 
13458
#endif
 
13459
#if HAVE_INTTYPES_H_WITH_UINTMAX
 
13460
#include <inttypes.h>
 
13461
#endif
 
13462
 
 
13463
int
 
13464
main (void)
 
13465
{
 
13466
intmax_t x = -1; return !x;
 
13467
  ;
 
13468
  return 0;
 
13469
}
 
13470
_ACEOF
 
13471
if ac_fn_c_try_compile "$LINENO"; then :
 
13472
  gt_cv_c_intmax_t=yes
 
13473
else
 
13474
  gt_cv_c_intmax_t=no
 
13475
fi
 
13476
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13477
fi
 
13478
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
 
13479
$as_echo "$gt_cv_c_intmax_t" >&6; }
 
13480
  if test $gt_cv_c_intmax_t = yes; then
 
13481
 
 
13482
$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
 
13483
 
 
13484
  else
 
13485
 
 
13486
    test $ac_cv_type_long_long_int = yes \
 
13487
      && ac_type='long long' \
 
13488
      || ac_type='long'
 
13489
 
 
13490
cat >>confdefs.h <<_ACEOF
 
13491
#define intmax_t $ac_type
 
13492
_ACEOF
 
13493
 
 
13494
  fi
 
13495
 
 
13496
 
 
13497
 
 
13498
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
 
13499
$as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
 
13500
if test "${gl_cv_func_snprintf_retval_c99+set}" = set; then :
 
13501
  $as_echo_n "(cached) " >&6
 
13502
else
 
13503
 
 
13504
      if test "$cross_compiling" = yes; then :
 
13505
 
 
13506
         case "$host_os" in
 
13507
                                 # Guess yes on glibc systems.
 
13508
           *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
 
13509
                                 # Guess yes on FreeBSD >= 5.
 
13510
           freebsd[1-4]*)        gl_cv_func_snprintf_retval_c99="guessing no";;
 
13511
           freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
 
13512
                                 # Guess yes on MacOS X >= 10.3.
 
13513
           darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
 
13514
           darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
 
13515
                                 # Guess yes on OpenBSD >= 3.9.
 
13516
           openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
 
13517
                                 gl_cv_func_snprintf_retval_c99="guessing no";;
 
13518
           openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
 
13519
                                 # Guess yes on Solaris >= 2.6.
 
13520
           solaris2.[0-5]*)      gl_cv_func_snprintf_retval_c99="guessing no";;
 
13521
           solaris*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
 
13522
                                 # Guess yes on AIX >= 4.
 
13523
           aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
 
13524
           aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
 
13525
                                 # Guess yes on NetBSD >= 3.
 
13526
           netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
 
13527
                                 gl_cv_func_snprintf_retval_c99="guessing no";;
 
13528
           netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
 
13529
                                 # Guess yes on BeOS.
 
13530
           beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
 
13531
                                 # If we don't know, assume the worst.
 
13532
           *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
 
13533
         esac
 
13534
 
 
13535
else
 
13536
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13537
/* end confdefs.h.  */
 
13538
 
 
13539
#include <stdio.h>
 
13540
#include <string.h>
 
13541
static char buf[100];
 
13542
int main ()
 
13543
{
 
13544
  strcpy (buf, "ABCDEF");
 
13545
  if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
 
13546
    return 1;
 
13547
  return 0;
 
13548
}
 
13549
_ACEOF
 
13550
if ac_fn_c_try_run "$LINENO"; then :
 
13551
  gl_cv_func_snprintf_retval_c99=yes
 
13552
else
 
13553
  gl_cv_func_snprintf_retval_c99=no
 
13554
fi
 
13555
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
13556
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
13557
fi
 
13558
 
 
13559
 
 
13560
fi
 
13561
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
 
13562
$as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
 
13563
 
 
13564
 
 
13565
 
 
13566
 
 
13567
 
 
13568
 
 
13569
 
 
13570
  for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
 
13571
do :
 
13572
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
13573
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
13574
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
13575
  cat >>confdefs.h <<_ACEOF
 
13576
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
13577
_ACEOF
 
13578
 
 
13579
fi
 
13580
done
 
13581
 
 
13582
      ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
 
13583
"
 
13584
if test "x$ac_cv_have_decl__snprintf" = x""yes; then :
 
13585
  ac_have_decl=1
 
13586
else
 
13587
  ac_have_decl=0
 
13588
fi
 
13589
 
 
13590
cat >>confdefs.h <<_ACEOF
 
13591
#define HAVE_DECL__SNPRINTF $ac_have_decl
 
13592
_ACEOF
 
13593
 
 
13594
 
 
13595
  case "$gl_cv_func_snprintf_retval_c99" in
 
13596
    *yes)
 
13597
 
 
13598
$as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
 
13599
 
 
13600
      ;;
 
13601
  esac
 
13602
 
 
13603
ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
 
13604
if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
 
13605
  ac_have_decl=1
 
13606
else
 
13607
  ac_have_decl=0
 
13608
fi
 
13609
 
 
13610
cat >>confdefs.h <<_ACEOF
 
13611
#define HAVE_DECL_VSNPRINTF $ac_have_decl
 
13612
_ACEOF
 
13613
 
 
13614
 
 
13615
 
 
13616
 
 
13617
 
 
13618
 
 
13619
 
 
13620
ac_fn_c_check_decl "$LINENO" "iswblank" "ac_cv_have_decl_iswblank" "$ac_includes_default"
 
13621
if test "x$ac_cv_have_decl_iswblank" = x""yes; then :
 
13622
  ac_have_decl=1
 
13623
else
 
13624
  ac_have_decl=0
 
13625
fi
 
13626
 
 
13627
cat >>confdefs.h <<_ACEOF
 
13628
#define HAVE_DECL_ISWBLANK $ac_have_decl
 
13629
_ACEOF
 
13630
 
 
13631
 
 
13632
   if false; then
 
13633
  GL_COND_LIBTOOL_TRUE=
 
13634
  GL_COND_LIBTOOL_FALSE='#'
 
13635
else
 
13636
  GL_COND_LIBTOOL_TRUE='#'
 
13637
  GL_COND_LIBTOOL_FALSE=
 
13638
fi
 
13639
 
 
13640
  gl_cond_libtool=false
 
13641
  gl_libdeps=
 
13642
  gl_ltlibdeps=
 
13643
  gl_m4_base='m4'
 
13644
 
 
13645
 
 
13646
 
 
13647
 
 
13648
 
 
13649
 
 
13650
 
 
13651
 
 
13652
 
 
13653
  gl_source_base='grub-core/gnulib'
 
13654
  # Code from module alloca:
 
13655
  # Code from module alloca-opt:
 
13656
 
 
13657
 
 
13658
 
 
13659
 
 
13660
 
 
13661
  if test $ac_cv_func_alloca_works = no; then
 
13662
    :
 
13663
  fi
 
13664
 
 
13665
  # Define an additional variable used in the Makefile substitution.
 
13666
  if test $ac_cv_working_alloca_h = yes; then
 
13667
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
 
13668
$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
 
13669
if test "${gl_cv_rpl_alloca+set}" = set; then :
 
13670
  $as_echo_n "(cached) " >&6
 
13671
else
 
13672
 
 
13673
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13674
/* end confdefs.h.  */
 
13675
 
 
13676
#if defined __GNUC__ || defined _AIX || defined _MSC_VER
 
13677
        Need own alloca
 
13678
#endif
 
13679
 
 
13680
_ACEOF
 
13681
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
13682
  $EGREP "Need own alloca" >/dev/null 2>&1; then :
 
13683
  gl_cv_rpl_alloca=yes
 
13684
else
 
13685
  gl_cv_rpl_alloca=no
 
13686
fi
 
13687
rm -f conftest*
 
13688
 
 
13689
 
 
13690
fi
 
13691
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
 
13692
$as_echo "$gl_cv_rpl_alloca" >&6; }
 
13693
    if test $gl_cv_rpl_alloca = yes; then
 
13694
 
 
13695
$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
 
13696
 
 
13697
      ALLOCA_H=alloca.h
 
13698
    else
 
13699
                  ALLOCA_H=
 
13700
    fi
 
13701
  else
 
13702
    ALLOCA_H=alloca.h
 
13703
  fi
 
13704
 
 
13705
 
 
13706
  # Code from module arg-nonnull:
 
13707
  # Code from module argp:
 
13708
 
 
13709
 
 
13710
 
 
13711
 
 
13712
 
 
13713
 
 
13714
  GETOPT_H=getopt.h
 
13715
 
 
13716
$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
 
13717
 
 
13718
 
 
13719
 
 
13720
    GNULIB_UNISTD_H_GETOPT=1
 
13721
 
 
13722
 
 
13723
 
 
13724
 
 
13725
 
 
13726
 
 
13727
 
 
13728
 
 
13729
  gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
 
13730
 
 
13731
 
 
13732
 
 
13733
 
 
13734
 
 
13735
 
 
13736
 
 
13737
 
 
13738
 
 
13739
  gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
 
13740
 
 
13741
 
 
13742
 
 
13743
 
 
13744
 
 
13745
 
 
13746
  ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
 
13747
"
 
13748
if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then :
 
13749
 
 
13750
$as_echo "#define HAVE_DECL_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
 
13751
 
 
13752
else
 
13753
 
 
13754
$as_echo "#define GNULIB_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
 
13755
 
 
13756
fi
 
13757
 
 
13758
  ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
 
13759
"
 
13760
if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then :
 
13761
 
 
13762
$as_echo "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
 
13763
 
 
13764
else
 
13765
 
 
13766
$as_echo "#define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
 
13767
 
 
13768
fi
 
13769
 
 
13770
 
 
13771
  # Check if program_invocation_name and program_invocation_short_name
 
13772
  # are defined elsewhere. It is improbable that only one of them will
 
13773
  # be defined and other not, I prefer to stay on the safe side and to
 
13774
  # test each one separately.
 
13775
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_name is defined" >&5
 
13776
$as_echo_n "checking whether program_invocation_name is defined... " >&6; }
 
13777
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13778
/* end confdefs.h.  */
 
13779
#include <argp.h>
 
13780
int
 
13781
main (void)
 
13782
{
 
13783
program_invocation_name = "test";
 
13784
  ;
 
13785
  return 0;
 
13786
}
 
13787
_ACEOF
 
13788
if ac_fn_c_try_link "$LINENO"; then :
 
13789
 
 
13790
$as_echo "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
 
13791
 
 
13792
                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
13793
$as_echo "yes" >&6; }
 
13794
else
 
13795
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13796
$as_echo "no" >&6; }
 
13797
fi
 
13798
rm -f core conftest.err conftest.$ac_objext \
 
13799
    conftest$ac_exeext conftest.$ac_ext
 
13800
 
 
13801
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_short_name is defined" >&5
 
13802
$as_echo_n "checking whether program_invocation_short_name is defined... " >&6; }
 
13803
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13804
/* end confdefs.h.  */
 
13805
#include <argp.h>
 
13806
int
 
13807
main (void)
 
13808
{
 
13809
program_invocation_short_name = "test";
 
13810
  ;
 
13811
  return 0;
 
13812
}
 
13813
_ACEOF
 
13814
if ac_fn_c_try_link "$LINENO"; then :
 
13815
 
 
13816
$as_echo "#define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
 
13817
 
 
13818
                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
13819
$as_echo "yes" >&6; }
 
13820
else
 
13821
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13822
$as_echo "no" >&6; }
 
13823
fi
 
13824
rm -f core conftest.err conftest.$ac_objext \
 
13825
    conftest$ac_exeext conftest.$ac_ext
 
13826
 
 
13827
 
 
13828
 
 
13829
 
 
13830
 
 
13831
 
 
13832
 
 
13833
 
 
13834
 
 
13835
 
 
13836
 
 
13837
 
 
13838
 
 
13839
 
 
13840
 
 
13841
 
 
13842
 
 
13843
 
 
13844
 
 
13845
  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_error:2:c-format"
 
13846
 
 
13847
 
 
13848
 
 
13849
  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
 
13850
 
 
13851
  # Code from module btowc:
 
13852
 
 
13853
 
 
13854
 
 
13855
 
 
13856
 
 
13857
 
 
13858
  if test $ac_cv_func_btowc = no; then
 
13859
    HAVE_BTOWC=0
 
13860
  else
 
13861
 
 
13862
 
 
13863
 
 
13864
 
 
13865
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
 
13866
$as_echo_n "checking whether btowc(0) is correct... " >&6; }
 
13867
if test "${gl_cv_func_btowc_nul+set}" = set; then :
 
13868
  $as_echo_n "(cached) " >&6
 
13869
else
 
13870
 
 
13871
        if test "$cross_compiling" = yes; then :
 
13872
 
 
13873
           case "$host_os" in
 
13874
                      # Guess no on Cygwin.
 
13875
             cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
 
13876
                      # Guess yes otherwise.
 
13877
             *)       gl_cv_func_btowc_nul="guessing yes" ;;
 
13878
           esac
 
13879
 
 
13880
else
 
13881
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13882
/* end confdefs.h.  */
 
13883
 
 
13884
#include <stdio.h>
 
13885
#include <string.h>
 
13886
#include <wchar.h>
 
13887
int main ()
 
13888
{
 
13889
  if (btowc ('\0') != 0)
 
13890
    return 1;
 
13891
  return 0;
 
13892
}
 
13893
_ACEOF
 
13894
if ac_fn_c_try_run "$LINENO"; then :
 
13895
  gl_cv_func_btowc_nul=yes
 
13896
else
 
13897
  gl_cv_func_btowc_nul=no
 
13898
fi
 
13899
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
13900
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
13901
fi
 
13902
 
 
13903
 
 
13904
fi
 
13905
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
 
13906
$as_echo "$gl_cv_func_btowc_nul" >&6; }
 
13907
 
 
13908
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
 
13909
$as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
 
13910
if test "${gl_cv_func_btowc_eof+set}" = set; then :
 
13911
  $as_echo_n "(cached) " >&6
 
13912
else
 
13913
 
 
13914
                        case "$host_os" in
 
13915
                 # Guess no on IRIX.
 
13916
          irix*) gl_cv_func_btowc_eof="guessing no" ;;
 
13917
                 # Guess yes otherwise.
 
13918
          *)     gl_cv_func_btowc_eof="guessing yes" ;;
 
13919
        esac
 
13920
        if test $LOCALE_FR != none; then
 
13921
          if test "$cross_compiling" = yes; then :
 
13922
  :
 
13923
else
 
13924
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13925
/* end confdefs.h.  */
 
13926
 
 
13927
#include <locale.h>
 
13928
#include <stdio.h>
 
13929
#include <string.h>
 
13930
#include <wchar.h>
 
13931
int main ()
 
13932
{
 
13933
  if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
 
13934
    {
 
13935
      if (btowc (EOF) != WEOF)
 
13936
        return 1;
 
13937
    }
 
13938
  return 0;
 
13939
}
 
13940
_ACEOF
 
13941
if ac_fn_c_try_run "$LINENO"; then :
 
13942
  gl_cv_func_btowc_eof=yes
 
13943
else
 
13944
  gl_cv_func_btowc_eof=no
 
13945
fi
 
13946
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
13947
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
13948
fi
 
13949
 
 
13950
        fi
 
13951
 
 
13952
fi
 
13953
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
 
13954
$as_echo "$gl_cv_func_btowc_eof" >&6; }
 
13955
 
 
13956
    case "$gl_cv_func_btowc_nul" in
 
13957
      *yes) ;;
 
13958
      *) REPLACE_BTOWC=1 ;;
 
13959
    esac
 
13960
    case "$gl_cv_func_btowc_eof" in
 
13961
      *yes) ;;
 
13962
      *) REPLACE_BTOWC=1 ;;
 
13963
    esac
 
13964
  fi
 
13965
  if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
 
13966
 
 
13967
    :
 
13968
 
 
13969
 
 
13970
 
 
13971
 
 
13972
 
 
13973
 
 
13974
 
 
13975
 
 
13976
 
 
13977
  gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
 
13978
 
 
13979
 
 
13980
  :
 
13981
 
 
13982
  fi
 
13983
 
 
13984
 
 
13985
 
 
13986
 
 
13987
  GNULIB_BTOWC=1
 
13988
 
 
13989
 
 
13990
 
 
13991
$as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
 
13992
 
 
13993
 
 
13994
 
 
13995
  # Code from module c++defs:
 
13996
  # Code from module configmake:
 
13997
  # Code from module dirname-lgpl:
 
13998
 
 
13999
 
 
14000
 
 
14001
 
 
14002
 
 
14003
 
 
14004
 
 
14005
 
 
14006
 
 
14007
  gl_LIBOBJS="$gl_LIBOBJS basename-lgpl.$ac_objext"
 
14008
 
 
14009
 
 
14010
 
 
14011
 
 
14012
 
 
14013
 
 
14014
 
 
14015
 
 
14016
 
 
14017
  gl_LIBOBJS="$gl_LIBOBJS dirname-lgpl.$ac_objext"
 
14018
 
 
14019
 
 
14020
 
 
14021
 
 
14022
 
 
14023
 
 
14024
 
 
14025
 
 
14026
 
 
14027
  gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext"
 
14028
 
 
14029
 
 
14030
 
 
14031
 
 
14032
 
 
14033
 
 
14034
  # Code from module double-slash-root:
 
14035
 
 
14036
 
 
14037
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
 
14038
$as_echo_n "checking whether // is distinct from /... " >&6; }
 
14039
if test "${gl_cv_double_slash_root+set}" = set; then :
 
14040
  $as_echo_n "(cached) " >&6
 
14041
else
 
14042
   if test x"$cross_compiling" = xyes ; then
 
14043
        # When cross-compiling, there is no way to tell whether // is special
 
14044
        # short of a list of hosts.  However, the only known hosts to date
 
14045
        # that have a distinct // are Apollo DomainOS (too old to port to),
 
14046
        # Cygwin, and z/OS.  If anyone knows of another system for which // has
 
14047
        # special semantics and is distinct from /, please report it to
 
14048
        # <bug-gnulib@gnu.org>.
 
14049
        case $host in
 
14050
          *-cygwin | i370-ibm-openedition)
 
14051
            gl_cv_double_slash_root=yes ;;
 
14052
          *)
 
14053
            # Be optimistic and assume that / and // are the same when we
 
14054
            # don't know.
 
14055
            gl_cv_double_slash_root='unknown, assuming no' ;;
 
14056
        esac
 
14057
      else
 
14058
        set x `ls -di / // 2>/dev/null`
 
14059
        if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
 
14060
          gl_cv_double_slash_root=no
 
14061
        else
 
14062
          gl_cv_double_slash_root=yes
 
14063
        fi
 
14064
      fi
 
14065
fi
 
14066
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
 
14067
$as_echo "$gl_cv_double_slash_root" >&6; }
 
14068
  if test "$gl_cv_double_slash_root" = yes; then
 
14069
 
 
14070
$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
 
14071
 
 
14072
  fi
 
14073
 
 
14074
  # Code from module errno:
 
14075
 
 
14076
  # Code from module error:
 
14077
 
 
14078
 
 
14079
 
 
14080
 
 
14081
 
 
14082
 
 
14083
 
 
14084
 
 
14085
 
 
14086
 
 
14087
 
 
14088
 
 
14089
 
 
14090
 
 
14091
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
 
14092
$as_echo_n "checking for error_at_line... " >&6; }
 
14093
if test "${ac_cv_lib_error_at_line+set}" = set; then :
 
14094
  $as_echo_n "(cached) " >&6
 
14095
else
 
14096
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14097
/* end confdefs.h.  */
 
14098
#include <error.h>
 
14099
int
 
14100
main (void)
 
14101
{
 
14102
error_at_line (0, 0, "", 0, "an error occurred");
 
14103
  ;
 
14104
  return 0;
 
14105
}
 
14106
_ACEOF
 
14107
if ac_fn_c_try_link "$LINENO"; then :
 
14108
  ac_cv_lib_error_at_line=yes
 
14109
else
 
14110
  ac_cv_lib_error_at_line=no
 
14111
fi
 
14112
rm -f core conftest.err conftest.$ac_objext \
 
14113
    conftest$ac_exeext conftest.$ac_ext
 
14114
fi
 
14115
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
 
14116
$as_echo "$ac_cv_lib_error_at_line" >&6; }
 
14117
  if test $ac_cv_lib_error_at_line = no; then
 
14118
 
 
14119
 
 
14120
 
 
14121
 
 
14122
 
 
14123
 
 
14124
 
 
14125
 
 
14126
  gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
 
14127
 
 
14128
  fi
 
14129
 
 
14130
 
 
14131
 
 
14132
 
 
14133
  :
 
14134
 
 
14135
 
 
14136
 
 
14137
 
 
14138
  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
 
14139
 
 
14140
 
 
14141
 
 
14142
  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
 
14143
 
 
14144
  # Code from module extensions:
 
14145
  # Code from module float:
 
14146
 
 
14147
 
 
14148
 
 
14149
  FLOAT_H=
 
14150
  case "$host_os" in
 
14151
    beos* | openbsd* | mirbsd*)
 
14152
      FLOAT_H=float.h
 
14153
 
 
14154
 
 
14155
 
 
14156
 
 
14157
 
 
14158
 
 
14159
     if test $gl_cv_have_include_next = yes; then
 
14160
       gl_cv_next_float_h='<'float.h'>'
 
14161
     else
 
14162
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
 
14163
$as_echo_n "checking absolute name of <float.h>... " >&6; }
 
14164
if test "${gl_cv_next_float_h+set}" = set; then :
 
14165
  $as_echo_n "(cached) " >&6
 
14166
else
 
14167
 
 
14168
          if test $ac_cv_header_float_h = yes; then
 
14169
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14170
/* end confdefs.h.  */
 
14171
#include <float.h>
 
14172
 
 
14173
_ACEOF
 
14174
                                                                                                case "$host_os" in
 
14175
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
14176
              *)    gl_absname_cpp="$ac_cpp" ;;
 
14177
            esac
 
14178
                                                gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
14179
               sed -n '\#/float.h#{
 
14180
                 s#.*"\(.*/float.h\)".*#\1#
 
14181
                 s#^/[^/]#//&#
 
14182
                 p
 
14183
                 q
 
14184
               }'`'"'
 
14185
          else
 
14186
            gl_cv_next_float_h='<'float.h'>'
 
14187
          fi
 
14188
 
 
14189
fi
 
14190
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
 
14191
$as_echo "$gl_cv_next_float_h" >&6; }
 
14192
     fi
 
14193
     NEXT_FLOAT_H=$gl_cv_next_float_h
 
14194
 
 
14195
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
14196
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
14197
       gl_next_as_first_directive='<'float.h'>'
 
14198
     else
 
14199
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
14200
       gl_next_as_first_directive=$gl_cv_next_float_h
 
14201
     fi
 
14202
     NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
 
14203
 
 
14204
 
 
14205
 
 
14206
      ;;
 
14207
  esac
 
14208
 
 
14209
 
 
14210
  # Code from module fnmatch:
 
14211
 
 
14212
 
 
14213
 
 
14214
 
 
14215
 
 
14216
  FNMATCH_H=
 
14217
  gl_fnmatch_required_lowercase=`echo $gl_fnmatch_required | tr 'A-Z' 'a-z'`
 
14218
  gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
 
14219
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
 
14220
$as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
 
14221
if eval "test \"\${$gl_fnmatch_cache_var+set}\"" = set; then :
 
14222
  $as_echo_n "(cached) " >&6
 
14223
else
 
14224
                           if test $gl_fnmatch_required = GNU; then
 
14225
       gl_fnmatch_gnu_start=
 
14226
       gl_fnmatch_gnu_end=
 
14227
     else
 
14228
       gl_fnmatch_gnu_start='#if 0'
 
14229
       gl_fnmatch_gnu_end='#endif'
 
14230
     fi
 
14231
     if test "$cross_compiling" = yes; then :
 
14232
  eval "$gl_fnmatch_cache_var=\"guessing no\""
 
14233
else
 
14234
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14235
/* end confdefs.h.  */
 
14236
#include <fnmatch.h>
 
14237
            static int
 
14238
            y (char const *pattern, char const *string, int flags)
 
14239
            {
 
14240
              return fnmatch (pattern, string, flags) == 0;
 
14241
            }
 
14242
            static int
 
14243
            n (char const *pattern, char const *string, int flags)
 
14244
            {
 
14245
              return fnmatch (pattern, string, flags) == FNM_NOMATCH;
 
14246
            }
 
14247
 
 
14248
int
 
14249
main (void)
 
14250
{
 
14251
char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
 
14252
            char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
 
14253
            static char const A_1[] = { 'A' - 1, 0 };
 
14254
            static char const A01[] = { 'A' + 1, 0 };
 
14255
            static char const a_1[] = { 'a' - 1, 0 };
 
14256
            static char const a01[] = { 'a' + 1, 0 };
 
14257
            static char const bs_1[] = { '\\\\' - 1, 0 };
 
14258
            static char const bs01[] = { '\\\\' + 1, 0 };
 
14259
            return
 
14260
             !(n ("a*", "", 0)
 
14261
               && y ("a*", "abc", 0)
 
14262
               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
 
14263
               && y ("a\\\\bc", "abc", 0)
 
14264
               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
 
14265
               && y ("*x", ".x", 0)
 
14266
               && n ("*x", ".x", FNM_PERIOD)
 
14267
               && y (Apat, "\\\\", 0) && y (Apat, "A", 0)
 
14268
               && y (apat, "\\\\", 0) && y (apat, "a", 0)
 
14269
               && n (Apat, A_1, 0) == ('A' < '\\\\')
 
14270
               && n (apat, a_1, 0) == ('a' < '\\\\')
 
14271
               && y (Apat, A01, 0) == ('A' < '\\\\')
 
14272
               && y (apat, a01, 0) == ('a' < '\\\\')
 
14273
               && y (Apat, bs_1, 0) == ('A' < '\\\\')
 
14274
               && y (apat, bs_1, 0) == ('a' < '\\\\')
 
14275
               && n (Apat, bs01, 0) == ('A' < '\\\\')
 
14276
               && n (apat, bs01, 0) == ('a' < '\\\\')
 
14277
               $gl_fnmatch_gnu_start
 
14278
               && y ("xxXX", "xXxX", FNM_CASEFOLD)
 
14279
               && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
 
14280
               && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
 
14281
               && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
 
14282
               && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
 
14283
               && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)
 
14284
               $gl_fnmatch_gnu_end
 
14285
              );
 
14286
 
 
14287
  ;
 
14288
  return 0;
 
14289
}
 
14290
_ACEOF
 
14291
if ac_fn_c_try_run "$LINENO"; then :
 
14292
  eval "$gl_fnmatch_cache_var=yes"
 
14293
else
 
14294
  eval "$gl_fnmatch_cache_var=no"
 
14295
fi
 
14296
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
14297
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
14298
fi
 
14299
 
 
14300
 
 
14301
fi
 
14302
eval ac_res=\$$gl_fnmatch_cache_var
 
14303
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
14304
$as_echo "$ac_res" >&6; }
 
14305
  eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
 
14306
  if test "$gl_fnmatch_result" = yes; then
 
14307
            rm -f "$gl_source_base/fnmatch.h"
 
14308
  else
 
14309
    FNMATCH_H=fnmatch.h
 
14310
 
 
14311
 
 
14312
 
 
14313
 
 
14314
 
 
14315
 
 
14316
 
 
14317
 
 
14318
  gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
 
14319
 
 
14320
 
 
14321
cat >>confdefs.h <<_ACEOF
 
14322
#define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
 
14323
_ACEOF
 
14324
 
 
14325
 
 
14326
    ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
 
14327
"
 
14328
if test "x$ac_cv_have_decl_isblank" = x""yes; then :
 
14329
  ac_have_decl=1
 
14330
else
 
14331
  ac_have_decl=0
 
14332
fi
 
14333
 
 
14334
cat >>confdefs.h <<_ACEOF
 
14335
#define HAVE_DECL_ISBLANK $ac_have_decl
 
14336
_ACEOF
 
14337
 
 
14338
 
 
14339
 
 
14340
  fi
 
14341
 
 
14342
 
 
14343
  # Code from module getdelim:
 
14344
 
 
14345
 
 
14346
 
 
14347
 
 
14348
 
 
14349
 
 
14350
 
 
14351
 
 
14352
  if test $ac_cv_func_getdelim = yes; then
 
14353
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
 
14354
$as_echo_n "checking for working getdelim function... " >&6; }
 
14355
if test "${gl_cv_func_working_getdelim+set}" = set; then :
 
14356
  $as_echo_n "(cached) " >&6
 
14357
else
 
14358
  echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
 
14359
    if test "$cross_compiling" = yes; then :
 
14360
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14361
/* end confdefs.h.  */
 
14362
 
 
14363
#include <features.h>
 
14364
#ifdef __GNU_LIBRARY__
 
14365
 #if (__GLIBC__ >= 2)
 
14366
  Lucky GNU user
 
14367
 #endif
 
14368
#endif
 
14369
 
 
14370
_ACEOF
 
14371
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
14372
  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
 
14373
  gl_cv_func_working_getdelim=yes
 
14374
else
 
14375
  gl_cv_func_working_getdelim=no
 
14376
fi
 
14377
rm -f conftest*
 
14378
 
 
14379
 
 
14380
else
 
14381
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14382
/* end confdefs.h.  */
 
14383
 
 
14384
#    include <stdio.h>
 
14385
#    include <stdlib.h>
 
14386
#    include <string.h>
 
14387
    int main ()
 
14388
    {
 
14389
      FILE *in = fopen ("./conftest.data", "r");
 
14390
      if (!in)
 
14391
        return 1;
 
14392
      {
 
14393
        /* Test result for a NULL buffer and a zero size.
 
14394
           Based on a test program from Karl Heuer.  */
 
14395
        char *line = NULL;
 
14396
        size_t siz = 0;
 
14397
        int len = getdelim (&line, &siz, '\n', in);
 
14398
        if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
 
14399
          return 1;
 
14400
      }
 
14401
      {
 
14402
        /* Test result for a NULL buffer and a non-zero size.
 
14403
           This crashes on FreeBSD 8.0.  */
 
14404
        char *line = NULL;
 
14405
        size_t siz = (size_t)(~0) / 4;
 
14406
        if (getdelim (&line, &siz, '\n', in) == -1)
 
14407
          return 1;
 
14408
      }
 
14409
      return 0;
 
14410
    }
 
14411
 
 
14412
_ACEOF
 
14413
if ac_fn_c_try_run "$LINENO"; then :
 
14414
  gl_cv_func_working_getdelim=yes
 
14415
else
 
14416
  gl_cv_func_working_getdelim=no
 
14417
fi
 
14418
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
14419
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
14420
fi
 
14421
 
 
14422
fi
 
14423
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
 
14424
$as_echo "$gl_cv_func_working_getdelim" >&6; }
 
14425
  else
 
14426
    gl_cv_func_working_getdelim=no
 
14427
  fi
 
14428
 
 
14429
  if test $ac_cv_have_decl_getdelim = no; then
 
14430
    HAVE_DECL_GETDELIM=0
 
14431
  fi
 
14432
 
 
14433
  if test $gl_cv_func_working_getdelim = no; then
 
14434
    if test $ac_cv_func_getdelim = yes; then
 
14435
      REPLACE_GETDELIM=1
 
14436
    fi
 
14437
 
 
14438
 
 
14439
 
 
14440
 
 
14441
 
 
14442
 
 
14443
 
 
14444
 
 
14445
  gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
 
14446
 
 
14447
 
 
14448
  for ac_func in flockfile funlockfile
 
14449
do :
 
14450
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
14451
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
14452
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
14453
  cat >>confdefs.h <<_ACEOF
 
14454
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
14455
_ACEOF
 
14456
 
 
14457
fi
 
14458
done
 
14459
 
 
14460
  ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
 
14461
if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
 
14462
  ac_have_decl=1
 
14463
else
 
14464
  ac_have_decl=0
 
14465
fi
 
14466
 
 
14467
cat >>confdefs.h <<_ACEOF
 
14468
#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
 
14469
_ACEOF
 
14470
 
 
14471
 
 
14472
  fi
 
14473
 
 
14474
 
 
14475
 
 
14476
 
 
14477
  GNULIB_GETDELIM=1
 
14478
 
 
14479
 
 
14480
 
 
14481
$as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
 
14482
 
 
14483
 
 
14484
 
 
14485
  # Code from module getline:
 
14486
 
 
14487
 
 
14488
 
 
14489
 
 
14490
 
 
14491
 
 
14492
 
 
14493
  gl_getline_needs_run_time_check=no
 
14494
  ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
 
14495
if test "x$ac_cv_func_getline" = x""yes; then :
 
14496
                   gl_getline_needs_run_time_check=yes
 
14497
else
 
14498
  am_cv_func_working_getline=no
 
14499
fi
 
14500
 
 
14501
  if test $gl_getline_needs_run_time_check = yes; then
 
14502
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
 
14503
$as_echo_n "checking for working getline function... " >&6; }
 
14504
if test "${am_cv_func_working_getline+set}" = set; then :
 
14505
  $as_echo_n "(cached) " >&6
 
14506
else
 
14507
  echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
 
14508
    if test "$cross_compiling" = yes; then :
 
14509
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14510
/* end confdefs.h.  */
 
14511
 
 
14512
#include <features.h>
 
14513
#ifdef __GNU_LIBRARY__
 
14514
 #if (__GLIBC__ >= 2)
 
14515
  Lucky GNU user
 
14516
 #endif
 
14517
#endif
 
14518
 
 
14519
_ACEOF
 
14520
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
14521
  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
 
14522
  am_cv_func_working_getline=yes
 
14523
else
 
14524
  am_cv_func_working_getline=no
 
14525
fi
 
14526
rm -f conftest*
 
14527
 
 
14528
 
 
14529
else
 
14530
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14531
/* end confdefs.h.  */
 
14532
 
 
14533
#    include <stdio.h>
 
14534
#    include <stdlib.h>
 
14535
#    include <string.h>
 
14536
    int main ()
 
14537
    {
 
14538
      FILE *in = fopen ("./conftest.data", "r");
 
14539
      if (!in)
 
14540
        return 1;
 
14541
      {
 
14542
        /* Test result for a NULL buffer and a zero size.
 
14543
           Based on a test program from Karl Heuer.  */
 
14544
        char *line = NULL;
 
14545
        size_t siz = 0;
 
14546
        int len = getline (&line, &siz, in);
 
14547
        if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
 
14548
          return 1;
 
14549
      }
 
14550
      {
 
14551
        /* Test result for a NULL buffer and a non-zero size.
 
14552
           This crashes on FreeBSD 8.0.  */
 
14553
        char *line = NULL;
 
14554
        size_t siz = (size_t)(~0) / 4;
 
14555
        if (getline (&line, &siz, in) == -1)
 
14556
          return 1;
 
14557
      }
 
14558
      return 0;
 
14559
    }
 
14560
 
 
14561
_ACEOF
 
14562
if ac_fn_c_try_run "$LINENO"; then :
 
14563
  am_cv_func_working_getline=yes
 
14564
else
 
14565
  am_cv_func_working_getline=no
 
14566
fi
 
14567
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
14568
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
14569
fi
 
14570
 
 
14571
fi
 
14572
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
 
14573
$as_echo "$am_cv_func_working_getline" >&6; }
 
14574
  fi
 
14575
 
 
14576
  if test $ac_cv_have_decl_getline = no; then
 
14577
    HAVE_DECL_GETLINE=0
 
14578
  fi
 
14579
 
 
14580
  if test $am_cv_func_working_getline = no; then
 
14581
                REPLACE_GETLINE=1
 
14582
 
 
14583
 
 
14584
 
 
14585
 
 
14586
 
 
14587
 
 
14588
 
 
14589
 
 
14590
  gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
 
14591
 
 
14592
 
 
14593
 
 
14594
 
 
14595
 
 
14596
 
 
14597
 
 
14598
 
 
14599
 
 
14600
 
 
14601
 
 
14602
  if test $ac_cv_func_getdelim = yes; then
 
14603
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
 
14604
$as_echo_n "checking for working getdelim function... " >&6; }
 
14605
if test "${gl_cv_func_working_getdelim+set}" = set; then :
 
14606
  $as_echo_n "(cached) " >&6
 
14607
else
 
14608
  echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
 
14609
    if test "$cross_compiling" = yes; then :
 
14610
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14611
/* end confdefs.h.  */
 
14612
 
 
14613
#include <features.h>
 
14614
#ifdef __GNU_LIBRARY__
 
14615
 #if (__GLIBC__ >= 2)
 
14616
  Lucky GNU user
 
14617
 #endif
 
14618
#endif
 
14619
 
 
14620
_ACEOF
 
14621
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
14622
  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
 
14623
  gl_cv_func_working_getdelim=yes
 
14624
else
 
14625
  gl_cv_func_working_getdelim=no
 
14626
fi
 
14627
rm -f conftest*
 
14628
 
 
14629
 
 
14630
else
 
14631
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14632
/* end confdefs.h.  */
 
14633
 
 
14634
#    include <stdio.h>
 
14635
#    include <stdlib.h>
 
14636
#    include <string.h>
 
14637
    int main ()
 
14638
    {
 
14639
      FILE *in = fopen ("./conftest.data", "r");
 
14640
      if (!in)
 
14641
        return 1;
 
14642
      {
 
14643
        /* Test result for a NULL buffer and a zero size.
 
14644
           Based on a test program from Karl Heuer.  */
 
14645
        char *line = NULL;
 
14646
        size_t siz = 0;
 
14647
        int len = getdelim (&line, &siz, '\n', in);
 
14648
        if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
 
14649
          return 1;
 
14650
      }
 
14651
      {
 
14652
        /* Test result for a NULL buffer and a non-zero size.
 
14653
           This crashes on FreeBSD 8.0.  */
 
14654
        char *line = NULL;
 
14655
        size_t siz = (size_t)(~0) / 4;
 
14656
        if (getdelim (&line, &siz, '\n', in) == -1)
 
14657
          return 1;
 
14658
      }
 
14659
      return 0;
 
14660
    }
 
14661
 
 
14662
_ACEOF
 
14663
if ac_fn_c_try_run "$LINENO"; then :
 
14664
  gl_cv_func_working_getdelim=yes
 
14665
else
 
14666
  gl_cv_func_working_getdelim=no
 
14667
fi
 
14668
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
14669
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
14670
fi
 
14671
 
 
14672
fi
 
14673
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
 
14674
$as_echo "$gl_cv_func_working_getdelim" >&6; }
 
14675
  else
 
14676
    gl_cv_func_working_getdelim=no
 
14677
  fi
 
14678
 
 
14679
  if test $ac_cv_have_decl_getdelim = no; then
 
14680
    HAVE_DECL_GETDELIM=0
 
14681
  fi
 
14682
 
 
14683
  if test $gl_cv_func_working_getdelim = no; then
 
14684
    if test $ac_cv_func_getdelim = yes; then
 
14685
      REPLACE_GETDELIM=1
 
14686
    fi
 
14687
 
 
14688
 
 
14689
 
 
14690
 
 
14691
 
 
14692
 
 
14693
 
 
14694
 
 
14695
  gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
 
14696
 
 
14697
 
 
14698
  for ac_func in flockfile funlockfile
 
14699
do :
 
14700
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
14701
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
14702
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
14703
  cat >>confdefs.h <<_ACEOF
 
14704
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
14705
_ACEOF
 
14706
 
 
14707
fi
 
14708
done
 
14709
 
 
14710
  ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
 
14711
if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
 
14712
  ac_have_decl=1
 
14713
else
 
14714
  ac_have_decl=0
 
14715
fi
 
14716
 
 
14717
cat >>confdefs.h <<_ACEOF
 
14718
#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
 
14719
_ACEOF
 
14720
 
 
14721
 
 
14722
  fi
 
14723
 
 
14724
 
 
14725
  fi
 
14726
 
 
14727
 
 
14728
 
 
14729
 
 
14730
  GNULIB_GETLINE=1
 
14731
 
 
14732
 
 
14733
 
 
14734
$as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
 
14735
 
 
14736
 
 
14737
 
 
14738
  # Code from module getopt-gnu:
 
14739
 
 
14740
 
 
14741
 
 
14742
 
 
14743
 
 
14744
 
 
14745
 
 
14746
$as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
 
14747
 
 
14748
 
 
14749
  # Code from module getopt-posix:
 
14750
 
 
14751
 
 
14752
 
 
14753
 
 
14754
 
 
14755
  if test -n "$gl_replace_getopt"; then :
 
14756
 
 
14757
 
 
14758
 
 
14759
  GETOPT_H=getopt.h
 
14760
 
 
14761
$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
 
14762
 
 
14763
 
 
14764
 
 
14765
    GNULIB_UNISTD_H_GETOPT=1
 
14766
 
 
14767
 
 
14768
 
 
14769
 
 
14770
 
 
14771
 
 
14772
 
 
14773
 
 
14774
  gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
 
14775
 
 
14776
 
 
14777
 
 
14778
 
 
14779
 
 
14780
 
 
14781
 
 
14782
 
 
14783
 
 
14784
  gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
 
14785
 
 
14786
 
 
14787
 
 
14788
 
 
14789
 
 
14790
 
 
14791
fi
 
14792
 
 
14793
 
 
14794
  # Code from module gettext:
 
14795
 
 
14796
  # Code from module gettext-h:
 
14797
 
 
14798
 
 
14799
  # Code from module havelib:
 
14800
  # Code from module include_next:
 
14801
  # Code from module intprops:
 
14802
  # Code from module langinfo:
 
14803
 
 
14804
 
 
14805
 
 
14806
 
 
14807
 
 
14808
 
 
14809
 
 
14810
 
 
14811
 
 
14812
 
 
14813
 
 
14814
     if test $gl_cv_have_include_next = yes; then
 
14815
       gl_cv_next_langinfo_h='<'langinfo.h'>'
 
14816
     else
 
14817
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
 
14818
$as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
 
14819
if test "${gl_cv_next_langinfo_h+set}" = set; then :
 
14820
  $as_echo_n "(cached) " >&6
 
14821
else
 
14822
 
 
14823
          if test $ac_cv_header_langinfo_h = yes; then
 
14824
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14825
/* end confdefs.h.  */
 
14826
#include <langinfo.h>
 
14827
 
 
14828
_ACEOF
 
14829
                                                                                                case "$host_os" in
 
14830
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
14831
              *)    gl_absname_cpp="$ac_cpp" ;;
 
14832
            esac
 
14833
                                                gl_cv_next_langinfo_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
14834
               sed -n '\#/langinfo.h#{
 
14835
                 s#.*"\(.*/langinfo.h\)".*#\1#
 
14836
                 s#^/[^/]#//&#
 
14837
                 p
 
14838
                 q
 
14839
               }'`'"'
 
14840
          else
 
14841
            gl_cv_next_langinfo_h='<'langinfo.h'>'
 
14842
          fi
 
14843
 
 
14844
fi
 
14845
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
 
14846
$as_echo "$gl_cv_next_langinfo_h" >&6; }
 
14847
     fi
 
14848
     NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
 
14849
 
 
14850
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
14851
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
14852
       gl_next_as_first_directive='<'langinfo.h'>'
 
14853
     else
 
14854
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
14855
       gl_next_as_first_directive=$gl_cv_next_langinfo_h
 
14856
     fi
 
14857
     NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
 
14858
 
 
14859
 
 
14860
 
 
14861
 
 
14862
    HAVE_LANGINFO_CODESET=0
 
14863
  HAVE_LANGINFO_T_FMT_AMPM=0
 
14864
  HAVE_LANGINFO_ERA=0
 
14865
  HAVE_LANGINFO_YESEXPR=0
 
14866
 
 
14867
  if test $ac_cv_header_langinfo_h = yes; then
 
14868
    HAVE_LANGINFO_H=1
 
14869
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
 
14870
$as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
 
14871
if test "${gl_cv_header_langinfo_codeset+set}" = set; then :
 
14872
  $as_echo_n "(cached) " >&6
 
14873
else
 
14874
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14875
/* end confdefs.h.  */
 
14876
#include <langinfo.h>
 
14877
int a = CODESET;
 
14878
 
 
14879
int
 
14880
main (void)
 
14881
{
 
14882
 
 
14883
  ;
 
14884
  return 0;
 
14885
}
 
14886
_ACEOF
 
14887
if ac_fn_c_try_compile "$LINENO"; then :
 
14888
  gl_cv_header_langinfo_codeset=yes
 
14889
else
 
14890
  gl_cv_header_langinfo_codeset=no
 
14891
fi
 
14892
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14893
 
 
14894
fi
 
14895
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
 
14896
$as_echo "$gl_cv_header_langinfo_codeset" >&6; }
 
14897
    if test $gl_cv_header_langinfo_codeset = yes; then
 
14898
      HAVE_LANGINFO_CODESET=1
 
14899
    fi
 
14900
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5
 
14901
$as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
 
14902
if test "${gl_cv_header_langinfo_t_fmt_ampm+set}" = set; then :
 
14903
  $as_echo_n "(cached) " >&6
 
14904
else
 
14905
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14906
/* end confdefs.h.  */
 
14907
#include <langinfo.h>
 
14908
int a = T_FMT_AMPM;
 
14909
 
 
14910
int
 
14911
main (void)
 
14912
{
 
14913
 
 
14914
  ;
 
14915
  return 0;
 
14916
}
 
14917
_ACEOF
 
14918
if ac_fn_c_try_compile "$LINENO"; then :
 
14919
  gl_cv_header_langinfo_t_fmt_ampm=yes
 
14920
else
 
14921
  gl_cv_header_langinfo_t_fmt_ampm=no
 
14922
fi
 
14923
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14924
 
 
14925
fi
 
14926
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
 
14927
$as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
 
14928
    if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
 
14929
      HAVE_LANGINFO_T_FMT_AMPM=1
 
14930
    fi
 
14931
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
 
14932
$as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
 
14933
if test "${gl_cv_header_langinfo_era+set}" = set; then :
 
14934
  $as_echo_n "(cached) " >&6
 
14935
else
 
14936
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14937
/* end confdefs.h.  */
 
14938
#include <langinfo.h>
 
14939
int a = ERA;
 
14940
 
 
14941
int
 
14942
main (void)
 
14943
{
 
14944
 
 
14945
  ;
 
14946
  return 0;
 
14947
}
 
14948
_ACEOF
 
14949
if ac_fn_c_try_compile "$LINENO"; then :
 
14950
  gl_cv_header_langinfo_era=yes
 
14951
else
 
14952
  gl_cv_header_langinfo_era=no
 
14953
fi
 
14954
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14955
 
 
14956
fi
 
14957
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
 
14958
$as_echo "$gl_cv_header_langinfo_era" >&6; }
 
14959
    if test $gl_cv_header_langinfo_era = yes; then
 
14960
      HAVE_LANGINFO_ERA=1
 
14961
    fi
 
14962
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5
 
14963
$as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; }
 
14964
if test "${gl_cv_header_langinfo_yesexpr+set}" = set; then :
 
14965
  $as_echo_n "(cached) " >&6
 
14966
else
 
14967
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14968
/* end confdefs.h.  */
 
14969
#include <langinfo.h>
 
14970
int a = YESEXPR;
 
14971
 
 
14972
int
 
14973
main (void)
 
14974
{
 
14975
 
 
14976
  ;
 
14977
  return 0;
 
14978
}
 
14979
_ACEOF
 
14980
if ac_fn_c_try_compile "$LINENO"; then :
 
14981
  gl_cv_header_langinfo_yesexpr=yes
 
14982
else
 
14983
  gl_cv_header_langinfo_yesexpr=no
 
14984
fi
 
14985
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14986
 
 
14987
fi
 
14988
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5
 
14989
$as_echo "$gl_cv_header_langinfo_yesexpr" >&6; }
 
14990
    if test $gl_cv_header_langinfo_yesexpr = yes; then
 
14991
      HAVE_LANGINFO_YESEXPR=1
 
14992
    fi
 
14993
  else
 
14994
    HAVE_LANGINFO_H=0
 
14995
  fi
 
14996
 
 
14997
 
 
14998
 
 
14999
 
 
15000
 
 
15001
 
 
15002
 
 
15003
    for gl_func in nl_langinfo; do
 
15004
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
 
15005
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
 
15006
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
 
15007
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
 
15008
  $as_echo_n "(cached) " >&6
 
15009
else
 
15010
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15011
/* end confdefs.h.  */
 
15012
#include <langinfo.h>
 
15013
 
 
15014
int
 
15015
main (void)
 
15016
{
 
15017
#undef $gl_func
 
15018
  (void) $gl_func;
 
15019
  ;
 
15020
  return 0;
 
15021
}
 
15022
_ACEOF
 
15023
if ac_fn_c_try_compile "$LINENO"; then :
 
15024
  eval "$as_gl_Symbol=yes"
 
15025
else
 
15026
  eval "$as_gl_Symbol=no"
 
15027
fi
 
15028
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15029
fi
 
15030
eval ac_res=\$$as_gl_Symbol
 
15031
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
15032
$as_echo "$ac_res" >&6; }
 
15033
     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
 
15034
  cat >>confdefs.h <<_ACEOF
 
15035
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
 
15036
_ACEOF
 
15037
 
 
15038
                     eval ac_cv_have_decl_$gl_func=yes
 
15039
fi
 
15040
      done
 
15041
 
 
15042
 
 
15043
  # Code from module localcharset:
 
15044
 
 
15045
 
 
15046
 
 
15047
 
 
15048
 
 
15049
 
 
15050
 
 
15051
 
 
15052
  LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
 
15053
 
 
15054
  # Code from module malloc-gnu:
 
15055
 
 
15056
 
 
15057
    for ac_header in stdlib.h
 
15058
do :
 
15059
  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
 
15060
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
 
15061
  cat >>confdefs.h <<_ACEOF
 
15062
#define HAVE_STDLIB_H 1
 
15063
_ACEOF
 
15064
 
 
15065
fi
 
15066
 
 
15067
done
 
15068
 
 
15069
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
 
15070
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
 
15071
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
 
15072
  $as_echo_n "(cached) " >&6
 
15073
else
 
15074
  if test "$cross_compiling" = yes; then :
 
15075
  ac_cv_func_malloc_0_nonnull=no
 
15076
else
 
15077
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15078
/* end confdefs.h.  */
 
15079
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
 
15080
# include <stdlib.h>
 
15081
#else
 
15082
char *malloc ();
 
15083
#endif
 
15084
 
 
15085
int
 
15086
main (void)
 
15087
{
 
15088
return ! malloc (0);
 
15089
  ;
 
15090
  return 0;
 
15091
}
 
15092
_ACEOF
 
15093
if ac_fn_c_try_run "$LINENO"; then :
 
15094
  ac_cv_func_malloc_0_nonnull=yes
 
15095
else
 
15096
  ac_cv_func_malloc_0_nonnull=no
 
15097
fi
 
15098
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
15099
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
15100
fi
 
15101
 
 
15102
fi
 
15103
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
 
15104
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
 
15105
if test $ac_cv_func_malloc_0_nonnull = yes; then :
 
15106
 
 
15107
$as_echo "#define HAVE_MALLOC_GNU 1" >>confdefs.h
 
15108
 
 
15109
else
 
15110
  $as_echo "#define HAVE_MALLOC_GNU 0" >>confdefs.h
 
15111
 
 
15112
 
 
15113
 
 
15114
 
 
15115
 
 
15116
 
 
15117
 
 
15118
 
 
15119
 
 
15120
 
 
15121
  gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
 
15122
 
 
15123
  REPLACE_MALLOC=1
 
15124
 
 
15125
 
 
15126
fi
 
15127
 
 
15128
 
 
15129
 
 
15130
 
 
15131
cat >>confdefs.h <<_ACEOF
 
15132
#define GNULIB_MALLOC_GNU 1
 
15133
_ACEOF
 
15134
 
 
15135
 
 
15136
  # Code from module malloc-posix:
 
15137
 
 
15138
 
 
15139
 
 
15140
  if test $gl_cv_func_malloc_posix = yes; then
 
15141
 
 
15142
$as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
 
15143
 
 
15144
  else
 
15145
 
 
15146
 
 
15147
 
 
15148
 
 
15149
 
 
15150
 
 
15151
 
 
15152
 
 
15153
 
 
15154
  gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
 
15155
 
 
15156
  REPLACE_MALLOC=1
 
15157
 
 
15158
  fi
 
15159
 
 
15160
 
 
15161
 
 
15162
 
 
15163
  GNULIB_MALLOC_POSIX=1
 
15164
 
 
15165
 
 
15166
 
 
15167
$as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
 
15168
 
 
15169
 
 
15170
 
 
15171
  # Code from module mbrtowc:
 
15172
 
 
15173
 
 
15174
 
 
15175
 
 
15176
 
 
15177
 
 
15178
 
 
15179
 
 
15180
 
 
15181
 
 
15182
  if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
 
15183
 
 
15184
 
 
15185
 
 
15186
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
 
15187
$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
 
15188
if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
 
15189
  $as_echo_n "(cached) " >&6
 
15190
else
 
15191
 
 
15192
                  case "$host_os" in
 
15193
                     # Guess no on AIX and OSF/1.
 
15194
        aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
 
15195
                     # Guess yes otherwise.
 
15196
        *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
 
15197
      esac
 
15198
      if test $LOCALE_JA != none; then
 
15199
        if test "$cross_compiling" = yes; then :
 
15200
  :
 
15201
else
 
15202
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15203
/* end confdefs.h.  */
 
15204
 
 
15205
#include <locale.h>
 
15206
#include <string.h>
 
15207
#include <wchar.h>
 
15208
int main ()
 
15209
{
 
15210
  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
 
15211
    {
 
15212
      const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
 
15213
      mbstate_t state;
 
15214
      wchar_t wc;
 
15215
 
 
15216
      memset (&state, '\0', sizeof (mbstate_t));
 
15217
      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
 
15218
        if (mbsinit (&state))
 
15219
          return 1;
 
15220
    }
 
15221
  return 0;
 
15222
}
 
15223
_ACEOF
 
15224
if ac_fn_c_try_run "$LINENO"; then :
 
15225
  gl_cv_func_mbrtowc_incomplete_state=yes
 
15226
else
 
15227
  gl_cv_func_mbrtowc_incomplete_state=no
 
15228
fi
 
15229
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
15230
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
15231
fi
 
15232
 
 
15233
      fi
 
15234
 
 
15235
fi
 
15236
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
 
15237
$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
 
15238
 
 
15239
 
 
15240
 
 
15241
 
 
15242
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
 
15243
$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
 
15244
if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
 
15245
  $as_echo_n "(cached) " >&6
 
15246
else
 
15247
 
 
15248
                  case "$host_os" in
 
15249
                    # Guess no on Solaris 8.
 
15250
        solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
 
15251
                    # Guess yes otherwise.
 
15252
        *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
 
15253
      esac
 
15254
      if test $LOCALE_ZH_CN != none; then
 
15255
        if test "$cross_compiling" = yes; then :
 
15256
  :
 
15257
else
 
15258
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15259
/* end confdefs.h.  */
 
15260
 
 
15261
#include <locale.h>
 
15262
#include <stdlib.h>
 
15263
#include <string.h>
 
15264
#include <wchar.h>
 
15265
int main ()
 
15266
{
 
15267
  /* This fails on Solaris 8:
 
15268
     mbrtowc returns 2, and sets wc to 0x00F0.
 
15269
     mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
 
15270
  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
 
15271
    {
 
15272
      char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
 
15273
      mbstate_t state;
 
15274
      wchar_t wc;
 
15275
 
 
15276
      memset (&state, '\0', sizeof (mbstate_t));
 
15277
      if (mbrtowc (&wc, input + 3, 6, &state) != 4
 
15278
          && mbtowc (&wc, input + 3, 6) == 4)
 
15279
        return 1;
 
15280
    }
 
15281
  return 0;
 
15282
}
 
15283
_ACEOF
 
15284
if ac_fn_c_try_run "$LINENO"; then :
 
15285
  gl_cv_func_mbrtowc_sanitycheck=yes
 
15286
else
 
15287
  gl_cv_func_mbrtowc_sanitycheck=no
 
15288
fi
 
15289
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
15290
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
15291
fi
 
15292
 
 
15293
      fi
 
15294
 
 
15295
fi
 
15296
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
 
15297
$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
 
15298
 
 
15299
    REPLACE_MBSTATE_T=0
 
15300
    case "$gl_cv_func_mbrtowc_incomplete_state" in
 
15301
      *yes) ;;
 
15302
      *) REPLACE_MBSTATE_T=1 ;;
 
15303
    esac
 
15304
    case "$gl_cv_func_mbrtowc_sanitycheck" in
 
15305
      *yes) ;;
 
15306
      *) REPLACE_MBSTATE_T=1 ;;
 
15307
    esac
 
15308
  else
 
15309
    REPLACE_MBSTATE_T=1
 
15310
  fi
 
15311
  if test $REPLACE_MBSTATE_T = 1; then
 
15312
 
 
15313
    :
 
15314
 
 
15315
  fi
 
15316
 
 
15317
 
 
15318
 
 
15319
  if test $ac_cv_func_mbrtowc = no; then
 
15320
    HAVE_MBRTOWC=0
 
15321
  else
 
15322
    if test $REPLACE_MBSTATE_T = 1; then
 
15323
      REPLACE_MBRTOWC=1
 
15324
    else
 
15325
 
 
15326
 
 
15327
 
 
15328
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
 
15329
$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
 
15330
if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then :
 
15331
  $as_echo_n "(cached) " >&6
 
15332
else
 
15333
 
 
15334
                  case "$host_os" in
 
15335
              # Guess no on OSF/1.
 
15336
        osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
 
15337
              # Guess yes otherwise.
 
15338
        *)    gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
 
15339
      esac
 
15340
      if test $LOCALE_FR_UTF8 != none; then
 
15341
        if test "$cross_compiling" = yes; then :
 
15342
  :
 
15343
else
 
15344
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15345
/* end confdefs.h.  */
 
15346
 
 
15347
#include <locale.h>
 
15348
#include <string.h>
 
15349
#include <wchar.h>
 
15350
int main ()
 
15351
{
 
15352
  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
 
15353
    {
 
15354
      mbstate_t state;
 
15355
      wchar_t wc;
 
15356
      int ret;
 
15357
 
 
15358
      memset (&state, '\0', sizeof (mbstate_t));
 
15359
      wc = (wchar_t) 0xBADFACE;
 
15360
      mbrtowc (&wc, NULL, 5, &state);
 
15361
      /* Check that wc was not modified.  */
 
15362
      if (wc != (wchar_t) 0xBADFACE)
 
15363
        return 1;
 
15364
    }
 
15365
  return 0;
 
15366
}
 
15367
_ACEOF
 
15368
if ac_fn_c_try_run "$LINENO"; then :
 
15369
  gl_cv_func_mbrtowc_null_arg=yes
 
15370
else
 
15371
  gl_cv_func_mbrtowc_null_arg=no
 
15372
fi
 
15373
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
15374
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
15375
fi
 
15376
 
 
15377
      fi
 
15378
 
 
15379
fi
 
15380
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg" >&5
 
15381
$as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
 
15382
 
 
15383
 
 
15384
 
 
15385
 
 
15386
 
 
15387
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
 
15388
$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
 
15389
if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
 
15390
  $as_echo_n "(cached) " >&6
 
15391
else
 
15392
 
 
15393
                  case "$host_os" in
 
15394
                          # Guess no on HP-UX and Solaris.
 
15395
        hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
 
15396
                          # Guess yes otherwise.
 
15397
        *)                gl_cv_func_mbrtowc_retval="guessing yes" ;;
 
15398
      esac
 
15399
      if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
 
15400
        if test "$cross_compiling" = yes; then :
 
15401
  :
 
15402
else
 
15403
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15404
/* end confdefs.h.  */
 
15405
 
 
15406
#include <locale.h>
 
15407
#include <string.h>
 
15408
#include <wchar.h>
 
15409
int main ()
 
15410
{
 
15411
  /* This fails on Solaris.  */
 
15412
  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
 
15413
    {
 
15414
      char input[] = "B\303\274\303\237er"; /* "Büßer" */
 
15415
      mbstate_t state;
 
15416
      wchar_t wc;
 
15417
 
 
15418
      memset (&state, '\0', sizeof (mbstate_t));
 
15419
      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
 
15420
        {
 
15421
          input[1] = '\0';
 
15422
          if (mbrtowc (&wc, input + 2, 5, &state) != 1)
 
15423
            return 1;
 
15424
        }
 
15425
    }
 
15426
  /* This fails on HP-UX 11.11.  */
 
15427
  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
 
15428
    {
 
15429
      char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
 
15430
      mbstate_t state;
 
15431
      wchar_t wc;
 
15432
 
 
15433
      memset (&state, '\0', sizeof (mbstate_t));
 
15434
      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
 
15435
        {
 
15436
          input[1] = '\0';
 
15437
          if (mbrtowc (&wc, input + 2, 5, &state) != 2)
 
15438
            return 1;
 
15439
        }
 
15440
    }
 
15441
  return 0;
 
15442
}
 
15443
_ACEOF
 
15444
if ac_fn_c_try_run "$LINENO"; then :
 
15445
  gl_cv_func_mbrtowc_retval=yes
 
15446
else
 
15447
  gl_cv_func_mbrtowc_retval=no
 
15448
fi
 
15449
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
15450
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
15451
fi
 
15452
 
 
15453
      fi
 
15454
 
 
15455
fi
 
15456
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
 
15457
$as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
 
15458
 
 
15459
 
 
15460
 
 
15461
 
 
15462
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
 
15463
$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
 
15464
if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
 
15465
  $as_echo_n "(cached) " >&6
 
15466
else
 
15467
 
 
15468
                  case "$host_os" in
 
15469
                       # Guess no on Solaris 8 and 9.
 
15470
        solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
 
15471
                       # Guess yes otherwise.
 
15472
        *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
 
15473
      esac
 
15474
      if test $LOCALE_ZH_CN != none; then
 
15475
        if test "$cross_compiling" = yes; then :
 
15476
  :
 
15477
else
 
15478
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15479
/* end confdefs.h.  */
 
15480
 
 
15481
#include <locale.h>
 
15482
#include <string.h>
 
15483
#include <wchar.h>
 
15484
int main ()
 
15485
{
 
15486
  /* This fails on Solaris 8 and 9.  */
 
15487
  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
 
15488
    {
 
15489
      mbstate_t state;
 
15490
      wchar_t wc;
 
15491
 
 
15492
      memset (&state, '\0', sizeof (mbstate_t));
 
15493
      if (mbrtowc (&wc, "", 1, &state) != 0)
 
15494
        return 1;
 
15495
    }
 
15496
  return 0;
 
15497
}
 
15498
_ACEOF
 
15499
if ac_fn_c_try_run "$LINENO"; then :
 
15500
  gl_cv_func_mbrtowc_nul_retval=yes
 
15501
else
 
15502
  gl_cv_func_mbrtowc_nul_retval=no
 
15503
fi
 
15504
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
15505
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
15506
fi
 
15507
 
 
15508
      fi
 
15509
 
 
15510
fi
 
15511
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
 
15512
$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
 
15513
 
 
15514
      case "$gl_cv_func_mbrtowc_null_arg" in
 
15515
        *yes) ;;
 
15516
        *)
 
15517
$as_echo "#define MBRTOWC_NULL_ARG_BUG 1" >>confdefs.h
 
15518
 
 
15519
           REPLACE_MBRTOWC=1
 
15520
           ;;
 
15521
      esac
 
15522
      case "$gl_cv_func_mbrtowc_retval" in
 
15523
        *yes) ;;
 
15524
        *)
 
15525
$as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
 
15526
 
 
15527
           REPLACE_MBRTOWC=1
 
15528
           ;;
 
15529
      esac
 
15530
      case "$gl_cv_func_mbrtowc_nul_retval" in
 
15531
        *yes) ;;
 
15532
        *)
 
15533
$as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
 
15534
 
 
15535
           REPLACE_MBRTOWC=1
 
15536
           ;;
 
15537
      esac
 
15538
    fi
 
15539
  fi
 
15540
  if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
 
15541
 
 
15542
    :
 
15543
 
 
15544
 
 
15545
 
 
15546
 
 
15547
 
 
15548
 
 
15549
 
 
15550
 
 
15551
 
 
15552
  gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
 
15553
 
 
15554
 
 
15555
  :
 
15556
 
 
15557
  fi
 
15558
 
 
15559
 
 
15560
 
 
15561
 
 
15562
  GNULIB_MBRTOWC=1
 
15563
 
 
15564
 
 
15565
 
 
15566
$as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
 
15567
 
 
15568
 
 
15569
 
 
15570
  # Code from module mbsinit:
 
15571
 
 
15572
 
 
15573
 
 
15574
 
 
15575
 
 
15576
 
 
15577
 
 
15578
 
 
15579
 
 
15580
 
 
15581
  if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
 
15582
 
 
15583
 
 
15584
 
 
15585
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
 
15586
$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
 
15587
if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
 
15588
  $as_echo_n "(cached) " >&6
 
15589
else
 
15590
 
 
15591
                  case "$host_os" in
 
15592
                     # Guess no on AIX and OSF/1.
 
15593
        aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
 
15594
                     # Guess yes otherwise.
 
15595
        *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
 
15596
      esac
 
15597
      if test $LOCALE_JA != none; then
 
15598
        if test "$cross_compiling" = yes; then :
 
15599
  :
 
15600
else
 
15601
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15602
/* end confdefs.h.  */
 
15603
 
 
15604
#include <locale.h>
 
15605
#include <string.h>
 
15606
#include <wchar.h>
 
15607
int main ()
 
15608
{
 
15609
  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
 
15610
    {
 
15611
      const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
 
15612
      mbstate_t state;
 
15613
      wchar_t wc;
 
15614
 
 
15615
      memset (&state, '\0', sizeof (mbstate_t));
 
15616
      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
 
15617
        if (mbsinit (&state))
 
15618
          return 1;
 
15619
    }
 
15620
  return 0;
 
15621
}
 
15622
_ACEOF
 
15623
if ac_fn_c_try_run "$LINENO"; then :
 
15624
  gl_cv_func_mbrtowc_incomplete_state=yes
 
15625
else
 
15626
  gl_cv_func_mbrtowc_incomplete_state=no
 
15627
fi
 
15628
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
15629
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
15630
fi
 
15631
 
 
15632
      fi
 
15633
 
 
15634
fi
 
15635
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
 
15636
$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
 
15637
 
 
15638
 
 
15639
 
 
15640
 
 
15641
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
 
15642
$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
 
15643
if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
 
15644
  $as_echo_n "(cached) " >&6
 
15645
else
 
15646
 
 
15647
                  case "$host_os" in
 
15648
                    # Guess no on Solaris 8.
 
15649
        solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
 
15650
                    # Guess yes otherwise.
 
15651
        *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
 
15652
      esac
 
15653
      if test $LOCALE_ZH_CN != none; then
 
15654
        if test "$cross_compiling" = yes; then :
 
15655
  :
 
15656
else
 
15657
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15658
/* end confdefs.h.  */
 
15659
 
 
15660
#include <locale.h>
 
15661
#include <stdlib.h>
 
15662
#include <string.h>
 
15663
#include <wchar.h>
 
15664
int main ()
 
15665
{
 
15666
  /* This fails on Solaris 8:
 
15667
     mbrtowc returns 2, and sets wc to 0x00F0.
 
15668
     mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
 
15669
  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
 
15670
    {
 
15671
      char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
 
15672
      mbstate_t state;
 
15673
      wchar_t wc;
 
15674
 
 
15675
      memset (&state, '\0', sizeof (mbstate_t));
 
15676
      if (mbrtowc (&wc, input + 3, 6, &state) != 4
 
15677
          && mbtowc (&wc, input + 3, 6) == 4)
 
15678
        return 1;
 
15679
    }
 
15680
  return 0;
 
15681
}
 
15682
_ACEOF
 
15683
if ac_fn_c_try_run "$LINENO"; then :
 
15684
  gl_cv_func_mbrtowc_sanitycheck=yes
 
15685
else
 
15686
  gl_cv_func_mbrtowc_sanitycheck=no
 
15687
fi
 
15688
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
15689
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
15690
fi
 
15691
 
 
15692
      fi
 
15693
 
 
15694
fi
 
15695
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
 
15696
$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
 
15697
 
 
15698
    REPLACE_MBSTATE_T=0
 
15699
    case "$gl_cv_func_mbrtowc_incomplete_state" in
 
15700
      *yes) ;;
 
15701
      *) REPLACE_MBSTATE_T=1 ;;
 
15702
    esac
 
15703
    case "$gl_cv_func_mbrtowc_sanitycheck" in
 
15704
      *yes) ;;
 
15705
      *) REPLACE_MBSTATE_T=1 ;;
 
15706
    esac
 
15707
  else
 
15708
    REPLACE_MBSTATE_T=1
 
15709
  fi
 
15710
  if test $REPLACE_MBSTATE_T = 1; then
 
15711
 
 
15712
    :
 
15713
 
 
15714
  fi
 
15715
 
 
15716
 
 
15717
 
 
15718
  if test $ac_cv_func_mbsinit = no; then
 
15719
    HAVE_MBSINIT=0
 
15720
  else
 
15721
    if test $REPLACE_MBSTATE_T = 1; then
 
15722
      REPLACE_MBSINIT=1
 
15723
    fi
 
15724
  fi
 
15725
  if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
 
15726
 
 
15727
    :
 
15728
 
 
15729
 
 
15730
 
 
15731
 
 
15732
 
 
15733
 
 
15734
 
 
15735
 
 
15736
 
 
15737
  gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
 
15738
 
 
15739
 
 
15740
  :
 
15741
 
 
15742
  fi
 
15743
 
 
15744
 
 
15745
 
 
15746
 
 
15747
  GNULIB_MBSINIT=1
 
15748
 
 
15749
 
 
15750
 
 
15751
$as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
 
15752
 
 
15753
 
 
15754
 
 
15755
  # Code from module mbsrtowcs:
 
15756
 
 
15757
 
 
15758
 
 
15759
 
 
15760
 
 
15761
 
 
15762
 
 
15763
 
 
15764
 
 
15765
 
 
15766
  if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
 
15767
 
 
15768
 
 
15769
 
 
15770
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
 
15771
$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
 
15772
if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
 
15773
  $as_echo_n "(cached) " >&6
 
15774
else
 
15775
 
 
15776
                  case "$host_os" in
 
15777
                     # Guess no on AIX and OSF/1.
 
15778
        aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
 
15779
                     # Guess yes otherwise.
 
15780
        *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
 
15781
      esac
 
15782
      if test $LOCALE_JA != none; then
 
15783
        if test "$cross_compiling" = yes; then :
 
15784
  :
 
15785
else
 
15786
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15787
/* end confdefs.h.  */
 
15788
 
 
15789
#include <locale.h>
 
15790
#include <string.h>
 
15791
#include <wchar.h>
 
15792
int main ()
 
15793
{
 
15794
  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
 
15795
    {
 
15796
      const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
 
15797
      mbstate_t state;
 
15798
      wchar_t wc;
 
15799
 
 
15800
      memset (&state, '\0', sizeof (mbstate_t));
 
15801
      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
 
15802
        if (mbsinit (&state))
 
15803
          return 1;
 
15804
    }
 
15805
  return 0;
 
15806
}
 
15807
_ACEOF
 
15808
if ac_fn_c_try_run "$LINENO"; then :
 
15809
  gl_cv_func_mbrtowc_incomplete_state=yes
 
15810
else
 
15811
  gl_cv_func_mbrtowc_incomplete_state=no
 
15812
fi
 
15813
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
15814
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
15815
fi
 
15816
 
 
15817
      fi
 
15818
 
 
15819
fi
 
15820
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
 
15821
$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
 
15822
 
 
15823
 
 
15824
 
 
15825
 
 
15826
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
 
15827
$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
 
15828
if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
 
15829
  $as_echo_n "(cached) " >&6
 
15830
else
 
15831
 
 
15832
                  case "$host_os" in
 
15833
                    # Guess no on Solaris 8.
 
15834
        solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
 
15835
                    # Guess yes otherwise.
 
15836
        *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
 
15837
      esac
 
15838
      if test $LOCALE_ZH_CN != none; then
 
15839
        if test "$cross_compiling" = yes; then :
 
15840
  :
 
15841
else
 
15842
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15843
/* end confdefs.h.  */
 
15844
 
 
15845
#include <locale.h>
 
15846
#include <stdlib.h>
 
15847
#include <string.h>
 
15848
#include <wchar.h>
 
15849
int main ()
 
15850
{
 
15851
  /* This fails on Solaris 8:
 
15852
     mbrtowc returns 2, and sets wc to 0x00F0.
 
15853
     mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
 
15854
  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
 
15855
    {
 
15856
      char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
 
15857
      mbstate_t state;
 
15858
      wchar_t wc;
 
15859
 
 
15860
      memset (&state, '\0', sizeof (mbstate_t));
 
15861
      if (mbrtowc (&wc, input + 3, 6, &state) != 4
 
15862
          && mbtowc (&wc, input + 3, 6) == 4)
 
15863
        return 1;
 
15864
    }
 
15865
  return 0;
 
15866
}
 
15867
_ACEOF
 
15868
if ac_fn_c_try_run "$LINENO"; then :
 
15869
  gl_cv_func_mbrtowc_sanitycheck=yes
 
15870
else
 
15871
  gl_cv_func_mbrtowc_sanitycheck=no
 
15872
fi
 
15873
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
15874
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
15875
fi
 
15876
 
 
15877
      fi
 
15878
 
 
15879
fi
 
15880
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
 
15881
$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
 
15882
 
 
15883
    REPLACE_MBSTATE_T=0
 
15884
    case "$gl_cv_func_mbrtowc_incomplete_state" in
 
15885
      *yes) ;;
 
15886
      *) REPLACE_MBSTATE_T=1 ;;
 
15887
    esac
 
15888
    case "$gl_cv_func_mbrtowc_sanitycheck" in
 
15889
      *yes) ;;
 
15890
      *) REPLACE_MBSTATE_T=1 ;;
 
15891
    esac
 
15892
  else
 
15893
    REPLACE_MBSTATE_T=1
 
15894
  fi
 
15895
  if test $REPLACE_MBSTATE_T = 1; then
 
15896
 
 
15897
    :
 
15898
 
 
15899
  fi
 
15900
 
 
15901
 
 
15902
 
 
15903
  if test $ac_cv_func_mbsrtowcs = no; then
 
15904
    HAVE_MBSRTOWCS=0
 
15905
  else
 
15906
    if test $REPLACE_MBSTATE_T = 1; then
 
15907
      REPLACE_MBSRTOWCS=1
 
15908
    else
 
15909
 
 
15910
 
 
15911
 
 
15912
 
 
15913
 
 
15914
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
 
15915
$as_echo_n "checking whether mbsrtowcs works... " >&6; }
 
15916
if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
 
15917
  $as_echo_n "(cached) " >&6
 
15918
else
 
15919
 
 
15920
                  case "$host_os" in
 
15921
                          # Guess no on HP-UX and Solaris.
 
15922
        hpux* | solaris*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
 
15923
                          # Guess yes otherwise.
 
15924
        *)                gl_cv_func_mbsrtowcs_works="guessing yes" ;;
 
15925
      esac
 
15926
      if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
 
15927
        if test "$cross_compiling" = yes; then :
 
15928
  :
 
15929
else
 
15930
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15931
/* end confdefs.h.  */
 
15932
 
 
15933
#include <locale.h>
 
15934
#include <string.h>
 
15935
#include <wchar.h>
 
15936
int main ()
 
15937
{
 
15938
  /* Test whether the function works when started with a conversion state
 
15939
     in non-initial state.  This fails on HP-UX 11.11 and Solaris 10.  */
 
15940
  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
 
15941
    {
 
15942
      const char input[] = "B\303\274\303\237er";
 
15943
      mbstate_t state;
 
15944
 
 
15945
      memset (&state, '\0', sizeof (mbstate_t));
 
15946
      if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
 
15947
        if (!mbsinit (&state))
 
15948
          {
 
15949
            const char *src = input + 2;
 
15950
            if (mbsrtowcs (NULL, &src, 10, &state) != 4)
 
15951
              return 1;
 
15952
          }
 
15953
    }
 
15954
  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
 
15955
    {
 
15956
      const char input[] = "<\306\374\313\334\270\354>";
 
15957
      mbstate_t state;
 
15958
 
 
15959
      memset (&state, '\0', sizeof (mbstate_t));
 
15960
      if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
 
15961
        if (!mbsinit (&state))
 
15962
          {
 
15963
            const char *src = input + 4;
 
15964
            if (mbsrtowcs (NULL, &src, 10, &state) != 3)
 
15965
              return 1;
 
15966
          }
 
15967
    }
 
15968
  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
 
15969
    {
 
15970
      const char input[] = "B\250\271\201\060\211\070er";
 
15971
      mbstate_t state;
 
15972
 
 
15973
      memset (&state, '\0', sizeof (mbstate_t));
 
15974
      if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
 
15975
        if (!mbsinit (&state))
 
15976
          {
 
15977
            const char *src = input + 2;
 
15978
            if (mbsrtowcs (NULL, &src, 10, &state) != 4)
 
15979
              return 1;
 
15980
          }
 
15981
    }
 
15982
  return 0;
 
15983
}
 
15984
_ACEOF
 
15985
if ac_fn_c_try_run "$LINENO"; then :
 
15986
  gl_cv_func_mbsrtowcs_works=yes
 
15987
else
 
15988
  gl_cv_func_mbsrtowcs_works=no
 
15989
fi
 
15990
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
15991
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
15992
fi
 
15993
 
 
15994
      fi
 
15995
 
 
15996
fi
 
15997
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
 
15998
$as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
 
15999
 
 
16000
      case "$gl_cv_func_mbsrtowcs_works" in
 
16001
        *yes) ;;
 
16002
        *) REPLACE_MBSRTOWCS=1 ;;
 
16003
      esac
 
16004
    fi
 
16005
  fi
 
16006
  if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
 
16007
 
 
16008
    :
 
16009
 
 
16010
 
 
16011
 
 
16012
 
 
16013
 
 
16014
 
 
16015
 
 
16016
 
 
16017
 
 
16018
  gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
 
16019
 
 
16020
 
 
16021
 
 
16022
 
 
16023
 
 
16024
 
 
16025
 
 
16026
 
 
16027
 
 
16028
  gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
 
16029
 
 
16030
 
 
16031
  :
 
16032
 
 
16033
  fi
 
16034
 
 
16035
 
 
16036
 
 
16037
 
 
16038
  GNULIB_MBSRTOWCS=1
 
16039
 
 
16040
 
 
16041
 
 
16042
$as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
 
16043
 
 
16044
 
 
16045
 
 
16046
  # Code from module memchr:
 
16047
 
 
16048
 
 
16049
 
 
16050
 
 
16051
  GNULIB_MEMCHR=1
 
16052
 
 
16053
 
 
16054
 
 
16055
$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
 
16056
 
 
16057
 
 
16058
 
 
16059
  # Code from module mempcpy:
 
16060
 
 
16061
 
 
16062
 
 
16063
 
 
16064
 
 
16065
 
 
16066
 
 
16067
 
 
16068
 
 
16069
 
 
16070
 
 
16071
 
 
16072
 
 
16073
 
 
16074
  for ac_func in mempcpy
 
16075
do :
 
16076
  ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
 
16077
if test "x$ac_cv_func_mempcpy" = x""yes; then :
 
16078
  cat >>confdefs.h <<_ACEOF
 
16079
#define HAVE_MEMPCPY 1
 
16080
_ACEOF
 
16081
 
 
16082
else
 
16083
 
 
16084
    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
 
16085
 
 
16086
fi
 
16087
done
 
16088
 
 
16089
 
 
16090
  if test $ac_cv_func_mempcpy = no; then
 
16091
    HAVE_MEMPCPY=0
 
16092
 
 
16093
  :
 
16094
 
 
16095
  fi
 
16096
 
 
16097
 
 
16098
 
 
16099
 
 
16100
  GNULIB_MEMPCPY=1
 
16101
 
 
16102
 
 
16103
 
 
16104
$as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
 
16105
 
 
16106
 
 
16107
 
 
16108
  # Code from module multiarch:
 
16109
 
 
16110
  # Code from module nl_langinfo:
 
16111
 
 
16112
 
 
16113
 
 
16114
 
 
16115
  if test $ac_cv_func_nl_langinfo = yes; then
 
16116
    if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1; then
 
16117
      :
 
16118
    else
 
16119
      REPLACE_NL_LANGINFO=1
 
16120
 
 
16121
$as_echo "#define REPLACE_NL_LANGINFO 1" >>confdefs.h
 
16122
 
 
16123
 
 
16124
 
 
16125
 
 
16126
 
 
16127
 
 
16128
 
 
16129
 
 
16130
 
 
16131
  gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
 
16132
 
 
16133
    fi
 
16134
  else
 
16135
    HAVE_NL_LANGINFO=0
 
16136
 
 
16137
 
 
16138
 
 
16139
 
 
16140
 
 
16141
 
 
16142
 
 
16143
 
 
16144
  gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
 
16145
 
 
16146
  fi
 
16147
 
 
16148
 
 
16149
 
 
16150
 
 
16151
  GNULIB_NL_LANGINFO=1
 
16152
 
 
16153
 
 
16154
 
 
16155
$as_echo "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h
 
16156
 
 
16157
 
 
16158
 
 
16159
  # Code from module progname:
 
16160
  ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
 
16161
"
 
16162
if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then :
 
16163
  ac_have_decl=1
 
16164
else
 
16165
  ac_have_decl=0
 
16166
fi
 
16167
 
 
16168
cat >>confdefs.h <<_ACEOF
 
16169
#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
 
16170
_ACEOF
 
16171
 
 
16172
  ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
 
16173
"
 
16174
if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then :
 
16175
  ac_have_decl=1
 
16176
else
 
16177
  ac_have_decl=0
 
16178
fi
 
16179
 
 
16180
cat >>confdefs.h <<_ACEOF
 
16181
#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
 
16182
_ACEOF
 
16183
 
 
16184
  # Code from module rawmemchr:
 
16185
 
 
16186
 
 
16187
 
 
16188
 
 
16189
 
 
16190
 
 
16191
 
 
16192
 
 
16193
 
 
16194
 
 
16195
 
 
16196
 
 
16197
  for ac_func in rawmemchr
 
16198
do :
 
16199
  ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
 
16200
if test "x$ac_cv_func_rawmemchr" = x""yes; then :
 
16201
  cat >>confdefs.h <<_ACEOF
 
16202
#define HAVE_RAWMEMCHR 1
 
16203
_ACEOF
 
16204
 
 
16205
else
 
16206
 
 
16207
    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
 
16208
 
 
16209
fi
 
16210
done
 
16211
 
 
16212
 
 
16213
  if test $ac_cv_func_rawmemchr = no; then
 
16214
    HAVE_RAWMEMCHR=0
 
16215
    :
 
16216
  fi
 
16217
 
 
16218
 
 
16219
 
 
16220
 
 
16221
  GNULIB_RAWMEMCHR=1
 
16222
 
 
16223
 
 
16224
 
 
16225
$as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
 
16226
 
 
16227
 
 
16228
 
 
16229
  # Code from module realloc-posix:
 
16230
 
 
16231
 
 
16232
 
 
16233
  if test $gl_cv_func_malloc_posix = yes; then
 
16234
 
 
16235
$as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
 
16236
 
 
16237
  else
 
16238
 
 
16239
 
 
16240
 
 
16241
 
 
16242
 
 
16243
 
 
16244
 
 
16245
 
 
16246
 
 
16247
  gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
 
16248
 
 
16249
  REPLACE_REALLOC=1
 
16250
 
 
16251
  fi
 
16252
 
 
16253
 
 
16254
 
 
16255
 
 
16256
  GNULIB_REALLOC_POSIX=1
 
16257
 
 
16258
 
 
16259
 
 
16260
$as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
 
16261
 
 
16262
 
 
16263
 
 
16264
  # Code from module regex:
 
16265
 
 
16266
 
 
16267
 
 
16268
 
 
16269
# Check whether --with-included-regex was given.
 
16270
if test "${with_included_regex+set}" = set; then :
 
16271
  withval=$with_included_regex;
 
16272
fi
 
16273
 
 
16274
 
 
16275
  case $with_included_regex in #(
 
16276
  yes|no) ac_use_included_regex=$with_included_regex
 
16277
        ;;
 
16278
  '')
 
16279
    # If the system regex support is good enough that it passes the
 
16280
    # following run test, then default to *not* using the included regex.c.
 
16281
    # If cross compiling, assume the test would fail and use the included
 
16282
    # regex.c.
 
16283
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5
 
16284
$as_echo_n "checking for working re_compile_pattern... " >&6; }
 
16285
if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then :
 
16286
  $as_echo_n "(cached) " >&6
 
16287
else
 
16288
  if test "$cross_compiling" = yes; then :
 
16289
         gl_cv_func_re_compile_pattern_working=no
 
16290
else
 
16291
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16292
/* end confdefs.h.  */
 
16293
$ac_includes_default
 
16294
           #if HAVE_LOCALE_H
 
16295
            #include <locale.h>
 
16296
           #endif
 
16297
           #include <limits.h>
 
16298
           #include <regex.h>
 
16299
 
 
16300
int
 
16301
main (void)
 
16302
{
 
16303
static struct re_pattern_buffer regex;
 
16304
            unsigned char folded_chars[UCHAR_MAX + 1];
 
16305
            int i;
 
16306
            const char *s;
 
16307
            struct re_registers regs;
 
16308
 
 
16309
            #if HAVE_LOCALE_H
 
16310
              /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
 
16311
                 This test needs valgrind to catch the bug on Debian
 
16312
                 GNU/Linux 3.1 x86, but it might catch the bug better
 
16313
                 on other platforms and it shouldn't hurt to try the
 
16314
                 test here.  */
 
16315
              if (setlocale (LC_ALL, "en_US.UTF-8"))
 
16316
                {
 
16317
                  static char const pat[] = "insert into";
 
16318
                  static char const data[] =
 
16319
                    "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
 
16320
                  re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
 
16321
                                 | RE_ICASE);
 
16322
                  memset (&regex, 0, sizeof regex);
 
16323
                  s = re_compile_pattern (pat, sizeof pat - 1, &regex);
 
16324
                  if (s)
 
16325
                    return 1;
 
16326
                  if (re_search (&regex, data, sizeof data - 1,
 
16327
                                 0, sizeof data - 1, &regs)
 
16328
                      != -1)
 
16329
                    return 1;
 
16330
                  if (! setlocale (LC_ALL, "C"))
 
16331
                    return 1;
 
16332
                }
 
16333
            #endif
 
16334
 
 
16335
            /* This test is from glibc bug 3957, reported by Andrew Mackey.  */
 
16336
            re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
 
16337
            memset (&regex, 0, sizeof regex);
 
16338
            s = re_compile_pattern ("a[^x]b", 6, &regex);
 
16339
            if (s)
 
16340
              return 1;
 
16341
 
 
16342
            /* This should fail, but succeeds for glibc-2.5.  */
 
16343
            if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
 
16344
              return 1;
 
16345
 
 
16346
            /* This regular expression is from Spencer ere test number 75
 
16347
               in grep-2.3.  */
 
16348
            re_set_syntax (RE_SYNTAX_POSIX_EGREP);
 
16349
            memset (&regex, 0, sizeof regex);
 
16350
            for (i = 0; i <= UCHAR_MAX; i++)
 
16351
              folded_chars[i] = i;
 
16352
            regex.translate = folded_chars;
 
16353
            s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
 
16354
            /* This should fail with _Invalid character class name_ error.  */
 
16355
            if (!s)
 
16356
              return 1;
 
16357
 
 
16358
            /* Ensure that [b-a] is diagnosed as invalid, when
 
16359
               using RE_NO_EMPTY_RANGES. */
 
16360
            re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
 
16361
            memset (&regex, 0, sizeof regex);
 
16362
            s = re_compile_pattern ("a[b-a]", 6, &regex);
 
16363
            if (s == 0)
 
16364
              return 1;
 
16365
 
 
16366
            /* This should succeed, but does not for glibc-2.1.3.  */
 
16367
            memset (&regex, 0, sizeof regex);
 
16368
            s = re_compile_pattern ("{1", 2, &regex);
 
16369
 
 
16370
            if (s)
 
16371
              return 1;
 
16372
 
 
16373
            /* The following example is derived from a problem report
 
16374
               against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
 
16375
            memset (&regex, 0, sizeof regex);
 
16376
            s = re_compile_pattern ("[an\371]*n", 7, &regex);
 
16377
            if (s)
 
16378
              return 1;
 
16379
 
 
16380
            /* This should match, but does not for glibc-2.2.1.  */
 
16381
            if (re_match (&regex, "an", 2, 0, &regs) != 2)
 
16382
              return 1;
 
16383
 
 
16384
            memset (&regex, 0, sizeof regex);
 
16385
            s = re_compile_pattern ("x", 1, &regex);
 
16386
            if (s)
 
16387
              return 1;
 
16388
 
 
16389
            /* glibc-2.2.93 does not work with a negative RANGE argument.  */
 
16390
            if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
 
16391
              return 1;
 
16392
 
 
16393
            /* The version of regex.c in older versions of gnulib
 
16394
               ignored RE_ICASE.  Detect that problem too.  */
 
16395
            re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
 
16396
            memset (&regex, 0, sizeof regex);
 
16397
            s = re_compile_pattern ("x", 1, &regex);
 
16398
            if (s)
 
16399
              return 1;
 
16400
 
 
16401
            if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
 
16402
              return 1;
 
16403
 
 
16404
            /* Catch a bug reported by Vin Shelton in
 
16405
               http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
 
16406
               */
 
16407
            re_set_syntax (RE_SYNTAX_POSIX_BASIC
 
16408
                           & ~RE_CONTEXT_INVALID_DUP
 
16409
                           & ~RE_NO_EMPTY_RANGES);
 
16410
            memset (&regex, 0, sizeof regex);
 
16411
            s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, &regex);
 
16412
            if (s)
 
16413
              return 1;
 
16414
 
 
16415
            /* REG_STARTEND was added to glibc on 2004-01-15.
 
16416
               Reject older versions.  */
 
16417
            if (! REG_STARTEND)
 
16418
              return 1;
 
16419
 
 
16420
#if 0
 
16421
            /* It would be nice to reject hosts whose regoff_t values are too
 
16422
               narrow (including glibc on hosts with 64-bit ptrdiff_t and
 
16423
               32-bit int), but we should wait until glibc implements this
 
16424
               feature.  Otherwise, support for equivalence classes and
 
16425
               multibyte collation symbols would always be broken except
 
16426
               when compiling --without-included-regex.   */
 
16427
            if (sizeof (regoff_t) < sizeof (ptrdiff_t)
 
16428
                || sizeof (regoff_t) < sizeof (ssize_t))
 
16429
              return 1;
 
16430
#endif
 
16431
 
 
16432
            return 0;
 
16433
  ;
 
16434
  return 0;
 
16435
}
 
16436
_ACEOF
 
16437
if ac_fn_c_try_run "$LINENO"; then :
 
16438
  gl_cv_func_re_compile_pattern_working=yes
 
16439
else
 
16440
  gl_cv_func_re_compile_pattern_working=no
 
16441
fi
 
16442
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
16443
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
16444
fi
 
16445
 
 
16446
fi
 
16447
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5
 
16448
$as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
 
16449
    case $gl_cv_func_re_compile_pattern_working in #(
 
16450
    yes) ac_use_included_regex=no;; #(
 
16451
    no) ac_use_included_regex=yes;;
 
16452
    esac
 
16453
    ;;
 
16454
  *) as_fn_error $? "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5
 
16455
    ;;
 
16456
  esac
 
16457
 
 
16458
  if test $ac_use_included_regex = yes; then
 
16459
 
 
16460
$as_echo "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h
 
16461
 
 
16462
 
 
16463
$as_echo "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h
 
16464
 
 
16465
 
 
16466
$as_echo "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h
 
16467
 
 
16468
 
 
16469
$as_echo "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h
 
16470
 
 
16471
 
 
16472
$as_echo "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h
 
16473
 
 
16474
 
 
16475
$as_echo "#define re_search rpl_re_search" >>confdefs.h
 
16476
 
 
16477
 
 
16478
$as_echo "#define re_search_2 rpl_re_search_2" >>confdefs.h
 
16479
 
 
16480
 
 
16481
$as_echo "#define re_match rpl_re_match" >>confdefs.h
 
16482
 
 
16483
 
 
16484
$as_echo "#define re_match_2 rpl_re_match_2" >>confdefs.h
 
16485
 
 
16486
 
 
16487
$as_echo "#define re_set_registers rpl_re_set_registers" >>confdefs.h
 
16488
 
 
16489
 
 
16490
$as_echo "#define re_comp rpl_re_comp" >>confdefs.h
 
16491
 
 
16492
 
 
16493
$as_echo "#define re_exec rpl_re_exec" >>confdefs.h
 
16494
 
 
16495
 
 
16496
$as_echo "#define regcomp rpl_regcomp" >>confdefs.h
 
16497
 
 
16498
 
 
16499
$as_echo "#define regexec rpl_regexec" >>confdefs.h
 
16500
 
 
16501
 
 
16502
$as_echo "#define regerror rpl_regerror" >>confdefs.h
 
16503
 
 
16504
 
 
16505
$as_echo "#define regfree rpl_regfree" >>confdefs.h
 
16506
 
 
16507
 
 
16508
 
 
16509
 
 
16510
 
 
16511
 
 
16512
 
 
16513
 
 
16514
 
 
16515
  gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
 
16516
 
 
16517
 
 
16518
 
 
16519
 
 
16520
 
 
16521
 
 
16522
  for ac_header in libintl.h
 
16523
do :
 
16524
  ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
 
16525
if test "x$ac_cv_header_libintl_h" = x""yes; then :
 
16526
  cat >>confdefs.h <<_ACEOF
 
16527
#define HAVE_LIBINTL_H 1
 
16528
_ACEOF
 
16529
 
 
16530
fi
 
16531
 
 
16532
done
 
16533
 
 
16534
 
 
16535
  ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
 
16536
"
 
16537
if test "x$ac_cv_have_decl_isblank" = x""yes; then :
 
16538
  ac_have_decl=1
 
16539
else
 
16540
  ac_have_decl=0
 
16541
fi
 
16542
 
 
16543
cat >>confdefs.h <<_ACEOF
 
16544
#define HAVE_DECL_ISBLANK $ac_have_decl
 
16545
_ACEOF
 
16546
 
 
16547
 
 
16548
  fi
 
16549
 
 
16550
  # Code from module size_max:
 
16551
 
 
16552
  for ac_header in stdint.h
 
16553
do :
 
16554
  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
 
16555
if test "x$ac_cv_header_stdint_h" = x""yes; then :
 
16556
  cat >>confdefs.h <<_ACEOF
 
16557
#define HAVE_STDINT_H 1
 
16558
_ACEOF
 
16559
 
 
16560
fi
 
16561
 
 
16562
done
 
16563
 
 
16564
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
 
16565
$as_echo_n "checking for SIZE_MAX... " >&6; }
 
16566
if test "${gl_cv_size_max+set}" = set; then :
 
16567
  $as_echo_n "(cached) " >&6
 
16568
else
 
16569
 
 
16570
    gl_cv_size_max=
 
16571
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16572
/* end confdefs.h.  */
 
16573
 
 
16574
#include <limits.h>
 
16575
#if HAVE_STDINT_H
 
16576
#include <stdint.h>
 
16577
#endif
 
16578
#ifdef SIZE_MAX
 
16579
Found it
 
16580
#endif
 
16581
 
 
16582
_ACEOF
 
16583
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
16584
  $EGREP "Found it" >/dev/null 2>&1; then :
 
16585
  gl_cv_size_max=yes
 
16586
fi
 
16587
rm -f conftest*
 
16588
 
 
16589
    if test -z "$gl_cv_size_max"; then
 
16590
                        if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
 
16591
#include <limits.h>"; then :
 
16592
 
 
16593
else
 
16594
  size_t_bits_minus_1=
 
16595
fi
 
16596
 
 
16597
      if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
 
16598
 
 
16599
else
 
16600
  fits_in_uint=
 
16601
fi
 
16602
 
 
16603
      if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
 
16604
        if test $fits_in_uint = 1; then
 
16605
                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16606
/* end confdefs.h.  */
 
16607
#include <stddef.h>
 
16608
                 extern size_t foo;
 
16609
                 extern unsigned long foo;
 
16610
 
 
16611
int
 
16612
main (void)
 
16613
{
 
16614
 
 
16615
  ;
 
16616
  return 0;
 
16617
}
 
16618
_ACEOF
 
16619
if ac_fn_c_try_compile "$LINENO"; then :
 
16620
  fits_in_uint=0
 
16621
fi
 
16622
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16623
        fi
 
16624
                                if test $fits_in_uint = 1; then
 
16625
          gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
 
16626
        else
 
16627
          gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
 
16628
        fi
 
16629
      else
 
16630
                gl_cv_size_max='((size_t)~(size_t)0)'
 
16631
      fi
 
16632
    fi
 
16633
 
 
16634
fi
 
16635
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
 
16636
$as_echo "$gl_cv_size_max" >&6; }
 
16637
  if test "$gl_cv_size_max" != yes; then
 
16638
 
 
16639
cat >>confdefs.h <<_ACEOF
 
16640
#define SIZE_MAX $gl_cv_size_max
 
16641
_ACEOF
 
16642
 
 
16643
  fi
 
16644
 
 
16645
 
 
16646
  # Code from module sleep:
 
16647
 
 
16648
 
 
16649
            ac_fn_c_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h>
 
16650
"
 
16651
if test "x$ac_cv_have_decl_sleep" = x""yes; then :
 
16652
  ac_have_decl=1
 
16653
else
 
16654
  ac_have_decl=0
 
16655
fi
 
16656
 
 
16657
cat >>confdefs.h <<_ACEOF
 
16658
#define HAVE_DECL_SLEEP $ac_have_decl
 
16659
_ACEOF
 
16660
 
 
16661
 
 
16662
  if test $ac_cv_have_decl_sleep != yes; then
 
16663
    HAVE_SLEEP=0
 
16664
 
 
16665
 
 
16666
 
 
16667
 
 
16668
 
 
16669
 
 
16670
 
 
16671
 
 
16672
  gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
 
16673
 
 
16674
  else
 
16675
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sleep" >&5
 
16676
$as_echo_n "checking for working sleep... " >&6; }
 
16677
if test "${gl_cv_func_sleep_works+set}" = set; then :
 
16678
  $as_echo_n "(cached) " >&6
 
16679
else
 
16680
  if test "$cross_compiling" = yes; then :
 
16681
  gl_cv_func_sleep_works="guessing no"
 
16682
else
 
16683
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16684
/* end confdefs.h.  */
 
16685
 
 
16686
#include <errno.h>
 
16687
#include <unistd.h>
 
16688
#include <signal.h>
 
16689
static void
 
16690
handle_alarm (int sig)
 
16691
{
 
16692
  if (sig != SIGALRM)
 
16693
    _exit (2);
 
16694
}
 
16695
 
 
16696
int
 
16697
main (void)
 
16698
{
 
16699
 
 
16700
    /* Failure to compile this test due to missing alarm is okay,
 
16701
       since all such platforms (mingw) also lack sleep.  */
 
16702
    unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days.  */
 
16703
    unsigned int remaining;
 
16704
    signal (SIGALRM, handle_alarm);
 
16705
    alarm (1);
 
16706
    remaining = sleep (pentecost);
 
16707
    return !(pentecost - 10 < remaining && remaining <= pentecost);
 
16708
  ;
 
16709
  return 0;
 
16710
}
 
16711
_ACEOF
 
16712
if ac_fn_c_try_run "$LINENO"; then :
 
16713
  gl_cv_func_sleep_works=yes
 
16714
else
 
16715
  gl_cv_func_sleep_works=no
 
16716
fi
 
16717
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
16718
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
16719
fi
 
16720
 
 
16721
fi
 
16722
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sleep_works" >&5
 
16723
$as_echo "$gl_cv_func_sleep_works" >&6; }
 
16724
    if test "$gl_cv_func_sleep_works" != yes; then
 
16725
      REPLACE_SLEEP=1
 
16726
 
 
16727
 
 
16728
 
 
16729
 
 
16730
 
 
16731
 
 
16732
 
 
16733
 
 
16734
  gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
 
16735
 
 
16736
    fi
 
16737
  fi
 
16738
 
 
16739
 
 
16740
 
 
16741
 
 
16742
  GNULIB_SLEEP=1
 
16743
 
 
16744
 
 
16745
 
 
16746
$as_echo "#define GNULIB_TEST_SLEEP 1" >>confdefs.h
 
16747
 
 
16748
 
 
16749
 
 
16750
  # Code from module ssize_t:
 
16751
 
 
16752
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
 
16753
$as_echo_n "checking for ssize_t... " >&6; }
 
16754
if test "${gt_cv_ssize_t+set}" = set; then :
 
16755
  $as_echo_n "(cached) " >&6
 
16756
else
 
16757
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16758
/* end confdefs.h.  */
 
16759
#include <sys/types.h>
 
16760
int
 
16761
main (void)
 
16762
{
 
16763
int x = sizeof (ssize_t *) + sizeof (ssize_t);
 
16764
            return !x;
 
16765
  ;
 
16766
  return 0;
 
16767
}
 
16768
_ACEOF
 
16769
if ac_fn_c_try_compile "$LINENO"; then :
 
16770
  gt_cv_ssize_t=yes
 
16771
else
 
16772
  gt_cv_ssize_t=no
 
16773
fi
 
16774
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16775
fi
 
16776
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
 
16777
$as_echo "$gt_cv_ssize_t" >&6; }
 
16778
  if test $gt_cv_ssize_t = no; then
 
16779
 
 
16780
$as_echo "#define ssize_t int" >>confdefs.h
 
16781
 
 
16782
  fi
 
16783
 
 
16784
  # Code from module stdbool:
 
16785
 
 
16786
 
 
16787
 
 
16788
  # Define two additional variables used in the Makefile substitution.
 
16789
 
 
16790
  if test "$ac_cv_header_stdbool_h" = yes; then
 
16791
    STDBOOL_H=''
 
16792
  else
 
16793
    STDBOOL_H='stdbool.h'
 
16794
  fi
 
16795
 
 
16796
 
 
16797
  if test "$ac_cv_type__Bool" = yes; then
 
16798
    HAVE__BOOL=1
 
16799
  else
 
16800
    HAVE__BOOL=0
 
16801
  fi
 
16802
 
 
16803
 
 
16804
  # Code from module stddef:
 
16805
 
 
16806
 
 
16807
 
 
16808
  if test $gt_cv_c_wchar_t = no; then
 
16809
    HAVE_WCHAR_T=0
 
16810
    STDDEF_H=stddef.h
 
16811
  fi
 
16812
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
 
16813
$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
 
16814
if test "${gl_cv_decl_null_works+set}" = set; then :
 
16815
  $as_echo_n "(cached) " >&6
 
16816
else
 
16817
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16818
/* end confdefs.h.  */
 
16819
#include <stddef.h>
 
16820
      int test[2 * (sizeof NULL == sizeof (void *)) -1];
 
16821
 
 
16822
int
 
16823
main (void)
 
16824
{
 
16825
 
 
16826
  ;
 
16827
  return 0;
 
16828
}
 
16829
_ACEOF
 
16830
if ac_fn_c_try_compile "$LINENO"; then :
 
16831
  gl_cv_decl_null_works=yes
 
16832
else
 
16833
  gl_cv_decl_null_works=no
 
16834
fi
 
16835
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16836
fi
 
16837
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
 
16838
$as_echo "$gl_cv_decl_null_works" >&6; }
 
16839
  if test $gl_cv_decl_null_works = no; then
 
16840
    REPLACE_NULL=1
 
16841
    STDDEF_H=stddef.h
 
16842
  fi
 
16843
  if test -n "$STDDEF_H"; then
 
16844
 
 
16845
 
 
16846
 
 
16847
 
 
16848
 
 
16849
 
 
16850
     if test $gl_cv_have_include_next = yes; then
 
16851
       gl_cv_next_stddef_h='<'stddef.h'>'
 
16852
     else
 
16853
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
 
16854
$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
 
16855
if test "${gl_cv_next_stddef_h+set}" = set; then :
 
16856
  $as_echo_n "(cached) " >&6
 
16857
else
 
16858
 
 
16859
          if test $ac_cv_header_stddef_h = yes; then
 
16860
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16861
/* end confdefs.h.  */
 
16862
#include <stddef.h>
 
16863
 
 
16864
_ACEOF
 
16865
                                                                                                case "$host_os" in
 
16866
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
16867
              *)    gl_absname_cpp="$ac_cpp" ;;
 
16868
            esac
 
16869
                                                gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
16870
               sed -n '\#/stddef.h#{
 
16871
                 s#.*"\(.*/stddef.h\)".*#\1#
 
16872
                 s#^/[^/]#//&#
 
16873
                 p
 
16874
                 q
 
16875
               }'`'"'
 
16876
          else
 
16877
            gl_cv_next_stddef_h='<'stddef.h'>'
 
16878
          fi
 
16879
 
 
16880
fi
 
16881
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
 
16882
$as_echo "$gl_cv_next_stddef_h" >&6; }
 
16883
     fi
 
16884
     NEXT_STDDEF_H=$gl_cv_next_stddef_h
 
16885
 
 
16886
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
16887
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
16888
       gl_next_as_first_directive='<'stddef.h'>'
 
16889
     else
 
16890
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
16891
       gl_next_as_first_directive=$gl_cv_next_stddef_h
 
16892
     fi
 
16893
     NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
 
16894
 
 
16895
 
 
16896
 
 
16897
  fi
 
16898
 
 
16899
  # Code from module stdint:
 
16900
 
 
16901
 
 
16902
 
 
16903
  if test $ac_cv_type_long_long_int = yes; then
 
16904
    HAVE_LONG_LONG_INT=1
 
16905
  else
 
16906
    HAVE_LONG_LONG_INT=0
 
16907
  fi
 
16908
 
 
16909
 
 
16910
  if test $ac_cv_type_unsigned_long_long_int = yes; then
 
16911
    HAVE_UNSIGNED_LONG_LONG_INT=1
 
16912
  else
 
16913
    HAVE_UNSIGNED_LONG_LONG_INT=0
 
16914
  fi
 
16915
 
 
16916
 
 
16917
      if test $ac_cv_header_inttypes_h = yes; then
 
16918
    HAVE_INTTYPES_H=1
 
16919
  else
 
16920
    HAVE_INTTYPES_H=0
 
16921
  fi
 
16922
 
 
16923
 
 
16924
      if test $ac_cv_header_sys_types_h = yes; then
 
16925
    HAVE_SYS_TYPES_H=1
 
16926
  else
 
16927
    HAVE_SYS_TYPES_H=0
 
16928
  fi
 
16929
 
 
16930
 
 
16931
 
 
16932
 
 
16933
 
 
16934
 
 
16935
 
 
16936
 
 
16937
     if test $gl_cv_have_include_next = yes; then
 
16938
       gl_cv_next_stdint_h='<'stdint.h'>'
 
16939
     else
 
16940
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
 
16941
$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
 
16942
if test "${gl_cv_next_stdint_h+set}" = set; then :
 
16943
  $as_echo_n "(cached) " >&6
 
16944
else
 
16945
 
 
16946
          if test $ac_cv_header_stdint_h = yes; then
 
16947
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16948
/* end confdefs.h.  */
 
16949
#include <stdint.h>
 
16950
 
 
16951
_ACEOF
 
16952
                                                                                                case "$host_os" in
 
16953
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
16954
              *)    gl_absname_cpp="$ac_cpp" ;;
 
16955
            esac
 
16956
                                                gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
16957
               sed -n '\#/stdint.h#{
 
16958
                 s#.*"\(.*/stdint.h\)".*#\1#
 
16959
                 s#^/[^/]#//&#
 
16960
                 p
 
16961
                 q
 
16962
               }'`'"'
 
16963
          else
 
16964
            gl_cv_next_stdint_h='<'stdint.h'>'
 
16965
          fi
 
16966
 
 
16967
fi
 
16968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
 
16969
$as_echo "$gl_cv_next_stdint_h" >&6; }
 
16970
     fi
 
16971
     NEXT_STDINT_H=$gl_cv_next_stdint_h
 
16972
 
 
16973
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
16974
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
16975
       gl_next_as_first_directive='<'stdint.h'>'
 
16976
     else
 
16977
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
16978
       gl_next_as_first_directive=$gl_cv_next_stdint_h
 
16979
     fi
 
16980
     NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
 
16981
 
 
16982
 
 
16983
 
 
16984
  if test $ac_cv_header_stdint_h = yes; then
 
16985
    HAVE_STDINT_H=1
 
16986
  else
 
16987
    HAVE_STDINT_H=0
 
16988
  fi
 
16989
 
 
16990
 
 
16991
    if test $ac_cv_header_stdint_h = yes; then
 
16992
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
 
16993
$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
 
16994
if test "${gl_cv_header_working_stdint_h+set}" = set; then :
 
16995
  $as_echo_n "(cached) " >&6
 
16996
else
 
16997
  gl_cv_header_working_stdint_h=no
 
16998
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16999
/* end confdefs.h.  */
 
17000
 
 
17001
 
 
17002
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
 
17003
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
 
17004
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
 
17005
#include <stdint.h>
 
17006
/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
 
17007
#if !(defined WCHAR_MIN && defined WCHAR_MAX)
 
17008
#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
 
17009
#endif
 
17010
 
 
17011
 
 
17012
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
17013
     included before <wchar.h>.  */
 
17014
  #include <stddef.h>
 
17015
  #include <signal.h>
 
17016
  #if HAVE_WCHAR_H
 
17017
  # include <stdio.h>
 
17018
  # include <time.h>
 
17019
  # include <wchar.h>
 
17020
  #endif
 
17021
 
 
17022
 
 
17023
#ifdef INT8_MAX
 
17024
int8_t a1 = INT8_MAX;
 
17025
int8_t a1min = INT8_MIN;
 
17026
#endif
 
17027
#ifdef INT16_MAX
 
17028
int16_t a2 = INT16_MAX;
 
17029
int16_t a2min = INT16_MIN;
 
17030
#endif
 
17031
#ifdef INT32_MAX
 
17032
int32_t a3 = INT32_MAX;
 
17033
int32_t a3min = INT32_MIN;
 
17034
#endif
 
17035
#ifdef INT64_MAX
 
17036
int64_t a4 = INT64_MAX;
 
17037
int64_t a4min = INT64_MIN;
 
17038
#endif
 
17039
#ifdef UINT8_MAX
 
17040
uint8_t b1 = UINT8_MAX;
 
17041
#else
 
17042
typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
 
17043
#endif
 
17044
#ifdef UINT16_MAX
 
17045
uint16_t b2 = UINT16_MAX;
 
17046
#endif
 
17047
#ifdef UINT32_MAX
 
17048
uint32_t b3 = UINT32_MAX;
 
17049
#endif
 
17050
#ifdef UINT64_MAX
 
17051
uint64_t b4 = UINT64_MAX;
 
17052
#endif
 
17053
int_least8_t c1 = INT8_C (0x7f);
 
17054
int_least8_t c1max = INT_LEAST8_MAX;
 
17055
int_least8_t c1min = INT_LEAST8_MIN;
 
17056
int_least16_t c2 = INT16_C (0x7fff);
 
17057
int_least16_t c2max = INT_LEAST16_MAX;
 
17058
int_least16_t c2min = INT_LEAST16_MIN;
 
17059
int_least32_t c3 = INT32_C (0x7fffffff);
 
17060
int_least32_t c3max = INT_LEAST32_MAX;
 
17061
int_least32_t c3min = INT_LEAST32_MIN;
 
17062
int_least64_t c4 = INT64_C (0x7fffffffffffffff);
 
17063
int_least64_t c4max = INT_LEAST64_MAX;
 
17064
int_least64_t c4min = INT_LEAST64_MIN;
 
17065
uint_least8_t d1 = UINT8_C (0xff);
 
17066
uint_least8_t d1max = UINT_LEAST8_MAX;
 
17067
uint_least16_t d2 = UINT16_C (0xffff);
 
17068
uint_least16_t d2max = UINT_LEAST16_MAX;
 
17069
uint_least32_t d3 = UINT32_C (0xffffffff);
 
17070
uint_least32_t d3max = UINT_LEAST32_MAX;
 
17071
uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
 
17072
uint_least64_t d4max = UINT_LEAST64_MAX;
 
17073
int_fast8_t e1 = INT_FAST8_MAX;
 
17074
int_fast8_t e1min = INT_FAST8_MIN;
 
17075
int_fast16_t e2 = INT_FAST16_MAX;
 
17076
int_fast16_t e2min = INT_FAST16_MIN;
 
17077
int_fast32_t e3 = INT_FAST32_MAX;
 
17078
int_fast32_t e3min = INT_FAST32_MIN;
 
17079
int_fast64_t e4 = INT_FAST64_MAX;
 
17080
int_fast64_t e4min = INT_FAST64_MIN;
 
17081
uint_fast8_t f1 = UINT_FAST8_MAX;
 
17082
uint_fast16_t f2 = UINT_FAST16_MAX;
 
17083
uint_fast32_t f3 = UINT_FAST32_MAX;
 
17084
uint_fast64_t f4 = UINT_FAST64_MAX;
 
17085
#ifdef INTPTR_MAX
 
17086
intptr_t g = INTPTR_MAX;
 
17087
intptr_t gmin = INTPTR_MIN;
 
17088
#endif
 
17089
#ifdef UINTPTR_MAX
 
17090
uintptr_t h = UINTPTR_MAX;
 
17091
#endif
 
17092
intmax_t i = INTMAX_MAX;
 
17093
uintmax_t j = UINTMAX_MAX;
 
17094
 
 
17095
#include <limits.h> /* for CHAR_BIT */
 
17096
#define TYPE_MINIMUM(t) \
 
17097
  ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
 
17098
#define TYPE_MAXIMUM(t) \
 
17099
  ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
 
17100
struct s {
 
17101
  int check_PTRDIFF:
 
17102
      PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
 
17103
      && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
 
17104
      ? 1 : -1;
 
17105
  /* Detect bug in FreeBSD 6.0 / ia64.  */
 
17106
  int check_SIG_ATOMIC:
 
17107
      SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
 
17108
      && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
 
17109
      ? 1 : -1;
 
17110
  int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
 
17111
  int check_WCHAR:
 
17112
      WCHAR_MIN == TYPE_MINIMUM (wchar_t)
 
17113
      && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
 
17114
      ? 1 : -1;
 
17115
  /* Detect bug in mingw.  */
 
17116
  int check_WINT:
 
17117
      WINT_MIN == TYPE_MINIMUM (wint_t)
 
17118
      && WINT_MAX == TYPE_MAXIMUM (wint_t)
 
17119
      ? 1 : -1;
 
17120
 
 
17121
  /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
 
17122
  int check_UINT8_C:
 
17123
        (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
 
17124
  int check_UINT16_C:
 
17125
        (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
 
17126
 
 
17127
  /* Detect bugs in OpenBSD 3.9 stdint.h.  */
 
17128
#ifdef UINT8_MAX
 
17129
  int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
 
17130
#endif
 
17131
#ifdef UINT16_MAX
 
17132
  int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
 
17133
#endif
 
17134
#ifdef UINT32_MAX
 
17135
  int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
 
17136
#endif
 
17137
#ifdef UINT64_MAX
 
17138
  int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
 
17139
#endif
 
17140
  int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
 
17141
  int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
 
17142
  int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
 
17143
  int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
 
17144
  int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
 
17145
  int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
 
17146
  int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
 
17147
  int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
 
17148
  int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
 
17149
  int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
 
17150
  int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
 
17151
};
 
17152
 
 
17153
int
 
17154
main (void)
 
17155
{
 
17156
 
 
17157
  ;
 
17158
  return 0;
 
17159
}
 
17160
_ACEOF
 
17161
if ac_fn_c_try_compile "$LINENO"; then :
 
17162
                                                    if test "$cross_compiling" = yes; then :
 
17163
                 gl_cv_header_working_stdint_h=yes
 
17164
 
 
17165
else
 
17166
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17167
/* end confdefs.h.  */
 
17168
 
 
17169
 
 
17170
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
 
17171
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
 
17172
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
 
17173
#include <stdint.h>
 
17174
 
 
17175
 
 
17176
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
17177
     included before <wchar.h>.  */
 
17178
  #include <stddef.h>
 
17179
  #include <signal.h>
 
17180
  #if HAVE_WCHAR_H
 
17181
  # include <stdio.h>
 
17182
  # include <time.h>
 
17183
  # include <wchar.h>
 
17184
  #endif
 
17185
 
 
17186
 
 
17187
#include <stdio.h>
 
17188
#include <string.h>
 
17189
#define MVAL(macro) MVAL1(macro)
 
17190
#define MVAL1(expression) #expression
 
17191
static const char *macro_values[] =
 
17192
  {
 
17193
#ifdef INT8_MAX
 
17194
    MVAL (INT8_MAX),
 
17195
#endif
 
17196
#ifdef INT16_MAX
 
17197
    MVAL (INT16_MAX),
 
17198
#endif
 
17199
#ifdef INT32_MAX
 
17200
    MVAL (INT32_MAX),
 
17201
#endif
 
17202
#ifdef INT64_MAX
 
17203
    MVAL (INT64_MAX),
 
17204
#endif
 
17205
#ifdef UINT8_MAX
 
17206
    MVAL (UINT8_MAX),
 
17207
#endif
 
17208
#ifdef UINT16_MAX
 
17209
    MVAL (UINT16_MAX),
 
17210
#endif
 
17211
#ifdef UINT32_MAX
 
17212
    MVAL (UINT32_MAX),
 
17213
#endif
 
17214
#ifdef UINT64_MAX
 
17215
    MVAL (UINT64_MAX),
 
17216
#endif
 
17217
    NULL
 
17218
  };
 
17219
 
 
17220
int
 
17221
main (void)
 
17222
{
 
17223
 
 
17224
  const char **mv;
 
17225
  for (mv = macro_values; *mv != NULL; mv++)
 
17226
    {
 
17227
      const char *value = *mv;
 
17228
      /* Test whether it looks like a cast expression.  */
 
17229
      if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
 
17230
          || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
 
17231
          || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
 
17232
          || strncmp (value, "((int)"/*)*/, 6) == 0
 
17233
          || strncmp (value, "((signed short)"/*)*/, 15) == 0
 
17234
          || strncmp (value, "((signed char)"/*)*/, 14) == 0)
 
17235
        return 1;
 
17236
    }
 
17237
  return 0;
 
17238
 
 
17239
  ;
 
17240
  return 0;
 
17241
}
 
17242
_ACEOF
 
17243
if ac_fn_c_try_run "$LINENO"; then :
 
17244
  gl_cv_header_working_stdint_h=yes
 
17245
fi
 
17246
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
17247
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
17248
fi
 
17249
 
 
17250
 
 
17251
fi
 
17252
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17253
 
 
17254
fi
 
17255
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
 
17256
$as_echo "$gl_cv_header_working_stdint_h" >&6; }
 
17257
  fi
 
17258
  if test "$gl_cv_header_working_stdint_h" = yes; then
 
17259
    STDINT_H=
 
17260
  else
 
17261
            for ac_header in sys/inttypes.h sys/bitypes.h
 
17262
do :
 
17263
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
17264
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
17265
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
17266
  cat >>confdefs.h <<_ACEOF
 
17267
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
17268
_ACEOF
 
17269
 
 
17270
fi
 
17271
 
 
17272
done
 
17273
 
 
17274
    if test $ac_cv_header_sys_inttypes_h = yes; then
 
17275
      HAVE_SYS_INTTYPES_H=1
 
17276
    else
 
17277
      HAVE_SYS_INTTYPES_H=0
 
17278
    fi
 
17279
 
 
17280
    if test $ac_cv_header_sys_bitypes_h = yes; then
 
17281
      HAVE_SYS_BITYPES_H=1
 
17282
    else
 
17283
      HAVE_SYS_BITYPES_H=0
 
17284
    fi
 
17285
 
 
17286
 
 
17287
 
 
17288
 
 
17289
 
 
17290
 
 
17291
  if test $APPLE_UNIVERSAL_BUILD = 0; then
 
17292
 
 
17293
 
 
17294
  for gltype in ptrdiff_t size_t ; do
 
17295
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
 
17296
$as_echo_n "checking for bit size of $gltype... " >&6; }
 
17297
if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\"" = set; then :
 
17298
  $as_echo_n "(cached) " >&6
 
17299
else
 
17300
  if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
 
17301
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
17302
     included before <wchar.h>.  */
 
17303
  #include <stddef.h>
 
17304
  #include <signal.h>
 
17305
  #if HAVE_WCHAR_H
 
17306
  # include <stdio.h>
 
17307
  # include <time.h>
 
17308
  # include <wchar.h>
 
17309
  #endif
 
17310
 
 
17311
#include <limits.h>"; then :
 
17312
 
 
17313
else
 
17314
  result=unknown
 
17315
fi
 
17316
 
 
17317
       eval gl_cv_bitsizeof_${gltype}=\$result
 
17318
 
 
17319
fi
 
17320
eval ac_res=\$gl_cv_bitsizeof_${gltype}
 
17321
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
17322
$as_echo "$ac_res" >&6; }
 
17323
    eval result=\$gl_cv_bitsizeof_${gltype}
 
17324
    if test $result = unknown; then
 
17325
                                                result=0
 
17326
    fi
 
17327
    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
17328
    cat >>confdefs.h <<_ACEOF
 
17329
#define BITSIZEOF_${GLTYPE} $result
 
17330
_ACEOF
 
17331
 
 
17332
    eval BITSIZEOF_${GLTYPE}=\$result
 
17333
  done
 
17334
 
 
17335
 
 
17336
  fi
 
17337
 
 
17338
 
 
17339
  for gltype in sig_atomic_t wchar_t wint_t ; do
 
17340
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
 
17341
$as_echo_n "checking for bit size of $gltype... " >&6; }
 
17342
if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\"" = set; then :
 
17343
  $as_echo_n "(cached) " >&6
 
17344
else
 
17345
  if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
 
17346
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
17347
     included before <wchar.h>.  */
 
17348
  #include <stddef.h>
 
17349
  #include <signal.h>
 
17350
  #if HAVE_WCHAR_H
 
17351
  # include <stdio.h>
 
17352
  # include <time.h>
 
17353
  # include <wchar.h>
 
17354
  #endif
 
17355
 
 
17356
#include <limits.h>"; then :
 
17357
 
 
17358
else
 
17359
  result=unknown
 
17360
fi
 
17361
 
 
17362
       eval gl_cv_bitsizeof_${gltype}=\$result
 
17363
 
 
17364
fi
 
17365
eval ac_res=\$gl_cv_bitsizeof_${gltype}
 
17366
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
17367
$as_echo "$ac_res" >&6; }
 
17368
    eval result=\$gl_cv_bitsizeof_${gltype}
 
17369
    if test $result = unknown; then
 
17370
                                                result=0
 
17371
    fi
 
17372
    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
17373
    cat >>confdefs.h <<_ACEOF
 
17374
#define BITSIZEOF_${GLTYPE} $result
 
17375
_ACEOF
 
17376
 
 
17377
    eval BITSIZEOF_${GLTYPE}=\$result
 
17378
  done
 
17379
 
 
17380
 
 
17381
 
 
17382
 
 
17383
  for gltype in sig_atomic_t wchar_t wint_t ; do
 
17384
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
 
17385
$as_echo_n "checking whether $gltype is signed... " >&6; }
 
17386
if eval "test \"\${gl_cv_type_${gltype}_signed+set}\"" = set; then :
 
17387
  $as_echo_n "(cached) " >&6
 
17388
else
 
17389
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17390
/* end confdefs.h.  */
 
17391
 
 
17392
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
17393
     included before <wchar.h>.  */
 
17394
  #include <stddef.h>
 
17395
  #include <signal.h>
 
17396
  #if HAVE_WCHAR_H
 
17397
  # include <stdio.h>
 
17398
  # include <time.h>
 
17399
  # include <wchar.h>
 
17400
  #endif
 
17401
 
 
17402
            int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
 
17403
int
 
17404
main (void)
 
17405
{
 
17406
 
 
17407
  ;
 
17408
  return 0;
 
17409
}
 
17410
_ACEOF
 
17411
if ac_fn_c_try_compile "$LINENO"; then :
 
17412
  result=yes
 
17413
else
 
17414
  result=no
 
17415
fi
 
17416
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17417
       eval gl_cv_type_${gltype}_signed=\$result
 
17418
 
 
17419
fi
 
17420
eval ac_res=\$gl_cv_type_${gltype}_signed
 
17421
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
17422
$as_echo "$ac_res" >&6; }
 
17423
    eval result=\$gl_cv_type_${gltype}_signed
 
17424
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
17425
    if test "$result" = yes; then
 
17426
      cat >>confdefs.h <<_ACEOF
 
17427
#define HAVE_SIGNED_${GLTYPE} 1
 
17428
_ACEOF
 
17429
 
 
17430
      eval HAVE_SIGNED_${GLTYPE}=1
 
17431
    else
 
17432
      eval HAVE_SIGNED_${GLTYPE}=0
 
17433
    fi
 
17434
  done
 
17435
 
 
17436
 
 
17437
  gl_cv_type_ptrdiff_t_signed=yes
 
17438
  gl_cv_type_size_t_signed=no
 
17439
  if test $APPLE_UNIVERSAL_BUILD = 0; then
 
17440
 
 
17441
 
 
17442
  for gltype in ptrdiff_t size_t ; do
 
17443
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
 
17444
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
 
17445
if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\"" = set; then :
 
17446
  $as_echo_n "(cached) " >&6
 
17447
else
 
17448
  eval gl_cv_type_${gltype}_suffix=no
 
17449
       eval result=\$gl_cv_type_${gltype}_signed
 
17450
       if test "$result" = yes; then
 
17451
         glsufu=
 
17452
       else
 
17453
         glsufu=u
 
17454
       fi
 
17455
       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
 
17456
         case $glsuf in
 
17457
           '')  gltype1='int';;
 
17458
           l)   gltype1='long int';;
 
17459
           ll)  gltype1='long long int';;
 
17460
           i64) gltype1='__int64';;
 
17461
           u)   gltype1='unsigned int';;
 
17462
           ul)  gltype1='unsigned long int';;
 
17463
           ull) gltype1='unsigned long long int';;
 
17464
           ui64)gltype1='unsigned __int64';;
 
17465
         esac
 
17466
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17467
/* end confdefs.h.  */
 
17468
 
 
17469
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
17470
     included before <wchar.h>.  */
 
17471
  #include <stddef.h>
 
17472
  #include <signal.h>
 
17473
  #if HAVE_WCHAR_H
 
17474
  # include <stdio.h>
 
17475
  # include <time.h>
 
17476
  # include <wchar.h>
 
17477
  #endif
 
17478
 
 
17479
              extern $gltype foo;
 
17480
              extern $gltype1 foo;
 
17481
int
 
17482
main (void)
 
17483
{
 
17484
 
 
17485
  ;
 
17486
  return 0;
 
17487
}
 
17488
_ACEOF
 
17489
if ac_fn_c_try_compile "$LINENO"; then :
 
17490
  eval gl_cv_type_${gltype}_suffix=\$glsuf
 
17491
fi
 
17492
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17493
         eval result=\$gl_cv_type_${gltype}_suffix
 
17494
         test "$result" != no && break
 
17495
       done
 
17496
fi
 
17497
eval ac_res=\$gl_cv_type_${gltype}_suffix
 
17498
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
17499
$as_echo "$ac_res" >&6; }
 
17500
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
17501
    eval result=\$gl_cv_type_${gltype}_suffix
 
17502
    test "$result" = no && result=
 
17503
    eval ${GLTYPE}_SUFFIX=\$result
 
17504
    cat >>confdefs.h <<_ACEOF
 
17505
#define ${GLTYPE}_SUFFIX $result
 
17506
_ACEOF
 
17507
 
 
17508
  done
 
17509
 
 
17510
 
 
17511
  fi
 
17512
 
 
17513
 
 
17514
  for gltype in sig_atomic_t wchar_t wint_t ; do
 
17515
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
 
17516
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
 
17517
if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\"" = set; then :
 
17518
  $as_echo_n "(cached) " >&6
 
17519
else
 
17520
  eval gl_cv_type_${gltype}_suffix=no
 
17521
       eval result=\$gl_cv_type_${gltype}_signed
 
17522
       if test "$result" = yes; then
 
17523
         glsufu=
 
17524
       else
 
17525
         glsufu=u
 
17526
       fi
 
17527
       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
 
17528
         case $glsuf in
 
17529
           '')  gltype1='int';;
 
17530
           l)   gltype1='long int';;
 
17531
           ll)  gltype1='long long int';;
 
17532
           i64) gltype1='__int64';;
 
17533
           u)   gltype1='unsigned int';;
 
17534
           ul)  gltype1='unsigned long int';;
 
17535
           ull) gltype1='unsigned long long int';;
 
17536
           ui64)gltype1='unsigned __int64';;
 
17537
         esac
 
17538
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17539
/* end confdefs.h.  */
 
17540
 
 
17541
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
17542
     included before <wchar.h>.  */
 
17543
  #include <stddef.h>
 
17544
  #include <signal.h>
 
17545
  #if HAVE_WCHAR_H
 
17546
  # include <stdio.h>
 
17547
  # include <time.h>
 
17548
  # include <wchar.h>
 
17549
  #endif
 
17550
 
 
17551
              extern $gltype foo;
 
17552
              extern $gltype1 foo;
 
17553
int
 
17554
main (void)
 
17555
{
 
17556
 
 
17557
  ;
 
17558
  return 0;
 
17559
}
 
17560
_ACEOF
 
17561
if ac_fn_c_try_compile "$LINENO"; then :
 
17562
  eval gl_cv_type_${gltype}_suffix=\$glsuf
 
17563
fi
 
17564
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17565
         eval result=\$gl_cv_type_${gltype}_suffix
 
17566
         test "$result" != no && break
 
17567
       done
 
17568
fi
 
17569
eval ac_res=\$gl_cv_type_${gltype}_suffix
 
17570
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
17571
$as_echo "$ac_res" >&6; }
 
17572
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
17573
    eval result=\$gl_cv_type_${gltype}_suffix
 
17574
    test "$result" = no && result=
 
17575
    eval ${GLTYPE}_SUFFIX=\$result
 
17576
    cat >>confdefs.h <<_ACEOF
 
17577
#define ${GLTYPE}_SUFFIX $result
 
17578
_ACEOF
 
17579
 
 
17580
  done
 
17581
 
 
17582
 
 
17583
 
 
17584
    STDINT_H=stdint.h
 
17585
  fi
 
17586
 
 
17587
 
 
17588
  # Code from module stdio:
 
17589
 
 
17590
 
 
17591
 
 
17592
 
 
17593
 
 
17594
 
 
17595
 
 
17596
 
 
17597
 
 
17598
 
 
17599
     if test $gl_cv_have_include_next = yes; then
 
17600
       gl_cv_next_stdio_h='<'stdio.h'>'
 
17601
     else
 
17602
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
 
17603
$as_echo_n "checking absolute name of <stdio.h>... " >&6; }
 
17604
if test "${gl_cv_next_stdio_h+set}" = set; then :
 
17605
  $as_echo_n "(cached) " >&6
 
17606
else
 
17607
 
 
17608
          if test $ac_cv_header_stdio_h = yes; then
 
17609
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17610
/* end confdefs.h.  */
 
17611
#include <stdio.h>
 
17612
 
 
17613
_ACEOF
 
17614
                                                                                                case "$host_os" in
 
17615
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
17616
              *)    gl_absname_cpp="$ac_cpp" ;;
 
17617
            esac
 
17618
                                                gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
17619
               sed -n '\#/stdio.h#{
 
17620
                 s#.*"\(.*/stdio.h\)".*#\1#
 
17621
                 s#^/[^/]#//&#
 
17622
                 p
 
17623
                 q
 
17624
               }'`'"'
 
17625
          else
 
17626
            gl_cv_next_stdio_h='<'stdio.h'>'
 
17627
          fi
 
17628
 
 
17629
fi
 
17630
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
 
17631
$as_echo "$gl_cv_next_stdio_h" >&6; }
 
17632
     fi
 
17633
     NEXT_STDIO_H=$gl_cv_next_stdio_h
 
17634
 
 
17635
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
17636
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
17637
       gl_next_as_first_directive='<'stdio.h'>'
 
17638
     else
 
17639
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
17640
       gl_next_as_first_directive=$gl_cv_next_stdio_h
 
17641
     fi
 
17642
     NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
 
17643
 
 
17644
 
 
17645
 
 
17646
      GNULIB_FPRINTF=1
 
17647
  GNULIB_PRINTF=1
 
17648
  GNULIB_VFPRINTF=1
 
17649
  GNULIB_VPRINTF=1
 
17650
  GNULIB_FPUTC=1
 
17651
  GNULIB_PUTC=1
 
17652
  GNULIB_PUTCHAR=1
 
17653
  GNULIB_FPUTS=1
 
17654
  GNULIB_PUTS=1
 
17655
  GNULIB_FWRITE=1
 
17656
 
 
17657
 
 
17658
 
 
17659
    for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat     snprintf tmpfile vdprintf vsnprintf; do
 
17660
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
 
17661
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
 
17662
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
 
17663
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
 
17664
  $as_echo_n "(cached) " >&6
 
17665
else
 
17666
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17667
/* end confdefs.h.  */
 
17668
#include <stdio.h>
 
17669
 
 
17670
int
 
17671
main (void)
 
17672
{
 
17673
#undef $gl_func
 
17674
  (void) $gl_func;
 
17675
  ;
 
17676
  return 0;
 
17677
}
 
17678
_ACEOF
 
17679
if ac_fn_c_try_compile "$LINENO"; then :
 
17680
  eval "$as_gl_Symbol=yes"
 
17681
else
 
17682
  eval "$as_gl_Symbol=no"
 
17683
fi
 
17684
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17685
fi
 
17686
eval ac_res=\$$as_gl_Symbol
 
17687
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
17688
$as_echo "$ac_res" >&6; }
 
17689
     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
 
17690
  cat >>confdefs.h <<_ACEOF
 
17691
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
 
17692
_ACEOF
 
17693
 
 
17694
                     eval ac_cv_have_decl_$gl_func=yes
 
17695
fi
 
17696
      done
 
17697
 
 
17698
 
 
17699
  # Code from module stdlib:
 
17700
 
 
17701
 
 
17702
 
 
17703
 
 
17704
 
 
17705
 
 
17706
 
 
17707
 
 
17708
     if test $gl_cv_have_include_next = yes; then
 
17709
       gl_cv_next_stdlib_h='<'stdlib.h'>'
 
17710
     else
 
17711
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
 
17712
$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
 
17713
if test "${gl_cv_next_stdlib_h+set}" = set; then :
 
17714
  $as_echo_n "(cached) " >&6
 
17715
else
 
17716
 
 
17717
          if test $ac_cv_header_stdlib_h = yes; then
 
17718
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17719
/* end confdefs.h.  */
 
17720
#include <stdlib.h>
 
17721
 
 
17722
_ACEOF
 
17723
                                                                                                case "$host_os" in
 
17724
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
17725
              *)    gl_absname_cpp="$ac_cpp" ;;
 
17726
            esac
 
17727
                                                gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
17728
               sed -n '\#/stdlib.h#{
 
17729
                 s#.*"\(.*/stdlib.h\)".*#\1#
 
17730
                 s#^/[^/]#//&#
 
17731
                 p
 
17732
                 q
 
17733
               }'`'"'
 
17734
          else
 
17735
            gl_cv_next_stdlib_h='<'stdlib.h'>'
 
17736
          fi
 
17737
 
 
17738
fi
 
17739
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
 
17740
$as_echo "$gl_cv_next_stdlib_h" >&6; }
 
17741
     fi
 
17742
     NEXT_STDLIB_H=$gl_cv_next_stdlib_h
 
17743
 
 
17744
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
17745
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
17746
       gl_next_as_first_directive='<'stdlib.h'>'
 
17747
     else
 
17748
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
17749
       gl_next_as_first_directive=$gl_cv_next_stdlib_h
 
17750
     fi
 
17751
     NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
 
17752
 
 
17753
 
 
17754
 
 
17755
  for ac_header in random.h
 
17756
do :
 
17757
  ac_fn_c_check_header_compile "$LINENO" "random.h" "ac_cv_header_random_h" "$ac_includes_default
 
17758
"
 
17759
if test "x$ac_cv_header_random_h" = x""yes; then :
 
17760
  cat >>confdefs.h <<_ACEOF
 
17761
#define HAVE_RANDOM_H 1
 
17762
_ACEOF
 
17763
 
 
17764
fi
 
17765
 
 
17766
done
 
17767
 
 
17768
  if test $ac_cv_header_random_h = yes; then
 
17769
    HAVE_RANDOM_H=1
 
17770
  else
 
17771
    HAVE_RANDOM_H=0
 
17772
  fi
 
17773
 
 
17774
  ac_fn_c_check_type "$LINENO" "struct random_data" "ac_cv_type_struct_random_data" "#include <stdlib.h>
 
17775
      #if HAVE_RANDOM_H
 
17776
      # include <random.h>
 
17777
      #endif
 
17778
 
 
17779
"
 
17780
if test "x$ac_cv_type_struct_random_data" = x""yes; then :
 
17781
 
 
17782
cat >>confdefs.h <<_ACEOF
 
17783
#define HAVE_STRUCT_RANDOM_DATA 1
 
17784
_ACEOF
 
17785
 
 
17786
 
 
17787
else
 
17788
  HAVE_STRUCT_RANDOM_DATA=0
 
17789
fi
 
17790
 
 
17791
 
 
17792
 
 
17793
    for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt mkdtemp     mkostemp mkostemps mkstemp mkstemps ptsname random_r initstat_r srandom_r     setstate_r realpath rpmatch setenv strtod strtoll strtoull unlockpt     unsetenv; do
 
17794
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
 
17795
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
 
17796
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
 
17797
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
 
17798
  $as_echo_n "(cached) " >&6
 
17799
else
 
17800
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17801
/* end confdefs.h.  */
 
17802
#include <stdlib.h>
 
17803
#if HAVE_SYS_LOADAVG_H
 
17804
# include <sys/loadavg.h>
 
17805
#endif
 
17806
#if HAVE_RANDOM_H
 
17807
# include <random.h>
 
17808
#endif
 
17809
 
 
17810
int
 
17811
main (void)
 
17812
{
 
17813
#undef $gl_func
 
17814
  (void) $gl_func;
 
17815
  ;
 
17816
  return 0;
 
17817
}
 
17818
_ACEOF
 
17819
if ac_fn_c_try_compile "$LINENO"; then :
 
17820
  eval "$as_gl_Symbol=yes"
 
17821
else
 
17822
  eval "$as_gl_Symbol=no"
 
17823
fi
 
17824
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17825
fi
 
17826
eval ac_res=\$$as_gl_Symbol
 
17827
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
17828
$as_echo "$ac_res" >&6; }
 
17829
     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
 
17830
  cat >>confdefs.h <<_ACEOF
 
17831
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
 
17832
_ACEOF
 
17833
 
 
17834
                     eval ac_cv_have_decl_$gl_func=yes
 
17835
fi
 
17836
      done
 
17837
 
 
17838
 
 
17839
  # Code from module strcase:
 
17840
 
 
17841
 
 
17842
 
 
17843
 
 
17844
 
 
17845
 
 
17846
 
 
17847
 
 
17848
 
 
17849
 
 
17850
 
 
17851
  for ac_func in strcasecmp
 
17852
do :
 
17853
  ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
 
17854
if test "x$ac_cv_func_strcasecmp" = x""yes; then :
 
17855
  cat >>confdefs.h <<_ACEOF
 
17856
#define HAVE_STRCASECMP 1
 
17857
_ACEOF
 
17858
 
 
17859
else
 
17860
 
 
17861
    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
 
17862
 
 
17863
fi
 
17864
done
 
17865
 
 
17866
 
 
17867
  if test $ac_cv_func_strcasecmp = no; then
 
17868
    HAVE_STRCASECMP=0
 
17869
 
 
17870
  :
 
17871
 
 
17872
  fi
 
17873
 
 
17874
 
 
17875
 
 
17876
 
 
17877
 
 
17878
 
 
17879
 
 
17880
 
 
17881
 
 
17882
 
 
17883
 
 
17884
  for ac_func in strncasecmp
 
17885
do :
 
17886
  ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
 
17887
if test "x$ac_cv_func_strncasecmp" = x""yes; then :
 
17888
  cat >>confdefs.h <<_ACEOF
 
17889
#define HAVE_STRNCASECMP 1
 
17890
_ACEOF
 
17891
 
 
17892
else
 
17893
 
 
17894
    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
 
17895
 
 
17896
fi
 
17897
done
 
17898
 
 
17899
 
 
17900
  if test $ac_cv_func_strncasecmp = no; then
 
17901
 
 
17902
  :
 
17903
 
 
17904
  fi
 
17905
  ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
 
17906
if test "x$ac_cv_have_decl_strncasecmp" = x""yes; then :
 
17907
  ac_have_decl=1
 
17908
else
 
17909
  ac_have_decl=0
 
17910
fi
 
17911
 
 
17912
cat >>confdefs.h <<_ACEOF
 
17913
#define HAVE_DECL_STRNCASECMP $ac_have_decl
 
17914
_ACEOF
 
17915
 
 
17916
  if test $ac_cv_have_decl_strncasecmp = no; then
 
17917
    HAVE_DECL_STRNCASECMP=0
 
17918
  fi
 
17919
 
 
17920
 
 
17921
  # Code from module strchrnul:
 
17922
 
 
17923
 
 
17924
 
 
17925
 
 
17926
 
 
17927
 
 
17928
 
 
17929
 
 
17930
 
 
17931
 
 
17932
 
 
17933
 
 
17934
  for ac_func in strchrnul
 
17935
do :
 
17936
  ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
 
17937
if test "x$ac_cv_func_strchrnul" = x""yes; then :
 
17938
  cat >>confdefs.h <<_ACEOF
 
17939
#define HAVE_STRCHRNUL 1
 
17940
_ACEOF
 
17941
 
 
17942
else
 
17943
 
 
17944
    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
 
17945
 
 
17946
fi
 
17947
done
 
17948
 
 
17949
 
 
17950
  if test $ac_cv_func_strchrnul = no; then
 
17951
    HAVE_STRCHRNUL=0
 
17952
    :
 
17953
  fi
 
17954
 
 
17955
 
 
17956
 
 
17957
 
 
17958
  GNULIB_STRCHRNUL=1
 
17959
 
 
17960
 
 
17961
 
 
17962
$as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
 
17963
 
 
17964
 
 
17965
 
 
17966
  # Code from module streq:
 
17967
  # Code from module strerror:
 
17968
 
 
17969
 
 
17970
  if test $REPLACE_STRERROR = 1; then
 
17971
 
 
17972
 
 
17973
 
 
17974
 
 
17975
 
 
17976
 
 
17977
 
 
17978
 
 
17979
  gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
 
17980
 
 
17981
 
 
17982
cat >>confdefs.h <<_ACEOF
 
17983
#define REPLACE_STRERROR $REPLACE_STRERROR
 
17984
_ACEOF
 
17985
 
 
17986
  fi
 
17987
 
 
17988
 
 
17989
 
 
17990
 
 
17991
  GNULIB_STRERROR=1
 
17992
 
 
17993
 
 
17994
 
 
17995
$as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
 
17996
 
 
17997
 
 
17998
 
 
17999
  # Code from module string:
 
18000
 
 
18001
 
 
18002
 
 
18003
  # Code from module strings:
 
18004
 
 
18005
 
 
18006
 
 
18007
  # Code from module strndup:
 
18008
 
 
18009
 
 
18010
 
 
18011
 
 
18012
 
 
18013
 
 
18014
  if test $ac_cv_have_decl_strndup = no; then
 
18015
    HAVE_DECL_STRNDUP=0
 
18016
  fi
 
18017
 
 
18018
  if test $ac_cv_func_strndup = yes; then
 
18019
    # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
 
18020
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
 
18021
$as_echo_n "checking for working strndup... " >&6; }
 
18022
if test "${gl_cv_func_strndup_works+set}" = set; then :
 
18023
  $as_echo_n "(cached) " >&6
 
18024
else
 
18025
  if test "$cross_compiling" = yes; then :
 
18026
 
 
18027
          case $host_os in
 
18028
            aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
 
18029
            *)               gl_cv_func_strndup_works="guessing yes";;
 
18030
          esac
 
18031
 
 
18032
else
 
18033
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18034
/* end confdefs.h.  */
 
18035
 
 
18036
         #include <string.h>
 
18037
                           #include <stdlib.h>
 
18038
int
 
18039
main (void)
 
18040
{
 
18041
 
 
18042
#ifndef HAVE_DECL_STRNDUP
 
18043
  extern char *strndup (const char *, size_t);
 
18044
#endif
 
18045
  char *s;
 
18046
  s = strndup ("some longer string", 15);
 
18047
  free (s);
 
18048
  s = strndup ("shorter string", 13);
 
18049
  return s[13] != '\0';
 
18050
  ;
 
18051
  return 0;
 
18052
}
 
18053
_ACEOF
 
18054
if ac_fn_c_try_run "$LINENO"; then :
 
18055
  gl_cv_func_strndup_works=yes
 
18056
else
 
18057
  gl_cv_func_strndup_works=no
 
18058
fi
 
18059
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
18060
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
18061
fi
 
18062
 
 
18063
fi
 
18064
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
 
18065
$as_echo "$gl_cv_func_strndup_works" >&6; }
 
18066
    case $gl_cv_func_strndup_works in
 
18067
      *no)
 
18068
        REPLACE_STRNDUP=1
 
18069
 
 
18070
 
 
18071
 
 
18072
 
 
18073
 
 
18074
 
 
18075
 
 
18076
 
 
18077
  gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
 
18078
 
 
18079
        ;;
 
18080
    esac
 
18081
  else
 
18082
 
 
18083
 
 
18084
 
 
18085
 
 
18086
 
 
18087
 
 
18088
 
 
18089
 
 
18090
  gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
 
18091
 
 
18092
  fi
 
18093
 
 
18094
 
 
18095
 
 
18096
 
 
18097
  GNULIB_STRNDUP=1
 
18098
 
 
18099
 
 
18100
 
 
18101
$as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
 
18102
 
 
18103
 
 
18104
 
 
18105
  # Code from module strnlen:
 
18106
 
 
18107
 
 
18108
 
 
18109
 
 
18110
 
 
18111
 
 
18112
  if test $ac_cv_have_decl_strnlen = no; then
 
18113
    HAVE_DECL_STRNLEN=0
 
18114
  else
 
18115
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
 
18116
$as_echo_n "checking for working strnlen... " >&6; }
 
18117
if test "${ac_cv_func_strnlen_working+set}" = set; then :
 
18118
  $as_echo_n "(cached) " >&6
 
18119
else
 
18120
  if test "$cross_compiling" = yes; then :
 
18121
  ac_cv_func_strnlen_working=no
 
18122
else
 
18123
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18124
/* end confdefs.h.  */
 
18125
$ac_includes_default
 
18126
int
 
18127
main (void)
 
18128
{
 
18129
 
 
18130
#define S "foobar"
 
18131
#define S_LEN (sizeof S - 1)
 
18132
 
 
18133
  /* At least one implementation is buggy: that of AIX 4.3 would
 
18134
     give strnlen (S, 1) == 3.  */
 
18135
 
 
18136
  int i;
 
18137
  for (i = 0; i < S_LEN + 1; ++i)
 
18138
    {
 
18139
      int expected = i <= S_LEN ? i : S_LEN;
 
18140
      if (strnlen (S, i) != expected)
 
18141
        return 1;
 
18142
    }
 
18143
  return 0;
 
18144
 
 
18145
  ;
 
18146
  return 0;
 
18147
}
 
18148
_ACEOF
 
18149
if ac_fn_c_try_run "$LINENO"; then :
 
18150
  ac_cv_func_strnlen_working=yes
 
18151
else
 
18152
  ac_cv_func_strnlen_working=no
 
18153
fi
 
18154
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
18155
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
18156
fi
 
18157
 
 
18158
fi
 
18159
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
 
18160
$as_echo "$ac_cv_func_strnlen_working" >&6; }
 
18161
test $ac_cv_func_strnlen_working = no &&
 
18162
 
 
18163
 
 
18164
 
 
18165
 
 
18166
 
 
18167
 
 
18168
 
 
18169
  gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
 
18170
 
 
18171
 
 
18172
        if test $ac_cv_func_strnlen_working = no; then
 
18173
      REPLACE_STRNLEN=1
 
18174
    fi
 
18175
  fi
 
18176
  if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
 
18177
 
 
18178
 
 
18179
 
 
18180
 
 
18181
 
 
18182
 
 
18183
 
 
18184
 
 
18185
  gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
 
18186
 
 
18187
    :
 
18188
  fi
 
18189
 
 
18190
 
 
18191
 
 
18192
 
 
18193
  GNULIB_STRNLEN=1
 
18194
 
 
18195
 
 
18196
 
 
18197
$as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
 
18198
 
 
18199
 
 
18200
 
 
18201
  # Code from module strnlen1:
 
18202
  # Code from module sys_wait:
 
18203
 
 
18204
 
 
18205
 
 
18206
 
 
18207
 
 
18208
 
 
18209
 
 
18210
 
 
18211
 
 
18212
     if test $gl_cv_have_include_next = yes; then
 
18213
       gl_cv_next_sys_wait_h='<'sys/wait.h'>'
 
18214
     else
 
18215
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
 
18216
$as_echo_n "checking absolute name of <sys/wait.h>... " >&6; }
 
18217
if test "${gl_cv_next_sys_wait_h+set}" = set; then :
 
18218
  $as_echo_n "(cached) " >&6
 
18219
else
 
18220
 
 
18221
          if test $ac_cv_header_sys_wait_h = yes; then
 
18222
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18223
/* end confdefs.h.  */
 
18224
#include <sys/wait.h>
 
18225
 
 
18226
_ACEOF
 
18227
                                                                                                case "$host_os" in
 
18228
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
18229
              *)    gl_absname_cpp="$ac_cpp" ;;
 
18230
            esac
 
18231
                                                gl_cv_next_sys_wait_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
18232
               sed -n '\#/sys/wait.h#{
 
18233
                 s#.*"\(.*/sys/wait.h\)".*#\1#
 
18234
                 s#^/[^/]#//&#
 
18235
                 p
 
18236
                 q
 
18237
               }'`'"'
 
18238
          else
 
18239
            gl_cv_next_sys_wait_h='<'sys/wait.h'>'
 
18240
          fi
 
18241
 
 
18242
fi
 
18243
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
 
18244
$as_echo "$gl_cv_next_sys_wait_h" >&6; }
 
18245
     fi
 
18246
     NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
 
18247
 
 
18248
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
18249
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
18250
       gl_next_as_first_directive='<'sys/wait.h'>'
 
18251
     else
 
18252
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
18253
       gl_next_as_first_directive=$gl_cv_next_sys_wait_h
 
18254
     fi
 
18255
     NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
 
18256
 
 
18257
 
 
18258
 
 
18259
 
 
18260
 
 
18261
  # Code from module sysexits:
 
18262
 
 
18263
 
 
18264
  if test $ac_cv_header_sysexits_h = yes; then
 
18265
    HAVE_SYSEXITS_H=1
 
18266
 
 
18267
 
 
18268
 
 
18269
 
 
18270
 
 
18271
 
 
18272
     if test $gl_cv_have_include_next = yes; then
 
18273
       gl_cv_next_sysexits_h='<'sysexits.h'>'
 
18274
     else
 
18275
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sysexits.h>" >&5
 
18276
$as_echo_n "checking absolute name of <sysexits.h>... " >&6; }
 
18277
if test "${gl_cv_next_sysexits_h+set}" = set; then :
 
18278
  $as_echo_n "(cached) " >&6
 
18279
else
 
18280
 
 
18281
          if test $ac_cv_header_sysexits_h = yes; then
 
18282
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18283
/* end confdefs.h.  */
 
18284
#include <sysexits.h>
 
18285
 
 
18286
_ACEOF
 
18287
                                                                                                case "$host_os" in
 
18288
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
18289
              *)    gl_absname_cpp="$ac_cpp" ;;
 
18290
            esac
 
18291
                                                gl_cv_next_sysexits_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
18292
               sed -n '\#/sysexits.h#{
 
18293
                 s#.*"\(.*/sysexits.h\)".*#\1#
 
18294
                 s#^/[^/]#//&#
 
18295
                 p
 
18296
                 q
 
18297
               }'`'"'
 
18298
          else
 
18299
            gl_cv_next_sysexits_h='<'sysexits.h'>'
 
18300
          fi
 
18301
 
 
18302
fi
 
18303
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sysexits_h" >&5
 
18304
$as_echo "$gl_cv_next_sysexits_h" >&6; }
 
18305
     fi
 
18306
     NEXT_SYSEXITS_H=$gl_cv_next_sysexits_h
 
18307
 
 
18308
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
18309
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
18310
       gl_next_as_first_directive='<'sysexits.h'>'
 
18311
     else
 
18312
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
18313
       gl_next_as_first_directive=$gl_cv_next_sysexits_h
 
18314
     fi
 
18315
     NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H=$gl_next_as_first_directive
 
18316
 
 
18317
 
 
18318
 
 
18319
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18320
/* end confdefs.h.  */
 
18321
#include <sysexits.h>
 
18322
int
 
18323
main (void)
 
18324
{
 
18325
switch (0)
 
18326
          {
 
18327
          case EX_OK:
 
18328
          case EX_USAGE:
 
18329
          case EX_DATAERR:
 
18330
          case EX_NOINPUT:
 
18331
          case EX_NOUSER:
 
18332
          case EX_NOHOST:
 
18333
          case EX_UNAVAILABLE:
 
18334
          case EX_SOFTWARE:
 
18335
          case EX_OSERR:
 
18336
          case EX_OSFILE:
 
18337
          case EX_CANTCREAT:
 
18338
          case EX_IOERR:
 
18339
          case EX_TEMPFAIL:
 
18340
          case EX_PROTOCOL:
 
18341
          case EX_NOPERM:
 
18342
          case EX_CONFIG:
 
18343
            break;
 
18344
          }
 
18345
 
 
18346
  ;
 
18347
  return 0;
 
18348
}
 
18349
_ACEOF
 
18350
if ac_fn_c_try_compile "$LINENO"; then :
 
18351
  SYSEXITS_H=
 
18352
else
 
18353
  SYSEXITS_H=sysexits.h
 
18354
fi
 
18355
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18356
  else
 
18357
    HAVE_SYSEXITS_H=0
 
18358
    SYSEXITS_H=sysexits.h
 
18359
  fi
 
18360
 
 
18361
 
 
18362
 
 
18363
  # Code from module unistd:
 
18364
 
 
18365
 
 
18366
 
 
18367
 
 
18368
 
 
18369
 
 
18370
 
 
18371
 
 
18372
 
 
18373
 
 
18374
     if test $gl_cv_have_include_next = yes; then
 
18375
       gl_cv_next_unistd_h='<'unistd.h'>'
 
18376
     else
 
18377
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
 
18378
$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
 
18379
if test "${gl_cv_next_unistd_h+set}" = set; then :
 
18380
  $as_echo_n "(cached) " >&6
 
18381
else
 
18382
 
 
18383
          if test $ac_cv_header_unistd_h = yes; then
 
18384
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18385
/* end confdefs.h.  */
 
18386
#include <unistd.h>
 
18387
 
 
18388
_ACEOF
 
18389
                                                                                                case "$host_os" in
 
18390
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
18391
              *)    gl_absname_cpp="$ac_cpp" ;;
 
18392
            esac
 
18393
                                                gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
18394
               sed -n '\#/unistd.h#{
 
18395
                 s#.*"\(.*/unistd.h\)".*#\1#
 
18396
                 s#^/[^/]#//&#
 
18397
                 p
 
18398
                 q
 
18399
               }'`'"'
 
18400
          else
 
18401
            gl_cv_next_unistd_h='<'unistd.h'>'
 
18402
          fi
 
18403
 
 
18404
fi
 
18405
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
 
18406
$as_echo "$gl_cv_next_unistd_h" >&6; }
 
18407
     fi
 
18408
     NEXT_UNISTD_H=$gl_cv_next_unistd_h
 
18409
 
 
18410
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
18411
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
18412
       gl_next_as_first_directive='<'unistd.h'>'
 
18413
     else
 
18414
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
18415
       gl_next_as_first_directive=$gl_cv_next_unistd_h
 
18416
     fi
 
18417
     NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
 
18418
 
 
18419
 
 
18420
 
 
18421
 
 
18422
 
 
18423
  if test $ac_cv_header_unistd_h = yes; then
 
18424
    HAVE_UNISTD_H=1
 
18425
  else
 
18426
    HAVE_UNISTD_H=0
 
18427
  fi
 
18428
 
 
18429
 
 
18430
 
 
18431
    for gl_func in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat     fsync ftruncate getcwd getdomainname getdtablesize getgroups     gethostname getlogin getlogin_r getpagesize getusershell setusershell     endusershell lchown link linkat lseek pipe2 pread pwrite readlink     readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat     usleep; do
 
18432
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
 
18433
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
 
18434
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
 
18435
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
 
18436
  $as_echo_n "(cached) " >&6
 
18437
else
 
18438
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18439
/* end confdefs.h.  */
 
18440
#include <unistd.h>
 
18441
/* Some systems declare various items in the wrong headers.  */
 
18442
#ifndef __GLIBC__
 
18443
# include <fcntl.h>
 
18444
# include <stdio.h>
 
18445
# include <stdlib.h>
 
18446
# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
 
18447
#  include <io.h>
 
18448
# endif
 
18449
#endif
 
18450
 
 
18451
int
 
18452
main (void)
 
18453
{
 
18454
#undef $gl_func
 
18455
  (void) $gl_func;
 
18456
  ;
 
18457
  return 0;
 
18458
}
 
18459
_ACEOF
 
18460
if ac_fn_c_try_compile "$LINENO"; then :
 
18461
  eval "$as_gl_Symbol=yes"
 
18462
else
 
18463
  eval "$as_gl_Symbol=no"
 
18464
fi
 
18465
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18466
fi
 
18467
eval ac_res=\$$as_gl_Symbol
 
18468
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
18469
$as_echo "$ac_res" >&6; }
 
18470
     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
 
18471
  cat >>confdefs.h <<_ACEOF
 
18472
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
 
18473
_ACEOF
 
18474
 
 
18475
                     eval ac_cv_have_decl_$gl_func=yes
 
18476
fi
 
18477
      done
 
18478
 
 
18479
 
 
18480
  # Code from module vasnprintf:
 
18481
 
 
18482
 
 
18483
  if test $ac_cv_func_vasnprintf = no; then
 
18484
 
 
18485
 
 
18486
 
 
18487
 
 
18488
 
 
18489
 
 
18490
 
 
18491
 
 
18492
 
 
18493
 
 
18494
  gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
 
18495
 
 
18496
 
 
18497
 
 
18498
 
 
18499
 
 
18500
 
 
18501
 
 
18502
 
 
18503
 
 
18504
  gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
 
18505
 
 
18506
 
 
18507
 
 
18508
 
 
18509
 
 
18510
 
 
18511
 
 
18512
 
 
18513
 
 
18514
  gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
 
18515
 
 
18516
 
 
18517
 
 
18518
 
 
18519
 
 
18520
 
 
18521
 
 
18522
 
 
18523
 
 
18524
  gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
 
18525
 
 
18526
  if test $ac_cv_func_vasnprintf = yes; then
 
18527
 
 
18528
$as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
 
18529
 
 
18530
  fi
 
18531
 
 
18532
 
 
18533
 
 
18534
 
 
18535
 
 
18536
 
 
18537
 
 
18538
 
 
18539
 
 
18540
 
 
18541
  ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
 
18542
if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
 
18543
 
 
18544
else
 
18545
 
 
18546
$as_echo "#define ptrdiff_t long" >>confdefs.h
 
18547
 
 
18548
 
 
18549
fi
 
18550
 
 
18551
 
 
18552
 
 
18553
 
 
18554
 
 
18555
 
 
18556
 
 
18557
  fi
 
18558
 
 
18559
  # Code from module verify:
 
18560
  # Code from module vsnprintf:
 
18561
 
 
18562
 
 
18563
  gl_cv_func_vsnprintf_usable=no
 
18564
  for ac_func in vsnprintf
 
18565
do :
 
18566
  ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
 
18567
if test "x$ac_cv_func_vsnprintf" = x""yes; then :
 
18568
  cat >>confdefs.h <<_ACEOF
 
18569
#define HAVE_VSNPRINTF 1
 
18570
_ACEOF
 
18571
 
 
18572
fi
 
18573
done
 
18574
 
 
18575
  if test $ac_cv_func_vsnprintf = yes; then
 
18576
 
 
18577
 
 
18578
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
 
18579
$as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
 
18580
if test "${gl_cv_func_snprintf_size1+set}" = set; then :
 
18581
  $as_echo_n "(cached) " >&6
 
18582
else
 
18583
 
 
18584
      if test "$cross_compiling" = yes; then :
 
18585
  gl_cv_func_snprintf_size1="guessing yes"
 
18586
else
 
18587
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18588
/* end confdefs.h.  */
 
18589
 
 
18590
#include <stdio.h>
 
18591
int main()
 
18592
{
 
18593
  static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
 
18594
  snprintf (buf, 1, "%d", 12345);
 
18595
  return buf[1] != 'E';
 
18596
}
 
18597
_ACEOF
 
18598
if ac_fn_c_try_run "$LINENO"; then :
 
18599
  gl_cv_func_snprintf_size1=yes
 
18600
else
 
18601
  gl_cv_func_snprintf_size1=no
 
18602
fi
 
18603
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
18604
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
18605
fi
 
18606
 
 
18607
 
 
18608
fi
 
18609
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
 
18610
$as_echo "$gl_cv_func_snprintf_size1" >&6; }
 
18611
 
 
18612
    case "$gl_cv_func_snprintf_size1" in
 
18613
      *yes)
 
18614
        gl_cv_func_vsnprintf_usable=yes
 
18615
        ;;
 
18616
    esac
 
18617
  fi
 
18618
  if test $gl_cv_func_vsnprintf_usable = no; then
 
18619
 
 
18620
 
 
18621
 
 
18622
 
 
18623
 
 
18624
 
 
18625
 
 
18626
 
 
18627
 
 
18628
 
 
18629
  gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
 
18630
 
 
18631
  if test $ac_cv_func_vsnprintf = yes; then
 
18632
    REPLACE_VSNPRINTF=1
 
18633
  fi
 
18634
  :
 
18635
 
 
18636
  fi
 
18637
 
 
18638
  if test $ac_cv_have_decl_vsnprintf = no; then
 
18639
    HAVE_DECL_VSNPRINTF=0
 
18640
  fi
 
18641
 
 
18642
 
 
18643
 
 
18644
 
 
18645
  GNULIB_VSNPRINTF=1
 
18646
 
 
18647
 
 
18648
 
 
18649
$as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
 
18650
 
 
18651
 
 
18652
 
 
18653
  # Code from module warn-on-use:
 
18654
  # Code from module wchar:
 
18655
 
 
18656
 
 
18657
 
 
18658
 
 
18659
 
 
18660
 
 
18661
 
 
18662
 
 
18663
 
 
18664
 
 
18665
     if test $gl_cv_have_include_next = yes; then
 
18666
       gl_cv_next_wchar_h='<'wchar.h'>'
 
18667
     else
 
18668
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
 
18669
$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
 
18670
if test "${gl_cv_next_wchar_h+set}" = set; then :
 
18671
  $as_echo_n "(cached) " >&6
 
18672
else
 
18673
 
 
18674
          if test $ac_cv_header_wchar_h = yes; then
 
18675
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18676
/* end confdefs.h.  */
 
18677
#include <wchar.h>
 
18678
 
 
18679
_ACEOF
 
18680
                                                                                                case "$host_os" in
 
18681
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
18682
              *)    gl_absname_cpp="$ac_cpp" ;;
 
18683
            esac
 
18684
                                                gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
18685
               sed -n '\#/wchar.h#{
 
18686
                 s#.*"\(.*/wchar.h\)".*#\1#
 
18687
                 s#^/[^/]#//&#
 
18688
                 p
 
18689
                 q
 
18690
               }'`'"'
 
18691
          else
 
18692
            gl_cv_next_wchar_h='<'wchar.h'>'
 
18693
          fi
 
18694
 
 
18695
fi
 
18696
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
 
18697
$as_echo "$gl_cv_next_wchar_h" >&6; }
 
18698
     fi
 
18699
     NEXT_WCHAR_H=$gl_cv_next_wchar_h
 
18700
 
 
18701
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
18702
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
18703
       gl_next_as_first_directive='<'wchar.h'>'
 
18704
     else
 
18705
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
18706
       gl_next_as_first_directive=$gl_cv_next_wchar_h
 
18707
     fi
 
18708
     NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
 
18709
 
 
18710
 
 
18711
 
 
18712
  if test $ac_cv_header_wchar_h = yes; then
 
18713
    HAVE_WCHAR_H=1
 
18714
  else
 
18715
    HAVE_WCHAR_H=0
 
18716
  fi
 
18717
 
 
18718
 
 
18719
 
 
18720
  if test $gt_cv_c_wint_t = yes; then
 
18721
    HAVE_WINT_T=1
 
18722
  else
 
18723
    HAVE_WINT_T=0
 
18724
  fi
 
18725
 
 
18726
 
 
18727
 
 
18728
    for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb     wcsrtombs wcsnrtombs wcwidth; do
 
18729
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
 
18730
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
 
18731
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
 
18732
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
 
18733
  $as_echo_n "(cached) " >&6
 
18734
else
 
18735
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18736
/* end confdefs.h.  */
 
18737
 
 
18738
/* Some systems require additional headers.  */
 
18739
#ifndef __GLIBC__
 
18740
# include <stddef.h>
 
18741
# include <stdio.h>
 
18742
# include <time.h>
 
18743
#endif
 
18744
#include <wchar.h>
 
18745
 
 
18746
int
 
18747
main (void)
 
18748
{
 
18749
#undef $gl_func
 
18750
  (void) $gl_func;
 
18751
  ;
 
18752
  return 0;
 
18753
}
 
18754
_ACEOF
 
18755
if ac_fn_c_try_compile "$LINENO"; then :
 
18756
  eval "$as_gl_Symbol=yes"
 
18757
else
 
18758
  eval "$as_gl_Symbol=no"
 
18759
fi
 
18760
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18761
fi
 
18762
eval ac_res=\$$as_gl_Symbol
 
18763
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
18764
$as_echo "$ac_res" >&6; }
 
18765
     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
 
18766
  cat >>confdefs.h <<_ACEOF
 
18767
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
 
18768
_ACEOF
 
18769
 
 
18770
                     eval ac_cv_have_decl_$gl_func=yes
 
18771
fi
 
18772
      done
 
18773
 
 
18774
 
 
18775
  # Code from module wcrtomb:
 
18776
 
 
18777
 
 
18778
 
 
18779
 
 
18780
 
 
18781
 
 
18782
 
 
18783
 
 
18784
 
 
18785
 
 
18786
  if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
 
18787
 
 
18788
 
 
18789
 
 
18790
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
 
18791
$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
 
18792
if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
 
18793
  $as_echo_n "(cached) " >&6
 
18794
else
 
18795
 
 
18796
                  case "$host_os" in
 
18797
                     # Guess no on AIX and OSF/1.
 
18798
        aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
 
18799
                     # Guess yes otherwise.
 
18800
        *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
 
18801
      esac
 
18802
      if test $LOCALE_JA != none; then
 
18803
        if test "$cross_compiling" = yes; then :
 
18804
  :
 
18805
else
 
18806
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18807
/* end confdefs.h.  */
 
18808
 
 
18809
#include <locale.h>
 
18810
#include <string.h>
 
18811
#include <wchar.h>
 
18812
int main ()
 
18813
{
 
18814
  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
 
18815
    {
 
18816
      const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
 
18817
      mbstate_t state;
 
18818
      wchar_t wc;
 
18819
 
 
18820
      memset (&state, '\0', sizeof (mbstate_t));
 
18821
      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
 
18822
        if (mbsinit (&state))
 
18823
          return 1;
 
18824
    }
 
18825
  return 0;
 
18826
}
 
18827
_ACEOF
 
18828
if ac_fn_c_try_run "$LINENO"; then :
 
18829
  gl_cv_func_mbrtowc_incomplete_state=yes
 
18830
else
 
18831
  gl_cv_func_mbrtowc_incomplete_state=no
 
18832
fi
 
18833
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
18834
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
18835
fi
 
18836
 
 
18837
      fi
 
18838
 
 
18839
fi
 
18840
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
 
18841
$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
 
18842
 
 
18843
 
 
18844
 
 
18845
 
 
18846
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
 
18847
$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
 
18848
if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
 
18849
  $as_echo_n "(cached) " >&6
 
18850
else
 
18851
 
 
18852
                  case "$host_os" in
 
18853
                    # Guess no on Solaris 8.
 
18854
        solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
 
18855
                    # Guess yes otherwise.
 
18856
        *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
 
18857
      esac
 
18858
      if test $LOCALE_ZH_CN != none; then
 
18859
        if test "$cross_compiling" = yes; then :
 
18860
  :
 
18861
else
 
18862
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18863
/* end confdefs.h.  */
 
18864
 
 
18865
#include <locale.h>
 
18866
#include <stdlib.h>
 
18867
#include <string.h>
 
18868
#include <wchar.h>
 
18869
int main ()
 
18870
{
 
18871
  /* This fails on Solaris 8:
 
18872
     mbrtowc returns 2, and sets wc to 0x00F0.
 
18873
     mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
 
18874
  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
 
18875
    {
 
18876
      char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
 
18877
      mbstate_t state;
 
18878
      wchar_t wc;
 
18879
 
 
18880
      memset (&state, '\0', sizeof (mbstate_t));
 
18881
      if (mbrtowc (&wc, input + 3, 6, &state) != 4
 
18882
          && mbtowc (&wc, input + 3, 6) == 4)
 
18883
        return 1;
 
18884
    }
 
18885
  return 0;
 
18886
}
 
18887
_ACEOF
 
18888
if ac_fn_c_try_run "$LINENO"; then :
 
18889
  gl_cv_func_mbrtowc_sanitycheck=yes
 
18890
else
 
18891
  gl_cv_func_mbrtowc_sanitycheck=no
 
18892
fi
 
18893
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
18894
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
18895
fi
 
18896
 
 
18897
      fi
 
18898
 
 
18899
fi
 
18900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
 
18901
$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
 
18902
 
 
18903
    REPLACE_MBSTATE_T=0
 
18904
    case "$gl_cv_func_mbrtowc_incomplete_state" in
 
18905
      *yes) ;;
 
18906
      *) REPLACE_MBSTATE_T=1 ;;
 
18907
    esac
 
18908
    case "$gl_cv_func_mbrtowc_sanitycheck" in
 
18909
      *yes) ;;
 
18910
      *) REPLACE_MBSTATE_T=1 ;;
 
18911
    esac
 
18912
  else
 
18913
    REPLACE_MBSTATE_T=1
 
18914
  fi
 
18915
  if test $REPLACE_MBSTATE_T = 1; then
 
18916
 
 
18917
    :
 
18918
 
 
18919
  fi
 
18920
 
 
18921
 
 
18922
 
 
18923
  if test $ac_cv_func_wcrtomb = no; then
 
18924
    HAVE_WCRTOMB=0
 
18925
  else
 
18926
    if test $REPLACE_MBSTATE_T = 1; then
 
18927
      REPLACE_WCRTOMB=1
 
18928
    else
 
18929
 
 
18930
 
 
18931
 
 
18932
 
 
18933
 
 
18934
             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
 
18935
$as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
 
18936
if test "${gl_cv_func_wcrtomb_retval+set}" = set; then :
 
18937
  $as_echo_n "(cached) " >&6
 
18938
else
 
18939
 
 
18940
                              case "$host_os" in
 
18941
                                     # Guess no on AIX 4, OSF/1 and Solaris.
 
18942
            aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
 
18943
                                     # Guess yes otherwise.
 
18944
            *)                       gl_cv_func_wcrtomb_retval="guessing yes" ;;
 
18945
          esac
 
18946
          if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
 
18947
            if test "$cross_compiling" = yes; then :
 
18948
  :
 
18949
else
 
18950
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18951
/* end confdefs.h.  */
 
18952
 
 
18953
#include <locale.h>
 
18954
#include <stdio.h>
 
18955
#include <string.h>
 
18956
#include <wchar.h>
 
18957
int main ()
 
18958
{
 
18959
  if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
 
18960
    {
 
18961
      if (wcrtomb (NULL, 0, NULL) != 1)
 
18962
        return 1;
 
18963
    }
 
18964
  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
 
18965
    {
 
18966
      if (wcrtomb (NULL, 0, NULL) != 1)
 
18967
        return 1;
 
18968
    }
 
18969
  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
 
18970
    {
 
18971
      if (wcrtomb (NULL, 0, NULL) != 1)
 
18972
        return 1;
 
18973
    }
 
18974
  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
 
18975
    {
 
18976
      if (wcrtomb (NULL, 0, NULL) != 1)
 
18977
        return 1;
 
18978
    }
 
18979
  return 0;
 
18980
}
 
18981
_ACEOF
 
18982
if ac_fn_c_try_run "$LINENO"; then :
 
18983
  gl_cv_func_wcrtomb_retval=yes
 
18984
else
 
18985
  gl_cv_func_wcrtomb_retval=no
 
18986
fi
 
18987
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
18988
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
18989
fi
 
18990
 
 
18991
          fi
 
18992
 
 
18993
fi
 
18994
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
 
18995
$as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
 
18996
      case "$gl_cv_func_wcrtomb_retval" in
 
18997
        *yes) ;;
 
18998
        *) REPLACE_WCRTOMB=1 ;;
 
18999
      esac
 
19000
    fi
 
19001
  fi
 
19002
  if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
 
19003
 
 
19004
    :
 
19005
 
 
19006
 
 
19007
 
 
19008
 
 
19009
 
 
19010
 
 
19011
 
 
19012
 
 
19013
 
 
19014
  gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
 
19015
 
 
19016
 
 
19017
  :
 
19018
 
 
19019
  fi
 
19020
 
 
19021
 
 
19022
 
 
19023
 
 
19024
  GNULIB_WCRTOMB=1
 
19025
 
 
19026
 
 
19027
 
 
19028
$as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
 
19029
 
 
19030
 
 
19031
 
 
19032
  # Code from module wctype:
 
19033
 
 
19034
 
 
19035
 
 
19036
 
 
19037
  if test $ac_cv_func_iswcntrl = yes; then
 
19038
    HAVE_ISWCNTRL=1
 
19039
  else
 
19040
    HAVE_ISWCNTRL=0
 
19041
  fi
 
19042
 
 
19043
 
 
19044
 
 
19045
  if test $ac_cv_func_iswblank = yes; then
 
19046
    HAVE_ISWBLANK=1
 
19047
    REPLACE_ISWBLANK=0
 
19048
  else
 
19049
    HAVE_ISWBLANK=0
 
19050
    if test $ac_cv_have_decl_iswblank = yes; then
 
19051
      REPLACE_ISWBLANK=1
 
19052
    else
 
19053
      REPLACE_ISWBLANK=0
 
19054
    fi
 
19055
  fi
 
19056
 
 
19057
 
 
19058
 
 
19059
 
 
19060
 
 
19061
 
 
19062
 
 
19063
  if test $gt_cv_c_wint_t = yes; then
 
19064
    HAVE_WINT_T=1
 
19065
  else
 
19066
    HAVE_WINT_T=0
 
19067
  fi
 
19068
 
 
19069
 
 
19070
  if test $ac_cv_header_wctype_h = yes; then
 
19071
    if test $ac_cv_func_iswcntrl = yes; then
 
19072
                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
 
19073
$as_echo_n "checking whether iswcntrl works... " >&6; }
 
19074
if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
 
19075
  $as_echo_n "(cached) " >&6
 
19076
else
 
19077
 
 
19078
          if test "$cross_compiling" = yes; then :
 
19079
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19080
/* end confdefs.h.  */
 
19081
#include <stdlib.h>
 
19082
                          #if __GNU_LIBRARY__ == 1
 
19083
                          Linux libc5 i18n is broken.
 
19084
                          #endif
 
19085
int
 
19086
main (void)
 
19087
{
 
19088
 
 
19089
  ;
 
19090
  return 0;
 
19091
}
 
19092
_ACEOF
 
19093
if ac_fn_c_try_compile "$LINENO"; then :
 
19094
  gl_cv_func_iswcntrl_works=yes
 
19095
else
 
19096
  gl_cv_func_iswcntrl_works=no
 
19097
fi
 
19098
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19099
 
 
19100
else
 
19101
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19102
/* end confdefs.h.  */
 
19103
 
 
19104
                            #include <stddef.h>
 
19105
                            #include <stdio.h>
 
19106
                            #include <time.h>
 
19107
                            #include <wchar.h>
 
19108
                            #include <wctype.h>
 
19109
                            int main () { return iswprint ('x') == 0; }
 
19110
_ACEOF
 
19111
if ac_fn_c_try_run "$LINENO"; then :
 
19112
  gl_cv_func_iswcntrl_works=yes
 
19113
else
 
19114
  gl_cv_func_iswcntrl_works=no
 
19115
fi
 
19116
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
19117
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
19118
fi
 
19119
 
 
19120
 
 
19121
fi
 
19122
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
 
19123
$as_echo "$gl_cv_func_iswcntrl_works" >&6; }
 
19124
    fi
 
19125
 
 
19126
 
 
19127
 
 
19128
 
 
19129
 
 
19130
 
 
19131
     if test $gl_cv_have_include_next = yes; then
 
19132
       gl_cv_next_wctype_h='<'wctype.h'>'
 
19133
     else
 
19134
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
 
19135
$as_echo_n "checking absolute name of <wctype.h>... " >&6; }
 
19136
if test "${gl_cv_next_wctype_h+set}" = set; then :
 
19137
  $as_echo_n "(cached) " >&6
 
19138
else
 
19139
 
 
19140
          if test $ac_cv_header_wctype_h = yes; then
 
19141
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19142
/* end confdefs.h.  */
 
19143
#include <wctype.h>
 
19144
 
 
19145
_ACEOF
 
19146
                                                                                                case "$host_os" in
 
19147
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
19148
              *)    gl_absname_cpp="$ac_cpp" ;;
 
19149
            esac
 
19150
                                                gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
19151
               sed -n '\#/wctype.h#{
 
19152
                 s#.*"\(.*/wctype.h\)".*#\1#
 
19153
                 s#^/[^/]#//&#
 
19154
                 p
 
19155
                 q
 
19156
               }'`'"'
 
19157
          else
 
19158
            gl_cv_next_wctype_h='<'wctype.h'>'
 
19159
          fi
 
19160
 
 
19161
fi
 
19162
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
 
19163
$as_echo "$gl_cv_next_wctype_h" >&6; }
 
19164
     fi
 
19165
     NEXT_WCTYPE_H=$gl_cv_next_wctype_h
 
19166
 
 
19167
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
19168
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
19169
       gl_next_as_first_directive='<'wctype.h'>'
 
19170
     else
 
19171
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
19172
       gl_next_as_first_directive=$gl_cv_next_wctype_h
 
19173
     fi
 
19174
     NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
 
19175
 
 
19176
 
 
19177
 
 
19178
    HAVE_WCTYPE_H=1
 
19179
  else
 
19180
    HAVE_WCTYPE_H=0
 
19181
  fi
 
19182
 
 
19183
 
 
19184
  if test "$gl_cv_func_iswcntrl_works" = no; then
 
19185
    REPLACE_ISWCNTRL=1
 
19186
  else
 
19187
    REPLACE_ISWCNTRL=0
 
19188
  fi
 
19189
 
 
19190
 
 
19191
  # Code from module xsize:
 
19192
 
 
19193
 
 
19194
 
 
19195
  for ac_header in stdint.h
 
19196
do :
 
19197
  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
 
19198
if test "x$ac_cv_header_stdint_h" = x""yes; then :
 
19199
  cat >>confdefs.h <<_ACEOF
 
19200
#define HAVE_STDINT_H 1
 
19201
_ACEOF
 
19202
 
 
19203
fi
 
19204
 
 
19205
done
 
19206
 
 
19207
 
 
19208
  # End of code from modules
 
19209
 
 
19210
 
 
19211
 
 
19212
 
 
19213
 
 
19214
 
 
19215
 
 
19216
 
 
19217
 
 
19218
  gltests_libdeps=
 
19219
  gltests_ltlibdeps=
 
19220
 
 
19221
 
 
19222
 
 
19223
 
 
19224
 
 
19225
 
 
19226
 
 
19227
 
 
19228
 
 
19229
  gl_source_base='tests'
 
19230
  gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
 
19231
 
 
19232
  gl_module_indicator_condition=$gltests_WITNESS
 
19233
 
 
19234
 
 
19235
 
 
19236
 
 
19237
 
 
19238
 
 
19239
 
 
19240
 
 
19241
 
 
19242
  LIBGNU_LIBDEPS="$gl_libdeps"
 
19243
 
 
19244
  LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
 
19245
 
 
19246
 
 
19247
 
 
19248
#
 
19249
# Check for target programs.
 
19250
#
 
19251
 
 
19252
# Find tools for the target.
 
19253
if test "x$target_alias" != x && test "x$host_alias" != "x$target_alias"; then
 
19254
  tmp_ac_tool_prefix="$ac_tool_prefix"
 
19255
  ac_tool_prefix=$target_alias-
 
19256
 
 
19257
  if test -n "$ac_tool_prefix"; then
 
19258
  for ac_prog in gcc egcs cc
 
19259
  do
 
19260
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
19261
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
19262
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19263
$as_echo_n "checking for $ac_word... " >&6; }
 
19264
if test "${ac_cv_prog_TARGET_CC+set}" = set; then :
 
19265
  $as_echo_n "(cached) " >&6
 
19266
else
 
19267
  if test -n "$TARGET_CC"; then
 
19268
  ac_cv_prog_TARGET_CC="$TARGET_CC" # Let the user override the test.
 
19269
else
 
19270
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19271
for as_dir in $PATH
 
19272
do
 
19273
  IFS=$as_save_IFS
 
19274
  test -z "$as_dir" && as_dir=.
 
19275
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19276
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19277
    ac_cv_prog_TARGET_CC="$ac_tool_prefix$ac_prog"
 
19278
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19279
    break 2
 
19280
  fi
 
19281
done
 
19282
  done
 
19283
IFS=$as_save_IFS
 
19284
 
 
19285
fi
 
19286
fi
 
19287
TARGET_CC=$ac_cv_prog_TARGET_CC
 
19288
if test -n "$TARGET_CC"; then
 
19289
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_CC" >&5
 
19290
$as_echo "$TARGET_CC" >&6; }
 
19291
else
 
19292
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19293
$as_echo "no" >&6; }
 
19294
fi
 
19295
 
 
19296
 
 
19297
    test -n "$TARGET_CC" && break
 
19298
  done
 
19299
fi
 
19300
if test -z "$TARGET_CC"; then
 
19301
  ac_ct_TARGET_CC=$TARGET_CC
 
19302
  for ac_prog in gcc egcs cc
 
19303
do
 
19304
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
19305
set dummy $ac_prog; ac_word=$2
 
19306
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19307
$as_echo_n "checking for $ac_word... " >&6; }
 
19308
if test "${ac_cv_prog_ac_ct_TARGET_CC+set}" = set; then :
 
19309
  $as_echo_n "(cached) " >&6
 
19310
else
 
19311
  if test -n "$ac_ct_TARGET_CC"; then
 
19312
  ac_cv_prog_ac_ct_TARGET_CC="$ac_ct_TARGET_CC" # Let the user override the test.
 
19313
else
 
19314
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19315
for as_dir in $PATH
 
19316
do
 
19317
  IFS=$as_save_IFS
 
19318
  test -z "$as_dir" && as_dir=.
 
19319
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19320
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19321
    ac_cv_prog_ac_ct_TARGET_CC="$ac_prog"
 
19322
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19323
    break 2
 
19324
  fi
 
19325
done
 
19326
  done
 
19327
IFS=$as_save_IFS
 
19328
 
 
19329
fi
 
19330
fi
 
19331
ac_ct_TARGET_CC=$ac_cv_prog_ac_ct_TARGET_CC
 
19332
if test -n "$ac_ct_TARGET_CC"; then
 
19333
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_CC" >&5
 
19334
$as_echo "$ac_ct_TARGET_CC" >&6; }
 
19335
else
 
19336
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19337
$as_echo "no" >&6; }
 
19338
fi
 
19339
 
 
19340
 
 
19341
  test -n "$ac_ct_TARGET_CC" && break
 
19342
done
 
19343
 
 
19344
  if test "x$ac_ct_TARGET_CC" = x; then
 
19345
    TARGET_CC="as_fn_error $? "none of gcc, egcs and cc is found. set TARGET_CC manually." "$LINENO" 5 "
 
19346
  else
 
19347
    case $cross_compiling:$ac_tool_warned in
 
19348
yes:)
 
19349
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
19350
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
19351
ac_tool_warned=yes ;;
 
19352
esac
 
19353
    TARGET_CC=$ac_ct_TARGET_CC
 
19354
  fi
 
19355
fi
 
19356
 
 
19357
  if test -n "$ac_tool_prefix"; then
 
19358
  # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
 
19359
set dummy ${ac_tool_prefix}objcopy; ac_word=$2
 
19360
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19361
$as_echo_n "checking for $ac_word... " >&6; }
 
19362
if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
 
19363
  $as_echo_n "(cached) " >&6
 
19364
else
 
19365
  if test -n "$OBJCOPY"; then
 
19366
  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
 
19367
else
 
19368
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19369
for as_dir in $PATH
 
19370
do
 
19371
  IFS=$as_save_IFS
 
19372
  test -z "$as_dir" && as_dir=.
 
19373
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19374
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19375
    ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
 
19376
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19377
    break 2
 
19378
  fi
 
19379
done
 
19380
  done
 
19381
IFS=$as_save_IFS
 
19382
 
 
19383
fi
 
19384
fi
 
19385
OBJCOPY=$ac_cv_prog_OBJCOPY
 
19386
if test -n "$OBJCOPY"; then
 
19387
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
 
19388
$as_echo "$OBJCOPY" >&6; }
 
19389
else
 
19390
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19391
$as_echo "no" >&6; }
 
19392
fi
 
19393
 
 
19394
 
 
19395
fi
 
19396
if test -z "$ac_cv_prog_OBJCOPY"; then
 
19397
  ac_ct_OBJCOPY=$OBJCOPY
 
19398
  # Extract the first word of "objcopy", so it can be a program name with args.
 
19399
set dummy objcopy; ac_word=$2
 
19400
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19401
$as_echo_n "checking for $ac_word... " >&6; }
 
19402
if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
 
19403
  $as_echo_n "(cached) " >&6
 
19404
else
 
19405
  if test -n "$ac_ct_OBJCOPY"; then
 
19406
  ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
 
19407
else
 
19408
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19409
for as_dir in $PATH
 
19410
do
 
19411
  IFS=$as_save_IFS
 
19412
  test -z "$as_dir" && as_dir=.
 
19413
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19414
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19415
    ac_cv_prog_ac_ct_OBJCOPY="objcopy"
 
19416
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19417
    break 2
 
19418
  fi
 
19419
done
 
19420
  done
 
19421
IFS=$as_save_IFS
 
19422
 
 
19423
fi
 
19424
fi
 
19425
ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
 
19426
if test -n "$ac_ct_OBJCOPY"; then
 
19427
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
 
19428
$as_echo "$ac_ct_OBJCOPY" >&6; }
 
19429
else
 
19430
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19431
$as_echo "no" >&6; }
 
19432
fi
 
19433
 
 
19434
  if test "x$ac_ct_OBJCOPY" = x; then
 
19435
    OBJCOPY=""
 
19436
  else
 
19437
    case $cross_compiling:$ac_tool_warned in
 
19438
yes:)
 
19439
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
19440
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
19441
ac_tool_warned=yes ;;
 
19442
esac
 
19443
    OBJCOPY=$ac_ct_OBJCOPY
 
19444
  fi
 
19445
else
 
19446
  OBJCOPY="$ac_cv_prog_OBJCOPY"
 
19447
fi
 
19448
 
 
19449
  if test -n "$ac_tool_prefix"; then
 
19450
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
19451
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
19452
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19453
$as_echo_n "checking for $ac_word... " >&6; }
 
19454
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
19455
  $as_echo_n "(cached) " >&6
 
19456
else
 
19457
  if test -n "$STRIP"; then
 
19458
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
19459
else
 
19460
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19461
for as_dir in $PATH
 
19462
do
 
19463
  IFS=$as_save_IFS
 
19464
  test -z "$as_dir" && as_dir=.
 
19465
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19466
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19467
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
19468
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19469
    break 2
 
19470
  fi
 
19471
done
 
19472
  done
 
19473
IFS=$as_save_IFS
 
19474
 
 
19475
fi
 
19476
fi
 
19477
STRIP=$ac_cv_prog_STRIP
 
19478
if test -n "$STRIP"; then
 
19479
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
19480
$as_echo "$STRIP" >&6; }
 
19481
else
 
19482
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19483
$as_echo "no" >&6; }
 
19484
fi
 
19485
 
 
19486
 
 
19487
fi
 
19488
if test -z "$ac_cv_prog_STRIP"; then
 
19489
  ac_ct_STRIP=$STRIP
 
19490
  # Extract the first word of "strip", so it can be a program name with args.
 
19491
set dummy strip; ac_word=$2
 
19492
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19493
$as_echo_n "checking for $ac_word... " >&6; }
 
19494
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
19495
  $as_echo_n "(cached) " >&6
 
19496
else
 
19497
  if test -n "$ac_ct_STRIP"; then
 
19498
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
19499
else
 
19500
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19501
for as_dir in $PATH
 
19502
do
 
19503
  IFS=$as_save_IFS
 
19504
  test -z "$as_dir" && as_dir=.
 
19505
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19506
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19507
    ac_cv_prog_ac_ct_STRIP="strip"
 
19508
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19509
    break 2
 
19510
  fi
 
19511
done
 
19512
  done
 
19513
IFS=$as_save_IFS
 
19514
 
 
19515
fi
 
19516
fi
 
19517
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
19518
if test -n "$ac_ct_STRIP"; then
 
19519
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
19520
$as_echo "$ac_ct_STRIP" >&6; }
 
19521
else
 
19522
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19523
$as_echo "no" >&6; }
 
19524
fi
 
19525
 
 
19526
  if test "x$ac_ct_STRIP" = x; then
 
19527
    STRIP=""
 
19528
  else
 
19529
    case $cross_compiling:$ac_tool_warned in
 
19530
yes:)
 
19531
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
19532
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
19533
ac_tool_warned=yes ;;
 
19534
esac
 
19535
    STRIP=$ac_ct_STRIP
 
19536
  fi
 
19537
else
 
19538
  STRIP="$ac_cv_prog_STRIP"
 
19539
fi
 
19540
 
 
19541
  if test -n "$ac_tool_prefix"; then
 
19542
  # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
 
19543
set dummy ${ac_tool_prefix}nm; ac_word=$2
 
19544
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19545
$as_echo_n "checking for $ac_word... " >&6; }
 
19546
if test "${ac_cv_prog_NM+set}" = set; then :
 
19547
  $as_echo_n "(cached) " >&6
 
19548
else
 
19549
  if test -n "$NM"; then
 
19550
  ac_cv_prog_NM="$NM" # Let the user override the test.
 
19551
else
 
19552
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19553
for as_dir in $PATH
 
19554
do
 
19555
  IFS=$as_save_IFS
 
19556
  test -z "$as_dir" && as_dir=.
 
19557
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19558
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19559
    ac_cv_prog_NM="${ac_tool_prefix}nm"
 
19560
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19561
    break 2
 
19562
  fi
 
19563
done
 
19564
  done
 
19565
IFS=$as_save_IFS
 
19566
 
 
19567
fi
 
19568
fi
 
19569
NM=$ac_cv_prog_NM
 
19570
if test -n "$NM"; then
 
19571
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
 
19572
$as_echo "$NM" >&6; }
 
19573
else
 
19574
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19575
$as_echo "no" >&6; }
 
19576
fi
 
19577
 
 
19578
 
 
19579
fi
 
19580
if test -z "$ac_cv_prog_NM"; then
 
19581
  ac_ct_NM=$NM
 
19582
  # Extract the first word of "nm", so it can be a program name with args.
 
19583
set dummy nm; ac_word=$2
 
19584
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19585
$as_echo_n "checking for $ac_word... " >&6; }
 
19586
if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
 
19587
  $as_echo_n "(cached) " >&6
 
19588
else
 
19589
  if test -n "$ac_ct_NM"; then
 
19590
  ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
 
19591
else
 
19592
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19593
for as_dir in $PATH
 
19594
do
 
19595
  IFS=$as_save_IFS
 
19596
  test -z "$as_dir" && as_dir=.
 
19597
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19598
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19599
    ac_cv_prog_ac_ct_NM="nm"
 
19600
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19601
    break 2
 
19602
  fi
 
19603
done
 
19604
  done
 
19605
IFS=$as_save_IFS
 
19606
 
 
19607
fi
 
19608
fi
 
19609
ac_ct_NM=$ac_cv_prog_ac_ct_NM
 
19610
if test -n "$ac_ct_NM"; then
 
19611
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
 
19612
$as_echo "$ac_ct_NM" >&6; }
 
19613
else
 
19614
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19615
$as_echo "no" >&6; }
 
19616
fi
 
19617
 
 
19618
  if test "x$ac_ct_NM" = x; then
 
19619
    NM=""
 
19620
  else
 
19621
    case $cross_compiling:$ac_tool_warned in
 
19622
yes:)
 
19623
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
19624
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
19625
ac_tool_warned=yes ;;
 
19626
esac
 
19627
    NM=$ac_ct_NM
 
19628
  fi
 
19629
else
 
19630
  NM="$ac_cv_prog_NM"
 
19631
fi
 
19632
 
 
19633
 
 
19634
  ac_tool_prefix="$tmp_ac_tool_prefix"
 
19635
else
 
19636
  if test "x$TARGET_CC" = x; then
 
19637
    TARGET_CC=$CC
 
19638
  fi
 
19639
  if test -n "$ac_tool_prefix"; then
 
19640
  # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
 
19641
set dummy ${ac_tool_prefix}objcopy; ac_word=$2
 
19642
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19643
$as_echo_n "checking for $ac_word... " >&6; }
 
19644
if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
 
19645
  $as_echo_n "(cached) " >&6
 
19646
else
 
19647
  if test -n "$OBJCOPY"; then
 
19648
  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
 
19649
else
 
19650
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19651
for as_dir in $PATH
 
19652
do
 
19653
  IFS=$as_save_IFS
 
19654
  test -z "$as_dir" && as_dir=.
 
19655
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19656
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19657
    ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
 
19658
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19659
    break 2
 
19660
  fi
 
19661
done
 
19662
  done
 
19663
IFS=$as_save_IFS
 
19664
 
 
19665
fi
 
19666
fi
 
19667
OBJCOPY=$ac_cv_prog_OBJCOPY
 
19668
if test -n "$OBJCOPY"; then
 
19669
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
 
19670
$as_echo "$OBJCOPY" >&6; }
 
19671
else
 
19672
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19673
$as_echo "no" >&6; }
 
19674
fi
 
19675
 
 
19676
 
 
19677
fi
 
19678
if test -z "$ac_cv_prog_OBJCOPY"; then
 
19679
  ac_ct_OBJCOPY=$OBJCOPY
 
19680
  # Extract the first word of "objcopy", so it can be a program name with args.
 
19681
set dummy objcopy; ac_word=$2
 
19682
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19683
$as_echo_n "checking for $ac_word... " >&6; }
 
19684
if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
 
19685
  $as_echo_n "(cached) " >&6
 
19686
else
 
19687
  if test -n "$ac_ct_OBJCOPY"; then
 
19688
  ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
 
19689
else
 
19690
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19691
for as_dir in $PATH
 
19692
do
 
19693
  IFS=$as_save_IFS
 
19694
  test -z "$as_dir" && as_dir=.
 
19695
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19696
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19697
    ac_cv_prog_ac_ct_OBJCOPY="objcopy"
 
19698
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19699
    break 2
 
19700
  fi
 
19701
done
 
19702
  done
 
19703
IFS=$as_save_IFS
 
19704
 
 
19705
fi
 
19706
fi
 
19707
ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
 
19708
if test -n "$ac_ct_OBJCOPY"; then
 
19709
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
 
19710
$as_echo "$ac_ct_OBJCOPY" >&6; }
 
19711
else
 
19712
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19713
$as_echo "no" >&6; }
 
19714
fi
 
19715
 
 
19716
  if test "x$ac_ct_OBJCOPY" = x; then
 
19717
    OBJCOPY=""
 
19718
  else
 
19719
    case $cross_compiling:$ac_tool_warned in
 
19720
yes:)
 
19721
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
19722
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
19723
ac_tool_warned=yes ;;
 
19724
esac
 
19725
    OBJCOPY=$ac_ct_OBJCOPY
 
19726
  fi
 
19727
else
 
19728
  OBJCOPY="$ac_cv_prog_OBJCOPY"
 
19729
fi
 
19730
 
 
19731
  if test -n "$ac_tool_prefix"; then
 
19732
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
19733
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
19734
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19735
$as_echo_n "checking for $ac_word... " >&6; }
 
19736
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
19737
  $as_echo_n "(cached) " >&6
 
19738
else
 
19739
  if test -n "$STRIP"; then
 
19740
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
19741
else
 
19742
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19743
for as_dir in $PATH
 
19744
do
 
19745
  IFS=$as_save_IFS
 
19746
  test -z "$as_dir" && as_dir=.
 
19747
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19748
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19749
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
19750
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19751
    break 2
 
19752
  fi
 
19753
done
 
19754
  done
 
19755
IFS=$as_save_IFS
 
19756
 
 
19757
fi
 
19758
fi
 
19759
STRIP=$ac_cv_prog_STRIP
 
19760
if test -n "$STRIP"; then
 
19761
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
19762
$as_echo "$STRIP" >&6; }
 
19763
else
 
19764
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19765
$as_echo "no" >&6; }
 
19766
fi
 
19767
 
 
19768
 
 
19769
fi
 
19770
if test -z "$ac_cv_prog_STRIP"; then
 
19771
  ac_ct_STRIP=$STRIP
 
19772
  # Extract the first word of "strip", so it can be a program name with args.
 
19773
set dummy strip; ac_word=$2
 
19774
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19775
$as_echo_n "checking for $ac_word... " >&6; }
 
19776
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
19777
  $as_echo_n "(cached) " >&6
 
19778
else
 
19779
  if test -n "$ac_ct_STRIP"; then
 
19780
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
19781
else
 
19782
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19783
for as_dir in $PATH
 
19784
do
 
19785
  IFS=$as_save_IFS
 
19786
  test -z "$as_dir" && as_dir=.
 
19787
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19788
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19789
    ac_cv_prog_ac_ct_STRIP="strip"
 
19790
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19791
    break 2
 
19792
  fi
 
19793
done
 
19794
  done
 
19795
IFS=$as_save_IFS
 
19796
 
 
19797
fi
 
19798
fi
 
19799
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
19800
if test -n "$ac_ct_STRIP"; then
 
19801
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
19802
$as_echo "$ac_ct_STRIP" >&6; }
 
19803
else
 
19804
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19805
$as_echo "no" >&6; }
 
19806
fi
 
19807
 
 
19808
  if test "x$ac_ct_STRIP" = x; then
 
19809
    STRIP=""
 
19810
  else
 
19811
    case $cross_compiling:$ac_tool_warned in
 
19812
yes:)
 
19813
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
19814
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
19815
ac_tool_warned=yes ;;
 
19816
esac
 
19817
    STRIP=$ac_ct_STRIP
 
19818
  fi
 
19819
else
 
19820
  STRIP="$ac_cv_prog_STRIP"
 
19821
fi
 
19822
 
 
19823
  if test -n "$ac_tool_prefix"; then
 
19824
  # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
 
19825
set dummy ${ac_tool_prefix}nm; ac_word=$2
 
19826
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19827
$as_echo_n "checking for $ac_word... " >&6; }
 
19828
if test "${ac_cv_prog_NM+set}" = set; then :
 
19829
  $as_echo_n "(cached) " >&6
 
19830
else
 
19831
  if test -n "$NM"; then
 
19832
  ac_cv_prog_NM="$NM" # Let the user override the test.
 
19833
else
 
19834
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19835
for as_dir in $PATH
 
19836
do
 
19837
  IFS=$as_save_IFS
 
19838
  test -z "$as_dir" && as_dir=.
 
19839
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19840
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19841
    ac_cv_prog_NM="${ac_tool_prefix}nm"
 
19842
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19843
    break 2
 
19844
  fi
 
19845
done
 
19846
  done
 
19847
IFS=$as_save_IFS
 
19848
 
 
19849
fi
 
19850
fi
 
19851
NM=$ac_cv_prog_NM
 
19852
if test -n "$NM"; then
 
19853
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
 
19854
$as_echo "$NM" >&6; }
 
19855
else
 
19856
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19857
$as_echo "no" >&6; }
 
19858
fi
 
19859
 
 
19860
 
 
19861
fi
 
19862
if test -z "$ac_cv_prog_NM"; then
 
19863
  ac_ct_NM=$NM
 
19864
  # Extract the first word of "nm", so it can be a program name with args.
 
19865
set dummy nm; ac_word=$2
 
19866
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19867
$as_echo_n "checking for $ac_word... " >&6; }
 
19868
if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
 
19869
  $as_echo_n "(cached) " >&6
 
19870
else
 
19871
  if test -n "$ac_ct_NM"; then
 
19872
  ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
 
19873
else
 
19874
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19875
for as_dir in $PATH
 
19876
do
 
19877
  IFS=$as_save_IFS
 
19878
  test -z "$as_dir" && as_dir=.
 
19879
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19880
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19881
    ac_cv_prog_ac_ct_NM="nm"
 
19882
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19883
    break 2
 
19884
  fi
 
19885
done
 
19886
  done
 
19887
IFS=$as_save_IFS
 
19888
 
 
19889
fi
 
19890
fi
 
19891
ac_ct_NM=$ac_cv_prog_ac_ct_NM
 
19892
if test -n "$ac_ct_NM"; then
 
19893
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
 
19894
$as_echo "$ac_ct_NM" >&6; }
 
19895
else
 
19896
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19897
$as_echo "no" >&6; }
 
19898
fi
 
19899
 
 
19900
  if test "x$ac_ct_NM" = x; then
 
19901
    NM=""
 
19902
  else
 
19903
    case $cross_compiling:$ac_tool_warned in
 
19904
yes:)
 
19905
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
19906
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
19907
ac_tool_warned=yes ;;
 
19908
esac
 
19909
    NM=$ac_ct_NM
 
19910
  fi
 
19911
else
 
19912
  NM="$ac_cv_prog_NM"
 
19913
fi
 
19914
 
 
19915
fi
 
19916
 
 
19917
 
 
19918
 
 
19919
 
 
19920
# Test the C compiler for the target environment.
 
19921
tmp_CC="$CC"
 
19922
tmp_CFLAGS="$CFLAGS"
 
19923
tmp_LDFLAGS="$LDFLAGS"
 
19924
tmp_CPPFLAGS="$CPPFLAGS"
 
19925
tmp_LIBS="$LIBS"
 
19926
CC="$TARGET_CC"
 
19927
CFLAGS="$TARGET_CFLAGS"
 
19928
CPPFLAGS="$TARGET_CPPFLAGS"
 
19929
LDFLAGS="$TARGET_LDFLAGS"
 
19930
LIBS=""
 
19931
 
 
19932
# debug flags.
 
19933
TARGET_CFLAGS="$TARGET_CFLAGS -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g"
 
19934
TARGET_CCASFLAGS="$TARGET_CCASFLAGS -g"
 
19935
 
 
19936
# Force no alignment to save space on i386.
 
19937
if test "x$target_cpu" = xi386; then
 
19938
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -falign-loops works" >&5
 
19939
$as_echo_n "checking whether -falign-loops works... " >&6; }
 
19940
if test "${grub_cv_cc_falign_loop+set}" = set; then :
 
19941
  $as_echo_n "(cached) " >&6
 
19942
else
 
19943
 
 
19944
    CFLAGS="$CFLAGS -falign-loops=1"
 
19945
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19946
/* end confdefs.h.  */
 
19947
 
 
19948
int
 
19949
main (void)
 
19950
{
 
19951
 
 
19952
  ;
 
19953
  return 0;
 
19954
}
 
19955
_ACEOF
 
19956
if ac_fn_c_try_compile "$LINENO"; then :
 
19957
  grub_cv_cc_falign_loop=yes
 
19958
else
 
19959
  grub_cv_cc_falign_loop=no
 
19960
fi
 
19961
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19962
 
 
19963
fi
 
19964
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_falign_loop" >&5
 
19965
$as_echo "$grub_cv_cc_falign_loop" >&6; }
 
19966
 
 
19967
  if test "x$grub_cv_cc_falign_loop" = xyes; then
 
19968
    TARGET_CFLAGS="$TARGET_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
 
19969
  else
 
19970
    TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
 
19971
  fi
 
19972
 
 
19973
  # Some toolchains enable these features by default, but they need
 
19974
  # registers that aren't set up properly in GRUB.
 
19975
  TARGET_CFLAGS="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-3dnow"
 
19976
fi
 
19977
 
 
19978
# By default, GCC 4.4 generates .eh_frame sections containing unwind
 
19979
# information in some cases where it previously did not. GRUB doesn't need
 
19980
# these and they just use up vital space. Restore the old compiler
 
19981
# behaviour.
 
19982
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fno-dwarf2-cfi-asm works" >&5
 
19983
$as_echo_n "checking whether -fno-dwarf2-cfi-asm works... " >&6; }
 
19984
if test "${grub_cv_cc_fno_dwarf2_cfi_asm+set}" = set; then :
 
19985
  $as_echo_n "(cached) " >&6
 
19986
else
 
19987
 
 
19988
  SAVE_CFLAGS="$CFLAGS"
 
19989
  CFLAGS="$CFLAGS -fno-dwarf2-cfi-asm"
 
19990
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19991
/* end confdefs.h.  */
 
19992
 
 
19993
int
 
19994
main (void)
 
19995
{
 
19996
 
 
19997
  ;
 
19998
  return 0;
 
19999
}
 
20000
_ACEOF
 
20001
if ac_fn_c_try_compile "$LINENO"; then :
 
20002
  grub_cv_cc_fno_dwarf2_cfi_asm=yes
 
20003
else
 
20004
  grub_cv_cc_fno_dwarf2_cfi_asm=no
 
20005
fi
 
20006
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20007
  CFLAGS="$SAVE_CFLAGS"
 
20008
 
 
20009
fi
 
20010
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_fno_dwarf2_cfi_asm" >&5
 
20011
$as_echo "$grub_cv_cc_fno_dwarf2_cfi_asm" >&6; }
 
20012
 
 
20013
if test "x$grub_cv_cc_fno_dwarf2_cfi_asm" = xyes; then
 
20014
  TARGET_CFLAGS="$TARGET_CFLAGS -fno-dwarf2-cfi-asm"
 
20015
fi
 
20016
 
 
20017
if test "${target_cpu}-${platform}" = mips-yeeloong; then
 
20018
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -march=loongson2f works" >&5
 
20019
$as_echo_n "checking whether -march=loongson2f works... " >&6; }
 
20020
if test "${grub_cv_cc_march_loongson2f+set}" = set; then :
 
20021
  $as_echo_n "(cached) " >&6
 
20022
else
 
20023
 
 
20024
    SAVE_CFLAGS="$CFLAGS"
 
20025
    CFLAGS="$CFLAGS -march=loongson2f"
 
20026
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20027
/* end confdefs.h.  */
 
20028
 
 
20029
int
 
20030
main (void)
 
20031
{
 
20032
 
 
20033
  ;
 
20034
  return 0;
 
20035
}
 
20036
_ACEOF
 
20037
if ac_fn_c_try_compile "$LINENO"; then :
 
20038
  grub_cv_cc_march_loongson2f=yes
 
20039
else
 
20040
  grub_cv_cc_march_loongson2f=no
 
20041
fi
 
20042
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20043
    CFLAGS="$SAVE_CFLAGS"
 
20044
 
 
20045
fi
 
20046
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_march_loongson2f" >&5
 
20047
$as_echo "$grub_cv_cc_march_loongson2f" >&6; }
 
20048
 
 
20049
  if test "x$grub_cv_cc_march_loongson2f" = xyes; then
 
20050
    TARGET_CFLAGS="$TARGET_CFLAGS -march=loongson2f"
 
20051
  else
 
20052
    TARGET_CFLAGS="$TARGET_CFLAGS -march=mips3"
 
20053
  fi
 
20054
fi
 
20055
 
 
20056
 
 
20057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our target compiler is apple cc" >&5
 
20058
$as_echo_n "checking whether our target compiler is apple cc... " >&6; }
 
20059
if test "${grub_cv_apple_target_cc+set}" = set; then :
 
20060
  $as_echo_n "(cached) " >&6
 
20061
else
 
20062
  if $CC -v 2>&1 | grep "Apple Inc." > /dev/null; then
 
20063
  grub_cv_apple_target_cc=yes
 
20064
else
 
20065
  grub_cv_apple_target_cc=no
 
20066
fi
 
20067
 
 
20068
fi
 
20069
 
 
20070
 
 
20071
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_apple_target_cc" >&5
 
20072
$as_echo "$grub_cv_apple_target_cc" >&6; }
 
20073
if test x$grub_cv_apple_target_cc = xyes ; then
 
20074
  TARGET_CPPFLAGS="$TARGET_CPPFLAGS -DAPPLE_CC=1"
 
20075
  TARGET_CFLAGS="$TARGET_CFLAGS -fnested-functions"
 
20076
 
 
20077
  CFLAGS="$CFLAGS -DAPPLE_CC=1 -fnested-functions"
 
20078
  TARGET_APPLE_CC=1
 
20079
  # Extract the first word of "objconv", so it can be a program name with args.
 
20080
set dummy objconv; ac_word=$2
 
20081
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
20082
$as_echo_n "checking for $ac_word... " >&6; }
 
20083
if test "${ac_cv_prog_OBJCONV+set}" = set; then :
 
20084
  $as_echo_n "(cached) " >&6
 
20085
else
 
20086
  if test -n "$OBJCONV"; then
 
20087
  ac_cv_prog_OBJCONV="$OBJCONV" # Let the user override the test.
 
20088
else
 
20089
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20090
for as_dir in $PATH
 
20091
do
 
20092
  IFS=$as_save_IFS
 
20093
  test -z "$as_dir" && as_dir=.
 
20094
    for ac_exec_ext in '' $ac_executable_extensions; do
 
20095
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20096
    ac_cv_prog_OBJCONV="objconv"
 
20097
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20098
    break 2
 
20099
  fi
 
20100
done
 
20101
  done
 
20102
IFS=$as_save_IFS
 
20103
 
 
20104
fi
 
20105
fi
 
20106
OBJCONV=$ac_cv_prog_OBJCONV
 
20107
if test -n "$OBJCONV"; then
 
20108
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCONV" >&5
 
20109
$as_echo "$OBJCONV" >&6; }
 
20110
else
 
20111
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20112
$as_echo "no" >&6; }
 
20113
fi
 
20114
 
 
20115
 
 
20116
  if test "x$OBJCONV" = x ; then
 
20117
     # Extract the first word of "objconv", so it can be a program name with args.
 
20118
set dummy objconv; ac_word=$2
 
20119
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
20120
$as_echo_n "checking for $ac_word... " >&6; }
 
20121
if test "${ac_cv_prog_OBJCONV+set}" = set; then :
 
20122
  $as_echo_n "(cached) " >&6
 
20123
else
 
20124
  if test -n "$OBJCONV"; then
 
20125
  ac_cv_prog_OBJCONV="$OBJCONV" # Let the user override the test.
 
20126
else
 
20127
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20128
for as_dir in .
 
20129
do
 
20130
  IFS=$as_save_IFS
 
20131
  test -z "$as_dir" && as_dir=.
 
20132
    for ac_exec_ext in '' $ac_executable_extensions; do
 
20133
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20134
    ac_cv_prog_OBJCONV="./objconv"
 
20135
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20136
    break 2
 
20137
  fi
 
20138
done
 
20139
  done
 
20140
IFS=$as_save_IFS
 
20141
 
 
20142
fi
 
20143
fi
 
20144
OBJCONV=$ac_cv_prog_OBJCONV
 
20145
if test -n "$OBJCONV"; then
 
20146
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCONV" >&5
 
20147
$as_echo "$OBJCONV" >&6; }
 
20148
else
 
20149
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20150
$as_echo "no" >&6; }
 
20151
fi
 
20152
 
 
20153
 
 
20154
  fi
 
20155
  if test "x$OBJCONV" = x ; then
 
20156
    as_fn_error $? "objconv not found which is required when building with apple compiler" "$LINENO" 5
 
20157
  fi
 
20158
  TARGET_IMG_LDSCRIPT=
 
20159
  TARGET_IMG_CFLAGS="-static"
 
20160
  TARGET_IMG_LDFLAGS='-nostdlib -static -Wl,-preload -Wl,-segalign,20'
 
20161
  TARGET_IMG_LDFLAGS_AC='-nostdlib -static -Wl,-preload -Wl,-segalign,20'
 
20162
  TARGET_IMG_BASE_LDOPT="-Wl,-image_base"
 
20163
else
 
20164
  TARGET_APPLE_CC=0
 
20165
# Use linker script if present, otherwise use builtin -N script.
 
20166
if test -f "${srcdir}/${grub_coredir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"; then
 
20167
  TARGET_IMG_LDSCRIPT='$(top_srcdir)'"/${grub_coredir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"
 
20168
  TARGET_IMG_LDFLAGS="-Wl,-T${TARGET_IMG_LDSCRIPT}"
 
20169
  TARGET_IMG_LDFLAGS_AC="-Wl,-T${srcdir}/${grub_coredir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"
 
20170
  TARGET_IMG_BASE_LDOPT="-Wl,-Ttext"
 
20171
else
 
20172
  TARGET_IMG_LDSCRIPT=
 
20173
  TARGET_IMG_LDFLAGS='-Wl,-N'
 
20174
  TARGET_IMG_LDFLAGS_AC='-Wl,-N'
 
20175
  TARGET_IMG_BASE_LDOPT="-Wl,-Ttext"
 
20176
fi
 
20177
TARGET_IMG_CFLAGS=
 
20178
fi
 
20179
 
 
20180
# For platforms where ELF is not the default link format.
 
20181
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for command to convert module to ELF format" >&5
 
20182
$as_echo_n "checking for command to convert module to ELF format... " >&6; }
 
20183
case "${host_os}" in
 
20184
  cygwin) TARGET_OBJ2ELF='$(grub_utildir)/grub-pe2elf';
 
20185
# FIXME: put proper test here
 
20186
  NEED_REGISTER_FRAME_INFO=1
 
20187
  ;;
 
20188
  *) NEED_REGISTER_FRAME_INFO=0 ;;
 
20189
esac
 
20190
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_OBJ2ELF" >&5
 
20191
$as_echo "$TARGET_OBJ2ELF" >&6; }
 
20192
 
 
20193
if test "x$target_m32" = x1; then
 
20194
  # Force 32-bit mode.
 
20195
  TARGET_CFLAGS="$TARGET_CFLAGS -m32"
 
20196
  TARGET_CCASFLAGS="$TARGET_CCASFLAGS -m32"
 
20197
  TARGET_LDFLAGS="$TARGET_LDFLAGS -m32"
 
20198
  TARGET_MODULE_FORMAT="elf32"
 
20199
fi
 
20200
 
 
20201
if test "x$target_m64" = x1; then
 
20202
  # Force 64-bit mode.
 
20203
  TARGET_CFLAGS="$TARGET_CFLAGS -m64"
 
20204
  TARGET_CCASFLAGS="$TARGET_CCASFLAGS -m64"
 
20205
  TARGET_LDFLAGS="$TARGET_LDFLAGS -m64"
 
20206
  TARGET_MODULE_FORMAT="elf64"
 
20207
fi
 
20208
 
 
20209
if test "$target_cpu"-"$platform" = x86_64-efi; then
 
20210
  # Use large model to support 4G memory
 
20211
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mcmodel=large works" >&5
 
20212
$as_echo_n "checking whether option -mcmodel=large works... " >&6; }
 
20213
if test "${grub_cv_cc_mcmodel+set}" = set; then :
 
20214
  $as_echo_n "(cached) " >&6
 
20215
else
 
20216
 
 
20217
    SAVED_CFLAGS=$CFLAGS
 
20218
    CFLAGS="$CFLAGS -m64 -mcmodel=large"
 
20219
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20220
/* end confdefs.h.  */
 
20221
 
 
20222
int
 
20223
main (void)
 
20224
{
 
20225
 
 
20226
  ;
 
20227
  return 0;
 
20228
}
 
20229
_ACEOF
 
20230
if ac_fn_c_try_compile "$LINENO"; then :
 
20231
  grub_cv_cc_mcmodel=yes
 
20232
else
 
20233
  grub_cv_cc_mcmodel=no
 
20234
fi
 
20235
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20236
 
 
20237
fi
 
20238
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_mcmodel" >&5
 
20239
$as_echo "$grub_cv_cc_mcmodel" >&6; }
 
20240
  if test "x$grub_cv_cc_mcmodel" = xno; then
 
20241
    as_fn_error $? "-mcmodel=large not supported. Upgrade your gcc." "$LINENO" 5
 
20242
  else
 
20243
    TARGET_CFLAGS="$TARGET_CFLAGS -mcmodel=large"
 
20244
  fi
 
20245
 
 
20246
  # EFI writes to stack below %rsp, we must not use the red zone
 
20247
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mno-red-zone works" >&5
 
20248
$as_echo_n "checking whether option -mno-red-zone works... " >&6; }
 
20249
if test "${grub_cv_cc_no_red_zone+set}" = set; then :
 
20250
  $as_echo_n "(cached) " >&6
 
20251
else
 
20252
 
 
20253
    CFLAGS="$CFLAGS -m64 -mno-red-zone"
 
20254
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20255
/* end confdefs.h.  */
 
20256
 
 
20257
int
 
20258
main (void)
 
20259
{
 
20260
 
 
20261
  ;
 
20262
  return 0;
 
20263
}
 
20264
_ACEOF
 
20265
if ac_fn_c_try_compile "$LINENO"; then :
 
20266
  grub_cv_cc_no_red_zone=yes
 
20267
else
 
20268
  grub_cv_cc_no_red_zone=no
 
20269
fi
 
20270
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20271
 
 
20272
fi
 
20273
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_no_red_zone" >&5
 
20274
$as_echo "$grub_cv_cc_no_red_zone" >&6; }
 
20275
  if test "x$grub_cv_cc_no_red_zone" = xno; then
 
20276
    as_fn_error $? "-mno-red-zone not supported, upgrade your gcc" "$LINENO" 5
 
20277
  fi
 
20278
 
 
20279
  TARGET_CFLAGS="$TARGET_CFLAGS -mno-red-zone"
 
20280
fi
 
20281
 
 
20282
#
 
20283
# Compiler features.
 
20284
#
 
20285
 
 
20286
# Need __enable_execute_stack() for nested function trampolines?
 
20287
 
 
20288
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' generates calls to \`__enable_execute_stack()'" >&5
 
20289
$as_echo_n "checking whether \`$CC' generates calls to \`__enable_execute_stack()'... " >&6; }
 
20290
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20291
/* end confdefs.h.  */
 
20292
 
 
20293
void f (int (*p) (void));
 
20294
void g (int i)
 
20295
{
 
20296
  int nestedfunc (void) { return i; }
 
20297
  f (nestedfunc);
 
20298
}
 
20299
 
 
20300
_ACEOF
 
20301
if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
 
20302
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
 
20303
  (eval $ac_try) 2>&5
 
20304
  ac_status=$?
 
20305
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20306
  test $ac_status = 0; }; } && test -s conftest.s; then
 
20307
  true
 
20308
else
 
20309
  as_fn_error $? "${CC-cc} failed to produce assembly code" "$LINENO" 5
 
20310
fi
 
20311
if grep __enable_execute_stack conftest.s >/dev/null 2>&1; then
 
20312
  NEED_ENABLE_EXECUTE_STACK=1
 
20313
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
20314
$as_echo "yes" >&6; }
 
20315
else
 
20316
  NEED_ENABLE_EXECUTE_STACK=0
 
20317
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20318
$as_echo "no" >&6; }
 
20319
fi
 
20320
rm -f conftest*
 
20321
 
 
20322
 
 
20323
# Position independent executable.
 
20324
 
 
20325
# Position independent executable.
 
20326
pie_possible=yes
 
20327
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' has \`-fPIE' as default" >&5
 
20328
$as_echo_n "checking whether \`$CC' has \`-fPIE' as default... " >&6; }
 
20329
# Is this a reliable test case?
 
20330
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20331
/* end confdefs.h.  */
 
20332
 
 
20333
#ifdef __PIE__
 
20334
int main() {
 
20335
        return 0;
 
20336
}
 
20337
#else
 
20338
#error NO __PIE__ DEFINED
 
20339
#endif
 
20340
 
 
20341
_ACEOF
 
20342
 
 
20343
# `$CC -c -o ...' might not be portable.  But, oh, well...  Is calling
 
20344
# `ac_compile' like this correct, after all?
 
20345
if eval "$ac_compile -S -o conftest.s" 2> /dev/null; then
 
20346
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
20347
$as_echo "yes" >&6; }
 
20348
  # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
 
20349
  rm -f conftest.s
 
20350
else
 
20351
  pie_possible=no
 
20352
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20353
$as_echo "no" >&6; }
 
20354
fi
 
20355
 
 
20356
# Need that, because some distributions ship compilers that include
 
20357
# `-fPIE' in the default specs.
 
20358
if [ x"$pie_possible" = xyes ]; then
 
20359
  TARGET_CFLAGS="$TARGET_CFLAGS -fno-PIE"
 
20360
fi
 
20361
 
 
20362
# Smashing stack protector.
 
20363
 
 
20364
# Smashing stack protector.
 
20365
ssp_possible=yes
 
20366
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' accepts \`-fstack-protector'" >&5
 
20367
$as_echo_n "checking whether \`$CC' accepts \`-fstack-protector'... " >&6; }
 
20368
# Is this a reliable test case?
 
20369
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20370
/* end confdefs.h.  */
 
20371
void foo (void) { volatile char a[8]; a[3]; }
 
20372
_ACEOF
 
20373
# `$CC -c -o ...' might not be portable.  But, oh, well...  Is calling
 
20374
# `ac_compile' like this correct, after all?
 
20375
if eval "$ac_compile -S -fstack-protector -o conftest.s" 2> /dev/null; then
 
20376
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
20377
$as_echo "yes" >&6; }
 
20378
  # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
 
20379
  rm -f conftest.s
 
20380
else
 
20381
  ssp_possible=no
 
20382
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20383
$as_echo "no" >&6; }
 
20384
fi
 
20385
 
 
20386
# Need that, because some distributions ship compilers that include
 
20387
# `-fstack-protector' in the default specs.
 
20388
if test "x$ssp_possible" = xyes; then
 
20389
  TARGET_CFLAGS="$TARGET_CFLAGS -fno-stack-protector"
 
20390
fi
 
20391
 
 
20392
# Smashing stack arg probe.
 
20393
sap_possible=yes
 
20394
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' accepts \`-mstack-arg-probe'" >&5
 
20395
$as_echo_n "checking whether \`$CC' accepts \`-mstack-arg-probe'... " >&6; }
 
20396
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20397
/* end confdefs.h.  */
 
20398
void foo (void) { volatile char a[8]; a[3]; }
 
20399
_ACEOF
 
20400
if eval "$ac_compile -S -mstack-arg-probe -o conftest.s" 2> /dev/null; then
 
20401
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
20402
$as_echo "yes" >&6; }
 
20403
  # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
 
20404
  rm -f conftest.s
 
20405
else
 
20406
  sap_possible=no
 
20407
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20408
$as_echo "no" >&6; }
 
20409
fi
 
20410
 
 
20411
# Cygwin's GCC uses alloca() to probe the stackframe on static
 
20412
# stack allocations above some threshold.
 
20413
if test x"$sap_possible" = xyes; then
 
20414
  TARGET_CFLAGS="$TARGET_CFLAGS -mno-stack-arg-probe"
 
20415
fi
 
20416
 
 
20417
# Check whether --enable-werror was given.
 
20418
if test "${enable_werror+set}" = set; then :
 
20419
  enableval=$enable_werror;
 
20420
fi
 
20421
 
 
20422
if test x"$enable_werror" != xno ; then
 
20423
  TARGET_CFLAGS="$TARGET_CFLAGS -Werror"
 
20424
fi
 
20425
 
 
20426
TARGET_CPP="$TARGET_CC -E"
 
20427
TARGET_CCAS=$TARGET_CC
 
20428
 
 
20429
 
 
20430
 
 
20431
 
 
20432
 
 
20433
 
 
20434
 
 
20435
 
 
20436
 
 
20437
 
 
20438
 
 
20439
 
 
20440
 
 
20441
 
 
20442
 
 
20443
 
 
20444
 
 
20445
 
 
20446
 
 
20447
 
 
20448
 
 
20449
 
 
20450
 
 
20451
# Set them to their new values for the tests below.
 
20452
CC="$TARGET_CC"
 
20453
if test "x$TARGET_APPLE_CC" = x1 ; then
 
20454
CFLAGS="$TARGET_CFLAGS -nostdlib -Wno-error"
 
20455
else
 
20456
CFLAGS="$TARGET_CFLAGS -nostdlib -Wl,--defsym,___main=0x8100 -Wno-error"
 
20457
fi
 
20458
CPPFLAGS="$TARGET_CPPFLAGS"
 
20459
if test x$target_cpu = xi386 || test x$target_cpu = xx86_64 ; then
 
20460
LIBS=
 
20461
else
 
20462
LIBS=-lgcc
 
20463
fi
 
20464
 
 
20465
 
 
20466
 
 
20467
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if C symbols get an underscore after compilation" >&5
 
20468
$as_echo_n "checking if C symbols get an underscore after compilation... " >&6; }
 
20469
if test "${grub_cv_asm_uscore+set}" = set; then :
 
20470
  $as_echo_n "(cached) " >&6
 
20471
else
 
20472
  cat > conftest.c <<\EOF
 
20473
int func (int *);
 
20474
int
 
20475
func (int *list)
 
20476
{
 
20477
  *list = 0;
 
20478
  return *list;
 
20479
}
 
20480
EOF
 
20481
 
 
20482
if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
 
20483
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
 
20484
  (eval $ac_try) 2>&5
 
20485
  ac_status=$?
 
20486
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20487
  test $ac_status = 0; }; } && test -s conftest.s; then
 
20488
  true
 
20489
else
 
20490
  as_fn_error $? "${CC-cc} failed to produce assembly code" "$LINENO" 5
 
20491
fi
 
20492
 
 
20493
if $EGREP '(^|^_[:alnum])_func' conftest.s >/dev/null 2>&1; then
 
20494
  HAVE_ASM_USCORE=1
 
20495
  grub_cv_asm_uscore=yes
 
20496
else
 
20497
  HAVE_ASM_USCORE=0
 
20498
  grub_cv_asm_uscore=no
 
20499
fi
 
20500
 
 
20501
rm -f conftest*
 
20502
fi
 
20503
 
 
20504
 
 
20505
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_asm_uscore" >&5
 
20506
$as_echo "$grub_cv_asm_uscore" >&6; }
 
20507
 
 
20508
if test x$grub_cv_asm_uscore = xyes; then
 
20509
CFLAGS="$CFLAGS -Wl,--defsym,_abort=_main"
 
20510
else
 
20511
CFLAGS="$CFLAGS -Wl,--defsym,abort=main"
 
20512
fi
 
20513
 
 
20514
# Check for libgcc symbols
 
20515
for ac_func in __bswapsi2 __bswapdi2 __ashldi3 __ashrdi3 __lshrdi3 __trampoline_setup __ucmpdi2 _restgpr_14_x
 
20516
do :
 
20517
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
20518
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
20519
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
20520
  cat >>confdefs.h <<_ACEOF
 
20521
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
20522
_ACEOF
 
20523
 
 
20524
fi
 
20525
done
 
20526
 
 
20527
 
 
20528
if test "x$TARGET_APPLE_CC" = x1 ; then
 
20529
CFLAGS="$TARGET_CFLAGS -nostdlib"
 
20530
else
 
20531
CFLAGS="$TARGET_CFLAGS -nostdlib -Wl,--defsym,___main=0x8100"
 
20532
fi
 
20533
LIBS=""
 
20534
 
 
20535
# Defined in aclocal.m4.
 
20536
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether target compiler is working" >&5
 
20537
$as_echo_n "checking whether target compiler is working... " >&6; }
 
20538
if test "${grub_cv_prog_target_cc+set}" = set; then :
 
20539
  $as_echo_n "(cached) " >&6
 
20540
else
 
20541
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20542
/* end confdefs.h.  */
 
20543
 
 
20544
asm (".globl start; start:");
 
20545
int main (void);
 
20546
 
 
20547
int
 
20548
main (void)
 
20549
{
 
20550
 
 
20551
  ;
 
20552
  return 0;
 
20553
}
 
20554
_ACEOF
 
20555
if ac_fn_c_try_link "$LINENO"; then :
 
20556
  grub_cv_prog_target_cc=yes
 
20557
else
 
20558
  grub_cv_prog_target_cc=no
 
20559
fi
 
20560
rm -f core conftest.err conftest.$ac_objext \
 
20561
    conftest$ac_exeext conftest.$ac_ext
 
20562
 
 
20563
fi
 
20564
 
 
20565
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_target_cc" >&5
 
20566
$as_echo "$grub_cv_prog_target_cc" >&6; }
 
20567
 
 
20568
if test "x$grub_cv_prog_target_cc" = xno; then
 
20569
  as_fn_error $? "cannot compile for the target" "$LINENO" 5
 
20570
fi
 
20571
 
 
20572
if test "x$TARGET_APPLE_CC" != x1 ; then
 
20573
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${OBJCOPY} works for absolute addresses" >&5
 
20574
$as_echo_n "checking whether ${OBJCOPY} works for absolute addresses... " >&6; }
 
20575
if test "${grub_cv_prog_objcopy_absolute+set}" = set; then :
 
20576
  $as_echo_n "(cached) " >&6
 
20577
else
 
20578
  cat > conftest.c <<\EOF
 
20579
void cmain (void);
 
20580
void
 
20581
cmain (void)
 
20582
{
 
20583
   *((int *) 0x1000) = 2;
 
20584
}
 
20585
EOF
 
20586
 
 
20587
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
20588
  (eval $ac_compile) 2>&5
 
20589
  ac_status=$?
 
20590
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20591
  test $ac_status = 0; } && test -s conftest.o; then :
 
20592
else
 
20593
  as_fn_error $? "${CC-cc} cannot compile C source code" "$LINENO" 5
 
20594
fi
 
20595
grub_cv_prog_objcopy_absolute=yes
 
20596
for link_addr in 0x2000 0x8000 0x7C00; do
 
20597
  if { ac_try='${CC-cc} ${CFLAGS} -nostdlib ${TARGET_IMG_LDFLAGS_AC} ${TARGET_IMG_BASE_LDOPT},$link_addr conftest.o -o conftest.exec'
 
20598
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
 
20599
  (eval $ac_try) 2>&5
 
20600
  ac_status=$?
 
20601
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20602
  test $ac_status = 0; }; }; then :
 
20603
  else
 
20604
    as_fn_error $? "${CC-cc} cannot link at address $link_addr" "$LINENO" 5
 
20605
  fi
 
20606
  if { ac_try='${OBJCOPY-objcopy} --only-section=.text -O binary conftest.exec conftest'
 
20607
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
 
20608
  (eval $ac_try) 2>&5
 
20609
  ac_status=$?
 
20610
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20611
  test $ac_status = 0; }; }; then :
 
20612
  else
 
20613
    as_fn_error $? "${OBJCOPY-objcopy} cannot create binary files" "$LINENO" 5
 
20614
  fi
 
20615
  if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest'
 
20616
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
 
20617
  (eval $ac_try) 2>&5
 
20618
  ac_status=$?
 
20619
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20620
  test $ac_status = 0; }; }; then
 
20621
    mv -f conftest conftest.old
 
20622
  else
 
20623
    grub_cv_prog_objcopy_absolute=no
 
20624
    break
 
20625
  fi
 
20626
done
 
20627
rm -f conftest*
 
20628
fi
 
20629
 
 
20630
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_objcopy_absolute" >&5
 
20631
$as_echo "$grub_cv_prog_objcopy_absolute" >&6; }
 
20632
 
 
20633
if test "x$grub_cv_prog_objcopy_absolute" = xno; then
 
20634
  as_fn_error $? "GRUB requires a working absolute objcopy; upgrade your binutils" "$LINENO" 5
 
20635
fi
 
20636
 
 
20637
fi
 
20638
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts --build-id=none" >&5
 
20639
$as_echo_n "checking whether linker accepts --build-id=none... " >&6; }
 
20640
if test "${grub_cv_prog_ld_build_id_none+set}" = set; then :
 
20641
  $as_echo_n "(cached) " >&6
 
20642
else
 
20643
  save_LDFLAGS="$LDFLAGS"
 
20644
LDFLAGS="$LDFLAGS -Wl,--build-id=none"
 
20645
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20646
/* end confdefs.h.  */
 
20647
 
 
20648
int
 
20649
main (void)
 
20650
{
 
20651
 
 
20652
  ;
 
20653
  return 0;
 
20654
}
 
20655
_ACEOF
 
20656
if ac_fn_c_try_link "$LINENO"; then :
 
20657
  grub_cv_prog_ld_build_id_none=yes
 
20658
else
 
20659
  grub_cv_prog_ld_build_id_none=no
 
20660
fi
 
20661
rm -f core conftest.err conftest.$ac_objext \
 
20662
    conftest$ac_exeext conftest.$ac_ext
 
20663
LDFLAGS="$save_LDFLAGS"
 
20664
 
 
20665
fi
 
20666
 
 
20667
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_ld_build_id_none" >&5
 
20668
$as_echo "$grub_cv_prog_ld_build_id_none" >&6; }
 
20669
 
 
20670
if test "x$grub_cv_prog_ld_build_id_none" = xyes; then
 
20671
  TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,--build-id=none"
 
20672
fi
 
20673
 
 
20674
if test "x$target_cpu" = xi386; then
 
20675
  if test "$platform" != emu && test "x$TARGET_APPLE_CC" != x1 ; then
 
20676
    if test ! -z "$TARGET_IMG_LDSCRIPT"; then
 
20677
      # Check symbols provided by linker script.
 
20678
      CFLAGS="$TARGET_CFLAGS -nostdlib ${TARGET_IMG_LDFLAGS_AC} ${TARGET_IMG_BASE_LDOPT},8000 -Wl,--defsym,___main=0x8100"
 
20679
    fi
 
20680
 
 
20681
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if __bss_start is defined by the compiler" >&5
 
20682
$as_echo_n "checking if __bss_start is defined by the compiler... " >&6; }
 
20683
if test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then :
 
20684
  $as_echo_n "(cached) " >&6
 
20685
else
 
20686
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20687
/* end confdefs.h.  */
 
20688
 
 
20689
int
 
20690
main (void)
 
20691
{
 
20692
asm ("incl __bss_start")
 
20693
  ;
 
20694
  return 0;
 
20695
}
 
20696
_ACEOF
 
20697
if ac_fn_c_try_link "$LINENO"; then :
 
20698
  grub_cv_check_uscore_uscore_bss_start_symbol=yes
 
20699
else
 
20700
  grub_cv_check_uscore_uscore_bss_start_symbol=no
 
20701
fi
 
20702
rm -f core conftest.err conftest.$ac_objext \
 
20703
    conftest$ac_exeext conftest.$ac_ext
 
20704
fi
 
20705
 
 
20706
 
 
20707
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
 
20708
$as_echo "$grub_cv_check_uscore_uscore_bss_start_symbol" >&6; }
 
20709
 
 
20710
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if edata is defined by the compiler" >&5
 
20711
$as_echo_n "checking if edata is defined by the compiler... " >&6; }
 
20712
if test "${grub_cv_check_edata_symbol+set}" = set; then :
 
20713
  $as_echo_n "(cached) " >&6
 
20714
else
 
20715
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20716
/* end confdefs.h.  */
 
20717
 
 
20718
int
 
20719
main (void)
 
20720
{
 
20721
asm ("incl edata")
 
20722
  ;
 
20723
  return 0;
 
20724
}
 
20725
_ACEOF
 
20726
if ac_fn_c_try_link "$LINENO"; then :
 
20727
  grub_cv_check_edata_symbol=yes
 
20728
else
 
20729
  grub_cv_check_edata_symbol=no
 
20730
fi
 
20731
rm -f core conftest.err conftest.$ac_objext \
 
20732
    conftest$ac_exeext conftest.$ac_ext
 
20733
fi
 
20734
 
 
20735
 
 
20736
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_edata_symbol" >&5
 
20737
$as_echo "$grub_cv_check_edata_symbol" >&6; }
 
20738
 
 
20739
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if _edata is defined by the compiler" >&5
 
20740
$as_echo_n "checking if _edata is defined by the compiler... " >&6; }
 
20741
if test "${grub_cv_check_uscore_edata_symbol+set}" = set; then :
 
20742
  $as_echo_n "(cached) " >&6
 
20743
else
 
20744
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20745
/* end confdefs.h.  */
 
20746
 
 
20747
int
 
20748
main (void)
 
20749
{
 
20750
asm ("incl _edata")
 
20751
  ;
 
20752
  return 0;
 
20753
}
 
20754
_ACEOF
 
20755
if ac_fn_c_try_link "$LINENO"; then :
 
20756
  grub_cv_check_uscore_edata_symbol=yes
 
20757
else
 
20758
  grub_cv_check_uscore_edata_symbol=no
 
20759
fi
 
20760
rm -f core conftest.err conftest.$ac_objext \
 
20761
    conftest$ac_exeext conftest.$ac_ext
 
20762
fi
 
20763
 
 
20764
 
 
20765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_edata_symbol" >&5
 
20766
$as_echo "$grub_cv_check_uscore_edata_symbol" >&6; }
 
20767
 
 
20768
if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
 
20769
  BSS_START_SYMBOL=__bss_start
 
20770
elif test "x$grub_cv_check_edata_symbol" = xyes; then
 
20771
  BSS_START_SYMBOL=edata
 
20772
elif test "x$grub_cv_check_uscore_edata_symbol" = xyes; then
 
20773
  BSS_START_SYMBOL=_edata
 
20774
else
 
20775
  as_fn_error $? "none of __bss_start, edata or _edata is defined" "$LINENO" 5
 
20776
fi
 
20777
 
 
20778
 
 
20779
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if end is defined by the compiler" >&5
 
20780
$as_echo_n "checking if end is defined by the compiler... " >&6; }
 
20781
if test "${grub_cv_check_end_symbol+set}" = set; then :
 
20782
  $as_echo_n "(cached) " >&6
 
20783
else
 
20784
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20785
/* end confdefs.h.  */
 
20786
 
 
20787
int
 
20788
main (void)
 
20789
{
 
20790
asm ("incl end")
 
20791
  ;
 
20792
  return 0;
 
20793
}
 
20794
_ACEOF
 
20795
if ac_fn_c_try_link "$LINENO"; then :
 
20796
  grub_cv_check_end_symbol=yes
 
20797
else
 
20798
  grub_cv_check_end_symbol=no
 
20799
fi
 
20800
rm -f core conftest.err conftest.$ac_objext \
 
20801
    conftest$ac_exeext conftest.$ac_ext
 
20802
fi
 
20803
 
 
20804
 
 
20805
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_end_symbol" >&5
 
20806
$as_echo "$grub_cv_check_end_symbol" >&6; }
 
20807
 
 
20808
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if _end is defined by the compiler" >&5
 
20809
$as_echo_n "checking if _end is defined by the compiler... " >&6; }
 
20810
if test "${grub_cv_check_uscore_end_symbol+set}" = set; then :
 
20811
  $as_echo_n "(cached) " >&6
 
20812
else
 
20813
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20814
/* end confdefs.h.  */
 
20815
 
 
20816
int
 
20817
main (void)
 
20818
{
 
20819
asm ("incl _end")
 
20820
  ;
 
20821
  return 0;
 
20822
}
 
20823
_ACEOF
 
20824
if ac_fn_c_try_link "$LINENO"; then :
 
20825
  grub_cv_check_uscore_end_symbol=yes
 
20826
else
 
20827
  grub_cv_check_uscore_end_symbol=no
 
20828
fi
 
20829
rm -f core conftest.err conftest.$ac_objext \
 
20830
    conftest$ac_exeext conftest.$ac_ext
 
20831
fi
 
20832
 
 
20833
 
 
20834
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_end_symbol" >&5
 
20835
$as_echo "$grub_cv_check_uscore_end_symbol" >&6; }
 
20836
 
 
20837
if test "x$grub_cv_check_end_symbol" = xyes; then
 
20838
  END_SYMBOL=end
 
20839
elif test "x$grub_cv_check_uscore_end_symbol" = xyes; then
 
20840
  END_SYMBOL=_end
 
20841
else
 
20842
  as_fn_error $? "neither end nor _end is defined" "$LINENO" 5
 
20843
fi
 
20844
 
 
20845
  fi
 
20846
  CFLAGS="$TARGET_CFLAGS"
 
20847
 
 
20848
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether addr32 must be in the same line as the instruction" >&5
 
20849
$as_echo_n "checking whether addr32 must be in the same line as the instruction... " >&6; }
 
20850
if test "${grub_cv_i386_asm_prefix_requirement+set}" = set; then :
 
20851
  $as_echo_n "(cached) " >&6
 
20852
else
 
20853
  cat > conftest.s <<\EOF
 
20854
        .code16
 
20855
l1:     addr32  movb    %al, l1
 
20856
EOF
 
20857
 
 
20858
if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
 
20859
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
 
20860
  (eval $ac_try) 2>&5
 
20861
  ac_status=$?
 
20862
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20863
  test $ac_status = 0; }; } && test -s conftest.o; then
 
20864
  grub_cv_i386_asm_prefix_requirement=yes
 
20865
else
 
20866
  grub_cv_i386_asm_prefix_requirement=no
 
20867
fi
 
20868
 
 
20869
rm -f conftest*
 
20870
fi
 
20871
 
 
20872
 
 
20873
if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
 
20874
  grub_tmp_addr32="addr32"
 
20875
  grub_tmp_data32="data32"
 
20876
else
 
20877
  grub_tmp_addr32="addr32;"
 
20878
  grub_tmp_data32="data32;"
 
20879
fi
 
20880
 
 
20881
ADDR32=$grub_tmp_addr32
 
20882
DATA32=$grub_tmp_data32
 
20883
 
 
20884
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_i386_asm_prefix_requirement" >&5
 
20885
$as_echo "$grub_cv_i386_asm_prefix_requirement" >&6; }
 
20886
 
 
20887
 
 
20888
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .code16 addr32 assembler support" >&5
 
20889
$as_echo_n "checking for .code16 addr32 assembler support... " >&6; }
 
20890
if test "${grub_cv_i386_asm_addr32+set}" = set; then :
 
20891
  $as_echo_n "(cached) " >&6
 
20892
else
 
20893
  cat > conftest.s.in <<\EOF
 
20894
        .code16
 
20895
l1:     @ADDR32@        movb    %al, l1
 
20896
EOF
 
20897
 
 
20898
if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
 
20899
  sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s
 
20900
else
 
20901
  sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
 
20902
fi
 
20903
 
 
20904
if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
 
20905
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
 
20906
  (eval $ac_try) 2>&5
 
20907
  ac_status=$?
 
20908
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20909
  test $ac_status = 0; }; } && test -s conftest.o; then
 
20910
  grub_cv_i386_asm_addr32=yes
 
20911
else
 
20912
  grub_cv_i386_asm_addr32=no
 
20913
fi
 
20914
 
 
20915
rm -f conftest*
 
20916
fi
 
20917
 
 
20918
 
 
20919
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_i386_asm_addr32" >&5
 
20920
$as_echo "$grub_cv_i386_asm_addr32" >&6; }
 
20921
fi
 
20922
 
 
20923
# Check whether --enable-efiemu was given.
 
20924
if test "${enable_efiemu+set}" = set; then :
 
20925
  enableval=$enable_efiemu;
 
20926
fi
 
20927
 
 
20928
if test x"$enable_efiemu" = xno ; then
 
20929
  efiemu_excuse="explicitly disabled"
 
20930
fi
 
20931
if test x"$target_cpu" != xi386 ; then
 
20932
  efiemu_excuse="only available on i386"
 
20933
fi
 
20934
if test x"$platform" = xefi ; then
 
20935
  efiemu_excuse="not available on efi"
 
20936
fi
 
20937
if test x"$efiemu_excuse" = x ; then
 
20938
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether options required for efiemu work" >&5
 
20939
$as_echo_n "checking whether options required for efiemu work... " >&6; }
 
20940
if test "${grub_cv_cc_efiemu+set}" = set; then :
 
20941
  $as_echo_n "(cached) " >&6
 
20942
else
 
20943
 
 
20944
    CFLAGS="$CFLAGS -m64 -mcmodel=large -mno-red-zone -nostdlib"
 
20945
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20946
/* end confdefs.h.  */
 
20947
 
 
20948
int
 
20949
main (void)
 
20950
{
 
20951
 
 
20952
  ;
 
20953
  return 0;
 
20954
}
 
20955
_ACEOF
 
20956
if ac_fn_c_try_compile "$LINENO"; then :
 
20957
  grub_cv_cc_efiemu=yes
 
20958
else
 
20959
  grub_cv_cc_efiemu=no
 
20960
fi
 
20961
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20962
 
 
20963
fi
 
20964
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_efiemu" >&5
 
20965
$as_echo "$grub_cv_cc_efiemu" >&6; }
 
20966
  if test x$grub_cv_cc_efiemu = xno; then
 
20967
     efiemu_excuse="cannot compile with -m64 -mcmodel=large -mno-red-zone -nostdlib"
 
20968
  fi
 
20969
fi
 
20970
if test x"$enable_efiemu" = xyes && test x"$efiemu_excuse" != x ; then
 
20971
  as_fn_error $? "efiemu runtime was explicitly requested but can't be compiled" "$LINENO" 5
 
20972
fi
 
20973
if test x"$efiemu_excuse" = x ; then
 
20974
enable_efiemu=yes
 
20975
else
 
20976
enable_efiemu=no
 
20977
fi
 
20978
 
 
20979
 
 
20980
if test "$platform" != emu; then
 
20981
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -nostdinc -isystem works" >&5
 
20982
$as_echo_n "checking whether -nostdinc -isystem works... " >&6; }
 
20983
if test "${grub_cv_cc_isystem+set}" = set; then :
 
20984
  $as_echo_n "(cached) " >&6
 
20985
else
 
20986
 
 
20987
  SAVED_CPPFLAGS="$CPPFLAGS"
 
20988
  CPPFLAGS="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
 
20989
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20990
/* end confdefs.h.  */
 
20991
#include <stdarg.h>
 
20992
int va_arg_func (int fixed, va_list args);
 
20993
int
 
20994
main (void)
 
20995
{
 
20996
 
 
20997
  ;
 
20998
  return 0;
 
20999
}
 
21000
_ACEOF
 
21001
if ac_fn_c_try_compile "$LINENO"; then :
 
21002
  grub_cv_cc_isystem=yes
 
21003
else
 
21004
  grub_cv_cc_isystem=no
 
21005
fi
 
21006
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21007
  CPPFLAGS="$SAVED_CPPFLAGS"
 
21008
 
 
21009
fi
 
21010
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_isystem" >&5
 
21011
$as_echo "$grub_cv_cc_isystem" >&6; }
 
21012
 
 
21013
if test x"$grub_cv_cc_isystem" = xyes ; then
 
21014
  TARGET_CPPFLAGS="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
 
21015
fi
 
21016
fi
 
21017
 
 
21018
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-trampolines work" >&5
 
21019
$as_echo_n "checking whether -Wno-trampolines work... " >&6; }
 
21020
if test "${grub_cv_cc_wnotrampolines+set}" = set; then :
 
21021
  $as_echo_n "(cached) " >&6
 
21022
else
 
21023
 
 
21024
  SAVED_CFLAGS="$CFLAGS"
 
21025
  # Test for -Wtrampolines rather than -Wno-trampolines to reduce confusion
 
21026
  # in the event of later failures (since -Wno-* is always accepted, but
 
21027
  # produces a diagnostic if something else is wrong).
 
21028
  CFLAGS="$TARGET_CFLAGS -Wtrampolines"
 
21029
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21030
/* end confdefs.h.  */
 
21031
#include <stdarg.h>
 
21032
int va_arg_func (int fixed, va_list args);
 
21033
int
 
21034
main (void)
 
21035
{
 
21036
 
 
21037
  ;
 
21038
  return 0;
 
21039
}
 
21040
_ACEOF
 
21041
if ac_fn_c_try_compile "$LINENO"; then :
 
21042
  grub_cv_cc_wnotrampolines=yes
 
21043
else
 
21044
  grub_cv_cc_wnotrampolines=no
 
21045
fi
 
21046
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21047
  CFLAGS="$SAVED_CFLAGS"
 
21048
 
 
21049
fi
 
21050
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_wnotrampolines" >&5
 
21051
$as_echo "$grub_cv_cc_wnotrampolines" >&6; }
 
21052
 
 
21053
if test x"$grub_cv_cc_wnotrampolines" = xyes ; then
 
21054
  TARGET_CFLAGS="$TARGET_CFLAGS -Wno-trampolines"
 
21055
fi
 
21056
 
 
21057
# Restore the flags.
 
21058
CC="$tmp_CC"
 
21059
CFLAGS="$tmp_CFLAGS"
 
21060
CPPFLAGS="$tmp_CPPFLAGS"
 
21061
LDFLAGS="$tmp_LDFLAGS"
 
21062
LIBS="$tmp_LIBS"
 
21063
 
 
21064
#
 
21065
# Check for options.
 
21066
#
 
21067
 
 
21068
# Memory manager debugging.
 
21069
# Check whether --enable-mm-debug was given.
 
21070
if test "${enable_mm_debug+set}" = set; then :
 
21071
  enableval=$enable_mm_debug;
 
21072
$as_echo "#define MM_DEBUG 1" >>confdefs.h
 
21073
 
 
21074
fi
 
21075
 
 
21076
 
 
21077
# Check whether --enable-grub-emu-usb was given.
 
21078
if test "${enable_grub_emu_usb+set}" = set; then :
 
21079
  enableval=$enable_grub_emu_usb;
 
21080
fi
 
21081
 
 
21082
 
 
21083
# Check whether --enable-grub-emu-sdl was given.
 
21084
if test "${enable_grub_emu_sdl+set}" = set; then :
 
21085
  enableval=$enable_grub_emu_sdl;
 
21086
fi
 
21087
 
 
21088
 
 
21089
# Check whether --enable-grub-emu-pci was given.
 
21090
if test "${enable_grub_emu_pci+set}" = set; then :
 
21091
  enableval=$enable_grub_emu_pci;
 
21092
fi
 
21093
 
 
21094
 
 
21095
if test "$platform" = emu; then
 
21096
  missing_ncurses=
 
21097
# Check for curses libraries.
 
21098
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wgetch in -lncurses" >&5
 
21099
$as_echo_n "checking for wgetch in -lncurses... " >&6; }
 
21100
if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then :
 
21101
  $as_echo_n "(cached) " >&6
 
21102
else
 
21103
  ac_check_lib_save_LIBS=$LIBS
 
21104
LIBS="-lncurses  $LIBS"
 
21105
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21106
/* end confdefs.h.  */
 
21107
 
 
21108
/* Override any GCC internal prototype to avoid an error.
 
21109
   Use char because int might match the return type of a GCC
 
21110
   builtin and then its argument prototype would still apply.  */
 
21111
#ifdef __cplusplus
 
21112
extern "C"
 
21113
#endif
 
21114
char wgetch ();
 
21115
int
 
21116
main (void)
 
21117
{
 
21118
return wgetch ();
 
21119
  ;
 
21120
  return 0;
 
21121
}
 
21122
_ACEOF
 
21123
if ac_fn_c_try_link "$LINENO"; then :
 
21124
  ac_cv_lib_ncurses_wgetch=yes
 
21125
else
 
21126
  ac_cv_lib_ncurses_wgetch=no
 
21127
fi
 
21128
rm -f core conftest.err conftest.$ac_objext \
 
21129
    conftest$ac_exeext conftest.$ac_ext
 
21130
LIBS=$ac_check_lib_save_LIBS
 
21131
fi
 
21132
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_wgetch" >&5
 
21133
$as_echo "$ac_cv_lib_ncurses_wgetch" >&6; }
 
21134
if test "x$ac_cv_lib_ncurses_wgetch" = x""yes; then :
 
21135
  LIBCURSES="-lncurses"
 
21136
else
 
21137
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wgetch in -lcurses" >&5
 
21138
$as_echo_n "checking for wgetch in -lcurses... " >&6; }
 
21139
if test "${ac_cv_lib_curses_wgetch+set}" = set; then :
 
21140
  $as_echo_n "(cached) " >&6
 
21141
else
 
21142
  ac_check_lib_save_LIBS=$LIBS
 
21143
LIBS="-lcurses  $LIBS"
 
21144
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21145
/* end confdefs.h.  */
 
21146
 
 
21147
/* Override any GCC internal prototype to avoid an error.
 
21148
   Use char because int might match the return type of a GCC
 
21149
   builtin and then its argument prototype would still apply.  */
 
21150
#ifdef __cplusplus
 
21151
extern "C"
 
21152
#endif
 
21153
char wgetch ();
 
21154
int
 
21155
main (void)
 
21156
{
 
21157
return wgetch ();
 
21158
  ;
 
21159
  return 0;
 
21160
}
 
21161
_ACEOF
 
21162
if ac_fn_c_try_link "$LINENO"; then :
 
21163
  ac_cv_lib_curses_wgetch=yes
 
21164
else
 
21165
  ac_cv_lib_curses_wgetch=no
 
21166
fi
 
21167
rm -f core conftest.err conftest.$ac_objext \
 
21168
    conftest$ac_exeext conftest.$ac_ext
 
21169
LIBS=$ac_check_lib_save_LIBS
 
21170
fi
 
21171
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_wgetch" >&5
 
21172
$as_echo "$ac_cv_lib_curses_wgetch" >&6; }
 
21173
if test "x$ac_cv_lib_curses_wgetch" = x""yes; then :
 
21174
  LIBCURSES="-lcurses"
 
21175
else
 
21176
  missing_ncurses=true
 
21177
fi
 
21178
 
 
21179
fi
 
21180
 
 
21181
 
 
21182
if [ x"$missing_ncurses" = x ]; then
 
21183
  # Check for headers.
 
21184
  for ac_header in ncurses/curses.h
 
21185
do :
 
21186
  ac_fn_c_check_header_mongrel "$LINENO" "ncurses/curses.h" "ac_cv_header_ncurses_curses_h" "$ac_includes_default"
 
21187
if test "x$ac_cv_header_ncurses_curses_h" = x""yes; then :
 
21188
  cat >>confdefs.h <<_ACEOF
 
21189
#define HAVE_NCURSES_CURSES_H 1
 
21190
_ACEOF
 
21191
 
 
21192
else
 
21193
  for ac_header in ncurses.h
 
21194
do :
 
21195
  ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
 
21196
if test "x$ac_cv_header_ncurses_h" = x""yes; then :
 
21197
  cat >>confdefs.h <<_ACEOF
 
21198
#define HAVE_NCURSES_H 1
 
21199
_ACEOF
 
21200
 
 
21201
else
 
21202
  for ac_header in curses.h
 
21203
do :
 
21204
  ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
 
21205
if test "x$ac_cv_header_curses_h" = x""yes; then :
 
21206
  cat >>confdefs.h <<_ACEOF
 
21207
#define HAVE_CURSES_H 1
 
21208
_ACEOF
 
21209
 
 
21210
else
 
21211
  missing_ncurses=true
 
21212
fi
 
21213
 
 
21214
done
 
21215
 
 
21216
fi
 
21217
 
 
21218
done
 
21219
 
 
21220
fi
 
21221
 
 
21222
done
 
21223
 
 
21224
fi
 
21225
if test x"$missing_ncurses" = xtrue ; then
 
21226
  as_fn_error $? "grub-emu can't be compiled without ncurses" "$LINENO" 5
 
21227
fi
 
21228
 
 
21229
if test x"$enable_grub_emu_usb" != xyes ; then
 
21230
   grub_emu_usb_excuse="not enabled"
 
21231
fi
 
21232
 
 
21233
if test x"$enable_grub_emu_pci" = xyes ; then
 
21234
   grub_emu_usb_excuse="conflicts with PCI support"
 
21235
fi
 
21236
 
 
21237
if [ x"$grub_emu_usb_excuse" = x ]; then
 
21238
    # Check for libusb libraries.
 
21239
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_claim_interface in -lusb" >&5
 
21240
$as_echo_n "checking for usb_claim_interface in -lusb... " >&6; }
 
21241
if test "${ac_cv_lib_usb_usb_claim_interface+set}" = set; then :
 
21242
  $as_echo_n "(cached) " >&6
 
21243
else
 
21244
  ac_check_lib_save_LIBS=$LIBS
 
21245
LIBS="-lusb  $LIBS"
 
21246
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21247
/* end confdefs.h.  */
 
21248
 
 
21249
/* Override any GCC internal prototype to avoid an error.
 
21250
   Use char because int might match the return type of a GCC
 
21251
   builtin and then its argument prototype would still apply.  */
 
21252
#ifdef __cplusplus
 
21253
extern "C"
 
21254
#endif
 
21255
char usb_claim_interface ();
 
21256
int
 
21257
main (void)
 
21258
{
 
21259
return usb_claim_interface ();
 
21260
  ;
 
21261
  return 0;
 
21262
}
 
21263
_ACEOF
 
21264
if ac_fn_c_try_link "$LINENO"; then :
 
21265
  ac_cv_lib_usb_usb_claim_interface=yes
 
21266
else
 
21267
  ac_cv_lib_usb_usb_claim_interface=no
 
21268
fi
 
21269
rm -f core conftest.err conftest.$ac_objext \
 
21270
    conftest$ac_exeext conftest.$ac_ext
 
21271
LIBS=$ac_check_lib_save_LIBS
 
21272
fi
 
21273
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_claim_interface" >&5
 
21274
$as_echo "$ac_cv_lib_usb_usb_claim_interface" >&6; }
 
21275
if test "x$ac_cv_lib_usb_usb_claim_interface" = x""yes; then :
 
21276
  LIBUSB="-lusb"
 
21277
else
 
21278
  grub_emu_usb_excuse="need libusb library"
 
21279
fi
 
21280
 
 
21281
 
 
21282
fi
 
21283
if [ x"$grub_emu_usb_excuse" = x ]; then
 
21284
    # Check for headers.
 
21285
    for ac_header in usb.h
 
21286
do :
 
21287
  ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
 
21288
if test "x$ac_cv_header_usb_h" = x""yes; then :
 
21289
  cat >>confdefs.h <<_ACEOF
 
21290
#define HAVE_USB_H 1
 
21291
_ACEOF
 
21292
 
 
21293
else
 
21294
  grub_emu_usb_excuse="need libusb headers"
 
21295
fi
 
21296
 
 
21297
done
 
21298
 
 
21299
fi
 
21300
if test x"$enable_grub_emu_usb" = xyes && test x"$grub_emu_usb_excuse" != x ; then
 
21301
  as_fn_error $? "USB support for grub-emu was explicitly requested but can't be compiled" "$LINENO" 5
 
21302
fi
 
21303
if test x"$grub_emu_usb_excuse" = x ; then
 
21304
enable_grub_emu_usb=yes
 
21305
else
 
21306
enable_grub_emu_usb=no
 
21307
fi
 
21308
 
 
21309
if test x"$enable_grub_emu_sdl" = xno ; then
 
21310
  grub_emu_sdl_excuse="explicitely disabled"
 
21311
fi
 
21312
if [ x"$grub_emu_sdl_excuse" = x ]; then
 
21313
    # Check for libSDL libraries.
 
21314
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
 
21315
$as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
 
21316
if test "${ac_cv_lib_SDL_SDL_Init+set}" = set; then :
 
21317
  $as_echo_n "(cached) " >&6
 
21318
else
 
21319
  ac_check_lib_save_LIBS=$LIBS
 
21320
LIBS="-lSDL  $LIBS"
 
21321
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21322
/* end confdefs.h.  */
 
21323
 
 
21324
/* Override any GCC internal prototype to avoid an error.
 
21325
   Use char because int might match the return type of a GCC
 
21326
   builtin and then its argument prototype would still apply.  */
 
21327
#ifdef __cplusplus
 
21328
extern "C"
 
21329
#endif
 
21330
char SDL_Init ();
 
21331
int
 
21332
main (void)
 
21333
{
 
21334
return SDL_Init ();
 
21335
  ;
 
21336
  return 0;
 
21337
}
 
21338
_ACEOF
 
21339
if ac_fn_c_try_link "$LINENO"; then :
 
21340
  ac_cv_lib_SDL_SDL_Init=yes
 
21341
else
 
21342
  ac_cv_lib_SDL_SDL_Init=no
 
21343
fi
 
21344
rm -f core conftest.err conftest.$ac_objext \
 
21345
    conftest$ac_exeext conftest.$ac_ext
 
21346
LIBS=$ac_check_lib_save_LIBS
 
21347
fi
 
21348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Init" >&5
 
21349
$as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
 
21350
if test "x$ac_cv_lib_SDL_SDL_Init" = x""yes; then :
 
21351
  LIBSDL="-lSDL"
 
21352
else
 
21353
  grub_emu_sdl_excuse="libSDL libraries are required to build \`grub-emu' with SDL support"
 
21354
fi
 
21355
 
 
21356
 
 
21357
fi
 
21358
 
 
21359
if [ x"$grub_emu_sdl_excuse" = x ]; then
 
21360
    # Check for headers.
 
21361
    for ac_header in SDL/SDL.h
 
21362
do :
 
21363
  ac_fn_c_check_header_mongrel "$LINENO" "SDL/SDL.h" "ac_cv_header_SDL_SDL_h" "$ac_includes_default"
 
21364
if test "x$ac_cv_header_SDL_SDL_h" = x""yes; then :
 
21365
  cat >>confdefs.h <<_ACEOF
 
21366
#define HAVE_SDL_SDL_H 1
 
21367
_ACEOF
 
21368
 
 
21369
else
 
21370
  grub_emu_sdl_excuse="libSDL header file is required to build \`grub-emu' with SDL support"
 
21371
fi
 
21372
 
 
21373
done
 
21374
 
 
21375
fi
 
21376
 
 
21377
if test x"enable_grub_emu_sdl" = xyes && test x"$grub_emu_sdl_excuse" != x ; then
 
21378
  as_fn_error $? "SDL support for grub-emu was explicitely requested but can't be compiled" "$LINENO" 5
 
21379
fi
 
21380
if test x"$grub_emu_sdl_excuse" = x ; then
 
21381
enable_grub_emu_sdl=yes
 
21382
else
 
21383
enable_grub_emu_sdl=no
 
21384
fi
 
21385
 
 
21386
if test x"$enable_grub_emu_pci" != xyes ; then
 
21387
   grub_emu_pci_excuse="not enabled"
 
21388
fi
 
21389
 
 
21390
if test x"$enable_grub_emu_usb" = xyes ; then
 
21391
   grub_emu_pci_excuse="conflicts with USB support"
 
21392
fi
 
21393
 
 
21394
if [ x"$grub_emu_pci_excuse" = x ]; then
 
21395
      # Check for libpci libraries.
 
21396
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pci_system_init in -lpciaccess" >&5
 
21397
$as_echo_n "checking for pci_system_init in -lpciaccess... " >&6; }
 
21398
if test "${ac_cv_lib_pciaccess_pci_system_init+set}" = set; then :
 
21399
  $as_echo_n "(cached) " >&6
 
21400
else
 
21401
  ac_check_lib_save_LIBS=$LIBS
 
21402
LIBS="-lpciaccess  $LIBS"
 
21403
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21404
/* end confdefs.h.  */
 
21405
 
 
21406
/* Override any GCC internal prototype to avoid an error.
 
21407
   Use char because int might match the return type of a GCC
 
21408
   builtin and then its argument prototype would still apply.  */
 
21409
#ifdef __cplusplus
 
21410
extern "C"
 
21411
#endif
 
21412
char pci_system_init ();
 
21413
int
 
21414
main (void)
 
21415
{
 
21416
return pci_system_init ();
 
21417
  ;
 
21418
  return 0;
 
21419
}
 
21420
_ACEOF
 
21421
if ac_fn_c_try_link "$LINENO"; then :
 
21422
  ac_cv_lib_pciaccess_pci_system_init=yes
 
21423
else
 
21424
  ac_cv_lib_pciaccess_pci_system_init=no
 
21425
fi
 
21426
rm -f core conftest.err conftest.$ac_objext \
 
21427
    conftest$ac_exeext conftest.$ac_ext
 
21428
LIBS=$ac_check_lib_save_LIBS
 
21429
fi
 
21430
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pciaccess_pci_system_init" >&5
 
21431
$as_echo "$ac_cv_lib_pciaccess_pci_system_init" >&6; }
 
21432
if test "x$ac_cv_lib_pciaccess_pci_system_init" = x""yes; then :
 
21433
  LIBPCIACCESS="-lpciaccess"
 
21434
else
 
21435
  grub_emu_pci_excuse="need libpciaccess library"
 
21436
fi
 
21437
 
 
21438
 
 
21439
fi
 
21440
if [ x"$grub_emu_pci_excuse" = x ]; then
 
21441
    # Check for headers.
 
21442
    for ac_header in pci/pci.h
 
21443
do :
 
21444
  ac_fn_c_check_header_mongrel "$LINENO" "pci/pci.h" "ac_cv_header_pci_pci_h" "$ac_includes_default"
 
21445
if test "x$ac_cv_header_pci_pci_h" = x""yes; then :
 
21446
  cat >>confdefs.h <<_ACEOF
 
21447
#define HAVE_PCI_PCI_H 1
 
21448
_ACEOF
 
21449
 
 
21450
else
 
21451
  grub_emu_pci_excuse="need libpciaccess headers"
 
21452
fi
 
21453
 
 
21454
done
 
21455
 
 
21456
fi
 
21457
 
 
21458
if test x"$grub_emu_pci_excuse" = x ; then
 
21459
enable_grub_emu_pci=yes
 
21460
else
 
21461
 
 
21462
enable_grub_emu_pci=no
 
21463
fi
 
21464
 
 
21465
 
 
21466
 
 
21467
 
 
21468
fi
 
21469
 
 
21470
# Check whether --enable-grub-mkfont was given.
 
21471
if test "${enable_grub_mkfont+set}" = set; then :
 
21472
  enableval=$enable_grub_mkfont;
 
21473
fi
 
21474
 
 
21475
if test x"$enable_grub_mkfont" = xno ; then
 
21476
  grub_mkfont_excuse="explicitly disabled"
 
21477
fi
 
21478
 
 
21479
if test x"$grub_mkfont_excuse" = x ; then
 
21480
  # Check for freetype libraries.
 
21481
  for ac_prog in freetype-config
 
21482
do
 
21483
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
21484
set dummy $ac_prog; ac_word=$2
 
21485
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
21486
$as_echo_n "checking for $ac_word... " >&6; }
 
21487
if test "${ac_cv_prog_FREETYPE+set}" = set; then :
 
21488
  $as_echo_n "(cached) " >&6
 
21489
else
 
21490
  if test -n "$FREETYPE"; then
 
21491
  ac_cv_prog_FREETYPE="$FREETYPE" # Let the user override the test.
 
21492
else
 
21493
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21494
for as_dir in $PATH
 
21495
do
 
21496
  IFS=$as_save_IFS
 
21497
  test -z "$as_dir" && as_dir=.
 
21498
    for ac_exec_ext in '' $ac_executable_extensions; do
 
21499
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
21500
    ac_cv_prog_FREETYPE="$ac_prog"
 
21501
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21502
    break 2
 
21503
  fi
 
21504
done
 
21505
  done
 
21506
IFS=$as_save_IFS
 
21507
 
 
21508
fi
 
21509
fi
 
21510
FREETYPE=$ac_cv_prog_FREETYPE
 
21511
if test -n "$FREETYPE"; then
 
21512
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE" >&5
 
21513
$as_echo "$FREETYPE" >&6; }
 
21514
else
 
21515
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
21516
$as_echo "no" >&6; }
 
21517
fi
 
21518
 
 
21519
 
 
21520
  test -n "$FREETYPE" && break
 
21521
done
 
21522
 
 
21523
  if test "x$FREETYPE" = x ; then
 
21524
    grub_mkfont_excuse="need freetype2 library"
 
21525
  fi
 
21526
fi
 
21527
 
 
21528
if test x"$grub_mkfont_excuse" = x ; then
 
21529
  # Check for freetype libraries.
 
21530
  freetype_cflags=`freetype-config --cflags`
 
21531
  freetype_libs=`freetype-config --libs`
 
21532
  SAVED_CPPFLAGS="$CPPFLAGS"
 
21533
  CPPFLAGS="$CPPFLAGS $freetype_cflags"
 
21534
  for ac_header in ft2build.h
 
21535
do :
 
21536
  ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
 
21537
if test "x$ac_cv_header_ft2build_h" = x""yes; then :
 
21538
  cat >>confdefs.h <<_ACEOF
 
21539
#define HAVE_FT2BUILD_H 1
 
21540
_ACEOF
 
21541
 
 
21542
else
 
21543
  grub_mkfont_excuse="need freetype2 headers"
 
21544
fi
 
21545
 
 
21546
done
 
21547
 
 
21548
  CPPFLAGS="$SAVED_CPPFLAGS"
 
21549
fi
 
21550
 
 
21551
if test x"$enable_grub_mkfont" = xyes && test x"$grub_mkfont_excuse" != x ; then
 
21552
  as_fn_error $? "grub-mkfont was explicitly requested but can't be compiled" "$LINENO" 5
 
21553
fi
 
21554
if test x"$grub_mkfont_excuse" = x ; then
 
21555
enable_grub_mkfont=yes
 
21556
else
 
21557
enable_grub_mkfont=no
 
21558
fi
 
21559
 
 
21560
 
 
21561
 
 
21562
 
 
21563
# Check whether --enable-device-mapper was given.
 
21564
if test "${enable_device_mapper+set}" = set; then :
 
21565
  enableval=$enable_device_mapper;
 
21566
fi
 
21567
 
 
21568
if test x"$enable_device_mapper" = xno ; then
 
21569
  device_mapper_excuse="explicitly disabled"
 
21570
fi
 
21571
 
 
21572
if test x"$device_mapper_excuse" = x ; then
 
21573
  # Check for device-mapper library.
 
21574
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_create in -ldevmapper" >&5
 
21575
$as_echo_n "checking for dm_task_create in -ldevmapper... " >&6; }
 
21576
if test "${ac_cv_lib_devmapper_dm_task_create+set}" = set; then :
 
21577
  $as_echo_n "(cached) " >&6
 
21578
else
 
21579
  ac_check_lib_save_LIBS=$LIBS
 
21580
LIBS="-ldevmapper  $LIBS"
 
21581
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21582
/* end confdefs.h.  */
 
21583
 
 
21584
/* Override any GCC internal prototype to avoid an error.
 
21585
   Use char because int might match the return type of a GCC
 
21586
   builtin and then its argument prototype would still apply.  */
 
21587
#ifdef __cplusplus
 
21588
extern "C"
 
21589
#endif
 
21590
char dm_task_create ();
 
21591
int
 
21592
main (void)
 
21593
{
 
21594
return dm_task_create ();
 
21595
  ;
 
21596
  return 0;
 
21597
}
 
21598
_ACEOF
 
21599
if ac_fn_c_try_link "$LINENO"; then :
 
21600
  ac_cv_lib_devmapper_dm_task_create=yes
 
21601
else
 
21602
  ac_cv_lib_devmapper_dm_task_create=no
 
21603
fi
 
21604
rm -f core conftest.err conftest.$ac_objext \
 
21605
    conftest$ac_exeext conftest.$ac_ext
 
21606
LIBS=$ac_check_lib_save_LIBS
 
21607
fi
 
21608
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_create" >&5
 
21609
$as_echo "$ac_cv_lib_devmapper_dm_task_create" >&6; }
 
21610
if test "x$ac_cv_lib_devmapper_dm_task_create" = x""yes; then :
 
21611
  cat >>confdefs.h <<_ACEOF
 
21612
#define HAVE_LIBDEVMAPPER 1
 
21613
_ACEOF
 
21614
 
 
21615
  LIBS="-ldevmapper $LIBS"
 
21616
 
 
21617
else
 
21618
  device_mapper_excuse="need devmapper library"
 
21619
fi
 
21620
 
 
21621
fi
 
21622
 
 
21623
if test x"$device_mapper_excuse" = x ; then
 
21624
  # Check for device-mapper library.
 
21625
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_log_with_errno_init in -ldevmapper" >&5
 
21626
$as_echo_n "checking for dm_log_with_errno_init in -ldevmapper... " >&6; }
 
21627
if test "${ac_cv_lib_devmapper_dm_log_with_errno_init+set}" = set; then :
 
21628
  $as_echo_n "(cached) " >&6
 
21629
else
 
21630
  ac_check_lib_save_LIBS=$LIBS
 
21631
LIBS="-ldevmapper  $LIBS"
 
21632
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21633
/* end confdefs.h.  */
 
21634
 
 
21635
/* Override any GCC internal prototype to avoid an error.
 
21636
   Use char because int might match the return type of a GCC
 
21637
   builtin and then its argument prototype would still apply.  */
 
21638
#ifdef __cplusplus
 
21639
extern "C"
 
21640
#endif
 
21641
char dm_log_with_errno_init ();
 
21642
int
 
21643
main (void)
 
21644
{
 
21645
return dm_log_with_errno_init ();
 
21646
  ;
 
21647
  return 0;
 
21648
}
 
21649
_ACEOF
 
21650
if ac_fn_c_try_link "$LINENO"; then :
 
21651
  ac_cv_lib_devmapper_dm_log_with_errno_init=yes
 
21652
else
 
21653
  ac_cv_lib_devmapper_dm_log_with_errno_init=no
 
21654
fi
 
21655
rm -f core conftest.err conftest.$ac_objext \
 
21656
    conftest$ac_exeext conftest.$ac_ext
 
21657
LIBS=$ac_check_lib_save_LIBS
 
21658
fi
 
21659
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_log_with_errno_init" >&5
 
21660
$as_echo "$ac_cv_lib_devmapper_dm_log_with_errno_init" >&6; }
 
21661
if test "x$ac_cv_lib_devmapper_dm_log_with_errno_init" = x""yes; then :
 
21662
  cat >>confdefs.h <<_ACEOF
 
21663
#define HAVE_LIBDEVMAPPER 1
 
21664
_ACEOF
 
21665
 
 
21666
  LIBS="-ldevmapper $LIBS"
 
21667
 
 
21668
else
 
21669
  device_mapper_excuse="need devmapper library"
 
21670
fi
 
21671
 
 
21672
fi
 
21673
 
 
21674
if test x"$device_mapper_excuse" = x ; then
 
21675
   LIBDEVMAPPER="-ldevmapper";
 
21676
 
 
21677
$as_echo "#define HAVE_DEVICE_MAPPER 1" >>confdefs.h
 
21678
 
 
21679
fi
 
21680
 
 
21681
 
 
21682
 
 
21683
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
 
21684
$as_echo_n "checking for lzma_code in -llzma... " >&6; }
 
21685
if test "${ac_cv_lib_lzma_lzma_code+set}" = set; then :
 
21686
  $as_echo_n "(cached) " >&6
 
21687
else
 
21688
  ac_check_lib_save_LIBS=$LIBS
 
21689
LIBS="-llzma  $LIBS"
 
21690
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21691
/* end confdefs.h.  */
 
21692
 
 
21693
/* Override any GCC internal prototype to avoid an error.
 
21694
   Use char because int might match the return type of a GCC
 
21695
   builtin and then its argument prototype would still apply.  */
 
21696
#ifdef __cplusplus
 
21697
extern "C"
 
21698
#endif
 
21699
char lzma_code ();
 
21700
int
 
21701
main (void)
 
21702
{
 
21703
return lzma_code ();
 
21704
  ;
 
21705
  return 0;
 
21706
}
 
21707
_ACEOF
 
21708
if ac_fn_c_try_link "$LINENO"; then :
 
21709
  ac_cv_lib_lzma_lzma_code=yes
 
21710
else
 
21711
  ac_cv_lib_lzma_lzma_code=no
 
21712
fi
 
21713
rm -f core conftest.err conftest.$ac_objext \
 
21714
    conftest$ac_exeext conftest.$ac_ext
 
21715
LIBS=$ac_check_lib_save_LIBS
 
21716
fi
 
21717
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
 
21718
$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
 
21719
if test "x$ac_cv_lib_lzma_lzma_code" = x""yes; then :
 
21720
  LIBLZMA="-llzma"
 
21721
 
 
21722
$as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
 
21723
 
 
21724
fi
 
21725
 
 
21726
 
 
21727
 
 
21728
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzfs_init in -lzfs" >&5
 
21729
$as_echo_n "checking for libzfs_init in -lzfs... " >&6; }
 
21730
if test "${ac_cv_lib_zfs_libzfs_init+set}" = set; then :
 
21731
  $as_echo_n "(cached) " >&6
 
21732
else
 
21733
  ac_check_lib_save_LIBS=$LIBS
 
21734
LIBS="-lzfs  $LIBS"
 
21735
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21736
/* end confdefs.h.  */
 
21737
 
 
21738
/* Override any GCC internal prototype to avoid an error.
 
21739
   Use char because int might match the return type of a GCC
 
21740
   builtin and then its argument prototype would still apply.  */
 
21741
#ifdef __cplusplus
 
21742
extern "C"
 
21743
#endif
 
21744
char libzfs_init ();
 
21745
int
 
21746
main (void)
 
21747
{
 
21748
return libzfs_init ();
 
21749
  ;
 
21750
  return 0;
 
21751
}
 
21752
_ACEOF
 
21753
if ac_fn_c_try_link "$LINENO"; then :
 
21754
  ac_cv_lib_zfs_libzfs_init=yes
 
21755
else
 
21756
  ac_cv_lib_zfs_libzfs_init=no
 
21757
fi
 
21758
rm -f core conftest.err conftest.$ac_objext \
 
21759
    conftest$ac_exeext conftest.$ac_ext
 
21760
LIBS=$ac_check_lib_save_LIBS
 
21761
fi
 
21762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zfs_libzfs_init" >&5
 
21763
$as_echo "$ac_cv_lib_zfs_libzfs_init" >&6; }
 
21764
if test "x$ac_cv_lib_zfs_libzfs_init" = x""yes; then :
 
21765
  LIBZFS="-lzfs"
 
21766
 
 
21767
$as_echo "#define HAVE_LIBZFS 1" >>confdefs.h
 
21768
 
 
21769
fi
 
21770
 
 
21771
 
 
21772
 
 
21773
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_print in -lnvpair" >&5
 
21774
$as_echo_n "checking for nvlist_print in -lnvpair... " >&6; }
 
21775
if test "${ac_cv_lib_nvpair_nvlist_print+set}" = set; then :
 
21776
  $as_echo_n "(cached) " >&6
 
21777
else
 
21778
  ac_check_lib_save_LIBS=$LIBS
 
21779
LIBS="-lnvpair  $LIBS"
 
21780
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21781
/* end confdefs.h.  */
 
21782
 
 
21783
/* Override any GCC internal prototype to avoid an error.
 
21784
   Use char because int might match the return type of a GCC
 
21785
   builtin and then its argument prototype would still apply.  */
 
21786
#ifdef __cplusplus
 
21787
extern "C"
 
21788
#endif
 
21789
char nvlist_print ();
 
21790
int
 
21791
main (void)
 
21792
{
 
21793
return nvlist_print ();
 
21794
  ;
 
21795
  return 0;
 
21796
}
 
21797
_ACEOF
 
21798
if ac_fn_c_try_link "$LINENO"; then :
 
21799
  ac_cv_lib_nvpair_nvlist_print=yes
 
21800
else
 
21801
  ac_cv_lib_nvpair_nvlist_print=no
 
21802
fi
 
21803
rm -f core conftest.err conftest.$ac_objext \
 
21804
    conftest$ac_exeext conftest.$ac_ext
 
21805
LIBS=$ac_check_lib_save_LIBS
 
21806
fi
 
21807
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_print" >&5
 
21808
$as_echo "$ac_cv_lib_nvpair_nvlist_print" >&6; }
 
21809
if test "x$ac_cv_lib_nvpair_nvlist_print" = x""yes; then :
 
21810
  LIBNVPAIR="-lnvpair"
 
21811
 
 
21812
$as_echo "#define HAVE_LIBNVPAIR 1" >>confdefs.h
 
21813
 
 
21814
fi
 
21815
 
 
21816
 
 
21817
 
 
21818
LIBS=""
 
21819
 
 
21820
pkglibrootdir='$(libdir)'/`echo $PACKAGE | sed "$program_transform_name"`
 
21821
 
 
21822
 
 
21823
 
 
21824
if test x$target_cpu = xi386 -a x$platform = xqemu; then :
 
21825
  GRUB_BOOT_MACHINE_LINK_ADDR=0xffe00
 
21826
 
 
21827
fi
 
21828
if test x$TARGET_APPLE_CC = x1; then :
 
21829
  USE_APPLE_CC_FIXES=yes
 
21830
 
 
21831
fi
 
21832
 
 
21833
 
 
21834
 
 
21835
 
 
21836
 
 
21837
 
 
21838
 
 
21839
 
 
21840
 
 
21841
 
 
21842
 
 
21843
#
 
21844
# Automake conditionals
 
21845
#
 
21846
 
 
21847
 if test x$platform = xemu; then
 
21848
  COND_emu_TRUE=
 
21849
  COND_emu_FALSE='#'
 
21850
else
 
21851
  COND_emu_TRUE='#'
 
21852
  COND_emu_FALSE=
 
21853
fi
 
21854
 
 
21855
 if test x$target_cpu = xi386 -a x$platform = xpc; then
 
21856
  COND_i386_pc_TRUE=
 
21857
  COND_i386_pc_FALSE='#'
 
21858
else
 
21859
  COND_i386_pc_TRUE='#'
 
21860
  COND_i386_pc_FALSE=
 
21861
fi
 
21862
 
 
21863
 if test x$target_cpu = xi386 -a x$platform = xefi; then
 
21864
  COND_i386_efi_TRUE=
 
21865
  COND_i386_efi_FALSE='#'
 
21866
else
 
21867
  COND_i386_efi_TRUE='#'
 
21868
  COND_i386_efi_FALSE=
 
21869
fi
 
21870
 
 
21871
 if test x$target_cpu = xi386 -a x$platform = xqemu; then
 
21872
  COND_i386_qemu_TRUE=
 
21873
  COND_i386_qemu_FALSE='#'
 
21874
else
 
21875
  COND_i386_qemu_TRUE='#'
 
21876
  COND_i386_qemu_FALSE=
 
21877
fi
 
21878
 
 
21879
 if test x$target_cpu = xi386 -a x$platform = xieee1275; then
 
21880
  COND_i386_ieee1275_TRUE=
 
21881
  COND_i386_ieee1275_FALSE='#'
 
21882
else
 
21883
  COND_i386_ieee1275_TRUE='#'
 
21884
  COND_i386_ieee1275_FALSE=
 
21885
fi
 
21886
 
 
21887
 if test x$target_cpu = xi386 -a x$platform = xcoreboot; then
 
21888
  COND_i386_coreboot_TRUE=
 
21889
  COND_i386_coreboot_FALSE='#'
 
21890
else
 
21891
  COND_i386_coreboot_TRUE='#'
 
21892
  COND_i386_coreboot_FALSE=
 
21893
fi
 
21894
 
 
21895
 if test x$target_cpu = xi386 -a x$platform = xmultiboot; then
 
21896
  COND_i386_multiboot_TRUE=
 
21897
  COND_i386_multiboot_FALSE='#'
 
21898
else
 
21899
  COND_i386_multiboot_TRUE='#'
 
21900
  COND_i386_multiboot_FALSE=
 
21901
fi
 
21902
 
 
21903
 if test x$target_cpu = xx86_64 -a x$platform = xefi; then
 
21904
  COND_x86_64_efi_TRUE=
 
21905
  COND_x86_64_efi_FALSE='#'
 
21906
else
 
21907
  COND_x86_64_efi_TRUE='#'
 
21908
  COND_x86_64_efi_FALSE=
 
21909
fi
 
21910
 
 
21911
 if test x$target_cpu = xmips -a x$platform = xyeeloong; then
 
21912
  COND_mips_yeeloong_TRUE=
 
21913
  COND_mips_yeeloong_FALSE='#'
 
21914
else
 
21915
  COND_mips_yeeloong_TRUE='#'
 
21916
  COND_mips_yeeloong_FALSE=
 
21917
fi
 
21918
 
 
21919
 if test x$target_cpu = xmips -a x$platform = xqemu_mips; then
 
21920
  COND_mips_qemu_mips_TRUE=
 
21921
  COND_mips_qemu_mips_FALSE='#'
 
21922
else
 
21923
  COND_mips_qemu_mips_TRUE='#'
 
21924
  COND_mips_qemu_mips_FALSE=
 
21925
fi
 
21926
 
 
21927
 if test x$target_cpu = xsparc64 -a x$platform = xieee1275; then
 
21928
  COND_sparc64_ieee1275_TRUE=
 
21929
  COND_sparc64_ieee1275_FALSE='#'
 
21930
else
 
21931
  COND_sparc64_ieee1275_TRUE='#'
 
21932
  COND_sparc64_ieee1275_FALSE=
 
21933
fi
 
21934
 
 
21935
 if test x$target_cpu = xpowerpc -a x$platform = xieee1275; then
 
21936
  COND_powerpc_ieee1275_TRUE=
 
21937
  COND_powerpc_ieee1275_FALSE='#'
 
21938
else
 
21939
  COND_powerpc_ieee1275_TRUE='#'
 
21940
  COND_powerpc_ieee1275_FALSE=
 
21941
fi
 
21942
 
 
21943
 if test x$target_cpu = xmips; then
 
21944
  COND_mips_TRUE=
 
21945
  COND_mips_FALSE='#'
 
21946
else
 
21947
  COND_mips_TRUE='#'
 
21948
  COND_mips_FALSE=
 
21949
fi
 
21950
 
 
21951
 
 
21952
 if test x$host_kernel = xhurd; then
 
21953
  COND_HOST_HURD_TRUE=
 
21954
  COND_HOST_HURD_FALSE='#'
 
21955
else
 
21956
  COND_HOST_HURD_TRUE='#'
 
21957
  COND_HOST_HURD_FALSE=
 
21958
fi
 
21959
 
 
21960
 if test x$host_kernel = xlinux; then
 
21961
  COND_HOST_LINUX_TRUE=
 
21962
  COND_HOST_LINUX_FALSE='#'
 
21963
else
 
21964
  COND_HOST_LINUX_TRUE='#'
 
21965
  COND_HOST_LINUX_FALSE=
 
21966
fi
 
21967
 
 
21968
 if test x$host_kernel = xnetbsd; then
 
21969
  COND_HOST_NETBSD_TRUE=
 
21970
  COND_HOST_NETBSD_FALSE='#'
 
21971
else
 
21972
  COND_HOST_NETBSD_TRUE='#'
 
21973
  COND_HOST_NETBSD_FALSE=
 
21974
fi
 
21975
 
 
21976
 if test x$host_kernel = xwindows; then
 
21977
  COND_HOST_WINDOWS_TRUE=
 
21978
  COND_HOST_WINDOWS_FALSE='#'
 
21979
else
 
21980
  COND_HOST_WINDOWS_TRUE='#'
 
21981
  COND_HOST_WINDOWS_FALSE=
 
21982
fi
 
21983
 
 
21984
 if test x$host_kernel = xkfreebsd; then
 
21985
  COND_HOST_KFREEBSD_TRUE=
 
21986
  COND_HOST_KFREEBSD_FALSE='#'
 
21987
else
 
21988
  COND_HOST_KFREEBSD_TRUE='#'
 
21989
  COND_HOST_KFREEBSD_FALSE=
 
21990
fi
 
21991
 
 
21992
 
 
21993
 if test x$cross_compiling = xno -a x$HELP2MAN != x; then
 
21994
  COND_MAN_PAGES_TRUE=
 
21995
  COND_MAN_PAGES_FALSE='#'
 
21996
else
 
21997
  COND_MAN_PAGES_TRUE='#'
 
21998
  COND_MAN_PAGES_FALSE=
 
21999
fi
 
22000
 
 
22001
 if test x$enable_grub_emu_usb = xyes; then
 
22002
  COND_GRUB_EMU_USB_TRUE=
 
22003
  COND_GRUB_EMU_USB_FALSE='#'
 
22004
else
 
22005
  COND_GRUB_EMU_USB_TRUE='#'
 
22006
  COND_GRUB_EMU_USB_FALSE=
 
22007
fi
 
22008
 
 
22009
 if test x$enable_grub_emu_sdl = xyes; then
 
22010
  COND_GRUB_EMU_SDL_TRUE=
 
22011
  COND_GRUB_EMU_SDL_FALSE='#'
 
22012
else
 
22013
  COND_GRUB_EMU_SDL_TRUE='#'
 
22014
  COND_GRUB_EMU_SDL_FALSE=
 
22015
fi
 
22016
 
 
22017
 if test x$enable_grub_emu_pci = xyes; then
 
22018
  COND_GRUB_EMU_PCI_TRUE=
 
22019
  COND_GRUB_EMU_PCI_FALSE='#'
 
22020
else
 
22021
  COND_GRUB_EMU_PCI_TRUE='#'
 
22022
  COND_GRUB_EMU_PCI_FALSE=
 
22023
fi
 
22024
 
 
22025
 if test x$enable_grub_mkfont = xyes; then
 
22026
  COND_GRUB_MKFONT_TRUE=
 
22027
  COND_GRUB_MKFONT_FALSE='#'
 
22028
else
 
22029
  COND_GRUB_MKFONT_TRUE='#'
 
22030
  COND_GRUB_MKFONT_FALSE=
 
22031
fi
 
22032
 
 
22033
 if test x$FONT_SOURCE != x; then
 
22034
  COND_HAVE_FONT_SOURCE_TRUE=
 
22035
  COND_HAVE_FONT_SOURCE_FALSE='#'
 
22036
else
 
22037
  COND_HAVE_FONT_SOURCE_TRUE='#'
 
22038
  COND_HAVE_FONT_SOURCE_FALSE=
 
22039
fi
 
22040
 
 
22041
 if test x$TARGET_OBJ2ELF != x; then
 
22042
  COND_GRUB_PE2ELF_TRUE=
 
22043
  COND_GRUB_PE2ELF_FALSE='#'
 
22044
else
 
22045
  COND_GRUB_PE2ELF_TRUE='#'
 
22046
  COND_GRUB_PE2ELF_FALSE=
 
22047
fi
 
22048
 
 
22049
 if test x$TARGET_APPLE_CC = x1; then
 
22050
  COND_APPLE_CC_TRUE=
 
22051
  COND_APPLE_CC_FALSE='#'
 
22052
else
 
22053
  COND_APPLE_CC_TRUE='#'
 
22054
  COND_APPLE_CC_FALSE=
 
22055
fi
 
22056
 
 
22057
 if test x$enable_efiemu = xyes; then
 
22058
  COND_ENABLE_EFIEMU_TRUE=
 
22059
  COND_ENABLE_EFIEMU_FALSE='#'
 
22060
else
 
22061
  COND_ENABLE_EFIEMU_TRUE='#'
 
22062
  COND_ENABLE_EFIEMU_FALSE=
 
22063
fi
 
22064
 
 
22065
 
 
22066
 if test x$HAVE_ASM_USCORE = x1; then
 
22067
  COND_HAVE_ASM_USCORE_TRUE=
 
22068
  COND_HAVE_ASM_USCORE_FALSE='#'
 
22069
else
 
22070
  COND_HAVE_ASM_USCORE_TRUE='#'
 
22071
  COND_HAVE_ASM_USCORE_FALSE=
 
22072
fi
 
22073
 
 
22074
 
 
22075
# Output files.
 
22076
 
 
22077
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln can handle directories properly" >&5
 
22078
$as_echo_n "checking whether ln can handle directories properly... " >&6; }
 
22079
mkdir testdir 2>/dev/null
 
22080
case $srcdir in
 
22081
[\\/$]* | ?:[\\/]* ) reldir=$srcdir/include/grub/util ;;
 
22082
    *) reldir=../$srcdir/include/grub/util ;;
 
22083
esac
 
22084
if ln -s $reldir testdir/util 2>/dev/null ; then
 
22085
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
22086
$as_echo "yes" >&6; }
 
22087
  link_dir=yes
 
22088
else
 
22089
  link_dir=no
 
22090
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
22091
$as_echo "no" >&6; }
 
22092
fi
 
22093
rm -rf testdir
 
22094
 
 
22095
if test x"$link_dir" = xyes ; then
 
22096
  ac_config_links="$ac_config_links include/grub/cpu:include/grub/$target_cpu"
 
22097
 
 
22098
  if test "$platform" != emu ; then
 
22099
    ac_config_links="$ac_config_links include/grub/machine:include/grub/$target_cpu/$platform"
 
22100
 
 
22101
  fi
 
22102
else
 
22103
  mkdir -p include/grub 2>/dev/null
 
22104
  rm -rf include/grub/cpu
 
22105
  cp -rp $srcdir/include/grub/$target_cpu include/grub/cpu 2>/dev/null
 
22106
  if test "$platform" != emu ; then
 
22107
    rm -rf include/grub/machine
 
22108
    cp -rp $srcdir/include/grub/$target_cpu/$platform include/grub/machine 2>/dev/null
 
22109
  fi
 
22110
fi
 
22111
 
 
22112
ac_config_files="$ac_config_files Makefile"
 
22113
 
 
22114
ac_config_files="$ac_config_files grub-core/Makefile"
 
22115
 
 
22116
ac_config_files="$ac_config_files grub-core/gnulib/Makefile"
 
22117
 
 
22118
ac_config_files="$ac_config_files po/Makefile.in"
 
22119
 
 
22120
ac_config_files="$ac_config_files docs/Makefile"
 
22121
 
 
22122
ac_config_files="$ac_config_files util/bash-completion.d/Makefile"
 
22123
 
 
22124
ac_config_files="$ac_config_files stamp-h"
 
22125
 
 
22126
ac_config_files="$ac_config_files config.h"
 
22127
 
 
22128
 
 
22129
cat >confcache <<\_ACEOF
 
22130
# This file is a shell script that caches the results of configure
 
22131
# tests run on this system so they can be shared between configure
 
22132
# scripts and configure runs, see configure's option --config-cache.
 
22133
# It is not useful on other systems.  If it contains results you don't
 
22134
# want to keep, you may remove or edit it.
 
22135
#
 
22136
# config.status only pays attention to the cache file if you give it
 
22137
# the --recheck option to rerun configure.
 
22138
#
 
22139
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
22140
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
22141
# following values.
 
22142
 
 
22143
_ACEOF
 
22144
 
 
22145
# The following way of writing the cache mishandles newlines in values,
 
22146
# but we know of no workaround that is simple, portable, and efficient.
 
22147
# So, we kill variables containing newlines.
 
22148
# Ultrix sh set writes to stderr and can't be redirected directly,
 
22149
# and sets the high bit in the cache file unless we assign to the vars.
 
22150
(
 
22151
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
22152
    eval ac_val=\$$ac_var
 
22153
    case $ac_val in #(
 
22154
    *${as_nl}*)
 
22155
      case $ac_var in #(
 
22156
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
22157
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
22158
      esac
 
22159
      case $ac_var in #(
 
22160
      _ | IFS | as_nl) ;; #(
 
22161
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
22162
      *) { eval $ac_var=; unset $ac_var;} ;;
 
22163
      esac ;;
 
22164
    esac
 
22165
  done
 
22166
 
 
22167
  (set) 2>&1 |
 
22168
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
22169
    *${as_nl}ac_space=\ *)
 
22170
      # `set' does not quote correctly, so add quotes: double-quote
 
22171
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
22172
      sed -n \
 
22173
        "s/'/'\\\\''/g;
 
22174
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
22175
      ;; #(
 
22176
    *)
 
22177
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
22178
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
22179
      ;;
 
22180
    esac |
 
22181
    sort
 
22182
) |
 
22183
  sed '
 
22184
     /^ac_cv_env_/b end
 
22185
     t clear
 
22186
     :clear
 
22187
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
22188
     t end
 
22189
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
22190
     :end' >>confcache
 
22191
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
22192
  if test -w "$cache_file"; then
 
22193
    test "x$cache_file" != "x/dev/null" &&
 
22194
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
22195
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
22196
    cat confcache >$cache_file
 
22197
  else
 
22198
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
22199
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
22200
  fi
 
22201
fi
 
22202
rm -f confcache
 
22203
 
 
22204
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
22205
# Let make expand exec_prefix.
 
22206
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
22207
 
 
22208
DEFS=-DHAVE_CONFIG_H
 
22209
 
 
22210
ac_libobjs=
 
22211
ac_ltlibobjs=
 
22212
U=
 
22213
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
22214
  # 1. Remove the extension, and $U if already installed.
 
22215
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
22216
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
22217
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
22218
  #    will be set to the directory where LIBOBJS objects are built.
 
22219
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
22220
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
22221
done
 
22222
LIBOBJS=$ac_libobjs
 
22223
 
 
22224
LTLIBOBJS=$ac_ltlibobjs
 
22225
 
 
22226
 
 
22227
 if test -n "$EXEEXT"; then
 
22228
  am__EXEEXT_TRUE=
 
22229
  am__EXEEXT_FALSE='#'
 
22230
else
 
22231
  am__EXEEXT_TRUE='#'
 
22232
  am__EXEEXT_FALSE=
 
22233
fi
 
22234
 
 
22235
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
22236
  as_fn_error $? "conditional \"AMDEP\" was never defined.
 
22237
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22238
fi
 
22239
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
22240
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
22241
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22242
fi
 
22243
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
22244
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
22245
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22246
fi
 
22247
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
 
22248
  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
 
22249
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22250
fi
 
22251
 
 
22252
if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
 
22253
  as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
 
22254
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22255
fi
 
22256
 
 
22257
    gl_libobjs=
 
22258
    gl_ltlibobjs=
 
22259
    if test -n "$gl_LIBOBJS"; then
 
22260
      # Remove the extension.
 
22261
      sed_drop_objext='s/\.o$//;s/\.obj$//'
 
22262
      for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
 
22263
        gl_libobjs="$gl_libobjs $i.$ac_objext"
 
22264
        gl_ltlibobjs="$gl_ltlibobjs $i.lo"
 
22265
      done
 
22266
    fi
 
22267
    gl_LIBOBJS=$gl_libobjs
 
22268
 
 
22269
    gl_LTLIBOBJS=$gl_ltlibobjs
 
22270
 
 
22271
 
 
22272
 
 
22273
    gltests_libobjs=
 
22274
    gltests_ltlibobjs=
 
22275
    if test -n "$gltests_LIBOBJS"; then
 
22276
      # Remove the extension.
 
22277
      sed_drop_objext='s/\.o$//;s/\.obj$//'
 
22278
      for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
 
22279
        gltests_libobjs="$gltests_libobjs $i.$ac_objext"
 
22280
        gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
 
22281
      done
 
22282
    fi
 
22283
    gltests_LIBOBJS=$gltests_libobjs
 
22284
 
 
22285
    gltests_LTLIBOBJS=$gltests_ltlibobjs
 
22286
 
 
22287
 
 
22288
if test -z "${COND_emu_TRUE}" && test -z "${COND_emu_FALSE}"; then
 
22289
  as_fn_error $? "conditional \"COND_emu\" was never defined.
 
22290
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22291
fi
 
22292
if test -z "${COND_i386_pc_TRUE}" && test -z "${COND_i386_pc_FALSE}"; then
 
22293
  as_fn_error $? "conditional \"COND_i386_pc\" was never defined.
 
22294
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22295
fi
 
22296
if test -z "${COND_i386_efi_TRUE}" && test -z "${COND_i386_efi_FALSE}"; then
 
22297
  as_fn_error $? "conditional \"COND_i386_efi\" was never defined.
 
22298
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22299
fi
 
22300
if test -z "${COND_i386_qemu_TRUE}" && test -z "${COND_i386_qemu_FALSE}"; then
 
22301
  as_fn_error $? "conditional \"COND_i386_qemu\" was never defined.
 
22302
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22303
fi
 
22304
if test -z "${COND_i386_ieee1275_TRUE}" && test -z "${COND_i386_ieee1275_FALSE}"; then
 
22305
  as_fn_error $? "conditional \"COND_i386_ieee1275\" was never defined.
 
22306
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22307
fi
 
22308
if test -z "${COND_i386_coreboot_TRUE}" && test -z "${COND_i386_coreboot_FALSE}"; then
 
22309
  as_fn_error $? "conditional \"COND_i386_coreboot\" was never defined.
 
22310
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22311
fi
 
22312
if test -z "${COND_i386_multiboot_TRUE}" && test -z "${COND_i386_multiboot_FALSE}"; then
 
22313
  as_fn_error $? "conditional \"COND_i386_multiboot\" was never defined.
 
22314
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22315
fi
 
22316
if test -z "${COND_x86_64_efi_TRUE}" && test -z "${COND_x86_64_efi_FALSE}"; then
 
22317
  as_fn_error $? "conditional \"COND_x86_64_efi\" was never defined.
 
22318
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22319
fi
 
22320
if test -z "${COND_mips_yeeloong_TRUE}" && test -z "${COND_mips_yeeloong_FALSE}"; then
 
22321
  as_fn_error $? "conditional \"COND_mips_yeeloong\" was never defined.
 
22322
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22323
fi
 
22324
if test -z "${COND_mips_qemu_mips_TRUE}" && test -z "${COND_mips_qemu_mips_FALSE}"; then
 
22325
  as_fn_error $? "conditional \"COND_mips_qemu_mips\" was never defined.
 
22326
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22327
fi
 
22328
if test -z "${COND_sparc64_ieee1275_TRUE}" && test -z "${COND_sparc64_ieee1275_FALSE}"; then
 
22329
  as_fn_error $? "conditional \"COND_sparc64_ieee1275\" was never defined.
 
22330
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22331
fi
 
22332
if test -z "${COND_powerpc_ieee1275_TRUE}" && test -z "${COND_powerpc_ieee1275_FALSE}"; then
 
22333
  as_fn_error $? "conditional \"COND_powerpc_ieee1275\" was never defined.
 
22334
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22335
fi
 
22336
if test -z "${COND_mips_TRUE}" && test -z "${COND_mips_FALSE}"; then
 
22337
  as_fn_error $? "conditional \"COND_mips\" was never defined.
 
22338
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22339
fi
 
22340
if test -z "${COND_HOST_HURD_TRUE}" && test -z "${COND_HOST_HURD_FALSE}"; then
 
22341
  as_fn_error $? "conditional \"COND_HOST_HURD\" was never defined.
 
22342
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22343
fi
 
22344
if test -z "${COND_HOST_LINUX_TRUE}" && test -z "${COND_HOST_LINUX_FALSE}"; then
 
22345
  as_fn_error $? "conditional \"COND_HOST_LINUX\" was never defined.
 
22346
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22347
fi
 
22348
if test -z "${COND_HOST_NETBSD_TRUE}" && test -z "${COND_HOST_NETBSD_FALSE}"; then
 
22349
  as_fn_error $? "conditional \"COND_HOST_NETBSD\" was never defined.
 
22350
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22351
fi
 
22352
if test -z "${COND_HOST_WINDOWS_TRUE}" && test -z "${COND_HOST_WINDOWS_FALSE}"; then
 
22353
  as_fn_error $? "conditional \"COND_HOST_WINDOWS\" was never defined.
 
22354
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22355
fi
 
22356
if test -z "${COND_HOST_KFREEBSD_TRUE}" && test -z "${COND_HOST_KFREEBSD_FALSE}"; then
 
22357
  as_fn_error $? "conditional \"COND_HOST_KFREEBSD\" was never defined.
 
22358
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22359
fi
 
22360
if test -z "${COND_MAN_PAGES_TRUE}" && test -z "${COND_MAN_PAGES_FALSE}"; then
 
22361
  as_fn_error $? "conditional \"COND_MAN_PAGES\" was never defined.
 
22362
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22363
fi
 
22364
if test -z "${COND_GRUB_EMU_USB_TRUE}" && test -z "${COND_GRUB_EMU_USB_FALSE}"; then
 
22365
  as_fn_error $? "conditional \"COND_GRUB_EMU_USB\" was never defined.
 
22366
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22367
fi
 
22368
if test -z "${COND_GRUB_EMU_SDL_TRUE}" && test -z "${COND_GRUB_EMU_SDL_FALSE}"; then
 
22369
  as_fn_error $? "conditional \"COND_GRUB_EMU_SDL\" was never defined.
 
22370
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22371
fi
 
22372
if test -z "${COND_GRUB_EMU_PCI_TRUE}" && test -z "${COND_GRUB_EMU_PCI_FALSE}"; then
 
22373
  as_fn_error $? "conditional \"COND_GRUB_EMU_PCI\" was never defined.
 
22374
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22375
fi
 
22376
if test -z "${COND_GRUB_MKFONT_TRUE}" && test -z "${COND_GRUB_MKFONT_FALSE}"; then
 
22377
  as_fn_error $? "conditional \"COND_GRUB_MKFONT\" was never defined.
 
22378
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22379
fi
 
22380
if test -z "${COND_HAVE_FONT_SOURCE_TRUE}" && test -z "${COND_HAVE_FONT_SOURCE_FALSE}"; then
 
22381
  as_fn_error $? "conditional \"COND_HAVE_FONT_SOURCE\" was never defined.
 
22382
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22383
fi
 
22384
if test -z "${COND_GRUB_PE2ELF_TRUE}" && test -z "${COND_GRUB_PE2ELF_FALSE}"; then
 
22385
  as_fn_error $? "conditional \"COND_GRUB_PE2ELF\" was never defined.
 
22386
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22387
fi
 
22388
if test -z "${COND_APPLE_CC_TRUE}" && test -z "${COND_APPLE_CC_FALSE}"; then
 
22389
  as_fn_error $? "conditional \"COND_APPLE_CC\" was never defined.
 
22390
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22391
fi
 
22392
if test -z "${COND_ENABLE_EFIEMU_TRUE}" && test -z "${COND_ENABLE_EFIEMU_FALSE}"; then
 
22393
  as_fn_error $? "conditional \"COND_ENABLE_EFIEMU\" was never defined.
 
22394
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22395
fi
 
22396
if test -z "${COND_HAVE_ASM_USCORE_TRUE}" && test -z "${COND_HAVE_ASM_USCORE_FALSE}"; then
 
22397
  as_fn_error $? "conditional \"COND_HAVE_ASM_USCORE\" was never defined.
 
22398
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22399
fi
 
22400
 
 
22401
: ${CONFIG_STATUS=./config.status}
 
22402
ac_write_fail=0
 
22403
ac_clean_files_save=$ac_clean_files
 
22404
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
22405
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
22406
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
22407
as_write_fail=0
 
22408
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
22409
#! $SHELL
 
22410
# Generated by $as_me.
 
22411
# Run this file to recreate the current configuration.
 
22412
# Compiler output produced by configure, useful for debugging
 
22413
# configure, is in config.log if it exists.
 
22414
 
 
22415
debug=false
 
22416
ac_cs_recheck=false
 
22417
ac_cs_silent=false
 
22418
 
 
22419
SHELL=\${CONFIG_SHELL-$SHELL}
 
22420
export SHELL
 
22421
_ASEOF
 
22422
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
22423
## -------------------- ##
 
22424
## M4sh Initialization. ##
 
22425
## -------------------- ##
 
22426
 
 
22427
# Be more Bourne compatible
 
22428
DUALCASE=1; export DUALCASE # for MKS sh
 
22429
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
22430
  emulate sh
 
22431
  NULLCMD=:
 
22432
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
22433
  # is contrary to our usage.  Disable this feature.
 
22434
  alias -g '${1+"$@"}'='"$@"'
 
22435
  setopt NO_GLOB_SUBST
 
22436
else
 
22437
  case `(set -o) 2>/dev/null` in #(
 
22438
  *posix*) :
 
22439
    set -o posix ;; #(
 
22440
  *) :
 
22441
     ;;
 
22442
esac
 
22443
fi
 
22444
 
 
22445
 
 
22446
as_nl='
 
22447
'
 
22448
export as_nl
 
22449
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
22450
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
22451
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
22452
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
22453
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
22454
# but without wasting forks for bash or zsh.
 
22455
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
22456
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
22457
  as_echo='print -r --'
 
22458
  as_echo_n='print -rn --'
 
22459
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
22460
  as_echo='printf %s\n'
 
22461
  as_echo_n='printf %s'
 
22462
else
 
22463
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
22464
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
22465
    as_echo_n='/usr/ucb/echo -n'
 
22466
  else
 
22467
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
22468
    as_echo_n_body='eval
 
22469
      arg=$1;
 
22470
      case $arg in #(
 
22471
      *"$as_nl"*)
 
22472
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
22473
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
22474
      esac;
 
22475
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
22476
    '
 
22477
    export as_echo_n_body
 
22478
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
22479
  fi
 
22480
  export as_echo_body
 
22481
  as_echo='sh -c $as_echo_body as_echo'
 
22482
fi
 
22483
 
 
22484
# The user is always right.
 
22485
if test "${PATH_SEPARATOR+set}" != set; then
 
22486
  PATH_SEPARATOR=:
 
22487
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
22488
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
22489
      PATH_SEPARATOR=';'
 
22490
  }
 
22491
fi
 
22492
 
 
22493
 
 
22494
# IFS
 
22495
# We need space, tab and new line, in precisely that order.  Quoting is
 
22496
# there to prevent editors from complaining about space-tab.
 
22497
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
22498
# splitting by setting IFS to empty value.)
 
22499
IFS=" ""        $as_nl"
 
22500
 
 
22501
# Find who we are.  Look in the path if we contain no directory separator.
 
22502
case $0 in #((
 
22503
  *[\\/]* ) as_myself=$0 ;;
 
22504
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22505
for as_dir in $PATH
 
22506
do
 
22507
  IFS=$as_save_IFS
 
22508
  test -z "$as_dir" && as_dir=.
 
22509
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
22510
  done
 
22511
IFS=$as_save_IFS
 
22512
 
 
22513
     ;;
 
22514
esac
 
22515
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
22516
# in which case we are not to be found in the path.
 
22517
if test "x$as_myself" = x; then
 
22518
  as_myself=$0
 
22519
fi
 
22520
if test ! -f "$as_myself"; then
 
22521
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
22522
  exit 1
 
22523
fi
 
22524
 
 
22525
# Unset variables that we do not need and which cause bugs (e.g. in
 
22526
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
22527
# suppresses any "Segmentation fault" message there.  '((' could
 
22528
# trigger a bug in pdksh 5.2.14.
 
22529
for as_var in BASH_ENV ENV MAIL MAILPATH
 
22530
do eval test x\${$as_var+set} = xset \
 
22531
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
22532
done
 
22533
PS1='$ '
 
22534
PS2='> '
 
22535
PS4='+ '
 
22536
 
 
22537
# NLS nuisances.
 
22538
LC_ALL=C
 
22539
export LC_ALL
 
22540
LANGUAGE=C
 
22541
export LANGUAGE
 
22542
 
 
22543
# CDPATH.
 
22544
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
22545
 
 
22546
 
 
22547
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
22548
# ----------------------------------------
 
22549
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
22550
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
22551
# script with STATUS, using 1 if that was 0.
 
22552
as_fn_error ()
 
22553
{
 
22554
  as_status=$1; test $as_status -eq 0 && as_status=1
 
22555
  if test "$4"; then
 
22556
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
22557
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
22558
  fi
 
22559
  $as_echo "$as_me: error: $2" >&2
 
22560
  as_fn_exit $as_status
 
22561
} # as_fn_error
 
22562
 
 
22563
 
 
22564
# as_fn_set_status STATUS
 
22565
# -----------------------
 
22566
# Set $? to STATUS, without forking.
 
22567
as_fn_set_status ()
 
22568
{
 
22569
  return $1
 
22570
} # as_fn_set_status
 
22571
 
 
22572
# as_fn_exit STATUS
 
22573
# -----------------
 
22574
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
22575
as_fn_exit ()
 
22576
{
 
22577
  set +e
 
22578
  as_fn_set_status $1
 
22579
  exit $1
 
22580
} # as_fn_exit
 
22581
 
 
22582
# as_fn_unset VAR
 
22583
# ---------------
 
22584
# Portably unset VAR.
 
22585
as_fn_unset ()
 
22586
{
 
22587
  { eval $1=; unset $1;}
 
22588
}
 
22589
as_unset=as_fn_unset
 
22590
# as_fn_append VAR VALUE
 
22591
# ----------------------
 
22592
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
22593
# advantage of any shell optimizations that allow amortized linear growth over
 
22594
# repeated appends, instead of the typical quadratic growth present in naive
 
22595
# implementations.
 
22596
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
22597
  eval 'as_fn_append ()
 
22598
  {
 
22599
    eval $1+=\$2
 
22600
  }'
 
22601
else
 
22602
  as_fn_append ()
 
22603
  {
 
22604
    eval $1=\$$1\$2
 
22605
  }
 
22606
fi # as_fn_append
 
22607
 
 
22608
# as_fn_arith ARG...
 
22609
# ------------------
 
22610
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
22611
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
22612
# must be portable across $(()) and expr.
 
22613
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
22614
  eval 'as_fn_arith ()
 
22615
  {
 
22616
    as_val=$(( $* ))
 
22617
  }'
 
22618
else
 
22619
  as_fn_arith ()
 
22620
  {
 
22621
    as_val=`expr "$@" || test $? -eq 1`
 
22622
  }
 
22623
fi # as_fn_arith
 
22624
 
 
22625
 
 
22626
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
22627
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
22628
  as_expr=expr
 
22629
else
 
22630
  as_expr=false
 
22631
fi
 
22632
 
 
22633
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
22634
  as_basename=basename
 
22635
else
 
22636
  as_basename=false
 
22637
fi
 
22638
 
 
22639
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
22640
  as_dirname=dirname
 
22641
else
 
22642
  as_dirname=false
 
22643
fi
 
22644
 
 
22645
as_me=`$as_basename -- "$0" ||
 
22646
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
22647
         X"$0" : 'X\(//\)$' \| \
 
22648
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
22649
$as_echo X/"$0" |
 
22650
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
22651
            s//\1/
 
22652
            q
 
22653
          }
 
22654
          /^X\/\(\/\/\)$/{
 
22655
            s//\1/
 
22656
            q
 
22657
          }
 
22658
          /^X\/\(\/\).*/{
 
22659
            s//\1/
 
22660
            q
 
22661
          }
 
22662
          s/.*/./; q'`
 
22663
 
 
22664
# Avoid depending upon Character Ranges.
 
22665
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
22666
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
22667
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
22668
as_cr_digits='0123456789'
 
22669
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
22670
 
 
22671
ECHO_C= ECHO_N= ECHO_T=
 
22672
case `echo -n x` in #(((((
 
22673
-n*)
 
22674
  case `echo 'xy\c'` in
 
22675
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
22676
  xy)  ECHO_C='\c';;
 
22677
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
22678
       ECHO_T=' ';;
 
22679
  esac;;
 
22680
*)
 
22681
  ECHO_N='-n';;
 
22682
esac
 
22683
 
 
22684
rm -f conf$$ conf$$.exe conf$$.file
 
22685
if test -d conf$$.dir; then
 
22686
  rm -f conf$$.dir/conf$$.file
 
22687
else
 
22688
  rm -f conf$$.dir
 
22689
  mkdir conf$$.dir 2>/dev/null
 
22690
fi
 
22691
if (echo >conf$$.file) 2>/dev/null; then
 
22692
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
22693
    as_ln_s='ln -s'
 
22694
    # ... but there are two gotchas:
 
22695
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
22696
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
22697
    # In both cases, we have to default to `cp -p'.
 
22698
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
22699
      as_ln_s='cp -p'
 
22700
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
22701
    as_ln_s=ln
 
22702
  else
 
22703
    as_ln_s='cp -p'
 
22704
  fi
 
22705
else
 
22706
  as_ln_s='cp -p'
 
22707
fi
 
22708
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
22709
rmdir conf$$.dir 2>/dev/null
 
22710
 
 
22711
 
 
22712
# as_fn_mkdir_p
 
22713
# -------------
 
22714
# Create "$as_dir" as a directory, including parents if necessary.
 
22715
as_fn_mkdir_p ()
 
22716
{
 
22717
 
 
22718
  case $as_dir in #(
 
22719
  -*) as_dir=./$as_dir;;
 
22720
  esac
 
22721
  test -d "$as_dir" || eval $as_mkdir_p || {
 
22722
    as_dirs=
 
22723
    while :; do
 
22724
      case $as_dir in #(
 
22725
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
22726
      *) as_qdir=$as_dir;;
 
22727
      esac
 
22728
      as_dirs="'$as_qdir' $as_dirs"
 
22729
      as_dir=`$as_dirname -- "$as_dir" ||
 
22730
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22731
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
22732
         X"$as_dir" : 'X\(//\)$' \| \
 
22733
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
22734
$as_echo X"$as_dir" |
 
22735
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
22736
            s//\1/
 
22737
            q
 
22738
          }
 
22739
          /^X\(\/\/\)[^/].*/{
 
22740
            s//\1/
 
22741
            q
 
22742
          }
 
22743
          /^X\(\/\/\)$/{
 
22744
            s//\1/
 
22745
            q
 
22746
          }
 
22747
          /^X\(\/\).*/{
 
22748
            s//\1/
 
22749
            q
 
22750
          }
 
22751
          s/.*/./; q'`
 
22752
      test -d "$as_dir" && break
 
22753
    done
 
22754
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
22755
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
22756
 
 
22757
 
 
22758
} # as_fn_mkdir_p
 
22759
if mkdir -p . 2>/dev/null; then
 
22760
  as_mkdir_p='mkdir -p "$as_dir"'
 
22761
else
 
22762
  test -d ./-p && rmdir ./-p
 
22763
  as_mkdir_p=false
 
22764
fi
 
22765
 
 
22766
if test -x / >/dev/null 2>&1; then
 
22767
  as_test_x='test -x'
 
22768
else
 
22769
  if ls -dL / >/dev/null 2>&1; then
 
22770
    as_ls_L_option=L
 
22771
  else
 
22772
    as_ls_L_option=
 
22773
  fi
 
22774
  as_test_x='
 
22775
    eval sh -c '\''
 
22776
      if test -d "$1"; then
 
22777
        test -d "$1/.";
 
22778
      else
 
22779
        case $1 in #(
 
22780
        -*)set "./$1";;
 
22781
        esac;
 
22782
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
22783
        ???[sx]*):;;*)false;;esac;fi
 
22784
    '\'' sh
 
22785
  '
 
22786
fi
 
22787
as_executable_p=$as_test_x
 
22788
 
 
22789
# Sed expression to map a string onto a valid CPP name.
 
22790
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
22791
 
 
22792
# Sed expression to map a string onto a valid variable name.
 
22793
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
22794
 
 
22795
 
 
22796
exec 6>&1
 
22797
## ----------------------------------- ##
 
22798
## Main body of $CONFIG_STATUS script. ##
 
22799
## ----------------------------------- ##
 
22800
_ASEOF
 
22801
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
22802
 
 
22803
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22804
# Save the log message, to keep $0 and so on meaningful, and to
 
22805
# report actual input values of CONFIG_FILES etc. instead of their
 
22806
# values after options handling.
 
22807
ac_log="
 
22808
This file was extended by GRUB $as_me 1.99~20101119-1, which was
 
22809
generated by GNU Autoconf 2.67.  Invocation command line was
 
22810
 
 
22811
  CONFIG_FILES    = $CONFIG_FILES
 
22812
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
22813
  CONFIG_LINKS    = $CONFIG_LINKS
 
22814
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
22815
  $ $0 $@
 
22816
 
 
22817
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
22818
"
 
22819
 
 
22820
_ACEOF
 
22821
 
 
22822
case $ac_config_files in *"
 
22823
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
22824
esac
 
22825
 
 
22826
case $ac_config_headers in *"
 
22827
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
22828
esac
 
22829
 
 
22830
 
 
22831
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22832
# Files that config.status was made for.
 
22833
config_files="$ac_config_files"
 
22834
config_headers="$ac_config_headers"
 
22835
config_links="$ac_config_links"
 
22836
config_commands="$ac_config_commands"
 
22837
 
 
22838
_ACEOF
 
22839
 
 
22840
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22841
ac_cs_usage="\
 
22842
\`$as_me' instantiates files and other configuration actions
 
22843
from templates according to the current configuration.  Unless the files
 
22844
and actions are specified as TAGs, all are instantiated by default.
 
22845
 
 
22846
Usage: $0 [OPTION]... [TAG]...
 
22847
 
 
22848
  -h, --help       print this help, then exit
 
22849
  -V, --version    print version number and configuration settings, then exit
 
22850
      --config     print configuration, then exit
 
22851
  -q, --quiet, --silent
 
22852
                   do not print progress messages
 
22853
  -d, --debug      don't remove temporary files
 
22854
      --recheck    update $as_me by reconfiguring in the same conditions
 
22855
      --file=FILE[:TEMPLATE]
 
22856
                   instantiate the configuration file FILE
 
22857
      --header=FILE[:TEMPLATE]
 
22858
                   instantiate the configuration header FILE
 
22859
 
 
22860
Configuration files:
 
22861
$config_files
 
22862
 
 
22863
Configuration headers:
 
22864
$config_headers
 
22865
 
 
22866
Configuration links:
 
22867
$config_links
 
22868
 
 
22869
Configuration commands:
 
22870
$config_commands
 
22871
 
 
22872
Report bugs to <bug-grub@gnu.org>."
 
22873
 
 
22874
_ACEOF
 
22875
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22876
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
22877
ac_cs_version="\\
 
22878
GRUB config.status 1.99~20101119-1
 
22879
configured by $0, generated by GNU Autoconf 2.67,
 
22880
  with options \\"\$ac_cs_config\\"
 
22881
 
 
22882
Copyright (C) 2010 Free Software Foundation, Inc.
 
22883
This config.status script is free software; the Free Software Foundation
 
22884
gives unlimited permission to copy, distribute and modify it."
 
22885
 
 
22886
ac_pwd='$ac_pwd'
 
22887
srcdir='$srcdir'
 
22888
INSTALL='$INSTALL'
 
22889
MKDIR_P='$MKDIR_P'
 
22890
AWK='$AWK'
 
22891
test -n "\$AWK" || AWK=awk
 
22892
_ACEOF
 
22893
 
 
22894
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22895
# The default lists apply if the user does not specify any file.
 
22896
ac_need_defaults=:
 
22897
while test $# != 0
 
22898
do
 
22899
  case $1 in
 
22900
  --*=?*)
 
22901
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
22902
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
22903
    ac_shift=:
 
22904
    ;;
 
22905
  --*=)
 
22906
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
22907
    ac_optarg=
 
22908
    ac_shift=:
 
22909
    ;;
 
22910
  *)
 
22911
    ac_option=$1
 
22912
    ac_optarg=$2
 
22913
    ac_shift=shift
 
22914
    ;;
 
22915
  esac
 
22916
 
 
22917
  case $ac_option in
 
22918
  # Handling of the options.
 
22919
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
22920
    ac_cs_recheck=: ;;
 
22921
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
22922
    $as_echo "$ac_cs_version"; exit ;;
 
22923
  --config | --confi | --conf | --con | --co | --c )
 
22924
    $as_echo "$ac_cs_config"; exit ;;
 
22925
  --debug | --debu | --deb | --de | --d | -d )
 
22926
    debug=: ;;
 
22927
  --file | --fil | --fi | --f )
 
22928
    $ac_shift
 
22929
    case $ac_optarg in
 
22930
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
22931
    '') as_fn_error $? "missing file argument" ;;
 
22932
    esac
 
22933
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
22934
    ac_need_defaults=false;;
 
22935
  --header | --heade | --head | --hea )
 
22936
    $ac_shift
 
22937
    case $ac_optarg in
 
22938
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
22939
    esac
 
22940
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
22941
    ac_need_defaults=false;;
 
22942
  --he | --h)
 
22943
    # Conflict between --help and --header
 
22944
    as_fn_error $? "ambiguous option: \`$1'
 
22945
Try \`$0 --help' for more information.";;
 
22946
  --help | --hel | -h )
 
22947
    $as_echo "$ac_cs_usage"; exit ;;
 
22948
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
22949
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
22950
    ac_cs_silent=: ;;
 
22951
 
 
22952
  # This is an error.
 
22953
  -*) as_fn_error $? "unrecognized option: \`$1'
 
22954
Try \`$0 --help' for more information." ;;
 
22955
 
 
22956
  *) as_fn_append ac_config_targets " $1"
 
22957
     ac_need_defaults=false ;;
 
22958
 
 
22959
  esac
 
22960
  shift
 
22961
done
 
22962
 
 
22963
ac_configure_extra_args=
 
22964
 
 
22965
if $ac_cs_silent; then
 
22966
  exec 6>/dev/null
 
22967
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
22968
fi
 
22969
 
 
22970
_ACEOF
 
22971
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22972
if \$ac_cs_recheck; then
 
22973
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
22974
  shift
 
22975
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
22976
  CONFIG_SHELL='$SHELL'
 
22977
  export CONFIG_SHELL
 
22978
  exec "\$@"
 
22979
fi
 
22980
 
 
22981
_ACEOF
 
22982
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22983
exec 5>>config.log
 
22984
{
 
22985
  echo
 
22986
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
22987
## Running $as_me. ##
 
22988
_ASBOX
 
22989
  $as_echo "$ac_log"
 
22990
} >&5
 
22991
 
 
22992
_ACEOF
 
22993
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22994
#
 
22995
# INIT-COMMANDS
 
22996
#
 
22997
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
22998
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
 
22999
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
 
23000
    # from automake < 1.5.
 
23001
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
 
23002
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
 
23003
    LINGUAS="${LINGUAS-%UNSET%}"
 
23004
 
 
23005
 
 
23006
_ACEOF
 
23007
 
 
23008
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
23009
 
 
23010
# Handling of arguments.
 
23011
for ac_config_target in $ac_config_targets
 
23012
do
 
23013
  case $ac_config_target in
 
23014
    "config-util.h") CONFIG_HEADERS="$CONFIG_HEADERS config-util.h" ;;
 
23015
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
23016
    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
 
23017
    "include/grub/cpu") CONFIG_LINKS="$CONFIG_LINKS include/grub/cpu:include/grub/$target_cpu" ;;
 
23018
    "include/grub/machine") CONFIG_LINKS="$CONFIG_LINKS include/grub/machine:include/grub/$target_cpu/$platform" ;;
 
23019
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
23020
    "grub-core/Makefile") CONFIG_FILES="$CONFIG_FILES grub-core/Makefile" ;;
 
23021
    "grub-core/gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES grub-core/gnulib/Makefile" ;;
 
23022
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 
23023
    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
 
23024
    "util/bash-completion.d/Makefile") CONFIG_FILES="$CONFIG_FILES util/bash-completion.d/Makefile" ;;
 
23025
    "stamp-h") CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
 
23026
    "config.h") CONFIG_FILES="$CONFIG_FILES config.h" ;;
 
23027
 
 
23028
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
 
23029
  esac
 
23030
done
 
23031
 
 
23032
 
 
23033
# If the user did not use the arguments to specify the items to instantiate,
 
23034
# then the envvar interface is used.  Set only those that are not.
 
23035
# We use the long form for the default assignment because of an extremely
 
23036
# bizarre bug on SunOS 4.1.3.
 
23037
if $ac_need_defaults; then
 
23038
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
23039
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
23040
  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
 
23041
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
23042
fi
 
23043
 
 
23044
# Have a temporary directory for convenience.  Make it in the build tree
 
23045
# simply because there is no reason against having it here, and in addition,
 
23046
# creating and moving files from /tmp can sometimes cause problems.
 
23047
# Hook for its removal unless debugging.
 
23048
# Note that there is a small window in which the directory will not be cleaned:
 
23049
# after its creation but before its name has been assigned to `$tmp'.
 
23050
$debug ||
 
23051
{
 
23052
  tmp=
 
23053
  trap 'exit_status=$?
 
23054
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
23055
' 0
 
23056
  trap 'as_fn_exit 1' 1 2 13 15
 
23057
}
 
23058
# Create a (secure) tmp directory for tmp files.
 
23059
 
 
23060
{
 
23061
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
23062
  test -n "$tmp" && test -d "$tmp"
 
23063
}  ||
 
23064
{
 
23065
  tmp=./conf$$-$RANDOM
 
23066
  (umask 077 && mkdir "$tmp")
 
23067
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
23068
 
 
23069
# Set up the scripts for CONFIG_FILES section.
 
23070
# No need to generate them if there are no CONFIG_FILES.
 
23071
# This happens for instance with `./config.status config.h'.
 
23072
if test -n "$CONFIG_FILES"; then
 
23073
 
 
23074
 
 
23075
ac_cr=`echo X | tr X '\015'`
 
23076
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
23077
# But we know of no other shell where ac_cr would be empty at this
 
23078
# point, so we can use a bashism as a fallback.
 
23079
if test "x$ac_cr" = x; then
 
23080
  eval ac_cr=\$\'\\r\'
 
23081
fi
 
23082
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
23083
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
23084
  ac_cs_awk_cr='\\r'
 
23085
else
 
23086
  ac_cs_awk_cr=$ac_cr
 
23087
fi
 
23088
 
 
23089
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
23090
_ACEOF
 
23091
 
 
23092
 
 
23093
{
 
23094
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
23095
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
23096
  echo "_ACEOF"
 
23097
} >conf$$subs.sh ||
 
23098
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
23099
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 
23100
ac_delim='%!_!# '
 
23101
for ac_last_try in false false false false false :; do
 
23102
  . ./conf$$subs.sh ||
 
23103
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
23104
 
 
23105
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
23106
  if test $ac_delim_n = $ac_delim_num; then
 
23107
    break
 
23108
  elif $ac_last_try; then
 
23109
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
23110
  else
 
23111
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
23112
  fi
 
23113
done
 
23114
rm -f conf$$subs.sh
 
23115
 
 
23116
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
23117
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
23118
_ACEOF
 
23119
sed -n '
 
23120
h
 
23121
s/^/S["/; s/!.*/"]=/
 
23122
p
 
23123
g
 
23124
s/^[^!]*!//
 
23125
:repl
 
23126
t repl
 
23127
s/'"$ac_delim"'$//
 
23128
t delim
 
23129
:nl
 
23130
h
 
23131
s/\(.\{148\}\)..*/\1/
 
23132
t more1
 
23133
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
23134
p
 
23135
n
 
23136
b repl
 
23137
:more1
 
23138
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
23139
p
 
23140
g
 
23141
s/.\{148\}//
 
23142
t nl
 
23143
:delim
 
23144
h
 
23145
s/\(.\{148\}\)..*/\1/
 
23146
t more2
 
23147
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
23148
p
 
23149
b
 
23150
:more2
 
23151
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
23152
p
 
23153
g
 
23154
s/.\{148\}//
 
23155
t delim
 
23156
' <conf$$subs.awk | sed '
 
23157
/^[^""]/{
 
23158
  N
 
23159
  s/\n//
 
23160
}
 
23161
' >>$CONFIG_STATUS || ac_write_fail=1
 
23162
rm -f conf$$subs.awk
 
23163
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
23164
_ACAWK
 
23165
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
23166
  for (key in S) S_is_set[key] = 1
 
23167
  FS = ""
 
23168
 
 
23169
}
 
23170
{
 
23171
  line = $ 0
 
23172
  nfields = split(line, field, "@")
 
23173
  substed = 0
 
23174
  len = length(field[1])
 
23175
  for (i = 2; i < nfields; i++) {
 
23176
    key = field[i]
 
23177
    keylen = length(key)
 
23178
    if (S_is_set[key]) {
 
23179
      value = S[key]
 
23180
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
23181
      len += length(value) + length(field[++i])
 
23182
      substed = 1
 
23183
    } else
 
23184
      len += 1 + keylen
 
23185
  }
 
23186
 
 
23187
  print line
 
23188
}
 
23189
 
 
23190
_ACAWK
 
23191
_ACEOF
 
23192
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
23193
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
23194
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
23195
else
 
23196
  cat
 
23197
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
23198
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 
23199
_ACEOF
 
23200
 
 
23201
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
23202
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 
23203
# trailing colons and then remove the whole line if VPATH becomes empty
 
23204
# (actually we leave an empty line to preserve line numbers).
 
23205
if test "x$srcdir" = x.; then
 
23206
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
23207
h
 
23208
s///
 
23209
s/^/:/
 
23210
s/[      ]*$/:/
 
23211
s/:\$(srcdir):/:/g
 
23212
s/:\${srcdir}:/:/g
 
23213
s/:@srcdir@:/:/g
 
23214
s/^:*//
 
23215
s/:*$//
 
23216
x
 
23217
s/\(=[   ]*\).*/\1/
 
23218
G
 
23219
s/\n//
 
23220
s/^[^=]*=[       ]*$//
 
23221
}'
 
23222
fi
 
23223
 
 
23224
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
23225
fi # test -n "$CONFIG_FILES"
 
23226
 
 
23227
# Set up the scripts for CONFIG_HEADERS section.
 
23228
# No need to generate them if there are no CONFIG_HEADERS.
 
23229
# This happens for instance with `./config.status Makefile'.
 
23230
if test -n "$CONFIG_HEADERS"; then
 
23231
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
23232
BEGIN {
 
23233
_ACEOF
 
23234
 
 
23235
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
23236
# here-document in config.status, that substitutes the proper values into
 
23237
# config.h.in to produce config.h.
 
23238
 
 
23239
# Create a delimiter string that does not exist in confdefs.h, to ease
 
23240
# handling of long lines.
 
23241
ac_delim='%!_!# '
 
23242
for ac_last_try in false false :; do
 
23243
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
23244
  if test -z "$ac_t"; then
 
23245
    break
 
23246
  elif $ac_last_try; then
 
23247
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 
23248
  else
 
23249
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
23250
  fi
 
23251
done
 
23252
 
 
23253
# For the awk script, D is an array of macro values keyed by name,
 
23254
# likewise P contains macro parameters if any.  Preserve backslash
 
23255
# newline sequences.
 
23256
 
 
23257
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
23258
sed -n '
 
23259
s/.\{148\}/&'"$ac_delim"'/g
 
23260
t rset
 
23261
:rset
 
23262
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
23263
t def
 
23264
d
 
23265
:def
 
23266
s/\\$//
 
23267
t bsnl
 
23268
s/["\\]/\\&/g
 
23269
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
23270
D["\1"]=" \3"/p
 
23271
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
23272
d
 
23273
:bsnl
 
23274
s/["\\]/\\&/g
 
23275
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
23276
D["\1"]=" \3\\\\\\n"\\/p
 
23277
t cont
 
23278
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
23279
t cont
 
23280
d
 
23281
:cont
 
23282
n
 
23283
s/.\{148\}/&'"$ac_delim"'/g
 
23284
t clear
 
23285
:clear
 
23286
s/\\$//
 
23287
t bsnlc
 
23288
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
23289
d
 
23290
:bsnlc
 
23291
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
23292
b cont
 
23293
' <confdefs.h | sed '
 
23294
s/'"$ac_delim"'/"\\\
 
23295
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
23296
 
 
23297
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
23298
  for (key in D) D_is_set[key] = 1
 
23299
  FS = ""
 
23300
}
 
23301
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
23302
  line = \$ 0
 
23303
  split(line, arg, " ")
 
23304
  if (arg[1] == "#") {
 
23305
    defundef = arg[2]
 
23306
    mac1 = arg[3]
 
23307
  } else {
 
23308
    defundef = substr(arg[1], 2)
 
23309
    mac1 = arg[2]
 
23310
  }
 
23311
  split(mac1, mac2, "(") #)
 
23312
  macro = mac2[1]
 
23313
  prefix = substr(line, 1, index(line, defundef) - 1)
 
23314
  if (D_is_set[macro]) {
 
23315
    # Preserve the white space surrounding the "#".
 
23316
    print prefix "define", macro P[macro] D[macro]
 
23317
    next
 
23318
  } else {
 
23319
    # Replace #undef with comments.  This is necessary, for example,
 
23320
    # in the case of _POSIX_SOURCE, which is predefined and required
 
23321
    # on some systems where configure will not decide to define it.
 
23322
    if (defundef == "undef") {
 
23323
      print "/*", prefix defundef, macro, "*/"
 
23324
      next
 
23325
    }
 
23326
  }
 
23327
}
 
23328
{ print }
 
23329
_ACAWK
 
23330
_ACEOF
 
23331
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
23332
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 
23333
fi # test -n "$CONFIG_HEADERS"
 
23334
 
 
23335
 
 
23336
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
 
23337
shift
 
23338
for ac_tag
 
23339
do
 
23340
  case $ac_tag in
 
23341
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
23342
  esac
 
23343
  case $ac_mode$ac_tag in
 
23344
  :[FHL]*:*);;
 
23345
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
 
23346
  :[FH]-) ac_tag=-:-;;
 
23347
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
23348
  esac
 
23349
  ac_save_IFS=$IFS
 
23350
  IFS=:
 
23351
  set x $ac_tag
 
23352
  IFS=$ac_save_IFS
 
23353
  shift
 
23354
  ac_file=$1
 
23355
  shift
 
23356
 
 
23357
  case $ac_mode in
 
23358
  :L) ac_source=$1;;
 
23359
  :[FH])
 
23360
    ac_file_inputs=
 
23361
    for ac_f
 
23362
    do
 
23363
      case $ac_f in
 
23364
      -) ac_f="$tmp/stdin";;
 
23365
      *) # Look for the file first in the build tree, then in the source tree
 
23366
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
23367
         # because $ac_f cannot contain `:'.
 
23368
         test -f "$ac_f" ||
 
23369
           case $ac_f in
 
23370
           [\\/$]*) false;;
 
23371
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
23372
           esac ||
 
23373
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
 
23374
      esac
 
23375
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
23376
      as_fn_append ac_file_inputs " '$ac_f'"
 
23377
    done
 
23378
 
 
23379
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
23380
    # use $as_me), people would be surprised to read:
 
23381
    #    /* config.h.  Generated by config.status.  */
 
23382
    configure_input='Generated from '`
 
23383
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
23384
        `' by configure.'
 
23385
    if test x"$ac_file" != x-; then
 
23386
      configure_input="$ac_file.  $configure_input"
 
23387
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
23388
$as_echo "$as_me: creating $ac_file" >&6;}
 
23389
    fi
 
23390
    # Neutralize special characters interpreted by sed in replacement strings.
 
23391
    case $configure_input in #(
 
23392
    *\&* | *\|* | *\\* )
 
23393
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
23394
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
23395
    *) ac_sed_conf_input=$configure_input;;
 
23396
    esac
 
23397
 
 
23398
    case $ac_tag in
 
23399
    *:-:* | *:-) cat >"$tmp/stdin" \
 
23400
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
 
23401
    esac
 
23402
    ;;
 
23403
  esac
 
23404
 
 
23405
  ac_dir=`$as_dirname -- "$ac_file" ||
 
23406
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23407
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
23408
         X"$ac_file" : 'X\(//\)$' \| \
 
23409
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
23410
$as_echo X"$ac_file" |
 
23411
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23412
            s//\1/
 
23413
            q
 
23414
          }
 
23415
          /^X\(\/\/\)[^/].*/{
 
23416
            s//\1/
 
23417
            q
 
23418
          }
 
23419
          /^X\(\/\/\)$/{
 
23420
            s//\1/
 
23421
            q
 
23422
          }
 
23423
          /^X\(\/\).*/{
 
23424
            s//\1/
 
23425
            q
 
23426
          }
 
23427
          s/.*/./; q'`
 
23428
  as_dir="$ac_dir"; as_fn_mkdir_p
 
23429
  ac_builddir=.
 
23430
 
 
23431
case "$ac_dir" in
 
23432
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
23433
*)
 
23434
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
23435
  # A ".." for each directory in $ac_dir_suffix.
 
23436
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
23437
  case $ac_top_builddir_sub in
 
23438
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
23439
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
23440
  esac ;;
 
23441
esac
 
23442
ac_abs_top_builddir=$ac_pwd
 
23443
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
23444
# for backward compatibility:
 
23445
ac_top_builddir=$ac_top_build_prefix
 
23446
 
 
23447
case $srcdir in
 
23448
  .)  # We are building in place.
 
23449
    ac_srcdir=.
 
23450
    ac_top_srcdir=$ac_top_builddir_sub
 
23451
    ac_abs_top_srcdir=$ac_pwd ;;
 
23452
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
23453
    ac_srcdir=$srcdir$ac_dir_suffix;
 
23454
    ac_top_srcdir=$srcdir
 
23455
    ac_abs_top_srcdir=$srcdir ;;
 
23456
  *) # Relative name.
 
23457
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
23458
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
23459
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
23460
esac
 
23461
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
23462
 
 
23463
 
 
23464
  case $ac_mode in
 
23465
  :F)
 
23466
  #
 
23467
  # CONFIG_FILE
 
23468
  #
 
23469
 
 
23470
  case $INSTALL in
 
23471
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
23472
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
23473
  esac
 
23474
  ac_MKDIR_P=$MKDIR_P
 
23475
  case $MKDIR_P in
 
23476
  [\\/$]* | ?:[\\/]* ) ;;
 
23477
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
23478
  esac
 
23479
_ACEOF
 
23480
 
 
23481
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
23482
# If the template does not know about datarootdir, expand it.
 
23483
# FIXME: This hack should be removed a few years after 2.60.
 
23484
ac_datarootdir_hack=; ac_datarootdir_seen=
 
23485
ac_sed_dataroot='
 
23486
/datarootdir/ {
 
23487
  p
 
23488
  q
 
23489
}
 
23490
/@datadir@/p
 
23491
/@docdir@/p
 
23492
/@infodir@/p
 
23493
/@localedir@/p
 
23494
/@mandir@/p'
 
23495
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
23496
*datarootdir*) ac_datarootdir_seen=yes;;
 
23497
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
23498
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
23499
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
23500
_ACEOF
 
23501
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
23502
  ac_datarootdir_hack='
 
23503
  s&@datadir@&$datadir&g
 
23504
  s&@docdir@&$docdir&g
 
23505
  s&@infodir@&$infodir&g
 
23506
  s&@localedir@&$localedir&g
 
23507
  s&@mandir@&$mandir&g
 
23508
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
23509
esac
 
23510
_ACEOF
 
23511
 
 
23512
# Neutralize VPATH when `$srcdir' = `.'.
 
23513
# Shell code in configure.ac might set extrasub.
 
23514
# FIXME: do we really want to maintain this feature?
 
23515
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
23516
ac_sed_extra="$ac_vpsub
 
23517
$extrasub
 
23518
_ACEOF
 
23519
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
23520
:t
 
23521
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
23522
s|@configure_input@|$ac_sed_conf_input|;t t
 
23523
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
23524
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
23525
s&@srcdir@&$ac_srcdir&;t t
 
23526
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
23527
s&@top_srcdir@&$ac_top_srcdir&;t t
 
23528
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
23529
s&@builddir@&$ac_builddir&;t t
 
23530
s&@abs_builddir@&$ac_abs_builddir&;t t
 
23531
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
23532
s&@INSTALL@&$ac_INSTALL&;t t
 
23533
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
23534
$ac_datarootdir_hack
 
23535
"
 
23536
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
23537
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
23538
 
 
23539
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
23540
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
23541
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
23542
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
23543
which seems to be undefined.  Please make sure it is defined" >&5
 
23544
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
23545
which seems to be undefined.  Please make sure it is defined" >&2;}
 
23546
 
 
23547
  rm -f "$tmp/stdin"
 
23548
  case $ac_file in
 
23549
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
23550
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
23551
  esac \
 
23552
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
23553
 ;;
 
23554
  :H)
 
23555
  #
 
23556
  # CONFIG_HEADER
 
23557
  #
 
23558
  if test x"$ac_file" != x-; then
 
23559
    {
 
23560
      $as_echo "/* $configure_input  */" \
 
23561
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
23562
    } >"$tmp/config.h" \
 
23563
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
23564
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
23565
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
23566
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
23567
    else
 
23568
      rm -f "$ac_file"
 
23569
      mv "$tmp/config.h" "$ac_file" \
 
23570
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
23571
    fi
 
23572
  else
 
23573
    $as_echo "/* $configure_input  */" \
 
23574
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
23575
      || as_fn_error $? "could not create -" "$LINENO" 5
 
23576
  fi
 
23577
# Compute "$ac_file"'s index in $config_headers.
 
23578
_am_arg="$ac_file"
 
23579
_am_stamp_count=1
 
23580
for _am_header in $config_headers :; do
 
23581
  case $_am_header in
 
23582
    $_am_arg | $_am_arg:* )
 
23583
      break ;;
 
23584
    * )
 
23585
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
23586
  esac
 
23587
done
 
23588
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
23589
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23590
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
23591
         X"$_am_arg" : 'X\(//\)$' \| \
 
23592
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
23593
$as_echo X"$_am_arg" |
 
23594
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23595
            s//\1/
 
23596
            q
 
23597
          }
 
23598
          /^X\(\/\/\)[^/].*/{
 
23599
            s//\1/
 
23600
            q
 
23601
          }
 
23602
          /^X\(\/\/\)$/{
 
23603
            s//\1/
 
23604
            q
 
23605
          }
 
23606
          /^X\(\/\).*/{
 
23607
            s//\1/
 
23608
            q
 
23609
          }
 
23610
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
23611
 ;;
 
23612
  :L)
 
23613
  #
 
23614
  # CONFIG_LINK
 
23615
  #
 
23616
 
 
23617
  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
 
23618
    :
 
23619
  else
 
23620
    # Prefer the file from the source tree if names are identical.
 
23621
    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
 
23622
      ac_source=$srcdir/$ac_source
 
23623
    fi
 
23624
 
 
23625
    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
 
23626
$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
 
23627
 
 
23628
    if test ! -r "$ac_source"; then
 
23629
      as_fn_error $? "$ac_source: file not found" "$LINENO" 5
 
23630
    fi
 
23631
    rm -f "$ac_file"
 
23632
 
 
23633
    # Try a relative symlink, then a hard link, then a copy.
 
23634
    case $ac_source in
 
23635
    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
 
23636
        *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
 
23637
    esac
 
23638
    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
 
23639
      ln "$ac_source" "$ac_file" 2>/dev/null ||
 
23640
      cp -p "$ac_source" "$ac_file" ||
 
23641
      as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
 
23642
  fi
 
23643
 ;;
 
23644
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
23645
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
23646
 ;;
 
23647
  esac
 
23648
 
 
23649
 
 
23650
  case $ac_file$ac_mode in
 
23651
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
23652
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
23653
  # are listed without --file.  Let's play safe and only enable the eval
 
23654
  # if we detect the quoting.
 
23655
  case $CONFIG_FILES in
 
23656
  *\'*) eval set x "$CONFIG_FILES" ;;
 
23657
  *)   set x $CONFIG_FILES ;;
 
23658
  esac
 
23659
  shift
 
23660
  for mf
 
23661
  do
 
23662
    # Strip MF so we end up with the name of the file.
 
23663
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
23664
    # Check whether this is an Automake generated Makefile or not.
 
23665
    # We used to match only the files named `Makefile.in', but
 
23666
    # some people rename them; so instead we look at the file content.
 
23667
    # Grep'ing the first line is not enough: some people post-process
 
23668
    # each Makefile.in and add a new line on top of each file to say so.
 
23669
    # Grep'ing the whole file is not good either: AIX grep has a line
 
23670
    # limit of 2048, but all sed's we know have understand at least 4000.
 
23671
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
23672
      dirpart=`$as_dirname -- "$mf" ||
 
23673
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23674
         X"$mf" : 'X\(//\)[^/]' \| \
 
23675
         X"$mf" : 'X\(//\)$' \| \
 
23676
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
23677
$as_echo X"$mf" |
 
23678
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23679
            s//\1/
 
23680
            q
 
23681
          }
 
23682
          /^X\(\/\/\)[^/].*/{
 
23683
            s//\1/
 
23684
            q
 
23685
          }
 
23686
          /^X\(\/\/\)$/{
 
23687
            s//\1/
 
23688
            q
 
23689
          }
 
23690
          /^X\(\/\).*/{
 
23691
            s//\1/
 
23692
            q
 
23693
          }
 
23694
          s/.*/./; q'`
 
23695
    else
 
23696
      continue
 
23697
    fi
 
23698
    # Extract the definition of DEPDIR, am__include, and am__quote
 
23699
    # from the Makefile without running `make'.
 
23700
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
23701
    test -z "$DEPDIR" && continue
 
23702
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
23703
    test -z "am__include" && continue
 
23704
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
23705
    # When using ansi2knr, U may be empty or an underscore; expand it
 
23706
    U=`sed -n 's/^U = //p' < "$mf"`
 
23707
    # Find all dependency output files, they are included files with
 
23708
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
23709
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
23710
    # expansion.
 
23711
    for file in `sed -n "
 
23712
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
23713
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
23714
      # Make sure the directory exists.
 
23715
      test -f "$dirpart/$file" && continue
 
23716
      fdir=`$as_dirname -- "$file" ||
 
23717
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23718
         X"$file" : 'X\(//\)[^/]' \| \
 
23719
         X"$file" : 'X\(//\)$' \| \
 
23720
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
23721
$as_echo X"$file" |
 
23722
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23723
            s//\1/
 
23724
            q
 
23725
          }
 
23726
          /^X\(\/\/\)[^/].*/{
 
23727
            s//\1/
 
23728
            q
 
23729
          }
 
23730
          /^X\(\/\/\)$/{
 
23731
            s//\1/
 
23732
            q
 
23733
          }
 
23734
          /^X\(\/\).*/{
 
23735
            s//\1/
 
23736
            q
 
23737
          }
 
23738
          s/.*/./; q'`
 
23739
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
23740
      # echo "creating $dirpart/$file"
 
23741
      echo '# dummy' > "$dirpart/$file"
 
23742
    done
 
23743
  done
 
23744
}
 
23745
 ;;
 
23746
    "po-directories":C)
 
23747
    for ac_file in $CONFIG_FILES; do
 
23748
      # Support "outfile[:infile[:infile...]]"
 
23749
      case "$ac_file" in
 
23750
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
23751
      esac
 
23752
      # PO directories have a Makefile.in generated from Makefile.in.in.
 
23753
      case "$ac_file" in */Makefile.in)
 
23754
        # Adjust a relative srcdir.
 
23755
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
 
23756
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
 
23757
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
 
23758
        # In autoconf-2.13 it is called $ac_given_srcdir.
 
23759
        # In autoconf-2.50 it is called $srcdir.
 
23760
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
 
23761
        case "$ac_given_srcdir" in
 
23762
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
 
23763
          /*) top_srcdir="$ac_given_srcdir" ;;
 
23764
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
23765
        esac
 
23766
        # Treat a directory as a PO directory if and only if it has a
 
23767
        # POTFILES.in file. This allows packages to have multiple PO
 
23768
        # directories under different names or in different locations.
 
23769
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
 
23770
          rm -f "$ac_dir/POTFILES"
 
23771
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
 
23772
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
 
23773
          POMAKEFILEDEPS="POTFILES.in"
 
23774
          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
 
23775
          # on $ac_dir but don't depend on user-specified configuration
 
23776
          # parameters.
 
23777
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
 
23778
            # The LINGUAS file contains the set of available languages.
 
23779
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
 
23780
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
 
23781
            fi
 
23782
            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
 
23783
            # Hide the ALL_LINGUAS assigment from automake < 1.5.
 
23784
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
 
23785
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
 
23786
          else
 
23787
            # The set of available languages was given in configure.in.
 
23788
            # Hide the ALL_LINGUAS assigment from automake < 1.5.
 
23789
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
 
23790
          fi
 
23791
          # Compute POFILES
 
23792
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
 
23793
          # Compute UPDATEPOFILES
 
23794
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
 
23795
          # Compute DUMMYPOFILES
 
23796
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
 
23797
          # Compute GMOFILES
 
23798
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
 
23799
          case "$ac_given_srcdir" in
 
23800
            .) srcdirpre= ;;
 
23801
            *) srcdirpre='$(srcdir)/' ;;
 
23802
          esac
 
23803
          POFILES=
 
23804
          UPDATEPOFILES=
 
23805
          DUMMYPOFILES=
 
23806
          GMOFILES=
 
23807
          for lang in $ALL_LINGUAS; do
 
23808
            POFILES="$POFILES $srcdirpre$lang.po"
 
23809
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
 
23810
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
 
23811
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
 
23812
          done
 
23813
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
 
23814
          # environment variable.
 
23815
          INST_LINGUAS=
 
23816
          if test -n "$ALL_LINGUAS"; then
 
23817
            for presentlang in $ALL_LINGUAS; do
 
23818
              useit=no
 
23819
              if test "%UNSET%" != "$LINGUAS"; then
 
23820
                desiredlanguages="$LINGUAS"
 
23821
              else
 
23822
                desiredlanguages="$ALL_LINGUAS"
 
23823
              fi
 
23824
              for desiredlang in $desiredlanguages; do
 
23825
                # Use the presentlang catalog if desiredlang is
 
23826
                #   a. equal to presentlang, or
 
23827
                #   b. a variant of presentlang (because in this case,
 
23828
                #      presentlang can be used as a fallback for messages
 
23829
                #      which are not translated in the desiredlang catalog).
 
23830
                case "$desiredlang" in
 
23831
                  "$presentlang"*) useit=yes;;
 
23832
                esac
 
23833
              done
 
23834
              if test $useit = yes; then
 
23835
                INST_LINGUAS="$INST_LINGUAS $presentlang"
 
23836
              fi
 
23837
            done
 
23838
          fi
 
23839
          CATALOGS=
 
23840
          if test -n "$INST_LINGUAS"; then
 
23841
            for lang in $INST_LINGUAS; do
 
23842
              CATALOGS="$CATALOGS $lang.gmo"
 
23843
            done
 
23844
          fi
 
23845
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
 
23846
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
 
23847
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
 
23848
            if test -f "$f"; then
 
23849
              case "$f" in
 
23850
                *.orig | *.bak | *~) ;;
 
23851
                *) cat "$f" >> "$ac_dir/Makefile" ;;
 
23852
              esac
 
23853
            fi
 
23854
          done
 
23855
        fi
 
23856
        ;;
 
23857
      esac
 
23858
    done ;;
 
23859
    "stamp-h":F) echo timestamp > stamp-h ;;
 
23860
 
 
23861
  esac
 
23862
done # for ac_tag
 
23863
 
 
23864
 
 
23865
as_fn_exit 0
 
23866
_ACEOF
 
23867
ac_clean_files=$ac_clean_files_save
 
23868
 
 
23869
test $ac_write_fail = 0 ||
 
23870
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
23871
 
 
23872
 
 
23873
# configure is writing to config.log, and then calls config.status.
 
23874
# config.status does its own redirection, appending to config.log.
 
23875
# Unfortunately, on DOS this fails, as config.log is still kept open
 
23876
# by configure, so config.status won't be able to write to it; its
 
23877
# output is simply discarded.  So we exec the FD to /dev/null,
 
23878
# effectively closing config.log, so it can be properly (re)opened and
 
23879
# appended to by config.status.  When coming back to configure, we
 
23880
# need to make the FD available again.
 
23881
if test "$no_create" != yes; then
 
23882
  ac_cs_success=:
 
23883
  ac_config_status_args=
 
23884
  test "$silent" = yes &&
 
23885
    ac_config_status_args="$ac_config_status_args --quiet"
 
23886
  exec 5>/dev/null
 
23887
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
23888
  exec 5>>config.log
 
23889
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
23890
  # would make configure fail if this is the last instruction.
 
23891
  $ac_cs_success || as_fn_exit 1
 
23892
fi
 
23893
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
23894
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
23895
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
23896
fi
 
23897
 
 
23898
 
 
23899
echo "*******************************************************"
 
23900
echo GRUB2 will be compiled with following components:
 
23901
echo Platform: "$target_cpu"-"$platform"
 
23902
if [ x"$platform" = xemu ]; then
 
23903
if [ x"$grub_emu_usb_excuse" = x ]; then
 
23904
echo USB support for grub-emu: Yes
 
23905
else
 
23906
echo USB support for grub-emu: No "($grub_emu_usb_excuse)"
 
23907
fi
 
23908
if [ x"$grub_emu_sdl_excuse" = x ]; then
 
23909
echo SDL support for grub-emu: Yes
 
23910
else
 
23911
echo SDL support for grub-emu: No "($grub_emu_sdl_excuse)"
 
23912
fi
 
23913
if [ x"$grub_emu_pci_excuse" = x ]; then
 
23914
echo PCI support for grub-emu: Yes
 
23915
else
 
23916
echo PCI support for grub-emu: No "($grub_emu_pci_excuse)"
 
23917
fi
 
23918
fi
 
23919
if test x"$device_mapper_excuse" = x ; then
 
23920
echo With devmapper support: Yes
 
23921
else
 
23922
echo With devmapper support: No "($device_mapper_excuse)"
 
23923
fi
 
23924
if [ x"$enable_mm_debug" = xyes ]; then
 
23925
echo With memory debugging: Yes
 
23926
else
 
23927
echo With memory debugging: No
 
23928
fi
 
23929
if [ x"$efiemu_excuse" = x ]; then
 
23930
echo efiemu runtime: Yes
 
23931
else
 
23932
echo efiemu runtime: No "($efiemu_excuse)"
 
23933
fi
 
23934
if [ x"$grub_mkfont_excuse" = x ]; then
 
23935
echo grub-mkfont: Yes
 
23936
else
 
23937
echo grub-mkfont: No "($grub_mkfont_excuse)"
 
23938
fi
 
23939
echo "*******************************************************"
 
23940