~ilya-yanok/ubuntu/precise/grub2/fix-for-948716

« back to all changes in this revision

Viewing changes to autom4te.cache/output.0

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2011-01-17 13:43:06 UTC
  • mto: (17.6.26 experimental)
  • mto: This revision was merged to the branch mainline in revision 102.
  • Revision ID: james.westby@ubuntu.com-20110117134306-fy7qewn4s3qdx2pl
Tags: upstream-1.99~rc1
ImportĀ upstreamĀ versionĀ 1.99~rc1

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~rc1.
 
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 @S|@? 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 "@S|@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 @S|@as_val. Take advantage of shells that can avoid forks. The arguments
 
348
@%:@ must be portable across @S|@(()) 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 @S|@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
LIB@&t@OBJS=
 
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~rc1'
 
556
PACKAGE_STRING='GRUB 1.99~rc1'
 
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
LIB@&t@OBJS
 
611
COND_CYGWIN_FALSE
 
612
COND_CYGWIN_TRUE
 
613
COND_HAVE_ASM_USCORE_FALSE
 
614
COND_HAVE_ASM_USCORE_TRUE
 
615
COND_ENABLE_EFIEMU_FALSE
 
616
COND_ENABLE_EFIEMU_TRUE
 
617
COND_APPLE_CC_FALSE
 
618
COND_APPLE_CC_TRUE
 
619
COND_GRUB_PE2ELF_FALSE
 
620
COND_GRUB_PE2ELF_TRUE
 
621
COND_HAVE_FONT_SOURCE_FALSE
 
622
COND_HAVE_FONT_SOURCE_TRUE
 
623
COND_GRUB_MKFONT_FALSE
 
624
COND_GRUB_MKFONT_TRUE
 
625
COND_GRUB_EMU_PCI_FALSE
 
626
COND_GRUB_EMU_PCI_TRUE
 
627
COND_GRUB_EMU_SDL_FALSE
 
628
COND_GRUB_EMU_SDL_TRUE
 
629
COND_GRUB_EMU_USB_FALSE
 
630
COND_GRUB_EMU_USB_TRUE
 
631
COND_MAN_PAGES_FALSE
 
632
COND_MAN_PAGES_TRUE
 
633
COND_HOST_KFREEBSD_FALSE
 
634
COND_HOST_KFREEBSD_TRUE
 
635
COND_HOST_WINDOWS_FALSE
 
636
COND_HOST_WINDOWS_TRUE
 
637
COND_HOST_NETBSD_FALSE
 
638
COND_HOST_NETBSD_TRUE
 
639
COND_HOST_LINUX_FALSE
 
640
COND_HOST_LINUX_TRUE
 
641
COND_HOST_HURD_FALSE
 
642
COND_HOST_HURD_TRUE
 
643
COND_mips_FALSE
 
644
COND_mips_TRUE
 
645
COND_powerpc_ieee1275_FALSE
 
646
COND_powerpc_ieee1275_TRUE
 
647
COND_sparc64_ieee1275_FALSE
 
648
COND_sparc64_ieee1275_TRUE
 
649
COND_mips_qemu_mips_FALSE
 
650
COND_mips_qemu_mips_TRUE
 
651
COND_mips_yeeloong_FALSE
 
652
COND_mips_yeeloong_TRUE
 
653
COND_x86_64_efi_FALSE
 
654
COND_x86_64_efi_TRUE
 
655
COND_i386_multiboot_FALSE
 
656
COND_i386_multiboot_TRUE
 
657
COND_i386_coreboot_FALSE
 
658
COND_i386_coreboot_TRUE
 
659
COND_i386_ieee1275_FALSE
 
660
COND_i386_ieee1275_TRUE
 
661
COND_i386_qemu_FALSE
 
662
COND_i386_qemu_TRUE
 
663
COND_i386_efi_FALSE
 
664
COND_i386_efi_TRUE
 
665
COND_i386_pc_FALSE
 
666
COND_i386_pc_TRUE
 
667
COND_emu_FALSE
 
668
COND_emu_TRUE
 
669
NEED_REGISTER_FRAME_INFO
 
670
NEED_ENABLE_EXECUTE_STACK
 
671
END_SYMBOL
 
672
BSS_START_SYMBOL
 
673
DATA32
 
674
ADDR32
 
675
HAVE_ASM_USCORE
 
676
USE_APPLE_CC_FIXES
 
677
GRUB_BOOT_MACHINE_LINK_ADDR
 
678
pkglibrootdir
 
679
LIBNVPAIR
 
680
LIBZFS
 
681
LIBLZMA
 
682
LIBDEVMAPPER
 
683
freetype_libs
 
684
freetype_cflags
 
685
enable_grub_mkfont
 
686
FREETYPE
 
687
enable_grub_emu_pci
 
688
enable_grub_emu_usb
 
689
enable_grub_emu_sdl
 
690
LIBPCIACCESS
 
691
LIBSDL
 
692
LIBUSB
 
693
LIBCURSES
 
694
enable_efiemu
 
695
HOST_CCASFLAGS
 
696
HOST_CPPFLAGS
 
697
HOST_LDFLAGS
 
698
HOST_CFLAGS
 
699
TARGET_IMG_BASE_LDOPT
 
700
TARGET_IMG_CFLAGS
 
701
TARGET_IMG_LDFLAGS
 
702
TARGET_IMG_LDSCRIPT
 
703
TARGET_CCASFLAGS
 
704
TARGET_CPPFLAGS
 
705
TARGET_LDFLAGS
 
706
TARGET_CFLAGS
 
707
TARGET_MODULE_FORMAT
 
708
TARGET_APPLE_CC
 
709
TARGET_OBJ2ELF
 
710
TARGET_CCAS
 
711
TARGET_CPP
 
712
OBJCONV
 
713
HOST_CC
 
714
NM
 
715
OBJCOPY
 
716
ac_ct_TARGET_CC
 
717
TARGET_CC
 
718
LIBGNU_LTLIBDEPS
 
719
LIBGNU_LIBDEPS
 
720
gltests_WITNESS
 
721
REPLACE_ISWCNTRL
 
722
HAVE_WCTYPE_H
 
723
NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
 
724
NEXT_WCTYPE_H
 
725
REPLACE_ISWBLANK
 
726
HAVE_ISWBLANK
 
727
HAVE_ISWCNTRL
 
728
HAVE_WINT_T
 
729
HAVE_WCHAR_H
 
730
NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
 
731
NEXT_WCHAR_H
 
732
HAVE_UNISTD_H
 
733
NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
 
734
NEXT_UNISTD_H
 
735
SYSEXITS_H
 
736
HAVE_SYSEXITS_H
 
737
NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H
 
738
NEXT_SYSEXITS_H
 
739
NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H
 
740
NEXT_SYS_WAIT_H
 
741
NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
 
742
NEXT_STRINGS_H
 
743
NEXT_AS_FIRST_DIRECTIVE_STRING_H
 
744
NEXT_STRING_H
 
745
HAVE_DECL_STRNCASECMP
 
746
HAVE_STRCASECMP
 
747
HAVE_RANDOM_H
 
748
NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
 
749
NEXT_STDLIB_H
 
750
NEXT_AS_FIRST_DIRECTIVE_STDIO_H
 
751
NEXT_STDIO_H
 
752
ASM_SYMBOL_PREFIX
 
753
STDINT_H
 
754
WINT_T_SUFFIX
 
755
WCHAR_T_SUFFIX
 
756
SIG_ATOMIC_T_SUFFIX
 
757
SIZE_T_SUFFIX
 
758
PTRDIFF_T_SUFFIX
 
759
HAVE_SIGNED_WINT_T
 
760
HAVE_SIGNED_WCHAR_T
 
761
HAVE_SIGNED_SIG_ATOMIC_T
 
762
BITSIZEOF_WINT_T
 
763
BITSIZEOF_WCHAR_T
 
764
BITSIZEOF_SIG_ATOMIC_T
 
765
BITSIZEOF_SIZE_T
 
766
BITSIZEOF_PTRDIFF_T
 
767
HAVE_SYS_BITYPES_H
 
768
HAVE_SYS_INTTYPES_H
 
769
HAVE_STDINT_H
 
770
NEXT_AS_FIRST_DIRECTIVE_STDINT_H
 
771
NEXT_STDINT_H
 
772
HAVE_SYS_TYPES_H
 
773
HAVE_INTTYPES_H
 
774
HAVE_UNSIGNED_LONG_LONG_INT
 
775
HAVE_LONG_LONG_INT
 
776
NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
 
777
NEXT_STDDEF_H
 
778
STDDEF_H
 
779
HAVE_WCHAR_T
 
780
REPLACE_NULL
 
781
HAVE__BOOL
 
782
STDBOOL_H
 
783
APPLE_UNIVERSAL_BUILD
 
784
UNDEFINE_STRTOK_R
 
785
REPLACE_STRTOK_R
 
786
REPLACE_STRSIGNAL
 
787
REPLACE_STRNLEN
 
788
REPLACE_STRNDUP
 
789
REPLACE_STRNCAT
 
790
REPLACE_STRERROR
 
791
REPLACE_STRCASESTR
 
792
REPLACE_STRSTR
 
793
REPLACE_STRDUP
 
794
REPLACE_STPNCPY
 
795
REPLACE_MEMMEM
 
796
REPLACE_MEMCHR
 
797
HAVE_STRVERSCMP
 
798
HAVE_DECL_STRSIGNAL
 
799
HAVE_DECL_STRTOK_R
 
800
HAVE_STRCASESTR
 
801
HAVE_STRSEP
 
802
HAVE_STRPBRK
 
803
HAVE_DECL_STRNLEN
 
804
HAVE_DECL_STRNDUP
 
805
HAVE_DECL_STRDUP
 
806
HAVE_STRCHRNUL
 
807
HAVE_STPNCPY
 
808
HAVE_STPCPY
 
809
HAVE_RAWMEMCHR
 
810
HAVE_DECL_MEMRCHR
 
811
HAVE_MEMPCPY
 
812
HAVE_DECL_MEMMEM
 
813
HAVE_MEMCHR
 
814
HAVE_MBSLEN
 
815
GNULIB_STRVERSCMP
 
816
GNULIB_STRSIGNAL
 
817
GNULIB_STRERROR
 
818
GNULIB_MBSTOK_R
 
819
GNULIB_MBSSEP
 
820
GNULIB_MBSSPN
 
821
GNULIB_MBSPBRK
 
822
GNULIB_MBSCSPN
 
823
GNULIB_MBSCASESTR
 
824
GNULIB_MBSPCASECMP
 
825
GNULIB_MBSNCASECMP
 
826
GNULIB_MBSCASECMP
 
827
GNULIB_MBSSTR
 
828
GNULIB_MBSRCHR
 
829
GNULIB_MBSCHR
 
830
GNULIB_MBSNLEN
 
831
GNULIB_MBSLEN
 
832
GNULIB_STRTOK_R
 
833
GNULIB_STRCASESTR
 
834
GNULIB_STRSTR
 
835
GNULIB_STRSEP
 
836
GNULIB_STRPBRK
 
837
GNULIB_STRNLEN
 
838
GNULIB_STRNDUP
 
839
GNULIB_STRNCAT
 
840
GNULIB_STRDUP
 
841
GNULIB_STRCHRNUL
 
842
GNULIB_STPNCPY
 
843
GNULIB_STPCPY
 
844
GNULIB_RAWMEMCHR
 
845
GNULIB_MEMRCHR
 
846
GNULIB_MEMPCPY
 
847
GNULIB_MEMMEM
 
848
GNULIB_MEMCHR
 
849
LOCALE_FR_UTF8
 
850
LOCALE_ZH_CN
 
851
LOCALE_JA
 
852
REPLACE_UNSETENV
 
853
REPLACE_STRTOD
 
854
REPLACE_SETENV
 
855
REPLACE_REALPATH
 
856
REPLACE_REALLOC
 
857
REPLACE_PUTENV
 
858
REPLACE_MKSTEMP
 
859
REPLACE_MALLOC
 
860
REPLACE_CANONICALIZE_FILE_NAME
 
861
REPLACE_CALLOC
 
862
HAVE_UNSETENV
 
863
HAVE_UNLOCKPT
 
864
HAVE_SYS_LOADAVG_H
 
865
HAVE_STRUCT_RANDOM_DATA
 
866
HAVE_STRTOULL
 
867
HAVE_STRTOLL
 
868
HAVE_STRTOD
 
869
HAVE_SETENV
 
870
HAVE_RPMATCH
 
871
HAVE_REALPATH
 
872
HAVE_RANDOM_R
 
873
HAVE_PTSNAME
 
874
HAVE_MKSTEMPS
 
875
HAVE_MKSTEMP
 
876
HAVE_MKOSTEMPS
 
877
HAVE_MKOSTEMP
 
878
HAVE_MKDTEMP
 
879
HAVE_GRANTPT
 
880
HAVE_GETSUBOPT
 
881
HAVE_DECL_GETLOADAVG
 
882
HAVE_CANONICALIZE_FILE_NAME
 
883
HAVE_ATOLL
 
884
HAVE__EXIT
 
885
GNULIB_UNSETENV
 
886
GNULIB_UNLOCKPT
 
887
GNULIB_STRTOULL
 
888
GNULIB_STRTOLL
 
889
GNULIB_STRTOD
 
890
GNULIB_SETENV
 
891
GNULIB_RPMATCH
 
892
GNULIB_REALPATH
 
893
GNULIB_REALLOC_POSIX
 
894
GNULIB_RANDOM_R
 
895
GNULIB_PUTENV
 
896
GNULIB_PTSNAME
 
897
GNULIB_MKSTEMPS
 
898
GNULIB_MKSTEMP
 
899
GNULIB_MKOSTEMPS
 
900
GNULIB_MKOSTEMP
 
901
GNULIB_MKDTEMP
 
902
GNULIB_MALLOC_POSIX
 
903
GNULIB_GRANTPT
 
904
GNULIB_GETSUBOPT
 
905
GNULIB_GETLOADAVG
 
906
GNULIB_CANONICALIZE_FILE_NAME
 
907
GNULIB_CALLOC_POSIX
 
908
GNULIB_ATOLL
 
909
GNULIB__EXIT
 
910
LOCALCHARSET_TESTS_ENVIRONMENT
 
911
GLIBC21
 
912
HAVE_LANGINFO_YESEXPR
 
913
HAVE_LANGINFO_ERA
 
914
HAVE_LANGINFO_T_FMT_AMPM
 
915
HAVE_LANGINFO_CODESET
 
916
HAVE_LANGINFO_H
 
917
NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
 
918
NEXT_LANGINFO_H
 
919
REPLACE_NL_LANGINFO
 
920
HAVE_NL_LANGINFO
 
921
GNULIB_NL_LANGINFO
 
922
HAVE_GETOPT_H
 
923
NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
 
924
NEXT_GETOPT_H
 
925
UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
 
926
UNISTD_H_HAVE_WINSOCK2_H
 
927
REPLACE_WRITE
 
928
REPLACE_USLEEP
 
929
REPLACE_UNLINKAT
 
930
REPLACE_UNLINK
 
931
REPLACE_TTYNAME_R
 
932
REPLACE_SYMLINK
 
933
REPLACE_SLEEP
 
934
REPLACE_RMDIR
 
935
REPLACE_READLINK
 
936
REPLACE_PWRITE
 
937
REPLACE_PREAD
 
938
REPLACE_LSEEK
 
939
REPLACE_LINKAT
 
940
REPLACE_LINK
 
941
REPLACE_LCHOWN
 
942
REPLACE_GETPAGESIZE
 
943
REPLACE_GETGROUPS
 
944
REPLACE_GETCWD
 
945
REPLACE_FCHOWNAT
 
946
REPLACE_DUP2
 
947
REPLACE_DUP
 
948
REPLACE_CLOSE
 
949
REPLACE_CHOWN
 
950
HAVE_SYS_PARAM_H
 
951
HAVE_OS_H
 
952
HAVE_DECL_GETUSERSHELL
 
953
HAVE_DECL_GETPAGESIZE
 
954
HAVE_DECL_GETLOGIN_R
 
955
HAVE_DECL_ENVIRON
 
956
HAVE_USLEEP
 
957
HAVE_UNLINKAT
 
958
HAVE_TTYNAME_R
 
959
HAVE_SYMLINKAT
 
960
HAVE_SYMLINK
 
961
HAVE_SLEEP
 
962
HAVE_READLINKAT
 
963
HAVE_READLINK
 
964
HAVE_PWRITE
 
965
HAVE_PREAD
 
966
HAVE_PIPE2
 
967
HAVE_LINKAT
 
968
HAVE_LINK
 
969
HAVE_LCHOWN
 
970
HAVE_GETPAGESIZE
 
971
HAVE_GETLOGIN
 
972
HAVE_GETHOSTNAME
 
973
HAVE_GETGROUPS
 
974
HAVE_GETDTABLESIZE
 
975
HAVE_GETDOMAINNAME
 
976
HAVE_FTRUNCATE
 
977
HAVE_FSYNC
 
978
HAVE_FCHOWNAT
 
979
HAVE_FCHDIR
 
980
HAVE_FACCESSAT
 
981
HAVE_EUIDACCESS
 
982
HAVE_DUP3
 
983
HAVE_DUP2
 
984
HAVE_CHOWN
 
985
GNULIB_WRITE
 
986
GNULIB_USLEEP
 
987
GNULIB_UNLINKAT
 
988
GNULIB_UNLINK
 
989
GNULIB_UNISTD_H_SIGPIPE
 
990
GNULIB_UNISTD_H_GETOPT
 
991
GNULIB_TTYNAME_R
 
992
GNULIB_SYMLINKAT
 
993
GNULIB_SYMLINK
 
994
GNULIB_SLEEP
 
995
GNULIB_RMDIR
 
996
GNULIB_READLINKAT
 
997
GNULIB_READLINK
 
998
GNULIB_PWRITE
 
999
GNULIB_PREAD
 
1000
GNULIB_PIPE2
 
1001
GNULIB_LSEEK
 
1002
GNULIB_LINKAT
 
1003
GNULIB_LINK
 
1004
GNULIB_LCHOWN
 
1005
GNULIB_GETUSERSHELL
 
1006
GNULIB_GETPAGESIZE
 
1007
GNULIB_GETLOGIN_R
 
1008
GNULIB_GETLOGIN
 
1009
GNULIB_GETHOSTNAME
 
1010
GNULIB_GETGROUPS
 
1011
GNULIB_GETDTABLESIZE
 
1012
GNULIB_GETDOMAINNAME
 
1013
GNULIB_GETCWD
 
1014
GNULIB_FTRUNCATE
 
1015
GNULIB_FSYNC
 
1016
GNULIB_FCHOWNAT
 
1017
GNULIB_FCHDIR
 
1018
GNULIB_FACCESSAT
 
1019
GNULIB_EUIDACCESS
 
1020
GNULIB_ENVIRON
 
1021
GNULIB_DUP3
 
1022
GNULIB_DUP2
 
1023
GNULIB_CLOSE
 
1024
GNULIB_CHOWN
 
1025
REPLACE_VSPRINTF
 
1026
REPLACE_VSNPRINTF
 
1027
REPLACE_VPRINTF
 
1028
REPLACE_VFPRINTF
 
1029
REPLACE_VDPRINTF
 
1030
REPLACE_VASPRINTF
 
1031
REPLACE_TMPFILE
 
1032
REPLACE_STDIO_WRITE_FUNCS
 
1033
REPLACE_SPRINTF
 
1034
REPLACE_SNPRINTF
 
1035
REPLACE_RENAMEAT
 
1036
REPLACE_RENAME
 
1037
REPLACE_REMOVE
 
1038
REPLACE_PRINTF
 
1039
REPLACE_POPEN
 
1040
REPLACE_PERROR
 
1041
REPLACE_OBSTACK_PRINTF
 
1042
REPLACE_GETLINE
 
1043
REPLACE_GETDELIM
 
1044
REPLACE_FTELLO
 
1045
REPLACE_FTELL
 
1046
REPLACE_FSEEKO
 
1047
REPLACE_FSEEK
 
1048
REPLACE_FREOPEN
 
1049
REPLACE_FPURGE
 
1050
REPLACE_FPRINTF
 
1051
REPLACE_FOPEN
 
1052
REPLACE_FFLUSH
 
1053
REPLACE_FCLOSE
 
1054
REPLACE_DPRINTF
 
1055
HAVE_VDPRINTF
 
1056
HAVE_VASPRINTF
 
1057
HAVE_RENAMEAT
 
1058
HAVE_FTELLO
 
1059
HAVE_FSEEKO
 
1060
HAVE_DPRINTF
 
1061
HAVE_DECL_VSNPRINTF
 
1062
HAVE_DECL_SNPRINTF
 
1063
HAVE_DECL_OBSTACK_PRINTF
 
1064
HAVE_DECL_GETLINE
 
1065
HAVE_DECL_GETDELIM
 
1066
HAVE_DECL_FPURGE
 
1067
GNULIB_VSPRINTF_POSIX
 
1068
GNULIB_VSNPRINTF
 
1069
GNULIB_VPRINTF_POSIX
 
1070
GNULIB_VPRINTF
 
1071
GNULIB_VFPRINTF_POSIX
 
1072
GNULIB_VFPRINTF
 
1073
GNULIB_VDPRINTF
 
1074
GNULIB_VASPRINTF
 
1075
GNULIB_TMPFILE
 
1076
GNULIB_STDIO_H_SIGPIPE
 
1077
GNULIB_SPRINTF_POSIX
 
1078
GNULIB_SNPRINTF
 
1079
GNULIB_RENAMEAT
 
1080
GNULIB_RENAME
 
1081
GNULIB_REMOVE
 
1082
GNULIB_PUTS
 
1083
GNULIB_PUTCHAR
 
1084
GNULIB_PUTC
 
1085
GNULIB_PRINTF_POSIX
 
1086
GNULIB_PRINTF
 
1087
GNULIB_POPEN
 
1088
GNULIB_PERROR
 
1089
GNULIB_OBSTACK_PRINTF_POSIX
 
1090
GNULIB_OBSTACK_PRINTF
 
1091
GNULIB_GETLINE
 
1092
GNULIB_GETDELIM
 
1093
GNULIB_FWRITE
 
1094
GNULIB_FTELLO
 
1095
GNULIB_FTELL
 
1096
GNULIB_FSEEKO
 
1097
GNULIB_FSEEK
 
1098
GNULIB_FREOPEN
 
1099
GNULIB_FPUTS
 
1100
GNULIB_FPUTC
 
1101
GNULIB_FPURGE
 
1102
GNULIB_FPRINTF_POSIX
 
1103
GNULIB_FPRINTF
 
1104
GNULIB_FOPEN
 
1105
GNULIB_FFLUSH
 
1106
GNULIB_FCLOSE
 
1107
GNULIB_DPRINTF
 
1108
FNMATCH_H
 
1109
FLOAT_H
 
1110
NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
 
1111
NEXT_FLOAT_H
 
1112
EOVERFLOW_VALUE
 
1113
EOVERFLOW_HIDDEN
 
1114
ENOLINK_VALUE
 
1115
ENOLINK_HIDDEN
 
1116
EMULTIHOP_VALUE
 
1117
EMULTIHOP_HIDDEN
 
1118
ERRNO_H
 
1119
NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
 
1120
NEXT_ERRNO_H
 
1121
PRAGMA_SYSTEM_HEADER
 
1122
INCLUDE_NEXT_AS_FIRST_DIRECTIVE
 
1123
INCLUDE_NEXT
 
1124
LOCALE_FR
 
1125
REPLACE_WCWIDTH
 
1126
REPLACE_WCSNRTOMBS
 
1127
REPLACE_WCSRTOMBS
 
1128
REPLACE_WCRTOMB
 
1129
REPLACE_MBSNRTOWCS
 
1130
REPLACE_MBSRTOWCS
 
1131
REPLACE_MBRLEN
 
1132
REPLACE_MBRTOWC
 
1133
REPLACE_MBSINIT
 
1134
REPLACE_WCTOB
 
1135
REPLACE_BTOWC
 
1136
REPLACE_MBSTATE_T
 
1137
HAVE_DECL_WCWIDTH
 
1138
HAVE_DECL_WCTOB
 
1139
HAVE_WCSNRTOMBS
 
1140
HAVE_WCSRTOMBS
 
1141
HAVE_WCRTOMB
 
1142
HAVE_MBSNRTOWCS
 
1143
HAVE_MBSRTOWCS
 
1144
HAVE_MBRLEN
 
1145
HAVE_MBRTOWC
 
1146
HAVE_MBSINIT
 
1147
HAVE_BTOWC
 
1148
GNULIB_WCWIDTH
 
1149
GNULIB_WCSNRTOMBS
 
1150
GNULIB_WCSRTOMBS
 
1151
GNULIB_WCRTOMB
 
1152
GNULIB_MBSNRTOWCS
 
1153
GNULIB_MBSRTOWCS
 
1154
GNULIB_MBRLEN
 
1155
GNULIB_MBRTOWC
 
1156
GNULIB_MBSINIT
 
1157
GNULIB_WCTOB
 
1158
GNULIB_BTOWC
 
1159
GETOPT_H
 
1160
ALLOCA_H
 
1161
ALLOCA
 
1162
GL_COND_LIBTOOL_FALSE
 
1163
GL_COND_LIBTOOL_TRUE
 
1164
BUILD_CC
 
1165
LIBUTIL
 
1166
HELP2MAN
 
1167
POSUB
 
1168
LTLIBINTL
 
1169
LIBINTL
 
1170
INTLLIBS
 
1171
LTLIBICONV
 
1172
LIBICONV
 
1173
INTL_MACOSX_LIBS
 
1174
XGETTEXT_EXTRA_OPTIONS
 
1175
MSGMERGE
 
1176
XGETTEXT_015
 
1177
XGETTEXT
 
1178
GMSGFMT_015
 
1179
MSGFMT_015
 
1180
GMSGFMT
 
1181
MSGFMT
 
1182
GETTEXT_MACRO_VERSION
 
1183
USE_NLS
 
1184
am__fastdepCCAS_FALSE
 
1185
am__fastdepCCAS_TRUE
 
1186
CCASDEPMODE
 
1187
CCASFLAGS
 
1188
CCAS
 
1189
EGREP
 
1190
GREP
 
1191
CPP
 
1192
LN_S
 
1193
YFLAGS
 
1194
LEXLIB
 
1195
am__fastdepCC_FALSE
 
1196
am__fastdepCC_TRUE
 
1197
CCDEPMODE
 
1198
AMDEPBACKSLASH
 
1199
AMDEP_FALSE
 
1200
AMDEP_TRUE
 
1201
am__quote
 
1202
am__include
 
1203
DEPDIR
 
1204
OBJEXT
 
1205
EXEEXT
 
1206
ac_ct_CC
 
1207
CPPFLAGS
 
1208
LDFLAGS
 
1209
CFLAGS
 
1210
CC
 
1211
LEX_OUTPUT_ROOT
 
1212
LEX
 
1213
RANLIB
 
1214
FONT_SOURCE
 
1215
YACC
 
1216
CMP
 
1217
grubdirname
 
1218
bootdirname
 
1219
platform
 
1220
host_kernel
 
1221
am__untar
 
1222
am__tar
 
1223
AMTAR
 
1224
am__leading_dot
 
1225
SET_MAKE
 
1226
AWK
 
1227
mkdir_p
 
1228
MKDIR_P
 
1229
INSTALL_STRIP_PROGRAM
 
1230
STRIP
 
1231
install_sh
 
1232
MAKEINFO
 
1233
AUTOHEADER
 
1234
AUTOMAKE
 
1235
AUTOCONF
 
1236
ACLOCAL
 
1237
VERSION
 
1238
PACKAGE
 
1239
CYGPATH_W
 
1240
am__isrc
 
1241
INSTALL_DATA
 
1242
INSTALL_SCRIPT
 
1243
INSTALL_PROGRAM
 
1244
target_os
 
1245
target_vendor
 
1246
target_cpu
 
1247
target
 
1248
host_os
 
1249
host_vendor
 
1250
host_cpu
 
1251
host
 
1252
build_os
 
1253
build_vendor
 
1254
build_cpu
 
1255
build
 
1256
target_alias
 
1257
host_alias
 
1258
build_alias
 
1259
LIBS
 
1260
ECHO_T
 
1261
ECHO_N
 
1262
ECHO_C
 
1263
DEFS
 
1264
mandir
 
1265
localedir
 
1266
libdir
 
1267
psdir
 
1268
pdfdir
 
1269
dvidir
 
1270
htmldir
 
1271
infodir
 
1272
docdir
 
1273
oldincludedir
 
1274
includedir
 
1275
localstatedir
 
1276
sharedstatedir
 
1277
sysconfdir
 
1278
datadir
 
1279
datarootdir
 
1280
libexecdir
 
1281
sbindir
 
1282
bindir
 
1283
program_transform_name
 
1284
prefix
 
1285
exec_prefix
 
1286
PACKAGE_URL
 
1287
PACKAGE_BUGREPORT
 
1288
PACKAGE_STRING
 
1289
PACKAGE_VERSION
 
1290
PACKAGE_TARNAME
 
1291
PACKAGE_NAME
 
1292
PATH_SEPARATOR
 
1293
SHELL'
 
1294
ac_subst_files=''
 
1295
ac_user_opts='
 
1296
enable_option_checking
 
1297
with_platform
 
1298
enable_dependency_tracking
 
1299
enable_nls
 
1300
with_gnu_ld
 
1301
enable_rpath
 
1302
with_libiconv_prefix
 
1303
with_libintl_prefix
 
1304
enable_largefile
 
1305
with_included_regex
 
1306
enable_werror
 
1307
enable_efiemu
 
1308
enable_mm_debug
 
1309
enable_grub_emu_usb
 
1310
enable_grub_emu_sdl
 
1311
enable_grub_emu_pci
 
1312
enable_grub_mkfont
 
1313
enable_device_mapper
 
1314
'
 
1315
      ac_precious_vars='build_alias
 
1316
host_alias
 
1317
target_alias
 
1318
CC
 
1319
CFLAGS
 
1320
LDFLAGS
 
1321
LIBS
 
1322
CPPFLAGS
 
1323
YACC
 
1324
YFLAGS
 
1325
CPP
 
1326
CCAS
 
1327
CCASFLAGS'
 
1328
 
 
1329
 
 
1330
# Initialize some variables set by options.
 
1331
ac_init_help=
 
1332
ac_init_version=false
 
1333
ac_unrecognized_opts=
 
1334
ac_unrecognized_sep=
 
1335
# The variables have the same names as the options, with
 
1336
# dashes changed to underlines.
 
1337
cache_file=/dev/null
 
1338
exec_prefix=NONE
 
1339
no_create=
 
1340
no_recursion=
 
1341
prefix=NONE
 
1342
program_prefix=NONE
 
1343
program_suffix=NONE
 
1344
program_transform_name=s,x,x,
 
1345
silent=
 
1346
site=
 
1347
srcdir=
 
1348
verbose=
 
1349
x_includes=NONE
 
1350
x_libraries=NONE
 
1351
 
 
1352
# Installation directory options.
 
1353
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
1354
# and all the variables that are supposed to be based on exec_prefix
 
1355
# by default will actually change.
 
1356
# Use braces instead of parens because sh, perl, etc. also accept them.
 
1357
# (The list follows the same order as the GNU Coding Standards.)
 
1358
bindir='${exec_prefix}/bin'
 
1359
sbindir='${exec_prefix}/sbin'
 
1360
libexecdir='${exec_prefix}/libexec'
 
1361
datarootdir='${prefix}/share'
 
1362
datadir='${datarootdir}'
 
1363
sysconfdir='${prefix}/etc'
 
1364
sharedstatedir='${prefix}/com'
 
1365
localstatedir='${prefix}/var'
 
1366
includedir='${prefix}/include'
 
1367
oldincludedir='/usr/include'
 
1368
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
1369
infodir='${datarootdir}/info'
 
1370
htmldir='${docdir}'
 
1371
dvidir='${docdir}'
 
1372
pdfdir='${docdir}'
 
1373
psdir='${docdir}'
 
1374
libdir='${exec_prefix}/lib'
 
1375
localedir='${datarootdir}/locale'
 
1376
mandir='${datarootdir}/man'
 
1377
 
 
1378
ac_prev=
 
1379
ac_dashdash=
 
1380
for ac_option
 
1381
do
 
1382
  # If the previous option needs an argument, assign it.
 
1383
  if test -n "$ac_prev"; then
 
1384
    eval $ac_prev=\$ac_option
 
1385
    ac_prev=
 
1386
    continue
 
1387
  fi
 
1388
 
 
1389
  case $ac_option in
 
1390
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
1391
  *=)   ac_optarg= ;;
 
1392
  *)    ac_optarg=yes ;;
 
1393
  esac
 
1394
 
 
1395
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
1396
 
 
1397
  case $ac_dashdash$ac_option in
 
1398
  --)
 
1399
    ac_dashdash=yes ;;
 
1400
 
 
1401
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
1402
    ac_prev=bindir ;;
 
1403
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
1404
    bindir=$ac_optarg ;;
 
1405
 
 
1406
  -build | --build | --buil | --bui | --bu)
 
1407
    ac_prev=build_alias ;;
 
1408
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
1409
    build_alias=$ac_optarg ;;
 
1410
 
 
1411
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
1412
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
1413
    ac_prev=cache_file ;;
 
1414
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
1415
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
1416
    cache_file=$ac_optarg ;;
 
1417
 
 
1418
  --config-cache | -C)
 
1419
    cache_file=config.cache ;;
 
1420
 
 
1421
  -datadir | --datadir | --datadi | --datad)
 
1422
    ac_prev=datadir ;;
 
1423
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1424
    datadir=$ac_optarg ;;
 
1425
 
 
1426
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1427
  | --dataroo | --dataro | --datar)
 
1428
    ac_prev=datarootdir ;;
 
1429
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1430
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1431
    datarootdir=$ac_optarg ;;
 
1432
 
 
1433
  -disable-* | --disable-*)
 
1434
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1435
    # Reject names that are not valid shell variable names.
 
1436
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1437
      as_fn_error $? "invalid feature name: $ac_useropt"
 
1438
    ac_useropt_orig=$ac_useropt
 
1439
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1440
    case $ac_user_opts in
 
1441
      *"
 
1442
"enable_$ac_useropt"
 
1443
"*) ;;
 
1444
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
1445
         ac_unrecognized_sep=', ';;
 
1446
    esac
 
1447
    eval enable_$ac_useropt=no ;;
 
1448
 
 
1449
  -docdir | --docdir | --docdi | --doc | --do)
 
1450
    ac_prev=docdir ;;
 
1451
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1452
    docdir=$ac_optarg ;;
 
1453
 
 
1454
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1455
    ac_prev=dvidir ;;
 
1456
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1457
    dvidir=$ac_optarg ;;
 
1458
 
 
1459
  -enable-* | --enable-*)
 
1460
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1461
    # Reject names that are not valid shell variable names.
 
1462
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1463
      as_fn_error $? "invalid feature name: $ac_useropt"
 
1464
    ac_useropt_orig=$ac_useropt
 
1465
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1466
    case $ac_user_opts in
 
1467
      *"
 
1468
"enable_$ac_useropt"
 
1469
"*) ;;
 
1470
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
1471
         ac_unrecognized_sep=', ';;
 
1472
    esac
 
1473
    eval enable_$ac_useropt=\$ac_optarg ;;
 
1474
 
 
1475
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1476
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1477
  | --exec | --exe | --ex)
 
1478
    ac_prev=exec_prefix ;;
 
1479
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1480
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1481
  | --exec=* | --exe=* | --ex=*)
 
1482
    exec_prefix=$ac_optarg ;;
 
1483
 
 
1484
  -gas | --gas | --ga | --g)
 
1485
    # Obsolete; use --with-gas.
 
1486
    with_gas=yes ;;
 
1487
 
 
1488
  -help | --help | --hel | --he | -h)
 
1489
    ac_init_help=long ;;
 
1490
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1491
    ac_init_help=recursive ;;
 
1492
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1493
    ac_init_help=short ;;
 
1494
 
 
1495
  -host | --host | --hos | --ho)
 
1496
    ac_prev=host_alias ;;
 
1497
  -host=* | --host=* | --hos=* | --ho=*)
 
1498
    host_alias=$ac_optarg ;;
 
1499
 
 
1500
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1501
    ac_prev=htmldir ;;
 
1502
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1503
  | --ht=*)
 
1504
    htmldir=$ac_optarg ;;
 
1505
 
 
1506
  -includedir | --includedir | --includedi | --included | --include \
 
1507
  | --includ | --inclu | --incl | --inc)
 
1508
    ac_prev=includedir ;;
 
1509
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1510
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1511
    includedir=$ac_optarg ;;
 
1512
 
 
1513
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1514
    ac_prev=infodir ;;
 
1515
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1516
    infodir=$ac_optarg ;;
 
1517
 
 
1518
  -libdir | --libdir | --libdi | --libd)
 
1519
    ac_prev=libdir ;;
 
1520
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1521
    libdir=$ac_optarg ;;
 
1522
 
 
1523
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1524
  | --libexe | --libex | --libe)
 
1525
    ac_prev=libexecdir ;;
 
1526
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1527
  | --libexe=* | --libex=* | --libe=*)
 
1528
    libexecdir=$ac_optarg ;;
 
1529
 
 
1530
  -localedir | --localedir | --localedi | --localed | --locale)
 
1531
    ac_prev=localedir ;;
 
1532
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1533
    localedir=$ac_optarg ;;
 
1534
 
 
1535
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1536
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1537
    ac_prev=localstatedir ;;
 
1538
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1539
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1540
    localstatedir=$ac_optarg ;;
 
1541
 
 
1542
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1543
    ac_prev=mandir ;;
 
1544
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1545
    mandir=$ac_optarg ;;
 
1546
 
 
1547
  -nfp | --nfp | --nf)
 
1548
    # Obsolete; use --without-fp.
 
1549
    with_fp=no ;;
 
1550
 
 
1551
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1552
  | --no-cr | --no-c | -n)
 
1553
    no_create=yes ;;
 
1554
 
 
1555
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1556
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1557
    no_recursion=yes ;;
 
1558
 
 
1559
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1560
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1561
  | --oldin | --oldi | --old | --ol | --o)
 
1562
    ac_prev=oldincludedir ;;
 
1563
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1564
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1565
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1566
    oldincludedir=$ac_optarg ;;
 
1567
 
 
1568
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1569
    ac_prev=prefix ;;
 
1570
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1571
    prefix=$ac_optarg ;;
 
1572
 
 
1573
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1574
  | --program-pre | --program-pr | --program-p)
 
1575
    ac_prev=program_prefix ;;
 
1576
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1577
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1578
    program_prefix=$ac_optarg ;;
 
1579
 
 
1580
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1581
  | --program-suf | --program-su | --program-s)
 
1582
    ac_prev=program_suffix ;;
 
1583
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1584
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1585
    program_suffix=$ac_optarg ;;
 
1586
 
 
1587
  -program-transform-name | --program-transform-name \
 
1588
  | --program-transform-nam | --program-transform-na \
 
1589
  | --program-transform-n | --program-transform- \
 
1590
  | --program-transform | --program-transfor \
 
1591
  | --program-transfo | --program-transf \
 
1592
  | --program-trans | --program-tran \
 
1593
  | --progr-tra | --program-tr | --program-t)
 
1594
    ac_prev=program_transform_name ;;
 
1595
  -program-transform-name=* | --program-transform-name=* \
 
1596
  | --program-transform-nam=* | --program-transform-na=* \
 
1597
  | --program-transform-n=* | --program-transform-=* \
 
1598
  | --program-transform=* | --program-transfor=* \
 
1599
  | --program-transfo=* | --program-transf=* \
 
1600
  | --program-trans=* | --program-tran=* \
 
1601
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1602
    program_transform_name=$ac_optarg ;;
 
1603
 
 
1604
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1605
    ac_prev=pdfdir ;;
 
1606
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1607
    pdfdir=$ac_optarg ;;
 
1608
 
 
1609
  -psdir | --psdir | --psdi | --psd | --ps)
 
1610
    ac_prev=psdir ;;
 
1611
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1612
    psdir=$ac_optarg ;;
 
1613
 
 
1614
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1615
  | -silent | --silent | --silen | --sile | --sil)
 
1616
    silent=yes ;;
 
1617
 
 
1618
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1619
    ac_prev=sbindir ;;
 
1620
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1621
  | --sbi=* | --sb=*)
 
1622
    sbindir=$ac_optarg ;;
 
1623
 
 
1624
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1625
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1626
  | --sharedst | --shareds | --shared | --share | --shar \
 
1627
  | --sha | --sh)
 
1628
    ac_prev=sharedstatedir ;;
 
1629
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1630
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1631
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1632
  | --sha=* | --sh=*)
 
1633
    sharedstatedir=$ac_optarg ;;
 
1634
 
 
1635
  -site | --site | --sit)
 
1636
    ac_prev=site ;;
 
1637
  -site=* | --site=* | --sit=*)
 
1638
    site=$ac_optarg ;;
 
1639
 
 
1640
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1641
    ac_prev=srcdir ;;
 
1642
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1643
    srcdir=$ac_optarg ;;
 
1644
 
 
1645
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1646
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1647
    ac_prev=sysconfdir ;;
 
1648
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1649
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1650
    sysconfdir=$ac_optarg ;;
 
1651
 
 
1652
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1653
    ac_prev=target_alias ;;
 
1654
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1655
    target_alias=$ac_optarg ;;
 
1656
 
 
1657
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1658
    verbose=yes ;;
 
1659
 
 
1660
  -version | --version | --versio | --versi | --vers | -V)
 
1661
    ac_init_version=: ;;
 
1662
 
 
1663
  -with-* | --with-*)
 
1664
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1665
    # Reject names that are not valid shell variable names.
 
1666
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1667
      as_fn_error $? "invalid package name: $ac_useropt"
 
1668
    ac_useropt_orig=$ac_useropt
 
1669
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1670
    case $ac_user_opts in
 
1671
      *"
 
1672
"with_$ac_useropt"
 
1673
"*) ;;
 
1674
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1675
         ac_unrecognized_sep=', ';;
 
1676
    esac
 
1677
    eval with_$ac_useropt=\$ac_optarg ;;
 
1678
 
 
1679
  -without-* | --without-*)
 
1680
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1681
    # Reject names that are not valid shell variable names.
 
1682
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1683
      as_fn_error $? "invalid package name: $ac_useropt"
 
1684
    ac_useropt_orig=$ac_useropt
 
1685
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1686
    case $ac_user_opts in
 
1687
      *"
 
1688
"with_$ac_useropt"
 
1689
"*) ;;
 
1690
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1691
         ac_unrecognized_sep=', ';;
 
1692
    esac
 
1693
    eval with_$ac_useropt=no ;;
 
1694
 
 
1695
  --x)
 
1696
    # Obsolete; use --with-x.
 
1697
    with_x=yes ;;
 
1698
 
 
1699
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1700
  | --x-incl | --x-inc | --x-in | --x-i)
 
1701
    ac_prev=x_includes ;;
 
1702
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1703
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1704
    x_includes=$ac_optarg ;;
 
1705
 
 
1706
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1707
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1708
    ac_prev=x_libraries ;;
 
1709
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1710
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1711
    x_libraries=$ac_optarg ;;
 
1712
 
 
1713
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1714
Try \`$0 --help' for more information"
 
1715
    ;;
 
1716
 
 
1717
  *=*)
 
1718
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1719
    # Reject names that are not valid shell variable names.
 
1720
    case $ac_envvar in #(
 
1721
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1722
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1723
    esac
 
1724
    eval $ac_envvar=\$ac_optarg
 
1725
    export $ac_envvar ;;
 
1726
 
 
1727
  *)
 
1728
    # FIXME: should be removed in autoconf 3.0.
 
1729
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1730
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1731
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1732
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1733
    ;;
 
1734
 
 
1735
  esac
 
1736
done
 
1737
 
 
1738
if test -n "$ac_prev"; then
 
1739
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1740
  as_fn_error $? "missing argument to $ac_option"
 
1741
fi
 
1742
 
 
1743
if test -n "$ac_unrecognized_opts"; then
 
1744
  case $enable_option_checking in
 
1745
    no) ;;
 
1746
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1747
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1748
  esac
 
1749
fi
 
1750
 
 
1751
# Check all directory arguments for consistency.
 
1752
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1753
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1754
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1755
                libdir localedir mandir
 
1756
do
 
1757
  eval ac_val=\$$ac_var
 
1758
  # Remove trailing slashes.
 
1759
  case $ac_val in
 
1760
    */ )
 
1761
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1762
      eval $ac_var=\$ac_val;;
 
1763
  esac
 
1764
  # Be sure to have absolute directory names.
 
1765
  case $ac_val in
 
1766
    [\\/$]* | ?:[\\/]* )  continue;;
 
1767
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1768
  esac
 
1769
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 
1770
done
 
1771
 
 
1772
# There might be people who depend on the old broken behavior: `$host'
 
1773
# used to hold the argument of --host etc.
 
1774
# FIXME: To remove some day.
 
1775
build=$build_alias
 
1776
host=$host_alias
 
1777
target=$target_alias
 
1778
 
 
1779
# FIXME: To remove some day.
 
1780
if test "x$host_alias" != x; then
 
1781
  if test "x$build_alias" = x; then
 
1782
    cross_compiling=maybe
 
1783
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
 
1784
    If a cross compiler is detected then cross compile mode will be used" >&2
 
1785
  elif test "x$build_alias" != "x$host_alias"; then
 
1786
    cross_compiling=yes
 
1787
  fi
 
1788
fi
 
1789
 
 
1790
ac_tool_prefix=
 
1791
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1792
 
 
1793
test "$silent" = yes && exec 6>/dev/null
 
1794
 
 
1795
 
 
1796
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1797
ac_ls_di=`ls -di .` &&
 
1798
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1799
  as_fn_error $? "working directory cannot be determined"
 
1800
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1801
  as_fn_error $? "pwd does not report name of working directory"
 
1802
 
 
1803
 
 
1804
# Find the source files, if location was not specified.
 
1805
if test -z "$srcdir"; then
 
1806
  ac_srcdir_defaulted=yes
 
1807
  # Try the directory containing this script, then the parent directory.
 
1808
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1809
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1810
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1811
         X"$as_myself" : 'X\(//\)$' \| \
 
1812
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1813
$as_echo X"$as_myself" |
 
1814
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1815
            s//\1/
 
1816
            q
 
1817
          }
 
1818
          /^X\(\/\/\)[^/].*/{
 
1819
            s//\1/
 
1820
            q
 
1821
          }
 
1822
          /^X\(\/\/\)$/{
 
1823
            s//\1/
 
1824
            q
 
1825
          }
 
1826
          /^X\(\/\).*/{
 
1827
            s//\1/
 
1828
            q
 
1829
          }
 
1830
          s/.*/./; q'`
 
1831
  srcdir=$ac_confdir
 
1832
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1833
    srcdir=..
 
1834
  fi
 
1835
else
 
1836
  ac_srcdir_defaulted=no
 
1837
fi
 
1838
if test ! -r "$srcdir/$ac_unique_file"; then
 
1839
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1840
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 
1841
fi
 
1842
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1843
ac_abs_confdir=`(
 
1844
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 
1845
        pwd)`
 
1846
# When building in place, set srcdir=.
 
1847
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1848
  srcdir=.
 
1849
fi
 
1850
# Remove unnecessary trailing slashes from srcdir.
 
1851
# Double slashes in file names in object file debugging info
 
1852
# mess up M-x gdb in Emacs.
 
1853
case $srcdir in
 
1854
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1855
esac
 
1856
for ac_var in $ac_precious_vars; do
 
1857
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1858
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1859
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1860
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1861
done
 
1862
 
 
1863
#
 
1864
# Report the --help message.
 
1865
#
 
1866
if test "$ac_init_help" = "long"; then
 
1867
  # Omit some internal or obsolete options to make the list less imposing.
 
1868
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1869
  cat <<_ACEOF
 
1870
\`configure' configures GRUB 1.99~rc1 to adapt to many kinds of systems.
 
1871
 
 
1872
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1873
 
 
1874
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1875
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1876
 
 
1877
Defaults for the options are specified in brackets.
 
1878
 
 
1879
Configuration:
 
1880
  -h, --help              display this help and exit
 
1881
      --help=short        display options specific to this package
 
1882
      --help=recursive    display the short help of all the included packages
 
1883
  -V, --version           display version information and exit
 
1884
  -q, --quiet, --silent   do not print \`checking ...' messages
 
1885
      --cache-file=FILE   cache test results in FILE [disabled]
 
1886
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1887
  -n, --no-create         do not create output files
 
1888
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1889
 
 
1890
Installation directories:
 
1891
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1892
                          @<:@@S|@ac_default_prefix@:>@
 
1893
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1894
                          @<:@PREFIX@:>@
 
1895
 
 
1896
By default, \`make install' will install all the files in
 
1897
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1898
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1899
for instance \`--prefix=\$HOME'.
 
1900
 
 
1901
For better control, use the options below.
 
1902
 
 
1903
Fine tuning of the installation directories:
 
1904
  --bindir=DIR            user executables [EPREFIX/bin]
 
1905
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1906
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1907
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1908
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1909
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1910
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1911
  --includedir=DIR        C header files [PREFIX/include]
 
1912
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1913
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1914
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1915
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1916
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1917
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1918
  --docdir=DIR            documentation root @<:@DATAROOTDIR/doc/grub@:>@
 
1919
  --htmldir=DIR           html documentation [DOCDIR]
 
1920
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1921
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1922
  --psdir=DIR             ps documentation [DOCDIR]
 
1923
_ACEOF
 
1924
 
 
1925
  cat <<\_ACEOF
 
1926
 
 
1927
Program names:
 
1928
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1929
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1930
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1931
 
 
1932
System types:
 
1933
  --build=BUILD     configure for building on BUILD [guessed]
 
1934
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1935
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
1936
_ACEOF
 
1937
fi
 
1938
 
 
1939
if test -n "$ac_init_help"; then
 
1940
  case $ac_init_help in
 
1941
     short | recursive ) echo "Configuration of GRUB 1.99~rc1:";;
 
1942
   esac
 
1943
  cat <<\_ACEOF
 
1944
 
 
1945
Optional Features:
 
1946
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1947
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1948
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1949
  --disable-dependency-tracking  speeds up one-time build
 
1950
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1951
  --disable-nls           do not use Native Language Support
 
1952
  --disable-rpath         do not hardcode runtime library paths
 
1953
  --disable-largefile     omit support for large files
 
1954
  --disable-werror        do not use -Werror when building GRUB
 
1955
  --enable-efiemu         build and install the efiemu runtimes
 
1956
                          (default=guessed)
 
1957
  --enable-mm-debug       include memory manager debugging
 
1958
  --enable-grub-emu-usb   build and install the `grub-emu' debugging utility
 
1959
                          with USB support (default=guessed)
 
1960
  --enable-grub-emu-sdl   build and install the `grub-emu' debugging utility
 
1961
                          with SDL support (default=guessed)
 
1962
  --enable-grub-emu-pci   build and install the `grub-emu' debugging utility
 
1963
                          with PCI support (potentially dangerous)
 
1964
                          (default=no)
 
1965
  --enable-grub-mkfont    build and install the `grub-mkfont' utility
 
1966
                          (default=guessed)
 
1967
  --enable-device-mapper  enable Linux device-mapper support (default=guessed)
 
1968
 
 
1969
Optional Packages:
 
1970
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1971
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1972
  --with-platform=PLATFORM 
 
1973
                          select the host platform @<:@@<:@guessed@:>@@:>@
 
1974
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
1975
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
 
1976
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
 
1977
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
 
1978
  --without-libintl-prefix     don't search for libintl in includedir and libdir
 
1979
  --without-included-regex 
 
1980
                          don't compile regex; this is the default on systems
 
1981
                          with recent-enough versions of the GNU C Library
 
1982
                          (use with caution on other systems).
 
1983
 
 
1984
Some influential environment variables:
 
1985
  CC          C compiler command
 
1986
  CFLAGS      C compiler flags
 
1987
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1988
              nonstandard directory <lib dir>
 
1989
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1990
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1991
              you have headers in a nonstandard directory <include dir>
 
1992
  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
 
1993
              the first program found out of: `bison -y', `byacc', `yacc'.
 
1994
  YFLAGS      The list of arguments that will be passed by default to @S|@YACC.
 
1995
              This script will default YFLAGS to the empty string to avoid a
 
1996
              default value of `-d' given by some make applications.
 
1997
  CPP         C preprocessor
 
1998
  CCAS        assembler compiler command (defaults to CC)
 
1999
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
 
2000
 
 
2001
Use these variables to override the choices made by `configure' or to help
 
2002
it to find libraries and programs with nonstandard names/locations.
 
2003
 
 
2004
Report bugs to <bug-grub@gnu.org>.
 
2005
_ACEOF
 
2006
ac_status=$?
 
2007
fi
 
2008
 
 
2009
if test "$ac_init_help" = "recursive"; then
 
2010
  # If there are subdirs, report their specific --help.
 
2011
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
2012
    test -d "$ac_dir" ||
 
2013
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
2014
      continue
 
2015
    ac_builddir=.
 
2016
 
 
2017
case "$ac_dir" in
 
2018
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
2019
*)
 
2020
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
2021
  # A ".." for each directory in $ac_dir_suffix.
 
2022
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
2023
  case $ac_top_builddir_sub in
 
2024
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
2025
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
2026
  esac ;;
 
2027
esac
 
2028
ac_abs_top_builddir=$ac_pwd
 
2029
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
2030
# for backward compatibility:
 
2031
ac_top_builddir=$ac_top_build_prefix
 
2032
 
 
2033
case $srcdir in
 
2034
  .)  # We are building in place.
 
2035
    ac_srcdir=.
 
2036
    ac_top_srcdir=$ac_top_builddir_sub
 
2037
    ac_abs_top_srcdir=$ac_pwd ;;
 
2038
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
2039
    ac_srcdir=$srcdir$ac_dir_suffix;
 
2040
    ac_top_srcdir=$srcdir
 
2041
    ac_abs_top_srcdir=$srcdir ;;
 
2042
  *) # Relative name.
 
2043
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
2044
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
2045
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
2046
esac
 
2047
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
2048
 
 
2049
    cd "$ac_dir" || { ac_status=$?; continue; }
 
2050
    # Check for guested configure.
 
2051
    if test -f "$ac_srcdir/configure.gnu"; then
 
2052
      echo &&
 
2053
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
2054
    elif test -f "$ac_srcdir/configure"; then
 
2055
      echo &&
 
2056
      $SHELL "$ac_srcdir/configure" --help=recursive
 
2057
    else
 
2058
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
2059
    fi || ac_status=$?
 
2060
    cd "$ac_pwd" || { ac_status=$?; break; }
 
2061
  done
 
2062
fi
 
2063
 
 
2064
test -n "$ac_init_help" && exit $ac_status
 
2065
if $ac_init_version; then
 
2066
  cat <<\_ACEOF
 
2067
GRUB configure 1.99~rc1
 
2068
generated by GNU Autoconf 2.67
 
2069
 
 
2070
Copyright (C) 2010 Free Software Foundation, Inc.
 
2071
This configure script is free software; the Free Software Foundation
 
2072
gives unlimited permission to copy, distribute and modify it.
 
2073
_ACEOF
 
2074
  exit
 
2075
fi
 
2076
 
 
2077
## ------------------------ ##
 
2078
## Autoconf initialization. ##
 
2079
## ------------------------ ##
 
2080
 
 
2081
@%:@ ac_fn_c_try_compile LINENO
 
2082
@%:@ --------------------------
 
2083
@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
 
2084
ac_fn_c_try_compile ()
 
2085
{
 
2086
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2087
  rm -f conftest.$ac_objext
 
2088
  if { { ac_try="$ac_compile"
 
2089
case "(($ac_try" in
 
2090
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2091
  *) ac_try_echo=$ac_try;;
 
2092
esac
 
2093
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2094
$as_echo "$ac_try_echo"; } >&5
 
2095
  (eval "$ac_compile") 2>conftest.err
 
2096
  ac_status=$?
 
2097
  if test -s conftest.err; then
 
2098
    grep -v '^ *+' conftest.err >conftest.er1
 
2099
    cat conftest.er1 >&5
 
2100
    mv -f conftest.er1 conftest.err
 
2101
  fi
 
2102
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2103
  test $ac_status = 0; } && {
 
2104
         test -z "$ac_c_werror_flag" ||
 
2105
         test ! -s conftest.err
 
2106
       } && test -s conftest.$ac_objext; then :
 
2107
  ac_retval=0
 
2108
else
 
2109
  $as_echo "$as_me: failed program was:" >&5
 
2110
sed 's/^/| /' conftest.$ac_ext >&5
 
2111
 
 
2112
        ac_retval=1
 
2113
fi
 
2114
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2115
  as_fn_set_status $ac_retval
 
2116
 
 
2117
} @%:@ ac_fn_c_try_compile
 
2118
 
 
2119
@%:@ ac_fn_c_try_link LINENO
 
2120
@%:@ -----------------------
 
2121
@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
 
2122
ac_fn_c_try_link ()
 
2123
{
 
2124
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2125
  rm -f conftest.$ac_objext conftest$ac_exeext
 
2126
  if { { ac_try="$ac_link"
 
2127
case "(($ac_try" in
 
2128
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2129
  *) ac_try_echo=$ac_try;;
 
2130
esac
 
2131
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2132
$as_echo "$ac_try_echo"; } >&5
 
2133
  (eval "$ac_link") 2>conftest.err
 
2134
  ac_status=$?
 
2135
  if test -s conftest.err; then
 
2136
    grep -v '^ *+' conftest.err >conftest.er1
 
2137
    cat conftest.er1 >&5
 
2138
    mv -f conftest.er1 conftest.err
 
2139
  fi
 
2140
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2141
  test $ac_status = 0; } && {
 
2142
         test -z "$ac_c_werror_flag" ||
 
2143
         test ! -s conftest.err
 
2144
       } && test -s conftest$ac_exeext && {
 
2145
         test "$cross_compiling" = yes ||
 
2146
         $as_test_x conftest$ac_exeext
 
2147
       }; then :
 
2148
  ac_retval=0
 
2149
else
 
2150
  $as_echo "$as_me: failed program was:" >&5
 
2151
sed 's/^/| /' conftest.$ac_ext >&5
 
2152
 
 
2153
        ac_retval=1
 
2154
fi
 
2155
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
2156
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
2157
  # interfere with the next link command; also delete a directory that is
 
2158
  # left behind by Apple's compiler.  We do this before executing the actions.
 
2159
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
2160
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2161
  as_fn_set_status $ac_retval
 
2162
 
 
2163
} @%:@ ac_fn_c_try_link
 
2164
 
 
2165
@%:@ ac_fn_c_try_cpp LINENO
 
2166
@%:@ ----------------------
 
2167
@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
 
2168
ac_fn_c_try_cpp ()
 
2169
{
 
2170
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2171
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
2172
case "(($ac_try" in
 
2173
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2174
  *) ac_try_echo=$ac_try;;
 
2175
esac
 
2176
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2177
$as_echo "$ac_try_echo"; } >&5
 
2178
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
2179
  ac_status=$?
 
2180
  if test -s conftest.err; then
 
2181
    grep -v '^ *+' conftest.err >conftest.er1
 
2182
    cat conftest.er1 >&5
 
2183
    mv -f conftest.er1 conftest.err
 
2184
  fi
 
2185
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2186
  test $ac_status = 0; } > conftest.i && {
 
2187
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
2188
         test ! -s conftest.err
 
2189
       }; then :
 
2190
  ac_retval=0
 
2191
else
 
2192
  $as_echo "$as_me: failed program was:" >&5
 
2193
sed 's/^/| /' conftest.$ac_ext >&5
 
2194
 
 
2195
    ac_retval=1
 
2196
fi
 
2197
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2198
  as_fn_set_status $ac_retval
 
2199
 
 
2200
} @%:@ ac_fn_c_try_cpp
 
2201
 
 
2202
@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
2203
@%:@ -------------------------------------------------------
 
2204
@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
2205
@%:@ the include files in INCLUDES and setting the cache variable VAR
 
2206
@%:@ accordingly.
 
2207
ac_fn_c_check_header_mongrel ()
 
2208
{
 
2209
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2210
  if eval "test \"\${$3+set}\"" = set; then :
 
2211
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2212
$as_echo_n "checking for $2... " >&6; }
 
2213
if eval "test \"\${$3+set}\"" = set; then :
 
2214
  $as_echo_n "(cached) " >&6
 
2215
fi
 
2216
eval ac_res=\$$3
 
2217
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2218
$as_echo "$ac_res" >&6; }
 
2219
else
 
2220
  # Is the header compilable?
 
2221
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
2222
$as_echo_n "checking $2 usability... " >&6; }
 
2223
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2224
/* end confdefs.h.  */
 
2225
$4
 
2226
@%:@include <$2>
 
2227
_ACEOF
 
2228
if ac_fn_c_try_compile "$LINENO"; then :
 
2229
  ac_header_compiler=yes
 
2230
else
 
2231
  ac_header_compiler=no
 
2232
fi
 
2233
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2234
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
2235
$as_echo "$ac_header_compiler" >&6; }
 
2236
 
 
2237
# Is the header present?
 
2238
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
2239
$as_echo_n "checking $2 presence... " >&6; }
 
2240
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2241
/* end confdefs.h.  */
 
2242
@%:@include <$2>
 
2243
_ACEOF
 
2244
if ac_fn_c_try_cpp "$LINENO"; then :
 
2245
  ac_header_preproc=yes
 
2246
else
 
2247
  ac_header_preproc=no
 
2248
fi
 
2249
rm -f conftest.err conftest.i conftest.$ac_ext
 
2250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
2251
$as_echo "$ac_header_preproc" >&6; }
 
2252
 
 
2253
# So?  What about this header?
 
2254
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
2255
  yes:no: )
 
2256
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
2257
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
2258
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
2259
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
2260
    ;;
 
2261
  no:yes:* )
 
2262
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
2263
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
2264
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
2265
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
2266
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
2267
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
2268
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
2269
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
2270
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
2271
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
2272
( $as_echo "## ------------------------------- ##
 
2273
## Report this to bug-grub@gnu.org ##
 
2274
## ------------------------------- ##"
 
2275
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
2276
    ;;
 
2277
esac
 
2278
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2279
$as_echo_n "checking for $2... " >&6; }
 
2280
if eval "test \"\${$3+set}\"" = set; then :
 
2281
  $as_echo_n "(cached) " >&6
 
2282
else
 
2283
  eval "$3=\$ac_header_compiler"
 
2284
fi
 
2285
eval ac_res=\$$3
 
2286
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2287
$as_echo "$ac_res" >&6; }
 
2288
fi
 
2289
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2290
 
 
2291
} @%:@ ac_fn_c_check_header_mongrel
 
2292
 
 
2293
@%:@ ac_fn_c_try_run LINENO
 
2294
@%:@ ----------------------
 
2295
@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
 
2296
@%:@ that executables *can* be run.
 
2297
ac_fn_c_try_run ()
 
2298
{
 
2299
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2300
  if { { ac_try="$ac_link"
 
2301
case "(($ac_try" in
 
2302
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2303
  *) ac_try_echo=$ac_try;;
 
2304
esac
 
2305
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2306
$as_echo "$ac_try_echo"; } >&5
 
2307
  (eval "$ac_link") 2>&5
 
2308
  ac_status=$?
 
2309
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2310
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
2311
  { { case "(($ac_try" in
 
2312
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2313
  *) ac_try_echo=$ac_try;;
 
2314
esac
 
2315
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2316
$as_echo "$ac_try_echo"; } >&5
 
2317
  (eval "$ac_try") 2>&5
 
2318
  ac_status=$?
 
2319
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2320
  test $ac_status = 0; }; }; then :
 
2321
  ac_retval=0
 
2322
else
 
2323
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
2324
       $as_echo "$as_me: failed program was:" >&5
 
2325
sed 's/^/| /' conftest.$ac_ext >&5
 
2326
 
 
2327
       ac_retval=$ac_status
 
2328
fi
 
2329
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
2330
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2331
  as_fn_set_status $ac_retval
 
2332
 
 
2333
} @%:@ ac_fn_c_try_run
 
2334
 
 
2335
@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
2336
@%:@ -------------------------------------------------------
 
2337
@%:@ Tests whether HEADER exists and can be compiled using the include files in
 
2338
@%:@ INCLUDES, setting the cache variable VAR accordingly.
 
2339
ac_fn_c_check_header_compile ()
 
2340
{
 
2341
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2342
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2343
$as_echo_n "checking for $2... " >&6; }
 
2344
if eval "test \"\${$3+set}\"" = set; then :
 
2345
  $as_echo_n "(cached) " >&6
 
2346
else
 
2347
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2348
/* end confdefs.h.  */
 
2349
$4
 
2350
@%:@include <$2>
 
2351
_ACEOF
 
2352
if ac_fn_c_try_compile "$LINENO"; then :
 
2353
  eval "$3=yes"
 
2354
else
 
2355
  eval "$3=no"
 
2356
fi
 
2357
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2358
fi
 
2359
eval ac_res=\$$3
 
2360
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2361
$as_echo "$ac_res" >&6; }
 
2362
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2363
 
 
2364
} @%:@ ac_fn_c_check_header_compile
 
2365
 
 
2366
@%:@ ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
 
2367
@%:@ --------------------------------------------
 
2368
@%:@ Tries to find the compile-time value of EXPR in a program that includes
 
2369
@%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be
 
2370
@%:@ computed
 
2371
ac_fn_c_compute_int ()
 
2372
{
 
2373
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2374
  if test "$cross_compiling" = yes; then
 
2375
    # Depending upon the size, compute the lo and hi bounds.
 
2376
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2377
/* end confdefs.h.  */
 
2378
$4
 
2379
int
 
2380
main (void)
 
2381
{
 
2382
static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@;
 
2383
test_array @<:@0@:>@ = 0
 
2384
 
 
2385
  ;
 
2386
  return 0;
 
2387
}
 
2388
_ACEOF
 
2389
if ac_fn_c_try_compile "$LINENO"; then :
 
2390
  ac_lo=0 ac_mid=0
 
2391
  while :; do
 
2392
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2393
/* end confdefs.h.  */
 
2394
$4
 
2395
int
 
2396
main (void)
 
2397
{
 
2398
static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
 
2399
test_array @<:@0@:>@ = 0
 
2400
 
 
2401
  ;
 
2402
  return 0;
 
2403
}
 
2404
_ACEOF
 
2405
if ac_fn_c_try_compile "$LINENO"; then :
 
2406
  ac_hi=$ac_mid; break
 
2407
else
 
2408
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
 
2409
                        if test $ac_lo -le $ac_mid; then
 
2410
                          ac_lo= ac_hi=
 
2411
                          break
 
2412
                        fi
 
2413
                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
 
2414
fi
 
2415
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2416
  done
 
2417
else
 
2418
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2419
/* end confdefs.h.  */
 
2420
$4
 
2421
int
 
2422
main (void)
 
2423
{
 
2424
static int test_array @<:@1 - 2 * !(($2) < 0)@:>@;
 
2425
test_array @<:@0@:>@ = 0
 
2426
 
 
2427
  ;
 
2428
  return 0;
 
2429
}
 
2430
_ACEOF
 
2431
if ac_fn_c_try_compile "$LINENO"; then :
 
2432
  ac_hi=-1 ac_mid=-1
 
2433
  while :; do
 
2434
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2435
/* end confdefs.h.  */
 
2436
$4
 
2437
int
 
2438
main (void)
 
2439
{
 
2440
static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@;
 
2441
test_array @<:@0@:>@ = 0
 
2442
 
 
2443
  ;
 
2444
  return 0;
 
2445
}
 
2446
_ACEOF
 
2447
if ac_fn_c_try_compile "$LINENO"; then :
 
2448
  ac_lo=$ac_mid; break
 
2449
else
 
2450
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
 
2451
                        if test $ac_mid -le $ac_hi; then
 
2452
                          ac_lo= ac_hi=
 
2453
                          break
 
2454
                        fi
 
2455
                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
 
2456
fi
 
2457
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2458
  done
 
2459
else
 
2460
  ac_lo= ac_hi=
 
2461
fi
 
2462
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2463
fi
 
2464
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2465
# Binary search between lo and hi bounds.
 
2466
while test "x$ac_lo" != "x$ac_hi"; do
 
2467
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
 
2468
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2469
/* end confdefs.h.  */
 
2470
$4
 
2471
int
 
2472
main (void)
 
2473
{
 
2474
static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
 
2475
test_array @<:@0@:>@ = 0
 
2476
 
 
2477
  ;
 
2478
  return 0;
 
2479
}
 
2480
_ACEOF
 
2481
if ac_fn_c_try_compile "$LINENO"; then :
 
2482
  ac_hi=$ac_mid
 
2483
else
 
2484
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
 
2485
fi
 
2486
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2487
done
 
2488
case $ac_lo in @%:@((
 
2489
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
 
2490
'') ac_retval=1 ;;
 
2491
esac
 
2492
  else
 
2493
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2494
/* end confdefs.h.  */
 
2495
$4
 
2496
static long int longval () { return $2; }
 
2497
static unsigned long int ulongval () { return $2; }
 
2498
@%:@include <stdio.h>
 
2499
@%:@include <stdlib.h>
 
2500
int
 
2501
main (void)
 
2502
{
 
2503
 
 
2504
  FILE *f = fopen ("conftest.val", "w");
 
2505
  if (! f)
 
2506
    return 1;
 
2507
  if (($2) < 0)
 
2508
    {
 
2509
      long int i = longval ();
 
2510
      if (i != ($2))
 
2511
        return 1;
 
2512
      fprintf (f, "%ld", i);
 
2513
    }
 
2514
  else
 
2515
    {
 
2516
      unsigned long int i = ulongval ();
 
2517
      if (i != ($2))
 
2518
        return 1;
 
2519
      fprintf (f, "%lu", i);
 
2520
    }
 
2521
  /* Do not output a trailing newline, as this causes \r\n confusion
 
2522
     on some platforms.  */
 
2523
  return ferror (f) || fclose (f) != 0;
 
2524
 
 
2525
  ;
 
2526
  return 0;
 
2527
}
 
2528
_ACEOF
 
2529
if ac_fn_c_try_run "$LINENO"; then :
 
2530
  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
 
2531
else
 
2532
  ac_retval=1
 
2533
fi
 
2534
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
2535
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
2536
rm -f conftest.val
 
2537
 
 
2538
  fi
 
2539
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2540
  as_fn_set_status $ac_retval
 
2541
 
 
2542
} @%:@ ac_fn_c_compute_int
 
2543
 
 
2544
@%:@ ac_fn_c_check_func LINENO FUNC VAR
 
2545
@%:@ ----------------------------------
 
2546
@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
 
2547
ac_fn_c_check_func ()
 
2548
{
 
2549
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2550
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2551
$as_echo_n "checking for $2... " >&6; }
 
2552
if eval "test \"\${$3+set}\"" = set; then :
 
2553
  $as_echo_n "(cached) " >&6
 
2554
else
 
2555
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2556
/* end confdefs.h.  */
 
2557
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
2558
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
2559
#define $2 innocuous_$2
 
2560
 
 
2561
/* System header to define __stub macros and hopefully few prototypes,
 
2562
    which can conflict with char $2 (); below.
 
2563
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2564
    <limits.h> exists even on freestanding compilers.  */
 
2565
 
 
2566
#ifdef __STDC__
 
2567
# include <limits.h>
 
2568
#else
 
2569
# include <assert.h>
 
2570
#endif
 
2571
 
 
2572
#undef $2
 
2573
 
 
2574
/* Override any GCC internal prototype to avoid an error.
 
2575
   Use char because int might match the return type of a GCC
 
2576
   builtin and then its argument prototype would still apply.  */
 
2577
#ifdef __cplusplus
 
2578
extern "C"
 
2579
#endif
 
2580
char $2 ();
 
2581
/* The GNU C library defines this for functions which it implements
 
2582
    to always fail with ENOSYS.  Some functions are actually named
 
2583
    something starting with __ and the normal name is an alias.  */
 
2584
#if defined __stub_$2 || defined __stub___$2
 
2585
choke me
 
2586
#endif
 
2587
 
 
2588
int
 
2589
main (void)
 
2590
{
 
2591
return $2 ();
 
2592
  ;
 
2593
  return 0;
 
2594
}
 
2595
_ACEOF
 
2596
if ac_fn_c_try_link "$LINENO"; then :
 
2597
  eval "$3=yes"
 
2598
else
 
2599
  eval "$3=no"
 
2600
fi
 
2601
rm -f core conftest.err conftest.$ac_objext \
 
2602
    conftest$ac_exeext conftest.$ac_ext
 
2603
fi
 
2604
eval ac_res=\$$3
 
2605
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2606
$as_echo "$ac_res" >&6; }
 
2607
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2608
 
 
2609
} @%:@ ac_fn_c_check_func
 
2610
 
 
2611
@%:@ ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
 
2612
@%:@ ----------------------------------------------------
 
2613
@%:@ Tries to find if the field MEMBER exists in type AGGR, after including
 
2614
@%:@ INCLUDES, setting cache variable VAR accordingly.
 
2615
ac_fn_c_check_member ()
 
2616
{
 
2617
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2618
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
 
2619
$as_echo_n "checking for $2.$3... " >&6; }
 
2620
if eval "test \"\${$4+set}\"" = set; then :
 
2621
  $as_echo_n "(cached) " >&6
 
2622
else
 
2623
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2624
/* end confdefs.h.  */
 
2625
$5
 
2626
int
 
2627
main (void)
 
2628
{
 
2629
static $2 ac_aggr;
 
2630
if (ac_aggr.$3)
 
2631
return 0;
 
2632
  ;
 
2633
  return 0;
 
2634
}
 
2635
_ACEOF
 
2636
if ac_fn_c_try_compile "$LINENO"; then :
 
2637
  eval "$4=yes"
 
2638
else
 
2639
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2640
/* end confdefs.h.  */
 
2641
$5
 
2642
int
 
2643
main (void)
 
2644
{
 
2645
static $2 ac_aggr;
 
2646
if (sizeof ac_aggr.$3)
 
2647
return 0;
 
2648
  ;
 
2649
  return 0;
 
2650
}
 
2651
_ACEOF
 
2652
if ac_fn_c_try_compile "$LINENO"; then :
 
2653
  eval "$4=yes"
 
2654
else
 
2655
  eval "$4=no"
 
2656
fi
 
2657
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2658
fi
 
2659
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2660
fi
 
2661
eval ac_res=\$$4
 
2662
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2663
$as_echo "$ac_res" >&6; }
 
2664
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2665
 
 
2666
} @%:@ ac_fn_c_check_member
 
2667
 
 
2668
@%:@ ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
 
2669
@%:@ ---------------------------------------------
 
2670
@%:@ Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
 
2671
@%:@ accordingly.
 
2672
ac_fn_c_check_decl ()
 
2673
{
 
2674
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2675
  as_decl_name=`echo $2|sed 's/ *(.*//'`
 
2676
  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
 
2677
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
 
2678
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
 
2679
if eval "test \"\${$3+set}\"" = set; then :
 
2680
  $as_echo_n "(cached) " >&6
 
2681
else
 
2682
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2683
/* end confdefs.h.  */
 
2684
$4
 
2685
int
 
2686
main (void)
 
2687
{
 
2688
@%:@ifndef $as_decl_name
 
2689
@%:@ifdef __cplusplus
 
2690
  (void) $as_decl_use;
 
2691
@%:@else
 
2692
  (void) $as_decl_name;
 
2693
@%:@endif
 
2694
@%:@endif
 
2695
 
 
2696
  ;
 
2697
  return 0;
 
2698
}
 
2699
_ACEOF
 
2700
if ac_fn_c_try_compile "$LINENO"; then :
 
2701
  eval "$3=yes"
 
2702
else
 
2703
  eval "$3=no"
 
2704
fi
 
2705
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2706
fi
 
2707
eval ac_res=\$$3
 
2708
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2709
$as_echo "$ac_res" >&6; }
 
2710
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2711
 
 
2712
} @%:@ ac_fn_c_check_decl
 
2713
 
 
2714
@%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 
2715
@%:@ -------------------------------------------
 
2716
@%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
 
2717
@%:@ variable VAR accordingly.
 
2718
ac_fn_c_check_type ()
 
2719
{
 
2720
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2721
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2722
$as_echo_n "checking for $2... " >&6; }
 
2723
if eval "test \"\${$3+set}\"" = set; then :
 
2724
  $as_echo_n "(cached) " >&6
 
2725
else
 
2726
  eval "$3=no"
 
2727
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2728
/* end confdefs.h.  */
 
2729
$4
 
2730
int
 
2731
main (void)
 
2732
{
 
2733
if (sizeof ($2))
 
2734
         return 0;
 
2735
  ;
 
2736
  return 0;
 
2737
}
 
2738
_ACEOF
 
2739
if ac_fn_c_try_compile "$LINENO"; then :
 
2740
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2741
/* end confdefs.h.  */
 
2742
$4
 
2743
int
 
2744
main (void)
 
2745
{
 
2746
if (sizeof (($2)))
 
2747
            return 0;
 
2748
  ;
 
2749
  return 0;
 
2750
}
 
2751
_ACEOF
 
2752
if ac_fn_c_try_compile "$LINENO"; then :
 
2753
  
 
2754
else
 
2755
  eval "$3=yes"
 
2756
fi
 
2757
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2758
fi
 
2759
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2760
fi
 
2761
eval ac_res=\$$3
 
2762
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2763
$as_echo "$ac_res" >&6; }
 
2764
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2765
 
 
2766
} @%:@ ac_fn_c_check_type
 
2767
cat >config.log <<_ACEOF
 
2768
This file contains any messages produced by compilers while
 
2769
running configure, to aid debugging if configure makes a mistake.
 
2770
 
 
2771
It was created by GRUB $as_me 1.99~rc1, which was
 
2772
generated by GNU Autoconf 2.67.  Invocation command line was
 
2773
 
 
2774
  $ $0 $@
 
2775
 
 
2776
_ACEOF
 
2777
exec 5>>config.log
 
2778
{
 
2779
cat <<_ASUNAME
 
2780
## --------- ##
 
2781
## Platform. ##
 
2782
## --------- ##
 
2783
 
 
2784
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
2785
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
2786
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
2787
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
2788
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
2789
 
 
2790
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
2791
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
2792
 
 
2793
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
2794
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
2795
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
2796
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
2797
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
2798
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
2799
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
2800
 
 
2801
_ASUNAME
 
2802
 
 
2803
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2804
for as_dir in $PATH
 
2805
do
 
2806
  IFS=$as_save_IFS
 
2807
  test -z "$as_dir" && as_dir=.
 
2808
    $as_echo "PATH: $as_dir"
 
2809
  done
 
2810
IFS=$as_save_IFS
 
2811
 
 
2812
} >&5
 
2813
 
 
2814
cat >&5 <<_ACEOF
 
2815
 
 
2816
 
 
2817
## ----------- ##
 
2818
## Core tests. ##
 
2819
## ----------- ##
 
2820
 
 
2821
_ACEOF
 
2822
 
 
2823
 
 
2824
# Keep a trace of the command line.
 
2825
# Strip out --no-create and --no-recursion so they do not pile up.
 
2826
# Strip out --silent because we don't want to record it for future runs.
 
2827
# Also quote any args containing shell meta-characters.
 
2828
# Make two passes to allow for proper duplicate-argument suppression.
 
2829
ac_configure_args=
 
2830
ac_configure_args0=
 
2831
ac_configure_args1=
 
2832
ac_must_keep_next=false
 
2833
for ac_pass in 1 2
 
2834
do
 
2835
  for ac_arg
 
2836
  do
 
2837
    case $ac_arg in
 
2838
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
2839
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
2840
    | -silent | --silent | --silen | --sile | --sil)
 
2841
      continue ;;
 
2842
    *\'*)
 
2843
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2844
    esac
 
2845
    case $ac_pass in
 
2846
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
2847
    2)
 
2848
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
2849
      if test $ac_must_keep_next = true; then
 
2850
        ac_must_keep_next=false # Got value, back to normal.
 
2851
      else
 
2852
        case $ac_arg in
 
2853
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
2854
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
2855
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
2856
          | -with-* | --with-* | -without-* | --without-* | --x)
 
2857
            case "$ac_configure_args0 " in
 
2858
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
2859
            esac
 
2860
            ;;
 
2861
          -* ) ac_must_keep_next=true ;;
 
2862
        esac
 
2863
      fi
 
2864
      as_fn_append ac_configure_args " '$ac_arg'"
 
2865
      ;;
 
2866
    esac
 
2867
  done
 
2868
done
 
2869
{ ac_configure_args0=; unset ac_configure_args0;}
 
2870
{ ac_configure_args1=; unset ac_configure_args1;}
 
2871
 
 
2872
# When interrupted or exit'd, cleanup temporary files, and complete
 
2873
# config.log.  We remove comments because anyway the quotes in there
 
2874
# would cause problems or look ugly.
 
2875
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
2876
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
2877
trap 'exit_status=$?
 
2878
  # Save into config.log some information that might help in debugging.
 
2879
  {
 
2880
    echo
 
2881
 
 
2882
    $as_echo "## ---------------- ##
 
2883
## Cache variables. ##
 
2884
## ---------------- ##"
 
2885
    echo
 
2886
    # The following way of writing the cache mishandles newlines in values,
 
2887
(
 
2888
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
2889
    eval ac_val=\$$ac_var
 
2890
    case $ac_val in #(
 
2891
    *${as_nl}*)
 
2892
      case $ac_var in #(
 
2893
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2894
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
2895
      esac
 
2896
      case $ac_var in #(
 
2897
      _ | IFS | as_nl) ;; #(
 
2898
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2899
      *) { eval $ac_var=; unset $ac_var;} ;;
 
2900
      esac ;;
 
2901
    esac
 
2902
  done
 
2903
  (set) 2>&1 |
 
2904
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2905
    *${as_nl}ac_space=\ *)
 
2906
      sed -n \
 
2907
        "s/'\''/'\''\\\\'\'''\''/g;
 
2908
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2909
      ;; #(
 
2910
    *)
 
2911
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
2912
      ;;
 
2913
    esac |
 
2914
    sort
 
2915
)
 
2916
    echo
 
2917
 
 
2918
    $as_echo "## ----------------- ##
 
2919
## Output variables. ##
 
2920
## ----------------- ##"
 
2921
    echo
 
2922
    for ac_var in $ac_subst_vars
 
2923
    do
 
2924
      eval ac_val=\$$ac_var
 
2925
      case $ac_val in
 
2926
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2927
      esac
 
2928
      $as_echo "$ac_var='\''$ac_val'\''"
 
2929
    done | sort
 
2930
    echo
 
2931
 
 
2932
    if test -n "$ac_subst_files"; then
 
2933
      $as_echo "## ------------------- ##
 
2934
## File substitutions. ##
 
2935
## ------------------- ##"
 
2936
      echo
 
2937
      for ac_var in $ac_subst_files
 
2938
      do
 
2939
        eval ac_val=\$$ac_var
 
2940
        case $ac_val in
 
2941
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2942
        esac
 
2943
        $as_echo "$ac_var='\''$ac_val'\''"
 
2944
      done | sort
 
2945
      echo
 
2946
    fi
 
2947
 
 
2948
    if test -s confdefs.h; then
 
2949
      $as_echo "## ----------- ##
 
2950
## confdefs.h. ##
 
2951
## ----------- ##"
 
2952
      echo
 
2953
      cat confdefs.h
 
2954
      echo
 
2955
    fi
 
2956
    test "$ac_signal" != 0 &&
 
2957
      $as_echo "$as_me: caught signal $ac_signal"
 
2958
    $as_echo "$as_me: exit $exit_status"
 
2959
  } >&5
 
2960
  rm -f core *.core core.conftest.* &&
 
2961
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2962
    exit $exit_status
 
2963
' 0
 
2964
for ac_signal in 1 2 13 15; do
 
2965
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
2966
done
 
2967
ac_signal=0
 
2968
 
 
2969
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2970
rm -f -r conftest* confdefs.h
 
2971
 
 
2972
$as_echo "/* confdefs.h */" > confdefs.h
 
2973
 
 
2974
# Predefined preprocessor variables.
 
2975
 
 
2976
cat >>confdefs.h <<_ACEOF
 
2977
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
 
2978
_ACEOF
 
2979
 
 
2980
cat >>confdefs.h <<_ACEOF
 
2981
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2982
_ACEOF
 
2983
 
 
2984
cat >>confdefs.h <<_ACEOF
 
2985
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2986
_ACEOF
 
2987
 
 
2988
cat >>confdefs.h <<_ACEOF
 
2989
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
 
2990
_ACEOF
 
2991
 
 
2992
cat >>confdefs.h <<_ACEOF
 
2993
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2994
_ACEOF
 
2995
 
 
2996
cat >>confdefs.h <<_ACEOF
 
2997
@%:@define PACKAGE_URL "$PACKAGE_URL"
 
2998
_ACEOF
 
2999
 
 
3000
 
 
3001
# Let the site file select an alternate cache file if it wants to.
 
3002
# Prefer an explicitly selected file to automatically selected ones.
 
3003
ac_site_file1=NONE
 
3004
ac_site_file2=NONE
 
3005
if test -n "$CONFIG_SITE"; then
 
3006
  # We do not want a PATH search for config.site.
 
3007
  case $CONFIG_SITE in @%:@((
 
3008
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
3009
    */*) ac_site_file1=$CONFIG_SITE;;
 
3010
    *)   ac_site_file1=./$CONFIG_SITE;;
 
3011
  esac
 
3012
elif test "x$prefix" != xNONE; then
 
3013
  ac_site_file1=$prefix/share/config.site
 
3014
  ac_site_file2=$prefix/etc/config.site
 
3015
else
 
3016
  ac_site_file1=$ac_default_prefix/share/config.site
 
3017
  ac_site_file2=$ac_default_prefix/etc/config.site
 
3018
fi
 
3019
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
3020
do
 
3021
  test "x$ac_site_file" = xNONE && continue
 
3022
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
3023
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
3024
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
3025
    sed 's/^/| /' "$ac_site_file" >&5
 
3026
    . "$ac_site_file" \
 
3027
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3028
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3029
as_fn_error $? "failed to load site script $ac_site_file
 
3030
See \`config.log' for more details" "$LINENO" 5 ; }
 
3031
  fi
 
3032
done
 
3033
 
 
3034
if test -r "$cache_file"; then
 
3035
  # Some versions of bash will fail to source /dev/null (special files
 
3036
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
3037
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
3038
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
3039
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
3040
    case $cache_file in
 
3041
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
3042
      *)                      . "./$cache_file";;
 
3043
    esac
 
3044
  fi
 
3045
else
 
3046
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
3047
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
3048
  >$cache_file
 
3049
fi
 
3050
 
 
3051
gt_needs="$gt_needs "
 
3052
as_fn_append ac_func_list " flockfile"
 
3053
as_fn_append ac_func_list " funlockfile"
 
3054
as_fn_append ac_header_list " features.h"
 
3055
as_fn_append ac_header_list " linewrap.h"
 
3056
as_fn_append ac_func_list " btowc"
 
3057
as_fn_append ac_header_list " errno.h"
 
3058
as_fn_append ac_header_list " float.h"
 
3059
as_fn_append ac_func_list " isblank"
 
3060
as_fn_append ac_func_list " iswctype"
 
3061
as_fn_append ac_func_list " mbsrtowcs"
 
3062
as_fn_append ac_func_list " mempcpy"
 
3063
as_fn_append ac_func_list " wmemchr"
 
3064
as_fn_append ac_func_list " wmemcpy"
 
3065
as_fn_append ac_func_list " wmempcpy"
 
3066
as_fn_append ac_header_list " wctype.h"
 
3067
as_fn_append ac_func_list " getdelim"
 
3068
gl_getopt_required=GNU
 
3069
as_fn_append ac_header_list " getopt.h"
 
3070
as_fn_append ac_header_list " langinfo.h"
 
3071
as_fn_append ac_func_list " mbsinit"
 
3072
as_fn_append ac_func_list " mbrtowc"
 
3073
as_fn_append ac_header_list " sys/mman.h"
 
3074
as_fn_append ac_func_list " mprotect"
 
3075
as_fn_append ac_func_list " memchr"
 
3076
as_fn_append ac_func_list " nl_langinfo"
 
3077
as_fn_append ac_header_list " locale.h"
 
3078
as_fn_append ac_func_list " wcscoll"
 
3079
as_fn_append ac_func_list " sleep"
 
3080
as_fn_append ac_header_list " stddef.h"
 
3081
as_fn_append ac_header_list " stdint.h"
 
3082
as_fn_append ac_header_list " wchar.h"
 
3083
as_fn_append ac_header_list " stdio.h"
 
3084
as_fn_append ac_header_list " stdlib.h"
 
3085
as_fn_append ac_header_list " sys/socket.h"
 
3086
as_fn_append ac_header_list " string.h"
 
3087
as_fn_append ac_header_list " strings.h"
 
3088
as_fn_append ac_func_list " strndup"
 
3089
as_fn_append ac_header_list " sys/wait.h"
 
3090
as_fn_append ac_header_list " sysexits.h"
 
3091
as_fn_append ac_header_list " unistd.h"
 
3092
as_fn_append ac_func_list " vasnprintf"
 
3093
as_fn_append ac_func_list " wcrtomb"
 
3094
as_fn_append ac_func_list " iswcntrl"
 
3095
as_fn_append ac_func_list " iswblank"
 
3096
# Check that the precious variables saved in the cache have kept the same
 
3097
# value.
 
3098
ac_cache_corrupted=false
 
3099
for ac_var in $ac_precious_vars; do
 
3100
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
3101
  eval ac_new_set=\$ac_env_${ac_var}_set
 
3102
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
3103
  eval ac_new_val=\$ac_env_${ac_var}_value
 
3104
  case $ac_old_set,$ac_new_set in
 
3105
    set,)
 
3106
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
3107
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
3108
      ac_cache_corrupted=: ;;
 
3109
    ,set)
 
3110
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
3111
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
3112
      ac_cache_corrupted=: ;;
 
3113
    ,);;
 
3114
    *)
 
3115
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
3116
        # differences in whitespace do not lead to failure.
 
3117
        ac_old_val_w=`echo x $ac_old_val`
 
3118
        ac_new_val_w=`echo x $ac_new_val`
 
3119
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
3120
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
3121
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
3122
          ac_cache_corrupted=:
 
3123
        else
 
3124
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
3125
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
3126
          eval $ac_var=\$ac_old_val
 
3127
        fi
 
3128
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
3129
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
3130
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
3131
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
3132
      fi;;
 
3133
  esac
 
3134
  # Pass precious variables to config.status.
 
3135
  if test "$ac_new_set" = set; then
 
3136
    case $ac_new_val in
 
3137
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
3138
    *) ac_arg=$ac_var=$ac_new_val ;;
 
3139
    esac
 
3140
    case " $ac_configure_args " in
 
3141
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
3142
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
3143
    esac
 
3144
  fi
 
3145
done
 
3146
if $ac_cache_corrupted; then
 
3147
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3148
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3149
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
3150
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
3151
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 
 
3152
fi
 
3153
## -------------------- ##
 
3154
## Main body of script. ##
 
3155
## -------------------- ##
 
3156
 
 
3157
ac_ext=c
 
3158
ac_cpp='$CPP $CPPFLAGS'
 
3159
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3160
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3161
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3162
 
 
3163
 
 
3164
 
 
3165
ac_aux_dir=
 
3166
for ac_dir in build-aux "$srcdir"/build-aux; do
 
3167
  if test -f "$ac_dir/install-sh"; then
 
3168
    ac_aux_dir=$ac_dir
 
3169
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
3170
    break
 
3171
  elif test -f "$ac_dir/install.sh"; then
 
3172
    ac_aux_dir=$ac_dir
 
3173
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
3174
    break
 
3175
  elif test -f "$ac_dir/shtool"; then
 
3176
    ac_aux_dir=$ac_dir
 
3177
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
3178
    break
 
3179
  fi
 
3180
done
 
3181
if test -z "$ac_aux_dir"; then
 
3182
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 
 
3183
fi
 
3184
 
 
3185
# These three variables are undocumented and unsupported,
 
3186
# and are intended to be withdrawn in a future Autoconf release.
 
3187
# They can cause serious problems if a builder's source tree is in a directory
 
3188
# whose full name contains unusual characters.
 
3189
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
3190
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
3191
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
3192
 
 
3193
 
 
3194
 
 
3195
# We don't want -g -O2 by default in CFLAGS
 
3196
: ${CFLAGS=""}
 
3197
 
 
3198
# Checks for host and target systems.
 
3199
# Make sure we can run config.sub.
 
3200
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
3201
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 
 
3202
 
 
3203
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
3204
$as_echo_n "checking build system type... " >&6; }
 
3205
if test "${ac_cv_build+set}" = set; then :
 
3206
  $as_echo_n "(cached) " >&6
 
3207
else
 
3208
  ac_build_alias=$build_alias
 
3209
test "x$ac_build_alias" = x &&
 
3210
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
3211
test "x$ac_build_alias" = x &&
 
3212
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 
 
3213
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
3214
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 
 
3215
 
 
3216
fi
 
3217
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
3218
$as_echo "$ac_cv_build" >&6; }
 
3219
case $ac_cv_build in
 
3220
*-*-*) ;;
 
3221
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
 
3222
esac
 
3223
build=$ac_cv_build
 
3224
ac_save_IFS=$IFS; IFS='-'
 
3225
set x $ac_cv_build
 
3226
shift
 
3227
build_cpu=$1
 
3228
build_vendor=$2
 
3229
shift; shift
 
3230
# Remember, the first character of IFS is used to create $*,
 
3231
# except with old shells:
 
3232
build_os=$*
 
3233
IFS=$ac_save_IFS
 
3234
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
3235
 
 
3236
 
 
3237
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
3238
$as_echo_n "checking host system type... " >&6; }
 
3239
if test "${ac_cv_host+set}" = set; then :
 
3240
  $as_echo_n "(cached) " >&6
 
3241
else
 
3242
  if test "x$host_alias" = x; then
 
3243
  ac_cv_host=$ac_cv_build
 
3244
else
 
3245
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
3246
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 
 
3247
fi
 
3248
 
 
3249
fi
 
3250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
3251
$as_echo "$ac_cv_host" >&6; }
 
3252
case $ac_cv_host in
 
3253
*-*-*) ;;
 
3254
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
 
3255
esac
 
3256
host=$ac_cv_host
 
3257
ac_save_IFS=$IFS; IFS='-'
 
3258
set x $ac_cv_host
 
3259
shift
 
3260
host_cpu=$1
 
3261
host_vendor=$2
 
3262
shift; shift
 
3263
# Remember, the first character of IFS is used to create $*,
 
3264
# except with old shells:
 
3265
host_os=$*
 
3266
IFS=$ac_save_IFS
 
3267
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
3268
 
 
3269
 
 
3270
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
 
3271
$as_echo_n "checking target system type... " >&6; }
 
3272
if test "${ac_cv_target+set}" = set; then :
 
3273
  $as_echo_n "(cached) " >&6
 
3274
else
 
3275
  if test "x$target_alias" = x; then
 
3276
  ac_cv_target=$ac_cv_host
 
3277
else
 
3278
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
 
3279
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 
 
3280
fi
 
3281
 
 
3282
fi
 
3283
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
 
3284
$as_echo "$ac_cv_target" >&6; }
 
3285
case $ac_cv_target in
 
3286
*-*-*) ;;
 
3287
*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
 
3288
esac
 
3289
target=$ac_cv_target
 
3290
ac_save_IFS=$IFS; IFS='-'
 
3291
set x $ac_cv_target
 
3292
shift
 
3293
target_cpu=$1
 
3294
target_vendor=$2
 
3295
shift; shift
 
3296
# Remember, the first character of IFS is used to create $*,
 
3297
# except with old shells:
 
3298
target_os=$*
 
3299
IFS=$ac_save_IFS
 
3300
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
 
3301
 
 
3302
 
 
3303
# The aliases save the names the user supplied, while $host etc.
 
3304
# will get canonicalized.
 
3305
test -n "$target_alias" &&
 
3306
  test "$program_prefix$program_suffix$program_transform_name" = \
 
3307
    NONENONEs,x,x, &&
 
3308
  program_prefix=${target_alias}-
 
3309
 
 
3310
am__api_version='1.11'
 
3311
 
 
3312
# Find a good install program.  We prefer a C program (faster),
 
3313
# so one script is as good as another.  But avoid the broken or
 
3314
# incompatible versions:
 
3315
# SysV /etc/install, /usr/sbin/install
 
3316
# SunOS /usr/etc/install
 
3317
# IRIX /sbin/install
 
3318
# AIX /bin/install
 
3319
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
3320
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
3321
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
3322
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3323
# OS/2's system install, which has a completely different semantic
 
3324
# ./install, which can be erroneously created by make from ./install.sh.
 
3325
# Reject install programs that cannot install multiple files.
 
3326
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
3327
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
3328
if test -z "$INSTALL"; then
 
3329
if test "${ac_cv_path_install+set}" = set; then :
 
3330
  $as_echo_n "(cached) " >&6
 
3331
else
 
3332
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3333
for as_dir in $PATH
 
3334
do
 
3335
  IFS=$as_save_IFS
 
3336
  test -z "$as_dir" && as_dir=.
 
3337
    # Account for people who put trailing slashes in PATH elements.
 
3338
case $as_dir/ in @%:@((
 
3339
  ./ | .// | /[cC]/* | \
 
3340
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3341
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
3342
  /usr/ucb/* ) ;;
 
3343
  *)
 
3344
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3345
    # Don't use installbsd from OSF since it installs stuff as root
 
3346
    # by default.
 
3347
    for ac_prog in ginstall scoinst install; do
 
3348
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3349
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
3350
          if test $ac_prog = install &&
 
3351
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3352
            # AIX install.  It has an incompatible calling convention.
 
3353
            :
 
3354
          elif test $ac_prog = install &&
 
3355
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3356
            # program-specific install script used by HP pwplus--don't use.
 
3357
            :
 
3358
          else
 
3359
            rm -rf conftest.one conftest.two conftest.dir
 
3360
            echo one > conftest.one
 
3361
            echo two > conftest.two
 
3362
            mkdir conftest.dir
 
3363
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
3364
              test -s conftest.one && test -s conftest.two &&
 
3365
              test -s conftest.dir/conftest.one &&
 
3366
              test -s conftest.dir/conftest.two
 
3367
            then
 
3368
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3369
              break 3
 
3370
            fi
 
3371
          fi
 
3372
        fi
 
3373
      done
 
3374
    done
 
3375
    ;;
 
3376
esac
 
3377
 
 
3378
  done
 
3379
IFS=$as_save_IFS
 
3380
 
 
3381
rm -rf conftest.one conftest.two conftest.dir
 
3382
 
 
3383
fi
 
3384
  if test "${ac_cv_path_install+set}" = set; then
 
3385
    INSTALL=$ac_cv_path_install
 
3386
  else
 
3387
    # As a last resort, use the slow shell script.  Don't cache a
 
3388
    # value for INSTALL within a source directory, because that will
 
3389
    # break other packages using the cache if that directory is
 
3390
    # removed, or if the value is a relative name.
 
3391
    INSTALL=$ac_install_sh
 
3392
  fi
 
3393
fi
 
3394
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
3395
$as_echo "$INSTALL" >&6; }
 
3396
 
 
3397
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
3398
# It thinks the first close brace ends the variable substitution.
 
3399
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
3400
 
 
3401
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3402
 
 
3403
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3404
 
 
3405
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
3406
$as_echo_n "checking whether build environment is sane... " >&6; }
 
3407
# Just in case
 
3408
sleep 1
 
3409
echo timestamp > conftest.file
 
3410
# Reject unsafe characters in $srcdir or the absolute working directory
 
3411
# name.  Accept space and tab only in the latter.
 
3412
am_lf='
 
3413
'
 
3414
case `pwd` in
 
3415
  *[\\\"\#\$\&\'\`$am_lf]*)
 
3416
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
 
3417
esac
 
3418
case $srcdir in
 
3419
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
3420
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
 
3421
esac
 
3422
 
 
3423
# Do `set' in a subshell so we don't clobber the current shell's
 
3424
# arguments.  Must try -L first in case configure is actually a
 
3425
# symlink; some systems play weird games with the mod time of symlinks
 
3426
# (eg FreeBSD returns the mod time of the symlink's containing
 
3427
# directory).
 
3428
if (
 
3429
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
3430
   if test "$*" = "X"; then
 
3431
      # -L didn't work.
 
3432
      set X `ls -t "$srcdir/configure" conftest.file`
 
3433
   fi
 
3434
   rm -f conftest.file
 
3435
   if test "$*" != "X $srcdir/configure conftest.file" \
 
3436
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
3437
 
 
3438
      # If neither matched, then we have a broken ls.  This can happen
 
3439
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
3440
      # broken ls alias from the environment.  This has actually
 
3441
      # happened.  Such a system could not be considered "sane".
 
3442
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 
3443
alias in your environment" "$LINENO" 5 
 
3444
   fi
 
3445
 
 
3446
   test "$2" = conftest.file
 
3447
   )
 
3448
then
 
3449
   # Ok.
 
3450
   :
 
3451
else
 
3452
   as_fn_error $? "newly created file is older than distributed files!
 
3453
Check your system clock" "$LINENO" 5 
 
3454
fi
 
3455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3456
$as_echo "yes" >&6; }
 
3457
test "$program_prefix" != NONE &&
 
3458
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
3459
# Use a double $ so make ignores it.
 
3460
test "$program_suffix" != NONE &&
 
3461
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
3462
# Double any \ or $.
 
3463
# By default was `s,x,x', remove it if useless.
 
3464
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
3465
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
3466
 
 
3467
# expand $ac_aux_dir to an absolute path
 
3468
am_aux_dir=`cd $ac_aux_dir && pwd`
 
3469
 
 
3470
if test x"${MISSING+set}" != xset; then
 
3471
  case $am_aux_dir in
 
3472
  *\ * | *\     *)
 
3473
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
3474
  *)
 
3475
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
3476
  esac
 
3477
fi
 
3478
# Use eval to expand $SHELL
 
3479
if eval "$MISSING --run true"; then
 
3480
  am_missing_run="$MISSING --run "
 
3481
else
 
3482
  am_missing_run=
 
3483
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
 
3484
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
3485
fi
 
3486
 
 
3487
if test x"${install_sh}" != xset; then
 
3488
  case $am_aux_dir in
 
3489
  *\ * | *\     *)
 
3490
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
3491
  *)
 
3492
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
3493
  esac
 
3494
fi
 
3495
 
 
3496
# Installed binaries are usually stripped using `strip' when the user
 
3497
# run `make install-strip'.  However `strip' might not be the right
 
3498
# tool to use in cross-compilation environments, therefore Automake
 
3499
# will honor the `STRIP' environment variable to overrule this program.
 
3500
if test "$cross_compiling" != no; then
 
3501
  if test -n "$ac_tool_prefix"; then
 
3502
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
3503
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
3504
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3505
$as_echo_n "checking for $ac_word... " >&6; }
 
3506
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
3507
  $as_echo_n "(cached) " >&6
 
3508
else
 
3509
  if test -n "$STRIP"; then
 
3510
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
3511
else
 
3512
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3513
for as_dir in $PATH
 
3514
do
 
3515
  IFS=$as_save_IFS
 
3516
  test -z "$as_dir" && as_dir=.
 
3517
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3518
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3519
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
3520
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3521
    break 2
 
3522
  fi
 
3523
done
 
3524
  done
 
3525
IFS=$as_save_IFS
 
3526
 
 
3527
fi
 
3528
fi
 
3529
STRIP=$ac_cv_prog_STRIP
 
3530
if test -n "$STRIP"; then
 
3531
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
3532
$as_echo "$STRIP" >&6; }
 
3533
else
 
3534
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3535
$as_echo "no" >&6; }
 
3536
fi
 
3537
 
 
3538
 
 
3539
fi
 
3540
if test -z "$ac_cv_prog_STRIP"; then
 
3541
  ac_ct_STRIP=$STRIP
 
3542
  # Extract the first word of "strip", so it can be a program name with args.
 
3543
set dummy strip; ac_word=$2
 
3544
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3545
$as_echo_n "checking for $ac_word... " >&6; }
 
3546
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
3547
  $as_echo_n "(cached) " >&6
 
3548
else
 
3549
  if test -n "$ac_ct_STRIP"; then
 
3550
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
3551
else
 
3552
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3553
for as_dir in $PATH
 
3554
do
 
3555
  IFS=$as_save_IFS
 
3556
  test -z "$as_dir" && as_dir=.
 
3557
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3558
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3559
    ac_cv_prog_ac_ct_STRIP="strip"
 
3560
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3561
    break 2
 
3562
  fi
 
3563
done
 
3564
  done
 
3565
IFS=$as_save_IFS
 
3566
 
 
3567
fi
 
3568
fi
 
3569
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
3570
if test -n "$ac_ct_STRIP"; then
 
3571
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
3572
$as_echo "$ac_ct_STRIP" >&6; }
 
3573
else
 
3574
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3575
$as_echo "no" >&6; }
 
3576
fi
 
3577
 
 
3578
  if test "x$ac_ct_STRIP" = x; then
 
3579
    STRIP=":"
 
3580
  else
 
3581
    case $cross_compiling:$ac_tool_warned in
 
3582
yes:)
 
3583
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3584
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3585
ac_tool_warned=yes ;;
 
3586
esac
 
3587
    STRIP=$ac_ct_STRIP
 
3588
  fi
 
3589
else
 
3590
  STRIP="$ac_cv_prog_STRIP"
 
3591
fi
 
3592
 
 
3593
fi
 
3594
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
3595
 
 
3596
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
3597
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
3598
if test -z "$MKDIR_P"; then
 
3599
  if test "${ac_cv_path_mkdir+set}" = set; then :
 
3600
  $as_echo_n "(cached) " >&6
 
3601
else
 
3602
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3603
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
3604
do
 
3605
  IFS=$as_save_IFS
 
3606
  test -z "$as_dir" && as_dir=.
 
3607
    for ac_prog in mkdir gmkdir; do
 
3608
         for ac_exec_ext in '' $ac_executable_extensions; do
 
3609
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
3610
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
3611
             'mkdir (GNU coreutils) '* | \
 
3612
             'mkdir (coreutils) '* | \
 
3613
             'mkdir (fileutils) '4.1*)
 
3614
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
3615
               break 3;;
 
3616
           esac
 
3617
         done
 
3618
       done
 
3619
  done
 
3620
IFS=$as_save_IFS
 
3621
 
 
3622
fi
 
3623
 
 
3624
  test -d ./--version && rmdir ./--version
 
3625
  if test "${ac_cv_path_mkdir+set}" = set; then
 
3626
    MKDIR_P="$ac_cv_path_mkdir -p"
 
3627
  else
 
3628
    # As a last resort, use the slow shell script.  Don't cache a
 
3629
    # value for MKDIR_P within a source directory, because that will
 
3630
    # break other packages using the cache if that directory is
 
3631
    # removed, or if the value is a relative name.
 
3632
    MKDIR_P="$ac_install_sh -d"
 
3633
  fi
 
3634
fi
 
3635
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
3636
$as_echo "$MKDIR_P" >&6; }
 
3637
 
 
3638
    
 
3639
mkdir_p="$MKDIR_P"
 
3640
case $mkdir_p in
 
3641
  [\\/$]* | ?:[\\/]*) ;;
 
3642
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
3643
esac
 
3644
 
 
3645
for ac_prog in gawk mawk nawk awk
 
3646
do
 
3647
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3648
set dummy $ac_prog; ac_word=$2
 
3649
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3650
$as_echo_n "checking for $ac_word... " >&6; }
 
3651
if test "${ac_cv_prog_AWK+set}" = set; then :
 
3652
  $as_echo_n "(cached) " >&6
 
3653
else
 
3654
  if test -n "$AWK"; then
 
3655
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
3656
else
 
3657
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3658
for as_dir in $PATH
 
3659
do
 
3660
  IFS=$as_save_IFS
 
3661
  test -z "$as_dir" && as_dir=.
 
3662
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3663
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3664
    ac_cv_prog_AWK="$ac_prog"
 
3665
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3666
    break 2
 
3667
  fi
 
3668
done
 
3669
  done
 
3670
IFS=$as_save_IFS
 
3671
 
 
3672
fi
 
3673
fi
 
3674
AWK=$ac_cv_prog_AWK
 
3675
if test -n "$AWK"; then
 
3676
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
3677
$as_echo "$AWK" >&6; }
 
3678
else
 
3679
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3680
$as_echo "no" >&6; }
 
3681
fi
 
3682
 
 
3683
 
 
3684
  test -n "$AWK" && break
 
3685
done
 
3686
 
 
3687
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3688
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
3689
set x ${MAKE-make}
 
3690
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
3691
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
 
3692
  $as_echo_n "(cached) " >&6
 
3693
else
 
3694
  cat >conftest.make <<\_ACEOF
 
3695
SHELL = /bin/sh
 
3696
all:
 
3697
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
3698
_ACEOF
 
3699
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
3700
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
3701
  *@@@%%%=?*=@@@%%%*)
 
3702
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
3703
  *)
 
3704
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
3705
esac
 
3706
rm -f conftest.make
 
3707
fi
 
3708
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
3709
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3710
$as_echo "yes" >&6; }
 
3711
  SET_MAKE=
 
3712
else
 
3713
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3714
$as_echo "no" >&6; }
 
3715
  SET_MAKE="MAKE=${MAKE-make}"
 
3716
fi
 
3717
 
 
3718
rm -rf .tst 2>/dev/null
 
3719
mkdir .tst 2>/dev/null
 
3720
if test -d .tst; then
 
3721
  am__leading_dot=.
 
3722
else
 
3723
  am__leading_dot=_
 
3724
fi
 
3725
rmdir .tst 2>/dev/null
 
3726
 
 
3727
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
3728
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
3729
  # is not polluted with repeated "-I."
 
3730
  am__isrc=' -I$(srcdir)'
 
3731
  # test to see if srcdir already configured
 
3732
  if test -f $srcdir/config.status; then
 
3733
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 
 
3734
  fi
 
3735
fi
 
3736
 
 
3737
# test whether we have cygpath
 
3738
if test -z "$CYGPATH_W"; then
 
3739
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
3740
    CYGPATH_W='cygpath -w'
 
3741
  else
 
3742
    CYGPATH_W=echo
 
3743
  fi
 
3744
fi
 
3745
 
 
3746
 
 
3747
# Define the identity of the package.
 
3748
 PACKAGE='grub'
 
3749
 VERSION='1.99~rc1'
 
3750
 
 
3751
 
 
3752
cat >>confdefs.h <<_ACEOF
 
3753
@%:@define PACKAGE "$PACKAGE"
 
3754
_ACEOF
 
3755
 
 
3756
 
 
3757
cat >>confdefs.h <<_ACEOF
 
3758
@%:@define VERSION "$VERSION"
 
3759
_ACEOF
 
3760
 
 
3761
# Some tools Automake needs.
 
3762
 
 
3763
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
3764
 
 
3765
 
 
3766
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
3767
 
 
3768
 
 
3769
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
3770
 
 
3771
 
 
3772
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
3773
 
 
3774
 
 
3775
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
3776
 
 
3777
# We need awk for the "check" target.  The system "awk" is bad on
 
3778
# some platforms.
 
3779
# Always define AMTAR for backward compatibility.
 
3780
 
 
3781
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
3782
 
 
3783
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
3784
 
 
3785
 
 
3786
 
 
3787
 
 
3788
 
 
3789
 
 
3790
 
 
3791
ac_config_headers="$ac_config_headers config-util.h"
 
3792
 
 
3793
 
 
3794
# Program name transformations
 
3795
 
 
3796
 
 
3797
# Optimization flag.  Allow user to override.
 
3798
if test "x$TARGET_CFLAGS" = x; then
 
3799
  TARGET_CFLAGS="$TARGET_CFLAGS -Os"
 
3800
fi
 
3801
 
 
3802
# Default HOST_CPPFLAGS
 
3803
HOST_CPPFLAGS="$HOST_CPPFLAGS -Wall -W"
 
3804
HOST_CPPFLAGS="$HOST_CPPFLAGS -I\$(top_builddir)/include"
 
3805
HOST_CPPFLAGS="$HOST_CPPFLAGS -DGRUB_UTIL=1"
 
3806
HOST_CPPFLAGS="$HOST_CPPFLAGS -DGRUB_LIBDIR=\\\"\$(pkglibdir)\\\""
 
3807
HOST_CPPFLAGS="$HOST_CPPFLAGS -DLOCALEDIR=\\\"\$(localedir)\\\""
 
3808
 
 
3809
TARGET_CPPFLAGS="$TARGET_CPPFLAGS -Wall -W"
 
3810
TARGET_CPPFLAGS="$TARGET_CPPFLAGS -I\$(top_srcdir)/include"
 
3811
TARGET_CPPFLAGS="$TARGET_CPPFLAGS -I\$(top_builddir)/include"
 
3812
 
 
3813
case "$target_cpu" in
 
3814
  i[3456]86)    target_cpu=i386 ;;
 
3815
  amd64)        target_cpu=x86_64 ;;
 
3816
  sparc)        target_cpu=sparc64 ;;
 
3817
  mipsel|mips64el)
 
3818
                target_cpu=mips;
 
3819
                machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_CPU_MIPSEL=1";
 
3820
                ;;
 
3821
  mips|mips64)
 
3822
                target_cpu=mips;
 
3823
                machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_CPU_MIPS=1";
 
3824
                ;;
 
3825
esac
 
3826
 
 
3827
# Specify the platform (such as firmware).
 
3828
 
 
3829
@%:@ Check whether --with-platform was given.
 
3830
if test "${with_platform+set}" = set; then :
 
3831
  withval=$with_platform; 
 
3832
fi
 
3833
 
 
3834
 
 
3835
# Guess the platform if not specified.
 
3836
if test "x$with_platform" = x; then
 
3837
  case "$target_cpu"-"$target_vendor" in
 
3838
    i386-apple) platform=efi ;;
 
3839
    i386-*) platform=pc ;;
 
3840
    x86_64-apple) platform=efi ;;
 
3841
    x86_64-*) platform=pc ;;
 
3842
    powerpc-*) platform=ieee1275 ;;
 
3843
    powerpc64-*) platform=ieee1275 ;;
 
3844
    sparc64-*) platform=ieee1275 ;;
 
3845
    mips-*) platform=yeeloong ;;
 
3846
    *) as_fn_error $? "unsupported CPU: \"$target_cpu\"" "$LINENO" 5  ;;
 
3847
  esac
 
3848
else
 
3849
  platform="$with_platform"
 
3850
fi
 
3851
 
 
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
 
 
3859
# Check if the platform is supported, make final adjustments.
 
3860
case "$target_cpu"-"$platform" in
 
3861
  i386-efi) ;;
 
3862
  x86_64-efi) ;;
 
3863
  i386-pc) ;;
 
3864
  i386-multiboot) ;;
 
3865
  i386-coreboot) ;;
 
3866
  i386-linuxbios) platform=coreboot ;;
 
3867
  i386-ieee1275) ;;
 
3868
  i386-qemu) ;;
 
3869
  powerpc-ieee1275) ;;
 
3870
  sparc64-ieee1275) ;;
 
3871
  mips-qemu-mips) ;;
 
3872
  mips-yeeloong) ;;
 
3873
  *-emu) ;;
 
3874
  *) as_fn_error $? "platform \"$platform\" is not supported for target CPU \"$target_cpu\"" "$LINENO" 5  ;;
 
3875
esac
 
3876
 
 
3877
case "$target_cpu" in
 
3878
  i386 | powerpc) target_m32=1 ;;
 
3879
  x86_64 | sparc64) target_m64=1 ;;
 
3880
esac
 
3881
 
 
3882
case "$host_os" in
 
3883
  mingw32*) host_os=cygwin ;;
 
3884
esac
 
3885
 
 
3886
# This normalizes the names, and creates a new variable ("host_kernel")
 
3887
# while at it, since the mapping is not always 1:1 (e.g. different OSes
 
3888
# using the same kernel type).
 
3889
case "$host_os" in
 
3890
  gnu*)                         host_kernel=hurd ;;
 
3891
  linux*)                       host_kernel=linux ;;
 
3892
  freebsd* | kfreebsd*-gnu)     host_kernel=kfreebsd ;;
 
3893
  netbsd*)                      host_kernel=netbsd ;;
 
3894
  cygwin)                       host_kernel=windows ;;
 
3895
esac
 
3896
 
 
3897
case "$platform" in
 
3898
  coreboot)     machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_COREBOOT=1" ;;
 
3899
  multiboot)    machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MULTIBOOT=1" ;;
 
3900
  efi)          machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_EFI=1" ;;
 
3901
  ieee1275)     machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_IEEE1275=1" ;;
 
3902
  qemu)         machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_QEMU=1" ;;
 
3903
  pc)           machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_PCBIOS=1" ;;
 
3904
  emu)          machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_EMU=1" ;;
 
3905
  yeeloong)     machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_YEELOONG=1 -DGRUB_MACHINE_MIPS_BONITO=1" ;;
 
3906
  qemu-mips)    machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_QEMU_MIPS=1 -DGRUB_MACHINE_MIPS_BONITO=1" ;;
 
3907
esac
 
3908
case "$target_cpu" in
 
3909
  mips)         machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS=1" ;;
 
3910
  sparc64)      machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_SPARC64=1" ;;
 
3911
esac
 
3912
machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE=`echo ${target_cpu}_$platform | sed y,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ,`"
 
3913
 
 
3914
HOST_CPPFLAGS="$HOST_CPPFLAGS $machine_CPPFLAGS"
 
3915
TARGET_CPPFLAGS="$TARGET_CPPFLAGS $machine_CPPFLAGS"
 
3916
 
 
3917
 
 
3918
 
 
3919
 
 
3920
 
 
3921
 
 
3922
 
 
3923
 
 
3924
# Define default variables
 
3925
case "$host_os" in
 
3926
  netbsd* | openbsd*)
 
3927
        # Because /boot is used for the boot block in NetBSD and OpenBSD,
 
3928
        bootdirname=''      ;;
 
3929
  *)    bootdirname='boot'  ;;
 
3930
esac
 
3931
bootdirname=`echo "$bootdirname" | sed "$program_transform_name"`
 
3932
 
 
3933
 
 
3934
cat >>confdefs.h <<_ACEOF
 
3935
@%:@define GRUB_BOOT_DIR_NAME "$bootdirname"
 
3936
_ACEOF
 
3937
 
 
3938
 
 
3939
grubdirname=`echo "$PACKAGE" | sed "$program_transform_name"`
 
3940
 
 
3941
 
 
3942
cat >>confdefs.h <<_ACEOF
 
3943
@%:@define GRUB_DIR_NAME "$grubdirname"
 
3944
_ACEOF
 
3945
 
 
3946
 
 
3947
#
 
3948
# Checks for build programs.
 
3949
#
 
3950
 
 
3951
# Although cmp is listed in the GNU Coding Standards as a command which
 
3952
# can used directly, OpenBSD lacks cmp in the default installation.
 
3953
for ac_prog in cmp
 
3954
do
 
3955
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3956
set dummy $ac_prog; ac_word=$2
 
3957
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3958
$as_echo_n "checking for $ac_word... " >&6; }
 
3959
if test "${ac_cv_prog_CMP+set}" = set; then :
 
3960
  $as_echo_n "(cached) " >&6
 
3961
else
 
3962
  if test -n "$CMP"; then
 
3963
  ac_cv_prog_CMP="$CMP" # Let the user override the test.
 
3964
else
 
3965
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3966
for as_dir in $PATH
 
3967
do
 
3968
  IFS=$as_save_IFS
 
3969
  test -z "$as_dir" && as_dir=.
 
3970
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3971
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3972
    ac_cv_prog_CMP="$ac_prog"
 
3973
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3974
    break 2
 
3975
  fi
 
3976
done
 
3977
  done
 
3978
IFS=$as_save_IFS
 
3979
 
 
3980
fi
 
3981
fi
 
3982
CMP=$ac_cv_prog_CMP
 
3983
if test -n "$CMP"; then
 
3984
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
 
3985
$as_echo "$CMP" >&6; }
 
3986
else
 
3987
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3988
$as_echo "no" >&6; }
 
3989
fi
 
3990
 
 
3991
 
 
3992
  test -n "$CMP" && break
 
3993
done
 
3994
 
 
3995
if test "x$CMP" = x; then
 
3996
  as_fn_error $? "cmp is not found" "$LINENO" 5 
 
3997
fi
 
3998
 
 
3999
for ac_prog in bison
 
4000
do
 
4001
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4002
set dummy $ac_prog; ac_word=$2
 
4003
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4004
$as_echo_n "checking for $ac_word... " >&6; }
 
4005
if test "${ac_cv_prog_YACC+set}" = set; then :
 
4006
  $as_echo_n "(cached) " >&6
 
4007
else
 
4008
  if test -n "$YACC"; then
 
4009
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
 
4010
else
 
4011
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4012
for as_dir in $PATH
 
4013
do
 
4014
  IFS=$as_save_IFS
 
4015
  test -z "$as_dir" && as_dir=.
 
4016
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4017
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4018
    ac_cv_prog_YACC="$ac_prog"
 
4019
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4020
    break 2
 
4021
  fi
 
4022
done
 
4023
  done
 
4024
IFS=$as_save_IFS
 
4025
 
 
4026
fi
 
4027
fi
 
4028
YACC=$ac_cv_prog_YACC
 
4029
if test -n "$YACC"; then
 
4030
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
 
4031
$as_echo "$YACC" >&6; }
 
4032
else
 
4033
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4034
$as_echo "no" >&6; }
 
4035
fi
 
4036
 
 
4037
 
 
4038
  test -n "$YACC" && break
 
4039
done
 
4040
 
 
4041
if test "x$YACC" = x; then
 
4042
  as_fn_error $? "bison is not found" "$LINENO" 5 
 
4043
fi
 
4044
 
 
4045
FONT_SOURCE=
 
4046
 
 
4047
for ext in pcf pcf.gz bdf bdf.gz ttf ttf.gz; do
 
4048
  for dir in . /usr/src /usr/share/fonts/X11/misc /usr/share/fonts/unifont; do
 
4049
    if test -f "$dir/unifont.$ext"; then
 
4050
      FONT_SOURCE="$dir/unifont.$ext"
 
4051
      break 2
 
4052
    fi
 
4053
  done
 
4054
done
 
4055
 
 
4056
if test "x$FONT_SOURCE" = x && ( test "x$platform" = xqemu || test "x$platform" = xyeeloong ); then
 
4057
   as_fn_error $? "qemu and yeeloong ports need unifont" "$LINENO" 5 
 
4058
fi
 
4059
 
 
4060
 
 
4061
 
 
4062
if test -n "$ac_tool_prefix"; then
 
4063
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
4064
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
4065
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4066
$as_echo_n "checking for $ac_word... " >&6; }
 
4067
if test "${ac_cv_prog_RANLIB+set}" = set; then :
 
4068
  $as_echo_n "(cached) " >&6
 
4069
else
 
4070
  if test -n "$RANLIB"; then
 
4071
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
4072
else
 
4073
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4074
for as_dir in $PATH
 
4075
do
 
4076
  IFS=$as_save_IFS
 
4077
  test -z "$as_dir" && as_dir=.
 
4078
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4079
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4080
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
4081
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4082
    break 2
 
4083
  fi
 
4084
done
 
4085
  done
 
4086
IFS=$as_save_IFS
 
4087
 
 
4088
fi
 
4089
fi
 
4090
RANLIB=$ac_cv_prog_RANLIB
 
4091
if test -n "$RANLIB"; then
 
4092
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
4093
$as_echo "$RANLIB" >&6; }
 
4094
else
 
4095
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4096
$as_echo "no" >&6; }
 
4097
fi
 
4098
 
 
4099
 
 
4100
fi
 
4101
if test -z "$ac_cv_prog_RANLIB"; then
 
4102
  ac_ct_RANLIB=$RANLIB
 
4103
  # Extract the first word of "ranlib", so it can be a program name with args.
 
4104
set dummy ranlib; ac_word=$2
 
4105
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4106
$as_echo_n "checking for $ac_word... " >&6; }
 
4107
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
 
4108
  $as_echo_n "(cached) " >&6
 
4109
else
 
4110
  if test -n "$ac_ct_RANLIB"; then
 
4111
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
4112
else
 
4113
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4114
for as_dir in $PATH
 
4115
do
 
4116
  IFS=$as_save_IFS
 
4117
  test -z "$as_dir" && as_dir=.
 
4118
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4119
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4120
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
4121
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4122
    break 2
 
4123
  fi
 
4124
done
 
4125
  done
 
4126
IFS=$as_save_IFS
 
4127
 
 
4128
fi
 
4129
fi
 
4130
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
4131
if test -n "$ac_ct_RANLIB"; then
 
4132
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
4133
$as_echo "$ac_ct_RANLIB" >&6; }
 
4134
else
 
4135
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4136
$as_echo "no" >&6; }
 
4137
fi
 
4138
 
 
4139
  if test "x$ac_ct_RANLIB" = x; then
 
4140
    RANLIB=":"
 
4141
  else
 
4142
    case $cross_compiling:$ac_tool_warned in
 
4143
yes:)
 
4144
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4145
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4146
ac_tool_warned=yes ;;
 
4147
esac
 
4148
    RANLIB=$ac_ct_RANLIB
 
4149
  fi
 
4150
else
 
4151
  RANLIB="$ac_cv_prog_RANLIB"
 
4152
fi
 
4153
 
 
4154
 
 
4155
for ac_prog in gawk mawk nawk awk
 
4156
do
 
4157
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4158
set dummy $ac_prog; ac_word=$2
 
4159
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4160
$as_echo_n "checking for $ac_word... " >&6; }
 
4161
if test "${ac_cv_prog_AWK+set}" = set; then :
 
4162
  $as_echo_n "(cached) " >&6
 
4163
else
 
4164
  if test -n "$AWK"; then
 
4165
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
4166
else
 
4167
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4168
for as_dir in $PATH
 
4169
do
 
4170
  IFS=$as_save_IFS
 
4171
  test -z "$as_dir" && as_dir=.
 
4172
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4173
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4174
    ac_cv_prog_AWK="$ac_prog"
 
4175
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4176
    break 2
 
4177
  fi
 
4178
done
 
4179
  done
 
4180
IFS=$as_save_IFS
 
4181
 
 
4182
fi
 
4183
fi
 
4184
AWK=$ac_cv_prog_AWK
 
4185
if test -n "$AWK"; then
 
4186
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
4187
$as_echo "$AWK" >&6; }
 
4188
else
 
4189
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4190
$as_echo "no" >&6; }
 
4191
fi
 
4192
 
 
4193
 
 
4194
  test -n "$AWK" && break
 
4195
done
 
4196
 
 
4197
DEPDIR="${am__leading_dot}deps"
 
4198
 
 
4199
ac_config_commands="$ac_config_commands depfiles"
 
4200
 
 
4201
 
 
4202
am_make=${MAKE-make}
 
4203
cat > confinc << 'END'
 
4204
am__doit:
 
4205
        @echo this is the am__doit target
 
4206
.PHONY: am__doit
 
4207
END
 
4208
# If we don't find an include directive, just comment out the code.
 
4209
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
4210
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
4211
am__include="#"
 
4212
am__quote=
 
4213
_am_result=none
 
4214
# First try GNU make style include.
 
4215
echo "include confinc" > confmf
 
4216
# Ignore all kinds of additional output from `make'.
 
4217
case `$am_make -s -f confmf 2> /dev/null` in #(
 
4218
*the\ am__doit\ target*)
 
4219
  am__include=include
 
4220
  am__quote=
 
4221
  _am_result=GNU
 
4222
  ;;
 
4223
esac
 
4224
# Now try BSD make style include.
 
4225
if test "$am__include" = "#"; then
 
4226
   echo '.include "confinc"' > confmf
 
4227
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
4228
   *the\ am__doit\ target*)
 
4229
     am__include=.include
 
4230
     am__quote="\""
 
4231
     _am_result=BSD
 
4232
     ;;
 
4233
   esac
 
4234
fi
 
4235
 
 
4236
 
 
4237
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
4238
$as_echo "$_am_result" >&6; }
 
4239
rm -f confinc confmf
 
4240
 
 
4241
@%:@ Check whether --enable-dependency-tracking was given.
 
4242
if test "${enable_dependency_tracking+set}" = set; then :
 
4243
  enableval=$enable_dependency_tracking; 
 
4244
fi
 
4245
 
 
4246
if test "x$enable_dependency_tracking" != xno; then
 
4247
  am_depcomp="$ac_aux_dir/depcomp"
 
4248
  AMDEPBACKSLASH='\'
 
4249
fi
 
4250
 if test "x$enable_dependency_tracking" != xno; then
 
4251
  AMDEP_TRUE=
 
4252
  AMDEP_FALSE='#'
 
4253
else
 
4254
  AMDEP_TRUE='#'
 
4255
  AMDEP_FALSE=
 
4256
fi
 
4257
 
 
4258
 
 
4259
ac_ext=c
 
4260
ac_cpp='$CPP $CPPFLAGS'
 
4261
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4262
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4263
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4264
if test -n "$ac_tool_prefix"; then
 
4265
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
4266
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
4267
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4268
$as_echo_n "checking for $ac_word... " >&6; }
 
4269
if test "${ac_cv_prog_CC+set}" = set; then :
 
4270
  $as_echo_n "(cached) " >&6
 
4271
else
 
4272
  if test -n "$CC"; then
 
4273
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4274
else
 
4275
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4276
for as_dir in $PATH
 
4277
do
 
4278
  IFS=$as_save_IFS
 
4279
  test -z "$as_dir" && as_dir=.
 
4280
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4281
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4282
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
4283
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4284
    break 2
 
4285
  fi
 
4286
done
 
4287
  done
 
4288
IFS=$as_save_IFS
 
4289
 
 
4290
fi
 
4291
fi
 
4292
CC=$ac_cv_prog_CC
 
4293
if test -n "$CC"; then
 
4294
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4295
$as_echo "$CC" >&6; }
 
4296
else
 
4297
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4298
$as_echo "no" >&6; }
 
4299
fi
 
4300
 
 
4301
 
 
4302
fi
 
4303
if test -z "$ac_cv_prog_CC"; then
 
4304
  ac_ct_CC=$CC
 
4305
  # Extract the first word of "gcc", so it can be a program name with args.
 
4306
set dummy gcc; ac_word=$2
 
4307
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4308
$as_echo_n "checking for $ac_word... " >&6; }
 
4309
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
4310
  $as_echo_n "(cached) " >&6
 
4311
else
 
4312
  if test -n "$ac_ct_CC"; then
 
4313
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
4314
else
 
4315
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4316
for as_dir in $PATH
 
4317
do
 
4318
  IFS=$as_save_IFS
 
4319
  test -z "$as_dir" && as_dir=.
 
4320
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4321
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4322
    ac_cv_prog_ac_ct_CC="gcc"
 
4323
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4324
    break 2
 
4325
  fi
 
4326
done
 
4327
  done
 
4328
IFS=$as_save_IFS
 
4329
 
 
4330
fi
 
4331
fi
 
4332
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
4333
if test -n "$ac_ct_CC"; then
 
4334
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
4335
$as_echo "$ac_ct_CC" >&6; }
 
4336
else
 
4337
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4338
$as_echo "no" >&6; }
 
4339
fi
 
4340
 
 
4341
  if test "x$ac_ct_CC" = x; then
 
4342
    CC=""
 
4343
  else
 
4344
    case $cross_compiling:$ac_tool_warned in
 
4345
yes:)
 
4346
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4347
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4348
ac_tool_warned=yes ;;
 
4349
esac
 
4350
    CC=$ac_ct_CC
 
4351
  fi
 
4352
else
 
4353
  CC="$ac_cv_prog_CC"
 
4354
fi
 
4355
 
 
4356
if test -z "$CC"; then
 
4357
          if test -n "$ac_tool_prefix"; then
 
4358
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
4359
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
4360
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4361
$as_echo_n "checking for $ac_word... " >&6; }
 
4362
if test "${ac_cv_prog_CC+set}" = set; then :
 
4363
  $as_echo_n "(cached) " >&6
 
4364
else
 
4365
  if test -n "$CC"; then
 
4366
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4367
else
 
4368
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4369
for as_dir in $PATH
 
4370
do
 
4371
  IFS=$as_save_IFS
 
4372
  test -z "$as_dir" && as_dir=.
 
4373
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4374
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4375
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
4376
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4377
    break 2
 
4378
  fi
 
4379
done
 
4380
  done
 
4381
IFS=$as_save_IFS
 
4382
 
 
4383
fi
 
4384
fi
 
4385
CC=$ac_cv_prog_CC
 
4386
if test -n "$CC"; then
 
4387
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4388
$as_echo "$CC" >&6; }
 
4389
else
 
4390
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4391
$as_echo "no" >&6; }
 
4392
fi
 
4393
 
 
4394
 
 
4395
  fi
 
4396
fi
 
4397
if test -z "$CC"; then
 
4398
  # Extract the first word of "cc", so it can be a program name with args.
 
4399
set dummy cc; ac_word=$2
 
4400
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4401
$as_echo_n "checking for $ac_word... " >&6; }
 
4402
if test "${ac_cv_prog_CC+set}" = set; then :
 
4403
  $as_echo_n "(cached) " >&6
 
4404
else
 
4405
  if test -n "$CC"; then
 
4406
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4407
else
 
4408
  ac_prog_rejected=no
 
4409
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4410
for as_dir in $PATH
 
4411
do
 
4412
  IFS=$as_save_IFS
 
4413
  test -z "$as_dir" && as_dir=.
 
4414
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4415
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4416
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
4417
       ac_prog_rejected=yes
 
4418
       continue
 
4419
     fi
 
4420
    ac_cv_prog_CC="cc"
 
4421
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4422
    break 2
 
4423
  fi
 
4424
done
 
4425
  done
 
4426
IFS=$as_save_IFS
 
4427
 
 
4428
if test $ac_prog_rejected = yes; then
 
4429
  # We found a bogon in the path, so make sure we never use it.
 
4430
  set dummy $ac_cv_prog_CC
 
4431
  shift
 
4432
  if test $@%:@ != 0; then
 
4433
    # We chose a different compiler from the bogus one.
 
4434
    # However, it has the same basename, so the bogon will be chosen
 
4435
    # first if we set CC to just the basename; use the full file name.
 
4436
    shift
 
4437
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
4438
  fi
 
4439
fi
 
4440
fi
 
4441
fi
 
4442
CC=$ac_cv_prog_CC
 
4443
if test -n "$CC"; then
 
4444
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4445
$as_echo "$CC" >&6; }
 
4446
else
 
4447
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4448
$as_echo "no" >&6; }
 
4449
fi
 
4450
 
 
4451
 
 
4452
fi
 
4453
if test -z "$CC"; then
 
4454
  if test -n "$ac_tool_prefix"; then
 
4455
  for ac_prog in cl.exe
 
4456
  do
 
4457
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4458
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4459
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4460
$as_echo_n "checking for $ac_word... " >&6; }
 
4461
if test "${ac_cv_prog_CC+set}" = set; then :
 
4462
  $as_echo_n "(cached) " >&6
 
4463
else
 
4464
  if test -n "$CC"; then
 
4465
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4466
else
 
4467
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4468
for as_dir in $PATH
 
4469
do
 
4470
  IFS=$as_save_IFS
 
4471
  test -z "$as_dir" && as_dir=.
 
4472
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4473
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4474
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
4475
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4476
    break 2
 
4477
  fi
 
4478
done
 
4479
  done
 
4480
IFS=$as_save_IFS
 
4481
 
 
4482
fi
 
4483
fi
 
4484
CC=$ac_cv_prog_CC
 
4485
if test -n "$CC"; then
 
4486
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4487
$as_echo "$CC" >&6; }
 
4488
else
 
4489
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4490
$as_echo "no" >&6; }
 
4491
fi
 
4492
 
 
4493
 
 
4494
    test -n "$CC" && break
 
4495
  done
 
4496
fi
 
4497
if test -z "$CC"; then
 
4498
  ac_ct_CC=$CC
 
4499
  for ac_prog in cl.exe
 
4500
do
 
4501
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4502
set dummy $ac_prog; ac_word=$2
 
4503
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4504
$as_echo_n "checking for $ac_word... " >&6; }
 
4505
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
4506
  $as_echo_n "(cached) " >&6
 
4507
else
 
4508
  if test -n "$ac_ct_CC"; then
 
4509
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
4510
else
 
4511
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4512
for as_dir in $PATH
 
4513
do
 
4514
  IFS=$as_save_IFS
 
4515
  test -z "$as_dir" && as_dir=.
 
4516
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4517
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4518
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
4519
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4520
    break 2
 
4521
  fi
 
4522
done
 
4523
  done
 
4524
IFS=$as_save_IFS
 
4525
 
 
4526
fi
 
4527
fi
 
4528
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
4529
if test -n "$ac_ct_CC"; then
 
4530
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
4531
$as_echo "$ac_ct_CC" >&6; }
 
4532
else
 
4533
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4534
$as_echo "no" >&6; }
 
4535
fi
 
4536
 
 
4537
 
 
4538
  test -n "$ac_ct_CC" && break
 
4539
done
 
4540
 
 
4541
  if test "x$ac_ct_CC" = x; then
 
4542
    CC=""
 
4543
  else
 
4544
    case $cross_compiling:$ac_tool_warned in
 
4545
yes:)
 
4546
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4547
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4548
ac_tool_warned=yes ;;
 
4549
esac
 
4550
    CC=$ac_ct_CC
 
4551
  fi
 
4552
fi
 
4553
 
 
4554
fi
 
4555
 
 
4556
 
 
4557
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4558
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4559
as_fn_error $? "no acceptable C compiler found in \$PATH
 
4560
See \`config.log' for more details" "$LINENO" 5 ; }
 
4561
 
 
4562
# Provide some information about the compiler.
 
4563
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
4564
set X $ac_compile
 
4565
ac_compiler=$2
 
4566
for ac_option in --version -v -V -qversion; do
 
4567
  { { ac_try="$ac_compiler $ac_option >&5"
 
4568
case "(($ac_try" in
 
4569
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4570
  *) ac_try_echo=$ac_try;;
 
4571
esac
 
4572
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4573
$as_echo "$ac_try_echo"; } >&5
 
4574
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
4575
  ac_status=$?
 
4576
  if test -s conftest.err; then
 
4577
    sed '10a\
 
4578
... rest of stderr output deleted ...
 
4579
         10q' conftest.err >conftest.er1
 
4580
    cat conftest.er1 >&5
 
4581
  fi
 
4582
  rm -f conftest.er1 conftest.err
 
4583
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4584
  test $ac_status = 0; }
 
4585
done
 
4586
 
 
4587
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4588
/* end confdefs.h.  */
 
4589
 
 
4590
int
 
4591
main (void)
 
4592
{
 
4593
 
 
4594
  ;
 
4595
  return 0;
 
4596
}
 
4597
_ACEOF
 
4598
ac_clean_files_save=$ac_clean_files
 
4599
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
4600
# Try to create an executable without -o first, disregard a.out.
 
4601
# It will help us diagnose broken compilers, and finding out an intuition
 
4602
# of exeext.
 
4603
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
4604
$as_echo_n "checking whether the C compiler works... " >&6; }
 
4605
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
4606
 
 
4607
# The possible output files:
 
4608
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
4609
 
 
4610
ac_rmfiles=
 
4611
for ac_file in $ac_files
 
4612
do
 
4613
  case $ac_file in
 
4614
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
4615
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
4616
  esac
 
4617
done
 
4618
rm -f $ac_rmfiles
 
4619
 
 
4620
if { { ac_try="$ac_link_default"
 
4621
case "(($ac_try" in
 
4622
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4623
  *) ac_try_echo=$ac_try;;
 
4624
esac
 
4625
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4626
$as_echo "$ac_try_echo"; } >&5
 
4627
  (eval "$ac_link_default") 2>&5
 
4628
  ac_status=$?
 
4629
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4630
  test $ac_status = 0; }; then :
 
4631
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
4632
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
4633
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
4634
# so that the user can short-circuit this test for compilers unknown to
 
4635
# Autoconf.
 
4636
for ac_file in $ac_files ''
 
4637
do
 
4638
  test -f "$ac_file" || continue
 
4639
  case $ac_file in
 
4640
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
4641
        ;;
 
4642
    [ab].out )
 
4643
        # We found the default executable, but exeext='' is most
 
4644
        # certainly right.
 
4645
        break;;
 
4646
    *.* )
 
4647
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
4648
        then :; else
 
4649
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
4650
        fi
 
4651
        # We set ac_cv_exeext here because the later test for it is not
 
4652
        # safe: cross compilers may not add the suffix if given an `-o'
 
4653
        # argument, so we may need to know it at that point already.
 
4654
        # Even if this section looks crufty: it has the advantage of
 
4655
        # actually working.
 
4656
        break;;
 
4657
    * )
 
4658
        break;;
 
4659
  esac
 
4660
done
 
4661
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
4662
 
 
4663
else
 
4664
  ac_file=''
 
4665
fi
 
4666
if test -z "$ac_file"; then :
 
4667
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4668
$as_echo "no" >&6; }
 
4669
$as_echo "$as_me: failed program was:" >&5
 
4670
sed 's/^/| /' conftest.$ac_ext >&5
 
4671
 
 
4672
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4673
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4674
as_fn_error 77 "C compiler cannot create executables
 
4675
See \`config.log' for more details" "$LINENO" 5 ; }
 
4676
else
 
4677
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4678
$as_echo "yes" >&6; }
 
4679
fi
 
4680
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
4681
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
4682
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
4683
$as_echo "$ac_file" >&6; }
 
4684
ac_exeext=$ac_cv_exeext
 
4685
 
 
4686
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
4687
ac_clean_files=$ac_clean_files_save
 
4688
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
4689
$as_echo_n "checking for suffix of executables... " >&6; }
 
4690
if { { ac_try="$ac_link"
 
4691
case "(($ac_try" in
 
4692
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4693
  *) ac_try_echo=$ac_try;;
 
4694
esac
 
4695
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4696
$as_echo "$ac_try_echo"; } >&5
 
4697
  (eval "$ac_link") 2>&5
 
4698
  ac_status=$?
 
4699
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4700
  test $ac_status = 0; }; then :
 
4701
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
4702
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
4703
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
4704
# `rm'.
 
4705
for ac_file in conftest.exe conftest conftest.*; do
 
4706
  test -f "$ac_file" || continue
 
4707
  case $ac_file in
 
4708
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
4709
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
4710
          break;;
 
4711
    * ) break;;
 
4712
  esac
 
4713
done
 
4714
else
 
4715
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4716
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4717
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
4718
See \`config.log' for more details" "$LINENO" 5 ; }
 
4719
fi
 
4720
rm -f conftest conftest$ac_cv_exeext
 
4721
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
4722
$as_echo "$ac_cv_exeext" >&6; }
 
4723
 
 
4724
rm -f conftest.$ac_ext
 
4725
EXEEXT=$ac_cv_exeext
 
4726
ac_exeext=$EXEEXT
 
4727
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4728
/* end confdefs.h.  */
 
4729
@%:@include <stdio.h>
 
4730
int
 
4731
main (void)
 
4732
{
 
4733
FILE *f = fopen ("conftest.out", "w");
 
4734
 return ferror (f) || fclose (f) != 0;
 
4735
 
 
4736
  ;
 
4737
  return 0;
 
4738
}
 
4739
_ACEOF
 
4740
ac_clean_files="$ac_clean_files conftest.out"
 
4741
# Check that the compiler produces executables we can run.  If not, either
 
4742
# the compiler is broken, or we cross compile.
 
4743
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
4744
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
4745
if test "$cross_compiling" != yes; then
 
4746
  { { ac_try="$ac_link"
 
4747
case "(($ac_try" in
 
4748
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4749
  *) ac_try_echo=$ac_try;;
 
4750
esac
 
4751
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4752
$as_echo "$ac_try_echo"; } >&5
 
4753
  (eval "$ac_link") 2>&5
 
4754
  ac_status=$?
 
4755
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4756
  test $ac_status = 0; }
 
4757
  if { ac_try='./conftest$ac_cv_exeext'
 
4758
  { { case "(($ac_try" in
 
4759
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4760
  *) ac_try_echo=$ac_try;;
 
4761
esac
 
4762
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4763
$as_echo "$ac_try_echo"; } >&5
 
4764
  (eval "$ac_try") 2>&5
 
4765
  ac_status=$?
 
4766
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4767
  test $ac_status = 0; }; }; then
 
4768
    cross_compiling=no
 
4769
  else
 
4770
    if test "$cross_compiling" = maybe; then
 
4771
        cross_compiling=yes
 
4772
    else
 
4773
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4774
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4775
as_fn_error $? "cannot run C compiled programs.
 
4776
If you meant to cross compile, use \`--host'.
 
4777
See \`config.log' for more details" "$LINENO" 5 ; }
 
4778
    fi
 
4779
  fi
 
4780
fi
 
4781
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
4782
$as_echo "$cross_compiling" >&6; }
 
4783
 
 
4784
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
4785
ac_clean_files=$ac_clean_files_save
 
4786
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
4787
$as_echo_n "checking for suffix of object files... " >&6; }
 
4788
if test "${ac_cv_objext+set}" = set; then :
 
4789
  $as_echo_n "(cached) " >&6
 
4790
else
 
4791
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4792
/* end confdefs.h.  */
 
4793
 
 
4794
int
 
4795
main (void)
 
4796
{
 
4797
 
 
4798
  ;
 
4799
  return 0;
 
4800
}
 
4801
_ACEOF
 
4802
rm -f conftest.o conftest.obj
 
4803
if { { ac_try="$ac_compile"
 
4804
case "(($ac_try" in
 
4805
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4806
  *) ac_try_echo=$ac_try;;
 
4807
esac
 
4808
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4809
$as_echo "$ac_try_echo"; } >&5
 
4810
  (eval "$ac_compile") 2>&5
 
4811
  ac_status=$?
 
4812
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4813
  test $ac_status = 0; }; then :
 
4814
  for ac_file in conftest.o conftest.obj conftest.*; do
 
4815
  test -f "$ac_file" || continue;
 
4816
  case $ac_file in
 
4817
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
4818
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
4819
       break;;
 
4820
  esac
 
4821
done
 
4822
else
 
4823
  $as_echo "$as_me: failed program was:" >&5
 
4824
sed 's/^/| /' conftest.$ac_ext >&5
 
4825
 
 
4826
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4827
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4828
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
4829
See \`config.log' for more details" "$LINENO" 5 ; }
 
4830
fi
 
4831
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
4832
fi
 
4833
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
4834
$as_echo "$ac_cv_objext" >&6; }
 
4835
OBJEXT=$ac_cv_objext
 
4836
ac_objext=$OBJEXT
 
4837
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
4838
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
4839
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
4840
  $as_echo_n "(cached) " >&6
 
4841
else
 
4842
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4843
/* end confdefs.h.  */
 
4844
 
 
4845
int
 
4846
main (void)
 
4847
{
 
4848
#ifndef __GNUC__
 
4849
       choke me
 
4850
#endif
 
4851
 
 
4852
  ;
 
4853
  return 0;
 
4854
}
 
4855
_ACEOF
 
4856
if ac_fn_c_try_compile "$LINENO"; then :
 
4857
  ac_compiler_gnu=yes
 
4858
else
 
4859
  ac_compiler_gnu=no
 
4860
fi
 
4861
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4862
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
4863
 
 
4864
fi
 
4865
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
4866
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
4867
if test $ac_compiler_gnu = yes; then
 
4868
  GCC=yes
 
4869
else
 
4870
  GCC=
 
4871
fi
 
4872
ac_test_CFLAGS=${CFLAGS+set}
 
4873
ac_save_CFLAGS=$CFLAGS
 
4874
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
4875
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
4876
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
4877
  $as_echo_n "(cached) " >&6
 
4878
else
 
4879
  ac_save_c_werror_flag=$ac_c_werror_flag
 
4880
   ac_c_werror_flag=yes
 
4881
   ac_cv_prog_cc_g=no
 
4882
   CFLAGS="-g"
 
4883
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4884
/* end confdefs.h.  */
 
4885
 
 
4886
int
 
4887
main (void)
 
4888
{
 
4889
 
 
4890
  ;
 
4891
  return 0;
 
4892
}
 
4893
_ACEOF
 
4894
if ac_fn_c_try_compile "$LINENO"; then :
 
4895
  ac_cv_prog_cc_g=yes
 
4896
else
 
4897
  CFLAGS=""
 
4898
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4899
/* end confdefs.h.  */
 
4900
 
 
4901
int
 
4902
main (void)
 
4903
{
 
4904
 
 
4905
  ;
 
4906
  return 0;
 
4907
}
 
4908
_ACEOF
 
4909
if ac_fn_c_try_compile "$LINENO"; then :
 
4910
  
 
4911
else
 
4912
  ac_c_werror_flag=$ac_save_c_werror_flag
 
4913
         CFLAGS="-g"
 
4914
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4915
/* end confdefs.h.  */
 
4916
 
 
4917
int
 
4918
main (void)
 
4919
{
 
4920
 
 
4921
  ;
 
4922
  return 0;
 
4923
}
 
4924
_ACEOF
 
4925
if ac_fn_c_try_compile "$LINENO"; then :
 
4926
  ac_cv_prog_cc_g=yes
 
4927
fi
 
4928
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4929
fi
 
4930
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4931
fi
 
4932
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4933
   ac_c_werror_flag=$ac_save_c_werror_flag
 
4934
fi
 
4935
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
4936
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
4937
if test "$ac_test_CFLAGS" = set; then
 
4938
  CFLAGS=$ac_save_CFLAGS
 
4939
elif test $ac_cv_prog_cc_g = yes; then
 
4940
  if test "$GCC" = yes; then
 
4941
    CFLAGS="-g -O2"
 
4942
  else
 
4943
    CFLAGS="-g"
 
4944
  fi
 
4945
else
 
4946
  if test "$GCC" = yes; then
 
4947
    CFLAGS="-O2"
 
4948
  else
 
4949
    CFLAGS=
 
4950
  fi
 
4951
fi
 
4952
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
4953
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
4954
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
4955
  $as_echo_n "(cached) " >&6
 
4956
else
 
4957
  ac_cv_prog_cc_c89=no
 
4958
ac_save_CC=$CC
 
4959
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4960
/* end confdefs.h.  */
 
4961
#include <stdarg.h>
 
4962
#include <stdio.h>
 
4963
#include <sys/types.h>
 
4964
#include <sys/stat.h>
 
4965
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
4966
struct buf { int x; };
 
4967
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
4968
static char *e (p, i)
 
4969
     char **p;
 
4970
     int i;
 
4971
{
 
4972
  return p[i];
 
4973
}
 
4974
static char *f (char * (*g) (char **, int), char **p, ...)
 
4975
{
 
4976
  char *s;
 
4977
  va_list v;
 
4978
  va_start (v,p);
 
4979
  s = g (p, va_arg (v,int));
 
4980
  va_end (v);
 
4981
  return s;
 
4982
}
 
4983
 
 
4984
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
4985
   function prototypes and stuff, but not '\xHH' hex character constants.
 
4986
   These don't provoke an error unfortunately, instead are silently treated
 
4987
   as 'x'.  The following induces an error, until -std is added to get
 
4988
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
4989
   array size at least.  It's necessary to write '\x00'==0 to get something
 
4990
   that's true only with -std.  */
 
4991
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
4992
 
 
4993
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
4994
   inside strings and character constants.  */
 
4995
#define FOO(x) 'x'
 
4996
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
4997
 
 
4998
int test (int i, double x);
 
4999
struct s1 {int (*f) (int a);};
 
5000
struct s2 {int (*f) (double a);};
 
5001
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
5002
int argc;
 
5003
char **argv;
 
5004
int
 
5005
main (void)
 
5006
{
 
5007
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
5008
  ;
 
5009
  return 0;
 
5010
}
 
5011
_ACEOF
 
5012
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
5013
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
5014
do
 
5015
  CC="$ac_save_CC $ac_arg"
 
5016
  if ac_fn_c_try_compile "$LINENO"; then :
 
5017
  ac_cv_prog_cc_c89=$ac_arg
 
5018
fi
 
5019
rm -f core conftest.err conftest.$ac_objext
 
5020
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
5021
done
 
5022
rm -f conftest.$ac_ext
 
5023
CC=$ac_save_CC
 
5024
 
 
5025
fi
 
5026
# AC_CACHE_VAL
 
5027
case "x$ac_cv_prog_cc_c89" in
 
5028
  x)
 
5029
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
5030
$as_echo "none needed" >&6; } ;;
 
5031
  xno)
 
5032
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
5033
$as_echo "unsupported" >&6; } ;;
 
5034
  *)
 
5035
    CC="$CC $ac_cv_prog_cc_c89"
 
5036
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
5037
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
5038
esac
 
5039
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
5040
  
 
5041
fi
 
5042
 
 
5043
ac_ext=c
 
5044
ac_cpp='$CPP $CPPFLAGS'
 
5045
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5046
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5047
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5048
 
 
5049
depcc="$CC"   am_compiler_list=
 
5050
 
 
5051
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
5052
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
5053
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
 
5054
  $as_echo_n "(cached) " >&6
 
5055
else
 
5056
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
5057
  # We make a subdir and do the tests there.  Otherwise we can end up
 
5058
  # making bogus files that we don't know about and never remove.  For
 
5059
  # instance it was reported that on HP-UX the gcc test will end up
 
5060
  # making a dummy file named `D' -- because `-MD' means `put the output
 
5061
  # in D'.
 
5062
  mkdir conftest.dir
 
5063
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
5064
  # using a relative directory.
 
5065
  cp "$am_depcomp" conftest.dir
 
5066
  cd conftest.dir
 
5067
  # We will build objects and dependencies in a subdirectory because
 
5068
  # it helps to detect inapplicable dependency modes.  For instance
 
5069
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
5070
  # side effect of compilation, but ICC will put the dependencies in
 
5071
  # the current directory while Tru64 will put them in the object
 
5072
  # directory.
 
5073
  mkdir sub
 
5074
 
 
5075
  am_cv_CC_dependencies_compiler_type=none
 
5076
  if test "$am_compiler_list" = ""; then
 
5077
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
5078
  fi
 
5079
  am__universal=false
 
5080
  case " $depcc " in #(
 
5081
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
5082
     esac
 
5083
 
 
5084
  for depmode in $am_compiler_list; do
 
5085
    # Setup a source with many dependencies, because some compilers
 
5086
    # like to wrap large dependency lists on column 80 (with \), and
 
5087
    # we should not choose a depcomp mode which is confused by this.
 
5088
    #
 
5089
    # We need to recreate these files for each test, as the compiler may
 
5090
    # overwrite some of them when testing with obscure command lines.
 
5091
    # This happens at least with the AIX C compiler.
 
5092
    : > sub/conftest.c
 
5093
    for i in 1 2 3 4 5 6; do
 
5094
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
5095
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
5096
      # Solaris 8's {/usr,}/bin/sh.
 
5097
      touch sub/conftst$i.h
 
5098
    done
 
5099
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
5100
 
 
5101
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
5102
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
5103
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
5104
    # versions had trouble with output in subdirs
 
5105
    am__obj=sub/conftest.${OBJEXT-o}
 
5106
    am__minus_obj="-o $am__obj"
 
5107
    case $depmode in
 
5108
    gcc)
 
5109
      # This depmode causes a compiler race in universal mode.
 
5110
      test "$am__universal" = false || continue
 
5111
      ;;
 
5112
    nosideeffect)
 
5113
      # after this tag, mechanisms are not by side-effect, so they'll
 
5114
      # only be used when explicitly requested
 
5115
      if test "x$enable_dependency_tracking" = xyes; then
 
5116
        continue
 
5117
      else
 
5118
        break
 
5119
      fi
 
5120
      ;;
 
5121
    msvisualcpp | msvcmsys)
 
5122
      # This compiler won't grok `-c -o', but also, the minuso test has
 
5123
      # not run yet.  These depmodes are late enough in the game, and
 
5124
      # so weak that their functioning should not be impacted.
 
5125
      am__obj=conftest.${OBJEXT-o}
 
5126
      am__minus_obj=
 
5127
      ;;
 
5128
    none) break ;;
 
5129
    esac
 
5130
    if depmode=$depmode \
 
5131
       source=sub/conftest.c object=$am__obj \
 
5132
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
5133
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
5134
         >/dev/null 2>conftest.err &&
 
5135
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
5136
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
5137
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
5138
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
5139
      # icc doesn't choke on unknown options, it will just issue warnings
 
5140
      # or remarks (even with -Werror).  So we grep stderr for any message
 
5141
      # that says an option was ignored or not supported.
 
5142
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
5143
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
5144
      # The diagnosis changed in icc 8.0:
 
5145
      #   icc: Command line remark: option '-MP' not supported
 
5146
      if (grep 'ignoring option' conftest.err ||
 
5147
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
5148
        am_cv_CC_dependencies_compiler_type=$depmode
 
5149
        break
 
5150
      fi
 
5151
    fi
 
5152
  done
 
5153
 
 
5154
  cd ..
 
5155
  rm -rf conftest.dir
 
5156
else
 
5157
  am_cv_CC_dependencies_compiler_type=none
 
5158
fi
 
5159
 
 
5160
fi
 
5161
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
5162
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
5163
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
5164
 
 
5165
 if 
 
5166
  test "x$enable_dependency_tracking" != xno \
 
5167
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
5168
  am__fastdepCC_TRUE=
 
5169
  am__fastdepCC_FALSE='#'
 
5170
else
 
5171
  am__fastdepCC_TRUE='#'
 
5172
  am__fastdepCC_FALSE=
 
5173
fi
 
5174
 
 
5175
 
 
5176
 
 
5177
for ac_prog in flex lex
 
5178
do
 
5179
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5180
set dummy $ac_prog; ac_word=$2
 
5181
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5182
$as_echo_n "checking for $ac_word... " >&6; }
 
5183
if test "${ac_cv_prog_LEX+set}" = set; then :
 
5184
  $as_echo_n "(cached) " >&6
 
5185
else
 
5186
  if test -n "$LEX"; then
 
5187
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
 
5188
else
 
5189
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5190
for as_dir in $PATH
 
5191
do
 
5192
  IFS=$as_save_IFS
 
5193
  test -z "$as_dir" && as_dir=.
 
5194
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5195
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5196
    ac_cv_prog_LEX="$ac_prog"
 
5197
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5198
    break 2
 
5199
  fi
 
5200
done
 
5201
  done
 
5202
IFS=$as_save_IFS
 
5203
 
 
5204
fi
 
5205
fi
 
5206
LEX=$ac_cv_prog_LEX
 
5207
if test -n "$LEX"; then
 
5208
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
 
5209
$as_echo "$LEX" >&6; }
 
5210
else
 
5211
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5212
$as_echo "no" >&6; }
 
5213
fi
 
5214
 
 
5215
 
 
5216
  test -n "$LEX" && break
 
5217
done
 
5218
test -n "$LEX" || LEX=":"
 
5219
 
 
5220
if test "x$LEX" != "x:"; then
 
5221
  cat >conftest.l <<_ACEOF
 
5222
%%
 
5223
a { ECHO; }
 
5224
b { REJECT; }
 
5225
c { yymore (); }
 
5226
d { yyless (1); }
 
5227
e { yyless (input () != 0); }
 
5228
f { unput (yytext[0]); }
 
5229
. { BEGIN INITIAL; }
 
5230
%%
 
5231
#ifdef YYTEXT_POINTER
 
5232
extern char *yytext;
 
5233
#endif
 
5234
int
 
5235
main (void)
 
5236
{
 
5237
  return ! yylex () + ! yywrap ();
 
5238
}
 
5239
_ACEOF
 
5240
{ { ac_try="$LEX conftest.l"
 
5241
case "(($ac_try" in
 
5242
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5243
  *) ac_try_echo=$ac_try;;
 
5244
esac
 
5245
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
5246
$as_echo "$ac_try_echo"; } >&5
 
5247
  (eval "$LEX conftest.l") 2>&5
 
5248
  ac_status=$?
 
5249
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5250
  test $ac_status = 0; }
 
5251
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
 
5252
$as_echo_n "checking lex output file root... " >&6; }
 
5253
if test "${ac_cv_prog_lex_root+set}" = set; then :
 
5254
  $as_echo_n "(cached) " >&6
 
5255
else
 
5256
  
 
5257
if test -f lex.yy.c; then
 
5258
  ac_cv_prog_lex_root=lex.yy
 
5259
elif test -f lexyy.c; then
 
5260
  ac_cv_prog_lex_root=lexyy
 
5261
else
 
5262
  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 
 
5263
fi
 
5264
fi
 
5265
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
 
5266
$as_echo "$ac_cv_prog_lex_root" >&6; }
 
5267
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
 
5268
 
 
5269
if test -z "${LEXLIB+set}"; then
 
5270
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
 
5271
$as_echo_n "checking lex library... " >&6; }
 
5272
if test "${ac_cv_lib_lex+set}" = set; then :
 
5273
  $as_echo_n "(cached) " >&6
 
5274
else
 
5275
  
 
5276
    ac_save_LIBS=$LIBS
 
5277
    ac_cv_lib_lex='none needed'
 
5278
    for ac_lib in '' -lfl -ll; do
 
5279
      LIBS="$ac_lib $ac_save_LIBS"
 
5280
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5281
/* end confdefs.h.  */
 
5282
`cat $LEX_OUTPUT_ROOT.c`
 
5283
_ACEOF
 
5284
if ac_fn_c_try_link "$LINENO"; then :
 
5285
  ac_cv_lib_lex=$ac_lib
 
5286
fi
 
5287
rm -f core conftest.err conftest.$ac_objext \
 
5288
    conftest$ac_exeext conftest.$ac_ext
 
5289
      test "$ac_cv_lib_lex" != 'none needed' && break
 
5290
    done
 
5291
    LIBS=$ac_save_LIBS
 
5292
  
 
5293
fi
 
5294
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
 
5295
$as_echo "$ac_cv_lib_lex" >&6; }
 
5296
  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
 
5297
fi
 
5298
 
 
5299
 
 
5300
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
 
5301
$as_echo_n "checking whether yytext is a pointer... " >&6; }
 
5302
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
 
5303
  $as_echo_n "(cached) " >&6
 
5304
else
 
5305
  # POSIX says lex can declare yytext either as a pointer or an array; the
 
5306
# default is implementation-dependent.  Figure out which it is, since
 
5307
# not all implementations provide the %pointer and %array declarations.
 
5308
ac_cv_prog_lex_yytext_pointer=no
 
5309
ac_save_LIBS=$LIBS
 
5310
LIBS="$LEXLIB $ac_save_LIBS"
 
5311
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5312
/* end confdefs.h.  */
 
5313
#define YYTEXT_POINTER 1
 
5314
`cat $LEX_OUTPUT_ROOT.c`
 
5315
_ACEOF
 
5316
if ac_fn_c_try_link "$LINENO"; then :
 
5317
  ac_cv_prog_lex_yytext_pointer=yes
 
5318
fi
 
5319
rm -f core conftest.err conftest.$ac_objext \
 
5320
    conftest$ac_exeext conftest.$ac_ext
 
5321
LIBS=$ac_save_LIBS
 
5322
 
 
5323
fi
 
5324
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
 
5325
$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
 
5326
if test $ac_cv_prog_lex_yytext_pointer = yes; then
 
5327
  
 
5328
$as_echo "@%:@define YYTEXT_POINTER 1" >>confdefs.h
 
5329
 
 
5330
fi
 
5331
rm -f conftest.l $LEX_OUTPUT_ROOT.c
 
5332
 
 
5333
fi
 
5334
for ac_prog in 'bison -y' byacc
 
5335
do
 
5336
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5337
set dummy $ac_prog; ac_word=$2
 
5338
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5339
$as_echo_n "checking for $ac_word... " >&6; }
 
5340
if test "${ac_cv_prog_YACC+set}" = set; then :
 
5341
  $as_echo_n "(cached) " >&6
 
5342
else
 
5343
  if test -n "$YACC"; then
 
5344
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
 
5345
else
 
5346
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5347
for as_dir in $PATH
 
5348
do
 
5349
  IFS=$as_save_IFS
 
5350
  test -z "$as_dir" && as_dir=.
 
5351
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5352
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5353
    ac_cv_prog_YACC="$ac_prog"
 
5354
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5355
    break 2
 
5356
  fi
 
5357
done
 
5358
  done
 
5359
IFS=$as_save_IFS
 
5360
 
 
5361
fi
 
5362
fi
 
5363
YACC=$ac_cv_prog_YACC
 
5364
if test -n "$YACC"; then
 
5365
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
 
5366
$as_echo "$YACC" >&6; }
 
5367
else
 
5368
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5369
$as_echo "no" >&6; }
 
5370
fi
 
5371
 
 
5372
 
 
5373
  test -n "$YACC" && break
 
5374
done
 
5375
test -n "$YACC" || YACC="yacc"
 
5376
 
 
5377
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
5378
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
5379
set x ${MAKE-make}
 
5380
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
5381
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
 
5382
  $as_echo_n "(cached) " >&6
 
5383
else
 
5384
  cat >conftest.make <<\_ACEOF
 
5385
SHELL = /bin/sh
 
5386
all:
 
5387
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
5388
_ACEOF
 
5389
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
5390
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
5391
  *@@@%%%=?*=@@@%%%*)
 
5392
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
5393
  *)
 
5394
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
5395
esac
 
5396
rm -f conftest.make
 
5397
fi
 
5398
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
5399
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5400
$as_echo "yes" >&6; }
 
5401
  SET_MAKE=
 
5402
else
 
5403
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5404
$as_echo "no" >&6; }
 
5405
  SET_MAKE="MAKE=${MAKE-make}"
 
5406
fi
 
5407
 
 
5408
 
 
5409
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
5410
$as_echo_n "checking whether ln -s works... " >&6; }
 
5411
LN_S=$as_ln_s
 
5412
if test "$LN_S" = "ln -s"; then
 
5413
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5414
$as_echo "yes" >&6; }
 
5415
else
 
5416
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
5417
$as_echo "no, using $LN_S" >&6; }
 
5418
fi
 
5419
 
 
5420
 
 
5421
if test "x$LEX" = "x:"; then
 
5422
  as_fn_error $? "flex is not found" "$LINENO" 5 
 
5423
else
 
5424
  version=`$LEX --version | $AWK '{ split($NF,x,"."); print x[1]*10000+x[2]*100+x[3]; }'`
 
5425
  if test -n "$version" -a "$version" -ge 20535; then
 
5426
    :
 
5427
  else
 
5428
    as_fn_error $? "flex is too old. GRUB requires 2.5.35 or above" "$LINENO" 5 
 
5429
  fi
 
5430
fi
 
5431
 
 
5432
# These are not a "must".
 
5433
for ac_prog in makeinfo true
 
5434
do
 
5435
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5436
set dummy $ac_prog; ac_word=$2
 
5437
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5438
$as_echo_n "checking for $ac_word... " >&6; }
 
5439
if test "${ac_cv_path_MAKEINFO+set}" = set; then :
 
5440
  $as_echo_n "(cached) " >&6
 
5441
else
 
5442
  case $MAKEINFO in
 
5443
  [\\/]* | ?:[\\/]*)
 
5444
  ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
 
5445
  ;;
 
5446
  *)
 
5447
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5448
for as_dir in $PATH
 
5449
do
 
5450
  IFS=$as_save_IFS
 
5451
  test -z "$as_dir" && as_dir=.
 
5452
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5453
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5454
    ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
 
5455
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5456
    break 2
 
5457
  fi
 
5458
done
 
5459
  done
 
5460
IFS=$as_save_IFS
 
5461
 
 
5462
  ;;
 
5463
esac
 
5464
fi
 
5465
MAKEINFO=$ac_cv_path_MAKEINFO
 
5466
if test -n "$MAKEINFO"; then
 
5467
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
 
5468
$as_echo "$MAKEINFO" >&6; }
 
5469
else
 
5470
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5471
$as_echo "no" >&6; }
 
5472
fi
 
5473
 
 
5474
 
 
5475
  test -n "$MAKEINFO" && break
 
5476
done
 
5477
 
 
5478
 
 
5479
#
 
5480
# Checks for host programs.
 
5481
#
 
5482
 
 
5483
ac_ext=c
 
5484
ac_cpp='$CPP $CPPFLAGS'
 
5485
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5486
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5487
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5488
if test -n "$ac_tool_prefix"; then
 
5489
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
5490
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
5491
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5492
$as_echo_n "checking for $ac_word... " >&6; }
 
5493
if test "${ac_cv_prog_CC+set}" = set; then :
 
5494
  $as_echo_n "(cached) " >&6
 
5495
else
 
5496
  if test -n "$CC"; then
 
5497
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
5498
else
 
5499
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5500
for as_dir in $PATH
 
5501
do
 
5502
  IFS=$as_save_IFS
 
5503
  test -z "$as_dir" && as_dir=.
 
5504
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5505
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5506
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
5507
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5508
    break 2
 
5509
  fi
 
5510
done
 
5511
  done
 
5512
IFS=$as_save_IFS
 
5513
 
 
5514
fi
 
5515
fi
 
5516
CC=$ac_cv_prog_CC
 
5517
if test -n "$CC"; then
 
5518
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
5519
$as_echo "$CC" >&6; }
 
5520
else
 
5521
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5522
$as_echo "no" >&6; }
 
5523
fi
 
5524
 
 
5525
 
 
5526
fi
 
5527
if test -z "$ac_cv_prog_CC"; then
 
5528
  ac_ct_CC=$CC
 
5529
  # Extract the first word of "gcc", so it can be a program name with args.
 
5530
set dummy gcc; ac_word=$2
 
5531
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5532
$as_echo_n "checking for $ac_word... " >&6; }
 
5533
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
5534
  $as_echo_n "(cached) " >&6
 
5535
else
 
5536
  if test -n "$ac_ct_CC"; then
 
5537
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
5538
else
 
5539
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5540
for as_dir in $PATH
 
5541
do
 
5542
  IFS=$as_save_IFS
 
5543
  test -z "$as_dir" && as_dir=.
 
5544
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5545
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5546
    ac_cv_prog_ac_ct_CC="gcc"
 
5547
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5548
    break 2
 
5549
  fi
 
5550
done
 
5551
  done
 
5552
IFS=$as_save_IFS
 
5553
 
 
5554
fi
 
5555
fi
 
5556
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
5557
if test -n "$ac_ct_CC"; then
 
5558
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
5559
$as_echo "$ac_ct_CC" >&6; }
 
5560
else
 
5561
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5562
$as_echo "no" >&6; }
 
5563
fi
 
5564
 
 
5565
  if test "x$ac_ct_CC" = x; then
 
5566
    CC=""
 
5567
  else
 
5568
    case $cross_compiling:$ac_tool_warned in
 
5569
yes:)
 
5570
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5571
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5572
ac_tool_warned=yes ;;
 
5573
esac
 
5574
    CC=$ac_ct_CC
 
5575
  fi
 
5576
else
 
5577
  CC="$ac_cv_prog_CC"
 
5578
fi
 
5579
 
 
5580
if test -z "$CC"; then
 
5581
          if test -n "$ac_tool_prefix"; then
 
5582
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
5583
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
5584
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5585
$as_echo_n "checking for $ac_word... " >&6; }
 
5586
if test "${ac_cv_prog_CC+set}" = set; then :
 
5587
  $as_echo_n "(cached) " >&6
 
5588
else
 
5589
  if test -n "$CC"; then
 
5590
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
5591
else
 
5592
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5593
for as_dir in $PATH
 
5594
do
 
5595
  IFS=$as_save_IFS
 
5596
  test -z "$as_dir" && as_dir=.
 
5597
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5598
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5599
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
5600
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5601
    break 2
 
5602
  fi
 
5603
done
 
5604
  done
 
5605
IFS=$as_save_IFS
 
5606
 
 
5607
fi
 
5608
fi
 
5609
CC=$ac_cv_prog_CC
 
5610
if test -n "$CC"; then
 
5611
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
5612
$as_echo "$CC" >&6; }
 
5613
else
 
5614
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5615
$as_echo "no" >&6; }
 
5616
fi
 
5617
 
 
5618
 
 
5619
  fi
 
5620
fi
 
5621
if test -z "$CC"; then
 
5622
  # Extract the first word of "cc", so it can be a program name with args.
 
5623
set dummy cc; ac_word=$2
 
5624
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5625
$as_echo_n "checking for $ac_word... " >&6; }
 
5626
if test "${ac_cv_prog_CC+set}" = set; then :
 
5627
  $as_echo_n "(cached) " >&6
 
5628
else
 
5629
  if test -n "$CC"; then
 
5630
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
5631
else
 
5632
  ac_prog_rejected=no
 
5633
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5634
for as_dir in $PATH
 
5635
do
 
5636
  IFS=$as_save_IFS
 
5637
  test -z "$as_dir" && as_dir=.
 
5638
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5639
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5640
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
5641
       ac_prog_rejected=yes
 
5642
       continue
 
5643
     fi
 
5644
    ac_cv_prog_CC="cc"
 
5645
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5646
    break 2
 
5647
  fi
 
5648
done
 
5649
  done
 
5650
IFS=$as_save_IFS
 
5651
 
 
5652
if test $ac_prog_rejected = yes; then
 
5653
  # We found a bogon in the path, so make sure we never use it.
 
5654
  set dummy $ac_cv_prog_CC
 
5655
  shift
 
5656
  if test $@%:@ != 0; then
 
5657
    # We chose a different compiler from the bogus one.
 
5658
    # However, it has the same basename, so the bogon will be chosen
 
5659
    # first if we set CC to just the basename; use the full file name.
 
5660
    shift
 
5661
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
5662
  fi
 
5663
fi
 
5664
fi
 
5665
fi
 
5666
CC=$ac_cv_prog_CC
 
5667
if test -n "$CC"; then
 
5668
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
5669
$as_echo "$CC" >&6; }
 
5670
else
 
5671
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5672
$as_echo "no" >&6; }
 
5673
fi
 
5674
 
 
5675
 
 
5676
fi
 
5677
if test -z "$CC"; then
 
5678
  if test -n "$ac_tool_prefix"; then
 
5679
  for ac_prog in cl.exe
 
5680
  do
 
5681
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5682
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5683
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5684
$as_echo_n "checking for $ac_word... " >&6; }
 
5685
if test "${ac_cv_prog_CC+set}" = set; then :
 
5686
  $as_echo_n "(cached) " >&6
 
5687
else
 
5688
  if test -n "$CC"; then
 
5689
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
5690
else
 
5691
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5692
for as_dir in $PATH
 
5693
do
 
5694
  IFS=$as_save_IFS
 
5695
  test -z "$as_dir" && as_dir=.
 
5696
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5697
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5698
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
5699
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5700
    break 2
 
5701
  fi
 
5702
done
 
5703
  done
 
5704
IFS=$as_save_IFS
 
5705
 
 
5706
fi
 
5707
fi
 
5708
CC=$ac_cv_prog_CC
 
5709
if test -n "$CC"; then
 
5710
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
5711
$as_echo "$CC" >&6; }
 
5712
else
 
5713
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5714
$as_echo "no" >&6; }
 
5715
fi
 
5716
 
 
5717
 
 
5718
    test -n "$CC" && break
 
5719
  done
 
5720
fi
 
5721
if test -z "$CC"; then
 
5722
  ac_ct_CC=$CC
 
5723
  for ac_prog in cl.exe
 
5724
do
 
5725
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5726
set dummy $ac_prog; ac_word=$2
 
5727
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5728
$as_echo_n "checking for $ac_word... " >&6; }
 
5729
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
5730
  $as_echo_n "(cached) " >&6
 
5731
else
 
5732
  if test -n "$ac_ct_CC"; then
 
5733
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
5734
else
 
5735
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5736
for as_dir in $PATH
 
5737
do
 
5738
  IFS=$as_save_IFS
 
5739
  test -z "$as_dir" && as_dir=.
 
5740
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5741
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5742
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
5743
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5744
    break 2
 
5745
  fi
 
5746
done
 
5747
  done
 
5748
IFS=$as_save_IFS
 
5749
 
 
5750
fi
 
5751
fi
 
5752
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
5753
if test -n "$ac_ct_CC"; then
 
5754
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
5755
$as_echo "$ac_ct_CC" >&6; }
 
5756
else
 
5757
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5758
$as_echo "no" >&6; }
 
5759
fi
 
5760
 
 
5761
 
 
5762
  test -n "$ac_ct_CC" && break
 
5763
done
 
5764
 
 
5765
  if test "x$ac_ct_CC" = x; then
 
5766
    CC=""
 
5767
  else
 
5768
    case $cross_compiling:$ac_tool_warned in
 
5769
yes:)
 
5770
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5771
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5772
ac_tool_warned=yes ;;
 
5773
esac
 
5774
    CC=$ac_ct_CC
 
5775
  fi
 
5776
fi
 
5777
 
 
5778
fi
 
5779
 
 
5780
 
 
5781
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
5782
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
5783
as_fn_error $? "no acceptable C compiler found in \$PATH
 
5784
See \`config.log' for more details" "$LINENO" 5 ; }
 
5785
 
 
5786
# Provide some information about the compiler.
 
5787
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
5788
set X $ac_compile
 
5789
ac_compiler=$2
 
5790
for ac_option in --version -v -V -qversion; do
 
5791
  { { ac_try="$ac_compiler $ac_option >&5"
 
5792
case "(($ac_try" in
 
5793
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5794
  *) ac_try_echo=$ac_try;;
 
5795
esac
 
5796
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
5797
$as_echo "$ac_try_echo"; } >&5
 
5798
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
5799
  ac_status=$?
 
5800
  if test -s conftest.err; then
 
5801
    sed '10a\
 
5802
... rest of stderr output deleted ...
 
5803
         10q' conftest.err >conftest.er1
 
5804
    cat conftest.er1 >&5
 
5805
  fi
 
5806
  rm -f conftest.er1 conftest.err
 
5807
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5808
  test $ac_status = 0; }
 
5809
done
 
5810
 
 
5811
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
5812
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
5813
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
5814
  $as_echo_n "(cached) " >&6
 
5815
else
 
5816
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5817
/* end confdefs.h.  */
 
5818
 
 
5819
int
 
5820
main (void)
 
5821
{
 
5822
#ifndef __GNUC__
 
5823
       choke me
 
5824
#endif
 
5825
 
 
5826
  ;
 
5827
  return 0;
 
5828
}
 
5829
_ACEOF
 
5830
if ac_fn_c_try_compile "$LINENO"; then :
 
5831
  ac_compiler_gnu=yes
 
5832
else
 
5833
  ac_compiler_gnu=no
 
5834
fi
 
5835
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5836
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
5837
 
 
5838
fi
 
5839
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
5840
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
5841
if test $ac_compiler_gnu = yes; then
 
5842
  GCC=yes
 
5843
else
 
5844
  GCC=
 
5845
fi
 
5846
ac_test_CFLAGS=${CFLAGS+set}
 
5847
ac_save_CFLAGS=$CFLAGS
 
5848
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
5849
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
5850
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
5851
  $as_echo_n "(cached) " >&6
 
5852
else
 
5853
  ac_save_c_werror_flag=$ac_c_werror_flag
 
5854
   ac_c_werror_flag=yes
 
5855
   ac_cv_prog_cc_g=no
 
5856
   CFLAGS="-g"
 
5857
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5858
/* end confdefs.h.  */
 
5859
 
 
5860
int
 
5861
main (void)
 
5862
{
 
5863
 
 
5864
  ;
 
5865
  return 0;
 
5866
}
 
5867
_ACEOF
 
5868
if ac_fn_c_try_compile "$LINENO"; then :
 
5869
  ac_cv_prog_cc_g=yes
 
5870
else
 
5871
  CFLAGS=""
 
5872
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5873
/* end confdefs.h.  */
 
5874
 
 
5875
int
 
5876
main (void)
 
5877
{
 
5878
 
 
5879
  ;
 
5880
  return 0;
 
5881
}
 
5882
_ACEOF
 
5883
if ac_fn_c_try_compile "$LINENO"; then :
 
5884
  
 
5885
else
 
5886
  ac_c_werror_flag=$ac_save_c_werror_flag
 
5887
         CFLAGS="-g"
 
5888
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5889
/* end confdefs.h.  */
 
5890
 
 
5891
int
 
5892
main (void)
 
5893
{
 
5894
 
 
5895
  ;
 
5896
  return 0;
 
5897
}
 
5898
_ACEOF
 
5899
if ac_fn_c_try_compile "$LINENO"; then :
 
5900
  ac_cv_prog_cc_g=yes
 
5901
fi
 
5902
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5903
fi
 
5904
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5905
fi
 
5906
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5907
   ac_c_werror_flag=$ac_save_c_werror_flag
 
5908
fi
 
5909
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
5910
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
5911
if test "$ac_test_CFLAGS" = set; then
 
5912
  CFLAGS=$ac_save_CFLAGS
 
5913
elif test $ac_cv_prog_cc_g = yes; then
 
5914
  if test "$GCC" = yes; then
 
5915
    CFLAGS="-g -O2"
 
5916
  else
 
5917
    CFLAGS="-g"
 
5918
  fi
 
5919
else
 
5920
  if test "$GCC" = yes; then
 
5921
    CFLAGS="-O2"
 
5922
  else
 
5923
    CFLAGS=
 
5924
  fi
 
5925
fi
 
5926
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
5927
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
5928
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
5929
  $as_echo_n "(cached) " >&6
 
5930
else
 
5931
  ac_cv_prog_cc_c89=no
 
5932
ac_save_CC=$CC
 
5933
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5934
/* end confdefs.h.  */
 
5935
#include <stdarg.h>
 
5936
#include <stdio.h>
 
5937
#include <sys/types.h>
 
5938
#include <sys/stat.h>
 
5939
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
5940
struct buf { int x; };
 
5941
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
5942
static char *e (p, i)
 
5943
     char **p;
 
5944
     int i;
 
5945
{
 
5946
  return p[i];
 
5947
}
 
5948
static char *f (char * (*g) (char **, int), char **p, ...)
 
5949
{
 
5950
  char *s;
 
5951
  va_list v;
 
5952
  va_start (v,p);
 
5953
  s = g (p, va_arg (v,int));
 
5954
  va_end (v);
 
5955
  return s;
 
5956
}
 
5957
 
 
5958
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
5959
   function prototypes and stuff, but not '\xHH' hex character constants.
 
5960
   These don't provoke an error unfortunately, instead are silently treated
 
5961
   as 'x'.  The following induces an error, until -std is added to get
 
5962
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
5963
   array size at least.  It's necessary to write '\x00'==0 to get something
 
5964
   that's true only with -std.  */
 
5965
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
5966
 
 
5967
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
5968
   inside strings and character constants.  */
 
5969
#define FOO(x) 'x'
 
5970
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
5971
 
 
5972
int test (int i, double x);
 
5973
struct s1 {int (*f) (int a);};
 
5974
struct s2 {int (*f) (double a);};
 
5975
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
5976
int argc;
 
5977
char **argv;
 
5978
int
 
5979
main (void)
 
5980
{
 
5981
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
5982
  ;
 
5983
  return 0;
 
5984
}
 
5985
_ACEOF
 
5986
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
5987
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
5988
do
 
5989
  CC="$ac_save_CC $ac_arg"
 
5990
  if ac_fn_c_try_compile "$LINENO"; then :
 
5991
  ac_cv_prog_cc_c89=$ac_arg
 
5992
fi
 
5993
rm -f core conftest.err conftest.$ac_objext
 
5994
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
5995
done
 
5996
rm -f conftest.$ac_ext
 
5997
CC=$ac_save_CC
 
5998
 
 
5999
fi
 
6000
# AC_CACHE_VAL
 
6001
case "x$ac_cv_prog_cc_c89" in
 
6002
  x)
 
6003
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
6004
$as_echo "none needed" >&6; } ;;
 
6005
  xno)
 
6006
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
6007
$as_echo "unsupported" >&6; } ;;
 
6008
  *)
 
6009
    CC="$CC $ac_cv_prog_cc_c89"
 
6010
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
6011
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
6012
esac
 
6013
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
6014
  
 
6015
fi
 
6016
 
 
6017
ac_ext=c
 
6018
ac_cpp='$CPP $CPPFLAGS'
 
6019
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6020
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6021
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6022
 
 
6023
depcc="$CC"   am_compiler_list=
 
6024
 
 
6025
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
6026
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
6027
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
 
6028
  $as_echo_n "(cached) " >&6
 
6029
else
 
6030
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
6031
  # We make a subdir and do the tests there.  Otherwise we can end up
 
6032
  # making bogus files that we don't know about and never remove.  For
 
6033
  # instance it was reported that on HP-UX the gcc test will end up
 
6034
  # making a dummy file named `D' -- because `-MD' means `put the output
 
6035
  # in D'.
 
6036
  mkdir conftest.dir
 
6037
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
6038
  # using a relative directory.
 
6039
  cp "$am_depcomp" conftest.dir
 
6040
  cd conftest.dir
 
6041
  # We will build objects and dependencies in a subdirectory because
 
6042
  # it helps to detect inapplicable dependency modes.  For instance
 
6043
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
6044
  # side effect of compilation, but ICC will put the dependencies in
 
6045
  # the current directory while Tru64 will put them in the object
 
6046
  # directory.
 
6047
  mkdir sub
 
6048
 
 
6049
  am_cv_CC_dependencies_compiler_type=none
 
6050
  if test "$am_compiler_list" = ""; then
 
6051
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
6052
  fi
 
6053
  am__universal=false
 
6054
  case " $depcc " in #(
 
6055
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
6056
     esac
 
6057
 
 
6058
  for depmode in $am_compiler_list; do
 
6059
    # Setup a source with many dependencies, because some compilers
 
6060
    # like to wrap large dependency lists on column 80 (with \), and
 
6061
    # we should not choose a depcomp mode which is confused by this.
 
6062
    #
 
6063
    # We need to recreate these files for each test, as the compiler may
 
6064
    # overwrite some of them when testing with obscure command lines.
 
6065
    # This happens at least with the AIX C compiler.
 
6066
    : > sub/conftest.c
 
6067
    for i in 1 2 3 4 5 6; do
 
6068
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
6069
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
6070
      # Solaris 8's {/usr,}/bin/sh.
 
6071
      touch sub/conftst$i.h
 
6072
    done
 
6073
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
6074
 
 
6075
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
6076
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
6077
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
6078
    # versions had trouble with output in subdirs
 
6079
    am__obj=sub/conftest.${OBJEXT-o}
 
6080
    am__minus_obj="-o $am__obj"
 
6081
    case $depmode in
 
6082
    gcc)
 
6083
      # This depmode causes a compiler race in universal mode.
 
6084
      test "$am__universal" = false || continue
 
6085
      ;;
 
6086
    nosideeffect)
 
6087
      # after this tag, mechanisms are not by side-effect, so they'll
 
6088
      # only be used when explicitly requested
 
6089
      if test "x$enable_dependency_tracking" = xyes; then
 
6090
        continue
 
6091
      else
 
6092
        break
 
6093
      fi
 
6094
      ;;
 
6095
    msvisualcpp | msvcmsys)
 
6096
      # This compiler won't grok `-c -o', but also, the minuso test has
 
6097
      # not run yet.  These depmodes are late enough in the game, and
 
6098
      # so weak that their functioning should not be impacted.
 
6099
      am__obj=conftest.${OBJEXT-o}
 
6100
      am__minus_obj=
 
6101
      ;;
 
6102
    none) break ;;
 
6103
    esac
 
6104
    if depmode=$depmode \
 
6105
       source=sub/conftest.c object=$am__obj \
 
6106
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
6107
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
6108
         >/dev/null 2>conftest.err &&
 
6109
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
6110
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
6111
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
6112
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
6113
      # icc doesn't choke on unknown options, it will just issue warnings
 
6114
      # or remarks (even with -Werror).  So we grep stderr for any message
 
6115
      # that says an option was ignored or not supported.
 
6116
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
6117
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
6118
      # The diagnosis changed in icc 8.0:
 
6119
      #   icc: Command line remark: option '-MP' not supported
 
6120
      if (grep 'ignoring option' conftest.err ||
 
6121
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
6122
        am_cv_CC_dependencies_compiler_type=$depmode
 
6123
        break
 
6124
      fi
 
6125
    fi
 
6126
  done
 
6127
 
 
6128
  cd ..
 
6129
  rm -rf conftest.dir
 
6130
else
 
6131
  am_cv_CC_dependencies_compiler_type=none
 
6132
fi
 
6133
 
 
6134
fi
 
6135
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
6136
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
6137
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
6138
 
 
6139
 if 
 
6140
  test "x$enable_dependency_tracking" != xno \
 
6141
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
6142
  am__fastdepCC_TRUE=
 
6143
  am__fastdepCC_FALSE='#'
 
6144
else
 
6145
  am__fastdepCC_TRUE='#'
 
6146
  am__fastdepCC_FALSE=
 
6147
fi
 
6148
 
 
6149
 
 
6150
ac_ext=c
 
6151
ac_cpp='$CPP $CPPFLAGS'
 
6152
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6153
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6154
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6155
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
6156
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
6157
# On Suns, sometimes $CPP names a directory.
 
6158
if test -n "$CPP" && test -d "$CPP"; then
 
6159
  CPP=
 
6160
fi
 
6161
if test -z "$CPP"; then
 
6162
  if test "${ac_cv_prog_CPP+set}" = set; then :
 
6163
  $as_echo_n "(cached) " >&6
 
6164
else
 
6165
      # Double quotes because CPP needs to be expanded
 
6166
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
6167
    do
 
6168
      ac_preproc_ok=false
 
6169
for ac_c_preproc_warn_flag in '' yes
 
6170
do
 
6171
  # Use a header file that comes with gcc, so configuring glibc
 
6172
  # with a fresh cross-compiler works.
 
6173
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6174
  # <limits.h> exists even on freestanding compilers.
 
6175
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6176
  # not just through cpp. "Syntax error" is here to catch this case.
 
6177
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6178
/* end confdefs.h.  */
 
6179
@%:@ifdef __STDC__
 
6180
@%:@ include <limits.h>
 
6181
@%:@else
 
6182
@%:@ include <assert.h>
 
6183
@%:@endif
 
6184
                     Syntax error
 
6185
_ACEOF
 
6186
if ac_fn_c_try_cpp "$LINENO"; then :
 
6187
  
 
6188
else
 
6189
  # Broken: fails on valid input.
 
6190
continue
 
6191
fi
 
6192
rm -f conftest.err conftest.i conftest.$ac_ext
 
6193
 
 
6194
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6195
  # can be detected and how.
 
6196
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6197
/* end confdefs.h.  */
 
6198
@%:@include <ac_nonexistent.h>
 
6199
_ACEOF
 
6200
if ac_fn_c_try_cpp "$LINENO"; then :
 
6201
  # Broken: success on invalid input.
 
6202
continue
 
6203
else
 
6204
  # Passes both tests.
 
6205
ac_preproc_ok=:
 
6206
break
 
6207
fi
 
6208
rm -f conftest.err conftest.i conftest.$ac_ext
 
6209
 
 
6210
done
 
6211
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6212
rm -f conftest.i conftest.err conftest.$ac_ext
 
6213
if $ac_preproc_ok; then :
 
6214
  break
 
6215
fi
 
6216
 
 
6217
    done
 
6218
    ac_cv_prog_CPP=$CPP
 
6219
  
 
6220
fi
 
6221
  CPP=$ac_cv_prog_CPP
 
6222
else
 
6223
  ac_cv_prog_CPP=$CPP
 
6224
fi
 
6225
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
6226
$as_echo "$CPP" >&6; }
 
6227
ac_preproc_ok=false
 
6228
for ac_c_preproc_warn_flag in '' yes
 
6229
do
 
6230
  # Use a header file that comes with gcc, so configuring glibc
 
6231
  # with a fresh cross-compiler works.
 
6232
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6233
  # <limits.h> exists even on freestanding compilers.
 
6234
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6235
  # not just through cpp. "Syntax error" is here to catch this case.
 
6236
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6237
/* end confdefs.h.  */
 
6238
@%:@ifdef __STDC__
 
6239
@%:@ include <limits.h>
 
6240
@%:@else
 
6241
@%:@ include <assert.h>
 
6242
@%:@endif
 
6243
                     Syntax error
 
6244
_ACEOF
 
6245
if ac_fn_c_try_cpp "$LINENO"; then :
 
6246
  
 
6247
else
 
6248
  # Broken: fails on valid input.
 
6249
continue
 
6250
fi
 
6251
rm -f conftest.err conftest.i conftest.$ac_ext
 
6252
 
 
6253
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6254
  # can be detected and how.
 
6255
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6256
/* end confdefs.h.  */
 
6257
@%:@include <ac_nonexistent.h>
 
6258
_ACEOF
 
6259
if ac_fn_c_try_cpp "$LINENO"; then :
 
6260
  # Broken: success on invalid input.
 
6261
continue
 
6262
else
 
6263
  # Passes both tests.
 
6264
ac_preproc_ok=:
 
6265
break
 
6266
fi
 
6267
rm -f conftest.err conftest.i conftest.$ac_ext
 
6268
 
 
6269
done
 
6270
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6271
rm -f conftest.i conftest.err conftest.$ac_ext
 
6272
if $ac_preproc_ok; then :
 
6273
  
 
6274
else
 
6275
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
6276
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
6277
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
6278
See \`config.log' for more details" "$LINENO" 5 ; }
 
6279
fi
 
6280
 
 
6281
ac_ext=c
 
6282
ac_cpp='$CPP $CPPFLAGS'
 
6283
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6284
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6285
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6286
 
 
6287
 
 
6288
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
6289
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
6290
if test "${ac_cv_path_GREP+set}" = set; then :
 
6291
  $as_echo_n "(cached) " >&6
 
6292
else
 
6293
  if test -z "$GREP"; then
 
6294
  ac_path_GREP_found=false
 
6295
  # Loop through the user's path and test for each of PROGNAME-LIST
 
6296
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6297
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
6298
do
 
6299
  IFS=$as_save_IFS
 
6300
  test -z "$as_dir" && as_dir=.
 
6301
    for ac_prog in grep ggrep; do
 
6302
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6303
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
6304
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
6305
# Check for GNU ac_path_GREP and select it if it is found.
 
6306
  # Check for GNU $ac_path_GREP
 
6307
case `"$ac_path_GREP" --version 2>&1` in
 
6308
*GNU*)
 
6309
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
6310
*)
 
6311
  ac_count=0
 
6312
  $as_echo_n 0123456789 >"conftest.in"
 
6313
  while :
 
6314
  do
 
6315
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
6316
    mv "conftest.tmp" "conftest.in"
 
6317
    cp "conftest.in" "conftest.nl"
 
6318
    $as_echo 'GREP' >> "conftest.nl"
 
6319
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
6320
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
6321
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
6322
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
6323
      # Best one so far, save it but keep looking for a better one
 
6324
      ac_cv_path_GREP="$ac_path_GREP"
 
6325
      ac_path_GREP_max=$ac_count
 
6326
    fi
 
6327
    # 10*(2^10) chars as input seems more than enough
 
6328
    test $ac_count -gt 10 && break
 
6329
  done
 
6330
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
6331
esac
 
6332
 
 
6333
      $ac_path_GREP_found && break 3
 
6334
    done
 
6335
  done
 
6336
  done
 
6337
IFS=$as_save_IFS
 
6338
  if test -z "$ac_cv_path_GREP"; then
 
6339
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 
 
6340
  fi
 
6341
else
 
6342
  ac_cv_path_GREP=$GREP
 
6343
fi
 
6344
 
 
6345
fi
 
6346
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
6347
$as_echo "$ac_cv_path_GREP" >&6; }
 
6348
 GREP="$ac_cv_path_GREP"
 
6349
 
 
6350
 
 
6351
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
6352
$as_echo_n "checking for egrep... " >&6; }
 
6353
if test "${ac_cv_path_EGREP+set}" = set; then :
 
6354
  $as_echo_n "(cached) " >&6
 
6355
else
 
6356
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
6357
   then ac_cv_path_EGREP="$GREP -E"
 
6358
   else
 
6359
     if test -z "$EGREP"; then
 
6360
  ac_path_EGREP_found=false
 
6361
  # Loop through the user's path and test for each of PROGNAME-LIST
 
6362
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6363
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
6364
do
 
6365
  IFS=$as_save_IFS
 
6366
  test -z "$as_dir" && as_dir=.
 
6367
    for ac_prog in egrep; do
 
6368
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6369
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
6370
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
6371
# Check for GNU ac_path_EGREP and select it if it is found.
 
6372
  # Check for GNU $ac_path_EGREP
 
6373
case `"$ac_path_EGREP" --version 2>&1` in
 
6374
*GNU*)
 
6375
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
6376
*)
 
6377
  ac_count=0
 
6378
  $as_echo_n 0123456789 >"conftest.in"
 
6379
  while :
 
6380
  do
 
6381
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
6382
    mv "conftest.tmp" "conftest.in"
 
6383
    cp "conftest.in" "conftest.nl"
 
6384
    $as_echo 'EGREP' >> "conftest.nl"
 
6385
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
6386
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
6387
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
6388
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
6389
      # Best one so far, save it but keep looking for a better one
 
6390
      ac_cv_path_EGREP="$ac_path_EGREP"
 
6391
      ac_path_EGREP_max=$ac_count
 
6392
    fi
 
6393
    # 10*(2^10) chars as input seems more than enough
 
6394
    test $ac_count -gt 10 && break
 
6395
  done
 
6396
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
6397
esac
 
6398
 
 
6399
      $ac_path_EGREP_found && break 3
 
6400
    done
 
6401
  done
 
6402
  done
 
6403
IFS=$as_save_IFS
 
6404
  if test -z "$ac_cv_path_EGREP"; then
 
6405
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 
 
6406
  fi
 
6407
else
 
6408
  ac_cv_path_EGREP=$EGREP
 
6409
fi
 
6410
 
 
6411
   fi
 
6412
fi
 
6413
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
6414
$as_echo "$ac_cv_path_EGREP" >&6; }
 
6415
 EGREP="$ac_cv_path_EGREP"
 
6416
 
 
6417
 
 
6418
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
6419
$as_echo_n "checking for ANSI C header files... " >&6; }
 
6420
if test "${ac_cv_header_stdc+set}" = set; then :
 
6421
  $as_echo_n "(cached) " >&6
 
6422
else
 
6423
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6424
/* end confdefs.h.  */
 
6425
#include <stdlib.h>
 
6426
#include <stdarg.h>
 
6427
#include <string.h>
 
6428
#include <float.h>
 
6429
 
 
6430
int
 
6431
main (void)
 
6432
{
 
6433
 
 
6434
  ;
 
6435
  return 0;
 
6436
}
 
6437
_ACEOF
 
6438
if ac_fn_c_try_compile "$LINENO"; then :
 
6439
  ac_cv_header_stdc=yes
 
6440
else
 
6441
  ac_cv_header_stdc=no
 
6442
fi
 
6443
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6444
 
 
6445
if test $ac_cv_header_stdc = yes; then
 
6446
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
6447
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6448
/* end confdefs.h.  */
 
6449
#include <string.h>
 
6450
 
 
6451
_ACEOF
 
6452
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6453
  $EGREP "memchr" >/dev/null 2>&1; then :
 
6454
  
 
6455
else
 
6456
  ac_cv_header_stdc=no
 
6457
fi
 
6458
rm -f conftest*
 
6459
 
 
6460
fi
 
6461
 
 
6462
if test $ac_cv_header_stdc = yes; then
 
6463
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
6464
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6465
/* end confdefs.h.  */
 
6466
#include <stdlib.h>
 
6467
 
 
6468
_ACEOF
 
6469
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6470
  $EGREP "free" >/dev/null 2>&1; then :
 
6471
  
 
6472
else
 
6473
  ac_cv_header_stdc=no
 
6474
fi
 
6475
rm -f conftest*
 
6476
 
 
6477
fi
 
6478
 
 
6479
if test $ac_cv_header_stdc = yes; then
 
6480
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
6481
  if test "$cross_compiling" = yes; then :
 
6482
  :
 
6483
else
 
6484
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6485
/* end confdefs.h.  */
 
6486
#include <ctype.h>
 
6487
#include <stdlib.h>
 
6488
#if ((' ' & 0x0FF) == 0x020)
 
6489
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
6490
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
6491
#else
 
6492
# define ISLOWER(c) \
 
6493
                   (('a' <= (c) && (c) <= 'i') \
 
6494
                     || ('j' <= (c) && (c) <= 'r') \
 
6495
                     || ('s' <= (c) && (c) <= 'z'))
 
6496
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
6497
#endif
 
6498
 
 
6499
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
6500
int
 
6501
main ()
 
6502
{
 
6503
  int i;
 
6504
  for (i = 0; i < 256; i++)
 
6505
    if (XOR (islower (i), ISLOWER (i))
 
6506
        || toupper (i) != TOUPPER (i))
 
6507
      return 2;
 
6508
  return 0;
 
6509
}
 
6510
_ACEOF
 
6511
if ac_fn_c_try_run "$LINENO"; then :
 
6512
  
 
6513
else
 
6514
  ac_cv_header_stdc=no
 
6515
fi
 
6516
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
6517
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
6518
fi
 
6519
 
 
6520
fi
 
6521
fi
 
6522
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
6523
$as_echo "$ac_cv_header_stdc" >&6; }
 
6524
if test $ac_cv_header_stdc = yes; then
 
6525
  
 
6526
$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
 
6527
 
 
6528
fi
 
6529
 
 
6530
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
6531
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
6532
                  inttypes.h stdint.h unistd.h
 
6533
do :
 
6534
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6535
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
6536
"
 
6537
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
6538
  cat >>confdefs.h <<_ACEOF
 
6539
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6540
_ACEOF
 
6541
 
 
6542
fi
 
6543
 
 
6544
done
 
6545
 
 
6546
 
 
6547
 
 
6548
  
 
6549
 
 
6550
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
 
6551
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
 
6552
  MINIX=yes
 
6553
else
 
6554
  MINIX=
 
6555
fi
 
6556
 
 
6557
 
 
6558
  if test "$MINIX" = yes; then
 
6559
    
 
6560
$as_echo "@%:@define _POSIX_SOURCE 1" >>confdefs.h
 
6561
 
 
6562
    
 
6563
$as_echo "@%:@define _POSIX_1_SOURCE 2" >>confdefs.h
 
6564
 
 
6565
    
 
6566
$as_echo "@%:@define _MINIX 1" >>confdefs.h
 
6567
 
 
6568
  fi
 
6569
 
 
6570
        case "$host_os" in
 
6571
    hpux*)
 
6572
      
 
6573
$as_echo "@%:@define _XOPEN_SOURCE 500" >>confdefs.h
 
6574
 
 
6575
      ;;
 
6576
  esac
 
6577
 
 
6578
  
 
6579
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
 
6580
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
 
6581
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
 
6582
  $as_echo_n "(cached) " >&6
 
6583
else
 
6584
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6585
/* end confdefs.h.  */
 
6586
 
 
6587
#         define __EXTENSIONS__ 1
 
6588
          $ac_includes_default
 
6589
int
 
6590
main (void)
 
6591
{
 
6592
 
 
6593
  ;
 
6594
  return 0;
 
6595
}
 
6596
_ACEOF
 
6597
if ac_fn_c_try_compile "$LINENO"; then :
 
6598
  ac_cv_safe_to_define___extensions__=yes
 
6599
else
 
6600
  ac_cv_safe_to_define___extensions__=no
 
6601
fi
 
6602
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6603
fi
 
6604
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
 
6605
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
 
6606
  test $ac_cv_safe_to_define___extensions__ = yes &&
 
6607
    $as_echo "@%:@define __EXTENSIONS__ 1" >>confdefs.h
 
6608
 
 
6609
  $as_echo "@%:@define _ALL_SOURCE 1" >>confdefs.h
 
6610
 
 
6611
  $as_echo "@%:@define _GNU_SOURCE 1" >>confdefs.h
 
6612
 
 
6613
  $as_echo "@%:@define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
 
6614
 
 
6615
  $as_echo "@%:@define _TANDEM_SOURCE 1" >>confdefs.h
 
6616
 
 
6617
 
 
6618
 
 
6619
 
 
6620
              
 
6621
 
 
6622
  
 
6623
 
 
6624
 
 
6625
          
 
6626
  # Code from module alloca:
 
6627
  # Code from module alloca-opt:
 
6628
  # Code from module arg-nonnull:
 
6629
  # Code from module argp:
 
6630
  # Code from module btowc:
 
6631
  # Code from module c++defs:
 
6632
  # Code from module configmake:
 
6633
  # Code from module dirname-lgpl:
 
6634
  # Code from module double-slash-root:
 
6635
  # Code from module errno:
 
6636
  # Code from module error:
 
6637
  # Code from module extensions:
 
6638
  
 
6639
  # Code from module float:
 
6640
  # Code from module fnmatch:
 
6641
  # Code from module getdelim:
 
6642
  # Code from module getline:
 
6643
  # Code from module getopt-gnu:
 
6644
  # Code from module getopt-posix:
 
6645
  # Code from module gettext:
 
6646
  # Code from module gettext-h:
 
6647
  # Code from module havelib:
 
6648
  # Code from module include_next:
 
6649
  # Code from module intprops:
 
6650
  # Code from module langinfo:
 
6651
  # Code from module localcharset:
 
6652
  # Code from module malloc-gnu:
 
6653
  # Code from module malloc-posix:
 
6654
  # Code from module mbrtowc:
 
6655
  # Code from module mbsinit:
 
6656
  # Code from module mbsrtowcs:
 
6657
  # Code from module memchr:
 
6658
  # Code from module mempcpy:
 
6659
  # Code from module multiarch:
 
6660
  # Code from module nl_langinfo:
 
6661
  # Code from module progname:
 
6662
  # Code from module rawmemchr:
 
6663
  # Code from module realloc-posix:
 
6664
  # Code from module regex:
 
6665
  # Code from module size_max:
 
6666
  # Code from module sleep:
 
6667
  # Code from module ssize_t:
 
6668
  # Code from module stdbool:
 
6669
  # Code from module stddef:
 
6670
  # Code from module stdint:
 
6671
  # Code from module stdio:
 
6672
  # Code from module stdlib:
 
6673
  # Code from module strcase:
 
6674
  # Code from module strchrnul:
 
6675
  # Code from module streq:
 
6676
  # Code from module strerror:
 
6677
  # Code from module string:
 
6678
  # Code from module strings:
 
6679
  # Code from module strndup:
 
6680
  # Code from module strnlen:
 
6681
  # Code from module strnlen1:
 
6682
  # Code from module sys_wait:
 
6683
  # Code from module sysexits:
 
6684
  # Code from module unistd:
 
6685
  # Code from module vasnprintf:
 
6686
  # Code from module verify:
 
6687
  # Code from module vsnprintf:
 
6688
  # Code from module warn-on-use:
 
6689
  # Code from module wchar:
 
6690
  # Code from module wcrtomb:
 
6691
  # Code from module wctype:
 
6692
  # Code from module xsize:
 
6693
 
 
6694
if test "x$CC" != xcc; then
 
6695
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
 
6696
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
 
6697
else
 
6698
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
 
6699
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
 
6700
fi
 
6701
set dummy $CC; ac_cc=`$as_echo "$2" |
 
6702
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
6703
if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
 
6704
  $as_echo_n "(cached) " >&6
 
6705
else
 
6706
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6707
/* end confdefs.h.  */
 
6708
 
 
6709
int
 
6710
main (void)
 
6711
{
 
6712
 
 
6713
  ;
 
6714
  return 0;
 
6715
}
 
6716
_ACEOF
 
6717
# Make sure it works both with $CC and with simple cc.
 
6718
# We do the test twice because some compilers refuse to overwrite an
 
6719
# existing .o file with -o, though they will create one.
 
6720
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
6721
rm -f conftest2.*
 
6722
if { { case "(($ac_try" in
 
6723
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6724
  *) ac_try_echo=$ac_try;;
 
6725
esac
 
6726
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
6727
$as_echo "$ac_try_echo"; } >&5
 
6728
  (eval "$ac_try") 2>&5
 
6729
  ac_status=$?
 
6730
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6731
  test $ac_status = 0; } &&
 
6732
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
 
6733
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6734
  *) ac_try_echo=$ac_try;;
 
6735
esac
 
6736
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
6737
$as_echo "$ac_try_echo"; } >&5
 
6738
  (eval "$ac_try") 2>&5
 
6739
  ac_status=$?
 
6740
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6741
  test $ac_status = 0; };
 
6742
then
 
6743
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
 
6744
  if test "x$CC" != xcc; then
 
6745
    # Test first that cc exists at all.
 
6746
    if { ac_try='cc -c conftest.$ac_ext >&5'
 
6747
  { { case "(($ac_try" in
 
6748
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6749
  *) ac_try_echo=$ac_try;;
 
6750
esac
 
6751
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
6752
$as_echo "$ac_try_echo"; } >&5
 
6753
  (eval "$ac_try") 2>&5
 
6754
  ac_status=$?
 
6755
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6756
  test $ac_status = 0; }; }; then
 
6757
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
6758
      rm -f conftest2.*
 
6759
      if { { case "(($ac_try" in
 
6760
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6761
  *) ac_try_echo=$ac_try;;
 
6762
esac
 
6763
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
6764
$as_echo "$ac_try_echo"; } >&5
 
6765
  (eval "$ac_try") 2>&5
 
6766
  ac_status=$?
 
6767
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6768
  test $ac_status = 0; } &&
 
6769
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
 
6770
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6771
  *) ac_try_echo=$ac_try;;
 
6772
esac
 
6773
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
6774
$as_echo "$ac_try_echo"; } >&5
 
6775
  (eval "$ac_try") 2>&5
 
6776
  ac_status=$?
 
6777
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6778
  test $ac_status = 0; };
 
6779
      then
 
6780
        # cc works too.
 
6781
        :
 
6782
      else
 
6783
        # cc exists but doesn't like -o.
 
6784
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
6785
      fi
 
6786
    fi
 
6787
  fi
 
6788
else
 
6789
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
6790
fi
 
6791
rm -f core conftest*
 
6792
 
 
6793
fi
 
6794
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
 
6795
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
6796
$as_echo "yes" >&6; }
 
6797
else
 
6798
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6799
$as_echo "no" >&6; }
 
6800
  
 
6801
$as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
 
6802
 
 
6803
fi
 
6804
 
 
6805
# FIXME: we rely on the cache variable name because
 
6806
# there is no other way.
 
6807
set dummy $CC
 
6808
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
6809
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
 
6810
if test "$am_t" != yes; then
 
6811
   # Losing compiler, so override with the script.
 
6812
   # FIXME: It is wrong to rewrite CC.
 
6813
   # But if we don't then we get into trouble of one sort or another.
 
6814
   # A longer-term fix would be to have automake use am__CC in this case,
 
6815
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
6816
   CC="$am_aux_dir/compile $CC"
 
6817
fi
 
6818
 
 
6819
 
 
6820
# By default we simply use the C compiler to build assembly code.
 
6821
 
 
6822
test "${CCAS+set}" = set || CCAS=$CC
 
6823
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
 
6824
 
 
6825
 
 
6826
 
 
6827
depcc="$CCAS"   am_compiler_list=
 
6828
 
 
6829
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
6830
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
6831
if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
 
6832
  $as_echo_n "(cached) " >&6
 
6833
else
 
6834
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
6835
  # We make a subdir and do the tests there.  Otherwise we can end up
 
6836
  # making bogus files that we don't know about and never remove.  For
 
6837
  # instance it was reported that on HP-UX the gcc test will end up
 
6838
  # making a dummy file named `D' -- because `-MD' means `put the output
 
6839
  # in D'.
 
6840
  mkdir conftest.dir
 
6841
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
6842
  # using a relative directory.
 
6843
  cp "$am_depcomp" conftest.dir
 
6844
  cd conftest.dir
 
6845
  # We will build objects and dependencies in a subdirectory because
 
6846
  # it helps to detect inapplicable dependency modes.  For instance
 
6847
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
6848
  # side effect of compilation, but ICC will put the dependencies in
 
6849
  # the current directory while Tru64 will put them in the object
 
6850
  # directory.
 
6851
  mkdir sub
 
6852
 
 
6853
  am_cv_CCAS_dependencies_compiler_type=none
 
6854
  if test "$am_compiler_list" = ""; then
 
6855
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
6856
  fi
 
6857
  am__universal=false
 
6858
  
 
6859
 
 
6860
  for depmode in $am_compiler_list; do
 
6861
    # Setup a source with many dependencies, because some compilers
 
6862
    # like to wrap large dependency lists on column 80 (with \), and
 
6863
    # we should not choose a depcomp mode which is confused by this.
 
6864
    #
 
6865
    # We need to recreate these files for each test, as the compiler may
 
6866
    # overwrite some of them when testing with obscure command lines.
 
6867
    # This happens at least with the AIX C compiler.
 
6868
    : > sub/conftest.c
 
6869
    for i in 1 2 3 4 5 6; do
 
6870
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
6871
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
6872
      # Solaris 8's {/usr,}/bin/sh.
 
6873
      touch sub/conftst$i.h
 
6874
    done
 
6875
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
6876
 
 
6877
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
6878
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
6879
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
6880
    # versions had trouble with output in subdirs
 
6881
    am__obj=sub/conftest.${OBJEXT-o}
 
6882
    am__minus_obj="-o $am__obj"
 
6883
    case $depmode in
 
6884
    gcc)
 
6885
      # This depmode causes a compiler race in universal mode.
 
6886
      test "$am__universal" = false || continue
 
6887
      ;;
 
6888
    nosideeffect)
 
6889
      # after this tag, mechanisms are not by side-effect, so they'll
 
6890
      # only be used when explicitly requested
 
6891
      if test "x$enable_dependency_tracking" = xyes; then
 
6892
        continue
 
6893
      else
 
6894
        break
 
6895
      fi
 
6896
      ;;
 
6897
    msvisualcpp | msvcmsys)
 
6898
      # This compiler won't grok `-c -o', but also, the minuso test has
 
6899
      # not run yet.  These depmodes are late enough in the game, and
 
6900
      # so weak that their functioning should not be impacted.
 
6901
      am__obj=conftest.${OBJEXT-o}
 
6902
      am__minus_obj=
 
6903
      ;;
 
6904
    none) break ;;
 
6905
    esac
 
6906
    if depmode=$depmode \
 
6907
       source=sub/conftest.c object=$am__obj \
 
6908
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
6909
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
6910
         >/dev/null 2>conftest.err &&
 
6911
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
6912
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
6913
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
6914
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
6915
      # icc doesn't choke on unknown options, it will just issue warnings
 
6916
      # or remarks (even with -Werror).  So we grep stderr for any message
 
6917
      # that says an option was ignored or not supported.
 
6918
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
6919
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
6920
      # The diagnosis changed in icc 8.0:
 
6921
      #   icc: Command line remark: option '-MP' not supported
 
6922
      if (grep 'ignoring option' conftest.err ||
 
6923
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
6924
        am_cv_CCAS_dependencies_compiler_type=$depmode
 
6925
        break
 
6926
      fi
 
6927
    fi
 
6928
  done
 
6929
 
 
6930
  cd ..
 
6931
  rm -rf conftest.dir
 
6932
else
 
6933
  am_cv_CCAS_dependencies_compiler_type=none
 
6934
fi
 
6935
 
 
6936
fi
 
6937
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
 
6938
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
 
6939
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
 
6940
 
 
6941
 if 
 
6942
  test "x$enable_dependency_tracking" != xno \
 
6943
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
 
6944
  am__fastdepCCAS_TRUE=
 
6945
  am__fastdepCCAS_FALSE='#'
 
6946
else
 
6947
  am__fastdepCCAS_TRUE='#'
 
6948
  am__fastdepCCAS_FALSE=
 
6949
fi
 
6950
 
 
6951
 
 
6952
 
 
6953
# Must be GCC.
 
6954
test "x$GCC" = xyes || as_fn_error $? "GCC is required" "$LINENO" 5 
 
6955
 
 
6956
 
 
6957
 
 
6958
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
 
6959
$as_echo_n "checking whether NLS is requested... " >&6; }
 
6960
    @%:@ Check whether --enable-nls was given.
 
6961
if test "${enable_nls+set}" = set; then :
 
6962
  enableval=$enable_nls; USE_NLS=$enableval
 
6963
else
 
6964
  USE_NLS=yes
 
6965
fi
 
6966
 
 
6967
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
 
6968
$as_echo "$USE_NLS" >&6; }
 
6969
  
 
6970
 
 
6971
 
 
6972
        
 
6973
      GETTEXT_MACRO_VERSION=0.18
 
6974
 
 
6975
 
 
6976
    
 
6977
        
 
6978
# Prepare PATH_SEPARATOR.
 
6979
# The user is always right.
 
6980
if test "${PATH_SEPARATOR+set}" != set; then
 
6981
  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
 
6982
  # contains only /bin. Note that ksh looks also at the FPATH variable,
 
6983
  # so we have to set that as well for the test.
 
6984
  PATH_SEPARATOR=:
 
6985
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
 
6986
    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
 
6987
           || PATH_SEPARATOR=';'
 
6988
       }
 
6989
fi
 
6990
 
 
6991
# Find out how to test for executable files. Don't use a zero-byte file,
 
6992
# as systems may use methods other than mode bits to determine executability.
 
6993
cat >conf$$.file <<_ASEOF
 
6994
#! /bin/sh
 
6995
exit 0
 
6996
_ASEOF
 
6997
chmod +x conf$$.file
 
6998
if test -x conf$$.file >/dev/null 2>&1; then
 
6999
  ac_executable_p="test -x"
 
7000
else
 
7001
  ac_executable_p="test -f"
 
7002
fi
 
7003
rm -f conf$$.file
 
7004
 
 
7005
# Extract the first word of "msgfmt", so it can be a program name with args.
 
7006
set dummy msgfmt; ac_word=$2
 
7007
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7008
$as_echo_n "checking for $ac_word... " >&6; }
 
7009
if test "${ac_cv_path_MSGFMT+set}" = set; then :
 
7010
  $as_echo_n "(cached) " >&6
 
7011
else
 
7012
  case "$MSGFMT" in
 
7013
  [\\/]* | ?:[\\/]*)
 
7014
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
7015
    ;;
 
7016
  *)
 
7017
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
7018
    for ac_dir in $PATH; do
 
7019
      IFS="$ac_save_IFS"
 
7020
      test -z "$ac_dir" && ac_dir=.
 
7021
      for ac_exec_ext in '' $ac_executable_extensions; do
 
7022
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
7023
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
 
7024
          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
 
7025
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
7026
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
 
7027
            break 2
 
7028
          fi
 
7029
        fi
 
7030
      done
 
7031
    done
 
7032
    IFS="$ac_save_IFS"
 
7033
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
 
7034
    ;;
 
7035
esac
 
7036
fi
 
7037
MSGFMT="$ac_cv_path_MSGFMT"
 
7038
if test "$MSGFMT" != ":"; then
 
7039
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
 
7040
$as_echo "$MSGFMT" >&6; }
 
7041
else
 
7042
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7043
$as_echo "no" >&6; }
 
7044
fi
 
7045
 
 
7046
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
7047
set dummy gmsgfmt; ac_word=$2
 
7048
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7049
$as_echo_n "checking for $ac_word... " >&6; }
 
7050
if test "${ac_cv_path_GMSGFMT+set}" = set; then :
 
7051
  $as_echo_n "(cached) " >&6
 
7052
else
 
7053
  case $GMSGFMT in
 
7054
  [\\/]* | ?:[\\/]*)
 
7055
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
7056
  ;;
 
7057
  *)
 
7058
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7059
for as_dir in $PATH
 
7060
do
 
7061
  IFS=$as_save_IFS
 
7062
  test -z "$as_dir" && as_dir=.
 
7063
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7064
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7065
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
7066
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7067
    break 2
 
7068
  fi
 
7069
done
 
7070
  done
 
7071
IFS=$as_save_IFS
 
7072
 
 
7073
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
7074
  ;;
 
7075
esac
 
7076
fi
 
7077
GMSGFMT=$ac_cv_path_GMSGFMT
 
7078
if test -n "$GMSGFMT"; then
 
7079
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
 
7080
$as_echo "$GMSGFMT" >&6; }
 
7081
else
 
7082
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7083
$as_echo "no" >&6; }
 
7084
fi
 
7085
 
 
7086
 
 
7087
 
 
7088
    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
7089
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
 
7090
    *) MSGFMT_015=$MSGFMT ;;
 
7091
  esac
 
7092
  
 
7093
  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
7094
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
 
7095
    *) GMSGFMT_015=$GMSGFMT ;;
 
7096
  esac
 
7097
  
 
7098
 
 
7099
        
 
7100
# Prepare PATH_SEPARATOR.
 
7101
# The user is always right.
 
7102
if test "${PATH_SEPARATOR+set}" != set; then
 
7103
  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
 
7104
  # contains only /bin. Note that ksh looks also at the FPATH variable,
 
7105
  # so we have to set that as well for the test.
 
7106
  PATH_SEPARATOR=:
 
7107
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
 
7108
    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
 
7109
           || PATH_SEPARATOR=';'
 
7110
       }
 
7111
fi
 
7112
 
 
7113
# Find out how to test for executable files. Don't use a zero-byte file,
 
7114
# as systems may use methods other than mode bits to determine executability.
 
7115
cat >conf$$.file <<_ASEOF
 
7116
#! /bin/sh
 
7117
exit 0
 
7118
_ASEOF
 
7119
chmod +x conf$$.file
 
7120
if test -x conf$$.file >/dev/null 2>&1; then
 
7121
  ac_executable_p="test -x"
 
7122
else
 
7123
  ac_executable_p="test -f"
 
7124
fi
 
7125
rm -f conf$$.file
 
7126
 
 
7127
# Extract the first word of "xgettext", so it can be a program name with args.
 
7128
set dummy xgettext; ac_word=$2
 
7129
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7130
$as_echo_n "checking for $ac_word... " >&6; }
 
7131
if test "${ac_cv_path_XGETTEXT+set}" = set; then :
 
7132
  $as_echo_n "(cached) " >&6
 
7133
else
 
7134
  case "$XGETTEXT" in
 
7135
  [\\/]* | ?:[\\/]*)
 
7136
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
7137
    ;;
 
7138
  *)
 
7139
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
7140
    for ac_dir in $PATH; do
 
7141
      IFS="$ac_save_IFS"
 
7142
      test -z "$ac_dir" && ac_dir=.
 
7143
      for ac_exec_ext in '' $ac_executable_extensions; do
 
7144
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
7145
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
 
7146
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
 
7147
     (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
 
7148
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
 
7149
            break 2
 
7150
          fi
 
7151
        fi
 
7152
      done
 
7153
    done
 
7154
    IFS="$ac_save_IFS"
 
7155
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
7156
    ;;
 
7157
esac
 
7158
fi
 
7159
XGETTEXT="$ac_cv_path_XGETTEXT"
 
7160
if test "$XGETTEXT" != ":"; then
 
7161
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
 
7162
$as_echo "$XGETTEXT" >&6; }
 
7163
else
 
7164
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7165
$as_echo "no" >&6; }
 
7166
fi
 
7167
 
 
7168
    rm -f messages.po
 
7169
 
 
7170
    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
7171
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
 
7172
    *) XGETTEXT_015=$XGETTEXT ;;
 
7173
  esac
 
7174
  
 
7175
 
 
7176
    
 
7177
# Prepare PATH_SEPARATOR.
 
7178
# The user is always right.
 
7179
if test "${PATH_SEPARATOR+set}" != set; then
 
7180
  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
 
7181
  # contains only /bin. Note that ksh looks also at the FPATH variable,
 
7182
  # so we have to set that as well for the test.
 
7183
  PATH_SEPARATOR=:
 
7184
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
 
7185
    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
 
7186
           || PATH_SEPARATOR=';'
 
7187
       }
 
7188
fi
 
7189
 
 
7190
# Find out how to test for executable files. Don't use a zero-byte file,
 
7191
# as systems may use methods other than mode bits to determine executability.
 
7192
cat >conf$$.file <<_ASEOF
 
7193
#! /bin/sh
 
7194
exit 0
 
7195
_ASEOF
 
7196
chmod +x conf$$.file
 
7197
if test -x conf$$.file >/dev/null 2>&1; then
 
7198
  ac_executable_p="test -x"
 
7199
else
 
7200
  ac_executable_p="test -f"
 
7201
fi
 
7202
rm -f conf$$.file
 
7203
 
 
7204
# Extract the first word of "msgmerge", so it can be a program name with args.
 
7205
set dummy msgmerge; ac_word=$2
 
7206
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7207
$as_echo_n "checking for $ac_word... " >&6; }
 
7208
if test "${ac_cv_path_MSGMERGE+set}" = set; then :
 
7209
  $as_echo_n "(cached) " >&6
 
7210
else
 
7211
  case "$MSGMERGE" in
 
7212
  [\\/]* | ?:[\\/]*)
 
7213
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
 
7214
    ;;
 
7215
  *)
 
7216
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
7217
    for ac_dir in $PATH; do
 
7218
      IFS="$ac_save_IFS"
 
7219
      test -z "$ac_dir" && ac_dir=.
 
7220
      for ac_exec_ext in '' $ac_executable_extensions; do
 
7221
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
7222
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
 
7223
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
 
7224
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
 
7225
            break 2
 
7226
          fi
 
7227
        fi
 
7228
      done
 
7229
    done
 
7230
    IFS="$ac_save_IFS"
 
7231
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
 
7232
    ;;
 
7233
esac
 
7234
fi
 
7235
MSGMERGE="$ac_cv_path_MSGMERGE"
 
7236
if test "$MSGMERGE" != ":"; then
 
7237
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
 
7238
$as_echo "$MSGMERGE" >&6; }
 
7239
else
 
7240
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7241
$as_echo "no" >&6; }
 
7242
fi
 
7243
 
 
7244
 
 
7245
        test -n "$localedir" || localedir='${datadir}/locale'
 
7246
  
 
7247
 
 
7248
    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
 
7249
  
 
7250
 
 
7251
  ac_config_commands="$ac_config_commands po-directories"
 
7252
 
 
7253
 
 
7254
 
 
7255
      if test "X$prefix" = "XNONE"; then
 
7256
    acl_final_prefix="$ac_default_prefix"
 
7257
  else
 
7258
    acl_final_prefix="$prefix"
 
7259
  fi
 
7260
  if test "X$exec_prefix" = "XNONE"; then
 
7261
    acl_final_exec_prefix='${prefix}'
 
7262
  else
 
7263
    acl_final_exec_prefix="$exec_prefix"
 
7264
  fi
 
7265
  acl_save_prefix="$prefix"
 
7266
  prefix="$acl_final_prefix"
 
7267
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
 
7268
  prefix="$acl_save_prefix"
 
7269
 
 
7270
 
 
7271
@%:@ Check whether --with-gnu-ld was given.
 
7272
if test "${with_gnu_ld+set}" = set; then :
 
7273
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
7274
else
 
7275
  with_gnu_ld=no
 
7276
fi
 
7277
 
 
7278
# Prepare PATH_SEPARATOR.
 
7279
# The user is always right.
 
7280
if test "${PATH_SEPARATOR+set}" != set; then
 
7281
  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
 
7282
  # contains only /bin. Note that ksh looks also at the FPATH variable,
 
7283
  # so we have to set that as well for the test.
 
7284
  PATH_SEPARATOR=:
 
7285
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
 
7286
    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
 
7287
           || PATH_SEPARATOR=';'
 
7288
       }
 
7289
fi
 
7290
ac_prog=ld
 
7291
if test "$GCC" = yes; then
 
7292
  # Check if gcc -print-prog-name=ld gives a path.
 
7293
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
 
7294
$as_echo_n "checking for ld used by GCC... " >&6; }
 
7295
  case $host in
 
7296
  *-*-mingw*)
 
7297
    # gcc leaves a trailing carriage return which upsets mingw
 
7298
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
7299
  *)
 
7300
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
7301
  esac
 
7302
  case $ac_prog in
 
7303
    # Accept absolute paths.
 
7304
    [\\/]* | [A-Za-z]:[\\/]*)
 
7305
      re_direlt='/[^/][^/]*/\.\./'
 
7306
      # Canonicalize the path of ld
 
7307
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
7308
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
7309
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
7310
      done
 
7311
      test -z "$LD" && LD="$ac_prog"
 
7312
      ;;
 
7313
  "")
 
7314
    # If it fails, then pretend we aren't using GCC.
 
7315
    ac_prog=ld
 
7316
    ;;
 
7317
  *)
 
7318
    # If it is relative, then search for the first ld in PATH.
 
7319
    with_gnu_ld=unknown
 
7320
    ;;
 
7321
  esac
 
7322
elif test "$with_gnu_ld" = yes; then
 
7323
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
7324
$as_echo_n "checking for GNU ld... " >&6; }
 
7325
else
 
7326
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
7327
$as_echo_n "checking for non-GNU ld... " >&6; }
 
7328
fi
 
7329
if test "${acl_cv_path_LD+set}" = set; then :
 
7330
  $as_echo_n "(cached) " >&6
 
7331
else
 
7332
  if test -z "$LD"; then
 
7333
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
7334
  for ac_dir in $PATH; do
 
7335
    test -z "$ac_dir" && ac_dir=.
 
7336
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
7337
      acl_cv_path_LD="$ac_dir/$ac_prog"
 
7338
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
7339
      # but apparently some GNU ld's only accept -v.
 
7340
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
7341
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
 
7342
      *GNU* | *'with BFD'*)
 
7343
        test "$with_gnu_ld" != no && break ;;
 
7344
      *)
 
7345
        test "$with_gnu_ld" != yes && break ;;
 
7346
      esac
 
7347
    fi
 
7348
  done
 
7349
  IFS="$ac_save_ifs"
 
7350
else
 
7351
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
 
7352
fi
 
7353
fi
 
7354
 
 
7355
LD="$acl_cv_path_LD"
 
7356
if test -n "$LD"; then
 
7357
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
7358
$as_echo "$LD" >&6; }
 
7359
else
 
7360
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7361
$as_echo "no" >&6; }
 
7362
fi
 
7363
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 
 
7364
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
7365
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
7366
if test "${acl_cv_prog_gnu_ld+set}" = set; then :
 
7367
  $as_echo_n "(cached) " >&6
 
7368
else
 
7369
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
7370
case `$LD -v 2>&1 </dev/null` in
 
7371
*GNU* | *'with BFD'*)
 
7372
  acl_cv_prog_gnu_ld=yes ;;
 
7373
*)
 
7374
  acl_cv_prog_gnu_ld=no ;;
 
7375
esac
 
7376
fi
 
7377
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
 
7378
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
 
7379
with_gnu_ld=$acl_cv_prog_gnu_ld
 
7380
 
 
7381
 
 
7382
 
 
7383
    
 
7384
                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
 
7385
$as_echo_n "checking for shared library run path origin... " >&6; }
 
7386
if test "${acl_cv_rpath+set}" = set; then :
 
7387
  $as_echo_n "(cached) " >&6
 
7388
else
 
7389
  
 
7390
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
 
7391
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
 
7392
    . ./conftest.sh
 
7393
    rm -f ./conftest.sh
 
7394
    acl_cv_rpath=done
 
7395
  
 
7396
fi
 
7397
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
 
7398
$as_echo "$acl_cv_rpath" >&6; }
 
7399
  wl="$acl_cv_wl"
 
7400
  acl_libext="$acl_cv_libext"
 
7401
  acl_shlibext="$acl_cv_shlibext"
 
7402
  acl_libname_spec="$acl_cv_libname_spec"
 
7403
  acl_library_names_spec="$acl_cv_library_names_spec"
 
7404
  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 
7405
  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 
7406
  acl_hardcode_direct="$acl_cv_hardcode_direct"
 
7407
  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
 
7408
    @%:@ Check whether --enable-rpath was given.
 
7409
if test "${enable_rpath+set}" = set; then :
 
7410
  enableval=$enable_rpath; :
 
7411
else
 
7412
  enable_rpath=yes
 
7413
fi
 
7414
 
 
7415
 
 
7416
 
 
7417
                          
 
7418
  acl_libdirstem=lib
 
7419
  acl_libdirstem2=
 
7420
  case "$host_os" in
 
7421
    solaris*)
 
7422
                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
 
7423
$as_echo_n "checking for 64-bit host... " >&6; }
 
7424
if test "${gl_cv_solaris_64bit+set}" = set; then :
 
7425
  $as_echo_n "(cached) " >&6
 
7426
else
 
7427
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7428
/* end confdefs.h.  */
 
7429
 
 
7430
#ifdef _LP64
 
7431
sixtyfour bits
 
7432
#endif
 
7433
           
 
7434
_ACEOF
 
7435
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7436
  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
 
7437
  gl_cv_solaris_64bit=yes
 
7438
else
 
7439
  gl_cv_solaris_64bit=no
 
7440
fi
 
7441
rm -f conftest*
 
7442
 
 
7443
        
 
7444
fi
 
7445
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
 
7446
$as_echo "$gl_cv_solaris_64bit" >&6; }
 
7447
      if test $gl_cv_solaris_64bit = yes; then
 
7448
        acl_libdirstem=lib/64
 
7449
        case "$host_cpu" in
 
7450
          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
 
7451
          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
 
7452
        esac
 
7453
      fi
 
7454
      ;;
 
7455
    *)
 
7456
      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
 
7457
      if test -n "$searchpath"; then
 
7458
        acl_save_IFS="${IFS=    }"; IFS=":"
 
7459
        for searchdir in $searchpath; do
 
7460
          if test -d "$searchdir"; then
 
7461
            case "$searchdir" in
 
7462
              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
 
7463
              */../ | */.. )
 
7464
                # Better ignore directories of this form. They are misleading.
 
7465
                ;;
 
7466
              *) searchdir=`cd "$searchdir" && pwd`
 
7467
                 case "$searchdir" in
 
7468
                   */lib64 ) acl_libdirstem=lib64 ;;
 
7469
                 esac ;;
 
7470
            esac
 
7471
          fi
 
7472
        done
 
7473
        IFS="$acl_save_IFS"
 
7474
      fi
 
7475
      ;;
 
7476
  esac
 
7477
  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
 
7478
 
 
7479
 
 
7480
    
 
7481
  
 
7482
 
 
7483
      
 
7484
  
 
7485
  
 
7486
  
 
7487
  
 
7488
  
 
7489
    
 
7490
    use_additional=yes
 
7491
  
 
7492
  acl_save_prefix="$prefix"
 
7493
  prefix="$acl_final_prefix"
 
7494
  acl_save_exec_prefix="$exec_prefix"
 
7495
  exec_prefix="$acl_final_exec_prefix"
 
7496
  
 
7497
    eval additional_includedir=\"$includedir\"
 
7498
    eval additional_libdir=\"$libdir\"
 
7499
  
 
7500
  exec_prefix="$acl_save_exec_prefix"
 
7501
  prefix="$acl_save_prefix"
 
7502
 
 
7503
  
 
7504
@%:@ Check whether --with-libiconv-prefix was given.
 
7505
if test "${with_libiconv_prefix+set}" = set; then :
 
7506
  withval=$with_libiconv_prefix; 
 
7507
    if test "X$withval" = "Xno"; then
 
7508
      use_additional=no
 
7509
    else
 
7510
      if test "X$withval" = "X"; then
 
7511
        
 
7512
  acl_save_prefix="$prefix"
 
7513
  prefix="$acl_final_prefix"
 
7514
  acl_save_exec_prefix="$exec_prefix"
 
7515
  exec_prefix="$acl_final_exec_prefix"
 
7516
  
 
7517
          eval additional_includedir=\"$includedir\"
 
7518
          eval additional_libdir=\"$libdir\"
 
7519
        
 
7520
  exec_prefix="$acl_save_exec_prefix"
 
7521
  prefix="$acl_save_prefix"
 
7522
 
 
7523
      else
 
7524
        additional_includedir="$withval/include"
 
7525
        additional_libdir="$withval/$acl_libdirstem"
 
7526
        if test "$acl_libdirstem2" != "$acl_libdirstem" \
 
7527
           && ! test -d "$withval/$acl_libdirstem"; then
 
7528
          additional_libdir="$withval/$acl_libdirstem2"
 
7529
        fi
 
7530
      fi
 
7531
    fi
 
7532
 
 
7533
fi
 
7534
 
 
7535
      LIBICONV=
 
7536
  LTLIBICONV=
 
7537
  INCICONV=
 
7538
  LIBICONV_PREFIX=
 
7539
      HAVE_LIBICONV=
 
7540
  rpathdirs=
 
7541
  ltrpathdirs=
 
7542
  names_already_handled=
 
7543
  names_next_round='iconv '
 
7544
  while test -n "$names_next_round"; do
 
7545
    names_this_round="$names_next_round"
 
7546
    names_next_round=
 
7547
    for name in $names_this_round; do
 
7548
      already_handled=
 
7549
      for n in $names_already_handled; do
 
7550
        if test "$n" = "$name"; then
 
7551
          already_handled=yes
 
7552
          break
 
7553
        fi
 
7554
      done
 
7555
      if test -z "$already_handled"; then
 
7556
        names_already_handled="$names_already_handled $name"
 
7557
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
 
7558
        eval value=\"\$HAVE_LIB$uppername\"
 
7559
        if test -n "$value"; then
 
7560
          if test "$value" = yes; then
 
7561
            eval value=\"\$LIB$uppername\"
 
7562
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
 
7563
            eval value=\"\$LTLIB$uppername\"
 
7564
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
 
7565
          else
 
7566
                                    :
 
7567
          fi
 
7568
        else
 
7569
                              found_dir=
 
7570
          found_la=
 
7571
          found_so=
 
7572
          found_a=
 
7573
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
7574
          if test -n "$acl_shlibext"; then
 
7575
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
7576
          else
 
7577
            shrext=
 
7578
          fi
 
7579
          if test $use_additional = yes; then
 
7580
            dir="$additional_libdir"
 
7581
                                    if test -n "$acl_shlibext"; then
 
7582
              if test -f "$dir/$libname$shrext"; then
 
7583
                found_dir="$dir"
 
7584
                found_so="$dir/$libname$shrext"
 
7585
              else
 
7586
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
7587
                  ver=`(cd "$dir" && \
 
7588
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
7589
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
7590
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
7591
                        | sed 1q ) 2>/dev/null`
 
7592
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
7593
                    found_dir="$dir"
 
7594
                    found_so="$dir/$libname$shrext.$ver"
 
7595
                  fi
 
7596
                else
 
7597
                  eval library_names=\"$acl_library_names_spec\"
 
7598
                  for f in $library_names; do
 
7599
                    if test -f "$dir/$f"; then
 
7600
                      found_dir="$dir"
 
7601
                      found_so="$dir/$f"
 
7602
                      break
 
7603
                    fi
 
7604
                  done
 
7605
                fi
 
7606
              fi
 
7607
            fi
 
7608
                        if test "X$found_dir" = "X"; then
 
7609
              if test -f "$dir/$libname.$acl_libext"; then
 
7610
                found_dir="$dir"
 
7611
                found_a="$dir/$libname.$acl_libext"
 
7612
              fi
 
7613
            fi
 
7614
            if test "X$found_dir" != "X"; then
 
7615
              if test -f "$dir/$libname.la"; then
 
7616
                found_la="$dir/$libname.la"
 
7617
              fi
 
7618
            fi
 
7619
          fi
 
7620
          if test "X$found_dir" = "X"; then
 
7621
            for x in $LDFLAGS $LTLIBICONV; do
 
7622
              
 
7623
  acl_save_prefix="$prefix"
 
7624
  prefix="$acl_final_prefix"
 
7625
  acl_save_exec_prefix="$exec_prefix"
 
7626
  exec_prefix="$acl_final_exec_prefix"
 
7627
  eval x=\"$x\"
 
7628
  exec_prefix="$acl_save_exec_prefix"
 
7629
  prefix="$acl_save_prefix"
 
7630
 
 
7631
              case "$x" in
 
7632
                -L*)
 
7633
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
7634
                                    if test -n "$acl_shlibext"; then
 
7635
                    if test -f "$dir/$libname$shrext"; then
 
7636
                      found_dir="$dir"
 
7637
                      found_so="$dir/$libname$shrext"
 
7638
                    else
 
7639
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
7640
                        ver=`(cd "$dir" && \
 
7641
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
7642
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
7643
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
7644
                              | sed 1q ) 2>/dev/null`
 
7645
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
7646
                          found_dir="$dir"
 
7647
                          found_so="$dir/$libname$shrext.$ver"
 
7648
                        fi
 
7649
                      else
 
7650
                        eval library_names=\"$acl_library_names_spec\"
 
7651
                        for f in $library_names; do
 
7652
                          if test -f "$dir/$f"; then
 
7653
                            found_dir="$dir"
 
7654
                            found_so="$dir/$f"
 
7655
                            break
 
7656
                          fi
 
7657
                        done
 
7658
                      fi
 
7659
                    fi
 
7660
                  fi
 
7661
                                    if test "X$found_dir" = "X"; then
 
7662
                    if test -f "$dir/$libname.$acl_libext"; then
 
7663
                      found_dir="$dir"
 
7664
                      found_a="$dir/$libname.$acl_libext"
 
7665
                    fi
 
7666
                  fi
 
7667
                  if test "X$found_dir" != "X"; then
 
7668
                    if test -f "$dir/$libname.la"; then
 
7669
                      found_la="$dir/$libname.la"
 
7670
                    fi
 
7671
                  fi
 
7672
                  ;;
 
7673
              esac
 
7674
              if test "X$found_dir" != "X"; then
 
7675
                break
 
7676
              fi
 
7677
            done
 
7678
          fi
 
7679
          if test "X$found_dir" != "X"; then
 
7680
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
 
7681
            if test "X$found_so" != "X"; then
 
7682
                                                        if test "$enable_rpath" = no \
 
7683
                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
 
7684
                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
 
7685
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
7686
              else
 
7687
                                                                                haveit=
 
7688
                for x in $ltrpathdirs; do
 
7689
                  if test "X$x" = "X$found_dir"; then
 
7690
                    haveit=yes
 
7691
                    break
 
7692
                  fi
 
7693
                done
 
7694
                if test -z "$haveit"; then
 
7695
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
7696
                fi
 
7697
                                if test "$acl_hardcode_direct" = yes; then
 
7698
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
7699
                else
 
7700
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 
7701
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
7702
                                                            haveit=
 
7703
                    for x in $rpathdirs; do
 
7704
                      if test "X$x" = "X$found_dir"; then
 
7705
                        haveit=yes
 
7706
                        break
 
7707
                      fi
 
7708
                    done
 
7709
                    if test -z "$haveit"; then
 
7710
                      rpathdirs="$rpathdirs $found_dir"
 
7711
                    fi
 
7712
                  else
 
7713
                                                                                haveit=
 
7714
                    for x in $LDFLAGS $LIBICONV; do
 
7715
                      
 
7716
  acl_save_prefix="$prefix"
 
7717
  prefix="$acl_final_prefix"
 
7718
  acl_save_exec_prefix="$exec_prefix"
 
7719
  exec_prefix="$acl_final_exec_prefix"
 
7720
  eval x=\"$x\"
 
7721
  exec_prefix="$acl_save_exec_prefix"
 
7722
  prefix="$acl_save_prefix"
 
7723
 
 
7724
                      if test "X$x" = "X-L$found_dir"; then
 
7725
                        haveit=yes
 
7726
                        break
 
7727
                      fi
 
7728
                    done
 
7729
                    if test -z "$haveit"; then
 
7730
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
 
7731
                    fi
 
7732
                    if test "$acl_hardcode_minus_L" != no; then
 
7733
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
7734
                    else
 
7735
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
7736
                    fi
 
7737
                  fi
 
7738
                fi
 
7739
              fi
 
7740
            else
 
7741
              if test "X$found_a" != "X"; then
 
7742
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
 
7743
              else
 
7744
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
 
7745
              fi
 
7746
            fi
 
7747
                        additional_includedir=
 
7748
            case "$found_dir" in
 
7749
              */$acl_libdirstem | */$acl_libdirstem/)
 
7750
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
7751
                if test "$name" = 'iconv'; then
 
7752
                  LIBICONV_PREFIX="$basedir"
 
7753
                fi
 
7754
                additional_includedir="$basedir/include"
 
7755
                ;;
 
7756
              */$acl_libdirstem2 | */$acl_libdirstem2/)
 
7757
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
 
7758
                if test "$name" = 'iconv'; then
 
7759
                  LIBICONV_PREFIX="$basedir"
 
7760
                fi
 
7761
                additional_includedir="$basedir/include"
 
7762
                ;;
 
7763
            esac
 
7764
            if test "X$additional_includedir" != "X"; then
 
7765
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
7766
                haveit=
 
7767
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
7768
                  if test -n "$GCC"; then
 
7769
                    case $host_os in
 
7770
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
7771
                    esac
 
7772
                  fi
 
7773
                fi
 
7774
                if test -z "$haveit"; then
 
7775
                  for x in $CPPFLAGS $INCICONV; do
 
7776
                    
 
7777
  acl_save_prefix="$prefix"
 
7778
  prefix="$acl_final_prefix"
 
7779
  acl_save_exec_prefix="$exec_prefix"
 
7780
  exec_prefix="$acl_final_exec_prefix"
 
7781
  eval x=\"$x\"
 
7782
  exec_prefix="$acl_save_exec_prefix"
 
7783
  prefix="$acl_save_prefix"
 
7784
 
 
7785
                    if test "X$x" = "X-I$additional_includedir"; then
 
7786
                      haveit=yes
 
7787
                      break
 
7788
                    fi
 
7789
                  done
 
7790
                  if test -z "$haveit"; then
 
7791
                    if test -d "$additional_includedir"; then
 
7792
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
 
7793
                    fi
 
7794
                  fi
 
7795
                fi
 
7796
              fi
 
7797
            fi
 
7798
                        if test -n "$found_la"; then
 
7799
                                                        save_libdir="$libdir"
 
7800
              case "$found_la" in
 
7801
                */* | *\\*) . "$found_la" ;;
 
7802
                *) . "./$found_la" ;;
 
7803
              esac
 
7804
              libdir="$save_libdir"
 
7805
                            for dep in $dependency_libs; do
 
7806
                case "$dep" in
 
7807
                  -L*)
 
7808
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
7809
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
 
7810
                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
 
7811
                      haveit=
 
7812
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
 
7813
                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
 
7814
                        if test -n "$GCC"; then
 
7815
                          case $host_os in
 
7816
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
7817
                          esac
 
7818
                        fi
 
7819
                      fi
 
7820
                      if test -z "$haveit"; then
 
7821
                        haveit=
 
7822
                        for x in $LDFLAGS $LIBICONV; do
 
7823
                          
 
7824
  acl_save_prefix="$prefix"
 
7825
  prefix="$acl_final_prefix"
 
7826
  acl_save_exec_prefix="$exec_prefix"
 
7827
  exec_prefix="$acl_final_exec_prefix"
 
7828
  eval x=\"$x\"
 
7829
  exec_prefix="$acl_save_exec_prefix"
 
7830
  prefix="$acl_save_prefix"
 
7831
 
 
7832
                          if test "X$x" = "X-L$additional_libdir"; then
 
7833
                            haveit=yes
 
7834
                            break
 
7835
                          fi
 
7836
                        done
 
7837
                        if test -z "$haveit"; then
 
7838
                          if test -d "$additional_libdir"; then
 
7839
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
 
7840
                          fi
 
7841
                        fi
 
7842
                        haveit=
 
7843
                        for x in $LDFLAGS $LTLIBICONV; do
 
7844
                          
 
7845
  acl_save_prefix="$prefix"
 
7846
  prefix="$acl_final_prefix"
 
7847
  acl_save_exec_prefix="$exec_prefix"
 
7848
  exec_prefix="$acl_final_exec_prefix"
 
7849
  eval x=\"$x\"
 
7850
  exec_prefix="$acl_save_exec_prefix"
 
7851
  prefix="$acl_save_prefix"
 
7852
 
 
7853
                          if test "X$x" = "X-L$additional_libdir"; then
 
7854
                            haveit=yes
 
7855
                            break
 
7856
                          fi
 
7857
                        done
 
7858
                        if test -z "$haveit"; then
 
7859
                          if test -d "$additional_libdir"; then
 
7860
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
 
7861
                          fi
 
7862
                        fi
 
7863
                      fi
 
7864
                    fi
 
7865
                    ;;
 
7866
                  -R*)
 
7867
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
7868
                    if test "$enable_rpath" != no; then
 
7869
                                                                  haveit=
 
7870
                      for x in $rpathdirs; do
 
7871
                        if test "X$x" = "X$dir"; then
 
7872
                          haveit=yes
 
7873
                          break
 
7874
                        fi
 
7875
                      done
 
7876
                      if test -z "$haveit"; then
 
7877
                        rpathdirs="$rpathdirs $dir"
 
7878
                      fi
 
7879
                                                                  haveit=
 
7880
                      for x in $ltrpathdirs; do
 
7881
                        if test "X$x" = "X$dir"; then
 
7882
                          haveit=yes
 
7883
                          break
 
7884
                        fi
 
7885
                      done
 
7886
                      if test -z "$haveit"; then
 
7887
                        ltrpathdirs="$ltrpathdirs $dir"
 
7888
                      fi
 
7889
                    fi
 
7890
                    ;;
 
7891
                  -l*)
 
7892
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
7893
                    ;;
 
7894
                  *.la)
 
7895
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
7896
                    ;;
 
7897
                  *)
 
7898
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
 
7899
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
 
7900
                    ;;
 
7901
                esac
 
7902
              done
 
7903
            fi
 
7904
          else
 
7905
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
7906
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
 
7907
          fi
 
7908
        fi
 
7909
      fi
 
7910
    done
 
7911
  done
 
7912
  if test "X$rpathdirs" != "X"; then
 
7913
    if test -n "$acl_hardcode_libdir_separator"; then
 
7914
                        alldirs=
 
7915
      for found_dir in $rpathdirs; do
 
7916
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
 
7917
      done
 
7918
            acl_save_libdir="$libdir"
 
7919
      libdir="$alldirs"
 
7920
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
7921
      libdir="$acl_save_libdir"
 
7922
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
7923
    else
 
7924
            for found_dir in $rpathdirs; do
 
7925
        acl_save_libdir="$libdir"
 
7926
        libdir="$found_dir"
 
7927
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
7928
        libdir="$acl_save_libdir"
 
7929
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
7930
      done
 
7931
    fi
 
7932
  fi
 
7933
  if test "X$ltrpathdirs" != "X"; then
 
7934
            for found_dir in $ltrpathdirs; do
 
7935
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
 
7936
    done
 
7937
  fi
 
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
    
 
7966
  
 
7967
 
 
7968
    
 
7969
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
 
7970
$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
 
7971
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
 
7972
  $as_echo_n "(cached) " >&6
 
7973
else
 
7974
  gt_save_LIBS="$LIBS"
 
7975
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
7976
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7977
/* end confdefs.h.  */
 
7978
#include <CoreFoundation/CFPreferences.h>
 
7979
int
 
7980
main (void)
 
7981
{
 
7982
CFPreferencesCopyAppValue(NULL, NULL)
 
7983
  ;
 
7984
  return 0;
 
7985
}
 
7986
_ACEOF
 
7987
if ac_fn_c_try_link "$LINENO"; then :
 
7988
  gt_cv_func_CFPreferencesCopyAppValue=yes
 
7989
else
 
7990
  gt_cv_func_CFPreferencesCopyAppValue=no
 
7991
fi
 
7992
rm -f core conftest.err conftest.$ac_objext \
 
7993
    conftest$ac_exeext conftest.$ac_ext
 
7994
     LIBS="$gt_save_LIBS"
 
7995
fi
 
7996
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
 
7997
$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
 
7998
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
 
7999
    
 
8000
$as_echo "@%:@define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
 
8001
 
 
8002
  fi
 
8003
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
 
8004
$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
 
8005
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
 
8006
  $as_echo_n "(cached) " >&6
 
8007
else
 
8008
  gt_save_LIBS="$LIBS"
 
8009
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
8010
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8011
/* end confdefs.h.  */
 
8012
#include <CoreFoundation/CFLocale.h>
 
8013
int
 
8014
main (void)
 
8015
{
 
8016
CFLocaleCopyCurrent();
 
8017
  ;
 
8018
  return 0;
 
8019
}
 
8020
_ACEOF
 
8021
if ac_fn_c_try_link "$LINENO"; then :
 
8022
  gt_cv_func_CFLocaleCopyCurrent=yes
 
8023
else
 
8024
  gt_cv_func_CFLocaleCopyCurrent=no
 
8025
fi
 
8026
rm -f core conftest.err conftest.$ac_objext \
 
8027
    conftest$ac_exeext conftest.$ac_ext
 
8028
     LIBS="$gt_save_LIBS"
 
8029
fi
 
8030
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
 
8031
$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
 
8032
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
8033
    
 
8034
$as_echo "@%:@define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
 
8035
 
 
8036
  fi
 
8037
  INTL_MACOSX_LIBS=
 
8038
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
8039
    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
 
8040
  fi
 
8041
  
 
8042
 
 
8043
 
 
8044
    
 
8045
 
 
8046
  
 
8047
  LIBINTL=
 
8048
  LTLIBINTL=
 
8049
  POSUB=
 
8050
 
 
8051
    case " $gt_needs " in
 
8052
    *" need-formatstring-macros "*) gt_api_version=3 ;;
 
8053
    *" need-ngettext "*) gt_api_version=2 ;;
 
8054
    *) gt_api_version=1 ;;
 
8055
  esac
 
8056
  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
 
8057
  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
 
8058
 
 
8059
    if test "$USE_NLS" = "yes"; then
 
8060
    gt_use_preinstalled_gnugettext=no
 
8061
    
 
8062
                        
 
8063
        if test $gt_api_version -ge 3; then
 
8064
          gt_revision_test_code='
 
8065
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
 
8066
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
 
8067
#endif
 
8068
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
 
8069
'
 
8070
        else
 
8071
          gt_revision_test_code=
 
8072
        fi
 
8073
        if test $gt_api_version -ge 2; then
 
8074
          gt_expression_test_code=' + * ngettext ("", "", 0)'
 
8075
        else
 
8076
          gt_expression_test_code=
 
8077
        fi
 
8078
 
 
8079
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
 
8080
$as_echo_n "checking for GNU gettext in libc... " >&6; }
 
8081
if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then :
 
8082
  $as_echo_n "(cached) " >&6
 
8083
else
 
8084
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8085
/* end confdefs.h.  */
 
8086
 
 
8087
#include <libintl.h>
 
8088
$gt_revision_test_code
 
8089
extern int _nl_msg_cat_cntr;
 
8090
extern int *_nl_domain_bindings;
 
8091
               
 
8092
int
 
8093
main (void)
 
8094
{
 
8095
 
 
8096
bindtextdomain ("", "");
 
8097
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
 
8098
               
 
8099
  ;
 
8100
  return 0;
 
8101
}
 
8102
_ACEOF
 
8103
if ac_fn_c_try_link "$LINENO"; then :
 
8104
  eval "$gt_func_gnugettext_libc=yes"
 
8105
else
 
8106
  eval "$gt_func_gnugettext_libc=no"
 
8107
fi
 
8108
rm -f core conftest.err conftest.$ac_objext \
 
8109
    conftest$ac_exeext conftest.$ac_ext
 
8110
fi
 
8111
eval ac_res=\$$gt_func_gnugettext_libc
 
8112
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
8113
$as_echo "$ac_res" >&6; }
 
8114
 
 
8115
        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
 
8116
                    
 
8117
            
 
8118
       
 
8119
      
 
8120
 
 
8121
          am_save_CPPFLAGS="$CPPFLAGS"
 
8122
  
 
8123
  for element in $INCICONV; do
 
8124
    haveit=
 
8125
    for x in $CPPFLAGS; do
 
8126
      
 
8127
  acl_save_prefix="$prefix"
 
8128
  prefix="$acl_final_prefix"
 
8129
  acl_save_exec_prefix="$exec_prefix"
 
8130
  exec_prefix="$acl_final_exec_prefix"
 
8131
  eval x=\"$x\"
 
8132
  exec_prefix="$acl_save_exec_prefix"
 
8133
  prefix="$acl_save_prefix"
 
8134
 
 
8135
      if test "X$x" = "X$element"; then
 
8136
        haveit=yes
 
8137
        break
 
8138
      fi
 
8139
    done
 
8140
    if test -z "$haveit"; then
 
8141
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
8142
    fi
 
8143
  done
 
8144
 
 
8145
 
 
8146
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
 
8147
$as_echo_n "checking for iconv... " >&6; }
 
8148
if test "${am_cv_func_iconv+set}" = set; then :
 
8149
  $as_echo_n "(cached) " >&6
 
8150
else
 
8151
  
 
8152
    am_cv_func_iconv="no, consider installing GNU libiconv"
 
8153
    am_cv_lib_iconv=no
 
8154
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8155
/* end confdefs.h.  */
 
8156
 
 
8157
#include <stdlib.h>
 
8158
#include <iconv.h>
 
8159
         
 
8160
int
 
8161
main (void)
 
8162
{
 
8163
iconv_t cd = iconv_open("","");
 
8164
           iconv(cd,NULL,NULL,NULL,NULL);
 
8165
           iconv_close(cd);
 
8166
  ;
 
8167
  return 0;
 
8168
}
 
8169
_ACEOF
 
8170
if ac_fn_c_try_link "$LINENO"; then :
 
8171
  am_cv_func_iconv=yes
 
8172
fi
 
8173
rm -f core conftest.err conftest.$ac_objext \
 
8174
    conftest$ac_exeext conftest.$ac_ext
 
8175
    if test "$am_cv_func_iconv" != yes; then
 
8176
      am_save_LIBS="$LIBS"
 
8177
      LIBS="$LIBS $LIBICONV"
 
8178
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8179
/* end confdefs.h.  */
 
8180
 
 
8181
#include <stdlib.h>
 
8182
#include <iconv.h>
 
8183
           
 
8184
int
 
8185
main (void)
 
8186
{
 
8187
iconv_t cd = iconv_open("","");
 
8188
             iconv(cd,NULL,NULL,NULL,NULL);
 
8189
             iconv_close(cd);
 
8190
  ;
 
8191
  return 0;
 
8192
}
 
8193
_ACEOF
 
8194
if ac_fn_c_try_link "$LINENO"; then :
 
8195
  am_cv_lib_iconv=yes
 
8196
        am_cv_func_iconv=yes
 
8197
fi
 
8198
rm -f core conftest.err conftest.$ac_objext \
 
8199
    conftest$ac_exeext conftest.$ac_ext
 
8200
      LIBS="$am_save_LIBS"
 
8201
    fi
 
8202
  
 
8203
fi
 
8204
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
 
8205
$as_echo "$am_cv_func_iconv" >&6; }
 
8206
  if test "$am_cv_func_iconv" = yes; then
 
8207
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
 
8208
$as_echo_n "checking for working iconv... " >&6; }
 
8209
if test "${am_cv_func_iconv_works+set}" = set; then :
 
8210
  $as_echo_n "(cached) " >&6
 
8211
else
 
8212
  
 
8213
                  am_save_LIBS="$LIBS"
 
8214
      if test $am_cv_lib_iconv = yes; then
 
8215
        LIBS="$LIBS $LIBICONV"
 
8216
      fi
 
8217
      if test "$cross_compiling" = yes; then :
 
8218
  
 
8219
         case "$host_os" in
 
8220
           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
 
8221
           *)            am_cv_func_iconv_works="guessing yes" ;;
 
8222
         esac
 
8223
        
 
8224
else
 
8225
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8226
/* end confdefs.h.  */
 
8227
 
 
8228
#include <iconv.h>
 
8229
#include <string.h>
 
8230
int main ()
 
8231
{
 
8232
  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
 
8233
     returns.  */
 
8234
  {
 
8235
    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
 
8236
    if (cd_utf8_to_88591 != (iconv_t)(-1))
 
8237
      {
 
8238
        static const char input[] = "\342\202\254"; /* EURO SIGN */
 
8239
        char buf[10];
 
8240
        const char *inptr = input;
 
8241
        size_t inbytesleft = strlen (input);
 
8242
        char *outptr = buf;
 
8243
        size_t outbytesleft = sizeof (buf);
 
8244
        size_t res = iconv (cd_utf8_to_88591,
 
8245
                            (char **) &inptr, &inbytesleft,
 
8246
                            &outptr, &outbytesleft);
 
8247
        if (res == 0)
 
8248
          return 1;
 
8249
      }
 
8250
  }
 
8251
  /* Test against Solaris 10 bug: Failures are not distinguishable from
 
8252
     successful returns.  */
 
8253
  {
 
8254
    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
 
8255
    if (cd_ascii_to_88591 != (iconv_t)(-1))
 
8256
      {
 
8257
        static const char input[] = "\263";
 
8258
        char buf[10];
 
8259
        const char *inptr = input;
 
8260
        size_t inbytesleft = strlen (input);
 
8261
        char *outptr = buf;
 
8262
        size_t outbytesleft = sizeof (buf);
 
8263
        size_t res = iconv (cd_ascii_to_88591,
 
8264
                            (char **) &inptr, &inbytesleft,
 
8265
                            &outptr, &outbytesleft);
 
8266
        if (res == 0)
 
8267
          return 1;
 
8268
      }
 
8269
  }
 
8270
  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
 
8271
  {
 
8272
    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
 
8273
    if (cd_88591_to_utf8 != (iconv_t)(-1))
 
8274
      {
 
8275
        static const char input[] = "\304";
 
8276
        static char buf[2] = { (char)0xDE, (char)0xAD };
 
8277
        const char *inptr = input;
 
8278
        size_t inbytesleft = 1;
 
8279
        char *outptr = buf;
 
8280
        size_t outbytesleft = 1;
 
8281
        size_t res = iconv (cd_88591_to_utf8,
 
8282
                            (char **) &inptr, &inbytesleft,
 
8283
                            &outptr, &outbytesleft);
 
8284
        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
 
8285
          return 1;
 
8286
      }
 
8287
  }
 
8288
#if 0 /* This bug could be worked around by the caller.  */
 
8289
  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
 
8290
  {
 
8291
    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
 
8292
    if (cd_88591_to_utf8 != (iconv_t)(-1))
 
8293
      {
 
8294
        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
 
8295
        char buf[50];
 
8296
        const char *inptr = input;
 
8297
        size_t inbytesleft = strlen (input);
 
8298
        char *outptr = buf;
 
8299
        size_t outbytesleft = sizeof (buf);
 
8300
        size_t res = iconv (cd_88591_to_utf8,
 
8301
                            (char **) &inptr, &inbytesleft,
 
8302
                            &outptr, &outbytesleft);
 
8303
        if ((int)res > 0)
 
8304
          return 1;
 
8305
      }
 
8306
  }
 
8307
#endif
 
8308
  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
 
8309
     provided.  */
 
8310
  if (/* Try standardized names.  */
 
8311
      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
 
8312
      /* Try IRIX, OSF/1 names.  */
 
8313
      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
 
8314
      /* Try AIX names.  */
 
8315
      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
 
8316
      /* Try HP-UX names.  */
 
8317
      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
 
8318
    return 1;
 
8319
  return 0;
 
8320
}
 
8321
_ACEOF
 
8322
if ac_fn_c_try_run "$LINENO"; then :
 
8323
  am_cv_func_iconv_works=yes
 
8324
else
 
8325
  am_cv_func_iconv_works=no
 
8326
fi
 
8327
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
8328
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
8329
fi
 
8330
 
 
8331
      LIBS="$am_save_LIBS"
 
8332
    
 
8333
fi
 
8334
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
 
8335
$as_echo "$am_cv_func_iconv_works" >&6; }
 
8336
    case "$am_cv_func_iconv_works" in
 
8337
      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
 
8338
      *)   am_func_iconv=yes ;;
 
8339
    esac
 
8340
  else
 
8341
    am_func_iconv=no am_cv_lib_iconv=no
 
8342
  fi
 
8343
  if test "$am_func_iconv" = yes; then
 
8344
    
 
8345
$as_echo "@%:@define HAVE_ICONV 1" >>confdefs.h
 
8346
 
 
8347
  fi
 
8348
  if test "$am_cv_lib_iconv" = yes; then
 
8349
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
 
8350
$as_echo_n "checking how to link with libiconv... " >&6; }
 
8351
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
 
8352
$as_echo "$LIBICONV" >&6; }
 
8353
  else
 
8354
            CPPFLAGS="$am_save_CPPFLAGS"
 
8355
    LIBICONV=
 
8356
    LTLIBICONV=
 
8357
  fi
 
8358
  
 
8359
  
 
8360
 
 
8361
          
 
8362
                                                  
 
8363
  
 
8364
  
 
8365
  
 
8366
  
 
8367
  
 
8368
    
 
8369
    use_additional=yes
 
8370
  
 
8371
  acl_save_prefix="$prefix"
 
8372
  prefix="$acl_final_prefix"
 
8373
  acl_save_exec_prefix="$exec_prefix"
 
8374
  exec_prefix="$acl_final_exec_prefix"
 
8375
  
 
8376
    eval additional_includedir=\"$includedir\"
 
8377
    eval additional_libdir=\"$libdir\"
 
8378
  
 
8379
  exec_prefix="$acl_save_exec_prefix"
 
8380
  prefix="$acl_save_prefix"
 
8381
 
 
8382
  
 
8383
@%:@ Check whether --with-libintl-prefix was given.
 
8384
if test "${with_libintl_prefix+set}" = set; then :
 
8385
  withval=$with_libintl_prefix; 
 
8386
    if test "X$withval" = "Xno"; then
 
8387
      use_additional=no
 
8388
    else
 
8389
      if test "X$withval" = "X"; then
 
8390
        
 
8391
  acl_save_prefix="$prefix"
 
8392
  prefix="$acl_final_prefix"
 
8393
  acl_save_exec_prefix="$exec_prefix"
 
8394
  exec_prefix="$acl_final_exec_prefix"
 
8395
  
 
8396
          eval additional_includedir=\"$includedir\"
 
8397
          eval additional_libdir=\"$libdir\"
 
8398
        
 
8399
  exec_prefix="$acl_save_exec_prefix"
 
8400
  prefix="$acl_save_prefix"
 
8401
 
 
8402
      else
 
8403
        additional_includedir="$withval/include"
 
8404
        additional_libdir="$withval/$acl_libdirstem"
 
8405
        if test "$acl_libdirstem2" != "$acl_libdirstem" \
 
8406
           && ! test -d "$withval/$acl_libdirstem"; then
 
8407
          additional_libdir="$withval/$acl_libdirstem2"
 
8408
        fi
 
8409
      fi
 
8410
    fi
 
8411
 
 
8412
fi
 
8413
 
 
8414
      LIBINTL=
 
8415
  LTLIBINTL=
 
8416
  INCINTL=
 
8417
  LIBINTL_PREFIX=
 
8418
      HAVE_LIBINTL=
 
8419
  rpathdirs=
 
8420
  ltrpathdirs=
 
8421
  names_already_handled=
 
8422
  names_next_round='intl '
 
8423
  while test -n "$names_next_round"; do
 
8424
    names_this_round="$names_next_round"
 
8425
    names_next_round=
 
8426
    for name in $names_this_round; do
 
8427
      already_handled=
 
8428
      for n in $names_already_handled; do
 
8429
        if test "$n" = "$name"; then
 
8430
          already_handled=yes
 
8431
          break
 
8432
        fi
 
8433
      done
 
8434
      if test -z "$already_handled"; then
 
8435
        names_already_handled="$names_already_handled $name"
 
8436
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
 
8437
        eval value=\"\$HAVE_LIB$uppername\"
 
8438
        if test -n "$value"; then
 
8439
          if test "$value" = yes; then
 
8440
            eval value=\"\$LIB$uppername\"
 
8441
            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
 
8442
            eval value=\"\$LTLIB$uppername\"
 
8443
            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
 
8444
          else
 
8445
                                    :
 
8446
          fi
 
8447
        else
 
8448
                              found_dir=
 
8449
          found_la=
 
8450
          found_so=
 
8451
          found_a=
 
8452
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
8453
          if test -n "$acl_shlibext"; then
 
8454
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
8455
          else
 
8456
            shrext=
 
8457
          fi
 
8458
          if test $use_additional = yes; then
 
8459
            dir="$additional_libdir"
 
8460
                                    if test -n "$acl_shlibext"; then
 
8461
              if test -f "$dir/$libname$shrext"; then
 
8462
                found_dir="$dir"
 
8463
                found_so="$dir/$libname$shrext"
 
8464
              else
 
8465
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
8466
                  ver=`(cd "$dir" && \
 
8467
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
8468
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
8469
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
8470
                        | sed 1q ) 2>/dev/null`
 
8471
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
8472
                    found_dir="$dir"
 
8473
                    found_so="$dir/$libname$shrext.$ver"
 
8474
                  fi
 
8475
                else
 
8476
                  eval library_names=\"$acl_library_names_spec\"
 
8477
                  for f in $library_names; do
 
8478
                    if test -f "$dir/$f"; then
 
8479
                      found_dir="$dir"
 
8480
                      found_so="$dir/$f"
 
8481
                      break
 
8482
                    fi
 
8483
                  done
 
8484
                fi
 
8485
              fi
 
8486
            fi
 
8487
                        if test "X$found_dir" = "X"; then
 
8488
              if test -f "$dir/$libname.$acl_libext"; then
 
8489
                found_dir="$dir"
 
8490
                found_a="$dir/$libname.$acl_libext"
 
8491
              fi
 
8492
            fi
 
8493
            if test "X$found_dir" != "X"; then
 
8494
              if test -f "$dir/$libname.la"; then
 
8495
                found_la="$dir/$libname.la"
 
8496
              fi
 
8497
            fi
 
8498
          fi
 
8499
          if test "X$found_dir" = "X"; then
 
8500
            for x in $LDFLAGS $LTLIBINTL; do
 
8501
              
 
8502
  acl_save_prefix="$prefix"
 
8503
  prefix="$acl_final_prefix"
 
8504
  acl_save_exec_prefix="$exec_prefix"
 
8505
  exec_prefix="$acl_final_exec_prefix"
 
8506
  eval x=\"$x\"
 
8507
  exec_prefix="$acl_save_exec_prefix"
 
8508
  prefix="$acl_save_prefix"
 
8509
 
 
8510
              case "$x" in
 
8511
                -L*)
 
8512
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
8513
                                    if test -n "$acl_shlibext"; then
 
8514
                    if test -f "$dir/$libname$shrext"; then
 
8515
                      found_dir="$dir"
 
8516
                      found_so="$dir/$libname$shrext"
 
8517
                    else
 
8518
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
8519
                        ver=`(cd "$dir" && \
 
8520
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
8521
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
8522
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
8523
                              | sed 1q ) 2>/dev/null`
 
8524
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
8525
                          found_dir="$dir"
 
8526
                          found_so="$dir/$libname$shrext.$ver"
 
8527
                        fi
 
8528
                      else
 
8529
                        eval library_names=\"$acl_library_names_spec\"
 
8530
                        for f in $library_names; do
 
8531
                          if test -f "$dir/$f"; then
 
8532
                            found_dir="$dir"
 
8533
                            found_so="$dir/$f"
 
8534
                            break
 
8535
                          fi
 
8536
                        done
 
8537
                      fi
 
8538
                    fi
 
8539
                  fi
 
8540
                                    if test "X$found_dir" = "X"; then
 
8541
                    if test -f "$dir/$libname.$acl_libext"; then
 
8542
                      found_dir="$dir"
 
8543
                      found_a="$dir/$libname.$acl_libext"
 
8544
                    fi
 
8545
                  fi
 
8546
                  if test "X$found_dir" != "X"; then
 
8547
                    if test -f "$dir/$libname.la"; then
 
8548
                      found_la="$dir/$libname.la"
 
8549
                    fi
 
8550
                  fi
 
8551
                  ;;
 
8552
              esac
 
8553
              if test "X$found_dir" != "X"; then
 
8554
                break
 
8555
              fi
 
8556
            done
 
8557
          fi
 
8558
          if test "X$found_dir" != "X"; then
 
8559
                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
 
8560
            if test "X$found_so" != "X"; then
 
8561
                                                        if test "$enable_rpath" = no \
 
8562
                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
 
8563
                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
 
8564
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
8565
              else
 
8566
                                                                                haveit=
 
8567
                for x in $ltrpathdirs; do
 
8568
                  if test "X$x" = "X$found_dir"; then
 
8569
                    haveit=yes
 
8570
                    break
 
8571
                  fi
 
8572
                done
 
8573
                if test -z "$haveit"; then
 
8574
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
8575
                fi
 
8576
                                if test "$acl_hardcode_direct" = yes; then
 
8577
                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
8578
                else
 
8579
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 
8580
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
8581
                                                            haveit=
 
8582
                    for x in $rpathdirs; do
 
8583
                      if test "X$x" = "X$found_dir"; then
 
8584
                        haveit=yes
 
8585
                        break
 
8586
                      fi
 
8587
                    done
 
8588
                    if test -z "$haveit"; then
 
8589
                      rpathdirs="$rpathdirs $found_dir"
 
8590
                    fi
 
8591
                  else
 
8592
                                                                                haveit=
 
8593
                    for x in $LDFLAGS $LIBINTL; do
 
8594
                      
 
8595
  acl_save_prefix="$prefix"
 
8596
  prefix="$acl_final_prefix"
 
8597
  acl_save_exec_prefix="$exec_prefix"
 
8598
  exec_prefix="$acl_final_exec_prefix"
 
8599
  eval x=\"$x\"
 
8600
  exec_prefix="$acl_save_exec_prefix"
 
8601
  prefix="$acl_save_prefix"
 
8602
 
 
8603
                      if test "X$x" = "X-L$found_dir"; then
 
8604
                        haveit=yes
 
8605
                        break
 
8606
                      fi
 
8607
                    done
 
8608
                    if test -z "$haveit"; then
 
8609
                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
 
8610
                    fi
 
8611
                    if test "$acl_hardcode_minus_L" != no; then
 
8612
                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
8613
                    else
 
8614
                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
8615
                    fi
 
8616
                  fi
 
8617
                fi
 
8618
              fi
 
8619
            else
 
8620
              if test "X$found_a" != "X"; then
 
8621
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
 
8622
              else
 
8623
                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
 
8624
              fi
 
8625
            fi
 
8626
                        additional_includedir=
 
8627
            case "$found_dir" in
 
8628
              */$acl_libdirstem | */$acl_libdirstem/)
 
8629
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
8630
                if test "$name" = 'intl'; then
 
8631
                  LIBINTL_PREFIX="$basedir"
 
8632
                fi
 
8633
                additional_includedir="$basedir/include"
 
8634
                ;;
 
8635
              */$acl_libdirstem2 | */$acl_libdirstem2/)
 
8636
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
 
8637
                if test "$name" = 'intl'; then
 
8638
                  LIBINTL_PREFIX="$basedir"
 
8639
                fi
 
8640
                additional_includedir="$basedir/include"
 
8641
                ;;
 
8642
            esac
 
8643
            if test "X$additional_includedir" != "X"; then
 
8644
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
8645
                haveit=
 
8646
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
8647
                  if test -n "$GCC"; then
 
8648
                    case $host_os in
 
8649
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
8650
                    esac
 
8651
                  fi
 
8652
                fi
 
8653
                if test -z "$haveit"; then
 
8654
                  for x in $CPPFLAGS $INCINTL; do
 
8655
                    
 
8656
  acl_save_prefix="$prefix"
 
8657
  prefix="$acl_final_prefix"
 
8658
  acl_save_exec_prefix="$exec_prefix"
 
8659
  exec_prefix="$acl_final_exec_prefix"
 
8660
  eval x=\"$x\"
 
8661
  exec_prefix="$acl_save_exec_prefix"
 
8662
  prefix="$acl_save_prefix"
 
8663
 
 
8664
                    if test "X$x" = "X-I$additional_includedir"; then
 
8665
                      haveit=yes
 
8666
                      break
 
8667
                    fi
 
8668
                  done
 
8669
                  if test -z "$haveit"; then
 
8670
                    if test -d "$additional_includedir"; then
 
8671
                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
 
8672
                    fi
 
8673
                  fi
 
8674
                fi
 
8675
              fi
 
8676
            fi
 
8677
                        if test -n "$found_la"; then
 
8678
                                                        save_libdir="$libdir"
 
8679
              case "$found_la" in
 
8680
                */* | *\\*) . "$found_la" ;;
 
8681
                *) . "./$found_la" ;;
 
8682
              esac
 
8683
              libdir="$save_libdir"
 
8684
                            for dep in $dependency_libs; do
 
8685
                case "$dep" in
 
8686
                  -L*)
 
8687
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
8688
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
 
8689
                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
 
8690
                      haveit=
 
8691
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
 
8692
                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
 
8693
                        if test -n "$GCC"; then
 
8694
                          case $host_os in
 
8695
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
8696
                          esac
 
8697
                        fi
 
8698
                      fi
 
8699
                      if test -z "$haveit"; then
 
8700
                        haveit=
 
8701
                        for x in $LDFLAGS $LIBINTL; do
 
8702
                          
 
8703
  acl_save_prefix="$prefix"
 
8704
  prefix="$acl_final_prefix"
 
8705
  acl_save_exec_prefix="$exec_prefix"
 
8706
  exec_prefix="$acl_final_exec_prefix"
 
8707
  eval x=\"$x\"
 
8708
  exec_prefix="$acl_save_exec_prefix"
 
8709
  prefix="$acl_save_prefix"
 
8710
 
 
8711
                          if test "X$x" = "X-L$additional_libdir"; then
 
8712
                            haveit=yes
 
8713
                            break
 
8714
                          fi
 
8715
                        done
 
8716
                        if test -z "$haveit"; then
 
8717
                          if test -d "$additional_libdir"; then
 
8718
                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
 
8719
                          fi
 
8720
                        fi
 
8721
                        haveit=
 
8722
                        for x in $LDFLAGS $LTLIBINTL; do
 
8723
                          
 
8724
  acl_save_prefix="$prefix"
 
8725
  prefix="$acl_final_prefix"
 
8726
  acl_save_exec_prefix="$exec_prefix"
 
8727
  exec_prefix="$acl_final_exec_prefix"
 
8728
  eval x=\"$x\"
 
8729
  exec_prefix="$acl_save_exec_prefix"
 
8730
  prefix="$acl_save_prefix"
 
8731
 
 
8732
                          if test "X$x" = "X-L$additional_libdir"; then
 
8733
                            haveit=yes
 
8734
                            break
 
8735
                          fi
 
8736
                        done
 
8737
                        if test -z "$haveit"; then
 
8738
                          if test -d "$additional_libdir"; then
 
8739
                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
 
8740
                          fi
 
8741
                        fi
 
8742
                      fi
 
8743
                    fi
 
8744
                    ;;
 
8745
                  -R*)
 
8746
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
8747
                    if test "$enable_rpath" != no; then
 
8748
                                                                  haveit=
 
8749
                      for x in $rpathdirs; do
 
8750
                        if test "X$x" = "X$dir"; then
 
8751
                          haveit=yes
 
8752
                          break
 
8753
                        fi
 
8754
                      done
 
8755
                      if test -z "$haveit"; then
 
8756
                        rpathdirs="$rpathdirs $dir"
 
8757
                      fi
 
8758
                                                                  haveit=
 
8759
                      for x in $ltrpathdirs; do
 
8760
                        if test "X$x" = "X$dir"; then
 
8761
                          haveit=yes
 
8762
                          break
 
8763
                        fi
 
8764
                      done
 
8765
                      if test -z "$haveit"; then
 
8766
                        ltrpathdirs="$ltrpathdirs $dir"
 
8767
                      fi
 
8768
                    fi
 
8769
                    ;;
 
8770
                  -l*)
 
8771
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
8772
                    ;;
 
8773
                  *.la)
 
8774
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
8775
                    ;;
 
8776
                  *)
 
8777
                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
 
8778
                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
 
8779
                    ;;
 
8780
                esac
 
8781
              done
 
8782
            fi
 
8783
          else
 
8784
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
8785
            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
 
8786
          fi
 
8787
        fi
 
8788
      fi
 
8789
    done
 
8790
  done
 
8791
  if test "X$rpathdirs" != "X"; then
 
8792
    if test -n "$acl_hardcode_libdir_separator"; then
 
8793
                        alldirs=
 
8794
      for found_dir in $rpathdirs; do
 
8795
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
 
8796
      done
 
8797
            acl_save_libdir="$libdir"
 
8798
      libdir="$alldirs"
 
8799
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
8800
      libdir="$acl_save_libdir"
 
8801
      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
8802
    else
 
8803
            for found_dir in $rpathdirs; do
 
8804
        acl_save_libdir="$libdir"
 
8805
        libdir="$found_dir"
 
8806
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
8807
        libdir="$acl_save_libdir"
 
8808
        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
8809
      done
 
8810
    fi
 
8811
  fi
 
8812
  if test "X$ltrpathdirs" != "X"; then
 
8813
            for found_dir in $ltrpathdirs; do
 
8814
      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
 
8815
    done
 
8816
  fi
 
8817
  
 
8818
  
 
8819
  
 
8820
  
 
8821
  
 
8822
 
 
8823
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
 
8824
$as_echo_n "checking for GNU gettext in libintl... " >&6; }
 
8825
if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then :
 
8826
  $as_echo_n "(cached) " >&6
 
8827
else
 
8828
  gt_save_CPPFLAGS="$CPPFLAGS"
 
8829
            CPPFLAGS="$CPPFLAGS $INCINTL"
 
8830
            gt_save_LIBS="$LIBS"
 
8831
            LIBS="$LIBS $LIBINTL"
 
8832
                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8833
/* end confdefs.h.  */
 
8834
 
 
8835
#include <libintl.h>
 
8836
$gt_revision_test_code
 
8837
extern int _nl_msg_cat_cntr;
 
8838
extern
 
8839
#ifdef __cplusplus
 
8840
"C"
 
8841
#endif
 
8842
const char *_nl_expand_alias (const char *);
 
8843
                 
 
8844
int
 
8845
main (void)
 
8846
{
 
8847
 
 
8848
bindtextdomain ("", "");
 
8849
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
 
8850
                 
 
8851
  ;
 
8852
  return 0;
 
8853
}
 
8854
_ACEOF
 
8855
if ac_fn_c_try_link "$LINENO"; then :
 
8856
  eval "$gt_func_gnugettext_libintl=yes"
 
8857
else
 
8858
  eval "$gt_func_gnugettext_libintl=no"
 
8859
fi
 
8860
rm -f core conftest.err conftest.$ac_objext \
 
8861
    conftest$ac_exeext conftest.$ac_ext
 
8862
                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
 
8863
              LIBS="$LIBS $LIBICONV"
 
8864
              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8865
/* end confdefs.h.  */
 
8866
 
 
8867
#include <libintl.h>
 
8868
$gt_revision_test_code
 
8869
extern int _nl_msg_cat_cntr;
 
8870
extern
 
8871
#ifdef __cplusplus
 
8872
"C"
 
8873
#endif
 
8874
const char *_nl_expand_alias (const char *);
 
8875
                   
 
8876
int
 
8877
main (void)
 
8878
{
 
8879
 
 
8880
bindtextdomain ("", "");
 
8881
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
 
8882
                   
 
8883
  ;
 
8884
  return 0;
 
8885
}
 
8886
_ACEOF
 
8887
if ac_fn_c_try_link "$LINENO"; then :
 
8888
  LIBINTL="$LIBINTL $LIBICONV"
 
8889
                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
 
8890
                 eval "$gt_func_gnugettext_libintl=yes"
 
8891
                
 
8892
fi
 
8893
rm -f core conftest.err conftest.$ac_objext \
 
8894
    conftest$ac_exeext conftest.$ac_ext
 
8895
            fi
 
8896
            CPPFLAGS="$gt_save_CPPFLAGS"
 
8897
            LIBS="$gt_save_LIBS"
 
8898
fi
 
8899
eval ac_res=\$$gt_func_gnugettext_libintl
 
8900
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
8901
$as_echo "$ac_res" >&6; }
 
8902
        fi
 
8903
 
 
8904
                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
 
8905
           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
 
8906
                && test "$PACKAGE" != gettext-runtime \
 
8907
                && test "$PACKAGE" != gettext-tools; }; then
 
8908
          gt_use_preinstalled_gnugettext=yes
 
8909
        else
 
8910
                    LIBINTL=
 
8911
          LTLIBINTL=
 
8912
          INCINTL=
 
8913
        fi
 
8914
 
 
8915
    
 
8916
 
 
8917
    if test -n "$INTL_MACOSX_LIBS"; then
 
8918
      if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
8919
         || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
8920
                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
 
8921
        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
 
8922
      fi
 
8923
    fi
 
8924
 
 
8925
    if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
8926
       || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
8927
      
 
8928
$as_echo "@%:@define ENABLE_NLS 1" >>confdefs.h
 
8929
 
 
8930
    else
 
8931
      USE_NLS=no
 
8932
    fi
 
8933
  fi
 
8934
 
 
8935
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
 
8936
$as_echo_n "checking whether to use NLS... " >&6; }
 
8937
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
 
8938
$as_echo "$USE_NLS" >&6; }
 
8939
  if test "$USE_NLS" = "yes"; then
 
8940
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
 
8941
$as_echo_n "checking where the gettext function comes from... " >&6; }
 
8942
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
8943
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
 
8944
        gt_source="external libintl"
 
8945
      else
 
8946
        gt_source="libc"
 
8947
      fi
 
8948
    else
 
8949
      gt_source="included intl directory"
 
8950
    fi
 
8951
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
 
8952
$as_echo "$gt_source" >&6; }
 
8953
  fi
 
8954
 
 
8955
  if test "$USE_NLS" = "yes"; then
 
8956
 
 
8957
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
8958
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
 
8959
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
 
8960
$as_echo_n "checking how to link with libintl... " >&6; }
 
8961
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
 
8962
$as_echo "$LIBINTL" >&6; }
 
8963
        
 
8964
  for element in $INCINTL; do
 
8965
    haveit=
 
8966
    for x in $CPPFLAGS; do
 
8967
      
 
8968
  acl_save_prefix="$prefix"
 
8969
  prefix="$acl_final_prefix"
 
8970
  acl_save_exec_prefix="$exec_prefix"
 
8971
  exec_prefix="$acl_final_exec_prefix"
 
8972
  eval x=\"$x\"
 
8973
  exec_prefix="$acl_save_exec_prefix"
 
8974
  prefix="$acl_save_prefix"
 
8975
 
 
8976
      if test "X$x" = "X$element"; then
 
8977
        haveit=yes
 
8978
        break
 
8979
      fi
 
8980
    done
 
8981
    if test -z "$haveit"; then
 
8982
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
8983
    fi
 
8984
  done
 
8985
 
 
8986
      fi
 
8987
 
 
8988
            
 
8989
$as_echo "@%:@define HAVE_GETTEXT 1" >>confdefs.h
 
8990
 
 
8991
      
 
8992
$as_echo "@%:@define HAVE_DCGETTEXT 1" >>confdefs.h
 
8993
 
 
8994
    fi
 
8995
 
 
8996
        POSUB=po
 
8997
  fi
 
8998
 
 
8999
  
 
9000
 
 
9001
    INTLLIBS="$LIBINTL"
 
9002
  
 
9003
 
 
9004
    
 
9005
  
 
9006
  
 
9007
 
 
9008
@%:@ Check whether --enable-largefile was given.
 
9009
if test "${enable_largefile+set}" = set; then :
 
9010
  enableval=$enable_largefile; 
 
9011
fi
 
9012
 
 
9013
if test "$enable_largefile" != no; then
 
9014
 
 
9015
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
 
9016
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
 
9017
if test "${ac_cv_sys_largefile_CC+set}" = set; then :
 
9018
  $as_echo_n "(cached) " >&6
 
9019
else
 
9020
  ac_cv_sys_largefile_CC=no
 
9021
     if test "$GCC" != yes; then
 
9022
       ac_save_CC=$CC
 
9023
       while :; do
 
9024
         # IRIX 6.2 and later do not support large files by default,
 
9025
         # so use the C compiler's -n32 option if that helps.
 
9026
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9027
/* end confdefs.h.  */
 
9028
@%:@include <sys/types.h>
 
9029
 /* Check that off_t can represent 2**63 - 1 correctly.
 
9030
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
9031
    since some C++ compilers masquerading as C compilers
 
9032
    incorrectly reject 9223372036854775807.  */
 
9033
@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
9034
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
9035
                       && LARGE_OFF_T % 2147483647 == 1)
 
9036
                      ? 1 : -1];
 
9037
int
 
9038
main (void)
 
9039
{
 
9040
 
 
9041
  ;
 
9042
  return 0;
 
9043
}
 
9044
_ACEOF
 
9045
         if ac_fn_c_try_compile "$LINENO"; then :
 
9046
  break
 
9047
fi
 
9048
rm -f core conftest.err conftest.$ac_objext
 
9049
         CC="$CC -n32"
 
9050
         if ac_fn_c_try_compile "$LINENO"; then :
 
9051
  ac_cv_sys_largefile_CC=' -n32'; break
 
9052
fi
 
9053
rm -f core conftest.err conftest.$ac_objext
 
9054
         break
 
9055
       done
 
9056
       CC=$ac_save_CC
 
9057
       rm -f conftest.$ac_ext
 
9058
    fi
 
9059
fi
 
9060
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
 
9061
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
 
9062
  if test "$ac_cv_sys_largefile_CC" != no; then
 
9063
    CC=$CC$ac_cv_sys_largefile_CC
 
9064
  fi
 
9065
 
 
9066
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
 
9067
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
 
9068
if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
 
9069
  $as_echo_n "(cached) " >&6
 
9070
else
 
9071
  while :; do
 
9072
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9073
/* end confdefs.h.  */
 
9074
@%:@include <sys/types.h>
 
9075
 /* Check that off_t can represent 2**63 - 1 correctly.
 
9076
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
9077
    since some C++ compilers masquerading as C compilers
 
9078
    incorrectly reject 9223372036854775807.  */
 
9079
@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
9080
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
9081
                       && LARGE_OFF_T % 2147483647 == 1)
 
9082
                      ? 1 : -1];
 
9083
int
 
9084
main (void)
 
9085
{
 
9086
 
 
9087
  ;
 
9088
  return 0;
 
9089
}
 
9090
_ACEOF
 
9091
if ac_fn_c_try_compile "$LINENO"; then :
 
9092
  ac_cv_sys_file_offset_bits=no; break
 
9093
fi
 
9094
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9095
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9096
/* end confdefs.h.  */
 
9097
@%:@define _FILE_OFFSET_BITS 64
 
9098
@%:@include <sys/types.h>
 
9099
 /* Check that off_t can represent 2**63 - 1 correctly.
 
9100
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
9101
    since some C++ compilers masquerading as C compilers
 
9102
    incorrectly reject 9223372036854775807.  */
 
9103
@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
9104
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
9105
                       && LARGE_OFF_T % 2147483647 == 1)
 
9106
                      ? 1 : -1];
 
9107
int
 
9108
main (void)
 
9109
{
 
9110
 
 
9111
  ;
 
9112
  return 0;
 
9113
}
 
9114
_ACEOF
 
9115
if ac_fn_c_try_compile "$LINENO"; then :
 
9116
  ac_cv_sys_file_offset_bits=64; break
 
9117
fi
 
9118
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9119
  ac_cv_sys_file_offset_bits=unknown
 
9120
  break
 
9121
done
 
9122
fi
 
9123
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
 
9124
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
 
9125
case $ac_cv_sys_file_offset_bits in #(
 
9126
  no | unknown) ;;
 
9127
  *) 
 
9128
cat >>confdefs.h <<_ACEOF
 
9129
@%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
 
9130
_ACEOF
 
9131
;;
 
9132
esac
 
9133
rm -rf conftest*
 
9134
  if test $ac_cv_sys_file_offset_bits = unknown; then
 
9135
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
 
9136
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
 
9137
if test "${ac_cv_sys_large_files+set}" = set; then :
 
9138
  $as_echo_n "(cached) " >&6
 
9139
else
 
9140
  while :; do
 
9141
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9142
/* end confdefs.h.  */
 
9143
@%:@include <sys/types.h>
 
9144
 /* Check that off_t can represent 2**63 - 1 correctly.
 
9145
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
9146
    since some C++ compilers masquerading as C compilers
 
9147
    incorrectly reject 9223372036854775807.  */
 
9148
@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
9149
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
9150
                       && LARGE_OFF_T % 2147483647 == 1)
 
9151
                      ? 1 : -1];
 
9152
int
 
9153
main (void)
 
9154
{
 
9155
 
 
9156
  ;
 
9157
  return 0;
 
9158
}
 
9159
_ACEOF
 
9160
if ac_fn_c_try_compile "$LINENO"; then :
 
9161
  ac_cv_sys_large_files=no; break
 
9162
fi
 
9163
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9164
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9165
/* end confdefs.h.  */
 
9166
@%:@define _LARGE_FILES 1
 
9167
@%:@include <sys/types.h>
 
9168
 /* Check that off_t can represent 2**63 - 1 correctly.
 
9169
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
9170
    since some C++ compilers masquerading as C compilers
 
9171
    incorrectly reject 9223372036854775807.  */
 
9172
@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
9173
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
9174
                       && LARGE_OFF_T % 2147483647 == 1)
 
9175
                      ? 1 : -1];
 
9176
int
 
9177
main (void)
 
9178
{
 
9179
 
 
9180
  ;
 
9181
  return 0;
 
9182
}
 
9183
_ACEOF
 
9184
if ac_fn_c_try_compile "$LINENO"; then :
 
9185
  ac_cv_sys_large_files=1; break
 
9186
fi
 
9187
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9188
  ac_cv_sys_large_files=unknown
 
9189
  break
 
9190
done
 
9191
fi
 
9192
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
 
9193
$as_echo "$ac_cv_sys_large_files" >&6; }
 
9194
case $ac_cv_sys_large_files in #(
 
9195
  no | unknown) ;;
 
9196
  *) 
 
9197
cat >>confdefs.h <<_ACEOF
 
9198
@%:@define _LARGE_FILES $ac_cv_sys_large_files
 
9199
_ACEOF
 
9200
;;
 
9201
esac
 
9202
rm -rf conftest*
 
9203
  fi
 
9204
fi
 
9205
 
 
9206
 
 
9207
# Identify characteristics of the host architecture.
 
9208
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
 
9209
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
 
9210
if test "${ac_cv_c_bigendian+set}" = set; then :
 
9211
  $as_echo_n "(cached) " >&6
 
9212
else
 
9213
  ac_cv_c_bigendian=unknown
 
9214
    # See if we're dealing with a universal compiler.
 
9215
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9216
/* end confdefs.h.  */
 
9217
#ifndef __APPLE_CC__
 
9218
               not a universal capable compiler
 
9219
             #endif
 
9220
             typedef int dummy;
 
9221
            
 
9222
_ACEOF
 
9223
if ac_fn_c_try_compile "$LINENO"; then :
 
9224
  
 
9225
        # Check for potential -arch flags.  It is not universal unless
 
9226
        # there are at least two -arch flags with different values.
 
9227
        ac_arch=
 
9228
        ac_prev=
 
9229
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
 
9230
         if test -n "$ac_prev"; then
 
9231
           case $ac_word in
 
9232
             i?86 | x86_64 | ppc | ppc64)
 
9233
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
 
9234
                 ac_arch=$ac_word
 
9235
               else
 
9236
                 ac_cv_c_bigendian=universal
 
9237
                 break
 
9238
               fi
 
9239
               ;;
 
9240
           esac
 
9241
           ac_prev=
 
9242
         elif test "x$ac_word" = "x-arch"; then
 
9243
           ac_prev=arch
 
9244
         fi
 
9245
       done
 
9246
fi
 
9247
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9248
    if test $ac_cv_c_bigendian = unknown; then
 
9249
      # See if sys/param.h defines the BYTE_ORDER macro.
 
9250
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9251
/* end confdefs.h.  */
 
9252
#include <sys/types.h>
 
9253
             #include <sys/param.h>
 
9254
           
 
9255
int
 
9256
main (void)
 
9257
{
 
9258
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
 
9259
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
 
9260
                     && LITTLE_ENDIAN)
 
9261
              bogus endian macros
 
9262
             #endif
 
9263
           
 
9264
  ;
 
9265
  return 0;
 
9266
}
 
9267
_ACEOF
 
9268
if ac_fn_c_try_compile "$LINENO"; then :
 
9269
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
9270
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9271
/* end confdefs.h.  */
 
9272
#include <sys/types.h>
 
9273
                #include <sys/param.h>
 
9274
              
 
9275
int
 
9276
main (void)
 
9277
{
 
9278
#if BYTE_ORDER != BIG_ENDIAN
 
9279
                 not big endian
 
9280
                #endif
 
9281
              
 
9282
  ;
 
9283
  return 0;
 
9284
}
 
9285
_ACEOF
 
9286
if ac_fn_c_try_compile "$LINENO"; then :
 
9287
  ac_cv_c_bigendian=yes
 
9288
else
 
9289
  ac_cv_c_bigendian=no
 
9290
fi
 
9291
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9292
fi
 
9293
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9294
    fi
 
9295
    if test $ac_cv_c_bigendian = unknown; then
 
9296
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
 
9297
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9298
/* end confdefs.h.  */
 
9299
#include <limits.h>
 
9300
           
 
9301
int
 
9302
main (void)
 
9303
{
 
9304
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
 
9305
              bogus endian macros
 
9306
             #endif
 
9307
           
 
9308
  ;
 
9309
  return 0;
 
9310
}
 
9311
_ACEOF
 
9312
if ac_fn_c_try_compile "$LINENO"; then :
 
9313
  # It does; now see whether it defined to _BIG_ENDIAN or not.
 
9314
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9315
/* end confdefs.h.  */
 
9316
#include <limits.h>
 
9317
              
 
9318
int
 
9319
main (void)
 
9320
{
 
9321
#ifndef _BIG_ENDIAN
 
9322
                 not big endian
 
9323
                #endif
 
9324
              
 
9325
  ;
 
9326
  return 0;
 
9327
}
 
9328
_ACEOF
 
9329
if ac_fn_c_try_compile "$LINENO"; then :
 
9330
  ac_cv_c_bigendian=yes
 
9331
else
 
9332
  ac_cv_c_bigendian=no
 
9333
fi
 
9334
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9335
fi
 
9336
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9337
    fi
 
9338
    if test $ac_cv_c_bigendian = unknown; then
 
9339
      # Compile a test program.
 
9340
      if test "$cross_compiling" = yes; then :
 
9341
  # Try to guess by grepping values from an object file.
 
9342
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9343
/* end confdefs.h.  */
 
9344
short int ascii_mm[] =
 
9345
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
9346
                short int ascii_ii[] =
 
9347
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
9348
                int use_ascii (int i) {
 
9349
                  return ascii_mm[i] + ascii_ii[i];
 
9350
                }
 
9351
                short int ebcdic_ii[] =
 
9352
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
9353
                short int ebcdic_mm[] =
 
9354
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
9355
                int use_ebcdic (int i) {
 
9356
                  return ebcdic_mm[i] + ebcdic_ii[i];
 
9357
                }
 
9358
                extern int foo;
 
9359
              
 
9360
int
 
9361
main (void)
 
9362
{
 
9363
return use_ascii (foo) == use_ebcdic (foo);
 
9364
  ;
 
9365
  return 0;
 
9366
}
 
9367
_ACEOF
 
9368
if ac_fn_c_try_compile "$LINENO"; then :
 
9369
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
 
9370
              ac_cv_c_bigendian=yes
 
9371
            fi
 
9372
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
9373
              if test "$ac_cv_c_bigendian" = unknown; then
 
9374
                ac_cv_c_bigendian=no
 
9375
              else
 
9376
                # finding both strings is unlikely to happen, but who knows?
 
9377
                ac_cv_c_bigendian=unknown
 
9378
              fi
 
9379
            fi
 
9380
fi
 
9381
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9382
else
 
9383
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9384
/* end confdefs.h.  */
 
9385
$ac_includes_default
 
9386
int
 
9387
main (void)
 
9388
{
 
9389
 
 
9390
             /* Are we little or big endian?  From Harbison&Steele.  */
 
9391
             union
 
9392
             {
 
9393
               long int l;
 
9394
               char c[sizeof (long int)];
 
9395
             } u;
 
9396
             u.l = 1;
 
9397
             return u.c[sizeof (long int) - 1] == 1;
 
9398
           
 
9399
  ;
 
9400
  return 0;
 
9401
}
 
9402
_ACEOF
 
9403
if ac_fn_c_try_run "$LINENO"; then :
 
9404
  ac_cv_c_bigendian=no
 
9405
else
 
9406
  ac_cv_c_bigendian=yes
 
9407
fi
 
9408
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
9409
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
9410
fi
 
9411
 
 
9412
    fi
 
9413
fi
 
9414
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
 
9415
$as_echo "$ac_cv_c_bigendian" >&6; }
 
9416
 case $ac_cv_c_bigendian in #(
 
9417
   yes)
 
9418
     $as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h
 
9419
;; #(
 
9420
   no)
 
9421
      ;; #(
 
9422
   universal)
 
9423
        
 
9424
$as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
 
9425
 
 
9426
     ;; #(
 
9427
   *)
 
9428
     as_fn_error $? "unknown endianness
 
9429
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
 
9430
 esac
 
9431
 
 
9432
# The cast to long int works around a bug in the HP C Compiler
 
9433
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
9434
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
9435
# This bug is HP SR number 8606223364.
 
9436
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
 
9437
$as_echo_n "checking size of void *... " >&6; }
 
9438
if test "${ac_cv_sizeof_void_p+set}" = set; then :
 
9439
  $as_echo_n "(cached) " >&6
 
9440
else
 
9441
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
 
9442
  
 
9443
else
 
9444
  if test "$ac_cv_type_void_p" = yes; then
 
9445
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
9446
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
9447
as_fn_error 77 "cannot compute sizeof (void *)
 
9448
See \`config.log' for more details" "$LINENO" 5 ; }
 
9449
   else
 
9450
     ac_cv_sizeof_void_p=0
 
9451
   fi
 
9452
fi
 
9453
 
 
9454
fi
 
9455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
 
9456
$as_echo "$ac_cv_sizeof_void_p" >&6; }
 
9457
 
 
9458
 
 
9459
 
 
9460
cat >>confdefs.h <<_ACEOF
 
9461
@%:@define SIZEOF_VOID_P $ac_cv_sizeof_void_p
 
9462
_ACEOF
 
9463
 
 
9464
 
 
9465
# The cast to long int works around a bug in the HP C Compiler
 
9466
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
9467
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
9468
# This bug is HP SR number 8606223364.
 
9469
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
 
9470
$as_echo_n "checking size of long... " >&6; }
 
9471
if test "${ac_cv_sizeof_long+set}" = set; then :
 
9472
  $as_echo_n "(cached) " >&6
 
9473
else
 
9474
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
 
9475
  
 
9476
else
 
9477
  if test "$ac_cv_type_long" = yes; then
 
9478
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
9479
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
9480
as_fn_error 77 "cannot compute sizeof (long)
 
9481
See \`config.log' for more details" "$LINENO" 5 ; }
 
9482
   else
 
9483
     ac_cv_sizeof_long=0
 
9484
   fi
 
9485
fi
 
9486
 
 
9487
fi
 
9488
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
 
9489
$as_echo "$ac_cv_sizeof_long" >&6; }
 
9490
 
 
9491
 
 
9492
 
 
9493
cat >>confdefs.h <<_ACEOF
 
9494
@%:@define SIZEOF_LONG $ac_cv_sizeof_long
 
9495
_ACEOF
 
9496
 
 
9497
 
 
9498
 
 
9499
 
 
9500
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler is apple cc" >&5
 
9501
$as_echo_n "checking whether our compiler is apple cc... " >&6; }
 
9502
if test "${grub_cv_apple_cc+set}" = set; then :
 
9503
  $as_echo_n "(cached) " >&6
 
9504
else
 
9505
  if $CC -v 2>&1 | grep "Apple Inc." > /dev/null; then
 
9506
  grub_cv_apple_cc=yes
 
9507
else
 
9508
  grub_cv_apple_cc=no
 
9509
fi
 
9510
 
 
9511
fi
 
9512
 
 
9513
 
 
9514
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_apple_cc" >&5
 
9515
$as_echo "$grub_cv_apple_cc" >&6; }
 
9516
if test x$grub_cv_apple_cc = xyes ; then
 
9517
  HOST_CPPFLAGS="$HOST_CPPFLAGS -DAPPLE_CC=1"
 
9518
  HOST_CFLAGS="$HOST_CFLAGS -fnested-functions"
 
9519
fi
 
9520
 
 
9521
if test "x$cross_compiling" = xyes; then
 
9522
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot generate manual pages while cross compiling" >&5
 
9523
$as_echo "$as_me: WARNING: cannot generate manual pages while cross compiling" >&2;}
 
9524
else
 
9525
  # Extract the first word of "help2man", so it can be a program name with args.
 
9526
set dummy help2man; ac_word=$2
 
9527
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
9528
$as_echo_n "checking for $ac_word... " >&6; }
 
9529
if test "${ac_cv_path_HELP2MAN+set}" = set; then :
 
9530
  $as_echo_n "(cached) " >&6
 
9531
else
 
9532
  case $HELP2MAN in
 
9533
  [\\/]* | ?:[\\/]*)
 
9534
  ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
 
9535
  ;;
 
9536
  *)
 
9537
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9538
for as_dir in $PATH
 
9539
do
 
9540
  IFS=$as_save_IFS
 
9541
  test -z "$as_dir" && as_dir=.
 
9542
    for ac_exec_ext in '' $ac_executable_extensions; do
 
9543
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
9544
    ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
 
9545
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9546
    break 2
 
9547
  fi
 
9548
done
 
9549
  done
 
9550
IFS=$as_save_IFS
 
9551
 
 
9552
  ;;
 
9553
esac
 
9554
fi
 
9555
HELP2MAN=$ac_cv_path_HELP2MAN
 
9556
if test -n "$HELP2MAN"; then
 
9557
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
 
9558
$as_echo "$HELP2MAN" >&6; }
 
9559
else
 
9560
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
9561
$as_echo "no" >&6; }
 
9562
fi
 
9563
 
 
9564
 
 
9565
fi
 
9566
 
 
9567
# Check for functions and headers.
 
9568
for ac_func in posix_memalign memalign asprintf vasprintf getextmntent
 
9569
do :
 
9570
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9571
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
9572
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
9573
  cat >>confdefs.h <<_ACEOF
 
9574
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
9575
_ACEOF
 
9576
 
 
9577
fi
 
9578
done
 
9579
 
 
9580
for ac_header in libzfs.h libnvpair.h sys/param.h sys/mount.h sys/mnttab.h sys/mkdev.h
 
9581
do :
 
9582
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9583
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
9584
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
9585
  cat >>confdefs.h <<_ACEOF
 
9586
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9587
_ACEOF
 
9588
 
 
9589
fi
 
9590
 
 
9591
done
 
9592
 
 
9593
 
 
9594
ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "$ac_includes_default
 
9595
#include <sys/param.h>
 
9596
#include <sys/mount.h>
 
9597
"
 
9598
if test "x$ac_cv_member_struct_statfs_f_fstypename" = x""yes; then :
 
9599
  
 
9600
cat >>confdefs.h <<_ACEOF
 
9601
@%:@define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
 
9602
_ACEOF
 
9603
 
 
9604
 
 
9605
fi
 
9606
 
 
9607
 
 
9608
ac_fn_c_check_member "$LINENO" "struct statfs" "f_mntfromname" "ac_cv_member_struct_statfs_f_mntfromname" "$ac_includes_default
 
9609
#include <sys/param.h>
 
9610
#include <sys/mount.h>
 
9611
"
 
9612
if test "x$ac_cv_member_struct_statfs_f_mntfromname" = x""yes; then :
 
9613
  
 
9614
cat >>confdefs.h <<_ACEOF
 
9615
@%:@define HAVE_STRUCT_STATFS_F_MNTFROMNAME 1
 
9616
_ACEOF
 
9617
 
 
9618
 
 
9619
fi
 
9620
 
 
9621
 
 
9622
# For opendisk() and getrawpartition() on NetBSD.
 
9623
# Used in util/deviceiter.c and in util/hostdisk.c.
 
9624
ac_fn_c_check_header_mongrel "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default"
 
9625
if test "x$ac_cv_header_util_h" = x""yes; then :
 
9626
  
 
9627
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opendisk in -lutil" >&5
 
9628
$as_echo_n "checking for opendisk in -lutil... " >&6; }
 
9629
if test "${ac_cv_lib_util_opendisk+set}" = set; then :
 
9630
  $as_echo_n "(cached) " >&6
 
9631
else
 
9632
  ac_check_lib_save_LIBS=$LIBS
 
9633
LIBS="-lutil  $LIBS"
 
9634
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9635
/* end confdefs.h.  */
 
9636
 
 
9637
/* Override any GCC internal prototype to avoid an error.
 
9638
   Use char because int might match the return type of a GCC
 
9639
   builtin and then its argument prototype would still apply.  */
 
9640
#ifdef __cplusplus
 
9641
extern "C"
 
9642
#endif
 
9643
char opendisk ();
 
9644
int
 
9645
main (void)
 
9646
{
 
9647
return opendisk ();
 
9648
  ;
 
9649
  return 0;
 
9650
}
 
9651
_ACEOF
 
9652
if ac_fn_c_try_link "$LINENO"; then :
 
9653
  ac_cv_lib_util_opendisk=yes
 
9654
else
 
9655
  ac_cv_lib_util_opendisk=no
 
9656
fi
 
9657
rm -f core conftest.err conftest.$ac_objext \
 
9658
    conftest$ac_exeext conftest.$ac_ext
 
9659
LIBS=$ac_check_lib_save_LIBS
 
9660
fi
 
9661
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_opendisk" >&5
 
9662
$as_echo "$ac_cv_lib_util_opendisk" >&6; }
 
9663
if test "x$ac_cv_lib_util_opendisk" = x""yes; then :
 
9664
  
 
9665
    LIBUTIL="-lutil"
 
9666
    
 
9667
$as_echo "@%:@define HAVE_OPENDISK 1" >>confdefs.h
 
9668
 
 
9669
  
 
9670
fi
 
9671
 
 
9672
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getrawpartition in -lutil" >&5
 
9673
$as_echo_n "checking for getrawpartition in -lutil... " >&6; }
 
9674
if test "${ac_cv_lib_util_getrawpartition+set}" = set; then :
 
9675
  $as_echo_n "(cached) " >&6
 
9676
else
 
9677
  ac_check_lib_save_LIBS=$LIBS
 
9678
LIBS="-lutil  $LIBS"
 
9679
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9680
/* end confdefs.h.  */
 
9681
 
 
9682
/* Override any GCC internal prototype to avoid an error.
 
9683
   Use char because int might match the return type of a GCC
 
9684
   builtin and then its argument prototype would still apply.  */
 
9685
#ifdef __cplusplus
 
9686
extern "C"
 
9687
#endif
 
9688
char getrawpartition ();
 
9689
int
 
9690
main (void)
 
9691
{
 
9692
return getrawpartition ();
 
9693
  ;
 
9694
  return 0;
 
9695
}
 
9696
_ACEOF
 
9697
if ac_fn_c_try_link "$LINENO"; then :
 
9698
  ac_cv_lib_util_getrawpartition=yes
 
9699
else
 
9700
  ac_cv_lib_util_getrawpartition=no
 
9701
fi
 
9702
rm -f core conftest.err conftest.$ac_objext \
 
9703
    conftest$ac_exeext conftest.$ac_ext
 
9704
LIBS=$ac_check_lib_save_LIBS
 
9705
fi
 
9706
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getrawpartition" >&5
 
9707
$as_echo "$ac_cv_lib_util_getrawpartition" >&6; }
 
9708
if test "x$ac_cv_lib_util_getrawpartition" = x""yes; then :
 
9709
  
 
9710
    LIBUTIL="-lutil"
 
9711
    
 
9712
$as_echo "@%:@define HAVE_GETRAWPARTITION 1" >>confdefs.h
 
9713
 
 
9714
  
 
9715
fi
 
9716
 
 
9717
 
 
9718
fi
 
9719
 
 
9720
 
 
9721
 
 
9722
 
 
9723
#
 
9724
# Check for host and build compilers.
 
9725
#
 
9726
HOST_CC=$CC
 
9727
for ac_prog in gcc egcs cc
 
9728
do
 
9729
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
9730
set dummy $ac_prog; ac_word=$2
 
9731
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
9732
$as_echo_n "checking for $ac_word... " >&6; }
 
9733
if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
 
9734
  $as_echo_n "(cached) " >&6
 
9735
else
 
9736
  if test -n "$BUILD_CC"; then
 
9737
  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
 
9738
else
 
9739
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9740
for as_dir in $PATH
 
9741
do
 
9742
  IFS=$as_save_IFS
 
9743
  test -z "$as_dir" && as_dir=.
 
9744
    for ac_exec_ext in '' $ac_executable_extensions; do
 
9745
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
9746
    ac_cv_prog_BUILD_CC="$ac_prog"
 
9747
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9748
    break 2
 
9749
  fi
 
9750
done
 
9751
  done
 
9752
IFS=$as_save_IFS
 
9753
 
 
9754
fi
 
9755
fi
 
9756
BUILD_CC=$ac_cv_prog_BUILD_CC
 
9757
if test -n "$BUILD_CC"; then
 
9758
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
 
9759
$as_echo "$BUILD_CC" >&6; }
 
9760
else
 
9761
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
9762
$as_echo "no" >&6; }
 
9763
fi
 
9764
 
 
9765
 
 
9766
  test -n "$BUILD_CC" && break
 
9767
done
 
9768
test -n "$BUILD_CC" || BUILD_CC="as_fn_error $? "none of gcc, egcs and cc is found. set BUILD_CC manually." "$LINENO" 5 "
 
9769
 
 
9770
 
 
9771
# For gnulib.
 
9772
 
 
9773
 
 
9774
  
 
9775
  
 
9776
          LIBC_FATAL_STDERR_=1
 
9777
  export LIBC_FATAL_STDERR_
 
9778
 
 
9779
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 
9780
# for constant arguments.  Useless!
 
9781
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
 
9782
$as_echo_n "checking for working alloca.h... " >&6; }
 
9783
if test "${ac_cv_working_alloca_h+set}" = set; then :
 
9784
  $as_echo_n "(cached) " >&6
 
9785
else
 
9786
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9787
/* end confdefs.h.  */
 
9788
@%:@include <alloca.h>
 
9789
int
 
9790
main (void)
 
9791
{
 
9792
char *p = (char *) alloca (2 * sizeof (int));
 
9793
                          if (p) return 0;
 
9794
  ;
 
9795
  return 0;
 
9796
}
 
9797
_ACEOF
 
9798
if ac_fn_c_try_link "$LINENO"; then :
 
9799
  ac_cv_working_alloca_h=yes
 
9800
else
 
9801
  ac_cv_working_alloca_h=no
 
9802
fi
 
9803
rm -f core conftest.err conftest.$ac_objext \
 
9804
    conftest$ac_exeext conftest.$ac_ext
 
9805
fi
 
9806
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
 
9807
$as_echo "$ac_cv_working_alloca_h" >&6; }
 
9808
if test $ac_cv_working_alloca_h = yes; then
 
9809
  
 
9810
$as_echo "@%:@define HAVE_ALLOCA_H 1" >>confdefs.h
 
9811
 
 
9812
fi
 
9813
 
 
9814
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
 
9815
$as_echo_n "checking for alloca... " >&6; }
 
9816
if test "${ac_cv_func_alloca_works+set}" = set; then :
 
9817
  $as_echo_n "(cached) " >&6
 
9818
else
 
9819
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9820
/* end confdefs.h.  */
 
9821
#ifdef __GNUC__
 
9822
# define alloca __builtin_alloca
 
9823
#else
 
9824
# ifdef _MSC_VER
 
9825
#  include <malloc.h>
 
9826
#  define alloca _alloca
 
9827
# else
 
9828
#  ifdef HAVE_ALLOCA_H
 
9829
#   include <alloca.h>
 
9830
#  else
 
9831
#   ifdef _AIX
 
9832
 #pragma alloca
 
9833
#   else
 
9834
#    ifndef alloca /* predefined by HP cc +Olibcalls */
 
9835
char *alloca ();
 
9836
#    endif
 
9837
#   endif
 
9838
#  endif
 
9839
# endif
 
9840
#endif
 
9841
 
 
9842
int
 
9843
main (void)
 
9844
{
 
9845
char *p = (char *) alloca (1);
 
9846
                                    if (p) return 0;
 
9847
  ;
 
9848
  return 0;
 
9849
}
 
9850
_ACEOF
 
9851
if ac_fn_c_try_link "$LINENO"; then :
 
9852
  ac_cv_func_alloca_works=yes
 
9853
else
 
9854
  ac_cv_func_alloca_works=no
 
9855
fi
 
9856
rm -f core conftest.err conftest.$ac_objext \
 
9857
    conftest$ac_exeext conftest.$ac_ext
 
9858
fi
 
9859
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
 
9860
$as_echo "$ac_cv_func_alloca_works" >&6; }
 
9861
 
 
9862
if test $ac_cv_func_alloca_works = yes; then
 
9863
  
 
9864
$as_echo "@%:@define HAVE_ALLOCA 1" >>confdefs.h
 
9865
 
 
9866
else
 
9867
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
 
9868
# that cause trouble.  Some versions do not even contain alloca or
 
9869
# contain a buggy version.  If you still want to use their alloca,
 
9870
# use ar to extract alloca.o from them instead of compiling alloca.c.
 
9871
 
 
9872
  
 
9873
    
 
9874
  
 
9875
 
 
9876
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
 
9877
 
 
9878
$as_echo "@%:@define C_ALLOCA 1" >>confdefs.h
 
9879
 
 
9880
 
 
9881
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
 
9882
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
 
9883
if test "${ac_cv_os_cray+set}" = set; then :
 
9884
  $as_echo_n "(cached) " >&6
 
9885
else
 
9886
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9887
/* end confdefs.h.  */
 
9888
#if defined CRAY && ! defined CRAY2
 
9889
webecray
 
9890
#else
 
9891
wenotbecray
 
9892
#endif
 
9893
 
 
9894
_ACEOF
 
9895
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
9896
  $EGREP "webecray" >/dev/null 2>&1; then :
 
9897
  ac_cv_os_cray=yes
 
9898
else
 
9899
  ac_cv_os_cray=no
 
9900
fi
 
9901
rm -f conftest*
 
9902
 
 
9903
fi
 
9904
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
 
9905
$as_echo "$ac_cv_os_cray" >&6; }
 
9906
if test $ac_cv_os_cray = yes; then
 
9907
  for ac_func in _getb67 GETB67 getb67; do
 
9908
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9909
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
9910
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
9911
  
 
9912
cat >>confdefs.h <<_ACEOF
 
9913
@%:@define CRAY_STACKSEG_END $ac_func
 
9914
_ACEOF
 
9915
 
 
9916
    break
 
9917
fi
 
9918
 
 
9919
  done
 
9920
fi
 
9921
 
 
9922
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
 
9923
$as_echo_n "checking stack direction for C alloca... " >&6; }
 
9924
if test "${ac_cv_c_stack_direction+set}" = set; then :
 
9925
  $as_echo_n "(cached) " >&6
 
9926
else
 
9927
  if test "$cross_compiling" = yes; then :
 
9928
  ac_cv_c_stack_direction=0
 
9929
else
 
9930
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9931
/* end confdefs.h.  */
 
9932
$ac_includes_default
 
9933
int
 
9934
find_stack_direction ()
 
9935
{
 
9936
  static char *addr = 0;
 
9937
  auto char dummy;
 
9938
  if (addr == 0)
 
9939
    {
 
9940
      addr = &dummy;
 
9941
      return find_stack_direction ();
 
9942
    }
 
9943
  else
 
9944
    return (&dummy > addr) ? 1 : -1;
 
9945
}
 
9946
 
 
9947
int
 
9948
main ()
 
9949
{
 
9950
  return find_stack_direction () < 0;
 
9951
}
 
9952
_ACEOF
 
9953
if ac_fn_c_try_run "$LINENO"; then :
 
9954
  ac_cv_c_stack_direction=1
 
9955
else
 
9956
  ac_cv_c_stack_direction=-1
 
9957
fi
 
9958
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
9959
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
9960
fi
 
9961
 
 
9962
fi
 
9963
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
 
9964
$as_echo "$ac_cv_c_stack_direction" >&6; }
 
9965
cat >>confdefs.h <<_ACEOF
 
9966
@%:@define STACK_DIRECTION $ac_cv_c_stack_direction
 
9967
_ACEOF
 
9968
 
 
9969
 
 
9970
fi
 
9971
 
 
9972
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
 
9973
$as_echo_n "checking for inline... " >&6; }
 
9974
if test "${ac_cv_c_inline+set}" = set; then :
 
9975
  $as_echo_n "(cached) " >&6
 
9976
else
 
9977
  ac_cv_c_inline=no
 
9978
for ac_kw in inline __inline__ __inline; do
 
9979
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9980
/* end confdefs.h.  */
 
9981
#ifndef __cplusplus
 
9982
typedef int foo_t;
 
9983
static $ac_kw foo_t static_foo () {return 0; }
 
9984
$ac_kw foo_t foo () {return 0; }
 
9985
#endif
 
9986
 
 
9987
_ACEOF
 
9988
if ac_fn_c_try_compile "$LINENO"; then :
 
9989
  ac_cv_c_inline=$ac_kw
 
9990
fi
 
9991
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9992
  test "$ac_cv_c_inline" != no && break
 
9993
done
 
9994
 
 
9995
fi
 
9996
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
 
9997
$as_echo "$ac_cv_c_inline" >&6; }
 
9998
 
 
9999
case $ac_cv_c_inline in
 
10000
  inline | yes) ;;
 
10001
  *)
 
10002
    case $ac_cv_c_inline in
 
10003
      no) ac_val=;;
 
10004
      *) ac_val=$ac_cv_c_inline;;
 
10005
    esac
 
10006
    cat >>confdefs.h <<_ACEOF
 
10007
#ifndef __cplusplus
 
10008
#define inline $ac_val
 
10009
#endif
 
10010
_ACEOF
 
10011
    ;;
 
10012
esac
 
10013
 
 
10014
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
 
10015
$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
 
10016
if test "${ac_cv_c_restrict+set}" = set; then :
 
10017
  $as_echo_n "(cached) " >&6
 
10018
else
 
10019
  ac_cv_c_restrict=no
 
10020
   # The order here caters to the fact that C++ does not require restrict.
 
10021
   for ac_kw in __restrict __restrict__ _Restrict restrict; do
 
10022
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10023
/* end confdefs.h.  */
 
10024
typedef int * int_ptr;
 
10025
        int foo (int_ptr $ac_kw ip) {
 
10026
        return ip[0];
 
10027
       }
 
10028
int
 
10029
main (void)
 
10030
{
 
10031
int s[1];
 
10032
        int * $ac_kw t = s;
 
10033
        t[0] = 0;
 
10034
        return foo(t)
 
10035
  ;
 
10036
  return 0;
 
10037
}
 
10038
_ACEOF
 
10039
if ac_fn_c_try_compile "$LINENO"; then :
 
10040
  ac_cv_c_restrict=$ac_kw
 
10041
fi
 
10042
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10043
     test "$ac_cv_c_restrict" != no && break
 
10044
   done
 
10045
  
 
10046
fi
 
10047
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
 
10048
$as_echo "$ac_cv_c_restrict" >&6; }
 
10049
 
 
10050
 case $ac_cv_c_restrict in
 
10051
   restrict) ;;
 
10052
   no) $as_echo "@%:@define restrict /**/" >>confdefs.h
 
10053
 ;;
 
10054
   *)  cat >>confdefs.h <<_ACEOF
 
10055
@%:@define restrict $ac_cv_c_restrict
 
10056
_ACEOF
 
10057
 ;;
 
10058
 esac
 
10059
 
 
10060
ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
 
10061
if test "x$ac_cv_have_decl_getenv" = x""yes; then :
 
10062
  ac_have_decl=1
 
10063
else
 
10064
  ac_have_decl=0
 
10065
fi
 
10066
 
 
10067
cat >>confdefs.h <<_ACEOF
 
10068
@%:@define HAVE_DECL_GETENV $ac_have_decl
 
10069
_ACEOF
 
10070
 
 
10071
ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
 
10072
if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then :
 
10073
  ac_have_decl=1
 
10074
else
 
10075
  ac_have_decl=0
 
10076
fi
 
10077
 
 
10078
cat >>confdefs.h <<_ACEOF
 
10079
@%:@define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
 
10080
_ACEOF
 
10081
 
 
10082
ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
 
10083
if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then :
 
10084
  ac_have_decl=1
 
10085
else
 
10086
  ac_have_decl=0
 
10087
fi
 
10088
 
 
10089
cat >>confdefs.h <<_ACEOF
 
10090
@%:@define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
 
10091
_ACEOF
 
10092
 
 
10093
ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
 
10094
if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then :
 
10095
  ac_have_decl=1
 
10096
else
 
10097
  ac_have_decl=0
 
10098
fi
 
10099
 
 
10100
cat >>confdefs.h <<_ACEOF
 
10101
@%:@define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
 
10102
_ACEOF
 
10103
 
 
10104
ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
 
10105
if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then :
 
10106
  ac_have_decl=1
 
10107
else
 
10108
  ac_have_decl=0
 
10109
fi
 
10110
 
 
10111
cat >>confdefs.h <<_ACEOF
 
10112
@%:@define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
 
10113
_ACEOF
 
10114
 
 
10115
ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
 
10116
if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then :
 
10117
  ac_have_decl=1
 
10118
else
 
10119
  ac_have_decl=0
 
10120
fi
 
10121
 
 
10122
cat >>confdefs.h <<_ACEOF
 
10123
@%:@define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
 
10124
_ACEOF
 
10125
 
 
10126
ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
 
10127
if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then :
 
10128
  ac_have_decl=1
 
10129
else
 
10130
  ac_have_decl=0
 
10131
fi
 
10132
 
 
10133
cat >>confdefs.h <<_ACEOF
 
10134
@%:@define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
 
10135
_ACEOF
 
10136
 
 
10137
ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
 
10138
if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then :
 
10139
  ac_have_decl=1
 
10140
else
 
10141
  ac_have_decl=0
 
10142
fi
 
10143
 
 
10144
cat >>confdefs.h <<_ACEOF
 
10145
@%:@define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
 
10146
_ACEOF
 
10147
 
 
10148
ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
 
10149
if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then :
 
10150
  ac_have_decl=1
 
10151
else
 
10152
  ac_have_decl=0
 
10153
fi
 
10154
 
 
10155
cat >>confdefs.h <<_ACEOF
 
10156
@%:@define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
 
10157
_ACEOF
 
10158
 
 
10159
ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
 
10160
if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then :
 
10161
  ac_have_decl=1
 
10162
else
 
10163
  ac_have_decl=0
 
10164
fi
 
10165
 
 
10166
cat >>confdefs.h <<_ACEOF
 
10167
@%:@define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
 
10168
_ACEOF
 
10169
 
 
10170
ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
 
10171
if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
 
10172
  ac_have_decl=1
 
10173
else
 
10174
  ac_have_decl=0
 
10175
fi
 
10176
 
 
10177
cat >>confdefs.h <<_ACEOF
 
10178
@%:@define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
 
10179
_ACEOF
 
10180
 
 
10181
ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
 
10182
if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then :
 
10183
  ac_have_decl=1
 
10184
else
 
10185
  ac_have_decl=0
 
10186
fi
 
10187
 
 
10188
cat >>confdefs.h <<_ACEOF
 
10189
@%:@define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
 
10190
_ACEOF
 
10191
 
 
10192
ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
 
10193
if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then :
 
10194
  ac_have_decl=1
 
10195
else
 
10196
  ac_have_decl=0
 
10197
fi
 
10198
 
 
10199
cat >>confdefs.h <<_ACEOF
 
10200
@%:@define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
 
10201
_ACEOF
 
10202
 
 
10203
ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
 
10204
if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then :
 
10205
  ac_have_decl=1
 
10206
else
 
10207
  ac_have_decl=0
 
10208
fi
 
10209
 
 
10210
cat >>confdefs.h <<_ACEOF
 
10211
@%:@define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
 
10212
_ACEOF
 
10213
 
 
10214
 
 
10215
 
 
10216
  
 
10217
  for ac_func in $ac_func_list
 
10218
do :
 
10219
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
10220
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
10221
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
10222
  cat >>confdefs.h <<_ACEOF
 
10223
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
10224
_ACEOF
 
10225
 
 
10226
fi
 
10227
done
 
10228
 
 
10229
  
 
10230
 
 
10231
 
 
10232
 
 
10233
 
 
10234
 
 
10235
  
 
10236
  for ac_header in $ac_header_list
 
10237
do :
 
10238
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
10239
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
10240
"
 
10241
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
10242
  cat >>confdefs.h <<_ACEOF
 
10243
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
10244
_ACEOF
 
10245
 
 
10246
fi
 
10247
 
 
10248
done
 
10249
 
 
10250
  
 
10251
 
 
10252
 
 
10253
 
 
10254
 
 
10255
  XGETTEXT_EXTRA_OPTIONS=
 
10256
 
 
10257
 
 
10258
  GNULIB_BTOWC=0;      
 
10259
  GNULIB_WCTOB=0;      
 
10260
  GNULIB_MBSINIT=0;    
 
10261
  GNULIB_MBRTOWC=0;    
 
10262
  GNULIB_MBRLEN=0;     
 
10263
  GNULIB_MBSRTOWCS=0;  
 
10264
  GNULIB_MBSNRTOWCS=0; 
 
10265
  GNULIB_WCRTOMB=0;    
 
10266
  GNULIB_WCSRTOMBS=0;  
 
10267
  GNULIB_WCSNRTOMBS=0; 
 
10268
  GNULIB_WCWIDTH=0;    
 
10269
    HAVE_BTOWC=1;         
 
10270
  HAVE_MBSINIT=1;       
 
10271
  HAVE_MBRTOWC=1;       
 
10272
  HAVE_MBRLEN=1;        
 
10273
  HAVE_MBSRTOWCS=1;     
 
10274
  HAVE_MBSNRTOWCS=1;    
 
10275
  HAVE_WCRTOMB=1;       
 
10276
  HAVE_WCSRTOMBS=1;     
 
10277
  HAVE_WCSNRTOMBS=1;    
 
10278
  HAVE_DECL_WCTOB=1;    
 
10279
  HAVE_DECL_WCWIDTH=1;  
 
10280
  REPLACE_MBSTATE_T=0;  
 
10281
  REPLACE_BTOWC=0;      
 
10282
  REPLACE_WCTOB=0;      
 
10283
  REPLACE_MBSINIT=0;    
 
10284
  REPLACE_MBRTOWC=0;    
 
10285
  REPLACE_MBRLEN=0;     
 
10286
  REPLACE_MBSRTOWCS=0;  
 
10287
  REPLACE_MBSNRTOWCS=0; 
 
10288
  REPLACE_WCRTOMB=0;    
 
10289
  REPLACE_WCSRTOMBS=0;  
 
10290
  REPLACE_WCSNRTOMBS=0; 
 
10291
  REPLACE_WCWIDTH=0;    
 
10292
 
 
10293
 
 
10294
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
 
10295
$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
 
10296
if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
 
10297
  $as_echo_n "(cached) " >&6
 
10298
else
 
10299
  gl_cv_header_wchar_h_correct_inline=yes
 
10300
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10301
/* end confdefs.h.  */
 
10302
 
 
10303
       #define wcstod renamed_wcstod
 
10304
#include <wchar.h>
 
10305
extern int zero (void);
 
10306
int main () { return zero(); }
 
10307
 
 
10308
_ACEOF
 
10309
     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
10310
  (eval $ac_compile) 2>&5
 
10311
  ac_status=$?
 
10312
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10313
  test $ac_status = 0; }; then
 
10314
       mv conftest.$ac_objext conftest1.$ac_objext
 
10315
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10316
/* end confdefs.h.  */
 
10317
 
 
10318
         #define wcstod renamed_wcstod
 
10319
#include <wchar.h>
 
10320
int zero (void) { return 0; }
 
10321
 
 
10322
_ACEOF
 
10323
       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
10324
  (eval $ac_compile) 2>&5
 
10325
  ac_status=$?
 
10326
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10327
  test $ac_status = 0; }; then
 
10328
         mv conftest.$ac_objext conftest2.$ac_objext
 
10329
         if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
 
10330
           :
 
10331
         else
 
10332
           gl_cv_header_wchar_h_correct_inline=no
 
10333
         fi
 
10334
       fi
 
10335
     fi
 
10336
     rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
 
10337
    
 
10338
fi
 
10339
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
 
10340
$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
 
10341
  if test $gl_cv_header_wchar_h_correct_inline = no; then
 
10342
    as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
 
10343
This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
 
10344
C99 mode. You have four options:
 
10345
  - Add the flag -fgnu89-inline to CC and reconfigure, or
 
10346
  - Fix your include files, using parts of
 
10347
    <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
 
10348
  - Use a gcc version older than 4.3, or
 
10349
  - Don't use the flags -std=c99 or -std=gnu99.
 
10350
Configuration aborted." "$LINENO" 5 
 
10351
  fi
 
10352
 
 
10353
 
 
10354
 
 
10355
 
 
10356
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
 
10357
$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
 
10358
if test "${am_cv_langinfo_codeset+set}" = set; then :
 
10359
  $as_echo_n "(cached) " >&6
 
10360
else
 
10361
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10362
/* end confdefs.h.  */
 
10363
#include <langinfo.h>
 
10364
int
 
10365
main (void)
 
10366
{
 
10367
char* cs = nl_langinfo(CODESET); return !cs;
 
10368
  ;
 
10369
  return 0;
 
10370
}
 
10371
_ACEOF
 
10372
if ac_fn_c_try_link "$LINENO"; then :
 
10373
  am_cv_langinfo_codeset=yes
 
10374
else
 
10375
  am_cv_langinfo_codeset=no
 
10376
fi
 
10377
rm -f core conftest.err conftest.$ac_objext \
 
10378
    conftest$ac_exeext conftest.$ac_ext
 
10379
    
 
10380
fi
 
10381
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
 
10382
$as_echo "$am_cv_langinfo_codeset" >&6; }
 
10383
  if test $am_cv_langinfo_codeset = yes; then
 
10384
    
 
10385
$as_echo "@%:@define HAVE_LANGINFO_CODESET 1" >>confdefs.h
 
10386
 
 
10387
  fi
 
10388
 
 
10389
 
 
10390
  
 
10391
  
 
10392
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
 
10393
$as_echo_n "checking for a traditional french locale... " >&6; }
 
10394
if test "${gt_cv_locale_fr+set}" = set; then :
 
10395
  $as_echo_n "(cached) " >&6
 
10396
else
 
10397
  
 
10398
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10399
/* end confdefs.h.  */
 
10400
 
 
10401
#include <locale.h>
 
10402
#include <time.h>
 
10403
#if HAVE_LANGINFO_CODESET
 
10404
# include <langinfo.h>
 
10405
#endif
 
10406
#include <stdlib.h>
 
10407
#include <string.h>
 
10408
struct tm t;
 
10409
char buf[16];
 
10410
int main () {
 
10411
  /* Check whether the given locale name is recognized by the system.  */
 
10412
  if (setlocale (LC_ALL, "") == NULL) return 1;
 
10413
  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
 
10414
     On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
 
10415
     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
 
10416
     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
 
10417
     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
 
10418
     some unit tests fail.  */
 
10419
#if HAVE_LANGINFO_CODESET
 
10420
  {
 
10421
    const char *cs = nl_langinfo (CODESET);
 
10422
    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
 
10423
      return 1;
 
10424
  }
 
10425
#endif
 
10426
#ifdef __CYGWIN__
 
10427
  /* On Cygwin, avoid locale names without encoding suffix, because the
 
10428
     locale_charset() function relies on the encoding suffix.  Note that
 
10429
     LC_ALL is set on the command line.  */
 
10430
  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
 
10431
#endif
 
10432
  /* Check whether in the abbreviation of the second month, the second
 
10433
     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
 
10434
     one byte long. This excludes the UTF-8 encoding.  */
 
10435
  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
 
10436
  if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
 
10437
  /* Check whether the decimal separator is a comma.
 
10438
     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
 
10439
     are nl_langinfo(RADIXCHAR) are both ".".  */
 
10440
  if (localeconv () ->decimal_point[0] != ',') return 1;
 
10441
  return 0;
 
10442
}
 
10443
      
 
10444
_ACEOF
 
10445
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
10446
  (eval $ac_link) 2>&5
 
10447
  ac_status=$?
 
10448
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10449
  test $ac_status = 0; } && test -s conftest$ac_exeext; then
 
10450
      # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
 
10451
      # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
 
10452
      # configure script would override the LC_ALL setting. Likewise for
 
10453
      # LC_CTYPE, which is also set at the beginning of the configure script.
 
10454
      # Test for the usual locale name.
 
10455
      if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
10456
        gt_cv_locale_fr=fr_FR
 
10457
      else
 
10458
        # Test for the locale name with explicit encoding suffix.
 
10459
        if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
10460
          gt_cv_locale_fr=fr_FR.ISO-8859-1
 
10461
        else
 
10462
          # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
 
10463
          if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
10464
            gt_cv_locale_fr=fr_FR.ISO8859-1
 
10465
          else
 
10466
            # Test for the HP-UX locale name.
 
10467
            if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
10468
              gt_cv_locale_fr=fr_FR.iso88591
 
10469
            else
 
10470
              # Test for the Solaris 7 locale name.
 
10471
              if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
10472
                gt_cv_locale_fr=fr
 
10473
              else
 
10474
                # None found.
 
10475
                gt_cv_locale_fr=none
 
10476
              fi
 
10477
            fi
 
10478
          fi
 
10479
        fi
 
10480
      fi
 
10481
    fi
 
10482
    rm -fr conftest*
 
10483
  
 
10484
fi
 
10485
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
 
10486
$as_echo "$gt_cv_locale_fr" >&6; }
 
10487
  LOCALE_FR=$gt_cv_locale_fr
 
10488
  
 
10489
 
 
10490
 
 
10491
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system is Windows or MSDOS" >&5
 
10492
$as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
 
10493
if test "${ac_cv_win_or_dos+set}" = set; then :
 
10494
  $as_echo_n "(cached) " >&6
 
10495
else
 
10496
  
 
10497
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10498
/* end confdefs.h.  */
 
10499
 
 
10500
int
 
10501
main (void)
 
10502
{
 
10503
 
 
10504
#if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
 
10505
neither MSDOS nor Windows
 
10506
#endif
 
10507
  ;
 
10508
  return 0;
 
10509
}
 
10510
_ACEOF
 
10511
if ac_fn_c_try_compile "$LINENO"; then :
 
10512
  ac_cv_win_or_dos=yes
 
10513
else
 
10514
  ac_cv_win_or_dos=no
 
10515
fi
 
10516
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10517
      
 
10518
fi
 
10519
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_win_or_dos" >&5
 
10520
$as_echo "$ac_cv_win_or_dos" >&6; }
 
10521
 
 
10522
    if test x"$ac_cv_win_or_dos" = xyes; then
 
10523
      ac_fs_accepts_drive_letter_prefix=1
 
10524
      ac_fs_backslash_is_file_name_separator=1
 
10525
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether drive letter can start relative path" >&5
 
10526
$as_echo_n "checking whether drive letter can start relative path... " >&6; }
 
10527
if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then :
 
10528
  $as_echo_n "(cached) " >&6
 
10529
else
 
10530
  
 
10531
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10532
/* end confdefs.h.  */
 
10533
 
 
10534
int
 
10535
main (void)
 
10536
{
 
10537
 
 
10538
#if defined __CYGWIN__
 
10539
drive letters are always absolute
 
10540
#endif
 
10541
  ;
 
10542
  return 0;
 
10543
}
 
10544
_ACEOF
 
10545
if ac_fn_c_try_compile "$LINENO"; then :
 
10546
  ac_cv_drive_letter_can_be_relative=yes
 
10547
else
 
10548
  ac_cv_drive_letter_can_be_relative=no
 
10549
fi
 
10550
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10551
        
 
10552
fi
 
10553
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_drive_letter_can_be_relative" >&5
 
10554
$as_echo "$ac_cv_drive_letter_can_be_relative" >&6; }
 
10555
      if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
 
10556
        ac_fs_drive_letter_can_be_relative=1
 
10557
      else
 
10558
        ac_fs_drive_letter_can_be_relative=0
 
10559
      fi
 
10560
    else
 
10561
      ac_fs_accepts_drive_letter_prefix=0
 
10562
      ac_fs_backslash_is_file_name_separator=0
 
10563
      ac_fs_drive_letter_can_be_relative=0
 
10564
    fi
 
10565
 
 
10566
    
 
10567
cat >>confdefs.h <<_ACEOF
 
10568
@%:@define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
 
10569
_ACEOF
 
10570
 
 
10571
 
 
10572
    
 
10573
 
 
10574
    
 
10575
cat >>confdefs.h <<_ACEOF
 
10576
@%:@define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
 
10577
_ACEOF
 
10578
 
 
10579
 
 
10580
    
 
10581
cat >>confdefs.h <<_ACEOF
 
10582
@%:@define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
 
10583
_ACEOF
 
10584
 
 
10585
  
 
10586
 
 
10587
  
 
10588
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
 
10589
$as_echo_n "checking whether // is distinct from /... " >&6; }
 
10590
if test "${gl_cv_double_slash_root+set}" = set; then :
 
10591
  $as_echo_n "(cached) " >&6
 
10592
else
 
10593
   if test x"$cross_compiling" = xyes ; then
 
10594
        # When cross-compiling, there is no way to tell whether // is special
 
10595
        # short of a list of hosts.  However, the only known hosts to date
 
10596
        # that have a distinct // are Apollo DomainOS (too old to port to),
 
10597
        # Cygwin, and z/OS.  If anyone knows of another system for which // has
 
10598
        # special semantics and is distinct from /, please report it to
 
10599
        # <bug-gnulib@gnu.org>.
 
10600
        case $host in
 
10601
          *-cygwin | i370-ibm-openedition)
 
10602
            gl_cv_double_slash_root=yes ;;
 
10603
          *)
 
10604
            # Be optimistic and assume that / and // are the same when we
 
10605
            # don't know.
 
10606
            gl_cv_double_slash_root='unknown, assuming no' ;;
 
10607
        esac
 
10608
      else
 
10609
        set x `ls -di / // 2>/dev/null`
 
10610
        if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
 
10611
          gl_cv_double_slash_root=no
 
10612
        else
 
10613
          gl_cv_double_slash_root=yes
 
10614
        fi
 
10615
      fi
 
10616
fi
 
10617
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
 
10618
$as_echo "$gl_cv_double_slash_root" >&6; }
 
10619
  if test "$gl_cv_double_slash_root" = yes; then
 
10620
    
 
10621
$as_echo "@%:@define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
 
10622
 
 
10623
  fi
 
10624
 
 
10625
 
 
10626
  
 
10627
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
 
10628
$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
 
10629
if test "${gl_cv_have_include_next+set}" = set; then :
 
10630
  $as_echo_n "(cached) " >&6
 
10631
else
 
10632
  rm -rf conftestd1a conftestd1b conftestd2
 
10633
     mkdir conftestd1a conftestd1b conftestd2
 
10634
                                                  cat <<EOF > conftestd1a/conftest.h
 
10635
#define DEFINED_IN_CONFTESTD1
 
10636
#include_next <conftest.h>
 
10637
#ifdef DEFINED_IN_CONFTESTD2
 
10638
int foo;
 
10639
#else
 
10640
#error "include_next doesn't work"
 
10641
#endif
 
10642
EOF
 
10643
     cat <<EOF > conftestd1b/conftest.h
 
10644
#define DEFINED_IN_CONFTESTD1
 
10645
#include <stdio.h>
 
10646
#include_next <conftest.h>
 
10647
#ifdef DEFINED_IN_CONFTESTD2
 
10648
int foo;
 
10649
#else
 
10650
#error "include_next doesn't work"
 
10651
#endif
 
10652
EOF
 
10653
     cat <<EOF > conftestd2/conftest.h
 
10654
#ifndef DEFINED_IN_CONFTESTD1
 
10655
#error "include_next test doesn't work"
 
10656
#endif
 
10657
#define DEFINED_IN_CONFTESTD2
 
10658
EOF
 
10659
     gl_save_CPPFLAGS="$CPPFLAGS"
 
10660
     CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
 
10661
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10662
/* end confdefs.h.  */
 
10663
#include <conftest.h>
 
10664
_ACEOF
 
10665
if ac_fn_c_try_compile "$LINENO"; then :
 
10666
  gl_cv_have_include_next=yes
 
10667
else
 
10668
  CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
 
10669
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10670
/* end confdefs.h.  */
 
10671
#include <conftest.h>
 
10672
_ACEOF
 
10673
if ac_fn_c_try_compile "$LINENO"; then :
 
10674
  gl_cv_have_include_next=buggy
 
10675
else
 
10676
  gl_cv_have_include_next=no
 
10677
fi
 
10678
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10679
       
 
10680
fi
 
10681
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10682
     CPPFLAGS="$gl_save_CPPFLAGS"
 
10683
     rm -rf conftestd1a conftestd1b conftestd2
 
10684
    
 
10685
fi
 
10686
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
 
10687
$as_echo "$gl_cv_have_include_next" >&6; }
 
10688
  PRAGMA_SYSTEM_HEADER=
 
10689
  if test $gl_cv_have_include_next = yes; then
 
10690
    INCLUDE_NEXT=include_next
 
10691
    INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
 
10692
    if test -n "$GCC"; then
 
10693
      PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
 
10694
    fi
 
10695
  else
 
10696
    if test $gl_cv_have_include_next = buggy; then
 
10697
      INCLUDE_NEXT=include
 
10698
      INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
 
10699
    else
 
10700
      INCLUDE_NEXT=include
 
10701
      INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
 
10702
    fi
 
10703
  fi
 
10704
  
 
10705
  
 
10706
  
 
10707
 
 
10708
 
 
10709
 
 
10710
 
 
10711
  
 
10712
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
 
10713
$as_echo_n "checking for complete errno.h... " >&6; }
 
10714
if test "${gl_cv_header_errno_h_complete+set}" = set; then :
 
10715
  $as_echo_n "(cached) " >&6
 
10716
else
 
10717
  
 
10718
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10719
/* end confdefs.h.  */
 
10720
 
 
10721
#include <errno.h>
 
10722
#if !defined ENOMSG
 
10723
booboo
 
10724
#endif
 
10725
#if !defined EIDRM
 
10726
booboo
 
10727
#endif
 
10728
#if !defined ENOLINK
 
10729
booboo
 
10730
#endif
 
10731
#if !defined EPROTO
 
10732
booboo
 
10733
#endif
 
10734
#if !defined EMULTIHOP
 
10735
booboo
 
10736
#endif
 
10737
#if !defined EBADMSG
 
10738
booboo
 
10739
#endif
 
10740
#if !defined EOVERFLOW
 
10741
booboo
 
10742
#endif
 
10743
#if !defined ENOTSUP
 
10744
booboo
 
10745
#endif
 
10746
#if !defined ESTALE
 
10747
booboo
 
10748
#endif
 
10749
#if !defined ECANCELED
 
10750
booboo
 
10751
#endif
 
10752
      
 
10753
_ACEOF
 
10754
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
10755
  $EGREP "booboo" >/dev/null 2>&1; then :
 
10756
  gl_cv_header_errno_h_complete=no
 
10757
else
 
10758
  gl_cv_header_errno_h_complete=yes
 
10759
fi
 
10760
rm -f conftest*
 
10761
 
 
10762
  
 
10763
fi
 
10764
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
 
10765
$as_echo "$gl_cv_header_errno_h_complete" >&6; }
 
10766
  if test $gl_cv_header_errno_h_complete = yes; then
 
10767
    ERRNO_H=''
 
10768
  else
 
10769
    
 
10770
  
 
10771
  
 
10772
  
 
10773
 
 
10774
  
 
10775
     if test $gl_cv_have_include_next = yes; then
 
10776
       gl_cv_next_errno_h='<'errno.h'>'
 
10777
     else
 
10778
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
 
10779
$as_echo_n "checking absolute name of <errno.h>... " >&6; }
 
10780
if test "${gl_cv_next_errno_h+set}" = set; then :
 
10781
  $as_echo_n "(cached) " >&6
 
10782
else
 
10783
  
 
10784
          if test $ac_cv_header_errno_h = yes; then
 
10785
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10786
/* end confdefs.h.  */
 
10787
#include <errno.h>
 
10788
               
 
10789
_ACEOF
 
10790
                                                                                                case "$host_os" in
 
10791
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
10792
              *)    gl_absname_cpp="$ac_cpp" ;;
 
10793
            esac
 
10794
                                                gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
10795
               sed -n '\#/errno.h#{
 
10796
                 s#.*"\(.*/errno.h\)".*#\1#
 
10797
                 s#^/[^/]#//&#
 
10798
                 p
 
10799
                 q
 
10800
               }'`'"'
 
10801
          else
 
10802
            gl_cv_next_errno_h='<'errno.h'>'
 
10803
          fi
 
10804
          
 
10805
fi
 
10806
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
 
10807
$as_echo "$gl_cv_next_errno_h" >&6; }
 
10808
     fi
 
10809
     NEXT_ERRNO_H=$gl_cv_next_errno_h
 
10810
 
 
10811
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
10812
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
10813
       gl_next_as_first_directive='<'errno.h'>'
 
10814
     else
 
10815
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
10816
       gl_next_as_first_directive=$gl_cv_next_errno_h
 
10817
     fi
 
10818
     NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
 
10819
 
 
10820
     
 
10821
 
 
10822
    ERRNO_H='errno.h'
 
10823
  fi
 
10824
  
 
10825
  
 
10826
  if test -n "$ERRNO_H"; then
 
10827
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
 
10828
$as_echo_n "checking for EMULTIHOP value... " >&6; }
 
10829
if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
 
10830
  $as_echo_n "(cached) " >&6
 
10831
else
 
10832
  
 
10833
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10834
/* end confdefs.h.  */
 
10835
 
 
10836
#include <errno.h>
 
10837
#ifdef EMULTIHOP
 
10838
yes
 
10839
#endif
 
10840
      
 
10841
_ACEOF
 
10842
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
10843
  $EGREP "yes" >/dev/null 2>&1; then :
 
10844
  gl_cv_header_errno_h_EMULTIHOP=yes
 
10845
else
 
10846
  gl_cv_header_errno_h_EMULTIHOP=no
 
10847
fi
 
10848
rm -f conftest*
 
10849
 
 
10850
      if test $gl_cv_header_errno_h_EMULTIHOP = no; then
 
10851
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10852
/* end confdefs.h.  */
 
10853
 
 
10854
#define _XOPEN_SOURCE_EXTENDED 1
 
10855
#include <errno.h>
 
10856
#ifdef EMULTIHOP
 
10857
yes
 
10858
#endif
 
10859
          
 
10860
_ACEOF
 
10861
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
10862
  $EGREP "yes" >/dev/null 2>&1; then :
 
10863
  gl_cv_header_errno_h_EMULTIHOP=hidden
 
10864
fi
 
10865
rm -f conftest*
 
10866
 
 
10867
        if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
 
10868
                              if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
 
10869
#define _XOPEN_SOURCE_EXTENDED 1
 
10870
#include <errno.h>
 
10871
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
10872
#include <stdio.h>
 
10873
#include <stdlib.h>
 
10874
"; then :
 
10875
  
 
10876
fi
 
10877
 
 
10878
        fi
 
10879
      fi
 
10880
    
 
10881
fi
 
10882
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
 
10883
$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
 
10884
    case $gl_cv_header_errno_h_EMULTIHOP in
 
10885
      yes | no)
 
10886
        EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
 
10887
        ;;
 
10888
      *)
 
10889
        EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
 
10890
        ;;
 
10891
    esac
 
10892
    
 
10893
    
 
10894
  fi
 
10895
 
 
10896
  
 
10897
  if test -n "$ERRNO_H"; then
 
10898
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
 
10899
$as_echo_n "checking for ENOLINK value... " >&6; }
 
10900
if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
 
10901
  $as_echo_n "(cached) " >&6
 
10902
else
 
10903
  
 
10904
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10905
/* end confdefs.h.  */
 
10906
 
 
10907
#include <errno.h>
 
10908
#ifdef ENOLINK
 
10909
yes
 
10910
#endif
 
10911
      
 
10912
_ACEOF
 
10913
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
10914
  $EGREP "yes" >/dev/null 2>&1; then :
 
10915
  gl_cv_header_errno_h_ENOLINK=yes
 
10916
else
 
10917
  gl_cv_header_errno_h_ENOLINK=no
 
10918
fi
 
10919
rm -f conftest*
 
10920
 
 
10921
      if test $gl_cv_header_errno_h_ENOLINK = no; then
 
10922
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10923
/* end confdefs.h.  */
 
10924
 
 
10925
#define _XOPEN_SOURCE_EXTENDED 1
 
10926
#include <errno.h>
 
10927
#ifdef ENOLINK
 
10928
yes
 
10929
#endif
 
10930
          
 
10931
_ACEOF
 
10932
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
10933
  $EGREP "yes" >/dev/null 2>&1; then :
 
10934
  gl_cv_header_errno_h_ENOLINK=hidden
 
10935
fi
 
10936
rm -f conftest*
 
10937
 
 
10938
        if test $gl_cv_header_errno_h_ENOLINK = hidden; then
 
10939
                              if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
 
10940
#define _XOPEN_SOURCE_EXTENDED 1
 
10941
#include <errno.h>
 
10942
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
10943
#include <stdio.h>
 
10944
#include <stdlib.h>
 
10945
"; then :
 
10946
  
 
10947
fi
 
10948
 
 
10949
        fi
 
10950
      fi
 
10951
    
 
10952
fi
 
10953
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
 
10954
$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
 
10955
    case $gl_cv_header_errno_h_ENOLINK in
 
10956
      yes | no)
 
10957
        ENOLINK_HIDDEN=0; ENOLINK_VALUE=
 
10958
        ;;
 
10959
      *)
 
10960
        ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
 
10961
        ;;
 
10962
    esac
 
10963
    
 
10964
    
 
10965
  fi
 
10966
 
 
10967
  
 
10968
  if test -n "$ERRNO_H"; then
 
10969
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
 
10970
$as_echo_n "checking for EOVERFLOW value... " >&6; }
 
10971
if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
 
10972
  $as_echo_n "(cached) " >&6
 
10973
else
 
10974
  
 
10975
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10976
/* end confdefs.h.  */
 
10977
 
 
10978
#include <errno.h>
 
10979
#ifdef EOVERFLOW
 
10980
yes
 
10981
#endif
 
10982
      
 
10983
_ACEOF
 
10984
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
10985
  $EGREP "yes" >/dev/null 2>&1; then :
 
10986
  gl_cv_header_errno_h_EOVERFLOW=yes
 
10987
else
 
10988
  gl_cv_header_errno_h_EOVERFLOW=no
 
10989
fi
 
10990
rm -f conftest*
 
10991
 
 
10992
      if test $gl_cv_header_errno_h_EOVERFLOW = no; then
 
10993
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10994
/* end confdefs.h.  */
 
10995
 
 
10996
#define _XOPEN_SOURCE_EXTENDED 1
 
10997
#include <errno.h>
 
10998
#ifdef EOVERFLOW
 
10999
yes
 
11000
#endif
 
11001
          
 
11002
_ACEOF
 
11003
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
11004
  $EGREP "yes" >/dev/null 2>&1; then :
 
11005
  gl_cv_header_errno_h_EOVERFLOW=hidden
 
11006
fi
 
11007
rm -f conftest*
 
11008
 
 
11009
        if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
 
11010
                              if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
 
11011
#define _XOPEN_SOURCE_EXTENDED 1
 
11012
#include <errno.h>
 
11013
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
11014
#include <stdio.h>
 
11015
#include <stdlib.h>
 
11016
"; then :
 
11017
  
 
11018
fi
 
11019
 
 
11020
        fi
 
11021
      fi
 
11022
    
 
11023
fi
 
11024
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
 
11025
$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
 
11026
    case $gl_cv_header_errno_h_EOVERFLOW in
 
11027
      yes | no)
 
11028
        EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
 
11029
        ;;
 
11030
      *)
 
11031
        EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
 
11032
        ;;
 
11033
    esac
 
11034
    
 
11035
    
 
11036
  fi
 
11037
 
 
11038
 
 
11039
ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
 
11040
if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
 
11041
  ac_have_decl=1
 
11042
else
 
11043
  ac_have_decl=0
 
11044
fi
 
11045
 
 
11046
cat >>confdefs.h <<_ACEOF
 
11047
@%:@define HAVE_DECL_STRERROR_R $ac_have_decl
 
11048
_ACEOF
 
11049
 
 
11050
for ac_func in strerror_r
 
11051
do :
 
11052
  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
 
11053
if test "x$ac_cv_func_strerror_r" = x""yes; then :
 
11054
  cat >>confdefs.h <<_ACEOF
 
11055
@%:@define HAVE_STRERROR_R 1
 
11056
_ACEOF
 
11057
 
 
11058
fi
 
11059
done
 
11060
 
 
11061
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
 
11062
$as_echo_n "checking whether strerror_r returns char *... " >&6; }
 
11063
if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
 
11064
  $as_echo_n "(cached) " >&6
 
11065
else
 
11066
  
 
11067
    ac_cv_func_strerror_r_char_p=no
 
11068
    if test $ac_cv_have_decl_strerror_r = yes; then
 
11069
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11070
/* end confdefs.h.  */
 
11071
$ac_includes_default
 
11072
int
 
11073
main (void)
 
11074
{
 
11075
 
 
11076
          char buf[100];
 
11077
          char x = *strerror_r (0, buf, sizeof buf);
 
11078
          char *p = strerror_r (0, buf, sizeof buf);
 
11079
          return !p || x;
 
11080
        
 
11081
  ;
 
11082
  return 0;
 
11083
}
 
11084
_ACEOF
 
11085
if ac_fn_c_try_compile "$LINENO"; then :
 
11086
  ac_cv_func_strerror_r_char_p=yes
 
11087
fi
 
11088
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11089
    else
 
11090
      # strerror_r is not declared.  Choose between
 
11091
      # systems that have relatively inaccessible declarations for the
 
11092
      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
 
11093
      # former has a strerror_r that returns char*, while the latter
 
11094
      # has a strerror_r that returns `int'.
 
11095
      # This test should segfault on the DEC system.
 
11096
      if test "$cross_compiling" = yes; then :
 
11097
  :
 
11098
else
 
11099
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11100
/* end confdefs.h.  */
 
11101
$ac_includes_default
 
11102
        extern char *strerror_r ();
 
11103
int
 
11104
main (void)
 
11105
{
 
11106
char buf[100];
 
11107
          char x = *strerror_r (0, buf, sizeof buf);
 
11108
          return ! isalpha (x);
 
11109
  ;
 
11110
  return 0;
 
11111
}
 
11112
_ACEOF
 
11113
if ac_fn_c_try_run "$LINENO"; then :
 
11114
  ac_cv_func_strerror_r_char_p=yes
 
11115
fi
 
11116
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
11117
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
11118
fi
 
11119
 
 
11120
    fi
 
11121
  
 
11122
fi
 
11123
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
 
11124
$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
 
11125
if test $ac_cv_func_strerror_r_char_p = yes; then
 
11126
  
 
11127
$as_echo "@%:@define STRERROR_R_CHAR_P 1" >>confdefs.h
 
11128
 
 
11129
fi
 
11130
 
 
11131
 
 
11132
 
 
11133
 
 
11134
    
 
11135
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
 
11136
$as_echo_n "checking for mbstate_t... " >&6; }
 
11137
if test "${ac_cv_type_mbstate_t+set}" = set; then :
 
11138
  $as_echo_n "(cached) " >&6
 
11139
else
 
11140
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11141
/* end confdefs.h.  */
 
11142
$ac_includes_default
 
11143
#           include <wchar.h>
 
11144
int
 
11145
main (void)
 
11146
{
 
11147
mbstate_t x; return sizeof x;
 
11148
  ;
 
11149
  return 0;
 
11150
}
 
11151
_ACEOF
 
11152
if ac_fn_c_try_compile "$LINENO"; then :
 
11153
  ac_cv_type_mbstate_t=yes
 
11154
else
 
11155
  ac_cv_type_mbstate_t=no
 
11156
fi
 
11157
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11158
fi
 
11159
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
 
11160
$as_echo "$ac_cv_type_mbstate_t" >&6; }
 
11161
   if test $ac_cv_type_mbstate_t = yes; then
 
11162
     
 
11163
$as_echo "@%:@define HAVE_MBSTATE_T 1" >>confdefs.h
 
11164
 
 
11165
   else
 
11166
     
 
11167
$as_echo "@%:@define mbstate_t int" >>confdefs.h
 
11168
 
 
11169
   fi
 
11170
 
 
11171
 
 
11172
 
 
11173
 
 
11174
 
 
11175
 
 
11176
 
 
11177
 
 
11178
 
 
11179
 
 
11180
 
 
11181
 
 
11182
 
 
11183
 
 
11184
 
 
11185
 
 
11186
 
 
11187
 
 
11188
  GNULIB_DPRINTF=0;              
 
11189
  GNULIB_FCLOSE=0;               
 
11190
  GNULIB_FFLUSH=0;               
 
11191
  GNULIB_FOPEN=0;                
 
11192
  GNULIB_FPRINTF=0;              
 
11193
  GNULIB_FPRINTF_POSIX=0;        
 
11194
  GNULIB_FPURGE=0;               
 
11195
  GNULIB_FPUTC=0;                
 
11196
  GNULIB_FPUTS=0;                
 
11197
  GNULIB_FREOPEN=0;              
 
11198
  GNULIB_FSEEK=0;                
 
11199
  GNULIB_FSEEKO=0;               
 
11200
  GNULIB_FTELL=0;                
 
11201
  GNULIB_FTELLO=0;               
 
11202
  GNULIB_FWRITE=0;               
 
11203
  GNULIB_GETDELIM=0;             
 
11204
  GNULIB_GETLINE=0;              
 
11205
  GNULIB_OBSTACK_PRINTF=0;       
 
11206
  GNULIB_OBSTACK_PRINTF_POSIX=0; 
 
11207
  GNULIB_PERROR=0;               
 
11208
  GNULIB_POPEN=0;                
 
11209
  GNULIB_PRINTF=0;               
 
11210
  GNULIB_PRINTF_POSIX=0;         
 
11211
  GNULIB_PUTC=0;                 
 
11212
  GNULIB_PUTCHAR=0;              
 
11213
  GNULIB_PUTS=0;                 
 
11214
  GNULIB_REMOVE=0;               
 
11215
  GNULIB_RENAME=0;               
 
11216
  GNULIB_RENAMEAT=0;             
 
11217
  GNULIB_SNPRINTF=0;             
 
11218
  GNULIB_SPRINTF_POSIX=0;        
 
11219
  GNULIB_STDIO_H_SIGPIPE=0;      
 
11220
  GNULIB_TMPFILE=0;              
 
11221
  GNULIB_VASPRINTF=0;            
 
11222
  GNULIB_VDPRINTF=0;             
 
11223
  GNULIB_VFPRINTF=0;             
 
11224
  GNULIB_VFPRINTF_POSIX=0;       
 
11225
  GNULIB_VPRINTF=0;              
 
11226
  GNULIB_VPRINTF_POSIX=0;        
 
11227
  GNULIB_VSNPRINTF=0;            
 
11228
  GNULIB_VSPRINTF_POSIX=0;       
 
11229
    HAVE_DECL_FPURGE=1;            
 
11230
  HAVE_DECL_GETDELIM=1;          
 
11231
  HAVE_DECL_GETLINE=1;           
 
11232
  HAVE_DECL_OBSTACK_PRINTF=1;    
 
11233
  HAVE_DECL_SNPRINTF=1;          
 
11234
  HAVE_DECL_VSNPRINTF=1;         
 
11235
  HAVE_DPRINTF=1;                
 
11236
  HAVE_FSEEKO=1;                 
 
11237
  HAVE_FTELLO=1;                 
 
11238
  HAVE_RENAMEAT=1;               
 
11239
  HAVE_VASPRINTF=1;              
 
11240
  HAVE_VDPRINTF=1;               
 
11241
  REPLACE_DPRINTF=0;             
 
11242
  REPLACE_FCLOSE=0;              
 
11243
  REPLACE_FFLUSH=0;              
 
11244
  REPLACE_FOPEN=0;               
 
11245
  REPLACE_FPRINTF=0;             
 
11246
  REPLACE_FPURGE=0;              
 
11247
  REPLACE_FREOPEN=0;             
 
11248
  REPLACE_FSEEK=0;               
 
11249
  REPLACE_FSEEKO=0;              
 
11250
  REPLACE_FTELL=0;               
 
11251
  REPLACE_FTELLO=0;              
 
11252
  REPLACE_GETDELIM=0;            
 
11253
  REPLACE_GETLINE=0;             
 
11254
  REPLACE_OBSTACK_PRINTF=0;      
 
11255
  REPLACE_PERROR=0;              
 
11256
  REPLACE_POPEN=0;               
 
11257
  REPLACE_PRINTF=0;              
 
11258
  REPLACE_REMOVE=0;              
 
11259
  REPLACE_RENAME=0;              
 
11260
  REPLACE_RENAMEAT=0;            
 
11261
  REPLACE_SNPRINTF=0;            
 
11262
  REPLACE_SPRINTF=0;             
 
11263
  REPLACE_STDIO_WRITE_FUNCS=0;   
 
11264
  REPLACE_TMPFILE=0;             
 
11265
  REPLACE_VASPRINTF=0;           
 
11266
  REPLACE_VDPRINTF=0;            
 
11267
  REPLACE_VFPRINTF=0;            
 
11268
  REPLACE_VPRINTF=0;             
 
11269
  REPLACE_VSNPRINTF=0;           
 
11270
  REPLACE_VSPRINTF=0;            
 
11271
 
 
11272
ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
 
11273
if test "x$ac_cv_have_decl_getdelim" = x""yes; then :
 
11274
  ac_have_decl=1
 
11275
else
 
11276
  ac_have_decl=0
 
11277
fi
 
11278
 
 
11279
cat >>confdefs.h <<_ACEOF
 
11280
@%:@define HAVE_DECL_GETDELIM $ac_have_decl
 
11281
_ACEOF
 
11282
 
 
11283
 
 
11284
 
 
11285
ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
 
11286
if test "x$ac_cv_have_decl_getline" = x""yes; then :
 
11287
  ac_have_decl=1
 
11288
else
 
11289
  ac_have_decl=0
 
11290
fi
 
11291
 
 
11292
cat >>confdefs.h <<_ACEOF
 
11293
@%:@define HAVE_DECL_GETLINE $ac_have_decl
 
11294
_ACEOF
 
11295
 
 
11296
 
 
11297
  GNULIB_CHOWN=0;            
 
11298
  GNULIB_CLOSE=0;            
 
11299
  GNULIB_DUP2=0;             
 
11300
  GNULIB_DUP3=0;             
 
11301
  GNULIB_ENVIRON=0;          
 
11302
  GNULIB_EUIDACCESS=0;       
 
11303
  GNULIB_FACCESSAT=0;        
 
11304
  GNULIB_FCHDIR=0;           
 
11305
  GNULIB_FCHOWNAT=0;         
 
11306
  GNULIB_FSYNC=0;            
 
11307
  GNULIB_FTRUNCATE=0;        
 
11308
  GNULIB_GETCWD=0;           
 
11309
  GNULIB_GETDOMAINNAME=0;    
 
11310
  GNULIB_GETDTABLESIZE=0;    
 
11311
  GNULIB_GETGROUPS=0;        
 
11312
  GNULIB_GETHOSTNAME=0;      
 
11313
  GNULIB_GETLOGIN=0;         
 
11314
  GNULIB_GETLOGIN_R=0;       
 
11315
  GNULIB_GETPAGESIZE=0;      
 
11316
  GNULIB_GETUSERSHELL=0;     
 
11317
  GNULIB_LCHOWN=0;           
 
11318
  GNULIB_LINK=0;             
 
11319
  GNULIB_LINKAT=0;           
 
11320
  GNULIB_LSEEK=0;            
 
11321
  GNULIB_PIPE2=0;            
 
11322
  GNULIB_PREAD=0;            
 
11323
  GNULIB_PWRITE=0;           
 
11324
  GNULIB_READLINK=0;         
 
11325
  GNULIB_READLINKAT=0;       
 
11326
  GNULIB_RMDIR=0;            
 
11327
  GNULIB_SLEEP=0;            
 
11328
  GNULIB_SYMLINK=0;          
 
11329
  GNULIB_SYMLINKAT=0;        
 
11330
  GNULIB_TTYNAME_R=0;        
 
11331
  GNULIB_UNISTD_H_GETOPT=0;  
 
11332
  GNULIB_UNISTD_H_SIGPIPE=0; 
 
11333
  GNULIB_UNLINK=0;           
 
11334
  GNULIB_UNLINKAT=0;         
 
11335
  GNULIB_USLEEP=0;           
 
11336
  GNULIB_WRITE=0;            
 
11337
    HAVE_CHOWN=1;           
 
11338
  HAVE_DUP2=1;            
 
11339
  HAVE_DUP3=1;            
 
11340
  HAVE_EUIDACCESS=1;      
 
11341
  HAVE_FACCESSAT=1;       
 
11342
  HAVE_FCHDIR=1;          
 
11343
  HAVE_FCHOWNAT=1;        
 
11344
  HAVE_FSYNC=1;           
 
11345
  HAVE_FTRUNCATE=1;       
 
11346
  HAVE_GETDOMAINNAME=1;   
 
11347
  HAVE_GETDTABLESIZE=1;   
 
11348
  HAVE_GETGROUPS=1;       
 
11349
  HAVE_GETHOSTNAME=1;     
 
11350
  HAVE_GETLOGIN=1;        
 
11351
  HAVE_GETPAGESIZE=1;     
 
11352
  HAVE_LCHOWN=1;          
 
11353
  HAVE_LINK=1;            
 
11354
  HAVE_LINKAT=1;          
 
11355
  HAVE_PIPE2=1;           
 
11356
  HAVE_PREAD=1;           
 
11357
  HAVE_PWRITE=1;          
 
11358
  HAVE_READLINK=1;        
 
11359
  HAVE_READLINKAT=1;      
 
11360
  HAVE_SLEEP=1;           
 
11361
  HAVE_SYMLINK=1;         
 
11362
  HAVE_SYMLINKAT=1;       
 
11363
  HAVE_TTYNAME_R=1;       
 
11364
  HAVE_UNLINKAT=1;        
 
11365
  HAVE_USLEEP=1;          
 
11366
  HAVE_DECL_ENVIRON=1;    
 
11367
  HAVE_DECL_GETLOGIN_R=1; 
 
11368
  HAVE_DECL_GETPAGESIZE=1; 
 
11369
  HAVE_DECL_GETUSERSHELL=1; 
 
11370
  HAVE_OS_H=0;            
 
11371
  HAVE_SYS_PARAM_H=0;     
 
11372
  REPLACE_CHOWN=0;        
 
11373
  REPLACE_CLOSE=0;        
 
11374
  REPLACE_DUP=0;          
 
11375
  REPLACE_DUP2=0;         
 
11376
  REPLACE_FCHOWNAT=0;     
 
11377
  REPLACE_GETCWD=0;       
 
11378
  REPLACE_GETGROUPS=0;    
 
11379
  REPLACE_GETPAGESIZE=0;  
 
11380
  REPLACE_LCHOWN=0;       
 
11381
  REPLACE_LINK=0;         
 
11382
  REPLACE_LINKAT=0;       
 
11383
  REPLACE_LSEEK=0;        
 
11384
  REPLACE_PREAD=0;        
 
11385
  REPLACE_PWRITE=0;       
 
11386
  REPLACE_READLINK=0;     
 
11387
  REPLACE_RMDIR=0;        
 
11388
  REPLACE_SLEEP=0;        
 
11389
  REPLACE_SYMLINK=0;      
 
11390
  REPLACE_TTYNAME_R=0;    
 
11391
  REPLACE_UNLINK=0;       
 
11392
  REPLACE_UNLINKAT=0;     
 
11393
  REPLACE_USLEEP=0;       
 
11394
  REPLACE_WRITE=0;        
 
11395
  UNISTD_H_HAVE_WINSOCK2_H=0; 
 
11396
  UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
 
11397
                           
 
11398
 
 
11399
 
 
11400
 
 
11401
 
 
11402
      
 
11403
    
 
11404
 
 
11405
  
 
11406
  
 
11407
  
 
11408
  
 
11409
 
 
11410
  
 
11411
     if test $gl_cv_have_include_next = yes; then
 
11412
       gl_cv_next_getopt_h='<'getopt.h'>'
 
11413
     else
 
11414
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
 
11415
$as_echo_n "checking absolute name of <getopt.h>... " >&6; }
 
11416
if test "${gl_cv_next_getopt_h+set}" = set; then :
 
11417
  $as_echo_n "(cached) " >&6
 
11418
else
 
11419
  
 
11420
          if test $ac_cv_header_getopt_h = yes; then
 
11421
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11422
/* end confdefs.h.  */
 
11423
#include <getopt.h>
 
11424
               
 
11425
_ACEOF
 
11426
                                                                                                case "$host_os" in
 
11427
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
11428
              *)    gl_absname_cpp="$ac_cpp" ;;
 
11429
            esac
 
11430
                                                gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
11431
               sed -n '\#/getopt.h#{
 
11432
                 s#.*"\(.*/getopt.h\)".*#\1#
 
11433
                 s#^/[^/]#//&#
 
11434
                 p
 
11435
                 q
 
11436
               }'`'"'
 
11437
          else
 
11438
            gl_cv_next_getopt_h='<'getopt.h'>'
 
11439
          fi
 
11440
          
 
11441
fi
 
11442
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
 
11443
$as_echo "$gl_cv_next_getopt_h" >&6; }
 
11444
     fi
 
11445
     NEXT_GETOPT_H=$gl_cv_next_getopt_h
 
11446
 
 
11447
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
11448
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
11449
       gl_next_as_first_directive='<'getopt.h'>'
 
11450
     else
 
11451
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
11452
       gl_next_as_first_directive=$gl_cv_next_getopt_h
 
11453
     fi
 
11454
     NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
 
11455
 
 
11456
     
 
11457
 
 
11458
  
 
11459
  if test $ac_cv_header_getopt_h = yes; then
 
11460
    HAVE_GETOPT_H=1
 
11461
  else
 
11462
    HAVE_GETOPT_H=0
 
11463
  fi
 
11464
  
 
11465
 
 
11466
  gl_replace_getopt=
 
11467
 
 
11468
    if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
 
11469
    for ac_header in getopt.h
 
11470
do :
 
11471
  ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
 
11472
if test "x$ac_cv_header_getopt_h" = x""yes; then :
 
11473
  cat >>confdefs.h <<_ACEOF
 
11474
@%:@define HAVE_GETOPT_H 1
 
11475
_ACEOF
 
11476
 
 
11477
else
 
11478
  gl_replace_getopt=yes
 
11479
fi
 
11480
 
 
11481
done
 
11482
 
 
11483
  fi
 
11484
 
 
11485
    if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
 
11486
    for ac_func in getopt_long_only
 
11487
do :
 
11488
  ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
 
11489
if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
 
11490
  cat >>confdefs.h <<_ACEOF
 
11491
@%:@define HAVE_GETOPT_LONG_ONLY 1
 
11492
_ACEOF
 
11493
 
 
11494
else
 
11495
  gl_replace_getopt=yes
 
11496
fi
 
11497
done
 
11498
 
 
11499
  fi
 
11500
 
 
11501
              if test -z "$gl_replace_getopt"; then
 
11502
    ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
 
11503
"
 
11504
if test "x$ac_cv_have_decl_optreset" = x""yes; then :
 
11505
  ac_have_decl=1
 
11506
else
 
11507
  ac_have_decl=0
 
11508
fi
 
11509
 
 
11510
cat >>confdefs.h <<_ACEOF
 
11511
@%:@define HAVE_DECL_OPTRESET $ac_have_decl
 
11512
_ACEOF
 
11513
if test $ac_have_decl = 1; then :
 
11514
  
 
11515
else
 
11516
  ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
 
11517
"
 
11518
if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
 
11519
  ac_have_decl=1
 
11520
else
 
11521
  ac_have_decl=0
 
11522
fi
 
11523
 
 
11524
cat >>confdefs.h <<_ACEOF
 
11525
@%:@define HAVE_DECL_GETOPT_CLIP $ac_have_decl
 
11526
_ACEOF
 
11527
 
 
11528
      
 
11529
fi
 
11530
 
 
11531
  fi
 
11532
 
 
11533
                    if test -z "$gl_replace_getopt"; then
 
11534
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
 
11535
$as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
 
11536
if test "${gl_cv_func_getopt_posix+set}" = set; then :
 
11537
  $as_echo_n "(cached) " >&6
 
11538
else
 
11539
  
 
11540
                if test "$cross_compiling" = yes; then :
 
11541
  case "$host_os" in
 
11542
             mingw*)         gl_cv_func_getopt_posix="guessing no";;
 
11543
             darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
 
11544
             *)              gl_cv_func_getopt_posix="guessing yes";;
 
11545
           esac
 
11546
          
 
11547
else
 
11548
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11549
/* end confdefs.h.  */
 
11550
 
 
11551
#include <unistd.h>
 
11552
#include <stdlib.h>
 
11553
#include <string.h>
 
11554
 
 
11555
#if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP
 
11556
# define OPTIND_MIN 0
 
11557
#else
 
11558
# define OPTIND_MIN 1
 
11559
#endif
 
11560
 
 
11561
int
 
11562
main ()
 
11563
{
 
11564
  {
 
11565
    int argc = 0;
 
11566
    char *argv[10];
 
11567
    int c;
 
11568
 
 
11569
    argv[argc++] = "program";
 
11570
    argv[argc++] = "-a";
 
11571
    argv[argc++] = "foo";
 
11572
    argv[argc++] = "bar";
 
11573
    argv[argc] = NULL;
 
11574
    optind = OPTIND_MIN;
 
11575
    opterr = 0;
 
11576
 
 
11577
    c = getopt (argc, argv, "ab");
 
11578
    if (!(c == 'a'))
 
11579
      return 1;
 
11580
    c = getopt (argc, argv, "ab");
 
11581
    if (!(c == -1))
 
11582
      return 2;
 
11583
    if (!(optind == 2))
 
11584
      return 3;
 
11585
  }
 
11586
  /* Some internal state exists at this point.  */
 
11587
  {
 
11588
    int argc = 0;
 
11589
    char *argv[10];
 
11590
    int c;
 
11591
 
 
11592
    argv[argc++] = "program";
 
11593
    argv[argc++] = "donald";
 
11594
    argv[argc++] = "-p";
 
11595
    argv[argc++] = "billy";
 
11596
    argv[argc++] = "duck";
 
11597
    argv[argc++] = "-a";
 
11598
    argv[argc++] = "bar";
 
11599
    argv[argc] = NULL;
 
11600
    optind = OPTIND_MIN;
 
11601
    opterr = 0;
 
11602
 
 
11603
    c = getopt (argc, argv, "+abp:q:");
 
11604
    if (!(c == -1))
 
11605
      return 4;
 
11606
    if (!(strcmp (argv[0], "program") == 0))
 
11607
      return 5;
 
11608
    if (!(strcmp (argv[1], "donald") == 0))
 
11609
      return 6;
 
11610
    if (!(strcmp (argv[2], "-p") == 0))
 
11611
      return 7;
 
11612
    if (!(strcmp (argv[3], "billy") == 0))
 
11613
      return 8;
 
11614
    if (!(strcmp (argv[4], "duck") == 0))
 
11615
      return 9;
 
11616
    if (!(strcmp (argv[5], "-a") == 0))
 
11617
      return 10;
 
11618
    if (!(strcmp (argv[6], "bar") == 0))
 
11619
      return 11;
 
11620
    if (!(optind == 1))
 
11621
      return 12;
 
11622
  }
 
11623
  /* Detect MacOS 10.5, AIX 7.1 bug.  */
 
11624
  {
 
11625
    char *argv[3] = { "program", "-ab", NULL };
 
11626
    optind = OPTIND_MIN;
 
11627
    opterr = 0;
 
11628
    if (getopt (2, argv, "ab:") != 'a')
 
11629
      return 13;
 
11630
    if (getopt (2, argv, "ab:") != '?')
 
11631
      return 14;
 
11632
    if (optopt != 'b')
 
11633
      return 15;
 
11634
    if (optind != 2)
 
11635
      return 16;
 
11636
  }
 
11637
 
 
11638
  return 0;
 
11639
}
 
11640
 
 
11641
_ACEOF
 
11642
if ac_fn_c_try_run "$LINENO"; then :
 
11643
  gl_cv_func_getopt_posix=yes
 
11644
else
 
11645
  gl_cv_func_getopt_posix=no
 
11646
fi
 
11647
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
11648
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
11649
fi
 
11650
 
 
11651
      
 
11652
fi
 
11653
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
 
11654
$as_echo "$gl_cv_func_getopt_posix" >&6; }
 
11655
    case "$gl_cv_func_getopt_posix" in
 
11656
      *no) gl_replace_getopt=yes ;;
 
11657
    esac
 
11658
  fi
 
11659
 
 
11660
  if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
 
11661
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
 
11662
$as_echo_n "checking for working GNU getopt function... " >&6; }
 
11663
if test "${gl_cv_func_getopt_gnu+set}" = set; then :
 
11664
  $as_echo_n "(cached) " >&6
 
11665
else
 
11666
  # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
 
11667
       # optstring is necessary for programs like m4 that have POSIX-mandated
 
11668
       # semantics for supporting options interspersed with files.
 
11669
       # Also, since getopt_long is a GNU extension, we require optind=0.
 
11670
       # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
 
11671
       # so take care to revert to the correct (non-)export state.
 
11672
       gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
 
11673
       case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
 
11674
         xx) gl_had_POSIXLY_CORRECT=exported ;;
 
11675
         x)  gl_had_POSIXLY_CORRECT=yes      ;;
 
11676
         *)  gl_had_POSIXLY_CORRECT=         ;;
 
11677
       esac
 
11678
       POSIXLY_CORRECT=1
 
11679
       export POSIXLY_CORRECT
 
11680
       if test "$cross_compiling" = yes; then :
 
11681
           case $host_os:$ac_cv_have_decl_optreset in
 
11682
           *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
 
11683
           *:yes)               gl_cv_func_getopt_gnu=no;;
 
11684
           *)                   gl_cv_func_getopt_gnu=yes;;
 
11685
         esac
 
11686
        
 
11687
else
 
11688
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11689
/* end confdefs.h.  */
 
11690
#include <getopt.h>
 
11691
                           #include <stddef.h>
 
11692
                           #include <string.h>
 
11693
           
 
11694
int
 
11695
main (void)
 
11696
{
 
11697
 
 
11698
             /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
 
11699
                and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
 
11700
                OSF/1 5.1, Solaris 10.  */
 
11701
             {
 
11702
               char *myargv[3];
 
11703
               myargv[0] = "conftest";
 
11704
               myargv[1] = "-+";
 
11705
               myargv[2] = 0;
 
11706
               opterr = 0;
 
11707
               if (getopt (2, myargv, "+a") != '?')
 
11708
                 return 1;
 
11709
             }
 
11710
             /* This code succeeds on glibc 2.8, mingw,
 
11711
                and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
 
11712
                IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x.  */
 
11713
             {
 
11714
               char *argv[] = { "program", "-p", "foo", "bar", NULL };
 
11715
 
 
11716
               optind = 1;
 
11717
               if (getopt (4, argv, "p::") != 'p')
 
11718
                 return 2;
 
11719
               if (optarg != NULL)
 
11720
                 return 3;
 
11721
               if (getopt (4, argv, "p::") != -1)
 
11722
                 return 4;
 
11723
               if (optind != 2)
 
11724
                 return 5;
 
11725
             }
 
11726
             /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0.  */
 
11727
             {
 
11728
               char *argv[] = { "program", "foo", "-p", NULL };
 
11729
               optind = 0;
 
11730
               if (getopt (3, argv, "-p") != 1)
 
11731
                 return 6;
 
11732
               if (getopt (3, argv, "-p") != 'p')
 
11733
                 return 7;
 
11734
             }
 
11735
             /* This code fails on glibc 2.11.  */
 
11736
             {
 
11737
               char *argv[] = { "program", "-b", "-a", NULL };
 
11738
               optind = opterr = 0;
 
11739
               if (getopt (3, argv, "+:a:b") != 'b')
 
11740
                 return 8;
 
11741
               if (getopt (3, argv, "+:a:b") != ':')
 
11742
                 return 9;
 
11743
             }
 
11744
             return 0;
 
11745
           
 
11746
  ;
 
11747
  return 0;
 
11748
}
 
11749
_ACEOF
 
11750
if ac_fn_c_try_run "$LINENO"; then :
 
11751
  gl_cv_func_getopt_gnu=yes
 
11752
else
 
11753
  gl_cv_func_getopt_gnu=no
 
11754
fi
 
11755
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
11756
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
11757
fi
 
11758
 
 
11759
       case $gl_had_POSIXLY_CORRECT in
 
11760
         exported) ;;
 
11761
         yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
 
11762
         *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
 
11763
       esac
 
11764
      
 
11765
fi
 
11766
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
 
11767
$as_echo "$gl_cv_func_getopt_gnu" >&6; }
 
11768
    if test "$gl_cv_func_getopt_gnu" = "no"; then
 
11769
      gl_replace_getopt=yes
 
11770
    fi
 
11771
  fi
 
11772
 
 
11773
 
 
11774
  
 
11775
  
 
11776
  
 
11777
  
 
11778
  if test -n "$gl_replace_getopt"; then :
 
11779
  
 
11780
    
 
11781
    
 
11782
  GETOPT_H=getopt.h
 
11783
  
 
11784
$as_echo "@%:@define __GETOPT_PREFIX rpl_" >>confdefs.h
 
11785
 
 
11786
  
 
11787
 
 
11788
    GNULIB_UNISTD_H_GETOPT=1
 
11789
    
 
11790
  
 
11791
  
 
11792
    
 
11793
      
 
11794
      
 
11795
    
 
11796
  
 
11797
  gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
 
11798
 
 
11799
  
 
11800
  
 
11801
  
 
11802
    
 
11803
      
 
11804
      
 
11805
    
 
11806
  
 
11807
  gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
 
11808
 
 
11809
  
 
11810
  
 
11811
 
 
11812
 
 
11813
  
 
11814
fi
 
11815
 
 
11816
 
 
11817
 
 
11818
  GNULIB_NL_LANGINFO=0;  
 
11819
    HAVE_NL_LANGINFO=1;    
 
11820
  REPLACE_NL_LANGINFO=0; 
 
11821
 
 
11822
 
 
11823
 
 
11824
 
 
11825
        
 
11826
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
 
11827
$as_echo_n "checking for working fcntl.h... " >&6; }
 
11828
if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
 
11829
  $as_echo_n "(cached) " >&6
 
11830
else
 
11831
  if test "$cross_compiling" = yes; then :
 
11832
  gl_cv_header_working_fcntl_h=cross-compiling
 
11833
else
 
11834
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11835
/* end confdefs.h.  */
 
11836
#include <sys/types.h>
 
11837
           #include <sys/stat.h>
 
11838
           #include <unistd.h>
 
11839
           #include <fcntl.h>
 
11840
           #ifndef O_NOATIME
 
11841
            #define O_NOATIME 0
 
11842
           #endif
 
11843
           #ifndef O_NOFOLLOW
 
11844
            #define O_NOFOLLOW 0
 
11845
           #endif
 
11846
           static int const constants[] =
 
11847
            {
 
11848
              O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
 
11849
              O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
 
11850
            };
 
11851
          
 
11852
int
 
11853
main (void)
 
11854
{
 
11855
 
 
11856
            int status = !constants;
 
11857
            {
 
11858
              static char const sym[] = "conftest.sym";
 
11859
              if (symlink (".", sym) != 0
 
11860
                  || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
 
11861
                status |= 32;
 
11862
              unlink (sym);
 
11863
            }
 
11864
            {
 
11865
              static char const file[] = "confdefs.h";
 
11866
              int fd = open (file, O_RDONLY | O_NOATIME);
 
11867
              char c;
 
11868
              struct stat st0, st1;
 
11869
              if (fd < 0
 
11870
                  || fstat (fd, &st0) != 0
 
11871
                  || sleep (1) != 0
 
11872
                  || read (fd, &c, 1) != 1
 
11873
                  || close (fd) != 0
 
11874
                  || stat (file, &st1) != 0
 
11875
                  || st0.st_atime != st1.st_atime)
 
11876
                status |= 64;
 
11877
            }
 
11878
            return status;
 
11879
  ;
 
11880
  return 0;
 
11881
}
 
11882
_ACEOF
 
11883
if ac_fn_c_try_run "$LINENO"; then :
 
11884
  gl_cv_header_working_fcntl_h=yes
 
11885
else
 
11886
  case $? in #(
 
11887
        32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
 
11888
        64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
 
11889
        96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
 
11890
         *) gl_cv_header_working_fcntl_h='no';;
 
11891
        esac
 
11892
fi
 
11893
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
11894
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
11895
fi
 
11896
 
 
11897
fi
 
11898
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
 
11899
$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
 
11900
 
 
11901
  case $gl_cv_header_working_fcntl_h in #(
 
11902
  *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
 
11903
  *) ac_val=1;;
 
11904
  esac
 
11905
  
 
11906
cat >>confdefs.h <<_ACEOF
 
11907
@%:@define HAVE_WORKING_O_NOATIME $ac_val
 
11908
_ACEOF
 
11909
 
 
11910
 
 
11911
  case $gl_cv_header_working_fcntl_h in #(
 
11912
  *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
 
11913
  *) ac_val=1;;
 
11914
  esac
 
11915
  
 
11916
cat >>confdefs.h <<_ACEOF
 
11917
@%:@define HAVE_WORKING_O_NOFOLLOW $ac_val
 
11918
_ACEOF
 
11919
 
 
11920
 
 
11921
 
 
11922
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
 
11923
$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
 
11924
if test "${ac_cv_gnu_library_2_1+set}" = set; then :
 
11925
  $as_echo_n "(cached) " >&6
 
11926
else
 
11927
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11928
/* end confdefs.h.  */
 
11929
 
 
11930
#include <features.h>
 
11931
#ifdef __GNU_LIBRARY__
 
11932
 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
 
11933
  Lucky GNU user
 
11934
 #endif
 
11935
#endif
 
11936
        
 
11937
_ACEOF
 
11938
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
11939
  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
 
11940
  ac_cv_gnu_library_2_1=yes
 
11941
else
 
11942
  ac_cv_gnu_library_2_1=no
 
11943
fi
 
11944
rm -f conftest*
 
11945
 
 
11946
      
 
11947
    
 
11948
fi
 
11949
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
 
11950
$as_echo "$ac_cv_gnu_library_2_1" >&6; }
 
11951
    
 
11952
    GLIBC21="$ac_cv_gnu_library_2_1"
 
11953
  
 
11954
 
 
11955
 
 
11956
  GNULIB__EXIT=0;         
 
11957
  GNULIB_ATOLL=0;         
 
11958
  GNULIB_CALLOC_POSIX=0;  
 
11959
  GNULIB_CANONICALIZE_FILE_NAME=0;  
 
11960
  GNULIB_GETLOADAVG=0;    
 
11961
  GNULIB_GETSUBOPT=0;     
 
11962
  GNULIB_GRANTPT=0;       
 
11963
  GNULIB_MALLOC_POSIX=0;  
 
11964
  GNULIB_MKDTEMP=0;       
 
11965
  GNULIB_MKOSTEMP=0;      
 
11966
  GNULIB_MKOSTEMPS=0;     
 
11967
  GNULIB_MKSTEMP=0;       
 
11968
  GNULIB_MKSTEMPS=0;      
 
11969
  GNULIB_PTSNAME=0;       
 
11970
  GNULIB_PUTENV=0;        
 
11971
  GNULIB_RANDOM_R=0;      
 
11972
  GNULIB_REALLOC_POSIX=0; 
 
11973
  GNULIB_REALPATH=0;      
 
11974
  GNULIB_RPMATCH=0;       
 
11975
  GNULIB_SETENV=0;        
 
11976
  GNULIB_STRTOD=0;        
 
11977
  GNULIB_STRTOLL=0;       
 
11978
  GNULIB_STRTOULL=0;      
 
11979
  GNULIB_UNLOCKPT=0;      
 
11980
  GNULIB_UNSETENV=0;      
 
11981
    HAVE__EXIT=1;              
 
11982
  HAVE_ATOLL=1;              
 
11983
  HAVE_CANONICALIZE_FILE_NAME=1;  
 
11984
  HAVE_DECL_GETLOADAVG=1;    
 
11985
  HAVE_GETSUBOPT=1;          
 
11986
  HAVE_GRANTPT=1;            
 
11987
  HAVE_MKDTEMP=1;            
 
11988
  HAVE_MKOSTEMP=1;           
 
11989
  HAVE_MKOSTEMPS=1;          
 
11990
  HAVE_MKSTEMP=1;            
 
11991
  HAVE_MKSTEMPS=1;           
 
11992
  HAVE_PTSNAME=1;            
 
11993
  HAVE_RANDOM_R=1;           
 
11994
  HAVE_REALPATH=1;           
 
11995
  HAVE_RPMATCH=1;            
 
11996
  HAVE_SETENV=1;             
 
11997
  HAVE_STRTOD=1;             
 
11998
  HAVE_STRTOLL=1;            
 
11999
  HAVE_STRTOULL=1;           
 
12000
  HAVE_STRUCT_RANDOM_DATA=1; 
 
12001
  HAVE_SYS_LOADAVG_H=0;      
 
12002
  HAVE_UNLOCKPT=1;           
 
12003
  HAVE_UNSETENV=1;           
 
12004
  REPLACE_CALLOC=0;          
 
12005
  REPLACE_CANONICALIZE_FILE_NAME=0;  
 
12006
  REPLACE_MALLOC=0;          
 
12007
  REPLACE_MKSTEMP=0;         
 
12008
  REPLACE_PUTENV=0;          
 
12009
  REPLACE_REALLOC=0;         
 
12010
  REPLACE_REALPATH=0;        
 
12011
  REPLACE_SETENV=0;          
 
12012
  REPLACE_STRTOD=0;          
 
12013
  REPLACE_UNSETENV=0;        
 
12014
 
 
12015
 
 
12016
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
 
12017
$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
 
12018
if test "${gl_cv_func_malloc_posix+set}" = set; then :
 
12019
  $as_echo_n "(cached) " >&6
 
12020
else
 
12021
  
 
12022
                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12023
/* end confdefs.h.  */
 
12024
 
 
12025
int
 
12026
main (void)
 
12027
{
 
12028
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
 
12029
             choke me
 
12030
             #endif
 
12031
            
 
12032
  ;
 
12033
  return 0;
 
12034
}
 
12035
_ACEOF
 
12036
if ac_fn_c_try_compile "$LINENO"; then :
 
12037
  gl_cv_func_malloc_posix=yes
 
12038
else
 
12039
  gl_cv_func_malloc_posix=no
 
12040
fi
 
12041
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12042
    
 
12043
fi
 
12044
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
 
12045
$as_echo "$gl_cv_func_malloc_posix" >&6; }
 
12046
 
 
12047
 
 
12048
 
 
12049
 
 
12050
 
 
12051
 
 
12052
  
 
12053
  
 
12054
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
 
12055
$as_echo_n "checking for a traditional japanese locale... " >&6; }
 
12056
if test "${gt_cv_locale_ja+set}" = set; then :
 
12057
  $as_echo_n "(cached) " >&6
 
12058
else
 
12059
  
 
12060
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12061
/* end confdefs.h.  */
 
12062
 
 
12063
#include <locale.h>
 
12064
#include <time.h>
 
12065
#if HAVE_LANGINFO_CODESET
 
12066
# include <langinfo.h>
 
12067
#endif
 
12068
#include <stdlib.h>
 
12069
#include <string.h>
 
12070
struct tm t;
 
12071
char buf[16];
 
12072
int main ()
 
12073
{
 
12074
  const char *p;
 
12075
  /* Check whether the given locale name is recognized by the system.  */
 
12076
  if (setlocale (LC_ALL, "") == NULL) return 1;
 
12077
  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
 
12078
     On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
 
12079
     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
 
12080
     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
 
12081
     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
 
12082
     some unit tests fail.  */
 
12083
#if HAVE_LANGINFO_CODESET
 
12084
  {
 
12085
    const char *cs = nl_langinfo (CODESET);
 
12086
    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
 
12087
      return 1;
 
12088
  }
 
12089
#endif
 
12090
#ifdef __CYGWIN__
 
12091
  /* On Cygwin, avoid locale names without encoding suffix, because the
 
12092
     locale_charset() function relies on the encoding suffix.  Note that
 
12093
     LC_ALL is set on the command line.  */
 
12094
  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
 
12095
#endif
 
12096
  /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
 
12097
     on Cygwin 1.5.x.  */
 
12098
  if (MB_CUR_MAX == 1)
 
12099
    return 1;
 
12100
  /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
 
12101
     This excludes the UTF-8 encoding.  */
 
12102
  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
 
12103
  if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
 
12104
  for (p = buf; *p != '\0'; p++)
 
12105
    if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
 
12106
      return 1;
 
12107
  return 0;
 
12108
}
 
12109
      
 
12110
_ACEOF
 
12111
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
12112
  (eval $ac_link) 2>&5
 
12113
  ac_status=$?
 
12114
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12115
  test $ac_status = 0; } && test -s conftest$ac_exeext; then
 
12116
      # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
 
12117
      # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
 
12118
      # configure script would override the LC_ALL setting. Likewise for
 
12119
      # LC_CTYPE, which is also set at the beginning of the configure script.
 
12120
      # Test for the AIX locale name.
 
12121
      if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
12122
        gt_cv_locale_ja=ja_JP
 
12123
      else
 
12124
        # Test for the locale name with explicit encoding suffix.
 
12125
        if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
12126
          gt_cv_locale_ja=ja_JP.EUC-JP
 
12127
        else
 
12128
          # Test for the HP-UX, OSF/1, NetBSD locale name.
 
12129
          if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
12130
            gt_cv_locale_ja=ja_JP.eucJP
 
12131
          else
 
12132
            # Test for the IRIX, FreeBSD locale name.
 
12133
            if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
12134
              gt_cv_locale_ja=ja_JP.EUC
 
12135
            else
 
12136
              # Test for the Solaris 7 locale name.
 
12137
              if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
12138
                gt_cv_locale_ja=ja
 
12139
              else
 
12140
                # Special test for NetBSD 1.6.
 
12141
                if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
 
12142
                  gt_cv_locale_ja=ja_JP.eucJP
 
12143
                else
 
12144
                  # None found.
 
12145
                  gt_cv_locale_ja=none
 
12146
                fi
 
12147
              fi
 
12148
            fi
 
12149
          fi
 
12150
        fi
 
12151
      fi
 
12152
    fi
 
12153
    rm -fr conftest*
 
12154
  
 
12155
fi
 
12156
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
 
12157
$as_echo "$gt_cv_locale_ja" >&6; }
 
12158
  LOCALE_JA=$gt_cv_locale_ja
 
12159
  
 
12160
 
 
12161
 
 
12162
  
 
12163
  
 
12164
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
 
12165
$as_echo_n "checking for a transitional chinese locale... " >&6; }
 
12166
if test "${gt_cv_locale_zh_CN+set}" = set; then :
 
12167
  $as_echo_n "(cached) " >&6
 
12168
else
 
12169
  
 
12170
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12171
/* end confdefs.h.  */
 
12172
 
 
12173
#include <locale.h>
 
12174
#include <stdlib.h>
 
12175
#include <time.h>
 
12176
#if HAVE_LANGINFO_CODESET
 
12177
# include <langinfo.h>
 
12178
#endif
 
12179
#include <stdlib.h>
 
12180
#include <string.h>
 
12181
struct tm t;
 
12182
char buf[16];
 
12183
int main ()
 
12184
{
 
12185
  const char *p;
 
12186
  /* Check whether the given locale name is recognized by the system.  */
 
12187
  if (setlocale (LC_ALL, "") == NULL) return 1;
 
12188
  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
 
12189
     On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
 
12190
     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
 
12191
     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
 
12192
     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
 
12193
     some unit tests fail.  */
 
12194
#if HAVE_LANGINFO_CODESET
 
12195
  {
 
12196
    const char *cs = nl_langinfo (CODESET);
 
12197
    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
 
12198
      return 1;
 
12199
  }
 
12200
#endif
 
12201
#ifdef __CYGWIN__
 
12202
  /* On Cygwin, avoid locale names without encoding suffix, because the
 
12203
     locale_charset() function relies on the encoding suffix.  Note that
 
12204
     LC_ALL is set on the command line.  */
 
12205
  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
 
12206
#endif
 
12207
  /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
 
12208
     This excludes the UTF-8 encoding.  */
 
12209
  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
 
12210
  if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
 
12211
  for (p = buf; *p != '\0'; p++)
 
12212
    if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
 
12213
      return 1;
 
12214
  /* Check whether a typical GB18030 multibyte sequence is recognized as a
 
12215
     single wide character.  This excludes the GB2312 and GBK encodings.  */
 
12216
  if (mblen ("\203\062\332\066", 5) != 4)
 
12217
    return 1;
 
12218
  return 0;
 
12219
}
 
12220
      
 
12221
_ACEOF
 
12222
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
12223
  (eval $ac_link) 2>&5
 
12224
  ac_status=$?
 
12225
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12226
  test $ac_status = 0; } && test -s conftest$ac_exeext; then
 
12227
      # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
 
12228
      # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
 
12229
      # configure script would override the LC_ALL setting. Likewise for
 
12230
      # LC_CTYPE, which is also set at the beginning of the configure script.
 
12231
      # Test for the locale name without encoding suffix.
 
12232
      if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
12233
        gt_cv_locale_zh_CN=zh_CN
 
12234
      else
 
12235
        # Test for the locale name with explicit encoding suffix.
 
12236
        if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
12237
          gt_cv_locale_zh_CN=zh_CN.GB18030
 
12238
        else
 
12239
          # None found.
 
12240
          gt_cv_locale_zh_CN=none
 
12241
        fi
 
12242
      fi
 
12243
    else
 
12244
      # If there was a link error, due to mblen(), the system is so old that
 
12245
      # it certainly doesn't have a chinese locale.
 
12246
      gt_cv_locale_zh_CN=none
 
12247
    fi
 
12248
    rm -fr conftest*
 
12249
  
 
12250
fi
 
12251
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
 
12252
$as_echo "$gt_cv_locale_zh_CN" >&6; }
 
12253
  LOCALE_ZH_CN=$gt_cv_locale_zh_CN
 
12254
  
 
12255
 
 
12256
 
 
12257
  
 
12258
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
 
12259
$as_echo_n "checking for a french Unicode locale... " >&6; }
 
12260
if test "${gt_cv_locale_fr_utf8+set}" = set; then :
 
12261
  $as_echo_n "(cached) " >&6
 
12262
else
 
12263
  
 
12264
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12265
/* end confdefs.h.  */
 
12266
 
 
12267
#include <locale.h>
 
12268
#include <time.h>
 
12269
#if HAVE_LANGINFO_CODESET
 
12270
# include <langinfo.h>
 
12271
#endif
 
12272
#include <stdlib.h>
 
12273
#include <string.h>
 
12274
struct tm t;
 
12275
char buf[16];
 
12276
int main () {
 
12277
  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
 
12278
     imitates locale dependent behaviour by looking at the environment
 
12279
     variables, and all locales use the UTF-8 encoding.  */
 
12280
#if !(defined __BEOS__ || defined __HAIKU__)
 
12281
  /* Check whether the given locale name is recognized by the system.  */
 
12282
  if (setlocale (LC_ALL, "") == NULL) return 1;
 
12283
  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
 
12284
     On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
 
12285
     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
 
12286
     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
 
12287
     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
 
12288
     some unit tests fail.  */
 
12289
# if HAVE_LANGINFO_CODESET
 
12290
  {
 
12291
    const char *cs = nl_langinfo (CODESET);
 
12292
    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
 
12293
      return 1;
 
12294
  }
 
12295
# endif
 
12296
# ifdef __CYGWIN__
 
12297
  /* On Cygwin, avoid locale names without encoding suffix, because the
 
12298
     locale_charset() function relies on the encoding suffix.  Note that
 
12299
     LC_ALL is set on the command line.  */
 
12300
  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
 
12301
# endif
 
12302
  /* Check whether in the abbreviation of the second month, the second
 
12303
     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
 
12304
     two bytes long, with UTF-8 encoding.  */
 
12305
  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
 
12306
  if (strftime (buf, sizeof (buf), "%b", &t) < 4
 
12307
      || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
 
12308
    return 1;
 
12309
#endif
 
12310
  /* Check whether the decimal separator is a comma.
 
12311
     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
 
12312
     are nl_langinfo(RADIXCHAR) are both ".".  */
 
12313
  if (localeconv () ->decimal_point[0] != ',') return 1;
 
12314
  return 0;
 
12315
}
 
12316
      
 
12317
_ACEOF
 
12318
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
12319
  (eval $ac_link) 2>&5
 
12320
  ac_status=$?
 
12321
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12322
  test $ac_status = 0; } && test -s conftest$ac_exeext; then
 
12323
      # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
 
12324
      # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
 
12325
      # configure script would override the LC_ALL setting. Likewise for
 
12326
      # LC_CTYPE, which is also set at the beginning of the configure script.
 
12327
      # Test for the usual locale name.
 
12328
      if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
12329
        gt_cv_locale_fr_utf8=fr_FR
 
12330
      else
 
12331
        # Test for the locale name with explicit encoding suffix.
 
12332
        if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
12333
          gt_cv_locale_fr_utf8=fr_FR.UTF-8
 
12334
        else
 
12335
          # Test for the Solaris 7 locale name.
 
12336
          if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
12337
            gt_cv_locale_fr_utf8=fr.UTF-8
 
12338
          else
 
12339
            # None found.
 
12340
            gt_cv_locale_fr_utf8=none
 
12341
          fi
 
12342
        fi
 
12343
      fi
 
12344
    fi
 
12345
    rm -fr conftest*
 
12346
  
 
12347
fi
 
12348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
 
12349
$as_echo "$gt_cv_locale_fr_utf8" >&6; }
 
12350
  LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
 
12351
  
 
12352
 
 
12353
 
 
12354
 
 
12355
 
 
12356
 
 
12357
 
 
12358
  GNULIB_MEMCHR=0;      
 
12359
  GNULIB_MEMMEM=0;      
 
12360
  GNULIB_MEMPCPY=0;     
 
12361
  GNULIB_MEMRCHR=0;     
 
12362
  GNULIB_RAWMEMCHR=0;   
 
12363
  GNULIB_STPCPY=0;      
 
12364
  GNULIB_STPNCPY=0;     
 
12365
  GNULIB_STRCHRNUL=0;   
 
12366
  GNULIB_STRDUP=0;      
 
12367
  GNULIB_STRNCAT=0;     
 
12368
  GNULIB_STRNDUP=0;     
 
12369
  GNULIB_STRNLEN=0;     
 
12370
  GNULIB_STRPBRK=0;     
 
12371
  GNULIB_STRSEP=0;      
 
12372
  GNULIB_STRSTR=0;      
 
12373
  GNULIB_STRCASESTR=0;  
 
12374
  GNULIB_STRTOK_R=0;    
 
12375
  GNULIB_MBSLEN=0;      
 
12376
  GNULIB_MBSNLEN=0;     
 
12377
  GNULIB_MBSCHR=0;      
 
12378
  GNULIB_MBSRCHR=0;     
 
12379
  GNULIB_MBSSTR=0;      
 
12380
  GNULIB_MBSCASECMP=0;  
 
12381
  GNULIB_MBSNCASECMP=0; 
 
12382
  GNULIB_MBSPCASECMP=0; 
 
12383
  GNULIB_MBSCASESTR=0;  
 
12384
  GNULIB_MBSCSPN=0;     
 
12385
  GNULIB_MBSPBRK=0;     
 
12386
  GNULIB_MBSSPN=0;      
 
12387
  GNULIB_MBSSEP=0;      
 
12388
  GNULIB_MBSTOK_R=0;    
 
12389
  GNULIB_STRERROR=0;    
 
12390
  GNULIB_STRSIGNAL=0;   
 
12391
  GNULIB_STRVERSCMP=0;  
 
12392
  HAVE_MBSLEN=0;        
 
12393
    HAVE_MEMCHR=1;                
 
12394
  HAVE_DECL_MEMMEM=1;           
 
12395
  HAVE_MEMPCPY=1;               
 
12396
  HAVE_DECL_MEMRCHR=1;          
 
12397
  HAVE_RAWMEMCHR=1;             
 
12398
  HAVE_STPCPY=1;                
 
12399
  HAVE_STPNCPY=1;               
 
12400
  HAVE_STRCHRNUL=1;             
 
12401
  HAVE_DECL_STRDUP=1;           
 
12402
  HAVE_DECL_STRNDUP=1;          
 
12403
  HAVE_DECL_STRNLEN=1;          
 
12404
  HAVE_STRPBRK=1;               
 
12405
  HAVE_STRSEP=1;                
 
12406
  HAVE_STRCASESTR=1;            
 
12407
  HAVE_DECL_STRTOK_R=1;         
 
12408
  HAVE_DECL_STRSIGNAL=1;        
 
12409
  HAVE_STRVERSCMP=1;            
 
12410
  REPLACE_MEMCHR=0;             
 
12411
  REPLACE_MEMMEM=0;             
 
12412
  REPLACE_STPNCPY=0;            
 
12413
  REPLACE_STRDUP=0;             
 
12414
  REPLACE_STRSTR=0;             
 
12415
  REPLACE_STRCASESTR=0;         
 
12416
  REPLACE_STRERROR=0;           
 
12417
  REPLACE_STRNCAT=0;            
 
12418
  REPLACE_STRNDUP=0;            
 
12419
  REPLACE_STRNLEN=0;            
 
12420
  REPLACE_STRSIGNAL=0;          
 
12421
  REPLACE_STRTOK_R=0;           
 
12422
  UNDEFINE_STRTOK_R=0;          
 
12423
 
 
12424
 
 
12425
 
 
12426
 
 
12427
    
 
12428
    
 
12429
  
 
12430
 
 
12431
    
 
12432
 
 
12433
  # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
 
12434
  # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
 
12435
  # irrelevant for anonymous mappings.
 
12436
  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
 
12437
if test "x$ac_cv_func_mmap" = x""yes; then :
 
12438
  gl_have_mmap=yes
 
12439
else
 
12440
  gl_have_mmap=no
 
12441
fi
 
12442
 
 
12443
 
 
12444
  # Try to allow MAP_ANONYMOUS.
 
12445
  gl_have_mmap_anonymous=no
 
12446
  if test $gl_have_mmap = yes; then
 
12447
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
 
12448
$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
 
12449
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12450
/* end confdefs.h.  */
 
12451
 
 
12452
#include <sys/mman.h>
 
12453
#ifdef MAP_ANONYMOUS
 
12454
    I cant identify this map.
 
12455
#endif
 
12456
 
 
12457
_ACEOF
 
12458
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
12459
  $EGREP "I cant identify this map." >/dev/null 2>&1; then :
 
12460
  gl_have_mmap_anonymous=yes
 
12461
fi
 
12462
rm -f conftest*
 
12463
 
 
12464
    if test $gl_have_mmap_anonymous != yes; then
 
12465
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12466
/* end confdefs.h.  */
 
12467
 
 
12468
#include <sys/mman.h>
 
12469
#ifdef MAP_ANON
 
12470
    I cant identify this map.
 
12471
#endif
 
12472
 
 
12473
_ACEOF
 
12474
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
12475
  $EGREP "I cant identify this map." >/dev/null 2>&1; then :
 
12476
  
 
12477
$as_echo "@%:@define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
 
12478
 
 
12479
         gl_have_mmap_anonymous=yes
 
12480
fi
 
12481
rm -f conftest*
 
12482
 
 
12483
    fi
 
12484
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
 
12485
$as_echo "$gl_have_mmap_anonymous" >&6; }
 
12486
    if test $gl_have_mmap_anonymous = yes; then
 
12487
      
 
12488
$as_echo "@%:@define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
 
12489
 
 
12490
    fi
 
12491
  fi
 
12492
 
 
12493
  
 
12494
  
 
12495
 
 
12496
    
 
12497
  
 
12498
  if test $ac_cv_func_memchr = yes; then
 
12499
    # Detect platform-specific bugs in some versions of glibc:
 
12500
    # memchr should not dereference anything with length 0
 
12501
    #   http://bugzilla.redhat.com/499689
 
12502
    # memchr should not dereference overestimated length after a match
 
12503
    #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
 
12504
    #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
 
12505
    # Assume that memchr works on platforms that lack mprotect.
 
12506
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
 
12507
$as_echo_n "checking whether memchr works... " >&6; }
 
12508
if test "${gl_cv_func_memchr_works+set}" = set; then :
 
12509
  $as_echo_n "(cached) " >&6
 
12510
else
 
12511
  if test "$cross_compiling" = yes; then :
 
12512
         gl_cv_func_memchr_works="guessing no"
 
12513
else
 
12514
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12515
/* end confdefs.h.  */
 
12516
 
 
12517
#include <string.h>
 
12518
#if HAVE_SYS_MMAN_H
 
12519
# include <fcntl.h>
 
12520
# include <unistd.h>
 
12521
# include <sys/types.h>
 
12522
# include <sys/mman.h>
 
12523
# ifndef MAP_FILE
 
12524
#  define MAP_FILE 0
 
12525
# endif
 
12526
#endif
 
12527
 
 
12528
int
 
12529
main (void)
 
12530
{
 
12531
 
 
12532
  char *fence = NULL;
 
12533
#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
 
12534
# if HAVE_MAP_ANONYMOUS
 
12535
  const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
 
12536
  const int fd = -1;
 
12537
# else /* !HAVE_MAP_ANONYMOUS */
 
12538
  const int flags = MAP_FILE | MAP_PRIVATE;
 
12539
  int fd = open ("/dev/zero", O_RDONLY, 0666);
 
12540
  if (fd >= 0)
 
12541
# endif
 
12542
    {
 
12543
      int pagesize = getpagesize ();
 
12544
      char *two_pages =
 
12545
        (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
 
12546
                       flags, fd, 0);
 
12547
      if (two_pages != (char *)(-1)
 
12548
          && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
 
12549
        fence = two_pages + pagesize;
 
12550
    }
 
12551
#endif
 
12552
  if (fence)
 
12553
    {
 
12554
      if (memchr (fence, 0, 0))
 
12555
        return 1;
 
12556
      strcpy (fence - 9, "12345678");
 
12557
      if (memchr (fence - 9, 0, 79) != fence - 1)
 
12558
        return 2;
 
12559
      if (memchr (fence - 1, 0, 3) != fence - 1)
 
12560
        return 3;
 
12561
    }
 
12562
  return 0;
 
12563
 
 
12564
  ;
 
12565
  return 0;
 
12566
}
 
12567
_ACEOF
 
12568
if ac_fn_c_try_run "$LINENO"; then :
 
12569
  gl_cv_func_memchr_works=yes
 
12570
else
 
12571
  gl_cv_func_memchr_works=no
 
12572
fi
 
12573
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
12574
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
12575
fi
 
12576
 
 
12577
fi
 
12578
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
 
12579
$as_echo "$gl_cv_func_memchr_works" >&6; }
 
12580
    if test "$gl_cv_func_memchr_works" != yes; then
 
12581
      REPLACE_MEMCHR=1
 
12582
    fi
 
12583
  else
 
12584
    HAVE_MEMCHR=0
 
12585
  fi
 
12586
  if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
 
12587
    
 
12588
  
 
12589
  
 
12590
    
 
12591
      
 
12592
      
 
12593
    
 
12594
  
 
12595
  gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
 
12596
 
 
12597
    
 
12598
  for ac_header in bp-sym.h
 
12599
do :
 
12600
  ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
 
12601
if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
 
12602
  cat >>confdefs.h <<_ACEOF
 
12603
@%:@define HAVE_BP_SYM_H 1
 
12604
_ACEOF
 
12605
 
 
12606
fi
 
12607
 
 
12608
done
 
12609
 
 
12610
 
 
12611
  fi
 
12612
 
 
12613
 
 
12614
    gl_cv_c_multiarch=no
 
12615
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12616
/* end confdefs.h.  */
 
12617
#ifndef __APPLE_CC__
 
12618
         not a universal capable compiler
 
12619
        #endif
 
12620
        typedef int dummy;
 
12621
      
 
12622
_ACEOF
 
12623
if ac_fn_c_try_compile "$LINENO"; then :
 
12624
  
 
12625
               arch=
 
12626
     prev=
 
12627
     for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
 
12628
       if test -n "$prev"; then
 
12629
         case $word in
 
12630
           i?86 | x86_64 | ppc | ppc64)
 
12631
             if test -z "$arch" || test "$arch" = "$word"; then
 
12632
               arch="$word"
 
12633
             else
 
12634
               gl_cv_c_multiarch=yes
 
12635
             fi
 
12636
             ;;
 
12637
         esac
 
12638
         prev=
 
12639
       else
 
12640
         if test "x$word" = "x-arch"; then
 
12641
           prev=arch
 
12642
         fi
 
12643
       fi
 
12644
     done
 
12645
    
 
12646
fi
 
12647
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12648
  if test $gl_cv_c_multiarch = yes; then
 
12649
    
 
12650
$as_echo "@%:@define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
 
12651
 
 
12652
    APPLE_UNIVERSAL_BUILD=1
 
12653
  else
 
12654
    APPLE_UNIVERSAL_BUILD=0
 
12655
  fi
 
12656
  
 
12657
 
 
12658
 
 
12659
 
 
12660
 
 
12661
 
 
12662
 
 
12663
 
 
12664
 
 
12665
 
 
12666
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
 
12667
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
 
12668
if test "${ac_cv_header_stdbool_h+set}" = set; then :
 
12669
  $as_echo_n "(cached) " >&6
 
12670
else
 
12671
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12672
/* end confdefs.h.  */
 
12673
 
 
12674
             #include <stdbool.h>
 
12675
             #ifndef bool
 
12676
              "error: bool is not defined"
 
12677
             #endif
 
12678
             #ifndef false
 
12679
              "error: false is not defined"
 
12680
             #endif
 
12681
             #if false
 
12682
              "error: false is not 0"
 
12683
             #endif
 
12684
             #ifndef true
 
12685
              "error: true is not defined"
 
12686
             #endif
 
12687
             #if true != 1
 
12688
              "error: true is not 1"
 
12689
             #endif
 
12690
             #ifndef __bool_true_false_are_defined
 
12691
              "error: __bool_true_false_are_defined is not defined"
 
12692
             #endif
 
12693
 
 
12694
             struct s { _Bool s: 1; _Bool t; } s;
 
12695
 
 
12696
             char a[true == 1 ? 1 : -1];
 
12697
             char b[false == 0 ? 1 : -1];
 
12698
             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
 
12699
             char d[(bool) 0.5 == true ? 1 : -1];
 
12700
             /* See body of main program for 'e'.  */
 
12701
             char f[(_Bool) 0.0 == false ? 1 : -1];
 
12702
             char g[true];
 
12703
             char h[sizeof (_Bool)];
 
12704
             char i[sizeof s.t];
 
12705
             enum { j = false, k = true, l = false * true, m = true * 256 };
 
12706
             /* The following fails for
 
12707
                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
 
12708
             _Bool n[m];
 
12709
             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
 
12710
             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
 
12711
             /* Catch a bug in an HP-UX C compiler.  See
 
12712
                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
 
12713
                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
 
12714
              */
 
12715
             _Bool q = true;
 
12716
             _Bool *pq = &q;
 
12717
           
 
12718
int
 
12719
main (void)
 
12720
{
 
12721
 
 
12722
             bool e = &s;
 
12723
             *pq |= q;
 
12724
             *pq |= ! q;
 
12725
             /* Refer to every declared value, to avoid compiler optimizations.  */
 
12726
             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
 
12727
                     + !m + !n + !o + !p + !q + !pq);
 
12728
           
 
12729
  ;
 
12730
  return 0;
 
12731
}
 
12732
_ACEOF
 
12733
if ac_fn_c_try_compile "$LINENO"; then :
 
12734
  ac_cv_header_stdbool_h=yes
 
12735
else
 
12736
  ac_cv_header_stdbool_h=no
 
12737
fi
 
12738
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12739
fi
 
12740
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
 
12741
$as_echo "$ac_cv_header_stdbool_h" >&6; }
 
12742
   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
 
12743
if test "x$ac_cv_type__Bool" = x""yes; then :
 
12744
  
 
12745
cat >>confdefs.h <<_ACEOF
 
12746
@%:@define HAVE__BOOL 1
 
12747
_ACEOF
 
12748
 
 
12749
 
 
12750
fi
 
12751
 
 
12752
   if test $ac_cv_header_stdbool_h = yes; then
 
12753
     
 
12754
$as_echo "@%:@define HAVE_STDBOOL_H 1" >>confdefs.h
 
12755
 
 
12756
   fi
 
12757
 
 
12758
    REPLACE_NULL=0;                
 
12759
  HAVE_WCHAR_T=1;                
 
12760
  STDDEF_H='';                   
 
12761
 
 
12762
 
 
12763
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
 
12764
$as_echo_n "checking for wchar_t... " >&6; }
 
12765
if test "${gt_cv_c_wchar_t+set}" = set; then :
 
12766
  $as_echo_n "(cached) " >&6
 
12767
else
 
12768
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12769
/* end confdefs.h.  */
 
12770
#include <stddef.h>
 
12771
            wchar_t foo = (wchar_t)'\0';
 
12772
int
 
12773
main (void)
 
12774
{
 
12775
 
 
12776
  ;
 
12777
  return 0;
 
12778
}
 
12779
_ACEOF
 
12780
if ac_fn_c_try_compile "$LINENO"; then :
 
12781
  gt_cv_c_wchar_t=yes
 
12782
else
 
12783
  gt_cv_c_wchar_t=no
 
12784
fi
 
12785
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12786
fi
 
12787
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
 
12788
$as_echo "$gt_cv_c_wchar_t" >&6; }
 
12789
  if test $gt_cv_c_wchar_t = yes; then
 
12790
    
 
12791
$as_echo "@%:@define HAVE_WCHAR_T 1" >>confdefs.h
 
12792
 
 
12793
  fi
 
12794
 
 
12795
 
 
12796
 
 
12797
 
 
12798
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
 
12799
$as_echo_n "checking for long long int... " >&6; }
 
12800
if test "${ac_cv_type_long_long_int+set}" = set; then :
 
12801
  $as_echo_n "(cached) " >&6
 
12802
else
 
12803
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12804
/* end confdefs.h.  */
 
12805
 
 
12806
  /* For now, do not test the preprocessor; as of 2007 there are too many
 
12807
         implementations with broken preprocessors.  Perhaps this can
 
12808
         be revisited in 2012.  In the meantime, code should not expect
 
12809
         #if to work with literals wider than 32 bits.  */
 
12810
      /* Test literals.  */
 
12811
      long long int ll = 9223372036854775807ll;
 
12812
      long long int nll = -9223372036854775807LL;
 
12813
      unsigned long long int ull = 18446744073709551615ULL;
 
12814
      /* Test constant expressions.   */
 
12815
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
12816
                     ? 1 : -1)];
 
12817
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
 
12818
                     ? 1 : -1)];
 
12819
      int i = 63;
 
12820
int
 
12821
main (void)
 
12822
{
 
12823
/* Test availability of runtime routines for shift and division.  */
 
12824
      long long int llmax = 9223372036854775807ll;
 
12825
      unsigned long long int ullmax = 18446744073709551615ull;
 
12826
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
 
12827
              | (llmax / ll) | (llmax % ll)
 
12828
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
 
12829
              | (ullmax / ull) | (ullmax % ull));
 
12830
  ;
 
12831
  return 0;
 
12832
}
 
12833
 
 
12834
_ACEOF
 
12835
if ac_fn_c_try_link "$LINENO"; then :
 
12836
                          if test "$cross_compiling" = yes; then :
 
12837
  ac_cv_type_long_long_int=yes
 
12838
else
 
12839
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12840
/* end confdefs.h.  */
 
12841
@%:@include <limits.h>
 
12842
               @%:@ifndef LLONG_MAX
 
12843
               @%:@ define HALF \
 
12844
                        (1LL << (sizeof (long long int) * CHAR_BIT - 2))
 
12845
               @%:@ define LLONG_MAX (HALF - 1 + HALF)
 
12846
               @%:@endif
 
12847
int
 
12848
main (void)
 
12849
{
 
12850
long long int n = 1;
 
12851
               int i;
 
12852
               for (i = 0; ; i++)
 
12853
                 {
 
12854
                   long long int m = n << i;
 
12855
                   if (m >> i != n)
 
12856
                     return 1;
 
12857
                   if (LLONG_MAX / 2 < m)
 
12858
                     break;
 
12859
                 }
 
12860
               return 0;
 
12861
  ;
 
12862
  return 0;
 
12863
}
 
12864
_ACEOF
 
12865
if ac_fn_c_try_run "$LINENO"; then :
 
12866
  ac_cv_type_long_long_int=yes
 
12867
else
 
12868
  ac_cv_type_long_long_int=no
 
12869
fi
 
12870
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
12871
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
12872
fi
 
12873
 
 
12874
else
 
12875
  ac_cv_type_long_long_int=no
 
12876
fi
 
12877
rm -f core conftest.err conftest.$ac_objext \
 
12878
    conftest$ac_exeext conftest.$ac_ext
 
12879
fi
 
12880
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
 
12881
$as_echo "$ac_cv_type_long_long_int" >&6; }
 
12882
  if test $ac_cv_type_long_long_int = yes; then
 
12883
    
 
12884
$as_echo "@%:@define HAVE_LONG_LONG_INT 1" >>confdefs.h
 
12885
 
 
12886
  fi
 
12887
 
 
12888
 
 
12889
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
 
12890
$as_echo_n "checking for unsigned long long int... " >&6; }
 
12891
if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
 
12892
  $as_echo_n "(cached) " >&6
 
12893
else
 
12894
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12895
/* end confdefs.h.  */
 
12896
 
 
12897
  /* For now, do not test the preprocessor; as of 2007 there are too many
 
12898
         implementations with broken preprocessors.  Perhaps this can
 
12899
         be revisited in 2012.  In the meantime, code should not expect
 
12900
         #if to work with literals wider than 32 bits.  */
 
12901
      /* Test literals.  */
 
12902
      long long int ll = 9223372036854775807ll;
 
12903
      long long int nll = -9223372036854775807LL;
 
12904
      unsigned long long int ull = 18446744073709551615ULL;
 
12905
      /* Test constant expressions.   */
 
12906
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
12907
                     ? 1 : -1)];
 
12908
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
 
12909
                     ? 1 : -1)];
 
12910
      int i = 63;
 
12911
int
 
12912
main (void)
 
12913
{
 
12914
/* Test availability of runtime routines for shift and division.  */
 
12915
      long long int llmax = 9223372036854775807ll;
 
12916
      unsigned long long int ullmax = 18446744073709551615ull;
 
12917
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
 
12918
              | (llmax / ll) | (llmax % ll)
 
12919
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
 
12920
              | (ullmax / ull) | (ullmax % ull));
 
12921
  ;
 
12922
  return 0;
 
12923
}
 
12924
 
 
12925
_ACEOF
 
12926
if ac_fn_c_try_link "$LINENO"; then :
 
12927
  ac_cv_type_unsigned_long_long_int=yes
 
12928
else
 
12929
  ac_cv_type_unsigned_long_long_int=no
 
12930
fi
 
12931
rm -f core conftest.err conftest.$ac_objext \
 
12932
    conftest$ac_exeext conftest.$ac_ext
 
12933
fi
 
12934
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
 
12935
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
 
12936
  if test $ac_cv_type_unsigned_long_long_int = yes; then
 
12937
    
 
12938
$as_echo "@%:@define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
 
12939
 
 
12940
  fi
 
12941
 
 
12942
 
 
12943
 
 
12944
 
 
12945
 
 
12946
 
 
12947
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
 
12948
$as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
 
12949
if test "${gl_cv_prog_as_underscore+set}" = set; then :
 
12950
  $as_echo_n "(cached) " >&6
 
12951
else
 
12952
  cat > conftest.c <<EOF
 
12953
#ifdef __cplusplus
 
12954
extern "C" int foo (void);
 
12955
#endif
 
12956
int foo(void) { return 0; }
 
12957
EOF
 
12958
     # Look for the assembly language name in the .s file.
 
12959
     { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c'
 
12960
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
 
12961
  (eval $ac_try) 2>&5
 
12962
  ac_status=$?
 
12963
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12964
  test $ac_status = 0; }; } >/dev/null 2>&1
 
12965
     if grep _foo conftest.s >/dev/null ; then
 
12966
       gl_cv_prog_as_underscore=yes
 
12967
     else
 
12968
       gl_cv_prog_as_underscore=no
 
12969
     fi
 
12970
     rm -f conftest*
 
12971
    
 
12972
fi
 
12973
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5
 
12974
$as_echo "$gl_cv_prog_as_underscore" >&6; }
 
12975
  if test $gl_cv_prog_as_underscore = yes; then
 
12976
    USER_LABEL_PREFIX=_
 
12977
  else
 
12978
    USER_LABEL_PREFIX=
 
12979
  fi
 
12980
  
 
12981
cat >>confdefs.h <<_ACEOF
 
12982
@%:@define USER_LABEL_PREFIX $USER_LABEL_PREFIX
 
12983
_ACEOF
 
12984
 
 
12985
  ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
 
12986
  
 
12987
 
 
12988
 
 
12989
 
 
12990
 
 
12991
 
 
12992
 
 
12993
    HAVE_STRCASECMP=1;       
 
12994
  HAVE_DECL_STRNCASECMP=1; 
 
12995
 
 
12996
 
 
12997
 
 
12998
 
 
12999
  
 
13000
  
 
13001
  if test -z "$ERRNO_H"; then
 
13002
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
 
13003
$as_echo_n "checking for working strerror function... " >&6; }
 
13004
if test "${gl_cv_func_working_strerror+set}" = set; then :
 
13005
  $as_echo_n "(cached) " >&6
 
13006
else
 
13007
  if test "$cross_compiling" = yes; then :
 
13008
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13009
/* end confdefs.h.  */
 
13010
#include <string.h>
 
13011
              
 
13012
int
 
13013
main (void)
 
13014
{
 
13015
return !*strerror (-2);
 
13016
  ;
 
13017
  return 0;
 
13018
}
 
13019
_ACEOF
 
13020
if ac_fn_c_try_compile "$LINENO"; then :
 
13021
  gl_cv_func_working_strerror=yes
 
13022
else
 
13023
  gl_cv_func_working_strerror=no
 
13024
fi
 
13025
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13026
      
 
13027
else
 
13028
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13029
/* end confdefs.h.  */
 
13030
#include <string.h>
 
13031
           
 
13032
int
 
13033
main (void)
 
13034
{
 
13035
return !*strerror (-2);
 
13036
  ;
 
13037
  return 0;
 
13038
}
 
13039
_ACEOF
 
13040
if ac_fn_c_try_run "$LINENO"; then :
 
13041
  gl_cv_func_working_strerror=yes
 
13042
else
 
13043
  gl_cv_func_working_strerror=no
 
13044
fi
 
13045
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
13046
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
13047
fi
 
13048
 
 
13049
    
 
13050
fi
 
13051
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
 
13052
$as_echo "$gl_cv_func_working_strerror" >&6; }
 
13053
    if test $gl_cv_func_working_strerror = no; then
 
13054
                  REPLACE_STRERROR=1
 
13055
    fi
 
13056
  else
 
13057
            REPLACE_STRERROR=1
 
13058
  fi
 
13059
  if test $REPLACE_STRERROR = 1; then
 
13060
    
 
13061
  ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
 
13062
if test "x$ac_cv_have_decl_strerror" = x""yes; then :
 
13063
  ac_have_decl=1
 
13064
else
 
13065
  ac_have_decl=0
 
13066
fi
 
13067
 
 
13068
cat >>confdefs.h <<_ACEOF
 
13069
@%:@define HAVE_DECL_STRERROR $ac_have_decl
 
13070
_ACEOF
 
13071
 
 
13072
  
 
13073
  if test $ac_cv_header_sys_socket_h != yes; then
 
13074
                    for ac_header in winsock2.h
 
13075
do :
 
13076
  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
 
13077
if test "x$ac_cv_header_winsock2_h" = x""yes; then :
 
13078
  cat >>confdefs.h <<_ACEOF
 
13079
@%:@define HAVE_WINSOCK2_H 1
 
13080
_ACEOF
 
13081
 
 
13082
fi
 
13083
 
 
13084
done
 
13085
 
 
13086
  fi
 
13087
 
 
13088
  fi
 
13089
 
 
13090
 
 
13091
 
 
13092
 
 
13093
  
 
13094
  
 
13095
  
 
13096
  
 
13097
  
 
13098
  
 
13099
 
 
13100
  
 
13101
     if test $gl_cv_have_include_next = yes; then
 
13102
       gl_cv_next_string_h='<'string.h'>'
 
13103
     else
 
13104
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
 
13105
$as_echo_n "checking absolute name of <string.h>... " >&6; }
 
13106
if test "${gl_cv_next_string_h+set}" = set; then :
 
13107
  $as_echo_n "(cached) " >&6
 
13108
else
 
13109
  
 
13110
          if test $ac_cv_header_string_h = yes; then
 
13111
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13112
/* end confdefs.h.  */
 
13113
#include <string.h>
 
13114
               
 
13115
_ACEOF
 
13116
                                                                                                case "$host_os" in
 
13117
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
13118
              *)    gl_absname_cpp="$ac_cpp" ;;
 
13119
            esac
 
13120
                                                gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
13121
               sed -n '\#/string.h#{
 
13122
                 s#.*"\(.*/string.h\)".*#\1#
 
13123
                 s#^/[^/]#//&#
 
13124
                 p
 
13125
                 q
 
13126
               }'`'"'
 
13127
          else
 
13128
            gl_cv_next_string_h='<'string.h'>'
 
13129
          fi
 
13130
          
 
13131
fi
 
13132
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
 
13133
$as_echo "$gl_cv_next_string_h" >&6; }
 
13134
     fi
 
13135
     NEXT_STRING_H=$gl_cv_next_string_h
 
13136
 
 
13137
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
13138
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
13139
       gl_next_as_first_directive='<'string.h'>'
 
13140
     else
 
13141
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
13142
       gl_next_as_first_directive=$gl_cv_next_string_h
 
13143
     fi
 
13144
     NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
 
13145
 
 
13146
     
 
13147
 
 
13148
 
 
13149
        
 
13150
    for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup      strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal      strverscmp; do
 
13151
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
 
13152
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
 
13153
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
 
13154
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
 
13155
  $as_echo_n "(cached) " >&6
 
13156
else
 
13157
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13158
/* end confdefs.h.  */
 
13159
#include <string.h>
 
13160
    
 
13161
int
 
13162
main (void)
 
13163
{
 
13164
@%:@undef $gl_func
 
13165
  (void) $gl_func;
 
13166
  ;
 
13167
  return 0;
 
13168
}
 
13169
_ACEOF
 
13170
if ac_fn_c_try_compile "$LINENO"; then :
 
13171
  eval "$as_gl_Symbol=yes"
 
13172
else
 
13173
  eval "$as_gl_Symbol=no"
 
13174
fi
 
13175
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13176
fi
 
13177
eval ac_res=\$$as_gl_Symbol
 
13178
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
13179
$as_echo "$ac_res" >&6; }
 
13180
     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
 
13181
  cat >>confdefs.h <<_ACEOF
 
13182
@%:@define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
 
13183
_ACEOF
 
13184
 
 
13185
                     eval ac_cv_have_decl_$gl_func=yes
 
13186
fi
 
13187
      done
 
13188
 
 
13189
 
 
13190
 
 
13191
 
 
13192
 
 
13193
  
 
13194
  
 
13195
  
 
13196
  
 
13197
  
 
13198
 
 
13199
  
 
13200
     if test $gl_cv_have_include_next = yes; then
 
13201
       gl_cv_next_strings_h='<'strings.h'>'
 
13202
     else
 
13203
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5
 
13204
$as_echo_n "checking absolute name of <strings.h>... " >&6; }
 
13205
if test "${gl_cv_next_strings_h+set}" = set; then :
 
13206
  $as_echo_n "(cached) " >&6
 
13207
else
 
13208
  
 
13209
          if test $ac_cv_header_strings_h = yes; then
 
13210
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13211
/* end confdefs.h.  */
 
13212
#include <strings.h>
 
13213
               
 
13214
_ACEOF
 
13215
                                                                                                case "$host_os" in
 
13216
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
13217
              *)    gl_absname_cpp="$ac_cpp" ;;
 
13218
            esac
 
13219
                                                gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
13220
               sed -n '\#/strings.h#{
 
13221
                 s#.*"\(.*/strings.h\)".*#\1#
 
13222
                 s#^/[^/]#//&#
 
13223
                 p
 
13224
                 q
 
13225
               }'`'"'
 
13226
          else
 
13227
            gl_cv_next_strings_h='<'strings.h'>'
 
13228
          fi
 
13229
          
 
13230
fi
 
13231
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
 
13232
$as_echo "$gl_cv_next_strings_h" >&6; }
 
13233
     fi
 
13234
     NEXT_STRINGS_H=$gl_cv_next_strings_h
 
13235
 
 
13236
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
13237
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
13238
       gl_next_as_first_directive='<'strings.h'>'
 
13239
     else
 
13240
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
13241
       gl_next_as_first_directive=$gl_cv_next_strings_h
 
13242
     fi
 
13243
     NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
 
13244
 
 
13245
     
 
13246
 
 
13247
 
 
13248
      
 
13249
    for gl_func in strcasecmp strncasecmp; do
 
13250
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
 
13251
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
 
13252
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
 
13253
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
 
13254
  $as_echo_n "(cached) " >&6
 
13255
else
 
13256
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13257
/* end confdefs.h.  */
 
13258
#include <strings.h>
 
13259
    
 
13260
int
 
13261
main (void)
 
13262
{
 
13263
@%:@undef $gl_func
 
13264
  (void) $gl_func;
 
13265
  ;
 
13266
  return 0;
 
13267
}
 
13268
_ACEOF
 
13269
if ac_fn_c_try_compile "$LINENO"; then :
 
13270
  eval "$as_gl_Symbol=yes"
 
13271
else
 
13272
  eval "$as_gl_Symbol=no"
 
13273
fi
 
13274
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13275
fi
 
13276
eval ac_res=\$$as_gl_Symbol
 
13277
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
13278
$as_echo "$ac_res" >&6; }
 
13279
     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
 
13280
  cat >>confdefs.h <<_ACEOF
 
13281
@%:@define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
 
13282
_ACEOF
 
13283
 
 
13284
                     eval ac_cv_have_decl_$gl_func=yes
 
13285
fi
 
13286
      done
 
13287
 
 
13288
 
 
13289
ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
 
13290
if test "x$ac_cv_have_decl_strndup" = x""yes; then :
 
13291
  ac_have_decl=1
 
13292
else
 
13293
  ac_have_decl=0
 
13294
fi
 
13295
 
 
13296
cat >>confdefs.h <<_ACEOF
 
13297
@%:@define HAVE_DECL_STRNDUP $ac_have_decl
 
13298
_ACEOF
 
13299
 
 
13300
 
 
13301
 
 
13302
ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
 
13303
if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
 
13304
  ac_have_decl=1
 
13305
else
 
13306
  ac_have_decl=0
 
13307
fi
 
13308
 
 
13309
cat >>confdefs.h <<_ACEOF
 
13310
@%:@define HAVE_DECL_STRNLEN $ac_have_decl
 
13311
_ACEOF
 
13312
 
 
13313
 
 
13314
  
 
13315
 
 
13316
 
 
13317
 
 
13318
 
 
13319
 
 
13320
 
 
13321
 
 
13322
 
 
13323
 
 
13324
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
 
13325
$as_echo_n "checking for wint_t... " >&6; }
 
13326
if test "${gt_cv_c_wint_t+set}" = set; then :
 
13327
  $as_echo_n "(cached) " >&6
 
13328
else
 
13329
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13330
/* end confdefs.h.  */
 
13331
 
 
13332
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
 
13333
   <wchar.h>.
 
13334
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
 
13335
   before <wchar.h>.  */
 
13336
#include <stddef.h>
 
13337
#include <stdio.h>
 
13338
#include <time.h>
 
13339
#include <wchar.h>
 
13340
            wint_t foo = (wchar_t)'\0';
 
13341
int
 
13342
main (void)
 
13343
{
 
13344
 
 
13345
  ;
 
13346
  return 0;
 
13347
}
 
13348
_ACEOF
 
13349
if ac_fn_c_try_compile "$LINENO"; then :
 
13350
  gt_cv_c_wint_t=yes
 
13351
else
 
13352
  gt_cv_c_wint_t=no
 
13353
fi
 
13354
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13355
fi
 
13356
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
 
13357
$as_echo "$gt_cv_c_wint_t" >&6; }
 
13358
  if test $gt_cv_c_wint_t = yes; then
 
13359
    
 
13360
$as_echo "@%:@define HAVE_WINT_T 1" >>confdefs.h
 
13361
 
 
13362
  fi
 
13363
 
 
13364
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
 
13365
if test "x$ac_cv_type_size_t" = x""yes; then :
 
13366
  
 
13367
else
 
13368
  
 
13369
cat >>confdefs.h <<_ACEOF
 
13370
@%:@define size_t unsigned int
 
13371
_ACEOF
 
13372
 
 
13373
fi
 
13374
 
 
13375
 
 
13376
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
 
13377
$as_echo_n "checking for inttypes.h... " >&6; }
 
13378
if test "${gl_cv_header_inttypes_h+set}" = set; then :
 
13379
  $as_echo_n "(cached) " >&6
 
13380
else
 
13381
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13382
/* end confdefs.h.  */
 
13383
 
 
13384
#include <sys/types.h>
 
13385
#include <inttypes.h>
 
13386
          
 
13387
int
 
13388
main (void)
 
13389
{
 
13390
uintmax_t i = (uintmax_t) -1; return !i;
 
13391
  ;
 
13392
  return 0;
 
13393
}
 
13394
_ACEOF
 
13395
if ac_fn_c_try_compile "$LINENO"; then :
 
13396
  gl_cv_header_inttypes_h=yes
 
13397
else
 
13398
  gl_cv_header_inttypes_h=no
 
13399
fi
 
13400
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13401
fi
 
13402
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
 
13403
$as_echo "$gl_cv_header_inttypes_h" >&6; }
 
13404
  if test $gl_cv_header_inttypes_h = yes; then
 
13405
    
 
13406
cat >>confdefs.h <<_ACEOF
 
13407
@%:@define HAVE_INTTYPES_H_WITH_UINTMAX 1
 
13408
_ACEOF
 
13409
 
 
13410
  fi
 
13411
 
 
13412
 
 
13413
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
 
13414
$as_echo_n "checking for stdint.h... " >&6; }
 
13415
if test "${gl_cv_header_stdint_h+set}" = set; then :
 
13416
  $as_echo_n "(cached) " >&6
 
13417
else
 
13418
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13419
/* end confdefs.h.  */
 
13420
#include <sys/types.h>
 
13421
            #include <stdint.h>
 
13422
int
 
13423
main (void)
 
13424
{
 
13425
uintmax_t i = (uintmax_t) -1; return !i;
 
13426
  ;
 
13427
  return 0;
 
13428
}
 
13429
_ACEOF
 
13430
if ac_fn_c_try_compile "$LINENO"; then :
 
13431
  gl_cv_header_stdint_h=yes
 
13432
else
 
13433
  gl_cv_header_stdint_h=no
 
13434
fi
 
13435
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13436
fi
 
13437
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
 
13438
$as_echo "$gl_cv_header_stdint_h" >&6; }
 
13439
  if test $gl_cv_header_stdint_h = yes; then
 
13440
    
 
13441
cat >>confdefs.h <<_ACEOF
 
13442
@%:@define HAVE_STDINT_H_WITH_UINTMAX 1
 
13443
_ACEOF
 
13444
 
 
13445
  fi
 
13446
 
 
13447
 
 
13448
  
 
13449
  
 
13450
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
 
13451
$as_echo_n "checking for intmax_t... " >&6; }
 
13452
if test "${gt_cv_c_intmax_t+set}" = set; then :
 
13453
  $as_echo_n "(cached) " >&6
 
13454
else
 
13455
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13456
/* end confdefs.h.  */
 
13457
 
 
13458
#include <stddef.h>
 
13459
#include <stdlib.h>
 
13460
#if HAVE_STDINT_H_WITH_UINTMAX
 
13461
#include <stdint.h>
 
13462
#endif
 
13463
#if HAVE_INTTYPES_H_WITH_UINTMAX
 
13464
#include <inttypes.h>
 
13465
#endif
 
13466
          
 
13467
int
 
13468
main (void)
 
13469
{
 
13470
intmax_t x = -1; return !x;
 
13471
  ;
 
13472
  return 0;
 
13473
}
 
13474
_ACEOF
 
13475
if ac_fn_c_try_compile "$LINENO"; then :
 
13476
  gt_cv_c_intmax_t=yes
 
13477
else
 
13478
  gt_cv_c_intmax_t=no
 
13479
fi
 
13480
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13481
fi
 
13482
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
 
13483
$as_echo "$gt_cv_c_intmax_t" >&6; }
 
13484
  if test $gt_cv_c_intmax_t = yes; then
 
13485
    
 
13486
$as_echo "@%:@define HAVE_INTMAX_T 1" >>confdefs.h
 
13487
 
 
13488
  else
 
13489
    
 
13490
    test $ac_cv_type_long_long_int = yes \
 
13491
      && ac_type='long long' \
 
13492
      || ac_type='long'
 
13493
    
 
13494
cat >>confdefs.h <<_ACEOF
 
13495
@%:@define intmax_t $ac_type
 
13496
_ACEOF
 
13497
 
 
13498
  fi
 
13499
 
 
13500
 
 
13501
  
 
13502
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
 
13503
$as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
 
13504
if test "${gl_cv_func_snprintf_retval_c99+set}" = set; then :
 
13505
  $as_echo_n "(cached) " >&6
 
13506
else
 
13507
  
 
13508
      if test "$cross_compiling" = yes; then :
 
13509
  
 
13510
         case "$host_os" in
 
13511
                                 # Guess yes on glibc systems.
 
13512
           *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
 
13513
                                 # Guess yes on FreeBSD >= 5.
 
13514
           freebsd[1-4]*)        gl_cv_func_snprintf_retval_c99="guessing no";;
 
13515
           freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
 
13516
                                 # Guess yes on MacOS X >= 10.3.
 
13517
           darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
 
13518
           darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
 
13519
                                 # Guess yes on OpenBSD >= 3.9.
 
13520
           openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
 
13521
                                 gl_cv_func_snprintf_retval_c99="guessing no";;
 
13522
           openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
 
13523
                                 # Guess yes on Solaris >= 2.6.
 
13524
           solaris2.[0-5]*)      gl_cv_func_snprintf_retval_c99="guessing no";;
 
13525
           solaris*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
 
13526
                                 # Guess yes on AIX >= 4.
 
13527
           aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
 
13528
           aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
 
13529
                                 # Guess yes on NetBSD >= 3.
 
13530
           netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
 
13531
                                 gl_cv_func_snprintf_retval_c99="guessing no";;
 
13532
           netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
 
13533
                                 # Guess yes on BeOS.
 
13534
           beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
 
13535
                                 # If we don't know, assume the worst.
 
13536
           *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
 
13537
         esac
 
13538
        
 
13539
else
 
13540
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13541
/* end confdefs.h.  */
 
13542
 
 
13543
#include <stdio.h>
 
13544
#include <string.h>
 
13545
static char buf[100];
 
13546
int main ()
 
13547
{
 
13548
  strcpy (buf, "ABCDEF");
 
13549
  if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
 
13550
    return 1;
 
13551
  return 0;
 
13552
}
 
13553
_ACEOF
 
13554
if ac_fn_c_try_run "$LINENO"; then :
 
13555
  gl_cv_func_snprintf_retval_c99=yes
 
13556
else
 
13557
  gl_cv_func_snprintf_retval_c99=no
 
13558
fi
 
13559
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
13560
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
13561
fi
 
13562
 
 
13563
    
 
13564
fi
 
13565
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
 
13566
$as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
 
13567
 
 
13568
 
 
13569
  
 
13570
  
 
13571
  
 
13572
  
 
13573
  
 
13574
  for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
 
13575
do :
 
13576
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
13577
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
13578
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
13579
  cat >>confdefs.h <<_ACEOF
 
13580
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
13581
_ACEOF
 
13582
 
 
13583
fi
 
13584
done
 
13585
 
 
13586
      ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
 
13587
"
 
13588
if test "x$ac_cv_have_decl__snprintf" = x""yes; then :
 
13589
  ac_have_decl=1
 
13590
else
 
13591
  ac_have_decl=0
 
13592
fi
 
13593
 
 
13594
cat >>confdefs.h <<_ACEOF
 
13595
@%:@define HAVE_DECL__SNPRINTF $ac_have_decl
 
13596
_ACEOF
 
13597
 
 
13598
      
 
13599
  case "$gl_cv_func_snprintf_retval_c99" in
 
13600
    *yes)
 
13601
      
 
13602
$as_echo "@%:@define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
 
13603
 
 
13604
      ;;
 
13605
  esac
 
13606
 
 
13607
ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
 
13608
if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
 
13609
  ac_have_decl=1
 
13610
else
 
13611
  ac_have_decl=0
 
13612
fi
 
13613
 
 
13614
cat >>confdefs.h <<_ACEOF
 
13615
@%:@define HAVE_DECL_VSNPRINTF $ac_have_decl
 
13616
_ACEOF
 
13617
 
 
13618
 
 
13619
 
 
13620
 
 
13621
 
 
13622
 
 
13623
 
 
13624
ac_fn_c_check_decl "$LINENO" "iswblank" "ac_cv_have_decl_iswblank" "$ac_includes_default"
 
13625
if test "x$ac_cv_have_decl_iswblank" = x""yes; then :
 
13626
  ac_have_decl=1
 
13627
else
 
13628
  ac_have_decl=0
 
13629
fi
 
13630
 
 
13631
cat >>confdefs.h <<_ACEOF
 
13632
@%:@define HAVE_DECL_ISWBLANK $ac_have_decl
 
13633
_ACEOF
 
13634
 
 
13635
 
 
13636
   if false; then
 
13637
  GL_COND_LIBTOOL_TRUE=
 
13638
  GL_COND_LIBTOOL_FALSE='#'
 
13639
else
 
13640
  GL_COND_LIBTOOL_TRUE='#'
 
13641
  GL_COND_LIBTOOL_FALSE=
 
13642
fi
 
13643
 
 
13644
  gl_cond_libtool=false
 
13645
  gl_libdeps=
 
13646
  gl_ltlibdeps=
 
13647
  gl_m4_base='m4'
 
13648
  
 
13649
  
 
13650
  
 
13651
  
 
13652
  
 
13653
  
 
13654
    
 
13655
  
 
13656
 
 
13657
  gl_source_base='grub-core/gnulib'
 
13658
  # Code from module alloca:
 
13659
  # Code from module alloca-opt:
 
13660
  
 
13661
    
 
13662
  
 
13663
 
 
13664
  
 
13665
  if test $ac_cv_func_alloca_works = no; then
 
13666
    :
 
13667
  fi
 
13668
 
 
13669
  # Define an additional variable used in the Makefile substitution.
 
13670
  if test $ac_cv_working_alloca_h = yes; then
 
13671
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
 
13672
$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
 
13673
if test "${gl_cv_rpl_alloca+set}" = set; then :
 
13674
  $as_echo_n "(cached) " >&6
 
13675
else
 
13676
  
 
13677
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13678
/* end confdefs.h.  */
 
13679
 
 
13680
#if defined __GNUC__ || defined _AIX || defined _MSC_VER
 
13681
        Need own alloca
 
13682
#endif
 
13683
        
 
13684
_ACEOF
 
13685
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
13686
  $EGREP "Need own alloca" >/dev/null 2>&1; then :
 
13687
  gl_cv_rpl_alloca=yes
 
13688
else
 
13689
  gl_cv_rpl_alloca=no
 
13690
fi
 
13691
rm -f conftest*
 
13692
 
 
13693
    
 
13694
fi
 
13695
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
 
13696
$as_echo "$gl_cv_rpl_alloca" >&6; }
 
13697
    if test $gl_cv_rpl_alloca = yes; then
 
13698
            
 
13699
$as_echo "@%:@define HAVE_ALLOCA 1" >>confdefs.h
 
13700
 
 
13701
      ALLOCA_H=alloca.h
 
13702
    else
 
13703
                  ALLOCA_H=
 
13704
    fi
 
13705
  else
 
13706
    ALLOCA_H=alloca.h
 
13707
  fi
 
13708
  
 
13709
 
 
13710
  # Code from module arg-nonnull:
 
13711
  # Code from module argp:
 
13712
  
 
13713
  
 
13714
  
 
13715
  
 
13716
      
 
13717
    
 
13718
  GETOPT_H=getopt.h
 
13719
  
 
13720
$as_echo "@%:@define __GETOPT_PREFIX rpl_" >>confdefs.h
 
13721
 
 
13722
  
 
13723
 
 
13724
    GNULIB_UNISTD_H_GETOPT=1
 
13725
    
 
13726
  
 
13727
  
 
13728
    
 
13729
      
 
13730
      
 
13731
    
 
13732
  
 
13733
  gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
 
13734
 
 
13735
  
 
13736
  
 
13737
  
 
13738
    
 
13739
      
 
13740
      
 
13741
    
 
13742
  
 
13743
  gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
 
13744
 
 
13745
  
 
13746
  
 
13747
 
 
13748
 
 
13749
  
 
13750
  ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
 
13751
"
 
13752
if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then :
 
13753
  
 
13754
$as_echo "@%:@define HAVE_DECL_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
 
13755
 
 
13756
else
 
13757
  
 
13758
$as_echo "@%:@define GNULIB_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
 
13759
 
 
13760
fi
 
13761
 
 
13762
  ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
 
13763
"
 
13764
if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then :
 
13765
  
 
13766
$as_echo "@%:@define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
 
13767
 
 
13768
else
 
13769
  
 
13770
$as_echo "@%:@define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
 
13771
 
 
13772
fi
 
13773
 
 
13774
 
 
13775
  # Check if program_invocation_name and program_invocation_short_name
 
13776
  # are defined elsewhere. It is improbable that only one of them will
 
13777
  # be defined and other not, I prefer to stay on the safe side and to
 
13778
  # test each one separately.
 
13779
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_name is defined" >&5
 
13780
$as_echo_n "checking whether program_invocation_name is defined... " >&6; }
 
13781
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13782
/* end confdefs.h.  */
 
13783
#include <argp.h>
 
13784
int
 
13785
main (void)
 
13786
{
 
13787
program_invocation_name = "test";
 
13788
  ;
 
13789
  return 0;
 
13790
}
 
13791
_ACEOF
 
13792
if ac_fn_c_try_link "$LINENO"; then :
 
13793
  
 
13794
$as_echo "@%:@define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
 
13795
 
 
13796
                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
13797
$as_echo "yes" >&6; }
 
13798
else
 
13799
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13800
$as_echo "no" >&6; }
 
13801
fi
 
13802
rm -f core conftest.err conftest.$ac_objext \
 
13803
    conftest$ac_exeext conftest.$ac_ext
 
13804
 
 
13805
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_short_name is defined" >&5
 
13806
$as_echo_n "checking whether program_invocation_short_name is defined... " >&6; }
 
13807
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13808
/* end confdefs.h.  */
 
13809
#include <argp.h>
 
13810
int
 
13811
main (void)
 
13812
{
 
13813
program_invocation_short_name = "test";
 
13814
  ;
 
13815
  return 0;
 
13816
}
 
13817
_ACEOF
 
13818
if ac_fn_c_try_link "$LINENO"; then :
 
13819
  
 
13820
$as_echo "@%:@define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
 
13821
 
 
13822
                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
13823
$as_echo "yes" >&6; }
 
13824
else
 
13825
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13826
$as_echo "no" >&6; }
 
13827
fi
 
13828
rm -f core conftest.err conftest.$ac_objext \
 
13829
    conftest$ac_exeext conftest.$ac_ext
 
13830
 
 
13831
  
 
13832
  
 
13833
  
 
13834
  
 
13835
  
 
13836
  
 
13837
  
 
13838
  
 
13839
  
 
13840
  
 
13841
  
 
13842
  
 
13843
  
 
13844
  
 
13845
  
 
13846
 
 
13847
  
 
13848
  
 
13849
  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_error:2:c-format"
 
13850
 
 
13851
     
 
13852
  
 
13853
  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
 
13854
 
 
13855
  # Code from module btowc:
 
13856
  
 
13857
  
 
13858
 
 
13859
        
 
13860
 
 
13861
  
 
13862
  if test $ac_cv_func_btowc = no; then
 
13863
    HAVE_BTOWC=0
 
13864
  else
 
13865
 
 
13866
    
 
13867
    
 
13868
     
 
13869
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
 
13870
$as_echo_n "checking whether btowc(0) is correct... " >&6; }
 
13871
if test "${gl_cv_func_btowc_nul+set}" = set; then :
 
13872
  $as_echo_n "(cached) " >&6
 
13873
else
 
13874
  
 
13875
        if test "$cross_compiling" = yes; then :
 
13876
  
 
13877
           case "$host_os" in
 
13878
                      # Guess no on Cygwin.
 
13879
             cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
 
13880
                      # Guess yes otherwise.
 
13881
             *)       gl_cv_func_btowc_nul="guessing yes" ;;
 
13882
           esac
 
13883
          
 
13884
else
 
13885
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13886
/* end confdefs.h.  */
 
13887
 
 
13888
#include <stdio.h>
 
13889
#include <string.h>
 
13890
#include <wchar.h>
 
13891
int main ()
 
13892
{
 
13893
  if (btowc ('\0') != 0)
 
13894
    return 1;
 
13895
  return 0;
 
13896
}
 
13897
_ACEOF
 
13898
if ac_fn_c_try_run "$LINENO"; then :
 
13899
  gl_cv_func_btowc_nul=yes
 
13900
else
 
13901
  gl_cv_func_btowc_nul=no
 
13902
fi
 
13903
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
13904
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
13905
fi
 
13906
 
 
13907
      
 
13908
fi
 
13909
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
 
13910
$as_echo "$gl_cv_func_btowc_nul" >&6; }
 
13911
 
 
13912
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
 
13913
$as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
 
13914
if test "${gl_cv_func_btowc_eof+set}" = set; then :
 
13915
  $as_echo_n "(cached) " >&6
 
13916
else
 
13917
  
 
13918
                        case "$host_os" in
 
13919
                 # Guess no on IRIX.
 
13920
          irix*) gl_cv_func_btowc_eof="guessing no" ;;
 
13921
                 # Guess yes otherwise.
 
13922
          *)     gl_cv_func_btowc_eof="guessing yes" ;;
 
13923
        esac
 
13924
        if test $LOCALE_FR != none; then
 
13925
          if test "$cross_compiling" = yes; then :
 
13926
  :
 
13927
else
 
13928
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13929
/* end confdefs.h.  */
 
13930
 
 
13931
#include <locale.h>
 
13932
#include <stdio.h>
 
13933
#include <string.h>
 
13934
#include <wchar.h>
 
13935
int main ()
 
13936
{
 
13937
  if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
 
13938
    {
 
13939
      if (btowc (EOF) != WEOF)
 
13940
        return 1;
 
13941
    }
 
13942
  return 0;
 
13943
}
 
13944
_ACEOF
 
13945
if ac_fn_c_try_run "$LINENO"; then :
 
13946
  gl_cv_func_btowc_eof=yes
 
13947
else
 
13948
  gl_cv_func_btowc_eof=no
 
13949
fi
 
13950
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
13951
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
13952
fi
 
13953
 
 
13954
        fi
 
13955
      
 
13956
fi
 
13957
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
 
13958
$as_echo "$gl_cv_func_btowc_eof" >&6; }
 
13959
 
 
13960
    case "$gl_cv_func_btowc_nul" in
 
13961
      *yes) ;;
 
13962
      *) REPLACE_BTOWC=1 ;;
 
13963
    esac
 
13964
    case "$gl_cv_func_btowc_eof" in
 
13965
      *yes) ;;
 
13966
      *) REPLACE_BTOWC=1 ;;
 
13967
    esac
 
13968
  fi
 
13969
  if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
 
13970
    
 
13971
    :
 
13972
 
 
13973
    
 
13974
  
 
13975
  
 
13976
    
 
13977
      
 
13978
      
 
13979
    
 
13980
  
 
13981
  gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
 
13982
 
 
13983
    
 
13984
  :
 
13985
 
 
13986
  fi
 
13987
 
 
13988
  
 
13989
    
 
13990
  
 
13991
  GNULIB_BTOWC=1
 
13992
 
 
13993
    
 
13994
  
 
13995
$as_echo "@%:@define GNULIB_TEST_BTOWC 1" >>confdefs.h
 
13996
 
 
13997
 
 
13998
 
 
13999
  # Code from module c++defs:
 
14000
  # Code from module configmake:
 
14001
  # Code from module dirname-lgpl:
 
14002
  
 
14003
  
 
14004
  
 
14005
  
 
14006
    
 
14007
      
 
14008
      
 
14009
    
 
14010
  
 
14011
  gl_LIBOBJS="$gl_LIBOBJS basename-lgpl.$ac_objext"
 
14012
 
 
14013
  
 
14014
  
 
14015
  
 
14016
    
 
14017
      
 
14018
      
 
14019
    
 
14020
  
 
14021
  gl_LIBOBJS="$gl_LIBOBJS dirname-lgpl.$ac_objext"
 
14022
 
 
14023
  
 
14024
  
 
14025
  
 
14026
    
 
14027
      
 
14028
      
 
14029
    
 
14030
  
 
14031
  gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext"
 
14032
 
 
14033
 
 
14034
    
 
14035
  
 
14036
 
 
14037
    
 
14038
  # Code from module double-slash-root:
 
14039
  
 
14040
  
 
14041
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
 
14042
$as_echo_n "checking whether // is distinct from /... " >&6; }
 
14043
if test "${gl_cv_double_slash_root+set}" = set; then :
 
14044
  $as_echo_n "(cached) " >&6
 
14045
else
 
14046
   if test x"$cross_compiling" = xyes ; then
 
14047
        # When cross-compiling, there is no way to tell whether // is special
 
14048
        # short of a list of hosts.  However, the only known hosts to date
 
14049
        # that have a distinct // are Apollo DomainOS (too old to port to),
 
14050
        # Cygwin, and z/OS.  If anyone knows of another system for which // has
 
14051
        # special semantics and is distinct from /, please report it to
 
14052
        # <bug-gnulib@gnu.org>.
 
14053
        case $host in
 
14054
          *-cygwin | i370-ibm-openedition)
 
14055
            gl_cv_double_slash_root=yes ;;
 
14056
          *)
 
14057
            # Be optimistic and assume that / and // are the same when we
 
14058
            # don't know.
 
14059
            gl_cv_double_slash_root='unknown, assuming no' ;;
 
14060
        esac
 
14061
      else
 
14062
        set x `ls -di / // 2>/dev/null`
 
14063
        if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
 
14064
          gl_cv_double_slash_root=no
 
14065
        else
 
14066
          gl_cv_double_slash_root=yes
 
14067
        fi
 
14068
      fi
 
14069
fi
 
14070
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
 
14071
$as_echo "$gl_cv_double_slash_root" >&6; }
 
14072
  if test "$gl_cv_double_slash_root" = yes; then
 
14073
    
 
14074
$as_echo "@%:@define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
 
14075
 
 
14076
  fi
 
14077
 
 
14078
  # Code from module errno:
 
14079
  
 
14080
  # Code from module error:
 
14081
  
 
14082
  
 
14083
  
 
14084
  
 
14085
    
 
14086
      
 
14087
      
 
14088
    
 
14089
  
 
14090
    
 
14091
      
 
14092
      
 
14093
    
 
14094
  
 
14095
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
 
14096
$as_echo_n "checking for error_at_line... " >&6; }
 
14097
if test "${ac_cv_lib_error_at_line+set}" = set; then :
 
14098
  $as_echo_n "(cached) " >&6
 
14099
else
 
14100
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14101
/* end confdefs.h.  */
 
14102
#include <error.h>
 
14103
int
 
14104
main (void)
 
14105
{
 
14106
error_at_line (0, 0, "", 0, "an error occurred");
 
14107
  ;
 
14108
  return 0;
 
14109
}
 
14110
_ACEOF
 
14111
if ac_fn_c_try_link "$LINENO"; then :
 
14112
  ac_cv_lib_error_at_line=yes
 
14113
else
 
14114
  ac_cv_lib_error_at_line=no
 
14115
fi
 
14116
rm -f core conftest.err conftest.$ac_objext \
 
14117
    conftest$ac_exeext conftest.$ac_ext
 
14118
fi
 
14119
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
 
14120
$as_echo "$ac_cv_lib_error_at_line" >&6; }
 
14121
  if test $ac_cv_lib_error_at_line = no; then
 
14122
    
 
14123
  
 
14124
  
 
14125
    
 
14126
      
 
14127
      
 
14128
    
 
14129
  
 
14130
  gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
 
14131
 
 
14132
  fi
 
14133
 
 
14134
    
 
14135
  
 
14136
  
 
14137
  :
 
14138
 
 
14139
 
 
14140
  
 
14141
  
 
14142
  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
 
14143
 
 
14144
     
 
14145
  
 
14146
  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
 
14147
 
 
14148
  # Code from module extensions:
 
14149
  # Code from module float:
 
14150
  
 
14151
  
 
14152
  
 
14153
  FLOAT_H=
 
14154
  case "$host_os" in
 
14155
    beos* | openbsd* | mirbsd*)
 
14156
      FLOAT_H=float.h
 
14157
      
 
14158
  
 
14159
  
 
14160
  
 
14161
 
 
14162
  
 
14163
     if test $gl_cv_have_include_next = yes; then
 
14164
       gl_cv_next_float_h='<'float.h'>'
 
14165
     else
 
14166
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
 
14167
$as_echo_n "checking absolute name of <float.h>... " >&6; }
 
14168
if test "${gl_cv_next_float_h+set}" = set; then :
 
14169
  $as_echo_n "(cached) " >&6
 
14170
else
 
14171
  
 
14172
          if test $ac_cv_header_float_h = yes; then
 
14173
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14174
/* end confdefs.h.  */
 
14175
#include <float.h>
 
14176
               
 
14177
_ACEOF
 
14178
                                                                                                case "$host_os" in
 
14179
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
14180
              *)    gl_absname_cpp="$ac_cpp" ;;
 
14181
            esac
 
14182
                                                gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
14183
               sed -n '\#/float.h#{
 
14184
                 s#.*"\(.*/float.h\)".*#\1#
 
14185
                 s#^/[^/]#//&#
 
14186
                 p
 
14187
                 q
 
14188
               }'`'"'
 
14189
          else
 
14190
            gl_cv_next_float_h='<'float.h'>'
 
14191
          fi
 
14192
          
 
14193
fi
 
14194
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
 
14195
$as_echo "$gl_cv_next_float_h" >&6; }
 
14196
     fi
 
14197
     NEXT_FLOAT_H=$gl_cv_next_float_h
 
14198
 
 
14199
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
14200
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
14201
       gl_next_as_first_directive='<'float.h'>'
 
14202
     else
 
14203
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
14204
       gl_next_as_first_directive=$gl_cv_next_float_h
 
14205
     fi
 
14206
     NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
 
14207
 
 
14208
     
 
14209
 
 
14210
      ;;
 
14211
  esac
 
14212
  
 
14213
 
 
14214
  # Code from module fnmatch:
 
14215
  
 
14216
  
 
14217
 
 
14218
          
 
14219
 
 
14220
  FNMATCH_H=
 
14221
  gl_fnmatch_required_lowercase=`echo $gl_fnmatch_required | tr 'A-Z' 'a-z'`
 
14222
  gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
 
14223
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
 
14224
$as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
 
14225
if eval "test \"\${$gl_fnmatch_cache_var+set}\"" = set; then :
 
14226
  $as_echo_n "(cached) " >&6
 
14227
else
 
14228
                           if test $gl_fnmatch_required = GNU; then
 
14229
       gl_fnmatch_gnu_start=
 
14230
       gl_fnmatch_gnu_end=
 
14231
     else
 
14232
       gl_fnmatch_gnu_start='#if 0'
 
14233
       gl_fnmatch_gnu_end='#endif'
 
14234
     fi
 
14235
     if test "$cross_compiling" = yes; then :
 
14236
  eval "$gl_fnmatch_cache_var=\"guessing no\""
 
14237
else
 
14238
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14239
/* end confdefs.h.  */
 
14240
#include <fnmatch.h>
 
14241
            static int
 
14242
            y (char const *pattern, char const *string, int flags)
 
14243
            {
 
14244
              return fnmatch (pattern, string, flags) == 0;
 
14245
            }
 
14246
            static int
 
14247
            n (char const *pattern, char const *string, int flags)
 
14248
            {
 
14249
              return fnmatch (pattern, string, flags) == FNM_NOMATCH;
 
14250
            }
 
14251
          
 
14252
int
 
14253
main (void)
 
14254
{
 
14255
char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
 
14256
            char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
 
14257
            static char const A_1[] = { 'A' - 1, 0 };
 
14258
            static char const A01[] = { 'A' + 1, 0 };
 
14259
            static char const a_1[] = { 'a' - 1, 0 };
 
14260
            static char const a01[] = { 'a' + 1, 0 };
 
14261
            static char const bs_1[] = { '\\\\' - 1, 0 };
 
14262
            static char const bs01[] = { '\\\\' + 1, 0 };
 
14263
            return
 
14264
             !(n ("a*", "", 0)
 
14265
               && y ("a*", "abc", 0)
 
14266
               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
 
14267
               && y ("a\\\\bc", "abc", 0)
 
14268
               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
 
14269
               && y ("*x", ".x", 0)
 
14270
               && n ("*x", ".x", FNM_PERIOD)
 
14271
               && y (Apat, "\\\\", 0) && y (Apat, "A", 0)
 
14272
               && y (apat, "\\\\", 0) && y (apat, "a", 0)
 
14273
               && n (Apat, A_1, 0) == ('A' < '\\\\')
 
14274
               && n (apat, a_1, 0) == ('a' < '\\\\')
 
14275
               && y (Apat, A01, 0) == ('A' < '\\\\')
 
14276
               && y (apat, a01, 0) == ('a' < '\\\\')
 
14277
               && y (Apat, bs_1, 0) == ('A' < '\\\\')
 
14278
               && y (apat, bs_1, 0) == ('a' < '\\\\')
 
14279
               && n (Apat, bs01, 0) == ('A' < '\\\\')
 
14280
               && n (apat, bs01, 0) == ('a' < '\\\\')
 
14281
               $gl_fnmatch_gnu_start
 
14282
               && y ("xxXX", "xXxX", FNM_CASEFOLD)
 
14283
               && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
 
14284
               && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
 
14285
               && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
 
14286
               && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
 
14287
               && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)
 
14288
               $gl_fnmatch_gnu_end
 
14289
              );
 
14290
          
 
14291
  ;
 
14292
  return 0;
 
14293
}
 
14294
_ACEOF
 
14295
if ac_fn_c_try_run "$LINENO"; then :
 
14296
  eval "$gl_fnmatch_cache_var=yes"
 
14297
else
 
14298
  eval "$gl_fnmatch_cache_var=no"
 
14299
fi
 
14300
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
14301
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
14302
fi
 
14303
 
 
14304
    
 
14305
fi
 
14306
eval ac_res=\$$gl_fnmatch_cache_var
 
14307
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
14308
$as_echo "$ac_res" >&6; }
 
14309
  eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
 
14310
  if test "$gl_fnmatch_result" = yes; then
 
14311
            rm -f "$gl_source_base/fnmatch.h"
 
14312
  else
 
14313
    FNMATCH_H=fnmatch.h
 
14314
    
 
14315
  
 
14316
  
 
14317
    
 
14318
      
 
14319
      
 
14320
    
 
14321
  
 
14322
  gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
 
14323
 
 
14324
                
 
14325
cat >>confdefs.h <<_ACEOF
 
14326
@%:@define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
 
14327
_ACEOF
 
14328
 
 
14329
        
 
14330
    ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
 
14331
"
 
14332
if test "x$ac_cv_have_decl_isblank" = x""yes; then :
 
14333
  ac_have_decl=1
 
14334
else
 
14335
  ac_have_decl=0
 
14336
fi
 
14337
 
 
14338
cat >>confdefs.h <<_ACEOF
 
14339
@%:@define HAVE_DECL_ISBLANK $ac_have_decl
 
14340
_ACEOF
 
14341
 
 
14342
    
 
14343
    
 
14344
  fi
 
14345
  
 
14346
 
 
14347
  # Code from module getdelim:
 
14348
  
 
14349
  
 
14350
 
 
14351
    
 
14352
 
 
14353
  
 
14354
 
 
14355
  
 
14356
  if test $ac_cv_func_getdelim = yes; then
 
14357
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
 
14358
$as_echo_n "checking for working getdelim function... " >&6; }
 
14359
if test "${gl_cv_func_working_getdelim+set}" = set; then :
 
14360
  $as_echo_n "(cached) " >&6
 
14361
else
 
14362
  echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
 
14363
    if test "$cross_compiling" = yes; then :
 
14364
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14365
/* end confdefs.h.  */
 
14366
 
 
14367
#include <features.h>
 
14368
#ifdef __GNU_LIBRARY__
 
14369
 #if (__GLIBC__ >= 2)
 
14370
  Lucky GNU user
 
14371
 #endif
 
14372
#endif
 
14373
         
 
14374
_ACEOF
 
14375
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
14376
  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
 
14377
  gl_cv_func_working_getdelim=yes
 
14378
else
 
14379
  gl_cv_func_working_getdelim=no
 
14380
fi
 
14381
rm -f conftest*
 
14382
 
 
14383
    
 
14384
else
 
14385
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14386
/* end confdefs.h.  */
 
14387
 
 
14388
#    include <stdio.h>
 
14389
#    include <stdlib.h>
 
14390
#    include <string.h>
 
14391
    int main ()
 
14392
    {
 
14393
      FILE *in = fopen ("./conftest.data", "r");
 
14394
      if (!in)
 
14395
        return 1;
 
14396
      {
 
14397
        /* Test result for a NULL buffer and a zero size.
 
14398
           Based on a test program from Karl Heuer.  */
 
14399
        char *line = NULL;
 
14400
        size_t siz = 0;
 
14401
        int len = getdelim (&line, &siz, '\n', in);
 
14402
        if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
 
14403
          return 1;
 
14404
      }
 
14405
      {
 
14406
        /* Test result for a NULL buffer and a non-zero size.
 
14407
           This crashes on FreeBSD 8.0.  */
 
14408
        char *line = NULL;
 
14409
        size_t siz = (size_t)(~0) / 4;
 
14410
        if (getdelim (&line, &siz, '\n', in) == -1)
 
14411
          return 1;
 
14412
      }
 
14413
      return 0;
 
14414
    }
 
14415
    
 
14416
_ACEOF
 
14417
if ac_fn_c_try_run "$LINENO"; then :
 
14418
  gl_cv_func_working_getdelim=yes     
 
14419
else
 
14420
  gl_cv_func_working_getdelim=no     
 
14421
fi
 
14422
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
14423
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
14424
fi
 
14425
 
 
14426
fi
 
14427
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
 
14428
$as_echo "$gl_cv_func_working_getdelim" >&6; }
 
14429
  else
 
14430
    gl_cv_func_working_getdelim=no
 
14431
  fi
 
14432
 
 
14433
  if test $ac_cv_have_decl_getdelim = no; then
 
14434
    HAVE_DECL_GETDELIM=0
 
14435
  fi
 
14436
 
 
14437
  if test $gl_cv_func_working_getdelim = no; then
 
14438
    if test $ac_cv_func_getdelim = yes; then
 
14439
      REPLACE_GETDELIM=1
 
14440
    fi
 
14441
    
 
14442
  
 
14443
  
 
14444
    
 
14445
      
 
14446
      
 
14447
    
 
14448
  
 
14449
  gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
 
14450
 
 
14451
    
 
14452
  for ac_func in flockfile funlockfile
 
14453
do :
 
14454
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
14455
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
14456
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
14457
  cat >>confdefs.h <<_ACEOF
 
14458
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
14459
_ACEOF
 
14460
 
 
14461
fi
 
14462
done
 
14463
 
 
14464
  ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
 
14465
if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
 
14466
  ac_have_decl=1
 
14467
else
 
14468
  ac_have_decl=0
 
14469
fi
 
14470
 
 
14471
cat >>confdefs.h <<_ACEOF
 
14472
@%:@define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
 
14473
_ACEOF
 
14474
 
 
14475
 
 
14476
  fi
 
14477
 
 
14478
  
 
14479
    
 
14480
  
 
14481
  GNULIB_GETDELIM=1
 
14482
 
 
14483
    
 
14484
  
 
14485
$as_echo "@%:@define GNULIB_TEST_GETDELIM 1" >>confdefs.h
 
14486
 
 
14487
 
 
14488
 
 
14489
  # Code from module getline:
 
14490
  
 
14491
  
 
14492
 
 
14493
    
 
14494
 
 
14495
  
 
14496
 
 
14497
  gl_getline_needs_run_time_check=no
 
14498
  ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
 
14499
if test "x$ac_cv_func_getline" = x""yes; then :
 
14500
                   gl_getline_needs_run_time_check=yes
 
14501
else
 
14502
  am_cv_func_working_getline=no
 
14503
fi
 
14504
 
 
14505
  if test $gl_getline_needs_run_time_check = yes; then
 
14506
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
 
14507
$as_echo_n "checking for working getline function... " >&6; }
 
14508
if test "${am_cv_func_working_getline+set}" = set; then :
 
14509
  $as_echo_n "(cached) " >&6
 
14510
else
 
14511
  echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
 
14512
    if test "$cross_compiling" = yes; then :
 
14513
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14514
/* end confdefs.h.  */
 
14515
 
 
14516
#include <features.h>
 
14517
#ifdef __GNU_LIBRARY__
 
14518
 #if (__GLIBC__ >= 2)
 
14519
  Lucky GNU user
 
14520
 #endif
 
14521
#endif
 
14522
         
 
14523
_ACEOF
 
14524
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
14525
  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
 
14526
  am_cv_func_working_getline=yes
 
14527
else
 
14528
  am_cv_func_working_getline=no
 
14529
fi
 
14530
rm -f conftest*
 
14531
 
 
14532
    
 
14533
else
 
14534
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14535
/* end confdefs.h.  */
 
14536
 
 
14537
#    include <stdio.h>
 
14538
#    include <stdlib.h>
 
14539
#    include <string.h>
 
14540
    int main ()
 
14541
    {
 
14542
      FILE *in = fopen ("./conftest.data", "r");
 
14543
      if (!in)
 
14544
        return 1;
 
14545
      {
 
14546
        /* Test result for a NULL buffer and a zero size.
 
14547
           Based on a test program from Karl Heuer.  */
 
14548
        char *line = NULL;
 
14549
        size_t siz = 0;
 
14550
        int len = getline (&line, &siz, in);
 
14551
        if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
 
14552
          return 1;
 
14553
      }
 
14554
      {
 
14555
        /* Test result for a NULL buffer and a non-zero size.
 
14556
           This crashes on FreeBSD 8.0.  */
 
14557
        char *line = NULL;
 
14558
        size_t siz = (size_t)(~0) / 4;
 
14559
        if (getline (&line, &siz, in) == -1)
 
14560
          return 1;
 
14561
      }
 
14562
      return 0;
 
14563
    }
 
14564
    
 
14565
_ACEOF
 
14566
if ac_fn_c_try_run "$LINENO"; then :
 
14567
  am_cv_func_working_getline=yes     
 
14568
else
 
14569
  am_cv_func_working_getline=no     
 
14570
fi
 
14571
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
14572
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
14573
fi
 
14574
 
 
14575
fi
 
14576
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
 
14577
$as_echo "$am_cv_func_working_getline" >&6; }
 
14578
  fi
 
14579
 
 
14580
  if test $ac_cv_have_decl_getline = no; then
 
14581
    HAVE_DECL_GETLINE=0
 
14582
  fi
 
14583
 
 
14584
  if test $am_cv_func_working_getline = no; then
 
14585
                REPLACE_GETLINE=1
 
14586
    
 
14587
  
 
14588
  
 
14589
    
 
14590
      
 
14591
      
 
14592
    
 
14593
  
 
14594
  gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
 
14595
 
 
14596
 
 
14597
    
 
14598
  
 
14599
  
 
14600
 
 
14601
    
 
14602
 
 
14603
  
 
14604
 
 
14605
  
 
14606
  if test $ac_cv_func_getdelim = yes; then
 
14607
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
 
14608
$as_echo_n "checking for working getdelim function... " >&6; }
 
14609
if test "${gl_cv_func_working_getdelim+set}" = set; then :
 
14610
  $as_echo_n "(cached) " >&6
 
14611
else
 
14612
  echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
 
14613
    if test "$cross_compiling" = yes; then :
 
14614
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14615
/* end confdefs.h.  */
 
14616
 
 
14617
#include <features.h>
 
14618
#ifdef __GNU_LIBRARY__
 
14619
 #if (__GLIBC__ >= 2)
 
14620
  Lucky GNU user
 
14621
 #endif
 
14622
#endif
 
14623
         
 
14624
_ACEOF
 
14625
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
14626
  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
 
14627
  gl_cv_func_working_getdelim=yes
 
14628
else
 
14629
  gl_cv_func_working_getdelim=no
 
14630
fi
 
14631
rm -f conftest*
 
14632
 
 
14633
    
 
14634
else
 
14635
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14636
/* end confdefs.h.  */
 
14637
 
 
14638
#    include <stdio.h>
 
14639
#    include <stdlib.h>
 
14640
#    include <string.h>
 
14641
    int main ()
 
14642
    {
 
14643
      FILE *in = fopen ("./conftest.data", "r");
 
14644
      if (!in)
 
14645
        return 1;
 
14646
      {
 
14647
        /* Test result for a NULL buffer and a zero size.
 
14648
           Based on a test program from Karl Heuer.  */
 
14649
        char *line = NULL;
 
14650
        size_t siz = 0;
 
14651
        int len = getdelim (&line, &siz, '\n', in);
 
14652
        if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
 
14653
          return 1;
 
14654
      }
 
14655
      {
 
14656
        /* Test result for a NULL buffer and a non-zero size.
 
14657
           This crashes on FreeBSD 8.0.  */
 
14658
        char *line = NULL;
 
14659
        size_t siz = (size_t)(~0) / 4;
 
14660
        if (getdelim (&line, &siz, '\n', in) == -1)
 
14661
          return 1;
 
14662
      }
 
14663
      return 0;
 
14664
    }
 
14665
    
 
14666
_ACEOF
 
14667
if ac_fn_c_try_run "$LINENO"; then :
 
14668
  gl_cv_func_working_getdelim=yes     
 
14669
else
 
14670
  gl_cv_func_working_getdelim=no     
 
14671
fi
 
14672
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
14673
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
14674
fi
 
14675
 
 
14676
fi
 
14677
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
 
14678
$as_echo "$gl_cv_func_working_getdelim" >&6; }
 
14679
  else
 
14680
    gl_cv_func_working_getdelim=no
 
14681
  fi
 
14682
 
 
14683
  if test $ac_cv_have_decl_getdelim = no; then
 
14684
    HAVE_DECL_GETDELIM=0
 
14685
  fi
 
14686
 
 
14687
  if test $gl_cv_func_working_getdelim = no; then
 
14688
    if test $ac_cv_func_getdelim = yes; then
 
14689
      REPLACE_GETDELIM=1
 
14690
    fi
 
14691
    
 
14692
  
 
14693
  
 
14694
    
 
14695
      
 
14696
      
 
14697
    
 
14698
  
 
14699
  gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
 
14700
 
 
14701
    
 
14702
  for ac_func in flockfile funlockfile
 
14703
do :
 
14704
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
14705
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
14706
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
14707
  cat >>confdefs.h <<_ACEOF
 
14708
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
14709
_ACEOF
 
14710
 
 
14711
fi
 
14712
done
 
14713
 
 
14714
  ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
 
14715
if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
 
14716
  ac_have_decl=1
 
14717
else
 
14718
  ac_have_decl=0
 
14719
fi
 
14720
 
 
14721
cat >>confdefs.h <<_ACEOF
 
14722
@%:@define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
 
14723
_ACEOF
 
14724
 
 
14725
 
 
14726
  fi
 
14727
 
 
14728
 
 
14729
  fi
 
14730
 
 
14731
  
 
14732
    
 
14733
  
 
14734
  GNULIB_GETLINE=1
 
14735
 
 
14736
    
 
14737
  
 
14738
$as_echo "@%:@define GNULIB_TEST_GETLINE 1" >>confdefs.h
 
14739
 
 
14740
 
 
14741
 
 
14742
  # Code from module getopt-gnu:
 
14743
  
 
14744
  
 
14745
 
 
14746
  
 
14747
 
 
14748
  
 
14749
  
 
14750
$as_echo "@%:@define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
 
14751
 
 
14752
 
 
14753
  # Code from module getopt-posix:
 
14754
  
 
14755
  
 
14756
  
 
14757
  
 
14758
  
 
14759
  if test -n "$gl_replace_getopt"; then :
 
14760
  
 
14761
    
 
14762
    
 
14763
  GETOPT_H=getopt.h
 
14764
  
 
14765
$as_echo "@%:@define __GETOPT_PREFIX rpl_" >>confdefs.h
 
14766
 
 
14767
  
 
14768
 
 
14769
    GNULIB_UNISTD_H_GETOPT=1
 
14770
    
 
14771
  
 
14772
  
 
14773
    
 
14774
      
 
14775
      
 
14776
    
 
14777
  
 
14778
  gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
 
14779
 
 
14780
  
 
14781
  
 
14782
  
 
14783
    
 
14784
      
 
14785
      
 
14786
    
 
14787
  
 
14788
  gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
 
14789
 
 
14790
  
 
14791
  
 
14792
 
 
14793
 
 
14794
  
 
14795
fi
 
14796
 
 
14797
 
 
14798
  # Code from module gettext:
 
14799
    
 
14800
  # Code from module gettext-h:
 
14801
  
 
14802
  
 
14803
  # Code from module havelib:
 
14804
  # Code from module include_next:
 
14805
  # Code from module intprops:
 
14806
  # Code from module langinfo:
 
14807
  
 
14808
  
 
14809
 
 
14810
    
 
14811
 
 
14812
    
 
14813
  
 
14814
  
 
14815
  
 
14816
 
 
14817
  
 
14818
     if test $gl_cv_have_include_next = yes; then
 
14819
       gl_cv_next_langinfo_h='<'langinfo.h'>'
 
14820
     else
 
14821
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
 
14822
$as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
 
14823
if test "${gl_cv_next_langinfo_h+set}" = set; then :
 
14824
  $as_echo_n "(cached) " >&6
 
14825
else
 
14826
  
 
14827
          if test $ac_cv_header_langinfo_h = yes; then
 
14828
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14829
/* end confdefs.h.  */
 
14830
#include <langinfo.h>
 
14831
               
 
14832
_ACEOF
 
14833
                                                                                                case "$host_os" in
 
14834
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
14835
              *)    gl_absname_cpp="$ac_cpp" ;;
 
14836
            esac
 
14837
                                                gl_cv_next_langinfo_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
14838
               sed -n '\#/langinfo.h#{
 
14839
                 s#.*"\(.*/langinfo.h\)".*#\1#
 
14840
                 s#^/[^/]#//&#
 
14841
                 p
 
14842
                 q
 
14843
               }'`'"'
 
14844
          else
 
14845
            gl_cv_next_langinfo_h='<'langinfo.h'>'
 
14846
          fi
 
14847
          
 
14848
fi
 
14849
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
 
14850
$as_echo "$gl_cv_next_langinfo_h" >&6; }
 
14851
     fi
 
14852
     NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
 
14853
 
 
14854
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
14855
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
14856
       gl_next_as_first_directive='<'langinfo.h'>'
 
14857
     else
 
14858
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
14859
       gl_next_as_first_directive=$gl_cv_next_langinfo_h
 
14860
     fi
 
14861
     NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
 
14862
 
 
14863
     
 
14864
 
 
14865
 
 
14866
    HAVE_LANGINFO_CODESET=0
 
14867
  HAVE_LANGINFO_T_FMT_AMPM=0
 
14868
  HAVE_LANGINFO_ERA=0
 
14869
  HAVE_LANGINFO_YESEXPR=0
 
14870
  
 
14871
  if test $ac_cv_header_langinfo_h = yes; then
 
14872
    HAVE_LANGINFO_H=1
 
14873
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
 
14874
$as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
 
14875
if test "${gl_cv_header_langinfo_codeset+set}" = set; then :
 
14876
  $as_echo_n "(cached) " >&6
 
14877
else
 
14878
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14879
/* end confdefs.h.  */
 
14880
#include <langinfo.h>
 
14881
int a = CODESET;
 
14882
 
 
14883
int
 
14884
main (void)
 
14885
{
 
14886
 
 
14887
  ;
 
14888
  return 0;
 
14889
}
 
14890
_ACEOF
 
14891
if ac_fn_c_try_compile "$LINENO"; then :
 
14892
  gl_cv_header_langinfo_codeset=yes
 
14893
else
 
14894
  gl_cv_header_langinfo_codeset=no
 
14895
fi
 
14896
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14897
      
 
14898
fi
 
14899
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
 
14900
$as_echo "$gl_cv_header_langinfo_codeset" >&6; }
 
14901
    if test $gl_cv_header_langinfo_codeset = yes; then
 
14902
      HAVE_LANGINFO_CODESET=1
 
14903
    fi
 
14904
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5
 
14905
$as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
 
14906
if test "${gl_cv_header_langinfo_t_fmt_ampm+set}" = set; then :
 
14907
  $as_echo_n "(cached) " >&6
 
14908
else
 
14909
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14910
/* end confdefs.h.  */
 
14911
#include <langinfo.h>
 
14912
int a = T_FMT_AMPM;
 
14913
 
 
14914
int
 
14915
main (void)
 
14916
{
 
14917
 
 
14918
  ;
 
14919
  return 0;
 
14920
}
 
14921
_ACEOF
 
14922
if ac_fn_c_try_compile "$LINENO"; then :
 
14923
  gl_cv_header_langinfo_t_fmt_ampm=yes
 
14924
else
 
14925
  gl_cv_header_langinfo_t_fmt_ampm=no
 
14926
fi
 
14927
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14928
      
 
14929
fi
 
14930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
 
14931
$as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
 
14932
    if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
 
14933
      HAVE_LANGINFO_T_FMT_AMPM=1
 
14934
    fi
 
14935
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
 
14936
$as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
 
14937
if test "${gl_cv_header_langinfo_era+set}" = set; then :
 
14938
  $as_echo_n "(cached) " >&6
 
14939
else
 
14940
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14941
/* end confdefs.h.  */
 
14942
#include <langinfo.h>
 
14943
int a = ERA;
 
14944
 
 
14945
int
 
14946
main (void)
 
14947
{
 
14948
 
 
14949
  ;
 
14950
  return 0;
 
14951
}
 
14952
_ACEOF
 
14953
if ac_fn_c_try_compile "$LINENO"; then :
 
14954
  gl_cv_header_langinfo_era=yes
 
14955
else
 
14956
  gl_cv_header_langinfo_era=no
 
14957
fi
 
14958
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14959
      
 
14960
fi
 
14961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
 
14962
$as_echo "$gl_cv_header_langinfo_era" >&6; }
 
14963
    if test $gl_cv_header_langinfo_era = yes; then
 
14964
      HAVE_LANGINFO_ERA=1
 
14965
    fi
 
14966
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5
 
14967
$as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; }
 
14968
if test "${gl_cv_header_langinfo_yesexpr+set}" = set; then :
 
14969
  $as_echo_n "(cached) " >&6
 
14970
else
 
14971
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14972
/* end confdefs.h.  */
 
14973
#include <langinfo.h>
 
14974
int a = YESEXPR;
 
14975
 
 
14976
int
 
14977
main (void)
 
14978
{
 
14979
 
 
14980
  ;
 
14981
  return 0;
 
14982
}
 
14983
_ACEOF
 
14984
if ac_fn_c_try_compile "$LINENO"; then :
 
14985
  gl_cv_header_langinfo_yesexpr=yes
 
14986
else
 
14987
  gl_cv_header_langinfo_yesexpr=no
 
14988
fi
 
14989
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14990
      
 
14991
fi
 
14992
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5
 
14993
$as_echo "$gl_cv_header_langinfo_yesexpr" >&6; }
 
14994
    if test $gl_cv_header_langinfo_yesexpr = yes; then
 
14995
      HAVE_LANGINFO_YESEXPR=1
 
14996
    fi
 
14997
  else
 
14998
    HAVE_LANGINFO_H=0
 
14999
  fi
 
15000
  
 
15001
  
 
15002
  
 
15003
  
 
15004
  
 
15005
 
 
15006
      
 
15007
    for gl_func in nl_langinfo; do
 
15008
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
 
15009
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
 
15010
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
 
15011
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
 
15012
  $as_echo_n "(cached) " >&6
 
15013
else
 
15014
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15015
/* end confdefs.h.  */
 
15016
#include <langinfo.h>
 
15017
    
 
15018
int
 
15019
main (void)
 
15020
{
 
15021
@%:@undef $gl_func
 
15022
  (void) $gl_func;
 
15023
  ;
 
15024
  return 0;
 
15025
}
 
15026
_ACEOF
 
15027
if ac_fn_c_try_compile "$LINENO"; then :
 
15028
  eval "$as_gl_Symbol=yes"
 
15029
else
 
15030
  eval "$as_gl_Symbol=no"
 
15031
fi
 
15032
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15033
fi
 
15034
eval ac_res=\$$as_gl_Symbol
 
15035
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
15036
$as_echo "$ac_res" >&6; }
 
15037
     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
 
15038
  cat >>confdefs.h <<_ACEOF
 
15039
@%:@define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
 
15040
_ACEOF
 
15041
 
 
15042
                     eval ac_cv_have_decl_$gl_func=yes
 
15043
fi
 
15044
      done
 
15045
 
 
15046
 
 
15047
  # Code from module localcharset:
 
15048
  
 
15049
    
 
15050
  
 
15051
  
 
15052
 
 
15053
    
 
15054
  
 
15055
 
 
15056
  LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
 
15057
  
 
15058
  # Code from module malloc-gnu:
 
15059
  
 
15060
  
 
15061
    for ac_header in stdlib.h
 
15062
do :
 
15063
  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
 
15064
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
 
15065
  cat >>confdefs.h <<_ACEOF
 
15066
@%:@define HAVE_STDLIB_H 1
 
15067
_ACEOF
 
15068
 
 
15069
fi
 
15070
 
 
15071
done
 
15072
 
 
15073
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
 
15074
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
 
15075
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
 
15076
  $as_echo_n "(cached) " >&6
 
15077
else
 
15078
  if test "$cross_compiling" = yes; then :
 
15079
  ac_cv_func_malloc_0_nonnull=no
 
15080
else
 
15081
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15082
/* end confdefs.h.  */
 
15083
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
 
15084
# include <stdlib.h>
 
15085
#else
 
15086
char *malloc ();
 
15087
#endif
 
15088
 
 
15089
int
 
15090
main (void)
 
15091
{
 
15092
return ! malloc (0);
 
15093
  ;
 
15094
  return 0;
 
15095
}
 
15096
_ACEOF
 
15097
if ac_fn_c_try_run "$LINENO"; then :
 
15098
  ac_cv_func_malloc_0_nonnull=yes
 
15099
else
 
15100
  ac_cv_func_malloc_0_nonnull=no
 
15101
fi
 
15102
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
15103
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
15104
fi
 
15105
 
 
15106
fi
 
15107
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
 
15108
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
 
15109
if test $ac_cv_func_malloc_0_nonnull = yes; then :
 
15110
  
 
15111
$as_echo "@%:@define HAVE_MALLOC_GNU 1" >>confdefs.h
 
15112
 
 
15113
else
 
15114
  $as_echo "@%:@define HAVE_MALLOC_GNU 0" >>confdefs.h
 
15115
 
 
15116
     
 
15117
  
 
15118
  
 
15119
  
 
15120
    
 
15121
      
 
15122
      
 
15123
    
 
15124
  
 
15125
  gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
 
15126
 
 
15127
  REPLACE_MALLOC=1
 
15128
 
 
15129
    
 
15130
fi
 
15131
 
 
15132
 
 
15133
  
 
15134
  
 
15135
cat >>confdefs.h <<_ACEOF
 
15136
@%:@define GNULIB_MALLOC_GNU 1
 
15137
_ACEOF
 
15138
 
 
15139
 
 
15140
  # Code from module malloc-posix:
 
15141
  
 
15142
  
 
15143
  
 
15144
  if test $gl_cv_func_malloc_posix = yes; then
 
15145
    
 
15146
$as_echo "@%:@define HAVE_MALLOC_POSIX 1" >>confdefs.h
 
15147
 
 
15148
  else
 
15149
    
 
15150
  
 
15151
  
 
15152
  
 
15153
    
 
15154
      
 
15155
      
 
15156
    
 
15157
  
 
15158
  gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
 
15159
 
 
15160
  REPLACE_MALLOC=1
 
15161
 
 
15162
  fi
 
15163
 
 
15164
  
 
15165
    
 
15166
  
 
15167
  GNULIB_MALLOC_POSIX=1
 
15168
 
 
15169
    
 
15170
  
 
15171
$as_echo "@%:@define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
 
15172
 
 
15173
 
 
15174
 
 
15175
  # Code from module mbrtowc:
 
15176
  
 
15177
  
 
15178
 
 
15179
  
 
15180
  
 
15181
  
 
15182
 
 
15183
  
 
15184
  
 
15185
  
 
15186
  if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
 
15187
    
 
15188
  
 
15189
  
 
15190
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
 
15191
$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
 
15192
if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
 
15193
  $as_echo_n "(cached) " >&6
 
15194
else
 
15195
  
 
15196
                  case "$host_os" in
 
15197
                     # Guess no on AIX and OSF/1.
 
15198
        aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
 
15199
                     # Guess yes otherwise.
 
15200
        *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
 
15201
      esac
 
15202
      if test $LOCALE_JA != none; then
 
15203
        if test "$cross_compiling" = yes; then :
 
15204
  :
 
15205
else
 
15206
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15207
/* end confdefs.h.  */
 
15208
 
 
15209
#include <locale.h>
 
15210
#include <string.h>
 
15211
#include <wchar.h>
 
15212
int main ()
 
15213
{
 
15214
  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
 
15215
    {
 
15216
      const char input[] = "B\217\253\344\217\251\316er"; /* "BĆ¼ĆŸer" */
 
15217
      mbstate_t state;
 
15218
      wchar_t wc;
 
15219
 
 
15220
      memset (&state, '\0', sizeof (mbstate_t));
 
15221
      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
 
15222
        if (mbsinit (&state))
 
15223
          return 1;
 
15224
    }
 
15225
  return 0;
 
15226
}
 
15227
_ACEOF
 
15228
if ac_fn_c_try_run "$LINENO"; then :
 
15229
  gl_cv_func_mbrtowc_incomplete_state=yes
 
15230
else
 
15231
  gl_cv_func_mbrtowc_incomplete_state=no
 
15232
fi
 
15233
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
15234
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
15235
fi
 
15236
 
 
15237
      fi
 
15238
    
 
15239
fi
 
15240
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
 
15241
$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
 
15242
 
 
15243
    
 
15244
  
 
15245
  
 
15246
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
 
15247
$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
 
15248
if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
 
15249
  $as_echo_n "(cached) " >&6
 
15250
else
 
15251
  
 
15252
                  case "$host_os" in
 
15253
                    # Guess no on Solaris 8.
 
15254
        solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
 
15255
                    # Guess yes otherwise.
 
15256
        *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
 
15257
      esac
 
15258
      if test $LOCALE_ZH_CN != none; then
 
15259
        if test "$cross_compiling" = yes; then :
 
15260
  :
 
15261
else
 
15262
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15263
/* end confdefs.h.  */
 
15264
 
 
15265
#include <locale.h>
 
15266
#include <stdlib.h>
 
15267
#include <string.h>
 
15268
#include <wchar.h>
 
15269
int main ()
 
15270
{
 
15271
  /* This fails on Solaris 8:
 
15272
     mbrtowc returns 2, and sets wc to 0x00F0.
 
15273
     mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
 
15274
  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
 
15275
    {
 
15276
      char input[] = "B\250\271\201\060\211\070er"; /* "BĆ¼ĆŸer" */
 
15277
      mbstate_t state;
 
15278
      wchar_t wc;
 
15279
 
 
15280
      memset (&state, '\0', sizeof (mbstate_t));
 
15281
      if (mbrtowc (&wc, input + 3, 6, &state) != 4
 
15282
          && mbtowc (&wc, input + 3, 6) == 4)
 
15283
        return 1;
 
15284
    }
 
15285
  return 0;
 
15286
}
 
15287
_ACEOF
 
15288
if ac_fn_c_try_run "$LINENO"; then :
 
15289
  gl_cv_func_mbrtowc_sanitycheck=yes
 
15290
else
 
15291
  gl_cv_func_mbrtowc_sanitycheck=no
 
15292
fi
 
15293
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
15294
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
15295
fi
 
15296
 
 
15297
      fi
 
15298
    
 
15299
fi
 
15300
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
 
15301
$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
 
15302
 
 
15303
    REPLACE_MBSTATE_T=0
 
15304
    case "$gl_cv_func_mbrtowc_incomplete_state" in
 
15305
      *yes) ;;
 
15306
      *) REPLACE_MBSTATE_T=1 ;;
 
15307
    esac
 
15308
    case "$gl_cv_func_mbrtowc_sanitycheck" in
 
15309
      *yes) ;;
 
15310
      *) REPLACE_MBSTATE_T=1 ;;
 
15311
    esac
 
15312
  else
 
15313
    REPLACE_MBSTATE_T=1
 
15314
  fi
 
15315
  if test $REPLACE_MBSTATE_T = 1; then
 
15316
    
 
15317
    :
 
15318
 
 
15319
  fi
 
15320
 
 
15321
 
 
15322
  
 
15323
  if test $ac_cv_func_mbrtowc = no; then
 
15324
    HAVE_MBRTOWC=0
 
15325
  else
 
15326
    if test $REPLACE_MBSTATE_T = 1; then
 
15327
      REPLACE_MBRTOWC=1
 
15328
    else
 
15329
      
 
15330
  
 
15331
  
 
15332
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
 
15333
$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
 
15334
if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then :
 
15335
  $as_echo_n "(cached) " >&6
 
15336
else
 
15337
  
 
15338
                  case "$host_os" in
 
15339
              # Guess no on OSF/1.
 
15340
        osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
 
15341
              # Guess yes otherwise.
 
15342
        *)    gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
 
15343
      esac
 
15344
      if test $LOCALE_FR_UTF8 != none; then
 
15345
        if test "$cross_compiling" = yes; then :
 
15346
  :
 
15347
else
 
15348
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15349
/* end confdefs.h.  */
 
15350
 
 
15351
#include <locale.h>
 
15352
#include <string.h>
 
15353
#include <wchar.h>
 
15354
int main ()
 
15355
{
 
15356
  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
 
15357
    {
 
15358
      mbstate_t state;
 
15359
      wchar_t wc;
 
15360
      int ret;
 
15361
 
 
15362
      memset (&state, '\0', sizeof (mbstate_t));
 
15363
      wc = (wchar_t) 0xBADFACE;
 
15364
      mbrtowc (&wc, NULL, 5, &state);
 
15365
      /* Check that wc was not modified.  */
 
15366
      if (wc != (wchar_t) 0xBADFACE)
 
15367
        return 1;
 
15368
    }
 
15369
  return 0;
 
15370
}
 
15371
_ACEOF
 
15372
if ac_fn_c_try_run "$LINENO"; then :
 
15373
  gl_cv_func_mbrtowc_null_arg=yes
 
15374
else
 
15375
  gl_cv_func_mbrtowc_null_arg=no
 
15376
fi
 
15377
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
15378
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
15379
fi
 
15380
 
 
15381
      fi
 
15382
    
 
15383
fi
 
15384
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg" >&5
 
15385
$as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
 
15386
 
 
15387
      
 
15388
  
 
15389
  
 
15390
  
 
15391
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
 
15392
$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
 
15393
if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
 
15394
  $as_echo_n "(cached) " >&6
 
15395
else
 
15396
  
 
15397
                  case "$host_os" in
 
15398
                          # Guess no on HP-UX and Solaris.
 
15399
        hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
 
15400
                          # Guess yes otherwise.
 
15401
        *)                gl_cv_func_mbrtowc_retval="guessing yes" ;;
 
15402
      esac
 
15403
      if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
 
15404
        if test "$cross_compiling" = yes; then :
 
15405
  :
 
15406
else
 
15407
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15408
/* end confdefs.h.  */
 
15409
 
 
15410
#include <locale.h>
 
15411
#include <string.h>
 
15412
#include <wchar.h>
 
15413
int main ()
 
15414
{
 
15415
  /* This fails on Solaris.  */
 
15416
  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
 
15417
    {
 
15418
      char input[] = "B\303\274\303\237er"; /* "BĆ¼ĆŸer" */
 
15419
      mbstate_t state;
 
15420
      wchar_t wc;
 
15421
 
 
15422
      memset (&state, '\0', sizeof (mbstate_t));
 
15423
      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
 
15424
        {
 
15425
          input[1] = '\0';
 
15426
          if (mbrtowc (&wc, input + 2, 5, &state) != 1)
 
15427
            return 1;
 
15428
        }
 
15429
    }
 
15430
  /* This fails on HP-UX 11.11.  */
 
15431
  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
 
15432
    {
 
15433
      char input[] = "B\217\253\344\217\251\316er"; /* "BĆ¼ĆŸer" */
 
15434
      mbstate_t state;
 
15435
      wchar_t wc;
 
15436
 
 
15437
      memset (&state, '\0', sizeof (mbstate_t));
 
15438
      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
 
15439
        {
 
15440
          input[1] = '\0';
 
15441
          if (mbrtowc (&wc, input + 2, 5, &state) != 2)
 
15442
            return 1;
 
15443
        }
 
15444
    }
 
15445
  return 0;
 
15446
}
 
15447
_ACEOF
 
15448
if ac_fn_c_try_run "$LINENO"; then :
 
15449
  gl_cv_func_mbrtowc_retval=yes
 
15450
else
 
15451
  gl_cv_func_mbrtowc_retval=no
 
15452
fi
 
15453
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
15454
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
15455
fi
 
15456
 
 
15457
      fi
 
15458
    
 
15459
fi
 
15460
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
 
15461
$as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
 
15462
 
 
15463
      
 
15464
  
 
15465
  
 
15466
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
 
15467
$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
 
15468
if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
 
15469
  $as_echo_n "(cached) " >&6
 
15470
else
 
15471
  
 
15472
                  case "$host_os" in
 
15473
                       # Guess no on Solaris 8 and 9.
 
15474
        solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
 
15475
                       # Guess yes otherwise.
 
15476
        *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
 
15477
      esac
 
15478
      if test $LOCALE_ZH_CN != none; then
 
15479
        if test "$cross_compiling" = yes; then :
 
15480
  :
 
15481
else
 
15482
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15483
/* end confdefs.h.  */
 
15484
 
 
15485
#include <locale.h>
 
15486
#include <string.h>
 
15487
#include <wchar.h>
 
15488
int main ()
 
15489
{
 
15490
  /* This fails on Solaris 8 and 9.  */
 
15491
  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
 
15492
    {
 
15493
      mbstate_t state;
 
15494
      wchar_t wc;
 
15495
 
 
15496
      memset (&state, '\0', sizeof (mbstate_t));
 
15497
      if (mbrtowc (&wc, "", 1, &state) != 0)
 
15498
        return 1;
 
15499
    }
 
15500
  return 0;
 
15501
}
 
15502
_ACEOF
 
15503
if ac_fn_c_try_run "$LINENO"; then :
 
15504
  gl_cv_func_mbrtowc_nul_retval=yes
 
15505
else
 
15506
  gl_cv_func_mbrtowc_nul_retval=no
 
15507
fi
 
15508
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
15509
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
15510
fi
 
15511
 
 
15512
      fi
 
15513
    
 
15514
fi
 
15515
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
 
15516
$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
 
15517
 
 
15518
      case "$gl_cv_func_mbrtowc_null_arg" in
 
15519
        *yes) ;;
 
15520
        *) 
 
15521
$as_echo "@%:@define MBRTOWC_NULL_ARG_BUG 1" >>confdefs.h
 
15522
 
 
15523
           REPLACE_MBRTOWC=1
 
15524
           ;;
 
15525
      esac
 
15526
      case "$gl_cv_func_mbrtowc_retval" in
 
15527
        *yes) ;;
 
15528
        *) 
 
15529
$as_echo "@%:@define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
 
15530
 
 
15531
           REPLACE_MBRTOWC=1
 
15532
           ;;
 
15533
      esac
 
15534
      case "$gl_cv_func_mbrtowc_nul_retval" in
 
15535
        *yes) ;;
 
15536
        *) 
 
15537
$as_echo "@%:@define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
 
15538
 
 
15539
           REPLACE_MBRTOWC=1
 
15540
           ;;
 
15541
      esac
 
15542
    fi
 
15543
  fi
 
15544
  if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
 
15545
    
 
15546
    :
 
15547
 
 
15548
    
 
15549
  
 
15550
  
 
15551
    
 
15552
      
 
15553
      
 
15554
    
 
15555
  
 
15556
  gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
 
15557
 
 
15558
    
 
15559
  :
 
15560
 
 
15561
  fi
 
15562
 
 
15563
  
 
15564
    
 
15565
  
 
15566
  GNULIB_MBRTOWC=1
 
15567
 
 
15568
    
 
15569
  
 
15570
$as_echo "@%:@define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
 
15571
 
 
15572
 
 
15573
 
 
15574
  # Code from module mbsinit:
 
15575
  
 
15576
  
 
15577
 
 
15578
  
 
15579
  
 
15580
  
 
15581
 
 
15582
  
 
15583
  
 
15584
  
 
15585
  if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
 
15586
    
 
15587
  
 
15588
  
 
15589
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
 
15590
$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
 
15591
if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
 
15592
  $as_echo_n "(cached) " >&6
 
15593
else
 
15594
  
 
15595
                  case "$host_os" in
 
15596
                     # Guess no on AIX and OSF/1.
 
15597
        aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
 
15598
                     # Guess yes otherwise.
 
15599
        *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
 
15600
      esac
 
15601
      if test $LOCALE_JA != none; then
 
15602
        if test "$cross_compiling" = yes; then :
 
15603
  :
 
15604
else
 
15605
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15606
/* end confdefs.h.  */
 
15607
 
 
15608
#include <locale.h>
 
15609
#include <string.h>
 
15610
#include <wchar.h>
 
15611
int main ()
 
15612
{
 
15613
  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
 
15614
    {
 
15615
      const char input[] = "B\217\253\344\217\251\316er"; /* "BĆ¼ĆŸer" */
 
15616
      mbstate_t state;
 
15617
      wchar_t wc;
 
15618
 
 
15619
      memset (&state, '\0', sizeof (mbstate_t));
 
15620
      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
 
15621
        if (mbsinit (&state))
 
15622
          return 1;
 
15623
    }
 
15624
  return 0;
 
15625
}
 
15626
_ACEOF
 
15627
if ac_fn_c_try_run "$LINENO"; then :
 
15628
  gl_cv_func_mbrtowc_incomplete_state=yes
 
15629
else
 
15630
  gl_cv_func_mbrtowc_incomplete_state=no
 
15631
fi
 
15632
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
15633
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
15634
fi
 
15635
 
 
15636
      fi
 
15637
    
 
15638
fi
 
15639
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
 
15640
$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
 
15641
 
 
15642
    
 
15643
  
 
15644
  
 
15645
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
 
15646
$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
 
15647
if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
 
15648
  $as_echo_n "(cached) " >&6
 
15649
else
 
15650
  
 
15651
                  case "$host_os" in
 
15652
                    # Guess no on Solaris 8.
 
15653
        solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
 
15654
                    # Guess yes otherwise.
 
15655
        *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
 
15656
      esac
 
15657
      if test $LOCALE_ZH_CN != none; then
 
15658
        if test "$cross_compiling" = yes; then :
 
15659
  :
 
15660
else
 
15661
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15662
/* end confdefs.h.  */
 
15663
 
 
15664
#include <locale.h>
 
15665
#include <stdlib.h>
 
15666
#include <string.h>
 
15667
#include <wchar.h>
 
15668
int main ()
 
15669
{
 
15670
  /* This fails on Solaris 8:
 
15671
     mbrtowc returns 2, and sets wc to 0x00F0.
 
15672
     mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
 
15673
  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
 
15674
    {
 
15675
      char input[] = "B\250\271\201\060\211\070er"; /* "BĆ¼ĆŸer" */
 
15676
      mbstate_t state;
 
15677
      wchar_t wc;
 
15678
 
 
15679
      memset (&state, '\0', sizeof (mbstate_t));
 
15680
      if (mbrtowc (&wc, input + 3, 6, &state) != 4
 
15681
          && mbtowc (&wc, input + 3, 6) == 4)
 
15682
        return 1;
 
15683
    }
 
15684
  return 0;
 
15685
}
 
15686
_ACEOF
 
15687
if ac_fn_c_try_run "$LINENO"; then :
 
15688
  gl_cv_func_mbrtowc_sanitycheck=yes
 
15689
else
 
15690
  gl_cv_func_mbrtowc_sanitycheck=no
 
15691
fi
 
15692
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
15693
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
15694
fi
 
15695
 
 
15696
      fi
 
15697
    
 
15698
fi
 
15699
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
 
15700
$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
 
15701
 
 
15702
    REPLACE_MBSTATE_T=0
 
15703
    case "$gl_cv_func_mbrtowc_incomplete_state" in
 
15704
      *yes) ;;
 
15705
      *) REPLACE_MBSTATE_T=1 ;;
 
15706
    esac
 
15707
    case "$gl_cv_func_mbrtowc_sanitycheck" in
 
15708
      *yes) ;;
 
15709
      *) REPLACE_MBSTATE_T=1 ;;
 
15710
    esac
 
15711
  else
 
15712
    REPLACE_MBSTATE_T=1
 
15713
  fi
 
15714
  if test $REPLACE_MBSTATE_T = 1; then
 
15715
    
 
15716
    :
 
15717
 
 
15718
  fi
 
15719
 
 
15720
 
 
15721
  
 
15722
  if test $ac_cv_func_mbsinit = no; then
 
15723
    HAVE_MBSINIT=0
 
15724
  else
 
15725
    if test $REPLACE_MBSTATE_T = 1; then
 
15726
      REPLACE_MBSINIT=1
 
15727
    fi
 
15728
  fi
 
15729
  if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
 
15730
    
 
15731
    :
 
15732
 
 
15733
    
 
15734
  
 
15735
  
 
15736
    
 
15737
      
 
15738
      
 
15739
    
 
15740
  
 
15741
  gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
 
15742
 
 
15743
    
 
15744
  :
 
15745
 
 
15746
  fi
 
15747
 
 
15748
  
 
15749
    
 
15750
  
 
15751
  GNULIB_MBSINIT=1
 
15752
 
 
15753
    
 
15754
  
 
15755
$as_echo "@%:@define GNULIB_TEST_MBSINIT 1" >>confdefs.h
 
15756
 
 
15757
 
 
15758
 
 
15759
  # Code from module mbsrtowcs:
 
15760
  
 
15761
  
 
15762
 
 
15763
  
 
15764
  
 
15765
  
 
15766
 
 
15767
  
 
15768
  
 
15769
  
 
15770
  if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
 
15771
    
 
15772
  
 
15773
  
 
15774
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
 
15775
$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
 
15776
if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
 
15777
  $as_echo_n "(cached) " >&6
 
15778
else
 
15779
  
 
15780
                  case "$host_os" in
 
15781
                     # Guess no on AIX and OSF/1.
 
15782
        aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
 
15783
                     # Guess yes otherwise.
 
15784
        *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
 
15785
      esac
 
15786
      if test $LOCALE_JA != none; then
 
15787
        if test "$cross_compiling" = yes; then :
 
15788
  :
 
15789
else
 
15790
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15791
/* end confdefs.h.  */
 
15792
 
 
15793
#include <locale.h>
 
15794
#include <string.h>
 
15795
#include <wchar.h>
 
15796
int main ()
 
15797
{
 
15798
  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
 
15799
    {
 
15800
      const char input[] = "B\217\253\344\217\251\316er"; /* "BĆ¼ĆŸer" */
 
15801
      mbstate_t state;
 
15802
      wchar_t wc;
 
15803
 
 
15804
      memset (&state, '\0', sizeof (mbstate_t));
 
15805
      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
 
15806
        if (mbsinit (&state))
 
15807
          return 1;
 
15808
    }
 
15809
  return 0;
 
15810
}
 
15811
_ACEOF
 
15812
if ac_fn_c_try_run "$LINENO"; then :
 
15813
  gl_cv_func_mbrtowc_incomplete_state=yes
 
15814
else
 
15815
  gl_cv_func_mbrtowc_incomplete_state=no
 
15816
fi
 
15817
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
15818
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
15819
fi
 
15820
 
 
15821
      fi
 
15822
    
 
15823
fi
 
15824
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
 
15825
$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
 
15826
 
 
15827
    
 
15828
  
 
15829
  
 
15830
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
 
15831
$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
 
15832
if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
 
15833
  $as_echo_n "(cached) " >&6
 
15834
else
 
15835
  
 
15836
                  case "$host_os" in
 
15837
                    # Guess no on Solaris 8.
 
15838
        solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
 
15839
                    # Guess yes otherwise.
 
15840
        *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
 
15841
      esac
 
15842
      if test $LOCALE_ZH_CN != none; then
 
15843
        if test "$cross_compiling" = yes; then :
 
15844
  :
 
15845
else
 
15846
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15847
/* end confdefs.h.  */
 
15848
 
 
15849
#include <locale.h>
 
15850
#include <stdlib.h>
 
15851
#include <string.h>
 
15852
#include <wchar.h>
 
15853
int main ()
 
15854
{
 
15855
  /* This fails on Solaris 8:
 
15856
     mbrtowc returns 2, and sets wc to 0x00F0.
 
15857
     mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
 
15858
  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
 
15859
    {
 
15860
      char input[] = "B\250\271\201\060\211\070er"; /* "BĆ¼ĆŸer" */
 
15861
      mbstate_t state;
 
15862
      wchar_t wc;
 
15863
 
 
15864
      memset (&state, '\0', sizeof (mbstate_t));
 
15865
      if (mbrtowc (&wc, input + 3, 6, &state) != 4
 
15866
          && mbtowc (&wc, input + 3, 6) == 4)
 
15867
        return 1;
 
15868
    }
 
15869
  return 0;
 
15870
}
 
15871
_ACEOF
 
15872
if ac_fn_c_try_run "$LINENO"; then :
 
15873
  gl_cv_func_mbrtowc_sanitycheck=yes
 
15874
else
 
15875
  gl_cv_func_mbrtowc_sanitycheck=no
 
15876
fi
 
15877
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
15878
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
15879
fi
 
15880
 
 
15881
      fi
 
15882
    
 
15883
fi
 
15884
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
 
15885
$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
 
15886
 
 
15887
    REPLACE_MBSTATE_T=0
 
15888
    case "$gl_cv_func_mbrtowc_incomplete_state" in
 
15889
      *yes) ;;
 
15890
      *) REPLACE_MBSTATE_T=1 ;;
 
15891
    esac
 
15892
    case "$gl_cv_func_mbrtowc_sanitycheck" in
 
15893
      *yes) ;;
 
15894
      *) REPLACE_MBSTATE_T=1 ;;
 
15895
    esac
 
15896
  else
 
15897
    REPLACE_MBSTATE_T=1
 
15898
  fi
 
15899
  if test $REPLACE_MBSTATE_T = 1; then
 
15900
    
 
15901
    :
 
15902
 
 
15903
  fi
 
15904
 
 
15905
 
 
15906
  
 
15907
  if test $ac_cv_func_mbsrtowcs = no; then
 
15908
    HAVE_MBSRTOWCS=0
 
15909
  else
 
15910
    if test $REPLACE_MBSTATE_T = 1; then
 
15911
      REPLACE_MBSRTOWCS=1
 
15912
    else
 
15913
      
 
15914
  
 
15915
  
 
15916
  
 
15917
  
 
15918
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
 
15919
$as_echo_n "checking whether mbsrtowcs works... " >&6; }
 
15920
if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
 
15921
  $as_echo_n "(cached) " >&6
 
15922
else
 
15923
  
 
15924
                  case "$host_os" in
 
15925
                          # Guess no on HP-UX and Solaris.
 
15926
        hpux* | solaris*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
 
15927
                          # Guess yes otherwise.
 
15928
        *)                gl_cv_func_mbsrtowcs_works="guessing yes" ;;
 
15929
      esac
 
15930
      if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
 
15931
        if test "$cross_compiling" = yes; then :
 
15932
  :
 
15933
else
 
15934
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15935
/* end confdefs.h.  */
 
15936
 
 
15937
#include <locale.h>
 
15938
#include <string.h>
 
15939
#include <wchar.h>
 
15940
int main ()
 
15941
{
 
15942
  /* Test whether the function works when started with a conversion state
 
15943
     in non-initial state.  This fails on HP-UX 11.11 and Solaris 10.  */
 
15944
  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
 
15945
    {
 
15946
      const char input[] = "B\303\274\303\237er";
 
15947
      mbstate_t state;
 
15948
 
 
15949
      memset (&state, '\0', sizeof (mbstate_t));
 
15950
      if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
 
15951
        if (!mbsinit (&state))
 
15952
          {
 
15953
            const char *src = input + 2;
 
15954
            if (mbsrtowcs (NULL, &src, 10, &state) != 4)
 
15955
              return 1;
 
15956
          }
 
15957
    }
 
15958
  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
 
15959
    {
 
15960
      const char input[] = "<\306\374\313\334\270\354>";
 
15961
      mbstate_t state;
 
15962
 
 
15963
      memset (&state, '\0', sizeof (mbstate_t));
 
15964
      if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
 
15965
        if (!mbsinit (&state))
 
15966
          {
 
15967
            const char *src = input + 4;
 
15968
            if (mbsrtowcs (NULL, &src, 10, &state) != 3)
 
15969
              return 1;
 
15970
          }
 
15971
    }
 
15972
  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
 
15973
    {
 
15974
      const char input[] = "B\250\271\201\060\211\070er";
 
15975
      mbstate_t state;
 
15976
 
 
15977
      memset (&state, '\0', sizeof (mbstate_t));
 
15978
      if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
 
15979
        if (!mbsinit (&state))
 
15980
          {
 
15981
            const char *src = input + 2;
 
15982
            if (mbsrtowcs (NULL, &src, 10, &state) != 4)
 
15983
              return 1;
 
15984
          }
 
15985
    }
 
15986
  return 0;
 
15987
}
 
15988
_ACEOF
 
15989
if ac_fn_c_try_run "$LINENO"; then :
 
15990
  gl_cv_func_mbsrtowcs_works=yes
 
15991
else
 
15992
  gl_cv_func_mbsrtowcs_works=no
 
15993
fi
 
15994
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
15995
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
15996
fi
 
15997
 
 
15998
      fi
 
15999
    
 
16000
fi
 
16001
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
 
16002
$as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
 
16003
 
 
16004
      case "$gl_cv_func_mbsrtowcs_works" in
 
16005
        *yes) ;;
 
16006
        *) REPLACE_MBSRTOWCS=1 ;;
 
16007
      esac
 
16008
    fi
 
16009
  fi
 
16010
  if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
 
16011
    
 
16012
    :
 
16013
 
 
16014
    
 
16015
  
 
16016
  
 
16017
    
 
16018
      
 
16019
      
 
16020
    
 
16021
  
 
16022
  gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
 
16023
 
 
16024
    
 
16025
  
 
16026
  
 
16027
    
 
16028
      
 
16029
      
 
16030
    
 
16031
  
 
16032
  gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
 
16033
 
 
16034
    
 
16035
  :
 
16036
 
 
16037
  fi
 
16038
 
 
16039
  
 
16040
    
 
16041
  
 
16042
  GNULIB_MBSRTOWCS=1
 
16043
 
 
16044
    
 
16045
  
 
16046
$as_echo "@%:@define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
 
16047
 
 
16048
 
 
16049
 
 
16050
  # Code from module memchr:
 
16051
  
 
16052
  
 
16053
    
 
16054
  
 
16055
  GNULIB_MEMCHR=1
 
16056
 
 
16057
    
 
16058
  
 
16059
$as_echo "@%:@define GNULIB_TEST_MEMCHR 1" >>confdefs.h
 
16060
 
 
16061
 
 
16062
 
 
16063
  # Code from module mempcpy:
 
16064
  
 
16065
    
 
16066
 
 
16067
    
 
16068
 
 
16069
  
 
16070
  
 
16071
  
 
16072
  
 
16073
    
 
16074
      
 
16075
      
 
16076
    
 
16077
  
 
16078
  for ac_func in mempcpy
 
16079
do :
 
16080
  ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
 
16081
if test "x$ac_cv_func_mempcpy" = x""yes; then :
 
16082
  cat >>confdefs.h <<_ACEOF
 
16083
@%:@define HAVE_MEMPCPY 1
 
16084
_ACEOF
 
16085
 
 
16086
else
 
16087
  
 
16088
    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
 
16089
 
 
16090
fi
 
16091
done
 
16092
 
 
16093
 
 
16094
  if test $ac_cv_func_mempcpy = no; then
 
16095
    HAVE_MEMPCPY=0
 
16096
    
 
16097
  :
 
16098
 
 
16099
  fi
 
16100
 
 
16101
  
 
16102
    
 
16103
  
 
16104
  GNULIB_MEMPCPY=1
 
16105
 
 
16106
    
 
16107
  
 
16108
$as_echo "@%:@define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
 
16109
 
 
16110
 
 
16111
 
 
16112
  # Code from module multiarch:
 
16113
  
 
16114
  # Code from module nl_langinfo:
 
16115
  
 
16116
  
 
16117
  
 
16118
  
 
16119
  if test $ac_cv_func_nl_langinfo = yes; then
 
16120
    if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1; then
 
16121
      :
 
16122
    else
 
16123
      REPLACE_NL_LANGINFO=1
 
16124
      
 
16125
$as_echo "@%:@define REPLACE_NL_LANGINFO 1" >>confdefs.h
 
16126
 
 
16127
      
 
16128
  
 
16129
  
 
16130
    
 
16131
      
 
16132
      
 
16133
    
 
16134
  
 
16135
  gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
 
16136
 
 
16137
    fi
 
16138
  else
 
16139
    HAVE_NL_LANGINFO=0
 
16140
    
 
16141
  
 
16142
  
 
16143
    
 
16144
      
 
16145
      
 
16146
    
 
16147
  
 
16148
  gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
 
16149
 
 
16150
  fi
 
16151
 
 
16152
  
 
16153
    
 
16154
  
 
16155
  GNULIB_NL_LANGINFO=1
 
16156
 
 
16157
    
 
16158
  
 
16159
$as_echo "@%:@define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h
 
16160
 
 
16161
 
 
16162
 
 
16163
  # Code from module progname:
 
16164
  ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
 
16165
"
 
16166
if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then :
 
16167
  ac_have_decl=1
 
16168
else
 
16169
  ac_have_decl=0
 
16170
fi
 
16171
 
 
16172
cat >>confdefs.h <<_ACEOF
 
16173
@%:@define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
 
16174
_ACEOF
 
16175
 
 
16176
  ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
 
16177
"
 
16178
if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then :
 
16179
  ac_have_decl=1
 
16180
else
 
16181
  ac_have_decl=0
 
16182
fi
 
16183
 
 
16184
cat >>confdefs.h <<_ACEOF
 
16185
@%:@define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
 
16186
_ACEOF
 
16187
 
 
16188
  # Code from module rawmemchr:
 
16189
  
 
16190
    
 
16191
 
 
16192
  
 
16193
  
 
16194
  
 
16195
  
 
16196
    
 
16197
      
 
16198
      
 
16199
    
 
16200
  
 
16201
  for ac_func in rawmemchr
 
16202
do :
 
16203
  ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
 
16204
if test "x$ac_cv_func_rawmemchr" = x""yes; then :
 
16205
  cat >>confdefs.h <<_ACEOF
 
16206
@%:@define HAVE_RAWMEMCHR 1
 
16207
_ACEOF
 
16208
 
 
16209
else
 
16210
  
 
16211
    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
 
16212
 
 
16213
fi
 
16214
done
 
16215
 
 
16216
 
 
16217
  if test $ac_cv_func_rawmemchr = no; then
 
16218
    HAVE_RAWMEMCHR=0
 
16219
    :
 
16220
  fi
 
16221
 
 
16222
  
 
16223
    
 
16224
  
 
16225
  GNULIB_RAWMEMCHR=1
 
16226
 
 
16227
    
 
16228
  
 
16229
$as_echo "@%:@define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
 
16230
 
 
16231
 
 
16232
 
 
16233
  # Code from module realloc-posix:
 
16234
  
 
16235
  
 
16236
  
 
16237
  if test $gl_cv_func_malloc_posix = yes; then
 
16238
    
 
16239
$as_echo "@%:@define HAVE_REALLOC_POSIX 1" >>confdefs.h
 
16240
 
 
16241
  else
 
16242
    
 
16243
  
 
16244
  
 
16245
  
 
16246
    
 
16247
      
 
16248
      
 
16249
    
 
16250
  
 
16251
  gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
 
16252
 
 
16253
  REPLACE_REALLOC=1
 
16254
 
 
16255
  fi
 
16256
 
 
16257
  
 
16258
    
 
16259
  
 
16260
  GNULIB_REALLOC_POSIX=1
 
16261
 
 
16262
    
 
16263
  
 
16264
$as_echo "@%:@define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
 
16265
 
 
16266
 
 
16267
 
 
16268
  # Code from module regex:
 
16269
  
 
16270
  
 
16271
 
 
16272
  
 
16273
@%:@ Check whether --with-included-regex was given.
 
16274
if test "${with_included_regex+set}" = set; then :
 
16275
  withval=$with_included_regex; 
 
16276
fi
 
16277
 
 
16278
 
 
16279
  case $with_included_regex in #(
 
16280
  yes|no) ac_use_included_regex=$with_included_regex
 
16281
        ;;
 
16282
  '')
 
16283
    # If the system regex support is good enough that it passes the
 
16284
    # following run test, then default to *not* using the included regex.c.
 
16285
    # If cross compiling, assume the test would fail and use the included
 
16286
    # regex.c.
 
16287
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5
 
16288
$as_echo_n "checking for working re_compile_pattern... " >&6; }
 
16289
if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then :
 
16290
  $as_echo_n "(cached) " >&6
 
16291
else
 
16292
  if test "$cross_compiling" = yes; then :
 
16293
         gl_cv_func_re_compile_pattern_working=no
 
16294
else
 
16295
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16296
/* end confdefs.h.  */
 
16297
$ac_includes_default
 
16298
           #if HAVE_LOCALE_H
 
16299
            #include <locale.h>
 
16300
           #endif
 
16301
           #include <limits.h>
 
16302
           #include <regex.h>
 
16303
           
 
16304
int
 
16305
main (void)
 
16306
{
 
16307
static struct re_pattern_buffer regex;
 
16308
            unsigned char folded_chars[UCHAR_MAX + 1];
 
16309
            int i;
 
16310
            const char *s;
 
16311
            struct re_registers regs;
 
16312
 
 
16313
            #if HAVE_LOCALE_H
 
16314
              /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
 
16315
                 This test needs valgrind to catch the bug on Debian
 
16316
                 GNU/Linux 3.1 x86, but it might catch the bug better
 
16317
                 on other platforms and it shouldn't hurt to try the
 
16318
                 test here.  */
 
16319
              if (setlocale (LC_ALL, "en_US.UTF-8"))
 
16320
                {
 
16321
                  static char const pat[] = "insert into";
 
16322
                  static char const data[] =
 
16323
                    "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
 
16324
                  re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
 
16325
                                 | RE_ICASE);
 
16326
                  memset (&regex, 0, sizeof regex);
 
16327
                  s = re_compile_pattern (pat, sizeof pat - 1, &regex);
 
16328
                  if (s)
 
16329
                    return 1;
 
16330
                  if (re_search (&regex, data, sizeof data - 1,
 
16331
                                 0, sizeof data - 1, &regs)
 
16332
                      != -1)
 
16333
                    return 1;
 
16334
                  if (! setlocale (LC_ALL, "C"))
 
16335
                    return 1;
 
16336
                }
 
16337
            #endif
 
16338
 
 
16339
            /* This test is from glibc bug 3957, reported by Andrew Mackey.  */
 
16340
            re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
 
16341
            memset (&regex, 0, sizeof regex);
 
16342
            s = re_compile_pattern ("a[^x]b", 6, &regex);
 
16343
            if (s)
 
16344
              return 1;
 
16345
 
 
16346
            /* This should fail, but succeeds for glibc-2.5.  */
 
16347
            if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
 
16348
              return 1;
 
16349
 
 
16350
            /* This regular expression is from Spencer ere test number 75
 
16351
               in grep-2.3.  */
 
16352
            re_set_syntax (RE_SYNTAX_POSIX_EGREP);
 
16353
            memset (&regex, 0, sizeof regex);
 
16354
            for (i = 0; i <= UCHAR_MAX; i++)
 
16355
              folded_chars[i] = i;
 
16356
            regex.translate = folded_chars;
 
16357
            s = re_compile_pattern ("a[[:@:>@:]]b\n", 11, &regex);
 
16358
            /* This should fail with _Invalid character class name_ error.  */
 
16359
            if (!s)
 
16360
              return 1;
 
16361
 
 
16362
            /* Ensure that [b-a] is diagnosed as invalid, when
 
16363
               using RE_NO_EMPTY_RANGES. */
 
16364
            re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
 
16365
            memset (&regex, 0, sizeof regex);
 
16366
            s = re_compile_pattern ("a[b-a]", 6, &regex);
 
16367
            if (s == 0)
 
16368
              return 1;
 
16369
 
 
16370
            /* This should succeed, but does not for glibc-2.1.3.  */
 
16371
            memset (&regex, 0, sizeof regex);
 
16372
            s = re_compile_pattern ("{1", 2, &regex);
 
16373
 
 
16374
            if (s)
 
16375
              return 1;
 
16376
 
 
16377
            /* The following example is derived from a problem report
 
16378
               against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
 
16379
            memset (&regex, 0, sizeof regex);
 
16380
            s = re_compile_pattern ("[an\371]*n", 7, &regex);
 
16381
            if (s)
 
16382
              return 1;
 
16383
 
 
16384
            /* This should match, but does not for glibc-2.2.1.  */
 
16385
            if (re_match (&regex, "an", 2, 0, &regs) != 2)
 
16386
              return 1;
 
16387
 
 
16388
            memset (&regex, 0, sizeof regex);
 
16389
            s = re_compile_pattern ("x", 1, &regex);
 
16390
            if (s)
 
16391
              return 1;
 
16392
 
 
16393
            /* glibc-2.2.93 does not work with a negative RANGE argument.  */
 
16394
            if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
 
16395
              return 1;
 
16396
 
 
16397
            /* The version of regex.c in older versions of gnulib
 
16398
               ignored RE_ICASE.  Detect that problem too.  */
 
16399
            re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
 
16400
            memset (&regex, 0, sizeof regex);
 
16401
            s = re_compile_pattern ("x", 1, &regex);
 
16402
            if (s)
 
16403
              return 1;
 
16404
 
 
16405
            if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
 
16406
              return 1;
 
16407
 
 
16408
            /* Catch a bug reported by Vin Shelton in
 
16409
               http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
 
16410
               */
 
16411
            re_set_syntax (RE_SYNTAX_POSIX_BASIC
 
16412
                           & ~RE_CONTEXT_INVALID_DUP
 
16413
                           & ~RE_NO_EMPTY_RANGES);
 
16414
            memset (&regex, 0, sizeof regex);
 
16415
            s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, &regex);
 
16416
            if (s)
 
16417
              return 1;
 
16418
 
 
16419
            /* REG_STARTEND was added to glibc on 2004-01-15.
 
16420
               Reject older versions.  */
 
16421
            if (! REG_STARTEND)
 
16422
              return 1;
 
16423
 
 
16424
#if 0
 
16425
            /* It would be nice to reject hosts whose regoff_t values are too
 
16426
               narrow (including glibc on hosts with 64-bit ptrdiff_t and
 
16427
               32-bit int), but we should wait until glibc implements this
 
16428
               feature.  Otherwise, support for equivalence classes and
 
16429
               multibyte collation symbols would always be broken except
 
16430
               when compiling --without-included-regex.   */
 
16431
            if (sizeof (regoff_t) < sizeof (ptrdiff_t)
 
16432
                || sizeof (regoff_t) < sizeof (ssize_t))
 
16433
              return 1;
 
16434
#endif
 
16435
 
 
16436
            return 0;
 
16437
  ;
 
16438
  return 0;
 
16439
}
 
16440
_ACEOF
 
16441
if ac_fn_c_try_run "$LINENO"; then :
 
16442
  gl_cv_func_re_compile_pattern_working=yes
 
16443
else
 
16444
  gl_cv_func_re_compile_pattern_working=no
 
16445
fi
 
16446
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
16447
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
16448
fi
 
16449
 
 
16450
fi
 
16451
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5
 
16452
$as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
 
16453
    case $gl_cv_func_re_compile_pattern_working in #(
 
16454
    yes) ac_use_included_regex=no;; #(
 
16455
    no) ac_use_included_regex=yes;;
 
16456
    esac
 
16457
    ;;
 
16458
  *) as_fn_error $? "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5 
 
16459
    ;;
 
16460
  esac
 
16461
 
 
16462
  if test $ac_use_included_regex = yes; then
 
16463
    
 
16464
$as_echo "@%:@define _REGEX_LARGE_OFFSETS 1" >>confdefs.h
 
16465
 
 
16466
    
 
16467
$as_echo "@%:@define re_syntax_options rpl_re_syntax_options" >>confdefs.h
 
16468
 
 
16469
    
 
16470
$as_echo "@%:@define re_set_syntax rpl_re_set_syntax" >>confdefs.h
 
16471
 
 
16472
    
 
16473
$as_echo "@%:@define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h
 
16474
 
 
16475
    
 
16476
$as_echo "@%:@define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h
 
16477
 
 
16478
    
 
16479
$as_echo "@%:@define re_search rpl_re_search" >>confdefs.h
 
16480
 
 
16481
    
 
16482
$as_echo "@%:@define re_search_2 rpl_re_search_2" >>confdefs.h
 
16483
 
 
16484
    
 
16485
$as_echo "@%:@define re_match rpl_re_match" >>confdefs.h
 
16486
 
 
16487
    
 
16488
$as_echo "@%:@define re_match_2 rpl_re_match_2" >>confdefs.h
 
16489
 
 
16490
    
 
16491
$as_echo "@%:@define re_set_registers rpl_re_set_registers" >>confdefs.h
 
16492
 
 
16493
    
 
16494
$as_echo "@%:@define re_comp rpl_re_comp" >>confdefs.h
 
16495
 
 
16496
    
 
16497
$as_echo "@%:@define re_exec rpl_re_exec" >>confdefs.h
 
16498
 
 
16499
    
 
16500
$as_echo "@%:@define regcomp rpl_regcomp" >>confdefs.h
 
16501
 
 
16502
    
 
16503
$as_echo "@%:@define regexec rpl_regexec" >>confdefs.h
 
16504
 
 
16505
    
 
16506
$as_echo "@%:@define regerror rpl_regerror" >>confdefs.h
 
16507
 
 
16508
    
 
16509
$as_echo "@%:@define regfree rpl_regfree" >>confdefs.h
 
16510
 
 
16511
    
 
16512
  
 
16513
  
 
16514
    
 
16515
      
 
16516
      
 
16517
    
 
16518
  
 
16519
  gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
 
16520
 
 
16521
    
 
16522
  
 
16523
  
 
16524
  
 
16525
  
 
16526
  for ac_header in libintl.h
 
16527
do :
 
16528
  ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
 
16529
if test "x$ac_cv_header_libintl_h" = x""yes; then :
 
16530
  cat >>confdefs.h <<_ACEOF
 
16531
@%:@define HAVE_LIBINTL_H 1
 
16532
_ACEOF
 
16533
 
 
16534
fi
 
16535
 
 
16536
done
 
16537
 
 
16538
  
 
16539
  ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
 
16540
"
 
16541
if test "x$ac_cv_have_decl_isblank" = x""yes; then :
 
16542
  ac_have_decl=1
 
16543
else
 
16544
  ac_have_decl=0
 
16545
fi
 
16546
 
 
16547
cat >>confdefs.h <<_ACEOF
 
16548
@%:@define HAVE_DECL_ISBLANK $ac_have_decl
 
16549
_ACEOF
 
16550
 
 
16551
 
 
16552
  fi
 
16553
 
 
16554
  # Code from module size_max:
 
16555
  
 
16556
  for ac_header in stdint.h
 
16557
do :
 
16558
  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
 
16559
if test "x$ac_cv_header_stdint_h" = x""yes; then :
 
16560
  cat >>confdefs.h <<_ACEOF
 
16561
@%:@define HAVE_STDINT_H 1
 
16562
_ACEOF
 
16563
 
 
16564
fi
 
16565
 
 
16566
done
 
16567
 
 
16568
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
 
16569
$as_echo_n "checking for SIZE_MAX... " >&6; }
 
16570
if test "${gl_cv_size_max+set}" = set; then :
 
16571
  $as_echo_n "(cached) " >&6
 
16572
else
 
16573
  
 
16574
    gl_cv_size_max=
 
16575
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16576
/* end confdefs.h.  */
 
16577
 
 
16578
#include <limits.h>
 
16579
#if HAVE_STDINT_H
 
16580
#include <stdint.h>
 
16581
#endif
 
16582
#ifdef SIZE_MAX
 
16583
Found it
 
16584
#endif
 
16585
 
 
16586
_ACEOF
 
16587
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
16588
  $EGREP "Found it" >/dev/null 2>&1; then :
 
16589
  gl_cv_size_max=yes
 
16590
fi
 
16591
rm -f conftest*
 
16592
 
 
16593
    if test -z "$gl_cv_size_max"; then
 
16594
                        if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
 
16595
#include <limits.h>"; then :
 
16596
  
 
16597
else
 
16598
  size_t_bits_minus_1=
 
16599
fi
 
16600
 
 
16601
      if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
 
16602
  
 
16603
else
 
16604
  fits_in_uint=
 
16605
fi
 
16606
 
 
16607
      if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
 
16608
        if test $fits_in_uint = 1; then
 
16609
                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16610
/* end confdefs.h.  */
 
16611
#include <stddef.h>
 
16612
                 extern size_t foo;
 
16613
                 extern unsigned long foo;
 
16614
               
 
16615
int
 
16616
main (void)
 
16617
{
 
16618
 
 
16619
  ;
 
16620
  return 0;
 
16621
}
 
16622
_ACEOF
 
16623
if ac_fn_c_try_compile "$LINENO"; then :
 
16624
  fits_in_uint=0
 
16625
fi
 
16626
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16627
        fi
 
16628
                                if test $fits_in_uint = 1; then
 
16629
          gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
 
16630
        else
 
16631
          gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
 
16632
        fi
 
16633
      else
 
16634
                gl_cv_size_max='((size_t)~(size_t)0)'
 
16635
      fi
 
16636
    fi
 
16637
  
 
16638
fi
 
16639
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
 
16640
$as_echo "$gl_cv_size_max" >&6; }
 
16641
  if test "$gl_cv_size_max" != yes; then
 
16642
    
 
16643
cat >>confdefs.h <<_ACEOF
 
16644
@%:@define SIZE_MAX $gl_cv_size_max
 
16645
_ACEOF
 
16646
 
 
16647
  fi
 
16648
        
 
16649
 
 
16650
  # Code from module sleep:
 
16651
  
 
16652
  
 
16653
            ac_fn_c_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h>
 
16654
"
 
16655
if test "x$ac_cv_have_decl_sleep" = x""yes; then :
 
16656
  ac_have_decl=1
 
16657
else
 
16658
  ac_have_decl=0
 
16659
fi
 
16660
 
 
16661
cat >>confdefs.h <<_ACEOF
 
16662
@%:@define HAVE_DECL_SLEEP $ac_have_decl
 
16663
_ACEOF
 
16664
 
 
16665
  
 
16666
  if test $ac_cv_have_decl_sleep != yes; then
 
16667
    HAVE_SLEEP=0
 
16668
    
 
16669
  
 
16670
  
 
16671
    
 
16672
      
 
16673
      
 
16674
    
 
16675
  
 
16676
  gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
 
16677
 
 
16678
  else
 
16679
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sleep" >&5
 
16680
$as_echo_n "checking for working sleep... " >&6; }
 
16681
if test "${gl_cv_func_sleep_works+set}" = set; then :
 
16682
  $as_echo_n "(cached) " >&6
 
16683
else
 
16684
  if test "$cross_compiling" = yes; then :
 
16685
  gl_cv_func_sleep_works="guessing no"
 
16686
else
 
16687
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16688
/* end confdefs.h.  */
 
16689
 
 
16690
#include <errno.h>
 
16691
#include <unistd.h>
 
16692
#include <signal.h>
 
16693
static void
 
16694
handle_alarm (int sig)
 
16695
{
 
16696
  if (sig != SIGALRM)
 
16697
    _exit (2);
 
16698
}
 
16699
 
 
16700
int
 
16701
main (void)
 
16702
{
 
16703
 
 
16704
    /* Failure to compile this test due to missing alarm is okay,
 
16705
       since all such platforms (mingw) also lack sleep.  */
 
16706
    unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days.  */
 
16707
    unsigned int remaining;
 
16708
    signal (SIGALRM, handle_alarm);
 
16709
    alarm (1);
 
16710
    remaining = sleep (pentecost);
 
16711
    return !(pentecost - 10 < remaining && remaining <= pentecost);
 
16712
  ;
 
16713
  return 0;
 
16714
}
 
16715
_ACEOF
 
16716
if ac_fn_c_try_run "$LINENO"; then :
 
16717
  gl_cv_func_sleep_works=yes
 
16718
else
 
16719
  gl_cv_func_sleep_works=no
 
16720
fi
 
16721
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
16722
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
16723
fi
 
16724
 
 
16725
fi
 
16726
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sleep_works" >&5
 
16727
$as_echo "$gl_cv_func_sleep_works" >&6; }
 
16728
    if test "$gl_cv_func_sleep_works" != yes; then
 
16729
      REPLACE_SLEEP=1
 
16730
      
 
16731
  
 
16732
  
 
16733
    
 
16734
      
 
16735
      
 
16736
    
 
16737
  
 
16738
  gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
 
16739
 
 
16740
    fi
 
16741
  fi
 
16742
 
 
16743
  
 
16744
    
 
16745
  
 
16746
  GNULIB_SLEEP=1
 
16747
 
 
16748
    
 
16749
  
 
16750
$as_echo "@%:@define GNULIB_TEST_SLEEP 1" >>confdefs.h
 
16751
 
 
16752
 
 
16753
 
 
16754
  # Code from module ssize_t:
 
16755
  
 
16756
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
 
16757
$as_echo_n "checking for ssize_t... " >&6; }
 
16758
if test "${gt_cv_ssize_t+set}" = set; then :
 
16759
  $as_echo_n "(cached) " >&6
 
16760
else
 
16761
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16762
/* end confdefs.h.  */
 
16763
#include <sys/types.h>
 
16764
int
 
16765
main (void)
 
16766
{
 
16767
int x = sizeof (ssize_t *) + sizeof (ssize_t);
 
16768
            return !x;
 
16769
  ;
 
16770
  return 0;
 
16771
}
 
16772
_ACEOF
 
16773
if ac_fn_c_try_compile "$LINENO"; then :
 
16774
  gt_cv_ssize_t=yes
 
16775
else
 
16776
  gt_cv_ssize_t=no
 
16777
fi
 
16778
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16779
fi
 
16780
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
 
16781
$as_echo "$gt_cv_ssize_t" >&6; }
 
16782
  if test $gt_cv_ssize_t = no; then
 
16783
    
 
16784
$as_echo "@%:@define ssize_t int" >>confdefs.h
 
16785
 
 
16786
  fi
 
16787
 
 
16788
  # Code from module stdbool:
 
16789
  
 
16790
  
 
16791
 
 
16792
  # Define two additional variables used in the Makefile substitution.
 
16793
 
 
16794
  if test "$ac_cv_header_stdbool_h" = yes; then
 
16795
    STDBOOL_H=''
 
16796
  else
 
16797
    STDBOOL_H='stdbool.h'
 
16798
  fi
 
16799
  
 
16800
 
 
16801
  if test "$ac_cv_type__Bool" = yes; then
 
16802
    HAVE__BOOL=1
 
16803
  else
 
16804
    HAVE__BOOL=0
 
16805
  fi
 
16806
  
 
16807
 
 
16808
  # Code from module stddef:
 
16809
  
 
16810
  
 
16811
  
 
16812
  if test $gt_cv_c_wchar_t = no; then
 
16813
    HAVE_WCHAR_T=0
 
16814
    STDDEF_H=stddef.h
 
16815
  fi
 
16816
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
 
16817
$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
 
16818
if test "${gl_cv_decl_null_works+set}" = set; then :
 
16819
  $as_echo_n "(cached) " >&6
 
16820
else
 
16821
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16822
/* end confdefs.h.  */
 
16823
#include <stddef.h>
 
16824
      int test[2 * (sizeof NULL == sizeof (void *)) -1];
 
16825
 
 
16826
int
 
16827
main (void)
 
16828
{
 
16829
 
 
16830
  ;
 
16831
  return 0;
 
16832
}
 
16833
_ACEOF
 
16834
if ac_fn_c_try_compile "$LINENO"; then :
 
16835
  gl_cv_decl_null_works=yes
 
16836
else
 
16837
  gl_cv_decl_null_works=no
 
16838
fi
 
16839
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16840
fi
 
16841
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
 
16842
$as_echo "$gl_cv_decl_null_works" >&6; }
 
16843
  if test $gl_cv_decl_null_works = no; then
 
16844
    REPLACE_NULL=1
 
16845
    STDDEF_H=stddef.h
 
16846
  fi
 
16847
  if test -n "$STDDEF_H"; then
 
16848
    
 
16849
  
 
16850
  
 
16851
  
 
16852
 
 
16853
  
 
16854
     if test $gl_cv_have_include_next = yes; then
 
16855
       gl_cv_next_stddef_h='<'stddef.h'>'
 
16856
     else
 
16857
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
 
16858
$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
 
16859
if test "${gl_cv_next_stddef_h+set}" = set; then :
 
16860
  $as_echo_n "(cached) " >&6
 
16861
else
 
16862
  
 
16863
          if test $ac_cv_header_stddef_h = yes; then
 
16864
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16865
/* end confdefs.h.  */
 
16866
#include <stddef.h>
 
16867
               
 
16868
_ACEOF
 
16869
                                                                                                case "$host_os" in
 
16870
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
16871
              *)    gl_absname_cpp="$ac_cpp" ;;
 
16872
            esac
 
16873
                                                gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
16874
               sed -n '\#/stddef.h#{
 
16875
                 s#.*"\(.*/stddef.h\)".*#\1#
 
16876
                 s#^/[^/]#//&#
 
16877
                 p
 
16878
                 q
 
16879
               }'`'"'
 
16880
          else
 
16881
            gl_cv_next_stddef_h='<'stddef.h'>'
 
16882
          fi
 
16883
          
 
16884
fi
 
16885
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
 
16886
$as_echo "$gl_cv_next_stddef_h" >&6; }
 
16887
     fi
 
16888
     NEXT_STDDEF_H=$gl_cv_next_stddef_h
 
16889
 
 
16890
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
16891
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
16892
       gl_next_as_first_directive='<'stddef.h'>'
 
16893
     else
 
16894
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
16895
       gl_next_as_first_directive=$gl_cv_next_stddef_h
 
16896
     fi
 
16897
     NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
 
16898
 
 
16899
     
 
16900
 
 
16901
  fi
 
16902
 
 
16903
  # Code from module stdint:
 
16904
  
 
16905
  
 
16906
    
 
16907
  if test $ac_cv_type_long_long_int = yes; then
 
16908
    HAVE_LONG_LONG_INT=1
 
16909
  else
 
16910
    HAVE_LONG_LONG_INT=0
 
16911
  fi
 
16912
  
 
16913
  
 
16914
  if test $ac_cv_type_unsigned_long_long_int = yes; then
 
16915
    HAVE_UNSIGNED_LONG_LONG_INT=1
 
16916
  else
 
16917
    HAVE_UNSIGNED_LONG_LONG_INT=0
 
16918
  fi
 
16919
  
 
16920
 
 
16921
      if test $ac_cv_header_inttypes_h = yes; then
 
16922
    HAVE_INTTYPES_H=1
 
16923
  else
 
16924
    HAVE_INTTYPES_H=0
 
16925
  fi
 
16926
  
 
16927
 
 
16928
      if test $ac_cv_header_sys_types_h = yes; then
 
16929
    HAVE_SYS_TYPES_H=1
 
16930
  else
 
16931
    HAVE_SYS_TYPES_H=0
 
16932
  fi
 
16933
  
 
16934
 
 
16935
  
 
16936
  
 
16937
  
 
16938
  
 
16939
 
 
16940
  
 
16941
     if test $gl_cv_have_include_next = yes; then
 
16942
       gl_cv_next_stdint_h='<'stdint.h'>'
 
16943
     else
 
16944
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
 
16945
$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
 
16946
if test "${gl_cv_next_stdint_h+set}" = set; then :
 
16947
  $as_echo_n "(cached) " >&6
 
16948
else
 
16949
  
 
16950
          if test $ac_cv_header_stdint_h = yes; then
 
16951
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16952
/* end confdefs.h.  */
 
16953
#include <stdint.h>
 
16954
               
 
16955
_ACEOF
 
16956
                                                                                                case "$host_os" in
 
16957
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
16958
              *)    gl_absname_cpp="$ac_cpp" ;;
 
16959
            esac
 
16960
                                                gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
16961
               sed -n '\#/stdint.h#{
 
16962
                 s#.*"\(.*/stdint.h\)".*#\1#
 
16963
                 s#^/[^/]#//&#
 
16964
                 p
 
16965
                 q
 
16966
               }'`'"'
 
16967
          else
 
16968
            gl_cv_next_stdint_h='<'stdint.h'>'
 
16969
          fi
 
16970
          
 
16971
fi
 
16972
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
 
16973
$as_echo "$gl_cv_next_stdint_h" >&6; }
 
16974
     fi
 
16975
     NEXT_STDINT_H=$gl_cv_next_stdint_h
 
16976
 
 
16977
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
16978
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
16979
       gl_next_as_first_directive='<'stdint.h'>'
 
16980
     else
 
16981
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
16982
       gl_next_as_first_directive=$gl_cv_next_stdint_h
 
16983
     fi
 
16984
     NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
 
16985
 
 
16986
     
 
16987
 
 
16988
  if test $ac_cv_header_stdint_h = yes; then
 
16989
    HAVE_STDINT_H=1
 
16990
  else
 
16991
    HAVE_STDINT_H=0
 
16992
  fi
 
16993
  
 
16994
 
 
16995
    if test $ac_cv_header_stdint_h = yes; then
 
16996
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
 
16997
$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
 
16998
if test "${gl_cv_header_working_stdint_h+set}" = set; then :
 
16999
  $as_echo_n "(cached) " >&6
 
17000
else
 
17001
  gl_cv_header_working_stdint_h=no
 
17002
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17003
/* end confdefs.h.  */
 
17004
 
 
17005
         
 
17006
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
 
17007
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
 
17008
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
 
17009
#include <stdint.h>
 
17010
/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
 
17011
#if !(defined WCHAR_MIN && defined WCHAR_MAX)
 
17012
#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
 
17013
#endif
 
17014
 
 
17015
 
 
17016
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
17017
     included before <wchar.h>.  */
 
17018
  #include <stddef.h>
 
17019
  #include <signal.h>
 
17020
  #if HAVE_WCHAR_H
 
17021
  # include <stdio.h>
 
17022
  # include <time.h>
 
17023
  # include <wchar.h>
 
17024
  #endif
 
17025
 
 
17026
 
 
17027
#ifdef INT8_MAX
 
17028
int8_t a1 = INT8_MAX;
 
17029
int8_t a1min = INT8_MIN;
 
17030
#endif
 
17031
#ifdef INT16_MAX
 
17032
int16_t a2 = INT16_MAX;
 
17033
int16_t a2min = INT16_MIN;
 
17034
#endif
 
17035
#ifdef INT32_MAX
 
17036
int32_t a3 = INT32_MAX;
 
17037
int32_t a3min = INT32_MIN;
 
17038
#endif
 
17039
#ifdef INT64_MAX
 
17040
int64_t a4 = INT64_MAX;
 
17041
int64_t a4min = INT64_MIN;
 
17042
#endif
 
17043
#ifdef UINT8_MAX
 
17044
uint8_t b1 = UINT8_MAX;
 
17045
#else
 
17046
typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
 
17047
#endif
 
17048
#ifdef UINT16_MAX
 
17049
uint16_t b2 = UINT16_MAX;
 
17050
#endif
 
17051
#ifdef UINT32_MAX
 
17052
uint32_t b3 = UINT32_MAX;
 
17053
#endif
 
17054
#ifdef UINT64_MAX
 
17055
uint64_t b4 = UINT64_MAX;
 
17056
#endif
 
17057
int_least8_t c1 = INT8_C (0x7f);
 
17058
int_least8_t c1max = INT_LEAST8_MAX;
 
17059
int_least8_t c1min = INT_LEAST8_MIN;
 
17060
int_least16_t c2 = INT16_C (0x7fff);
 
17061
int_least16_t c2max = INT_LEAST16_MAX;
 
17062
int_least16_t c2min = INT_LEAST16_MIN;
 
17063
int_least32_t c3 = INT32_C (0x7fffffff);
 
17064
int_least32_t c3max = INT_LEAST32_MAX;
 
17065
int_least32_t c3min = INT_LEAST32_MIN;
 
17066
int_least64_t c4 = INT64_C (0x7fffffffffffffff);
 
17067
int_least64_t c4max = INT_LEAST64_MAX;
 
17068
int_least64_t c4min = INT_LEAST64_MIN;
 
17069
uint_least8_t d1 = UINT8_C (0xff);
 
17070
uint_least8_t d1max = UINT_LEAST8_MAX;
 
17071
uint_least16_t d2 = UINT16_C (0xffff);
 
17072
uint_least16_t d2max = UINT_LEAST16_MAX;
 
17073
uint_least32_t d3 = UINT32_C (0xffffffff);
 
17074
uint_least32_t d3max = UINT_LEAST32_MAX;
 
17075
uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
 
17076
uint_least64_t d4max = UINT_LEAST64_MAX;
 
17077
int_fast8_t e1 = INT_FAST8_MAX;
 
17078
int_fast8_t e1min = INT_FAST8_MIN;
 
17079
int_fast16_t e2 = INT_FAST16_MAX;
 
17080
int_fast16_t e2min = INT_FAST16_MIN;
 
17081
int_fast32_t e3 = INT_FAST32_MAX;
 
17082
int_fast32_t e3min = INT_FAST32_MIN;
 
17083
int_fast64_t e4 = INT_FAST64_MAX;
 
17084
int_fast64_t e4min = INT_FAST64_MIN;
 
17085
uint_fast8_t f1 = UINT_FAST8_MAX;
 
17086
uint_fast16_t f2 = UINT_FAST16_MAX;
 
17087
uint_fast32_t f3 = UINT_FAST32_MAX;
 
17088
uint_fast64_t f4 = UINT_FAST64_MAX;
 
17089
#ifdef INTPTR_MAX
 
17090
intptr_t g = INTPTR_MAX;
 
17091
intptr_t gmin = INTPTR_MIN;
 
17092
#endif
 
17093
#ifdef UINTPTR_MAX
 
17094
uintptr_t h = UINTPTR_MAX;
 
17095
#endif
 
17096
intmax_t i = INTMAX_MAX;
 
17097
uintmax_t j = UINTMAX_MAX;
 
17098
 
 
17099
#include <limits.h> /* for CHAR_BIT */
 
17100
#define TYPE_MINIMUM(t) \
 
17101
  ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
 
17102
#define TYPE_MAXIMUM(t) \
 
17103
  ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
 
17104
struct s {
 
17105
  int check_PTRDIFF:
 
17106
      PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
 
17107
      && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
 
17108
      ? 1 : -1;
 
17109
  /* Detect bug in FreeBSD 6.0 / ia64.  */
 
17110
  int check_SIG_ATOMIC:
 
17111
      SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
 
17112
      && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
 
17113
      ? 1 : -1;
 
17114
  int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
 
17115
  int check_WCHAR:
 
17116
      WCHAR_MIN == TYPE_MINIMUM (wchar_t)
 
17117
      && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
 
17118
      ? 1 : -1;
 
17119
  /* Detect bug in mingw.  */
 
17120
  int check_WINT:
 
17121
      WINT_MIN == TYPE_MINIMUM (wint_t)
 
17122
      && WINT_MAX == TYPE_MAXIMUM (wint_t)
 
17123
      ? 1 : -1;
 
17124
 
 
17125
  /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
 
17126
  int check_UINT8_C:
 
17127
        (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
 
17128
  int check_UINT16_C:
 
17129
        (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
 
17130
 
 
17131
  /* Detect bugs in OpenBSD 3.9 stdint.h.  */
 
17132
#ifdef UINT8_MAX
 
17133
  int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
 
17134
#endif
 
17135
#ifdef UINT16_MAX
 
17136
  int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
 
17137
#endif
 
17138
#ifdef UINT32_MAX
 
17139
  int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
 
17140
#endif
 
17141
#ifdef UINT64_MAX
 
17142
  int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
 
17143
#endif
 
17144
  int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
 
17145
  int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
 
17146
  int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
 
17147
  int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
 
17148
  int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
 
17149
  int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
 
17150
  int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
 
17151
  int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
 
17152
  int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
 
17153
  int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
 
17154
  int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
 
17155
};
 
17156
         
 
17157
int
 
17158
main (void)
 
17159
{
 
17160
 
 
17161
  ;
 
17162
  return 0;
 
17163
}
 
17164
_ACEOF
 
17165
if ac_fn_c_try_compile "$LINENO"; then :
 
17166
                                                    if test "$cross_compiling" = yes; then :
 
17167
                 gl_cv_header_working_stdint_h=yes
 
17168
              
 
17169
else
 
17170
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17171
/* end confdefs.h.  */
 
17172
 
 
17173
            
 
17174
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
 
17175
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
 
17176
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
 
17177
#include <stdint.h>
 
17178
 
 
17179
 
 
17180
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
17181
     included before <wchar.h>.  */
 
17182
  #include <stddef.h>
 
17183
  #include <signal.h>
 
17184
  #if HAVE_WCHAR_H
 
17185
  # include <stdio.h>
 
17186
  # include <time.h>
 
17187
  # include <wchar.h>
 
17188
  #endif
 
17189
 
 
17190
 
 
17191
#include <stdio.h>
 
17192
#include <string.h>
 
17193
#define MVAL(macro) MVAL1(macro)
 
17194
#define MVAL1(expression) #expression
 
17195
static const char *macro_values[] =
 
17196
  {
 
17197
#ifdef INT8_MAX
 
17198
    MVAL (INT8_MAX),
 
17199
#endif
 
17200
#ifdef INT16_MAX
 
17201
    MVAL (INT16_MAX),
 
17202
#endif
 
17203
#ifdef INT32_MAX
 
17204
    MVAL (INT32_MAX),
 
17205
#endif
 
17206
#ifdef INT64_MAX
 
17207
    MVAL (INT64_MAX),
 
17208
#endif
 
17209
#ifdef UINT8_MAX
 
17210
    MVAL (UINT8_MAX),
 
17211
#endif
 
17212
#ifdef UINT16_MAX
 
17213
    MVAL (UINT16_MAX),
 
17214
#endif
 
17215
#ifdef UINT32_MAX
 
17216
    MVAL (UINT32_MAX),
 
17217
#endif
 
17218
#ifdef UINT64_MAX
 
17219
    MVAL (UINT64_MAX),
 
17220
#endif
 
17221
    NULL
 
17222
  };
 
17223
 
 
17224
int
 
17225
main (void)
 
17226
{
 
17227
 
 
17228
  const char **mv;
 
17229
  for (mv = macro_values; *mv != NULL; mv++)
 
17230
    {
 
17231
      const char *value = *mv;
 
17232
      /* Test whether it looks like a cast expression.  */
 
17233
      if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
 
17234
          || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
 
17235
          || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
 
17236
          || strncmp (value, "((int)"/*)*/, 6) == 0
 
17237
          || strncmp (value, "((signed short)"/*)*/, 15) == 0
 
17238
          || strncmp (value, "((signed char)"/*)*/, 14) == 0)
 
17239
        return 1;
 
17240
    }
 
17241
  return 0;
 
17242
 
 
17243
  ;
 
17244
  return 0;
 
17245
}
 
17246
_ACEOF
 
17247
if ac_fn_c_try_run "$LINENO"; then :
 
17248
  gl_cv_header_working_stdint_h=yes
 
17249
fi
 
17250
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
17251
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
17252
fi
 
17253
 
 
17254
         
 
17255
fi
 
17256
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17257
      
 
17258
fi
 
17259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
 
17260
$as_echo "$gl_cv_header_working_stdint_h" >&6; }
 
17261
  fi
 
17262
  if test "$gl_cv_header_working_stdint_h" = yes; then
 
17263
    STDINT_H=
 
17264
  else
 
17265
            for ac_header in sys/inttypes.h sys/bitypes.h
 
17266
do :
 
17267
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
17268
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
17269
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
17270
  cat >>confdefs.h <<_ACEOF
 
17271
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
17272
_ACEOF
 
17273
 
 
17274
fi
 
17275
 
 
17276
done
 
17277
 
 
17278
    if test $ac_cv_header_sys_inttypes_h = yes; then
 
17279
      HAVE_SYS_INTTYPES_H=1
 
17280
    else
 
17281
      HAVE_SYS_INTTYPES_H=0
 
17282
    fi
 
17283
    
 
17284
    if test $ac_cv_header_sys_bitypes_h = yes; then
 
17285
      HAVE_SYS_BITYPES_H=1
 
17286
    else
 
17287
      HAVE_SYS_BITYPES_H=0
 
17288
    fi
 
17289
    
 
17290
 
 
17291
            
 
17292
 
 
17293
    
 
17294
  
 
17295
  if test $APPLE_UNIVERSAL_BUILD = 0; then
 
17296
    
 
17297
          
 
17298
  for gltype in ptrdiff_t size_t ; do
 
17299
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
 
17300
$as_echo_n "checking for bit size of $gltype... " >&6; }
 
17301
if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\"" = set; then :
 
17302
  $as_echo_n "(cached) " >&6
 
17303
else
 
17304
  if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
 
17305
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
17306
     included before <wchar.h>.  */
 
17307
  #include <stddef.h>
 
17308
  #include <signal.h>
 
17309
  #if HAVE_WCHAR_H
 
17310
  # include <stdio.h>
 
17311
  # include <time.h>
 
17312
  # include <wchar.h>
 
17313
  #endif
 
17314
 
 
17315
#include <limits.h>"; then :
 
17316
  
 
17317
else
 
17318
  result=unknown
 
17319
fi
 
17320
 
 
17321
       eval gl_cv_bitsizeof_${gltype}=\$result
 
17322
      
 
17323
fi
 
17324
eval ac_res=\$gl_cv_bitsizeof_${gltype}
 
17325
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
17326
$as_echo "$ac_res" >&6; }
 
17327
    eval result=\$gl_cv_bitsizeof_${gltype}
 
17328
    if test $result = unknown; then
 
17329
                                                result=0
 
17330
    fi
 
17331
    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
17332
    cat >>confdefs.h <<_ACEOF
 
17333
@%:@define BITSIZEOF_${GLTYPE} $result
 
17334
_ACEOF
 
17335
 
 
17336
    eval BITSIZEOF_${GLTYPE}=\$result
 
17337
  done
 
17338
  
 
17339
 
 
17340
  fi
 
17341
  
 
17342
          
 
17343
  for gltype in sig_atomic_t wchar_t wint_t ; do
 
17344
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
 
17345
$as_echo_n "checking for bit size of $gltype... " >&6; }
 
17346
if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\"" = set; then :
 
17347
  $as_echo_n "(cached) " >&6
 
17348
else
 
17349
  if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
 
17350
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
17351
     included before <wchar.h>.  */
 
17352
  #include <stddef.h>
 
17353
  #include <signal.h>
 
17354
  #if HAVE_WCHAR_H
 
17355
  # include <stdio.h>
 
17356
  # include <time.h>
 
17357
  # include <wchar.h>
 
17358
  #endif
 
17359
 
 
17360
#include <limits.h>"; then :
 
17361
  
 
17362
else
 
17363
  result=unknown
 
17364
fi
 
17365
 
 
17366
       eval gl_cv_bitsizeof_${gltype}=\$result
 
17367
      
 
17368
fi
 
17369
eval ac_res=\$gl_cv_bitsizeof_${gltype}
 
17370
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
17371
$as_echo "$ac_res" >&6; }
 
17372
    eval result=\$gl_cv_bitsizeof_${gltype}
 
17373
    if test $result = unknown; then
 
17374
                                                result=0
 
17375
    fi
 
17376
    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
17377
    cat >>confdefs.h <<_ACEOF
 
17378
@%:@define BITSIZEOF_${GLTYPE} $result
 
17379
_ACEOF
 
17380
 
 
17381
    eval BITSIZEOF_${GLTYPE}=\$result
 
17382
  done
 
17383
  
 
17384
 
 
17385
  
 
17386
          
 
17387
  for gltype in sig_atomic_t wchar_t wint_t ; do
 
17388
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
 
17389
$as_echo_n "checking whether $gltype is signed... " >&6; }
 
17390
if eval "test \"\${gl_cv_type_${gltype}_signed+set}\"" = set; then :
 
17391
  $as_echo_n "(cached) " >&6
 
17392
else
 
17393
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17394
/* end confdefs.h.  */
 
17395
 
 
17396
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
17397
     included before <wchar.h>.  */
 
17398
  #include <stddef.h>
 
17399
  #include <signal.h>
 
17400
  #if HAVE_WCHAR_H
 
17401
  # include <stdio.h>
 
17402
  # include <time.h>
 
17403
  # include <wchar.h>
 
17404
  #endif
 
17405
 
 
17406
            int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
 
17407
int
 
17408
main (void)
 
17409
{
 
17410
 
 
17411
  ;
 
17412
  return 0;
 
17413
}
 
17414
_ACEOF
 
17415
if ac_fn_c_try_compile "$LINENO"; then :
 
17416
  result=yes
 
17417
else
 
17418
  result=no
 
17419
fi
 
17420
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17421
       eval gl_cv_type_${gltype}_signed=\$result
 
17422
      
 
17423
fi
 
17424
eval ac_res=\$gl_cv_type_${gltype}_signed
 
17425
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
17426
$as_echo "$ac_res" >&6; }
 
17427
    eval result=\$gl_cv_type_${gltype}_signed
 
17428
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
17429
    if test "$result" = yes; then
 
17430
      cat >>confdefs.h <<_ACEOF
 
17431
@%:@define HAVE_SIGNED_${GLTYPE} 1
 
17432
_ACEOF
 
17433
 
 
17434
      eval HAVE_SIGNED_${GLTYPE}=1
 
17435
    else
 
17436
      eval HAVE_SIGNED_${GLTYPE}=0
 
17437
    fi
 
17438
  done
 
17439
  
 
17440
 
 
17441
  gl_cv_type_ptrdiff_t_signed=yes
 
17442
  gl_cv_type_size_t_signed=no
 
17443
  if test $APPLE_UNIVERSAL_BUILD = 0; then
 
17444
    
 
17445
          
 
17446
  for gltype in ptrdiff_t size_t ; do
 
17447
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
 
17448
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
 
17449
if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\"" = set; then :
 
17450
  $as_echo_n "(cached) " >&6
 
17451
else
 
17452
  eval gl_cv_type_${gltype}_suffix=no
 
17453
       eval result=\$gl_cv_type_${gltype}_signed
 
17454
       if test "$result" = yes; then
 
17455
         glsufu=
 
17456
       else
 
17457
         glsufu=u
 
17458
       fi
 
17459
       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
 
17460
         case $glsuf in
 
17461
           '')  gltype1='int';;
 
17462
           l)   gltype1='long int';;
 
17463
           ll)  gltype1='long long int';;
 
17464
           i64) gltype1='__int64';;
 
17465
           u)   gltype1='unsigned int';;
 
17466
           ul)  gltype1='unsigned long int';;
 
17467
           ull) gltype1='unsigned long long int';;
 
17468
           ui64)gltype1='unsigned __int64';;
 
17469
         esac
 
17470
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17471
/* end confdefs.h.  */
 
17472
 
 
17473
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
17474
     included before <wchar.h>.  */
 
17475
  #include <stddef.h>
 
17476
  #include <signal.h>
 
17477
  #if HAVE_WCHAR_H
 
17478
  # include <stdio.h>
 
17479
  # include <time.h>
 
17480
  # include <wchar.h>
 
17481
  #endif
 
17482
 
 
17483
              extern $gltype foo;
 
17484
              extern $gltype1 foo;
 
17485
int
 
17486
main (void)
 
17487
{
 
17488
 
 
17489
  ;
 
17490
  return 0;
 
17491
}
 
17492
_ACEOF
 
17493
if ac_fn_c_try_compile "$LINENO"; then :
 
17494
  eval gl_cv_type_${gltype}_suffix=\$glsuf
 
17495
fi
 
17496
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17497
         eval result=\$gl_cv_type_${gltype}_suffix
 
17498
         test "$result" != no && break
 
17499
       done
 
17500
fi
 
17501
eval ac_res=\$gl_cv_type_${gltype}_suffix
 
17502
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
17503
$as_echo "$ac_res" >&6; }
 
17504
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
17505
    eval result=\$gl_cv_type_${gltype}_suffix
 
17506
    test "$result" = no && result=
 
17507
    eval ${GLTYPE}_SUFFIX=\$result
 
17508
    cat >>confdefs.h <<_ACEOF
 
17509
@%:@define ${GLTYPE}_SUFFIX $result
 
17510
_ACEOF
 
17511
 
 
17512
  done
 
17513
  
 
17514
 
 
17515
  fi
 
17516
  
 
17517
          
 
17518
  for gltype in sig_atomic_t wchar_t wint_t ; do
 
17519
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
 
17520
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
 
17521
if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\"" = set; then :
 
17522
  $as_echo_n "(cached) " >&6
 
17523
else
 
17524
  eval gl_cv_type_${gltype}_suffix=no
 
17525
       eval result=\$gl_cv_type_${gltype}_signed
 
17526
       if test "$result" = yes; then
 
17527
         glsufu=
 
17528
       else
 
17529
         glsufu=u
 
17530
       fi
 
17531
       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
 
17532
         case $glsuf in
 
17533
           '')  gltype1='int';;
 
17534
           l)   gltype1='long int';;
 
17535
           ll)  gltype1='long long int';;
 
17536
           i64) gltype1='__int64';;
 
17537
           u)   gltype1='unsigned int';;
 
17538
           ul)  gltype1='unsigned long int';;
 
17539
           ull) gltype1='unsigned long long int';;
 
17540
           ui64)gltype1='unsigned __int64';;
 
17541
         esac
 
17542
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17543
/* end confdefs.h.  */
 
17544
 
 
17545
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
17546
     included before <wchar.h>.  */
 
17547
  #include <stddef.h>
 
17548
  #include <signal.h>
 
17549
  #if HAVE_WCHAR_H
 
17550
  # include <stdio.h>
 
17551
  # include <time.h>
 
17552
  # include <wchar.h>
 
17553
  #endif
 
17554
 
 
17555
              extern $gltype foo;
 
17556
              extern $gltype1 foo;
 
17557
int
 
17558
main (void)
 
17559
{
 
17560
 
 
17561
  ;
 
17562
  return 0;
 
17563
}
 
17564
_ACEOF
 
17565
if ac_fn_c_try_compile "$LINENO"; then :
 
17566
  eval gl_cv_type_${gltype}_suffix=\$glsuf
 
17567
fi
 
17568
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17569
         eval result=\$gl_cv_type_${gltype}_suffix
 
17570
         test "$result" != no && break
 
17571
       done
 
17572
fi
 
17573
eval ac_res=\$gl_cv_type_${gltype}_suffix
 
17574
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
17575
$as_echo "$ac_res" >&6; }
 
17576
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
17577
    eval result=\$gl_cv_type_${gltype}_suffix
 
17578
    test "$result" = no && result=
 
17579
    eval ${GLTYPE}_SUFFIX=\$result
 
17580
    cat >>confdefs.h <<_ACEOF
 
17581
@%:@define ${GLTYPE}_SUFFIX $result
 
17582
_ACEOF
 
17583
 
 
17584
  done
 
17585
  
 
17586
 
 
17587
 
 
17588
    STDINT_H=stdint.h
 
17589
  fi
 
17590
  
 
17591
 
 
17592
  # Code from module stdio:
 
17593
  
 
17594
  
 
17595
  
 
17596
  
 
17597
  
 
17598
  
 
17599
  
 
17600
  
 
17601
 
 
17602
  
 
17603
     if test $gl_cv_have_include_next = yes; then
 
17604
       gl_cv_next_stdio_h='<'stdio.h'>'
 
17605
     else
 
17606
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
 
17607
$as_echo_n "checking absolute name of <stdio.h>... " >&6; }
 
17608
if test "${gl_cv_next_stdio_h+set}" = set; then :
 
17609
  $as_echo_n "(cached) " >&6
 
17610
else
 
17611
  
 
17612
          if test $ac_cv_header_stdio_h = yes; then
 
17613
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17614
/* end confdefs.h.  */
 
17615
#include <stdio.h>
 
17616
               
 
17617
_ACEOF
 
17618
                                                                                                case "$host_os" in
 
17619
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
17620
              *)    gl_absname_cpp="$ac_cpp" ;;
 
17621
            esac
 
17622
                                                gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
17623
               sed -n '\#/stdio.h#{
 
17624
                 s#.*"\(.*/stdio.h\)".*#\1#
 
17625
                 s#^/[^/]#//&#
 
17626
                 p
 
17627
                 q
 
17628
               }'`'"'
 
17629
          else
 
17630
            gl_cv_next_stdio_h='<'stdio.h'>'
 
17631
          fi
 
17632
          
 
17633
fi
 
17634
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
 
17635
$as_echo "$gl_cv_next_stdio_h" >&6; }
 
17636
     fi
 
17637
     NEXT_STDIO_H=$gl_cv_next_stdio_h
 
17638
 
 
17639
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
17640
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
17641
       gl_next_as_first_directive='<'stdio.h'>'
 
17642
     else
 
17643
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
17644
       gl_next_as_first_directive=$gl_cv_next_stdio_h
 
17645
     fi
 
17646
     NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
 
17647
 
 
17648
     
 
17649
 
 
17650
      GNULIB_FPRINTF=1
 
17651
  GNULIB_PRINTF=1
 
17652
  GNULIB_VFPRINTF=1
 
17653
  GNULIB_VPRINTF=1
 
17654
  GNULIB_FPUTC=1
 
17655
  GNULIB_PUTC=1
 
17656
  GNULIB_PUTCHAR=1
 
17657
  GNULIB_FPUTS=1
 
17658
  GNULIB_PUTS=1
 
17659
  GNULIB_FWRITE=1
 
17660
        
 
17661
 
 
17662
        
 
17663
    for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat     snprintf tmpfile vdprintf vsnprintf; do
 
17664
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
 
17665
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
 
17666
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
 
17667
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
 
17668
  $as_echo_n "(cached) " >&6
 
17669
else
 
17670
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17671
/* end confdefs.h.  */
 
17672
#include <stdio.h>
 
17673
    
 
17674
int
 
17675
main (void)
 
17676
{
 
17677
@%:@undef $gl_func
 
17678
  (void) $gl_func;
 
17679
  ;
 
17680
  return 0;
 
17681
}
 
17682
_ACEOF
 
17683
if ac_fn_c_try_compile "$LINENO"; then :
 
17684
  eval "$as_gl_Symbol=yes"
 
17685
else
 
17686
  eval "$as_gl_Symbol=no"
 
17687
fi
 
17688
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17689
fi
 
17690
eval ac_res=\$$as_gl_Symbol
 
17691
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
17692
$as_echo "$ac_res" >&6; }
 
17693
     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
 
17694
  cat >>confdefs.h <<_ACEOF
 
17695
@%:@define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
 
17696
_ACEOF
 
17697
 
 
17698
                     eval ac_cv_have_decl_$gl_func=yes
 
17699
fi
 
17700
      done
 
17701
 
 
17702
 
 
17703
  # Code from module stdlib:
 
17704
  
 
17705
  
 
17706
  
 
17707
  
 
17708
  
 
17709
  
 
17710
 
 
17711
  
 
17712
     if test $gl_cv_have_include_next = yes; then
 
17713
       gl_cv_next_stdlib_h='<'stdlib.h'>'
 
17714
     else
 
17715
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
 
17716
$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
 
17717
if test "${gl_cv_next_stdlib_h+set}" = set; then :
 
17718
  $as_echo_n "(cached) " >&6
 
17719
else
 
17720
  
 
17721
          if test $ac_cv_header_stdlib_h = yes; then
 
17722
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17723
/* end confdefs.h.  */
 
17724
#include <stdlib.h>
 
17725
               
 
17726
_ACEOF
 
17727
                                                                                                case "$host_os" in
 
17728
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
17729
              *)    gl_absname_cpp="$ac_cpp" ;;
 
17730
            esac
 
17731
                                                gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
17732
               sed -n '\#/stdlib.h#{
 
17733
                 s#.*"\(.*/stdlib.h\)".*#\1#
 
17734
                 s#^/[^/]#//&#
 
17735
                 p
 
17736
                 q
 
17737
               }'`'"'
 
17738
          else
 
17739
            gl_cv_next_stdlib_h='<'stdlib.h'>'
 
17740
          fi
 
17741
          
 
17742
fi
 
17743
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
 
17744
$as_echo "$gl_cv_next_stdlib_h" >&6; }
 
17745
     fi
 
17746
     NEXT_STDLIB_H=$gl_cv_next_stdlib_h
 
17747
 
 
17748
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
17749
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
17750
       gl_next_as_first_directive='<'stdlib.h'>'
 
17751
     else
 
17752
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
17753
       gl_next_as_first_directive=$gl_cv_next_stdlib_h
 
17754
     fi
 
17755
     NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
 
17756
 
 
17757
     
 
17758
 
 
17759
  for ac_header in random.h
 
17760
do :
 
17761
  ac_fn_c_check_header_compile "$LINENO" "random.h" "ac_cv_header_random_h" "$ac_includes_default
 
17762
"
 
17763
if test "x$ac_cv_header_random_h" = x""yes; then :
 
17764
  cat >>confdefs.h <<_ACEOF
 
17765
@%:@define HAVE_RANDOM_H 1
 
17766
_ACEOF
 
17767
 
 
17768
fi
 
17769
 
 
17770
done
 
17771
 
 
17772
  if test $ac_cv_header_random_h = yes; then
 
17773
    HAVE_RANDOM_H=1
 
17774
  else
 
17775
    HAVE_RANDOM_H=0
 
17776
  fi
 
17777
  
 
17778
  ac_fn_c_check_type "$LINENO" "struct random_data" "ac_cv_type_struct_random_data" "#include <stdlib.h>
 
17779
      #if HAVE_RANDOM_H
 
17780
      # include <random.h>
 
17781
      #endif
 
17782
    
 
17783
"
 
17784
if test "x$ac_cv_type_struct_random_data" = x""yes; then :
 
17785
  
 
17786
cat >>confdefs.h <<_ACEOF
 
17787
@%:@define HAVE_STRUCT_RANDOM_DATA 1
 
17788
_ACEOF
 
17789
 
 
17790
 
 
17791
else
 
17792
  HAVE_STRUCT_RANDOM_DATA=0
 
17793
fi
 
17794
 
 
17795
 
 
17796
        
 
17797
    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
 
17798
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
 
17799
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
 
17800
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
 
17801
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
 
17802
  $as_echo_n "(cached) " >&6
 
17803
else
 
17804
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17805
/* end confdefs.h.  */
 
17806
#include <stdlib.h>
 
17807
#if HAVE_SYS_LOADAVG_H
 
17808
# include <sys/loadavg.h>
 
17809
#endif
 
17810
#if HAVE_RANDOM_H
 
17811
# include <random.h>
 
17812
#endif
 
17813
    
 
17814
int
 
17815
main (void)
 
17816
{
 
17817
@%:@undef $gl_func
 
17818
  (void) $gl_func;
 
17819
  ;
 
17820
  return 0;
 
17821
}
 
17822
_ACEOF
 
17823
if ac_fn_c_try_compile "$LINENO"; then :
 
17824
  eval "$as_gl_Symbol=yes"
 
17825
else
 
17826
  eval "$as_gl_Symbol=no"
 
17827
fi
 
17828
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17829
fi
 
17830
eval ac_res=\$$as_gl_Symbol
 
17831
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
17832
$as_echo "$ac_res" >&6; }
 
17833
     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
 
17834
  cat >>confdefs.h <<_ACEOF
 
17835
@%:@define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
 
17836
_ACEOF
 
17837
 
 
17838
                     eval ac_cv_have_decl_$gl_func=yes
 
17839
fi
 
17840
      done
 
17841
 
 
17842
 
 
17843
  # Code from module strcase:
 
17844
  
 
17845
  
 
17846
  
 
17847
  
 
17848
  
 
17849
  
 
17850
    
 
17851
      
 
17852
      
 
17853
    
 
17854
  
 
17855
  for ac_func in strcasecmp
 
17856
do :
 
17857
  ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
 
17858
if test "x$ac_cv_func_strcasecmp" = x""yes; then :
 
17859
  cat >>confdefs.h <<_ACEOF
 
17860
@%:@define HAVE_STRCASECMP 1
 
17861
_ACEOF
 
17862
 
 
17863
else
 
17864
  
 
17865
    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
 
17866
 
 
17867
fi
 
17868
done
 
17869
 
 
17870
 
 
17871
  if test $ac_cv_func_strcasecmp = no; then
 
17872
    HAVE_STRCASECMP=0
 
17873
    
 
17874
  :
 
17875
 
 
17876
  fi
 
17877
 
 
17878
  
 
17879
  
 
17880
  
 
17881
  
 
17882
  
 
17883
    
 
17884
      
 
17885
      
 
17886
    
 
17887
  
 
17888
  for ac_func in strncasecmp
 
17889
do :
 
17890
  ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
 
17891
if test "x$ac_cv_func_strncasecmp" = x""yes; then :
 
17892
  cat >>confdefs.h <<_ACEOF
 
17893
@%:@define HAVE_STRNCASECMP 1
 
17894
_ACEOF
 
17895
 
 
17896
else
 
17897
  
 
17898
    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
 
17899
 
 
17900
fi
 
17901
done
 
17902
 
 
17903
 
 
17904
  if test $ac_cv_func_strncasecmp = no; then
 
17905
    
 
17906
  :
 
17907
 
 
17908
  fi
 
17909
  ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
 
17910
if test "x$ac_cv_have_decl_strncasecmp" = x""yes; then :
 
17911
  ac_have_decl=1
 
17912
else
 
17913
  ac_have_decl=0
 
17914
fi
 
17915
 
 
17916
cat >>confdefs.h <<_ACEOF
 
17917
@%:@define HAVE_DECL_STRNCASECMP $ac_have_decl
 
17918
_ACEOF
 
17919
 
 
17920
  if test $ac_cv_have_decl_strncasecmp = no; then
 
17921
    HAVE_DECL_STRNCASECMP=0
 
17922
  fi
 
17923
 
 
17924
 
 
17925
  # Code from module strchrnul:
 
17926
  
 
17927
    
 
17928
 
 
17929
  
 
17930
  
 
17931
  
 
17932
  
 
17933
    
 
17934
      
 
17935
      
 
17936
    
 
17937
  
 
17938
  for ac_func in strchrnul
 
17939
do :
 
17940
  ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
 
17941
if test "x$ac_cv_func_strchrnul" = x""yes; then :
 
17942
  cat >>confdefs.h <<_ACEOF
 
17943
@%:@define HAVE_STRCHRNUL 1
 
17944
_ACEOF
 
17945
 
 
17946
else
 
17947
  
 
17948
    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
 
17949
 
 
17950
fi
 
17951
done
 
17952
 
 
17953
 
 
17954
  if test $ac_cv_func_strchrnul = no; then
 
17955
    HAVE_STRCHRNUL=0
 
17956
    :
 
17957
  fi
 
17958
 
 
17959
  
 
17960
    
 
17961
  
 
17962
  GNULIB_STRCHRNUL=1
 
17963
 
 
17964
    
 
17965
  
 
17966
$as_echo "@%:@define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
 
17967
 
 
17968
 
 
17969
 
 
17970
  # Code from module streq:
 
17971
  # Code from module strerror:
 
17972
  
 
17973
  
 
17974
  if test $REPLACE_STRERROR = 1; then
 
17975
    
 
17976
  
 
17977
  
 
17978
    
 
17979
      
 
17980
      
 
17981
    
 
17982
  
 
17983
  gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
 
17984
 
 
17985
    
 
17986
cat >>confdefs.h <<_ACEOF
 
17987
@%:@define REPLACE_STRERROR $REPLACE_STRERROR
 
17988
_ACEOF
 
17989
 
 
17990
  fi
 
17991
 
 
17992
  
 
17993
    
 
17994
  
 
17995
  GNULIB_STRERROR=1
 
17996
 
 
17997
    
 
17998
  
 
17999
$as_echo "@%:@define GNULIB_TEST_STRERROR 1" >>confdefs.h
 
18000
 
 
18001
 
 
18002
 
 
18003
  # Code from module string:
 
18004
  
 
18005
      
 
18006
 
 
18007
  # Code from module strings:
 
18008
  
 
18009
      
 
18010
 
 
18011
  # Code from module strndup:
 
18012
  
 
18013
    
 
18014
 
 
18015
     
 
18016
  
 
18017
  
 
18018
  if test $ac_cv_have_decl_strndup = no; then
 
18019
    HAVE_DECL_STRNDUP=0
 
18020
  fi
 
18021
 
 
18022
  if test $ac_cv_func_strndup = yes; then
 
18023
    # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
 
18024
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
 
18025
$as_echo_n "checking for working strndup... " >&6; }
 
18026
if test "${gl_cv_func_strndup_works+set}" = set; then :
 
18027
  $as_echo_n "(cached) " >&6
 
18028
else
 
18029
  if test "$cross_compiling" = yes; then :
 
18030
  
 
18031
          case $host_os in
 
18032
            aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
 
18033
            *)               gl_cv_func_strndup_works="guessing yes";;
 
18034
          esac
 
18035
         
 
18036
else
 
18037
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18038
/* end confdefs.h.  */
 
18039
 
 
18040
         #include <string.h>
 
18041
                           #include <stdlib.h>
 
18042
int
 
18043
main (void)
 
18044
{
 
18045
 
 
18046
#ifndef HAVE_DECL_STRNDUP
 
18047
  extern char *strndup (const char *, size_t);
 
18048
#endif
 
18049
  char *s;
 
18050
  s = strndup ("some longer string", 15);
 
18051
  free (s);
 
18052
  s = strndup ("shorter string", 13);
 
18053
  return s[13] != '\0';
 
18054
  ;
 
18055
  return 0;
 
18056
}
 
18057
_ACEOF
 
18058
if ac_fn_c_try_run "$LINENO"; then :
 
18059
  gl_cv_func_strndup_works=yes
 
18060
else
 
18061
  gl_cv_func_strndup_works=no
 
18062
fi
 
18063
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
18064
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
18065
fi
 
18066
 
 
18067
fi
 
18068
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
 
18069
$as_echo "$gl_cv_func_strndup_works" >&6; }
 
18070
    case $gl_cv_func_strndup_works in
 
18071
      *no)
 
18072
        REPLACE_STRNDUP=1
 
18073
        
 
18074
  
 
18075
  
 
18076
    
 
18077
      
 
18078
      
 
18079
    
 
18080
  
 
18081
  gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
 
18082
 
 
18083
        ;;
 
18084
    esac
 
18085
  else
 
18086
    
 
18087
  
 
18088
  
 
18089
    
 
18090
      
 
18091
      
 
18092
    
 
18093
  
 
18094
  gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
 
18095
 
 
18096
  fi
 
18097
 
 
18098
  
 
18099
    
 
18100
  
 
18101
  GNULIB_STRNDUP=1
 
18102
 
 
18103
    
 
18104
  
 
18105
$as_echo "@%:@define GNULIB_TEST_STRNDUP 1" >>confdefs.h
 
18106
 
 
18107
 
 
18108
 
 
18109
  # Code from module strnlen:
 
18110
  
 
18111
  
 
18112
 
 
18113
    
 
18114
 
 
18115
  
 
18116
  if test $ac_cv_have_decl_strnlen = no; then
 
18117
    HAVE_DECL_STRNLEN=0
 
18118
  else
 
18119
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
 
18120
$as_echo_n "checking for working strnlen... " >&6; }
 
18121
if test "${ac_cv_func_strnlen_working+set}" = set; then :
 
18122
  $as_echo_n "(cached) " >&6
 
18123
else
 
18124
  if test "$cross_compiling" = yes; then :
 
18125
  ac_cv_func_strnlen_working=no
 
18126
else
 
18127
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18128
/* end confdefs.h.  */
 
18129
$ac_includes_default
 
18130
int
 
18131
main (void)
 
18132
{
 
18133
 
 
18134
#define S "foobar"
 
18135
#define S_LEN (sizeof S - 1)
 
18136
 
 
18137
  /* At least one implementation is buggy: that of AIX 4.3 would
 
18138
     give strnlen (S, 1) == 3.  */
 
18139
 
 
18140
  int i;
 
18141
  for (i = 0; i < S_LEN + 1; ++i)
 
18142
    {
 
18143
      int expected = i <= S_LEN ? i : S_LEN;
 
18144
      if (strnlen (S, i) != expected)
 
18145
        return 1;
 
18146
    }
 
18147
  return 0;
 
18148
 
 
18149
  ;
 
18150
  return 0;
 
18151
}
 
18152
_ACEOF
 
18153
if ac_fn_c_try_run "$LINENO"; then :
 
18154
  ac_cv_func_strnlen_working=yes
 
18155
else
 
18156
  ac_cv_func_strnlen_working=no
 
18157
fi
 
18158
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
18159
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
18160
fi
 
18161
 
 
18162
fi
 
18163
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
 
18164
$as_echo "$ac_cv_func_strnlen_working" >&6; }
 
18165
test $ac_cv_func_strnlen_working = no && 
 
18166
  
 
18167
  
 
18168
    
 
18169
      
 
18170
      
 
18171
    
 
18172
  
 
18173
  gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
 
18174
 
 
18175
 
 
18176
        if test $ac_cv_func_strnlen_working = no; then
 
18177
      REPLACE_STRNLEN=1
 
18178
    fi
 
18179
  fi
 
18180
  if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
 
18181
    
 
18182
  
 
18183
  
 
18184
    
 
18185
      
 
18186
      
 
18187
    
 
18188
  
 
18189
  gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
 
18190
 
 
18191
    :
 
18192
  fi
 
18193
 
 
18194
  
 
18195
    
 
18196
  
 
18197
  GNULIB_STRNLEN=1
 
18198
 
 
18199
    
 
18200
  
 
18201
$as_echo "@%:@define GNULIB_TEST_STRNLEN 1" >>confdefs.h
 
18202
 
 
18203
 
 
18204
 
 
18205
  # Code from module strnlen1:
 
18206
  # Code from module sys_wait:
 
18207
  
 
18208
  
 
18209
 
 
18210
    
 
18211
  
 
18212
  
 
18213
  
 
18214
 
 
18215
  
 
18216
     if test $gl_cv_have_include_next = yes; then
 
18217
       gl_cv_next_sys_wait_h='<'sys/wait.h'>'
 
18218
     else
 
18219
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
 
18220
$as_echo_n "checking absolute name of <sys/wait.h>... " >&6; }
 
18221
if test "${gl_cv_next_sys_wait_h+set}" = set; then :
 
18222
  $as_echo_n "(cached) " >&6
 
18223
else
 
18224
  
 
18225
          if test $ac_cv_header_sys_wait_h = yes; then
 
18226
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18227
/* end confdefs.h.  */
 
18228
#include <sys/wait.h>
 
18229
               
 
18230
_ACEOF
 
18231
                                                                                                case "$host_os" in
 
18232
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
18233
              *)    gl_absname_cpp="$ac_cpp" ;;
 
18234
            esac
 
18235
                                                gl_cv_next_sys_wait_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
18236
               sed -n '\#/sys/wait.h#{
 
18237
                 s#.*"\(.*/sys/wait.h\)".*#\1#
 
18238
                 s#^/[^/]#//&#
 
18239
                 p
 
18240
                 q
 
18241
               }'`'"'
 
18242
          else
 
18243
            gl_cv_next_sys_wait_h='<'sys/wait.h'>'
 
18244
          fi
 
18245
          
 
18246
fi
 
18247
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
 
18248
$as_echo "$gl_cv_next_sys_wait_h" >&6; }
 
18249
     fi
 
18250
     NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
 
18251
 
 
18252
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
18253
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
18254
       gl_next_as_first_directive='<'sys/wait.h'>'
 
18255
     else
 
18256
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
18257
       gl_next_as_first_directive=$gl_cv_next_sys_wait_h
 
18258
     fi
 
18259
     NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
 
18260
 
 
18261
     
 
18262
 
 
18263
 
 
18264
  
 
18265
  # Code from module sysexits:
 
18266
  
 
18267
  
 
18268
  if test $ac_cv_header_sysexits_h = yes; then
 
18269
    HAVE_SYSEXITS_H=1
 
18270
    
 
18271
  
 
18272
  
 
18273
  
 
18274
 
 
18275
  
 
18276
     if test $gl_cv_have_include_next = yes; then
 
18277
       gl_cv_next_sysexits_h='<'sysexits.h'>'
 
18278
     else
 
18279
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sysexits.h>" >&5
 
18280
$as_echo_n "checking absolute name of <sysexits.h>... " >&6; }
 
18281
if test "${gl_cv_next_sysexits_h+set}" = set; then :
 
18282
  $as_echo_n "(cached) " >&6
 
18283
else
 
18284
  
 
18285
          if test $ac_cv_header_sysexits_h = yes; then
 
18286
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18287
/* end confdefs.h.  */
 
18288
#include <sysexits.h>
 
18289
               
 
18290
_ACEOF
 
18291
                                                                                                case "$host_os" in
 
18292
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
18293
              *)    gl_absname_cpp="$ac_cpp" ;;
 
18294
            esac
 
18295
                                                gl_cv_next_sysexits_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
18296
               sed -n '\#/sysexits.h#{
 
18297
                 s#.*"\(.*/sysexits.h\)".*#\1#
 
18298
                 s#^/[^/]#//&#
 
18299
                 p
 
18300
                 q
 
18301
               }'`'"'
 
18302
          else
 
18303
            gl_cv_next_sysexits_h='<'sysexits.h'>'
 
18304
          fi
 
18305
          
 
18306
fi
 
18307
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sysexits_h" >&5
 
18308
$as_echo "$gl_cv_next_sysexits_h" >&6; }
 
18309
     fi
 
18310
     NEXT_SYSEXITS_H=$gl_cv_next_sysexits_h
 
18311
 
 
18312
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
18313
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
18314
       gl_next_as_first_directive='<'sysexits.h'>'
 
18315
     else
 
18316
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
18317
       gl_next_as_first_directive=$gl_cv_next_sysexits_h
 
18318
     fi
 
18319
     NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H=$gl_next_as_first_directive
 
18320
 
 
18321
     
 
18322
 
 
18323
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18324
/* end confdefs.h.  */
 
18325
#include <sysexits.h>
 
18326
int
 
18327
main (void)
 
18328
{
 
18329
switch (0)
 
18330
          {
 
18331
          case EX_OK:
 
18332
          case EX_USAGE:
 
18333
          case EX_DATAERR:
 
18334
          case EX_NOINPUT:
 
18335
          case EX_NOUSER:
 
18336
          case EX_NOHOST:
 
18337
          case EX_UNAVAILABLE:
 
18338
          case EX_SOFTWARE:
 
18339
          case EX_OSERR:
 
18340
          case EX_OSFILE:
 
18341
          case EX_CANTCREAT:
 
18342
          case EX_IOERR:
 
18343
          case EX_TEMPFAIL:
 
18344
          case EX_PROTOCOL:
 
18345
          case EX_NOPERM:
 
18346
          case EX_CONFIG:
 
18347
            break;
 
18348
          }
 
18349
        
 
18350
  ;
 
18351
  return 0;
 
18352
}
 
18353
_ACEOF
 
18354
if ac_fn_c_try_compile "$LINENO"; then :
 
18355
  SYSEXITS_H=
 
18356
else
 
18357
  SYSEXITS_H=sysexits.h
 
18358
fi
 
18359
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18360
  else
 
18361
    HAVE_SYSEXITS_H=0
 
18362
    SYSEXITS_H=sysexits.h
 
18363
  fi
 
18364
  
 
18365
  
 
18366
 
 
18367
  # Code from module unistd:
 
18368
  
 
18369
      
 
18370
  
 
18371
 
 
18372
  
 
18373
  
 
18374
  
 
18375
  
 
18376
 
 
18377
  
 
18378
     if test $gl_cv_have_include_next = yes; then
 
18379
       gl_cv_next_unistd_h='<'unistd.h'>'
 
18380
     else
 
18381
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
 
18382
$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
 
18383
if test "${gl_cv_next_unistd_h+set}" = set; then :
 
18384
  $as_echo_n "(cached) " >&6
 
18385
else
 
18386
  
 
18387
          if test $ac_cv_header_unistd_h = yes; then
 
18388
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18389
/* end confdefs.h.  */
 
18390
#include <unistd.h>
 
18391
               
 
18392
_ACEOF
 
18393
                                                                                                case "$host_os" in
 
18394
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
18395
              *)    gl_absname_cpp="$ac_cpp" ;;
 
18396
            esac
 
18397
                                                gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
18398
               sed -n '\#/unistd.h#{
 
18399
                 s#.*"\(.*/unistd.h\)".*#\1#
 
18400
                 s#^/[^/]#//&#
 
18401
                 p
 
18402
                 q
 
18403
               }'`'"'
 
18404
          else
 
18405
            gl_cv_next_unistd_h='<'unistd.h'>'
 
18406
          fi
 
18407
          
 
18408
fi
 
18409
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
 
18410
$as_echo "$gl_cv_next_unistd_h" >&6; }
 
18411
     fi
 
18412
     NEXT_UNISTD_H=$gl_cv_next_unistd_h
 
18413
 
 
18414
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
18415
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
18416
       gl_next_as_first_directive='<'unistd.h'>'
 
18417
     else
 
18418
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
18419
       gl_next_as_first_directive=$gl_cv_next_unistd_h
 
18420
     fi
 
18421
     NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
 
18422
 
 
18423
     
 
18424
 
 
18425
 
 
18426
  
 
18427
  if test $ac_cv_header_unistd_h = yes; then
 
18428
    HAVE_UNISTD_H=1
 
18429
  else
 
18430
    HAVE_UNISTD_H=0
 
18431
  fi
 
18432
  
 
18433
 
 
18434
      
 
18435
    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
 
18436
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
 
18437
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
 
18438
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
 
18439
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
 
18440
  $as_echo_n "(cached) " >&6
 
18441
else
 
18442
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18443
/* end confdefs.h.  */
 
18444
#include <unistd.h>
 
18445
/* Some systems declare various items in the wrong headers.  */
 
18446
#ifndef __GLIBC__
 
18447
# include <fcntl.h>
 
18448
# include <stdio.h>
 
18449
# include <stdlib.h>
 
18450
# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
 
18451
#  include <io.h>
 
18452
# endif
 
18453
#endif
 
18454
    
 
18455
int
 
18456
main (void)
 
18457
{
 
18458
@%:@undef $gl_func
 
18459
  (void) $gl_func;
 
18460
  ;
 
18461
  return 0;
 
18462
}
 
18463
_ACEOF
 
18464
if ac_fn_c_try_compile "$LINENO"; then :
 
18465
  eval "$as_gl_Symbol=yes"
 
18466
else
 
18467
  eval "$as_gl_Symbol=no"
 
18468
fi
 
18469
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18470
fi
 
18471
eval ac_res=\$$as_gl_Symbol
 
18472
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
18473
$as_echo "$ac_res" >&6; }
 
18474
     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
 
18475
  cat >>confdefs.h <<_ACEOF
 
18476
@%:@define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
 
18477
_ACEOF
 
18478
 
 
18479
                     eval ac_cv_have_decl_$gl_func=yes
 
18480
fi
 
18481
      done
 
18482
 
 
18483
 
 
18484
  # Code from module vasnprintf:
 
18485
  
 
18486
  
 
18487
  if test $ac_cv_func_vasnprintf = no; then
 
18488
    
 
18489
  
 
18490
  
 
18491
  
 
18492
  
 
18493
    
 
18494
      
 
18495
      
 
18496
    
 
18497
  
 
18498
  gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
 
18499
 
 
18500
  
 
18501
  
 
18502
  
 
18503
    
 
18504
      
 
18505
      
 
18506
    
 
18507
  
 
18508
  gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
 
18509
 
 
18510
  
 
18511
  
 
18512
  
 
18513
    
 
18514
      
 
18515
      
 
18516
    
 
18517
  
 
18518
  gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
 
18519
 
 
18520
  
 
18521
  
 
18522
  
 
18523
    
 
18524
      
 
18525
      
 
18526
    
 
18527
  
 
18528
  gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
 
18529
 
 
18530
  if test $ac_cv_func_vasnprintf = yes; then
 
18531
    
 
18532
$as_echo "@%:@define REPLACE_VASNPRINTF 1" >>confdefs.h
 
18533
 
 
18534
  fi
 
18535
  
 
18536
  
 
18537
  
 
18538
  
 
18539
 
 
18540
  
 
18541
  
 
18542
  
 
18543
  
 
18544
  
 
18545
  ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
 
18546
if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
 
18547
  
 
18548
else
 
18549
  
 
18550
$as_echo "@%:@define ptrdiff_t long" >>confdefs.h
 
18551
 
 
18552
    
 
18553
fi
 
18554
 
 
18555
  
 
18556
 
 
18557
  
 
18558
  
 
18559
 
 
18560
 
 
18561
  fi
 
18562
 
 
18563
  # Code from module verify:
 
18564
  # Code from module vsnprintf:
 
18565
  
 
18566
  
 
18567
  gl_cv_func_vsnprintf_usable=no
 
18568
  for ac_func in vsnprintf
 
18569
do :
 
18570
  ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
 
18571
if test "x$ac_cv_func_vsnprintf" = x""yes; then :
 
18572
  cat >>confdefs.h <<_ACEOF
 
18573
@%:@define HAVE_VSNPRINTF 1
 
18574
_ACEOF
 
18575
 
 
18576
fi
 
18577
done
 
18578
 
 
18579
  if test $ac_cv_func_vsnprintf = yes; then
 
18580
    
 
18581
  
 
18582
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
 
18583
$as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
 
18584
if test "${gl_cv_func_snprintf_size1+set}" = set; then :
 
18585
  $as_echo_n "(cached) " >&6
 
18586
else
 
18587
  
 
18588
      if test "$cross_compiling" = yes; then :
 
18589
  gl_cv_func_snprintf_size1="guessing yes"
 
18590
else
 
18591
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18592
/* end confdefs.h.  */
 
18593
 
 
18594
#include <stdio.h>
 
18595
int main()
 
18596
{
 
18597
  static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
 
18598
  snprintf (buf, 1, "%d", 12345);
 
18599
  return buf[1] != 'E';
 
18600
}
 
18601
_ACEOF
 
18602
if ac_fn_c_try_run "$LINENO"; then :
 
18603
  gl_cv_func_snprintf_size1=yes
 
18604
else
 
18605
  gl_cv_func_snprintf_size1=no
 
18606
fi
 
18607
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
18608
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
18609
fi
 
18610
 
 
18611
    
 
18612
fi
 
18613
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
 
18614
$as_echo "$gl_cv_func_snprintf_size1" >&6; }
 
18615
 
 
18616
    case "$gl_cv_func_snprintf_size1" in
 
18617
      *yes)
 
18618
        gl_cv_func_vsnprintf_usable=yes
 
18619
        ;;
 
18620
    esac
 
18621
  fi
 
18622
  if test $gl_cv_func_vsnprintf_usable = no; then
 
18623
    
 
18624
  
 
18625
  
 
18626
  
 
18627
  
 
18628
    
 
18629
      
 
18630
      
 
18631
    
 
18632
  
 
18633
  gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
 
18634
 
 
18635
  if test $ac_cv_func_vsnprintf = yes; then
 
18636
    REPLACE_VSNPRINTF=1
 
18637
  fi
 
18638
  :
 
18639
 
 
18640
  fi
 
18641
  
 
18642
  if test $ac_cv_have_decl_vsnprintf = no; then
 
18643
    HAVE_DECL_VSNPRINTF=0
 
18644
  fi
 
18645
 
 
18646
  
 
18647
    
 
18648
  
 
18649
  GNULIB_VSNPRINTF=1
 
18650
 
 
18651
    
 
18652
  
 
18653
$as_echo "@%:@define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
 
18654
 
 
18655
 
 
18656
 
 
18657
  # Code from module warn-on-use:
 
18658
  # Code from module wchar:
 
18659
  
 
18660
  
 
18661
  
 
18662
          
 
18663
  
 
18664
  
 
18665
  
 
18666
  
 
18667
 
 
18668
  
 
18669
     if test $gl_cv_have_include_next = yes; then
 
18670
       gl_cv_next_wchar_h='<'wchar.h'>'
 
18671
     else
 
18672
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
 
18673
$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
 
18674
if test "${gl_cv_next_wchar_h+set}" = set; then :
 
18675
  $as_echo_n "(cached) " >&6
 
18676
else
 
18677
  
 
18678
          if test $ac_cv_header_wchar_h = yes; then
 
18679
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18680
/* end confdefs.h.  */
 
18681
#include <wchar.h>
 
18682
               
 
18683
_ACEOF
 
18684
                                                                                                case "$host_os" in
 
18685
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
18686
              *)    gl_absname_cpp="$ac_cpp" ;;
 
18687
            esac
 
18688
                                                gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
18689
               sed -n '\#/wchar.h#{
 
18690
                 s#.*"\(.*/wchar.h\)".*#\1#
 
18691
                 s#^/[^/]#//&#
 
18692
                 p
 
18693
                 q
 
18694
               }'`'"'
 
18695
          else
 
18696
            gl_cv_next_wchar_h='<'wchar.h'>'
 
18697
          fi
 
18698
          
 
18699
fi
 
18700
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
 
18701
$as_echo "$gl_cv_next_wchar_h" >&6; }
 
18702
     fi
 
18703
     NEXT_WCHAR_H=$gl_cv_next_wchar_h
 
18704
 
 
18705
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
18706
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
18707
       gl_next_as_first_directive='<'wchar.h'>'
 
18708
     else
 
18709
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
18710
       gl_next_as_first_directive=$gl_cv_next_wchar_h
 
18711
     fi
 
18712
     NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
 
18713
 
 
18714
     
 
18715
 
 
18716
  if test $ac_cv_header_wchar_h = yes; then
 
18717
    HAVE_WCHAR_H=1
 
18718
  else
 
18719
    HAVE_WCHAR_H=0
 
18720
  fi
 
18721
  
 
18722
 
 
18723
  
 
18724
  if test $gt_cv_c_wint_t = yes; then
 
18725
    HAVE_WINT_T=1
 
18726
  else
 
18727
    HAVE_WINT_T=0
 
18728
  fi
 
18729
  
 
18730
 
 
18731
      
 
18732
    for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb     wcsrtombs wcsnrtombs wcwidth; do
 
18733
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
 
18734
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
 
18735
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
 
18736
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
 
18737
  $as_echo_n "(cached) " >&6
 
18738
else
 
18739
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18740
/* end confdefs.h.  */
 
18741
 
 
18742
/* Some systems require additional headers.  */
 
18743
#ifndef __GLIBC__
 
18744
# include <stddef.h>
 
18745
# include <stdio.h>
 
18746
# include <time.h>
 
18747
#endif
 
18748
#include <wchar.h>
 
18749
    
 
18750
int
 
18751
main (void)
 
18752
{
 
18753
@%:@undef $gl_func
 
18754
  (void) $gl_func;
 
18755
  ;
 
18756
  return 0;
 
18757
}
 
18758
_ACEOF
 
18759
if ac_fn_c_try_compile "$LINENO"; then :
 
18760
  eval "$as_gl_Symbol=yes"
 
18761
else
 
18762
  eval "$as_gl_Symbol=no"
 
18763
fi
 
18764
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18765
fi
 
18766
eval ac_res=\$$as_gl_Symbol
 
18767
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
18768
$as_echo "$ac_res" >&6; }
 
18769
     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
 
18770
  cat >>confdefs.h <<_ACEOF
 
18771
@%:@define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
 
18772
_ACEOF
 
18773
 
 
18774
                     eval ac_cv_have_decl_$gl_func=yes
 
18775
fi
 
18776
      done
 
18777
 
 
18778
 
 
18779
  # Code from module wcrtomb:
 
18780
  
 
18781
  
 
18782
 
 
18783
  
 
18784
  
 
18785
  
 
18786
 
 
18787
  
 
18788
  
 
18789
  
 
18790
  if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
 
18791
    
 
18792
  
 
18793
  
 
18794
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
 
18795
$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
 
18796
if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
 
18797
  $as_echo_n "(cached) " >&6
 
18798
else
 
18799
  
 
18800
                  case "$host_os" in
 
18801
                     # Guess no on AIX and OSF/1.
 
18802
        aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
 
18803
                     # Guess yes otherwise.
 
18804
        *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
 
18805
      esac
 
18806
      if test $LOCALE_JA != none; then
 
18807
        if test "$cross_compiling" = yes; then :
 
18808
  :
 
18809
else
 
18810
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18811
/* end confdefs.h.  */
 
18812
 
 
18813
#include <locale.h>
 
18814
#include <string.h>
 
18815
#include <wchar.h>
 
18816
int main ()
 
18817
{
 
18818
  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
 
18819
    {
 
18820
      const char input[] = "B\217\253\344\217\251\316er"; /* "BĆ¼ĆŸer" */
 
18821
      mbstate_t state;
 
18822
      wchar_t wc;
 
18823
 
 
18824
      memset (&state, '\0', sizeof (mbstate_t));
 
18825
      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
 
18826
        if (mbsinit (&state))
 
18827
          return 1;
 
18828
    }
 
18829
  return 0;
 
18830
}
 
18831
_ACEOF
 
18832
if ac_fn_c_try_run "$LINENO"; then :
 
18833
  gl_cv_func_mbrtowc_incomplete_state=yes
 
18834
else
 
18835
  gl_cv_func_mbrtowc_incomplete_state=no
 
18836
fi
 
18837
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
18838
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
18839
fi
 
18840
 
 
18841
      fi
 
18842
    
 
18843
fi
 
18844
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
 
18845
$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
 
18846
 
 
18847
    
 
18848
  
 
18849
  
 
18850
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
 
18851
$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
 
18852
if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
 
18853
  $as_echo_n "(cached) " >&6
 
18854
else
 
18855
  
 
18856
                  case "$host_os" in
 
18857
                    # Guess no on Solaris 8.
 
18858
        solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
 
18859
                    # Guess yes otherwise.
 
18860
        *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
 
18861
      esac
 
18862
      if test $LOCALE_ZH_CN != none; then
 
18863
        if test "$cross_compiling" = yes; then :
 
18864
  :
 
18865
else
 
18866
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18867
/* end confdefs.h.  */
 
18868
 
 
18869
#include <locale.h>
 
18870
#include <stdlib.h>
 
18871
#include <string.h>
 
18872
#include <wchar.h>
 
18873
int main ()
 
18874
{
 
18875
  /* This fails on Solaris 8:
 
18876
     mbrtowc returns 2, and sets wc to 0x00F0.
 
18877
     mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
 
18878
  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
 
18879
    {
 
18880
      char input[] = "B\250\271\201\060\211\070er"; /* "BĆ¼ĆŸer" */
 
18881
      mbstate_t state;
 
18882
      wchar_t wc;
 
18883
 
 
18884
      memset (&state, '\0', sizeof (mbstate_t));
 
18885
      if (mbrtowc (&wc, input + 3, 6, &state) != 4
 
18886
          && mbtowc (&wc, input + 3, 6) == 4)
 
18887
        return 1;
 
18888
    }
 
18889
  return 0;
 
18890
}
 
18891
_ACEOF
 
18892
if ac_fn_c_try_run "$LINENO"; then :
 
18893
  gl_cv_func_mbrtowc_sanitycheck=yes
 
18894
else
 
18895
  gl_cv_func_mbrtowc_sanitycheck=no
 
18896
fi
 
18897
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
18898
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
18899
fi
 
18900
 
 
18901
      fi
 
18902
    
 
18903
fi
 
18904
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
 
18905
$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
 
18906
 
 
18907
    REPLACE_MBSTATE_T=0
 
18908
    case "$gl_cv_func_mbrtowc_incomplete_state" in
 
18909
      *yes) ;;
 
18910
      *) REPLACE_MBSTATE_T=1 ;;
 
18911
    esac
 
18912
    case "$gl_cv_func_mbrtowc_sanitycheck" in
 
18913
      *yes) ;;
 
18914
      *) REPLACE_MBSTATE_T=1 ;;
 
18915
    esac
 
18916
  else
 
18917
    REPLACE_MBSTATE_T=1
 
18918
  fi
 
18919
  if test $REPLACE_MBSTATE_T = 1; then
 
18920
    
 
18921
    :
 
18922
 
 
18923
  fi
 
18924
 
 
18925
 
 
18926
  
 
18927
  if test $ac_cv_func_wcrtomb = no; then
 
18928
    HAVE_WCRTOMB=0
 
18929
  else
 
18930
    if test $REPLACE_MBSTATE_T = 1; then
 
18931
      REPLACE_WCRTOMB=1
 
18932
    else
 
18933
                  
 
18934
      
 
18935
      
 
18936
      
 
18937
      
 
18938
             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
 
18939
$as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
 
18940
if test "${gl_cv_func_wcrtomb_retval+set}" = set; then :
 
18941
  $as_echo_n "(cached) " >&6
 
18942
else
 
18943
  
 
18944
                              case "$host_os" in
 
18945
                                     # Guess no on AIX 4, OSF/1 and Solaris.
 
18946
            aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
 
18947
                                     # Guess yes otherwise.
 
18948
            *)                       gl_cv_func_wcrtomb_retval="guessing yes" ;;
 
18949
          esac
 
18950
          if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
 
18951
            if test "$cross_compiling" = yes; then :
 
18952
  :
 
18953
else
 
18954
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18955
/* end confdefs.h.  */
 
18956
 
 
18957
#include <locale.h>
 
18958
#include <stdio.h>
 
18959
#include <string.h>
 
18960
#include <wchar.h>
 
18961
int main ()
 
18962
{
 
18963
  if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
 
18964
    {
 
18965
      if (wcrtomb (NULL, 0, NULL) != 1)
 
18966
        return 1;
 
18967
    }
 
18968
  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
 
18969
    {
 
18970
      if (wcrtomb (NULL, 0, NULL) != 1)
 
18971
        return 1;
 
18972
    }
 
18973
  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
 
18974
    {
 
18975
      if (wcrtomb (NULL, 0, NULL) != 1)
 
18976
        return 1;
 
18977
    }
 
18978
  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
 
18979
    {
 
18980
      if (wcrtomb (NULL, 0, NULL) != 1)
 
18981
        return 1;
 
18982
    }
 
18983
  return 0;
 
18984
}
 
18985
_ACEOF
 
18986
if ac_fn_c_try_run "$LINENO"; then :
 
18987
  gl_cv_func_wcrtomb_retval=yes
 
18988
else
 
18989
  gl_cv_func_wcrtomb_retval=no
 
18990
fi
 
18991
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
18992
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
18993
fi
 
18994
 
 
18995
          fi
 
18996
        
 
18997
fi
 
18998
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
 
18999
$as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
 
19000
      case "$gl_cv_func_wcrtomb_retval" in
 
19001
        *yes) ;;
 
19002
        *) REPLACE_WCRTOMB=1 ;;
 
19003
      esac
 
19004
    fi
 
19005
  fi
 
19006
  if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
 
19007
    
 
19008
    :
 
19009
 
 
19010
    
 
19011
  
 
19012
  
 
19013
    
 
19014
      
 
19015
      
 
19016
    
 
19017
  
 
19018
  gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
 
19019
 
 
19020
    
 
19021
  :
 
19022
 
 
19023
  fi
 
19024
 
 
19025
  
 
19026
    
 
19027
  
 
19028
  GNULIB_WCRTOMB=1
 
19029
 
 
19030
    
 
19031
  
 
19032
$as_echo "@%:@define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
 
19033
 
 
19034
 
 
19035
 
 
19036
  # Code from module wctype:
 
19037
  
 
19038
  
 
19039
  
 
19040
  
 
19041
  if test $ac_cv_func_iswcntrl = yes; then
 
19042
    HAVE_ISWCNTRL=1
 
19043
  else
 
19044
    HAVE_ISWCNTRL=0
 
19045
  fi
 
19046
  
 
19047
  
 
19048
  
 
19049
  if test $ac_cv_func_iswblank = yes; then
 
19050
    HAVE_ISWBLANK=1
 
19051
    REPLACE_ISWBLANK=0
 
19052
  else
 
19053
    HAVE_ISWBLANK=0
 
19054
    if test $ac_cv_have_decl_iswblank = yes; then
 
19055
      REPLACE_ISWBLANK=1
 
19056
    else
 
19057
      REPLACE_ISWBLANK=0
 
19058
    fi
 
19059
  fi
 
19060
  
 
19061
  
 
19062
 
 
19063
  
 
19064
  
 
19065
 
 
19066
  
 
19067
  if test $gt_cv_c_wint_t = yes; then
 
19068
    HAVE_WINT_T=1
 
19069
  else
 
19070
    HAVE_WINT_T=0
 
19071
  fi
 
19072
  
 
19073
 
 
19074
  if test $ac_cv_header_wctype_h = yes; then
 
19075
    if test $ac_cv_func_iswcntrl = yes; then
 
19076
                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
 
19077
$as_echo_n "checking whether iswcntrl works... " >&6; }
 
19078
if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
 
19079
  $as_echo_n "(cached) " >&6
 
19080
else
 
19081
  
 
19082
          if test "$cross_compiling" = yes; then :
 
19083
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19084
/* end confdefs.h.  */
 
19085
#include <stdlib.h>
 
19086
                          #if __GNU_LIBRARY__ == 1
 
19087
                          Linux libc5 i18n is broken.
 
19088
                          #endif
 
19089
int
 
19090
main (void)
 
19091
{
 
19092
 
 
19093
  ;
 
19094
  return 0;
 
19095
}
 
19096
_ACEOF
 
19097
if ac_fn_c_try_compile "$LINENO"; then :
 
19098
  gl_cv_func_iswcntrl_works=yes
 
19099
else
 
19100
  gl_cv_func_iswcntrl_works=no
 
19101
fi
 
19102
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19103
            
 
19104
else
 
19105
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19106
/* end confdefs.h.  */
 
19107
 
 
19108
                            #include <stddef.h>
 
19109
                            #include <stdio.h>
 
19110
                            #include <time.h>
 
19111
                            #include <wchar.h>
 
19112
                            #include <wctype.h>
 
19113
                            int main () { return iswprint ('x') == 0; }
 
19114
_ACEOF
 
19115
if ac_fn_c_try_run "$LINENO"; then :
 
19116
  gl_cv_func_iswcntrl_works=yes
 
19117
else
 
19118
  gl_cv_func_iswcntrl_works=no
 
19119
fi
 
19120
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
19121
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
19122
fi
 
19123
 
 
19124
        
 
19125
fi
 
19126
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
 
19127
$as_echo "$gl_cv_func_iswcntrl_works" >&6; }
 
19128
    fi
 
19129
    
 
19130
  
 
19131
  
 
19132
  
 
19133
 
 
19134
  
 
19135
     if test $gl_cv_have_include_next = yes; then
 
19136
       gl_cv_next_wctype_h='<'wctype.h'>'
 
19137
     else
 
19138
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
 
19139
$as_echo_n "checking absolute name of <wctype.h>... " >&6; }
 
19140
if test "${gl_cv_next_wctype_h+set}" = set; then :
 
19141
  $as_echo_n "(cached) " >&6
 
19142
else
 
19143
  
 
19144
          if test $ac_cv_header_wctype_h = yes; then
 
19145
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19146
/* end confdefs.h.  */
 
19147
#include <wctype.h>
 
19148
               
 
19149
_ACEOF
 
19150
                                                                                                case "$host_os" in
 
19151
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
19152
              *)    gl_absname_cpp="$ac_cpp" ;;
 
19153
            esac
 
19154
                                                gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
19155
               sed -n '\#/wctype.h#{
 
19156
                 s#.*"\(.*/wctype.h\)".*#\1#
 
19157
                 s#^/[^/]#//&#
 
19158
                 p
 
19159
                 q
 
19160
               }'`'"'
 
19161
          else
 
19162
            gl_cv_next_wctype_h='<'wctype.h'>'
 
19163
          fi
 
19164
          
 
19165
fi
 
19166
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
 
19167
$as_echo "$gl_cv_next_wctype_h" >&6; }
 
19168
     fi
 
19169
     NEXT_WCTYPE_H=$gl_cv_next_wctype_h
 
19170
 
 
19171
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
19172
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
19173
       gl_next_as_first_directive='<'wctype.h'>'
 
19174
     else
 
19175
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
19176
       gl_next_as_first_directive=$gl_cv_next_wctype_h
 
19177
     fi
 
19178
     NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
 
19179
 
 
19180
     
 
19181
 
 
19182
    HAVE_WCTYPE_H=1
 
19183
  else
 
19184
    HAVE_WCTYPE_H=0
 
19185
  fi
 
19186
  
 
19187
 
 
19188
  if test "$gl_cv_func_iswcntrl_works" = no; then
 
19189
    REPLACE_ISWCNTRL=1
 
19190
  else
 
19191
    REPLACE_ISWCNTRL=0
 
19192
  fi
 
19193
  
 
19194
 
 
19195
  # Code from module xsize:
 
19196
  
 
19197
    
 
19198
  
 
19199
  for ac_header in stdint.h
 
19200
do :
 
19201
  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
 
19202
if test "x$ac_cv_header_stdint_h" = x""yes; then :
 
19203
  cat >>confdefs.h <<_ACEOF
 
19204
@%:@define HAVE_STDINT_H 1
 
19205
_ACEOF
 
19206
 
 
19207
fi
 
19208
 
 
19209
done
 
19210
 
 
19211
 
 
19212
  # End of code from modules
 
19213
  
 
19214
          
 
19215
  
 
19216
  
 
19217
  
 
19218
  
 
19219
  
 
19220
  
 
19221
  
 
19222
  gltests_libdeps=
 
19223
  gltests_ltlibdeps=
 
19224
  
 
19225
  
 
19226
  
 
19227
  
 
19228
  
 
19229
  
 
19230
    
 
19231
  
 
19232
 
 
19233
  gl_source_base='tests'
 
19234
  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
 
19235
  
 
19236
  gl_module_indicator_condition=$gltests_WITNESS
 
19237
  
 
19238
  
 
19239
  
 
19240
  
 
19241
  
 
19242
  
 
19243
  
 
19244
  
 
19245
  
 
19246
  LIBGNU_LIBDEPS="$gl_libdeps"
 
19247
  
 
19248
  LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
 
19249
  
 
19250
 
 
19251
 
 
19252
#
 
19253
# Check for target programs.
 
19254
#
 
19255
 
 
19256
# Find tools for the target.
 
19257
if test "x$target_alias" != x && test "x$host_alias" != "x$target_alias"; then
 
19258
  tmp_ac_tool_prefix="$ac_tool_prefix"
 
19259
  ac_tool_prefix=$target_alias-
 
19260
 
 
19261
  if test -n "$ac_tool_prefix"; then
 
19262
  for ac_prog in gcc egcs cc
 
19263
  do
 
19264
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
19265
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
19266
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19267
$as_echo_n "checking for $ac_word... " >&6; }
 
19268
if test "${ac_cv_prog_TARGET_CC+set}" = set; then :
 
19269
  $as_echo_n "(cached) " >&6
 
19270
else
 
19271
  if test -n "$TARGET_CC"; then
 
19272
  ac_cv_prog_TARGET_CC="$TARGET_CC" # Let the user override the test.
 
19273
else
 
19274
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19275
for as_dir in $PATH
 
19276
do
 
19277
  IFS=$as_save_IFS
 
19278
  test -z "$as_dir" && as_dir=.
 
19279
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19280
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19281
    ac_cv_prog_TARGET_CC="$ac_tool_prefix$ac_prog"
 
19282
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19283
    break 2
 
19284
  fi
 
19285
done
 
19286
  done
 
19287
IFS=$as_save_IFS
 
19288
 
 
19289
fi
 
19290
fi
 
19291
TARGET_CC=$ac_cv_prog_TARGET_CC
 
19292
if test -n "$TARGET_CC"; then
 
19293
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_CC" >&5
 
19294
$as_echo "$TARGET_CC" >&6; }
 
19295
else
 
19296
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19297
$as_echo "no" >&6; }
 
19298
fi
 
19299
 
 
19300
 
 
19301
    test -n "$TARGET_CC" && break
 
19302
  done
 
19303
fi
 
19304
if test -z "$TARGET_CC"; then
 
19305
  ac_ct_TARGET_CC=$TARGET_CC
 
19306
  for ac_prog in gcc egcs cc
 
19307
do
 
19308
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
19309
set dummy $ac_prog; ac_word=$2
 
19310
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19311
$as_echo_n "checking for $ac_word... " >&6; }
 
19312
if test "${ac_cv_prog_ac_ct_TARGET_CC+set}" = set; then :
 
19313
  $as_echo_n "(cached) " >&6
 
19314
else
 
19315
  if test -n "$ac_ct_TARGET_CC"; then
 
19316
  ac_cv_prog_ac_ct_TARGET_CC="$ac_ct_TARGET_CC" # Let the user override the test.
 
19317
else
 
19318
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19319
for as_dir in $PATH
 
19320
do
 
19321
  IFS=$as_save_IFS
 
19322
  test -z "$as_dir" && as_dir=.
 
19323
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19324
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19325
    ac_cv_prog_ac_ct_TARGET_CC="$ac_prog"
 
19326
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19327
    break 2
 
19328
  fi
 
19329
done
 
19330
  done
 
19331
IFS=$as_save_IFS
 
19332
 
 
19333
fi
 
19334
fi
 
19335
ac_ct_TARGET_CC=$ac_cv_prog_ac_ct_TARGET_CC
 
19336
if test -n "$ac_ct_TARGET_CC"; then
 
19337
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_CC" >&5
 
19338
$as_echo "$ac_ct_TARGET_CC" >&6; }
 
19339
else
 
19340
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19341
$as_echo "no" >&6; }
 
19342
fi
 
19343
 
 
19344
 
 
19345
  test -n "$ac_ct_TARGET_CC" && break
 
19346
done
 
19347
 
 
19348
  if test "x$ac_ct_TARGET_CC" = x; then
 
19349
    TARGET_CC="as_fn_error $? "none of gcc, egcs and cc is found. set TARGET_CC manually." "$LINENO" 5 "
 
19350
  else
 
19351
    case $cross_compiling:$ac_tool_warned in
 
19352
yes:)
 
19353
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
19354
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
19355
ac_tool_warned=yes ;;
 
19356
esac
 
19357
    TARGET_CC=$ac_ct_TARGET_CC
 
19358
  fi
 
19359
fi
 
19360
 
 
19361
  if test -n "$ac_tool_prefix"; then
 
19362
  # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
 
19363
set dummy ${ac_tool_prefix}objcopy; ac_word=$2
 
19364
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19365
$as_echo_n "checking for $ac_word... " >&6; }
 
19366
if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
 
19367
  $as_echo_n "(cached) " >&6
 
19368
else
 
19369
  if test -n "$OBJCOPY"; then
 
19370
  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
 
19371
else
 
19372
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19373
for as_dir in $PATH
 
19374
do
 
19375
  IFS=$as_save_IFS
 
19376
  test -z "$as_dir" && as_dir=.
 
19377
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19378
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19379
    ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
 
19380
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19381
    break 2
 
19382
  fi
 
19383
done
 
19384
  done
 
19385
IFS=$as_save_IFS
 
19386
 
 
19387
fi
 
19388
fi
 
19389
OBJCOPY=$ac_cv_prog_OBJCOPY
 
19390
if test -n "$OBJCOPY"; then
 
19391
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
 
19392
$as_echo "$OBJCOPY" >&6; }
 
19393
else
 
19394
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19395
$as_echo "no" >&6; }
 
19396
fi
 
19397
 
 
19398
 
 
19399
fi
 
19400
if test -z "$ac_cv_prog_OBJCOPY"; then
 
19401
  ac_ct_OBJCOPY=$OBJCOPY
 
19402
  # Extract the first word of "objcopy", so it can be a program name with args.
 
19403
set dummy objcopy; ac_word=$2
 
19404
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19405
$as_echo_n "checking for $ac_word... " >&6; }
 
19406
if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
 
19407
  $as_echo_n "(cached) " >&6
 
19408
else
 
19409
  if test -n "$ac_ct_OBJCOPY"; then
 
19410
  ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
 
19411
else
 
19412
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19413
for as_dir in $PATH
 
19414
do
 
19415
  IFS=$as_save_IFS
 
19416
  test -z "$as_dir" && as_dir=.
 
19417
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19418
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19419
    ac_cv_prog_ac_ct_OBJCOPY="objcopy"
 
19420
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19421
    break 2
 
19422
  fi
 
19423
done
 
19424
  done
 
19425
IFS=$as_save_IFS
 
19426
 
 
19427
fi
 
19428
fi
 
19429
ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
 
19430
if test -n "$ac_ct_OBJCOPY"; then
 
19431
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
 
19432
$as_echo "$ac_ct_OBJCOPY" >&6; }
 
19433
else
 
19434
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19435
$as_echo "no" >&6; }
 
19436
fi
 
19437
 
 
19438
  if test "x$ac_ct_OBJCOPY" = x; then
 
19439
    OBJCOPY=""
 
19440
  else
 
19441
    case $cross_compiling:$ac_tool_warned in
 
19442
yes:)
 
19443
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
19444
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
19445
ac_tool_warned=yes ;;
 
19446
esac
 
19447
    OBJCOPY=$ac_ct_OBJCOPY
 
19448
  fi
 
19449
else
 
19450
  OBJCOPY="$ac_cv_prog_OBJCOPY"
 
19451
fi
 
19452
 
 
19453
  if test -n "$ac_tool_prefix"; then
 
19454
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
19455
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
19456
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19457
$as_echo_n "checking for $ac_word... " >&6; }
 
19458
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
19459
  $as_echo_n "(cached) " >&6
 
19460
else
 
19461
  if test -n "$STRIP"; then
 
19462
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
19463
else
 
19464
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19465
for as_dir in $PATH
 
19466
do
 
19467
  IFS=$as_save_IFS
 
19468
  test -z "$as_dir" && as_dir=.
 
19469
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19470
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19471
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
19472
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19473
    break 2
 
19474
  fi
 
19475
done
 
19476
  done
 
19477
IFS=$as_save_IFS
 
19478
 
 
19479
fi
 
19480
fi
 
19481
STRIP=$ac_cv_prog_STRIP
 
19482
if test -n "$STRIP"; then
 
19483
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
19484
$as_echo "$STRIP" >&6; }
 
19485
else
 
19486
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19487
$as_echo "no" >&6; }
 
19488
fi
 
19489
 
 
19490
 
 
19491
fi
 
19492
if test -z "$ac_cv_prog_STRIP"; then
 
19493
  ac_ct_STRIP=$STRIP
 
19494
  # Extract the first word of "strip", so it can be a program name with args.
 
19495
set dummy strip; ac_word=$2
 
19496
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19497
$as_echo_n "checking for $ac_word... " >&6; }
 
19498
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
19499
  $as_echo_n "(cached) " >&6
 
19500
else
 
19501
  if test -n "$ac_ct_STRIP"; then
 
19502
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
19503
else
 
19504
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19505
for as_dir in $PATH
 
19506
do
 
19507
  IFS=$as_save_IFS
 
19508
  test -z "$as_dir" && as_dir=.
 
19509
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19510
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19511
    ac_cv_prog_ac_ct_STRIP="strip"
 
19512
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19513
    break 2
 
19514
  fi
 
19515
done
 
19516
  done
 
19517
IFS=$as_save_IFS
 
19518
 
 
19519
fi
 
19520
fi
 
19521
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
19522
if test -n "$ac_ct_STRIP"; then
 
19523
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
19524
$as_echo "$ac_ct_STRIP" >&6; }
 
19525
else
 
19526
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19527
$as_echo "no" >&6; }
 
19528
fi
 
19529
 
 
19530
  if test "x$ac_ct_STRIP" = x; then
 
19531
    STRIP=""
 
19532
  else
 
19533
    case $cross_compiling:$ac_tool_warned in
 
19534
yes:)
 
19535
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
19536
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
19537
ac_tool_warned=yes ;;
 
19538
esac
 
19539
    STRIP=$ac_ct_STRIP
 
19540
  fi
 
19541
else
 
19542
  STRIP="$ac_cv_prog_STRIP"
 
19543
fi
 
19544
 
 
19545
  if test -n "$ac_tool_prefix"; then
 
19546
  # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
 
19547
set dummy ${ac_tool_prefix}nm; ac_word=$2
 
19548
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19549
$as_echo_n "checking for $ac_word... " >&6; }
 
19550
if test "${ac_cv_prog_NM+set}" = set; then :
 
19551
  $as_echo_n "(cached) " >&6
 
19552
else
 
19553
  if test -n "$NM"; then
 
19554
  ac_cv_prog_NM="$NM" # Let the user override the test.
 
19555
else
 
19556
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19557
for as_dir in $PATH
 
19558
do
 
19559
  IFS=$as_save_IFS
 
19560
  test -z "$as_dir" && as_dir=.
 
19561
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19562
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19563
    ac_cv_prog_NM="${ac_tool_prefix}nm"
 
19564
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19565
    break 2
 
19566
  fi
 
19567
done
 
19568
  done
 
19569
IFS=$as_save_IFS
 
19570
 
 
19571
fi
 
19572
fi
 
19573
NM=$ac_cv_prog_NM
 
19574
if test -n "$NM"; then
 
19575
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
 
19576
$as_echo "$NM" >&6; }
 
19577
else
 
19578
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19579
$as_echo "no" >&6; }
 
19580
fi
 
19581
 
 
19582
 
 
19583
fi
 
19584
if test -z "$ac_cv_prog_NM"; then
 
19585
  ac_ct_NM=$NM
 
19586
  # Extract the first word of "nm", so it can be a program name with args.
 
19587
set dummy nm; ac_word=$2
 
19588
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19589
$as_echo_n "checking for $ac_word... " >&6; }
 
19590
if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
 
19591
  $as_echo_n "(cached) " >&6
 
19592
else
 
19593
  if test -n "$ac_ct_NM"; then
 
19594
  ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
 
19595
else
 
19596
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19597
for as_dir in $PATH
 
19598
do
 
19599
  IFS=$as_save_IFS
 
19600
  test -z "$as_dir" && as_dir=.
 
19601
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19602
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19603
    ac_cv_prog_ac_ct_NM="nm"
 
19604
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19605
    break 2
 
19606
  fi
 
19607
done
 
19608
  done
 
19609
IFS=$as_save_IFS
 
19610
 
 
19611
fi
 
19612
fi
 
19613
ac_ct_NM=$ac_cv_prog_ac_ct_NM
 
19614
if test -n "$ac_ct_NM"; then
 
19615
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
 
19616
$as_echo "$ac_ct_NM" >&6; }
 
19617
else
 
19618
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19619
$as_echo "no" >&6; }
 
19620
fi
 
19621
 
 
19622
  if test "x$ac_ct_NM" = x; then
 
19623
    NM=""
 
19624
  else
 
19625
    case $cross_compiling:$ac_tool_warned in
 
19626
yes:)
 
19627
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
19628
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
19629
ac_tool_warned=yes ;;
 
19630
esac
 
19631
    NM=$ac_ct_NM
 
19632
  fi
 
19633
else
 
19634
  NM="$ac_cv_prog_NM"
 
19635
fi
 
19636
 
 
19637
 
 
19638
  ac_tool_prefix="$tmp_ac_tool_prefix"
 
19639
else
 
19640
  if test "x$TARGET_CC" = x; then
 
19641
    TARGET_CC=$CC
 
19642
  fi
 
19643
  if test -n "$ac_tool_prefix"; then
 
19644
  # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
 
19645
set dummy ${ac_tool_prefix}objcopy; ac_word=$2
 
19646
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19647
$as_echo_n "checking for $ac_word... " >&6; }
 
19648
if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
 
19649
  $as_echo_n "(cached) " >&6
 
19650
else
 
19651
  if test -n "$OBJCOPY"; then
 
19652
  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
 
19653
else
 
19654
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19655
for as_dir in $PATH
 
19656
do
 
19657
  IFS=$as_save_IFS
 
19658
  test -z "$as_dir" && as_dir=.
 
19659
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19660
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19661
    ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
 
19662
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19663
    break 2
 
19664
  fi
 
19665
done
 
19666
  done
 
19667
IFS=$as_save_IFS
 
19668
 
 
19669
fi
 
19670
fi
 
19671
OBJCOPY=$ac_cv_prog_OBJCOPY
 
19672
if test -n "$OBJCOPY"; then
 
19673
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
 
19674
$as_echo "$OBJCOPY" >&6; }
 
19675
else
 
19676
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19677
$as_echo "no" >&6; }
 
19678
fi
 
19679
 
 
19680
 
 
19681
fi
 
19682
if test -z "$ac_cv_prog_OBJCOPY"; then
 
19683
  ac_ct_OBJCOPY=$OBJCOPY
 
19684
  # Extract the first word of "objcopy", so it can be a program name with args.
 
19685
set dummy objcopy; ac_word=$2
 
19686
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19687
$as_echo_n "checking for $ac_word... " >&6; }
 
19688
if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
 
19689
  $as_echo_n "(cached) " >&6
 
19690
else
 
19691
  if test -n "$ac_ct_OBJCOPY"; then
 
19692
  ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
 
19693
else
 
19694
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19695
for as_dir in $PATH
 
19696
do
 
19697
  IFS=$as_save_IFS
 
19698
  test -z "$as_dir" && as_dir=.
 
19699
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19700
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19701
    ac_cv_prog_ac_ct_OBJCOPY="objcopy"
 
19702
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19703
    break 2
 
19704
  fi
 
19705
done
 
19706
  done
 
19707
IFS=$as_save_IFS
 
19708
 
 
19709
fi
 
19710
fi
 
19711
ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
 
19712
if test -n "$ac_ct_OBJCOPY"; then
 
19713
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
 
19714
$as_echo "$ac_ct_OBJCOPY" >&6; }
 
19715
else
 
19716
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19717
$as_echo "no" >&6; }
 
19718
fi
 
19719
 
 
19720
  if test "x$ac_ct_OBJCOPY" = x; then
 
19721
    OBJCOPY=""
 
19722
  else
 
19723
    case $cross_compiling:$ac_tool_warned in
 
19724
yes:)
 
19725
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
19726
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
19727
ac_tool_warned=yes ;;
 
19728
esac
 
19729
    OBJCOPY=$ac_ct_OBJCOPY
 
19730
  fi
 
19731
else
 
19732
  OBJCOPY="$ac_cv_prog_OBJCOPY"
 
19733
fi
 
19734
 
 
19735
  if test -n "$ac_tool_prefix"; then
 
19736
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
19737
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
19738
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19739
$as_echo_n "checking for $ac_word... " >&6; }
 
19740
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
19741
  $as_echo_n "(cached) " >&6
 
19742
else
 
19743
  if test -n "$STRIP"; then
 
19744
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
19745
else
 
19746
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19747
for as_dir in $PATH
 
19748
do
 
19749
  IFS=$as_save_IFS
 
19750
  test -z "$as_dir" && as_dir=.
 
19751
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19752
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19753
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
19754
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19755
    break 2
 
19756
  fi
 
19757
done
 
19758
  done
 
19759
IFS=$as_save_IFS
 
19760
 
 
19761
fi
 
19762
fi
 
19763
STRIP=$ac_cv_prog_STRIP
 
19764
if test -n "$STRIP"; then
 
19765
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
19766
$as_echo "$STRIP" >&6; }
 
19767
else
 
19768
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19769
$as_echo "no" >&6; }
 
19770
fi
 
19771
 
 
19772
 
 
19773
fi
 
19774
if test -z "$ac_cv_prog_STRIP"; then
 
19775
  ac_ct_STRIP=$STRIP
 
19776
  # Extract the first word of "strip", so it can be a program name with args.
 
19777
set dummy strip; ac_word=$2
 
19778
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19779
$as_echo_n "checking for $ac_word... " >&6; }
 
19780
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
19781
  $as_echo_n "(cached) " >&6
 
19782
else
 
19783
  if test -n "$ac_ct_STRIP"; then
 
19784
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
19785
else
 
19786
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19787
for as_dir in $PATH
 
19788
do
 
19789
  IFS=$as_save_IFS
 
19790
  test -z "$as_dir" && as_dir=.
 
19791
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19792
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19793
    ac_cv_prog_ac_ct_STRIP="strip"
 
19794
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19795
    break 2
 
19796
  fi
 
19797
done
 
19798
  done
 
19799
IFS=$as_save_IFS
 
19800
 
 
19801
fi
 
19802
fi
 
19803
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
19804
if test -n "$ac_ct_STRIP"; then
 
19805
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
19806
$as_echo "$ac_ct_STRIP" >&6; }
 
19807
else
 
19808
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19809
$as_echo "no" >&6; }
 
19810
fi
 
19811
 
 
19812
  if test "x$ac_ct_STRIP" = x; then
 
19813
    STRIP=""
 
19814
  else
 
19815
    case $cross_compiling:$ac_tool_warned in
 
19816
yes:)
 
19817
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
19818
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
19819
ac_tool_warned=yes ;;
 
19820
esac
 
19821
    STRIP=$ac_ct_STRIP
 
19822
  fi
 
19823
else
 
19824
  STRIP="$ac_cv_prog_STRIP"
 
19825
fi
 
19826
 
 
19827
  if test -n "$ac_tool_prefix"; then
 
19828
  # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
 
19829
set dummy ${ac_tool_prefix}nm; ac_word=$2
 
19830
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19831
$as_echo_n "checking for $ac_word... " >&6; }
 
19832
if test "${ac_cv_prog_NM+set}" = set; then :
 
19833
  $as_echo_n "(cached) " >&6
 
19834
else
 
19835
  if test -n "$NM"; then
 
19836
  ac_cv_prog_NM="$NM" # Let the user override the test.
 
19837
else
 
19838
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19839
for as_dir in $PATH
 
19840
do
 
19841
  IFS=$as_save_IFS
 
19842
  test -z "$as_dir" && as_dir=.
 
19843
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19844
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19845
    ac_cv_prog_NM="${ac_tool_prefix}nm"
 
19846
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19847
    break 2
 
19848
  fi
 
19849
done
 
19850
  done
 
19851
IFS=$as_save_IFS
 
19852
 
 
19853
fi
 
19854
fi
 
19855
NM=$ac_cv_prog_NM
 
19856
if test -n "$NM"; then
 
19857
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
 
19858
$as_echo "$NM" >&6; }
 
19859
else
 
19860
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19861
$as_echo "no" >&6; }
 
19862
fi
 
19863
 
 
19864
 
 
19865
fi
 
19866
if test -z "$ac_cv_prog_NM"; then
 
19867
  ac_ct_NM=$NM
 
19868
  # Extract the first word of "nm", so it can be a program name with args.
 
19869
set dummy nm; ac_word=$2
 
19870
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19871
$as_echo_n "checking for $ac_word... " >&6; }
 
19872
if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
 
19873
  $as_echo_n "(cached) " >&6
 
19874
else
 
19875
  if test -n "$ac_ct_NM"; then
 
19876
  ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
 
19877
else
 
19878
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19879
for as_dir in $PATH
 
19880
do
 
19881
  IFS=$as_save_IFS
 
19882
  test -z "$as_dir" && as_dir=.
 
19883
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19884
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19885
    ac_cv_prog_ac_ct_NM="nm"
 
19886
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19887
    break 2
 
19888
  fi
 
19889
done
 
19890
  done
 
19891
IFS=$as_save_IFS
 
19892
 
 
19893
fi
 
19894
fi
 
19895
ac_ct_NM=$ac_cv_prog_ac_ct_NM
 
19896
if test -n "$ac_ct_NM"; then
 
19897
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
 
19898
$as_echo "$ac_ct_NM" >&6; }
 
19899
else
 
19900
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19901
$as_echo "no" >&6; }
 
19902
fi
 
19903
 
 
19904
  if test "x$ac_ct_NM" = x; then
 
19905
    NM=""
 
19906
  else
 
19907
    case $cross_compiling:$ac_tool_warned in
 
19908
yes:)
 
19909
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
19910
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
19911
ac_tool_warned=yes ;;
 
19912
esac
 
19913
    NM=$ac_ct_NM
 
19914
  fi
 
19915
else
 
19916
  NM="$ac_cv_prog_NM"
 
19917
fi
 
19918
 
 
19919
fi
 
19920
 
 
19921
 
 
19922
 
 
19923
 
 
19924
# Test the C compiler for the target environment.
 
19925
tmp_CC="$CC"
 
19926
tmp_CFLAGS="$CFLAGS"
 
19927
tmp_LDFLAGS="$LDFLAGS"
 
19928
tmp_CPPFLAGS="$CPPFLAGS"
 
19929
tmp_LIBS="$LIBS"
 
19930
CC="$TARGET_CC"
 
19931
CFLAGS="$TARGET_CFLAGS"
 
19932
CPPFLAGS="$TARGET_CPPFLAGS"
 
19933
LDFLAGS="$TARGET_LDFLAGS"
 
19934
LIBS=""
 
19935
 
 
19936
# debug flags.
 
19937
TARGET_CFLAGS="$TARGET_CFLAGS -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g"
 
19938
TARGET_CCASFLAGS="$TARGET_CCASFLAGS -g"
 
19939
 
 
19940
# Force no alignment to save space on i386.
 
19941
if test "x$target_cpu" = xi386; then
 
19942
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -falign-loops works" >&5
 
19943
$as_echo_n "checking whether -falign-loops works... " >&6; }
 
19944
if test "${grub_cv_cc_falign_loop+set}" = set; then :
 
19945
  $as_echo_n "(cached) " >&6
 
19946
else
 
19947
  
 
19948
    CFLAGS="$CFLAGS -falign-loops=1"
 
19949
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19950
/* end confdefs.h.  */
 
19951
 
 
19952
int
 
19953
main (void)
 
19954
{
 
19955
 
 
19956
  ;
 
19957
  return 0;
 
19958
}
 
19959
_ACEOF
 
19960
if ac_fn_c_try_compile "$LINENO"; then :
 
19961
  grub_cv_cc_falign_loop=yes
 
19962
else
 
19963
  grub_cv_cc_falign_loop=no
 
19964
fi
 
19965
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19966
  
 
19967
fi
 
19968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_falign_loop" >&5
 
19969
$as_echo "$grub_cv_cc_falign_loop" >&6; }
 
19970
 
 
19971
  if test "x$grub_cv_cc_falign_loop" = xyes; then
 
19972
    TARGET_CFLAGS="$TARGET_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
 
19973
  else
 
19974
    TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
 
19975
  fi
 
19976
 
 
19977
  # Some toolchains enable these features by default, but they need
 
19978
  # registers that aren't set up properly in GRUB.
 
19979
  TARGET_CFLAGS="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-3dnow"
 
19980
fi
 
19981
 
 
19982
# By default, GCC 4.4 generates .eh_frame sections containing unwind
 
19983
# information in some cases where it previously did not. GRUB doesn't need
 
19984
# these and they just use up vital space. Restore the old compiler
 
19985
# behaviour.
 
19986
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fno-dwarf2-cfi-asm works" >&5
 
19987
$as_echo_n "checking whether -fno-dwarf2-cfi-asm works... " >&6; }
 
19988
if test "${grub_cv_cc_fno_dwarf2_cfi_asm+set}" = set; then :
 
19989
  $as_echo_n "(cached) " >&6
 
19990
else
 
19991
  
 
19992
  SAVE_CFLAGS="$CFLAGS"
 
19993
  CFLAGS="$CFLAGS -fno-dwarf2-cfi-asm"
 
19994
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19995
/* end confdefs.h.  */
 
19996
 
 
19997
int
 
19998
main (void)
 
19999
{
 
20000
 
 
20001
  ;
 
20002
  return 0;
 
20003
}
 
20004
_ACEOF
 
20005
if ac_fn_c_try_compile "$LINENO"; then :
 
20006
  grub_cv_cc_fno_dwarf2_cfi_asm=yes
 
20007
else
 
20008
  grub_cv_cc_fno_dwarf2_cfi_asm=no
 
20009
fi
 
20010
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20011
  CFLAGS="$SAVE_CFLAGS"
 
20012
 
 
20013
fi
 
20014
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_fno_dwarf2_cfi_asm" >&5
 
20015
$as_echo "$grub_cv_cc_fno_dwarf2_cfi_asm" >&6; }
 
20016
 
 
20017
if test "x$grub_cv_cc_fno_dwarf2_cfi_asm" = xyes; then
 
20018
  TARGET_CFLAGS="$TARGET_CFLAGS -fno-dwarf2-cfi-asm"
 
20019
fi
 
20020
 
 
20021
if test "${target_cpu}-${platform}" = mips-yeeloong; then
 
20022
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -march=loongson2f works" >&5
 
20023
$as_echo_n "checking whether -march=loongson2f works... " >&6; }
 
20024
if test "${grub_cv_cc_march_loongson2f+set}" = set; then :
 
20025
  $as_echo_n "(cached) " >&6
 
20026
else
 
20027
  
 
20028
    SAVE_CFLAGS="$CFLAGS"
 
20029
    CFLAGS="$CFLAGS -march=loongson2f"
 
20030
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20031
/* end confdefs.h.  */
 
20032
 
 
20033
int
 
20034
main (void)
 
20035
{
 
20036
 
 
20037
  ;
 
20038
  return 0;
 
20039
}
 
20040
_ACEOF
 
20041
if ac_fn_c_try_compile "$LINENO"; then :
 
20042
  grub_cv_cc_march_loongson2f=yes
 
20043
else
 
20044
  grub_cv_cc_march_loongson2f=no
 
20045
fi
 
20046
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20047
    CFLAGS="$SAVE_CFLAGS"
 
20048
  
 
20049
fi
 
20050
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_march_loongson2f" >&5
 
20051
$as_echo "$grub_cv_cc_march_loongson2f" >&6; }
 
20052
 
 
20053
  if test "x$grub_cv_cc_march_loongson2f" = xyes; then
 
20054
    TARGET_CFLAGS="$TARGET_CFLAGS -march=loongson2f"
 
20055
  else
 
20056
    TARGET_CFLAGS="$TARGET_CFLAGS -march=mips3"
 
20057
  fi
 
20058
fi
 
20059
 
 
20060
 
 
20061
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our target compiler is apple cc" >&5
 
20062
$as_echo_n "checking whether our target compiler is apple cc... " >&6; }
 
20063
if test "${grub_cv_apple_target_cc+set}" = set; then :
 
20064
  $as_echo_n "(cached) " >&6
 
20065
else
 
20066
  if $CC -v 2>&1 | grep "Apple Inc." > /dev/null; then
 
20067
  grub_cv_apple_target_cc=yes
 
20068
else
 
20069
  grub_cv_apple_target_cc=no
 
20070
fi
 
20071
 
 
20072
fi
 
20073
 
 
20074
 
 
20075
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_apple_target_cc" >&5
 
20076
$as_echo "$grub_cv_apple_target_cc" >&6; }
 
20077
if test x$grub_cv_apple_target_cc = xyes ; then
 
20078
  TARGET_CPPFLAGS="$TARGET_CPPFLAGS -DAPPLE_CC=1"
 
20079
  TARGET_CFLAGS="$TARGET_CFLAGS -fnested-functions"
 
20080
 
 
20081
  CFLAGS="$CFLAGS -DAPPLE_CC=1 -fnested-functions"
 
20082
  TARGET_APPLE_CC=1
 
20083
  # Extract the first word of "objconv", so it can be a program name with args.
 
20084
set dummy objconv; ac_word=$2
 
20085
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
20086
$as_echo_n "checking for $ac_word... " >&6; }
 
20087
if test "${ac_cv_prog_OBJCONV+set}" = set; then :
 
20088
  $as_echo_n "(cached) " >&6
 
20089
else
 
20090
  if test -n "$OBJCONV"; then
 
20091
  ac_cv_prog_OBJCONV="$OBJCONV" # Let the user override the test.
 
20092
else
 
20093
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20094
for as_dir in $PATH
 
20095
do
 
20096
  IFS=$as_save_IFS
 
20097
  test -z "$as_dir" && as_dir=.
 
20098
    for ac_exec_ext in '' $ac_executable_extensions; do
 
20099
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20100
    ac_cv_prog_OBJCONV="objconv"
 
20101
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20102
    break 2
 
20103
  fi
 
20104
done
 
20105
  done
 
20106
IFS=$as_save_IFS
 
20107
 
 
20108
fi
 
20109
fi
 
20110
OBJCONV=$ac_cv_prog_OBJCONV
 
20111
if test -n "$OBJCONV"; then
 
20112
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCONV" >&5
 
20113
$as_echo "$OBJCONV" >&6; }
 
20114
else
 
20115
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20116
$as_echo "no" >&6; }
 
20117
fi
 
20118
 
 
20119
 
 
20120
  if test "x$OBJCONV" = x ; then
 
20121
     # Extract the first word of "objconv", so it can be a program name with args.
 
20122
set dummy objconv; ac_word=$2
 
20123
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
20124
$as_echo_n "checking for $ac_word... " >&6; }
 
20125
if test "${ac_cv_prog_OBJCONV+set}" = set; then :
 
20126
  $as_echo_n "(cached) " >&6
 
20127
else
 
20128
  if test -n "$OBJCONV"; then
 
20129
  ac_cv_prog_OBJCONV="$OBJCONV" # Let the user override the test.
 
20130
else
 
20131
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20132
for as_dir in .
 
20133
do
 
20134
  IFS=$as_save_IFS
 
20135
  test -z "$as_dir" && as_dir=.
 
20136
    for ac_exec_ext in '' $ac_executable_extensions; do
 
20137
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20138
    ac_cv_prog_OBJCONV="./objconv"
 
20139
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20140
    break 2
 
20141
  fi
 
20142
done
 
20143
  done
 
20144
IFS=$as_save_IFS
 
20145
 
 
20146
fi
 
20147
fi
 
20148
OBJCONV=$ac_cv_prog_OBJCONV
 
20149
if test -n "$OBJCONV"; then
 
20150
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCONV" >&5
 
20151
$as_echo "$OBJCONV" >&6; }
 
20152
else
 
20153
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20154
$as_echo "no" >&6; }
 
20155
fi
 
20156
 
 
20157
 
 
20158
  fi
 
20159
  if test "x$OBJCONV" = x ; then
 
20160
    as_fn_error $? "objconv not found which is required when building with apple compiler" "$LINENO" 5 
 
20161
  fi
 
20162
  TARGET_IMG_LDSCRIPT=
 
20163
  TARGET_IMG_CFLAGS="-static"
 
20164
  TARGET_IMG_LDFLAGS='-nostdlib -static -Wl,-preload -Wl,-segalign,20'
 
20165
  TARGET_IMG_LDFLAGS_AC='-nostdlib -static -Wl,-preload -Wl,-segalign,20'
 
20166
  TARGET_IMG_BASE_LDOPT="-Wl,-image_base"
 
20167
else
 
20168
  TARGET_APPLE_CC=0
 
20169
# Use linker script if present, otherwise use builtin -N script.
 
20170
if test -f "${srcdir}/${grub_coredir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"; then
 
20171
  TARGET_IMG_LDSCRIPT='$(top_srcdir)'"/${grub_coredir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"
 
20172
  TARGET_IMG_LDFLAGS="-Wl,-T${TARGET_IMG_LDSCRIPT}"
 
20173
  TARGET_IMG_LDFLAGS_AC="-Wl,-T${srcdir}/${grub_coredir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"
 
20174
  TARGET_IMG_BASE_LDOPT="-Wl,-Ttext"
 
20175
else
 
20176
  TARGET_IMG_LDSCRIPT=
 
20177
  TARGET_IMG_LDFLAGS='-Wl,-N'
 
20178
  TARGET_IMG_LDFLAGS_AC='-Wl,-N'
 
20179
  TARGET_IMG_BASE_LDOPT="-Wl,-Ttext"
 
20180
fi
 
20181
TARGET_IMG_CFLAGS=
 
20182
fi
 
20183
 
 
20184
# For platforms where ELF is not the default link format.
 
20185
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for command to convert module to ELF format" >&5
 
20186
$as_echo_n "checking for command to convert module to ELF format... " >&6; }
 
20187
case "${host_os}" in
 
20188
  cygwin) TARGET_OBJ2ELF='$(top_builddir)/grub-pe2elf';
 
20189
# FIXME: put proper test here
 
20190
  NEED_REGISTER_FRAME_INFO=1
 
20191
  ;;
 
20192
  *) NEED_REGISTER_FRAME_INFO=0 ;;
 
20193
esac
 
20194
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_OBJ2ELF" >&5
 
20195
$as_echo "$TARGET_OBJ2ELF" >&6; }
 
20196
 
 
20197
if test "x$target_m32" = x1; then
 
20198
  # Force 32-bit mode.
 
20199
  TARGET_CFLAGS="$TARGET_CFLAGS -m32"
 
20200
  TARGET_CCASFLAGS="$TARGET_CCASFLAGS -m32"
 
20201
  TARGET_LDFLAGS="$TARGET_LDFLAGS -m32"
 
20202
  TARGET_MODULE_FORMAT="elf32"
 
20203
fi
 
20204
 
 
20205
if test "x$target_m64" = x1; then
 
20206
  # Force 64-bit mode.
 
20207
  TARGET_CFLAGS="$TARGET_CFLAGS -m64"
 
20208
  TARGET_CCASFLAGS="$TARGET_CCASFLAGS -m64"
 
20209
  TARGET_LDFLAGS="$TARGET_LDFLAGS -m64"
 
20210
  TARGET_MODULE_FORMAT="elf64"
 
20211
fi
 
20212
 
 
20213
if test "$target_cpu"-"$platform" = x86_64-efi; then
 
20214
  # Use large model to support 4G memory
 
20215
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mcmodel=large works" >&5
 
20216
$as_echo_n "checking whether option -mcmodel=large works... " >&6; }
 
20217
if test "${grub_cv_cc_mcmodel+set}" = set; then :
 
20218
  $as_echo_n "(cached) " >&6
 
20219
else
 
20220
  
 
20221
    SAVED_CFLAGS=$CFLAGS
 
20222
    CFLAGS="$CFLAGS -m64 -mcmodel=large"
 
20223
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20224
/* end confdefs.h.  */
 
20225
 
 
20226
int
 
20227
main (void)
 
20228
{
 
20229
 
 
20230
  ;
 
20231
  return 0;
 
20232
}
 
20233
_ACEOF
 
20234
if ac_fn_c_try_compile "$LINENO"; then :
 
20235
  grub_cv_cc_mcmodel=yes
 
20236
else
 
20237
  grub_cv_cc_mcmodel=no
 
20238
fi
 
20239
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20240
  
 
20241
fi
 
20242
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_mcmodel" >&5
 
20243
$as_echo "$grub_cv_cc_mcmodel" >&6; }
 
20244
  if test "x$grub_cv_cc_mcmodel" = xno; then
 
20245
    as_fn_error $? "-mcmodel=large not supported. Upgrade your gcc." "$LINENO" 5 
 
20246
  else
 
20247
    TARGET_CFLAGS="$TARGET_CFLAGS -mcmodel=large"
 
20248
  fi
 
20249
 
 
20250
  # EFI writes to stack below %rsp, we must not use the red zone
 
20251
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mno-red-zone works" >&5
 
20252
$as_echo_n "checking whether option -mno-red-zone works... " >&6; }
 
20253
if test "${grub_cv_cc_no_red_zone+set}" = set; then :
 
20254
  $as_echo_n "(cached) " >&6
 
20255
else
 
20256
  
 
20257
    CFLAGS="$CFLAGS -m64 -mno-red-zone"
 
20258
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20259
/* end confdefs.h.  */
 
20260
 
 
20261
int
 
20262
main (void)
 
20263
{
 
20264
 
 
20265
  ;
 
20266
  return 0;
 
20267
}
 
20268
_ACEOF
 
20269
if ac_fn_c_try_compile "$LINENO"; then :
 
20270
  grub_cv_cc_no_red_zone=yes
 
20271
else
 
20272
  grub_cv_cc_no_red_zone=no
 
20273
fi
 
20274
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20275
  
 
20276
fi
 
20277
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_no_red_zone" >&5
 
20278
$as_echo "$grub_cv_cc_no_red_zone" >&6; }
 
20279
  if test "x$grub_cv_cc_no_red_zone" = xno; then
 
20280
    as_fn_error $? "-mno-red-zone not supported, upgrade your gcc" "$LINENO" 5 
 
20281
  fi
 
20282
 
 
20283
  TARGET_CFLAGS="$TARGET_CFLAGS -mno-red-zone"
 
20284
fi
 
20285
 
 
20286
#
 
20287
# Compiler features.
 
20288
#
 
20289
 
 
20290
# Need __enable_execute_stack() for nested function trampolines?
 
20291
 
 
20292
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' generates calls to \`__enable_execute_stack()'" >&5
 
20293
$as_echo_n "checking whether \`$CC' generates calls to \`__enable_execute_stack()'... " >&6; }
 
20294
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20295
/* end confdefs.h.  */
 
20296
 
 
20297
void f (int (*p) (void));
 
20298
void g (int i)
 
20299
{
 
20300
  int nestedfunc (void) { return i; }
 
20301
  f (nestedfunc);
 
20302
}
 
20303
 
 
20304
_ACEOF
 
20305
if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
 
20306
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
 
20307
  (eval $ac_try) 2>&5
 
20308
  ac_status=$?
 
20309
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20310
  test $ac_status = 0; }; } && test -s conftest.s; then
 
20311
  true
 
20312
else
 
20313
  as_fn_error $? "${CC-cc} failed to produce assembly code" "$LINENO" 5 
 
20314
fi
 
20315
if grep __enable_execute_stack conftest.s >/dev/null 2>&1; then
 
20316
  NEED_ENABLE_EXECUTE_STACK=1
 
20317
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
20318
$as_echo "yes" >&6; }
 
20319
else
 
20320
  NEED_ENABLE_EXECUTE_STACK=0
 
20321
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20322
$as_echo "no" >&6; }
 
20323
fi
 
20324
rm -f conftest*
 
20325
 
 
20326
 
 
20327
# Position independent executable.
 
20328
 
 
20329
# Position independent executable.
 
20330
pie_possible=yes
 
20331
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' has \`-fPIE' as default" >&5
 
20332
$as_echo_n "checking whether \`$CC' has \`-fPIE' as default... " >&6; }
 
20333
# Is this a reliable test case?
 
20334
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20335
/* end confdefs.h.  */
 
20336
 
 
20337
#ifdef __PIE__
 
20338
int main() {
 
20339
        return 0;
 
20340
}
 
20341
#else
 
20342
#error NO __PIE__ DEFINED
 
20343
#endif
 
20344
 
 
20345
_ACEOF
 
20346
 
 
20347
# `$CC -c -o ...' might not be portable.  But, oh, well...  Is calling
 
20348
# `ac_compile' like this correct, after all?
 
20349
if eval "$ac_compile -S -o conftest.s" 2> /dev/null; then
 
20350
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
20351
$as_echo "yes" >&6; }
 
20352
  # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
 
20353
  rm -f conftest.s
 
20354
else
 
20355
  pie_possible=no
 
20356
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20357
$as_echo "no" >&6; }
 
20358
fi
 
20359
 
 
20360
# Need that, because some distributions ship compilers that include
 
20361
# `-fPIE' in the default specs.
 
20362
if [ x"$pie_possible" = xyes ]; then
 
20363
  TARGET_CFLAGS="$TARGET_CFLAGS -fno-PIE"
 
20364
fi
 
20365
 
 
20366
# Smashing stack protector.
 
20367
 
 
20368
# Smashing stack protector.
 
20369
ssp_possible=yes
 
20370
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' accepts \`-fstack-protector'" >&5
 
20371
$as_echo_n "checking whether \`$CC' accepts \`-fstack-protector'... " >&6; }
 
20372
# Is this a reliable test case?
 
20373
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20374
/* end confdefs.h.  */
 
20375
void foo (void) { volatile char a[8]; a[3]; }
 
20376
_ACEOF
 
20377
# `$CC -c -o ...' might not be portable.  But, oh, well...  Is calling
 
20378
# `ac_compile' like this correct, after all?
 
20379
if eval "$ac_compile -S -fstack-protector -o conftest.s" 2> /dev/null; then
 
20380
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
20381
$as_echo "yes" >&6; }
 
20382
  # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
 
20383
  rm -f conftest.s
 
20384
else
 
20385
  ssp_possible=no
 
20386
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20387
$as_echo "no" >&6; }
 
20388
fi
 
20389
 
 
20390
# Need that, because some distributions ship compilers that include
 
20391
# `-fstack-protector' in the default specs.
 
20392
if test "x$ssp_possible" = xyes; then
 
20393
  TARGET_CFLAGS="$TARGET_CFLAGS -fno-stack-protector"
 
20394
fi
 
20395
 
 
20396
# Smashing stack arg probe.
 
20397
sap_possible=yes
 
20398
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' accepts \`-mstack-arg-probe'" >&5
 
20399
$as_echo_n "checking whether \`$CC' accepts \`-mstack-arg-probe'... " >&6; }
 
20400
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20401
/* end confdefs.h.  */
 
20402
void foo (void) { volatile char a[8]; a[3]; }
 
20403
_ACEOF
 
20404
if eval "$ac_compile -S -mstack-arg-probe -o conftest.s" 2> /dev/null; then
 
20405
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
20406
$as_echo "yes" >&6; }
 
20407
  # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
 
20408
  rm -f conftest.s
 
20409
else
 
20410
  sap_possible=no
 
20411
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20412
$as_echo "no" >&6; }
 
20413
fi
 
20414
 
 
20415
# Cygwin's GCC uses alloca() to probe the stackframe on static
 
20416
# stack allocations above some threshold.
 
20417
if test x"$sap_possible" = xyes; then
 
20418
  TARGET_CFLAGS="$TARGET_CFLAGS -mno-stack-arg-probe"
 
20419
fi
 
20420
 
 
20421
@%:@ Check whether --enable-werror was given.
 
20422
if test "${enable_werror+set}" = set; then :
 
20423
  enableval=$enable_werror; 
 
20424
fi
 
20425
 
 
20426
if test x"$enable_werror" != xno ; then
 
20427
  TARGET_CFLAGS="$TARGET_CFLAGS -Werror"
 
20428
fi
 
20429
 
 
20430
TARGET_CPP="$TARGET_CC -E"
 
20431
TARGET_CCAS=$TARGET_CC
 
20432
 
 
20433
 
 
20434
 
 
20435
 
 
20436
 
 
20437
 
 
20438
 
 
20439
 
 
20440
 
 
20441
 
 
20442
 
 
20443
 
 
20444
 
 
20445
 
 
20446
 
 
20447
 
 
20448
 
 
20449
 
 
20450
 
 
20451
 
 
20452
 
 
20453
 
 
20454
 
 
20455
# Set them to their new values for the tests below.
 
20456
CC="$TARGET_CC"
 
20457
if test "x$TARGET_APPLE_CC" = x1 ; then
 
20458
CFLAGS="$TARGET_CFLAGS -nostdlib -Wno-error"
 
20459
else
 
20460
CFLAGS="$TARGET_CFLAGS -nostdlib -Wl,--defsym,___main=0x8100 -Wno-error"
 
20461
fi
 
20462
CPPFLAGS="$TARGET_CPPFLAGS"
 
20463
if test x$target_cpu = xi386 || test x$target_cpu = xx86_64 ; then
 
20464
LIBS=
 
20465
else
 
20466
LIBS=-lgcc
 
20467
fi
 
20468
 
 
20469
 
 
20470
 
 
20471
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if C symbols get an underscore after compilation" >&5
 
20472
$as_echo_n "checking if C symbols get an underscore after compilation... " >&6; }
 
20473
if test "${grub_cv_asm_uscore+set}" = set; then :
 
20474
  $as_echo_n "(cached) " >&6
 
20475
else
 
20476
  cat > conftest.c <<\EOF
 
20477
int func (int *);
 
20478
int
 
20479
func (int *list)
 
20480
{
 
20481
  *list = 0;
 
20482
  return *list;
 
20483
}
 
20484
EOF
 
20485
 
 
20486
if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
 
20487
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
 
20488
  (eval $ac_try) 2>&5
 
20489
  ac_status=$?
 
20490
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20491
  test $ac_status = 0; }; } && test -s conftest.s; then
 
20492
  true
 
20493
else
 
20494
  as_fn_error $? "${CC-cc} failed to produce assembly code" "$LINENO" 5 
 
20495
fi
 
20496
 
 
20497
if $EGREP '(^|^_[:alnum])_func' conftest.s >/dev/null 2>&1; then
 
20498
  HAVE_ASM_USCORE=1
 
20499
  grub_cv_asm_uscore=yes
 
20500
else
 
20501
  HAVE_ASM_USCORE=0
 
20502
  grub_cv_asm_uscore=no
 
20503
fi
 
20504
 
 
20505
rm -f conftest*
 
20506
fi
 
20507
 
 
20508
 
 
20509
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_asm_uscore" >&5
 
20510
$as_echo "$grub_cv_asm_uscore" >&6; }
 
20511
 
 
20512
if test x$grub_cv_asm_uscore = xyes; then
 
20513
CFLAGS="$CFLAGS -Wl,--defsym,_abort=_main"
 
20514
else
 
20515
CFLAGS="$CFLAGS -Wl,--defsym,abort=main"
 
20516
fi
 
20517
 
 
20518
# Check for libgcc symbols
 
20519
for ac_func in __bswapsi2 __bswapdi2 __ashldi3 __ashrdi3 __lshrdi3 __trampoline_setup __ucmpdi2 _restgpr_14_x
 
20520
do :
 
20521
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
20522
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
20523
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
20524
  cat >>confdefs.h <<_ACEOF
 
20525
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
20526
_ACEOF
 
20527
 
 
20528
fi
 
20529
done
 
20530
 
 
20531
 
 
20532
if test "x$TARGET_APPLE_CC" = x1 ; then
 
20533
CFLAGS="$TARGET_CFLAGS -nostdlib"
 
20534
else
 
20535
CFLAGS="$TARGET_CFLAGS -nostdlib -Wl,--defsym,___main=0x8100"
 
20536
fi
 
20537
LIBS=""
 
20538
 
 
20539
# Defined in aclocal.m4.
 
20540
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether target compiler is working" >&5
 
20541
$as_echo_n "checking whether target compiler is working... " >&6; }
 
20542
if test "${grub_cv_prog_target_cc+set}" = set; then :
 
20543
  $as_echo_n "(cached) " >&6
 
20544
else
 
20545
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20546
/* end confdefs.h.  */
 
20547
 
 
20548
asm (".globl start; start:");
 
20549
int main (void);
 
20550
 
 
20551
int
 
20552
main (void)
 
20553
{
 
20554
 
 
20555
  ;
 
20556
  return 0;
 
20557
}
 
20558
_ACEOF
 
20559
if ac_fn_c_try_link "$LINENO"; then :
 
20560
  grub_cv_prog_target_cc=yes
 
20561
else
 
20562
  grub_cv_prog_target_cc=no
 
20563
fi
 
20564
rm -f core conftest.err conftest.$ac_objext \
 
20565
    conftest$ac_exeext conftest.$ac_ext
 
20566
 
 
20567
fi
 
20568
 
 
20569
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_target_cc" >&5
 
20570
$as_echo "$grub_cv_prog_target_cc" >&6; }
 
20571
 
 
20572
if test "x$grub_cv_prog_target_cc" = xno; then
 
20573
  as_fn_error $? "cannot compile for the target" "$LINENO" 5 
 
20574
fi
 
20575
 
 
20576
if test "x$TARGET_APPLE_CC" != x1 ; then
 
20577
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${OBJCOPY} works for absolute addresses" >&5
 
20578
$as_echo_n "checking whether ${OBJCOPY} works for absolute addresses... " >&6; }
 
20579
if test "${grub_cv_prog_objcopy_absolute+set}" = set; then :
 
20580
  $as_echo_n "(cached) " >&6
 
20581
else
 
20582
  cat > conftest.c <<\EOF
 
20583
void cmain (void);
 
20584
void
 
20585
cmain (void)
 
20586
{
 
20587
   *((int *) 0x1000) = 2;
 
20588
}
 
20589
EOF
 
20590
 
 
20591
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
20592
  (eval $ac_compile) 2>&5
 
20593
  ac_status=$?
 
20594
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20595
  test $ac_status = 0; } && test -s conftest.o; then :
 
20596
else
 
20597
  as_fn_error $? "${CC-cc} cannot compile C source code" "$LINENO" 5 
 
20598
fi
 
20599
grub_cv_prog_objcopy_absolute=yes
 
20600
for link_addr in 0x2000 0x8000 0x7C00; do
 
20601
  if { ac_try='${CC-cc} ${CFLAGS} -nostdlib ${TARGET_IMG_LDFLAGS_AC} ${TARGET_IMG_BASE_LDOPT},$link_addr conftest.o -o conftest.exec'
 
20602
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
 
20603
  (eval $ac_try) 2>&5
 
20604
  ac_status=$?
 
20605
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20606
  test $ac_status = 0; }; }; then :
 
20607
  else
 
20608
    as_fn_error $? "${CC-cc} cannot link at address $link_addr" "$LINENO" 5 
 
20609
  fi
 
20610
  if { ac_try='${OBJCOPY-objcopy} --only-section=.text -O binary conftest.exec conftest'
 
20611
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
 
20612
  (eval $ac_try) 2>&5
 
20613
  ac_status=$?
 
20614
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20615
  test $ac_status = 0; }; }; then :
 
20616
  else
 
20617
    as_fn_error $? "${OBJCOPY-objcopy} cannot create binary files" "$LINENO" 5 
 
20618
  fi
 
20619
  if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest'
 
20620
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
 
20621
  (eval $ac_try) 2>&5
 
20622
  ac_status=$?
 
20623
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20624
  test $ac_status = 0; }; }; then
 
20625
    mv -f conftest conftest.old
 
20626
  else
 
20627
    grub_cv_prog_objcopy_absolute=no
 
20628
    break
 
20629
  fi
 
20630
done
 
20631
rm -f conftest*
 
20632
fi
 
20633
 
 
20634
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_objcopy_absolute" >&5
 
20635
$as_echo "$grub_cv_prog_objcopy_absolute" >&6; }
 
20636
 
 
20637
if test "x$grub_cv_prog_objcopy_absolute" = xno; then
 
20638
  as_fn_error $? "GRUB requires a working absolute objcopy; upgrade your binutils" "$LINENO" 5 
 
20639
fi
 
20640
 
 
20641
fi
 
20642
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts --build-id=none" >&5
 
20643
$as_echo_n "checking whether linker accepts --build-id=none... " >&6; }
 
20644
if test "${grub_cv_prog_ld_build_id_none+set}" = set; then :
 
20645
  $as_echo_n "(cached) " >&6
 
20646
else
 
20647
  save_LDFLAGS="$LDFLAGS"
 
20648
LDFLAGS="$LDFLAGS -Wl,--build-id=none"
 
20649
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20650
/* end confdefs.h.  */
 
20651
 
 
20652
int
 
20653
main (void)
 
20654
{
 
20655
 
 
20656
  ;
 
20657
  return 0;
 
20658
}
 
20659
_ACEOF
 
20660
if ac_fn_c_try_link "$LINENO"; then :
 
20661
  grub_cv_prog_ld_build_id_none=yes
 
20662
else
 
20663
  grub_cv_prog_ld_build_id_none=no
 
20664
fi
 
20665
rm -f core conftest.err conftest.$ac_objext \
 
20666
    conftest$ac_exeext conftest.$ac_ext
 
20667
LDFLAGS="$save_LDFLAGS"
 
20668
 
 
20669
fi
 
20670
 
 
20671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_ld_build_id_none" >&5
 
20672
$as_echo "$grub_cv_prog_ld_build_id_none" >&6; }
 
20673
 
 
20674
if test "x$grub_cv_prog_ld_build_id_none" = xyes; then
 
20675
  TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,--build-id=none"
 
20676
fi
 
20677
 
 
20678
if test "x$target_cpu" = xi386; then
 
20679
  if test "$platform" != emu && test "x$TARGET_APPLE_CC" != x1 ; then
 
20680
    if test ! -z "$TARGET_IMG_LDSCRIPT"; then
 
20681
      # Check symbols provided by linker script.
 
20682
      CFLAGS="$TARGET_CFLAGS -nostdlib ${TARGET_IMG_LDFLAGS_AC} ${TARGET_IMG_BASE_LDOPT},8000 -Wl,--defsym,___main=0x8100"
 
20683
    fi
 
20684
    
 
20685
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if __bss_start is defined by the compiler" >&5
 
20686
$as_echo_n "checking if __bss_start is defined by the compiler... " >&6; }
 
20687
if test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then :
 
20688
  $as_echo_n "(cached) " >&6
 
20689
else
 
20690
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20691
/* end confdefs.h.  */
 
20692
 
 
20693
int
 
20694
main (void)
 
20695
{
 
20696
asm ("incl __bss_start")
 
20697
  ;
 
20698
  return 0;
 
20699
}
 
20700
_ACEOF
 
20701
if ac_fn_c_try_link "$LINENO"; then :
 
20702
  grub_cv_check_uscore_uscore_bss_start_symbol=yes
 
20703
else
 
20704
  grub_cv_check_uscore_uscore_bss_start_symbol=no
 
20705
fi
 
20706
rm -f core conftest.err conftest.$ac_objext \
 
20707
    conftest$ac_exeext conftest.$ac_ext
 
20708
fi
 
20709
 
 
20710
 
 
20711
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
 
20712
$as_echo "$grub_cv_check_uscore_uscore_bss_start_symbol" >&6; }
 
20713
 
 
20714
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if edata is defined by the compiler" >&5
 
20715
$as_echo_n "checking if edata is defined by the compiler... " >&6; }
 
20716
if test "${grub_cv_check_edata_symbol+set}" = set; then :
 
20717
  $as_echo_n "(cached) " >&6
 
20718
else
 
20719
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20720
/* end confdefs.h.  */
 
20721
 
 
20722
int
 
20723
main (void)
 
20724
{
 
20725
asm ("incl edata")
 
20726
  ;
 
20727
  return 0;
 
20728
}
 
20729
_ACEOF
 
20730
if ac_fn_c_try_link "$LINENO"; then :
 
20731
  grub_cv_check_edata_symbol=yes
 
20732
else
 
20733
  grub_cv_check_edata_symbol=no
 
20734
fi
 
20735
rm -f core conftest.err conftest.$ac_objext \
 
20736
    conftest$ac_exeext conftest.$ac_ext
 
20737
fi
 
20738
 
 
20739
 
 
20740
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_edata_symbol" >&5
 
20741
$as_echo "$grub_cv_check_edata_symbol" >&6; }
 
20742
 
 
20743
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if _edata is defined by the compiler" >&5
 
20744
$as_echo_n "checking if _edata is defined by the compiler... " >&6; }
 
20745
if test "${grub_cv_check_uscore_edata_symbol+set}" = set; then :
 
20746
  $as_echo_n "(cached) " >&6
 
20747
else
 
20748
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20749
/* end confdefs.h.  */
 
20750
 
 
20751
int
 
20752
main (void)
 
20753
{
 
20754
asm ("incl _edata")
 
20755
  ;
 
20756
  return 0;
 
20757
}
 
20758
_ACEOF
 
20759
if ac_fn_c_try_link "$LINENO"; then :
 
20760
  grub_cv_check_uscore_edata_symbol=yes
 
20761
else
 
20762
  grub_cv_check_uscore_edata_symbol=no
 
20763
fi
 
20764
rm -f core conftest.err conftest.$ac_objext \
 
20765
    conftest$ac_exeext conftest.$ac_ext
 
20766
fi
 
20767
 
 
20768
 
 
20769
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_edata_symbol" >&5
 
20770
$as_echo "$grub_cv_check_uscore_edata_symbol" >&6; }
 
20771
 
 
20772
if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
 
20773
  BSS_START_SYMBOL=__bss_start
 
20774
elif test "x$grub_cv_check_edata_symbol" = xyes; then
 
20775
  BSS_START_SYMBOL=edata
 
20776
elif test "x$grub_cv_check_uscore_edata_symbol" = xyes; then
 
20777
  BSS_START_SYMBOL=_edata
 
20778
else
 
20779
  as_fn_error $? "none of __bss_start, edata or _edata is defined" "$LINENO" 5 
 
20780
fi
 
20781
 
 
20782
    
 
20783
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if end is defined by the compiler" >&5
 
20784
$as_echo_n "checking if end is defined by the compiler... " >&6; }
 
20785
if test "${grub_cv_check_end_symbol+set}" = set; then :
 
20786
  $as_echo_n "(cached) " >&6
 
20787
else
 
20788
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20789
/* end confdefs.h.  */
 
20790
 
 
20791
int
 
20792
main (void)
 
20793
{
 
20794
asm ("incl end")
 
20795
  ;
 
20796
  return 0;
 
20797
}
 
20798
_ACEOF
 
20799
if ac_fn_c_try_link "$LINENO"; then :
 
20800
  grub_cv_check_end_symbol=yes
 
20801
else
 
20802
  grub_cv_check_end_symbol=no
 
20803
fi
 
20804
rm -f core conftest.err conftest.$ac_objext \
 
20805
    conftest$ac_exeext conftest.$ac_ext
 
20806
fi
 
20807
 
 
20808
 
 
20809
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_end_symbol" >&5
 
20810
$as_echo "$grub_cv_check_end_symbol" >&6; }
 
20811
 
 
20812
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if _end is defined by the compiler" >&5
 
20813
$as_echo_n "checking if _end is defined by the compiler... " >&6; }
 
20814
if test "${grub_cv_check_uscore_end_symbol+set}" = set; then :
 
20815
  $as_echo_n "(cached) " >&6
 
20816
else
 
20817
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20818
/* end confdefs.h.  */
 
20819
 
 
20820
int
 
20821
main (void)
 
20822
{
 
20823
asm ("incl _end")
 
20824
  ;
 
20825
  return 0;
 
20826
}
 
20827
_ACEOF
 
20828
if ac_fn_c_try_link "$LINENO"; then :
 
20829
  grub_cv_check_uscore_end_symbol=yes
 
20830
else
 
20831
  grub_cv_check_uscore_end_symbol=no
 
20832
fi
 
20833
rm -f core conftest.err conftest.$ac_objext \
 
20834
    conftest$ac_exeext conftest.$ac_ext
 
20835
fi
 
20836
 
 
20837
 
 
20838
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_end_symbol" >&5
 
20839
$as_echo "$grub_cv_check_uscore_end_symbol" >&6; }
 
20840
 
 
20841
if test "x$grub_cv_check_end_symbol" = xyes; then
 
20842
  END_SYMBOL=end
 
20843
elif test "x$grub_cv_check_uscore_end_symbol" = xyes; then
 
20844
  END_SYMBOL=_end
 
20845
else
 
20846
  as_fn_error $? "neither end nor _end is defined" "$LINENO" 5 
 
20847
fi
 
20848
 
 
20849
  fi
 
20850
  CFLAGS="$TARGET_CFLAGS"
 
20851
  
 
20852
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether addr32 must be in the same line as the instruction" >&5
 
20853
$as_echo_n "checking whether addr32 must be in the same line as the instruction... " >&6; }
 
20854
if test "${grub_cv_i386_asm_prefix_requirement+set}" = set; then :
 
20855
  $as_echo_n "(cached) " >&6
 
20856
else
 
20857
  cat > conftest.s <<\EOF
 
20858
        .code16
 
20859
l1:     addr32  movb    %al, l1
 
20860
EOF
 
20861
 
 
20862
if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
 
20863
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
 
20864
  (eval $ac_try) 2>&5
 
20865
  ac_status=$?
 
20866
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20867
  test $ac_status = 0; }; } && test -s conftest.o; then
 
20868
  grub_cv_i386_asm_prefix_requirement=yes
 
20869
else
 
20870
  grub_cv_i386_asm_prefix_requirement=no
 
20871
fi
 
20872
 
 
20873
rm -f conftest*
 
20874
fi
 
20875
 
 
20876
 
 
20877
if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
 
20878
  grub_tmp_addr32="addr32"
 
20879
  grub_tmp_data32="data32"
 
20880
else
 
20881
  grub_tmp_addr32="addr32;"
 
20882
  grub_tmp_data32="data32;"
 
20883
fi
 
20884
 
 
20885
ADDR32=$grub_tmp_addr32
 
20886
DATA32=$grub_tmp_data32
 
20887
 
 
20888
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_i386_asm_prefix_requirement" >&5
 
20889
$as_echo "$grub_cv_i386_asm_prefix_requirement" >&6; }
 
20890
  
 
20891
 
 
20892
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .code16 addr32 assembler support" >&5
 
20893
$as_echo_n "checking for .code16 addr32 assembler support... " >&6; }
 
20894
if test "${grub_cv_i386_asm_addr32+set}" = set; then :
 
20895
  $as_echo_n "(cached) " >&6
 
20896
else
 
20897
  cat > conftest.s.in <<\EOF
 
20898
        .code16
 
20899
l1:     @ADDR32@        movb    %al, l1
 
20900
EOF
 
20901
 
 
20902
if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
 
20903
  sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s
 
20904
else
 
20905
  sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
 
20906
fi
 
20907
 
 
20908
if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
 
20909
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
 
20910
  (eval $ac_try) 2>&5
 
20911
  ac_status=$?
 
20912
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20913
  test $ac_status = 0; }; } && test -s conftest.o; then
 
20914
  grub_cv_i386_asm_addr32=yes
 
20915
else
 
20916
  grub_cv_i386_asm_addr32=no
 
20917
fi
 
20918
 
 
20919
rm -f conftest*
 
20920
fi
 
20921
 
 
20922
 
 
20923
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_i386_asm_addr32" >&5
 
20924
$as_echo "$grub_cv_i386_asm_addr32" >&6; }
 
20925
fi
 
20926
 
 
20927
@%:@ Check whether --enable-efiemu was given.
 
20928
if test "${enable_efiemu+set}" = set; then :
 
20929
  enableval=$enable_efiemu; 
 
20930
fi
 
20931
 
 
20932
if test x"$enable_efiemu" = xno ; then
 
20933
  efiemu_excuse="explicitly disabled"
 
20934
fi
 
20935
if test x"$target_cpu" != xi386 ; then
 
20936
  efiemu_excuse="only available on i386"
 
20937
fi
 
20938
if test x"$platform" = xefi ; then
 
20939
  efiemu_excuse="not available on efi"
 
20940
fi
 
20941
if test x"$efiemu_excuse" = x ; then
 
20942
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether options required for efiemu work" >&5
 
20943
$as_echo_n "checking whether options required for efiemu work... " >&6; }
 
20944
if test "${grub_cv_cc_efiemu+set}" = set; then :
 
20945
  $as_echo_n "(cached) " >&6
 
20946
else
 
20947
  
 
20948
    CFLAGS="$CFLAGS -m64 -mcmodel=large -mno-red-zone -nostdlib"
 
20949
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20950
/* end confdefs.h.  */
 
20951
 
 
20952
int
 
20953
main (void)
 
20954
{
 
20955
 
 
20956
  ;
 
20957
  return 0;
 
20958
}
 
20959
_ACEOF
 
20960
if ac_fn_c_try_compile "$LINENO"; then :
 
20961
  grub_cv_cc_efiemu=yes
 
20962
else
 
20963
  grub_cv_cc_efiemu=no
 
20964
fi
 
20965
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20966
  
 
20967
fi
 
20968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_efiemu" >&5
 
20969
$as_echo "$grub_cv_cc_efiemu" >&6; }
 
20970
  if test x$grub_cv_cc_efiemu = xno; then
 
20971
     efiemu_excuse="cannot compile with -m64 -mcmodel=large -mno-red-zone -nostdlib"
 
20972
  fi
 
20973
fi
 
20974
if test x"$enable_efiemu" = xyes && test x"$efiemu_excuse" != x ; then
 
20975
  as_fn_error $? "efiemu runtime was explicitly requested but can't be compiled" "$LINENO" 5 
 
20976
fi
 
20977
if test x"$efiemu_excuse" = x ; then
 
20978
enable_efiemu=yes
 
20979
else
 
20980
enable_efiemu=no
 
20981
fi
 
20982
 
 
20983
 
 
20984
if test "$platform" != emu; then
 
20985
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -nostdinc -isystem works" >&5
 
20986
$as_echo_n "checking whether -nostdinc -isystem works... " >&6; }
 
20987
if test "${grub_cv_cc_isystem+set}" = set; then :
 
20988
  $as_echo_n "(cached) " >&6
 
20989
else
 
20990
  
 
20991
  SAVED_CPPFLAGS="$CPPFLAGS"
 
20992
  CPPFLAGS="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
 
20993
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20994
/* end confdefs.h.  */
 
20995
#include <stdarg.h>
 
20996
int va_arg_func (int fixed, va_list args);
 
20997
int
 
20998
main (void)
 
20999
{
 
21000
 
 
21001
  ;
 
21002
  return 0;
 
21003
}
 
21004
_ACEOF
 
21005
if ac_fn_c_try_compile "$LINENO"; then :
 
21006
  grub_cv_cc_isystem=yes
 
21007
else
 
21008
  grub_cv_cc_isystem=no
 
21009
fi
 
21010
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21011
  CPPFLAGS="$SAVED_CPPFLAGS"
 
21012
 
 
21013
fi
 
21014
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_isystem" >&5
 
21015
$as_echo "$grub_cv_cc_isystem" >&6; }
 
21016
 
 
21017
if test x"$grub_cv_cc_isystem" = xyes ; then
 
21018
  TARGET_CPPFLAGS="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
 
21019
fi
 
21020
fi
 
21021
 
 
21022
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-trampolines work" >&5
 
21023
$as_echo_n "checking whether -Wno-trampolines work... " >&6; }
 
21024
if test "${grub_cv_cc_wnotrampolines+set}" = set; then :
 
21025
  $as_echo_n "(cached) " >&6
 
21026
else
 
21027
  
 
21028
  SAVED_CFLAGS="$CFLAGS"
 
21029
  # Test for -Wtrampolines rather than -Wno-trampolines to reduce confusion
 
21030
  # in the event of later failures (since -Wno-* is always accepted, but
 
21031
  # produces a diagnostic if something else is wrong).
 
21032
  CFLAGS="$TARGET_CFLAGS -Wtrampolines"
 
21033
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21034
/* end confdefs.h.  */
 
21035
#include <stdarg.h>
 
21036
int va_arg_func (int fixed, va_list args);
 
21037
int
 
21038
main (void)
 
21039
{
 
21040
 
 
21041
  ;
 
21042
  return 0;
 
21043
}
 
21044
_ACEOF
 
21045
if ac_fn_c_try_compile "$LINENO"; then :
 
21046
  grub_cv_cc_wnotrampolines=yes
 
21047
else
 
21048
  grub_cv_cc_wnotrampolines=no
 
21049
fi
 
21050
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21051
  CFLAGS="$SAVED_CFLAGS"
 
21052
 
 
21053
fi
 
21054
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_wnotrampolines" >&5
 
21055
$as_echo "$grub_cv_cc_wnotrampolines" >&6; }
 
21056
 
 
21057
if test x"$grub_cv_cc_wnotrampolines" = xyes ; then
 
21058
  TARGET_CFLAGS="$TARGET_CFLAGS -Wno-trampolines"
 
21059
fi
 
21060
 
 
21061
# Restore the flags.
 
21062
CC="$tmp_CC"
 
21063
CFLAGS="$tmp_CFLAGS"
 
21064
CPPFLAGS="$tmp_CPPFLAGS"
 
21065
LDFLAGS="$tmp_LDFLAGS"
 
21066
LIBS="$tmp_LIBS"
 
21067
 
 
21068
#
 
21069
# Check for options.
 
21070
#
 
21071
 
 
21072
# Memory manager debugging.
 
21073
@%:@ Check whether --enable-mm-debug was given.
 
21074
if test "${enable_mm_debug+set}" = set; then :
 
21075
  enableval=$enable_mm_debug; 
 
21076
$as_echo "@%:@define MM_DEBUG 1" >>confdefs.h
 
21077
 
 
21078
fi
 
21079
 
 
21080
 
 
21081
@%:@ Check whether --enable-grub-emu-usb was given.
 
21082
if test "${enable_grub_emu_usb+set}" = set; then :
 
21083
  enableval=$enable_grub_emu_usb; 
 
21084
fi
 
21085
 
 
21086
 
 
21087
@%:@ Check whether --enable-grub-emu-sdl was given.
 
21088
if test "${enable_grub_emu_sdl+set}" = set; then :
 
21089
  enableval=$enable_grub_emu_sdl; 
 
21090
fi
 
21091
 
 
21092
 
 
21093
@%:@ Check whether --enable-grub-emu-pci was given.
 
21094
if test "${enable_grub_emu_pci+set}" = set; then :
 
21095
  enableval=$enable_grub_emu_pci; 
 
21096
fi
 
21097
 
 
21098
 
 
21099
if test "$platform" = emu; then
 
21100
  missing_ncurses=
 
21101
# Check for curses libraries.
 
21102
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wgetch in -lncurses" >&5
 
21103
$as_echo_n "checking for wgetch in -lncurses... " >&6; }
 
21104
if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then :
 
21105
  $as_echo_n "(cached) " >&6
 
21106
else
 
21107
  ac_check_lib_save_LIBS=$LIBS
 
21108
LIBS="-lncurses  $LIBS"
 
21109
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21110
/* end confdefs.h.  */
 
21111
 
 
21112
/* Override any GCC internal prototype to avoid an error.
 
21113
   Use char because int might match the return type of a GCC
 
21114
   builtin and then its argument prototype would still apply.  */
 
21115
#ifdef __cplusplus
 
21116
extern "C"
 
21117
#endif
 
21118
char wgetch ();
 
21119
int
 
21120
main (void)
 
21121
{
 
21122
return wgetch ();
 
21123
  ;
 
21124
  return 0;
 
21125
}
 
21126
_ACEOF
 
21127
if ac_fn_c_try_link "$LINENO"; then :
 
21128
  ac_cv_lib_ncurses_wgetch=yes
 
21129
else
 
21130
  ac_cv_lib_ncurses_wgetch=no
 
21131
fi
 
21132
rm -f core conftest.err conftest.$ac_objext \
 
21133
    conftest$ac_exeext conftest.$ac_ext
 
21134
LIBS=$ac_check_lib_save_LIBS
 
21135
fi
 
21136
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_wgetch" >&5
 
21137
$as_echo "$ac_cv_lib_ncurses_wgetch" >&6; }
 
21138
if test "x$ac_cv_lib_ncurses_wgetch" = x""yes; then :
 
21139
  LIBCURSES="-lncurses"
 
21140
else
 
21141
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wgetch in -lcurses" >&5
 
21142
$as_echo_n "checking for wgetch in -lcurses... " >&6; }
 
21143
if test "${ac_cv_lib_curses_wgetch+set}" = set; then :
 
21144
  $as_echo_n "(cached) " >&6
 
21145
else
 
21146
  ac_check_lib_save_LIBS=$LIBS
 
21147
LIBS="-lcurses  $LIBS"
 
21148
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21149
/* end confdefs.h.  */
 
21150
 
 
21151
/* Override any GCC internal prototype to avoid an error.
 
21152
   Use char because int might match the return type of a GCC
 
21153
   builtin and then its argument prototype would still apply.  */
 
21154
#ifdef __cplusplus
 
21155
extern "C"
 
21156
#endif
 
21157
char wgetch ();
 
21158
int
 
21159
main (void)
 
21160
{
 
21161
return wgetch ();
 
21162
  ;
 
21163
  return 0;
 
21164
}
 
21165
_ACEOF
 
21166
if ac_fn_c_try_link "$LINENO"; then :
 
21167
  ac_cv_lib_curses_wgetch=yes
 
21168
else
 
21169
  ac_cv_lib_curses_wgetch=no
 
21170
fi
 
21171
rm -f core conftest.err conftest.$ac_objext \
 
21172
    conftest$ac_exeext conftest.$ac_ext
 
21173
LIBS=$ac_check_lib_save_LIBS
 
21174
fi
 
21175
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_wgetch" >&5
 
21176
$as_echo "$ac_cv_lib_curses_wgetch" >&6; }
 
21177
if test "x$ac_cv_lib_curses_wgetch" = x""yes; then :
 
21178
  LIBCURSES="-lcurses"
 
21179
else
 
21180
  missing_ncurses=true
 
21181
fi
 
21182
 
 
21183
fi
 
21184
 
 
21185
  
 
21186
if [ x"$missing_ncurses" = x ]; then 
 
21187
  # Check for headers.
 
21188
  for ac_header in ncurses/curses.h
 
21189
do :
 
21190
  ac_fn_c_check_header_mongrel "$LINENO" "ncurses/curses.h" "ac_cv_header_ncurses_curses_h" "$ac_includes_default"
 
21191
if test "x$ac_cv_header_ncurses_curses_h" = x""yes; then :
 
21192
  cat >>confdefs.h <<_ACEOF
 
21193
@%:@define HAVE_NCURSES_CURSES_H 1
 
21194
_ACEOF
 
21195
 
 
21196
else
 
21197
  for ac_header in ncurses.h
 
21198
do :
 
21199
  ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
 
21200
if test "x$ac_cv_header_ncurses_h" = x""yes; then :
 
21201
  cat >>confdefs.h <<_ACEOF
 
21202
@%:@define HAVE_NCURSES_H 1
 
21203
_ACEOF
 
21204
 
 
21205
else
 
21206
  for ac_header in curses.h
 
21207
do :
 
21208
  ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
 
21209
if test "x$ac_cv_header_curses_h" = x""yes; then :
 
21210
  cat >>confdefs.h <<_ACEOF
 
21211
@%:@define HAVE_CURSES_H 1
 
21212
_ACEOF
 
21213
 
 
21214
else
 
21215
  missing_ncurses=true
 
21216
fi
 
21217
 
 
21218
done
 
21219
 
 
21220
fi
 
21221
 
 
21222
done
 
21223
 
 
21224
fi
 
21225
 
 
21226
done
 
21227
 
 
21228
fi
 
21229
if test x"$missing_ncurses" = xtrue ; then
 
21230
  as_fn_error $? "grub-emu can't be compiled without ncurses" "$LINENO" 5 
 
21231
fi
 
21232
 
 
21233
if test x"$enable_grub_emu_usb" != xyes ; then
 
21234
   grub_emu_usb_excuse="not enabled"
 
21235
fi
 
21236
 
 
21237
if test x"$enable_grub_emu_pci" = xyes ; then
 
21238
   grub_emu_usb_excuse="conflicts with PCI support"
 
21239
fi
 
21240
 
 
21241
if [ x"$grub_emu_usb_excuse" = x ]; then
 
21242
    # Check for libusb libraries.
 
21243
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_claim_interface in -lusb" >&5
 
21244
$as_echo_n "checking for usb_claim_interface in -lusb... " >&6; }
 
21245
if test "${ac_cv_lib_usb_usb_claim_interface+set}" = set; then :
 
21246
  $as_echo_n "(cached) " >&6
 
21247
else
 
21248
  ac_check_lib_save_LIBS=$LIBS
 
21249
LIBS="-lusb  $LIBS"
 
21250
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21251
/* end confdefs.h.  */
 
21252
 
 
21253
/* Override any GCC internal prototype to avoid an error.
 
21254
   Use char because int might match the return type of a GCC
 
21255
   builtin and then its argument prototype would still apply.  */
 
21256
#ifdef __cplusplus
 
21257
extern "C"
 
21258
#endif
 
21259
char usb_claim_interface ();
 
21260
int
 
21261
main (void)
 
21262
{
 
21263
return usb_claim_interface ();
 
21264
  ;
 
21265
  return 0;
 
21266
}
 
21267
_ACEOF
 
21268
if ac_fn_c_try_link "$LINENO"; then :
 
21269
  ac_cv_lib_usb_usb_claim_interface=yes
 
21270
else
 
21271
  ac_cv_lib_usb_usb_claim_interface=no
 
21272
fi
 
21273
rm -f core conftest.err conftest.$ac_objext \
 
21274
    conftest$ac_exeext conftest.$ac_ext
 
21275
LIBS=$ac_check_lib_save_LIBS
 
21276
fi
 
21277
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_claim_interface" >&5
 
21278
$as_echo "$ac_cv_lib_usb_usb_claim_interface" >&6; }
 
21279
if test "x$ac_cv_lib_usb_usb_claim_interface" = x""yes; then :
 
21280
  LIBUSB="-lusb"
 
21281
else
 
21282
  grub_emu_usb_excuse="need libusb library"
 
21283
fi
 
21284
 
 
21285
    
 
21286
fi
 
21287
if [ x"$grub_emu_usb_excuse" = x ]; then
 
21288
    # Check for headers.
 
21289
    for ac_header in usb.h
 
21290
do :
 
21291
  ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
 
21292
if test "x$ac_cv_header_usb_h" = x""yes; then :
 
21293
  cat >>confdefs.h <<_ACEOF
 
21294
@%:@define HAVE_USB_H 1
 
21295
_ACEOF
 
21296
 
 
21297
else
 
21298
  grub_emu_usb_excuse="need libusb headers"
 
21299
fi
 
21300
 
 
21301
done
 
21302
 
 
21303
fi
 
21304
if test x"$enable_grub_emu_usb" = xyes && test x"$grub_emu_usb_excuse" != x ; then
 
21305
  as_fn_error $? "USB support for grub-emu was explicitly requested but can't be compiled" "$LINENO" 5 
 
21306
fi
 
21307
if test x"$grub_emu_usb_excuse" = x ; then
 
21308
enable_grub_emu_usb=yes
 
21309
else
 
21310
enable_grub_emu_usb=no
 
21311
fi
 
21312
 
 
21313
if test x"$enable_grub_emu_sdl" = xno ; then
 
21314
  grub_emu_sdl_excuse="explicitely disabled"
 
21315
fi
 
21316
if [ x"$grub_emu_sdl_excuse" = x ]; then
 
21317
    # Check for libSDL libraries.
 
21318
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
 
21319
$as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
 
21320
if test "${ac_cv_lib_SDL_SDL_Init+set}" = set; then :
 
21321
  $as_echo_n "(cached) " >&6
 
21322
else
 
21323
  ac_check_lib_save_LIBS=$LIBS
 
21324
LIBS="-lSDL  $LIBS"
 
21325
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21326
/* end confdefs.h.  */
 
21327
 
 
21328
/* Override any GCC internal prototype to avoid an error.
 
21329
   Use char because int might match the return type of a GCC
 
21330
   builtin and then its argument prototype would still apply.  */
 
21331
#ifdef __cplusplus
 
21332
extern "C"
 
21333
#endif
 
21334
char SDL_Init ();
 
21335
int
 
21336
main (void)
 
21337
{
 
21338
return SDL_Init ();
 
21339
  ;
 
21340
  return 0;
 
21341
}
 
21342
_ACEOF
 
21343
if ac_fn_c_try_link "$LINENO"; then :
 
21344
  ac_cv_lib_SDL_SDL_Init=yes
 
21345
else
 
21346
  ac_cv_lib_SDL_SDL_Init=no
 
21347
fi
 
21348
rm -f core conftest.err conftest.$ac_objext \
 
21349
    conftest$ac_exeext conftest.$ac_ext
 
21350
LIBS=$ac_check_lib_save_LIBS
 
21351
fi
 
21352
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Init" >&5
 
21353
$as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
 
21354
if test "x$ac_cv_lib_SDL_SDL_Init" = x""yes; then :
 
21355
  LIBSDL="-lSDL"
 
21356
else
 
21357
  grub_emu_sdl_excuse="libSDL libraries are required to build \`grub-emu' with SDL support"
 
21358
fi
 
21359
 
 
21360
    
 
21361
fi
 
21362
 
 
21363
if [ x"$grub_emu_sdl_excuse" = x ]; then
 
21364
    # Check for headers.
 
21365
    for ac_header in SDL/SDL.h
 
21366
do :
 
21367
  ac_fn_c_check_header_mongrel "$LINENO" "SDL/SDL.h" "ac_cv_header_SDL_SDL_h" "$ac_includes_default"
 
21368
if test "x$ac_cv_header_SDL_SDL_h" = x""yes; then :
 
21369
  cat >>confdefs.h <<_ACEOF
 
21370
@%:@define HAVE_SDL_SDL_H 1
 
21371
_ACEOF
 
21372
 
 
21373
else
 
21374
  grub_emu_sdl_excuse="libSDL header file is required to build \`grub-emu' with SDL support"
 
21375
fi
 
21376
 
 
21377
done
 
21378
 
 
21379
fi
 
21380
 
 
21381
if test x"enable_grub_emu_sdl" = xyes && test x"$grub_emu_sdl_excuse" != x ; then
 
21382
  as_fn_error $? "SDL support for grub-emu was explicitely requested but can't be compiled" "$LINENO" 5 
 
21383
fi
 
21384
if test x"$grub_emu_sdl_excuse" = x ; then
 
21385
enable_grub_emu_sdl=yes
 
21386
else
 
21387
enable_grub_emu_sdl=no
 
21388
fi
 
21389
 
 
21390
if test x"$enable_grub_emu_pci" != xyes ; then
 
21391
   grub_emu_pci_excuse="not enabled"
 
21392
fi
 
21393
 
 
21394
if test x"$enable_grub_emu_usb" = xyes ; then
 
21395
   grub_emu_pci_excuse="conflicts with USB support"
 
21396
fi
 
21397
 
 
21398
if [ x"$grub_emu_pci_excuse" = x ]; then
 
21399
      # Check for libpci libraries.
 
21400
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pci_system_init in -lpciaccess" >&5
 
21401
$as_echo_n "checking for pci_system_init in -lpciaccess... " >&6; }
 
21402
if test "${ac_cv_lib_pciaccess_pci_system_init+set}" = set; then :
 
21403
  $as_echo_n "(cached) " >&6
 
21404
else
 
21405
  ac_check_lib_save_LIBS=$LIBS
 
21406
LIBS="-lpciaccess  $LIBS"
 
21407
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21408
/* end confdefs.h.  */
 
21409
 
 
21410
/* Override any GCC internal prototype to avoid an error.
 
21411
   Use char because int might match the return type of a GCC
 
21412
   builtin and then its argument prototype would still apply.  */
 
21413
#ifdef __cplusplus
 
21414
extern "C"
 
21415
#endif
 
21416
char pci_system_init ();
 
21417
int
 
21418
main (void)
 
21419
{
 
21420
return pci_system_init ();
 
21421
  ;
 
21422
  return 0;
 
21423
}
 
21424
_ACEOF
 
21425
if ac_fn_c_try_link "$LINENO"; then :
 
21426
  ac_cv_lib_pciaccess_pci_system_init=yes
 
21427
else
 
21428
  ac_cv_lib_pciaccess_pci_system_init=no
 
21429
fi
 
21430
rm -f core conftest.err conftest.$ac_objext \
 
21431
    conftest$ac_exeext conftest.$ac_ext
 
21432
LIBS=$ac_check_lib_save_LIBS
 
21433
fi
 
21434
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pciaccess_pci_system_init" >&5
 
21435
$as_echo "$ac_cv_lib_pciaccess_pci_system_init" >&6; }
 
21436
if test "x$ac_cv_lib_pciaccess_pci_system_init" = x""yes; then :
 
21437
  LIBPCIACCESS="-lpciaccess"
 
21438
else
 
21439
  grub_emu_pci_excuse="need libpciaccess library"
 
21440
fi
 
21441
 
 
21442
    
 
21443
fi
 
21444
if [ x"$grub_emu_pci_excuse" = x ]; then
 
21445
    # Check for headers.
 
21446
    for ac_header in pci/pci.h
 
21447
do :
 
21448
  ac_fn_c_check_header_mongrel "$LINENO" "pci/pci.h" "ac_cv_header_pci_pci_h" "$ac_includes_default"
 
21449
if test "x$ac_cv_header_pci_pci_h" = x""yes; then :
 
21450
  cat >>confdefs.h <<_ACEOF
 
21451
@%:@define HAVE_PCI_PCI_H 1
 
21452
_ACEOF
 
21453
 
 
21454
else
 
21455
  grub_emu_pci_excuse="need libpciaccess headers"
 
21456
fi
 
21457
 
 
21458
done
 
21459
 
 
21460
fi
 
21461
 
 
21462
if test x"$grub_emu_pci_excuse" = x ; then
 
21463
enable_grub_emu_pci=yes
 
21464
else
 
21465
 
 
21466
enable_grub_emu_pci=no
 
21467
fi
 
21468
 
 
21469
 
 
21470
 
 
21471
 
 
21472
fi
 
21473
 
 
21474
@%:@ Check whether --enable-grub-mkfont was given.
 
21475
if test "${enable_grub_mkfont+set}" = set; then :
 
21476
  enableval=$enable_grub_mkfont; 
 
21477
fi
 
21478
 
 
21479
if test x"$enable_grub_mkfont" = xno ; then
 
21480
  grub_mkfont_excuse="explicitly disabled"
 
21481
fi
 
21482
 
 
21483
if test x"$grub_mkfont_excuse" = x ; then
 
21484
  # Check for freetype libraries.
 
21485
  for ac_prog in freetype-config
 
21486
do
 
21487
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
21488
set dummy $ac_prog; ac_word=$2
 
21489
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
21490
$as_echo_n "checking for $ac_word... " >&6; }
 
21491
if test "${ac_cv_prog_FREETYPE+set}" = set; then :
 
21492
  $as_echo_n "(cached) " >&6
 
21493
else
 
21494
  if test -n "$FREETYPE"; then
 
21495
  ac_cv_prog_FREETYPE="$FREETYPE" # Let the user override the test.
 
21496
else
 
21497
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21498
for as_dir in $PATH
 
21499
do
 
21500
  IFS=$as_save_IFS
 
21501
  test -z "$as_dir" && as_dir=.
 
21502
    for ac_exec_ext in '' $ac_executable_extensions; do
 
21503
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
21504
    ac_cv_prog_FREETYPE="$ac_prog"
 
21505
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21506
    break 2
 
21507
  fi
 
21508
done
 
21509
  done
 
21510
IFS=$as_save_IFS
 
21511
 
 
21512
fi
 
21513
fi
 
21514
FREETYPE=$ac_cv_prog_FREETYPE
 
21515
if test -n "$FREETYPE"; then
 
21516
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE" >&5
 
21517
$as_echo "$FREETYPE" >&6; }
 
21518
else
 
21519
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
21520
$as_echo "no" >&6; }
 
21521
fi
 
21522
 
 
21523
 
 
21524
  test -n "$FREETYPE" && break
 
21525
done
 
21526
 
 
21527
  if test "x$FREETYPE" = x ; then
 
21528
    grub_mkfont_excuse="need freetype2 library"
 
21529
  fi
 
21530
fi
 
21531
 
 
21532
if test x"$grub_mkfont_excuse" = x ; then
 
21533
  # Check for freetype libraries.
 
21534
  freetype_cflags=`freetype-config --cflags`
 
21535
  freetype_libs=`freetype-config --libs`
 
21536
  SAVED_CPPFLAGS="$CPPFLAGS"
 
21537
  CPPFLAGS="$CPPFLAGS $freetype_cflags"
 
21538
  for ac_header in ft2build.h
 
21539
do :
 
21540
  ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
 
21541
if test "x$ac_cv_header_ft2build_h" = x""yes; then :
 
21542
  cat >>confdefs.h <<_ACEOF
 
21543
@%:@define HAVE_FT2BUILD_H 1
 
21544
_ACEOF
 
21545
 
 
21546
else
 
21547
  grub_mkfont_excuse="need freetype2 headers"
 
21548
fi
 
21549
 
 
21550
done
 
21551
 
 
21552
  CPPFLAGS="$SAVED_CPPFLAGS"
 
21553
fi
 
21554
 
 
21555
if test x"$enable_grub_mkfont" = xyes && test x"$grub_mkfont_excuse" != x ; then
 
21556
  as_fn_error $? "grub-mkfont was explicitly requested but can't be compiled" "$LINENO" 5 
 
21557
fi
 
21558
if test x"$grub_mkfont_excuse" = x ; then
 
21559
enable_grub_mkfont=yes
 
21560
else
 
21561
enable_grub_mkfont=no
 
21562
fi
 
21563
 
 
21564
 
 
21565
 
 
21566
 
 
21567
@%:@ Check whether --enable-device-mapper was given.
 
21568
if test "${enable_device_mapper+set}" = set; then :
 
21569
  enableval=$enable_device_mapper; 
 
21570
fi
 
21571
 
 
21572
if test x"$enable_device_mapper" = xno ; then
 
21573
  device_mapper_excuse="explicitly disabled"
 
21574
fi
 
21575
 
 
21576
if test x"$device_mapper_excuse" = x ; then
 
21577
  # Check for device-mapper header.
 
21578
  ac_fn_c_check_header_mongrel "$LINENO" "libdevmapper.h" "ac_cv_header_libdevmapper_h" "$ac_includes_default"
 
21579
if test "x$ac_cv_header_libdevmapper_h" = x""yes; then :
 
21580
  
 
21581
else
 
21582
  device_mapper_excuse="need libdevmapper header"
 
21583
fi
 
21584
 
 
21585
 
 
21586
fi
 
21587
 
 
21588
if test x"$device_mapper_excuse" = x ; then
 
21589
  # Check for device-mapper library.
 
21590
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_create in -ldevmapper" >&5
 
21591
$as_echo_n "checking for dm_task_create in -ldevmapper... " >&6; }
 
21592
if test "${ac_cv_lib_devmapper_dm_task_create+set}" = set; then :
 
21593
  $as_echo_n "(cached) " >&6
 
21594
else
 
21595
  ac_check_lib_save_LIBS=$LIBS
 
21596
LIBS="-ldevmapper  $LIBS"
 
21597
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21598
/* end confdefs.h.  */
 
21599
 
 
21600
/* Override any GCC internal prototype to avoid an error.
 
21601
   Use char because int might match the return type of a GCC
 
21602
   builtin and then its argument prototype would still apply.  */
 
21603
#ifdef __cplusplus
 
21604
extern "C"
 
21605
#endif
 
21606
char dm_task_create ();
 
21607
int
 
21608
main (void)
 
21609
{
 
21610
return dm_task_create ();
 
21611
  ;
 
21612
  return 0;
 
21613
}
 
21614
_ACEOF
 
21615
if ac_fn_c_try_link "$LINENO"; then :
 
21616
  ac_cv_lib_devmapper_dm_task_create=yes
 
21617
else
 
21618
  ac_cv_lib_devmapper_dm_task_create=no
 
21619
fi
 
21620
rm -f core conftest.err conftest.$ac_objext \
 
21621
    conftest$ac_exeext conftest.$ac_ext
 
21622
LIBS=$ac_check_lib_save_LIBS
 
21623
fi
 
21624
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_create" >&5
 
21625
$as_echo "$ac_cv_lib_devmapper_dm_task_create" >&6; }
 
21626
if test "x$ac_cv_lib_devmapper_dm_task_create" = x""yes; then :
 
21627
  cat >>confdefs.h <<_ACEOF
 
21628
@%:@define HAVE_LIBDEVMAPPER 1
 
21629
_ACEOF
 
21630
 
 
21631
  LIBS="-ldevmapper $LIBS"
 
21632
 
 
21633
else
 
21634
  device_mapper_excuse="need devmapper library"
 
21635
fi
 
21636
 
 
21637
fi
 
21638
 
 
21639
if test x"$device_mapper_excuse" = x ; then
 
21640
  # Check for device-mapper library.
 
21641
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_log_with_errno_init in -ldevmapper" >&5
 
21642
$as_echo_n "checking for dm_log_with_errno_init in -ldevmapper... " >&6; }
 
21643
if test "${ac_cv_lib_devmapper_dm_log_with_errno_init+set}" = set; then :
 
21644
  $as_echo_n "(cached) " >&6
 
21645
else
 
21646
  ac_check_lib_save_LIBS=$LIBS
 
21647
LIBS="-ldevmapper  $LIBS"
 
21648
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21649
/* end confdefs.h.  */
 
21650
 
 
21651
/* Override any GCC internal prototype to avoid an error.
 
21652
   Use char because int might match the return type of a GCC
 
21653
   builtin and then its argument prototype would still apply.  */
 
21654
#ifdef __cplusplus
 
21655
extern "C"
 
21656
#endif
 
21657
char dm_log_with_errno_init ();
 
21658
int
 
21659
main (void)
 
21660
{
 
21661
return dm_log_with_errno_init ();
 
21662
  ;
 
21663
  return 0;
 
21664
}
 
21665
_ACEOF
 
21666
if ac_fn_c_try_link "$LINENO"; then :
 
21667
  ac_cv_lib_devmapper_dm_log_with_errno_init=yes
 
21668
else
 
21669
  ac_cv_lib_devmapper_dm_log_with_errno_init=no
 
21670
fi
 
21671
rm -f core conftest.err conftest.$ac_objext \
 
21672
    conftest$ac_exeext conftest.$ac_ext
 
21673
LIBS=$ac_check_lib_save_LIBS
 
21674
fi
 
21675
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_log_with_errno_init" >&5
 
21676
$as_echo "$ac_cv_lib_devmapper_dm_log_with_errno_init" >&6; }
 
21677
if test "x$ac_cv_lib_devmapper_dm_log_with_errno_init" = x""yes; then :
 
21678
  cat >>confdefs.h <<_ACEOF
 
21679
@%:@define HAVE_LIBDEVMAPPER 1
 
21680
_ACEOF
 
21681
 
 
21682
  LIBS="-ldevmapper $LIBS"
 
21683
 
 
21684
else
 
21685
  device_mapper_excuse="need devmapper library"
 
21686
fi
 
21687
 
 
21688
fi
 
21689
 
 
21690
if test x"$device_mapper_excuse" = x ; then
 
21691
   LIBDEVMAPPER="-ldevmapper";
 
21692
   
 
21693
$as_echo "@%:@define HAVE_DEVICE_MAPPER 1" >>confdefs.h
 
21694
 
 
21695
fi
 
21696
 
 
21697
 
 
21698
 
 
21699
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
 
21700
$as_echo_n "checking for lzma_code in -llzma... " >&6; }
 
21701
if test "${ac_cv_lib_lzma_lzma_code+set}" = set; then :
 
21702
  $as_echo_n "(cached) " >&6
 
21703
else
 
21704
  ac_check_lib_save_LIBS=$LIBS
 
21705
LIBS="-llzma  $LIBS"
 
21706
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21707
/* end confdefs.h.  */
 
21708
 
 
21709
/* Override any GCC internal prototype to avoid an error.
 
21710
   Use char because int might match the return type of a GCC
 
21711
   builtin and then its argument prototype would still apply.  */
 
21712
#ifdef __cplusplus
 
21713
extern "C"
 
21714
#endif
 
21715
char lzma_code ();
 
21716
int
 
21717
main (void)
 
21718
{
 
21719
return lzma_code ();
 
21720
  ;
 
21721
  return 0;
 
21722
}
 
21723
_ACEOF
 
21724
if ac_fn_c_try_link "$LINENO"; then :
 
21725
  ac_cv_lib_lzma_lzma_code=yes
 
21726
else
 
21727
  ac_cv_lib_lzma_lzma_code=no
 
21728
fi
 
21729
rm -f core conftest.err conftest.$ac_objext \
 
21730
    conftest$ac_exeext conftest.$ac_ext
 
21731
LIBS=$ac_check_lib_save_LIBS
 
21732
fi
 
21733
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
 
21734
$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
 
21735
if test "x$ac_cv_lib_lzma_lzma_code" = x""yes; then :
 
21736
  LIBLZMA="-llzma"
 
21737
              
 
21738
$as_echo "@%:@define HAVE_LIBLZMA 1" >>confdefs.h
 
21739
 
 
21740
fi
 
21741
 
 
21742
 
 
21743
 
 
21744
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzfs_init in -lzfs" >&5
 
21745
$as_echo_n "checking for libzfs_init in -lzfs... " >&6; }
 
21746
if test "${ac_cv_lib_zfs_libzfs_init+set}" = set; then :
 
21747
  $as_echo_n "(cached) " >&6
 
21748
else
 
21749
  ac_check_lib_save_LIBS=$LIBS
 
21750
LIBS="-lzfs  $LIBS"
 
21751
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21752
/* end confdefs.h.  */
 
21753
 
 
21754
/* Override any GCC internal prototype to avoid an error.
 
21755
   Use char because int might match the return type of a GCC
 
21756
   builtin and then its argument prototype would still apply.  */
 
21757
#ifdef __cplusplus
 
21758
extern "C"
 
21759
#endif
 
21760
char libzfs_init ();
 
21761
int
 
21762
main (void)
 
21763
{
 
21764
return libzfs_init ();
 
21765
  ;
 
21766
  return 0;
 
21767
}
 
21768
_ACEOF
 
21769
if ac_fn_c_try_link "$LINENO"; then :
 
21770
  ac_cv_lib_zfs_libzfs_init=yes
 
21771
else
 
21772
  ac_cv_lib_zfs_libzfs_init=no
 
21773
fi
 
21774
rm -f core conftest.err conftest.$ac_objext \
 
21775
    conftest$ac_exeext conftest.$ac_ext
 
21776
LIBS=$ac_check_lib_save_LIBS
 
21777
fi
 
21778
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zfs_libzfs_init" >&5
 
21779
$as_echo "$ac_cv_lib_zfs_libzfs_init" >&6; }
 
21780
if test "x$ac_cv_lib_zfs_libzfs_init" = x""yes; then :
 
21781
  LIBZFS="-lzfs"
 
21782
              
 
21783
$as_echo "@%:@define HAVE_LIBZFS 1" >>confdefs.h
 
21784
 
 
21785
fi
 
21786
 
 
21787
 
 
21788
 
 
21789
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_print in -lnvpair" >&5
 
21790
$as_echo_n "checking for nvlist_print in -lnvpair... " >&6; }
 
21791
if test "${ac_cv_lib_nvpair_nvlist_print+set}" = set; then :
 
21792
  $as_echo_n "(cached) " >&6
 
21793
else
 
21794
  ac_check_lib_save_LIBS=$LIBS
 
21795
LIBS="-lnvpair  $LIBS"
 
21796
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21797
/* end confdefs.h.  */
 
21798
 
 
21799
/* Override any GCC internal prototype to avoid an error.
 
21800
   Use char because int might match the return type of a GCC
 
21801
   builtin and then its argument prototype would still apply.  */
 
21802
#ifdef __cplusplus
 
21803
extern "C"
 
21804
#endif
 
21805
char nvlist_print ();
 
21806
int
 
21807
main (void)
 
21808
{
 
21809
return nvlist_print ();
 
21810
  ;
 
21811
  return 0;
 
21812
}
 
21813
_ACEOF
 
21814
if ac_fn_c_try_link "$LINENO"; then :
 
21815
  ac_cv_lib_nvpair_nvlist_print=yes
 
21816
else
 
21817
  ac_cv_lib_nvpair_nvlist_print=no
 
21818
fi
 
21819
rm -f core conftest.err conftest.$ac_objext \
 
21820
    conftest$ac_exeext conftest.$ac_ext
 
21821
LIBS=$ac_check_lib_save_LIBS
 
21822
fi
 
21823
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_print" >&5
 
21824
$as_echo "$ac_cv_lib_nvpair_nvlist_print" >&6; }
 
21825
if test "x$ac_cv_lib_nvpair_nvlist_print" = x""yes; then :
 
21826
  LIBNVPAIR="-lnvpair"
 
21827
              
 
21828
$as_echo "@%:@define HAVE_LIBNVPAIR 1" >>confdefs.h
 
21829
 
 
21830
fi
 
21831
 
 
21832
 
 
21833
 
 
21834
LIBS=""
 
21835
 
 
21836
pkglibrootdir='$(libdir)'/`echo $PACKAGE | sed "$program_transform_name"`
 
21837
 
 
21838
 
 
21839
 
 
21840
if test x$target_cpu = xi386 -a x$platform = xqemu; then :
 
21841
  GRUB_BOOT_MACHINE_LINK_ADDR=0xffe00
 
21842
 
 
21843
fi
 
21844
if test x$TARGET_APPLE_CC = x1; then :
 
21845
  USE_APPLE_CC_FIXES=yes
 
21846
 
 
21847
fi
 
21848
 
 
21849
 
 
21850
 
 
21851
 
 
21852
 
 
21853
 
 
21854
 
 
21855
 
 
21856
 
 
21857
 
 
21858
 
 
21859
#
 
21860
# Automake conditionals
 
21861
#
 
21862
 
 
21863
 if test x$platform = xemu; then
 
21864
  COND_emu_TRUE=
 
21865
  COND_emu_FALSE='#'
 
21866
else
 
21867
  COND_emu_TRUE='#'
 
21868
  COND_emu_FALSE=
 
21869
fi
 
21870
 
 
21871
 if test x$target_cpu = xi386 -a x$platform = xpc; then
 
21872
  COND_i386_pc_TRUE=
 
21873
  COND_i386_pc_FALSE='#'
 
21874
else
 
21875
  COND_i386_pc_TRUE='#'
 
21876
  COND_i386_pc_FALSE=
 
21877
fi
 
21878
 
 
21879
 if test x$target_cpu = xi386 -a x$platform = xefi; then
 
21880
  COND_i386_efi_TRUE=
 
21881
  COND_i386_efi_FALSE='#'
 
21882
else
 
21883
  COND_i386_efi_TRUE='#'
 
21884
  COND_i386_efi_FALSE=
 
21885
fi
 
21886
 
 
21887
 if test x$target_cpu = xi386 -a x$platform = xqemu; then
 
21888
  COND_i386_qemu_TRUE=
 
21889
  COND_i386_qemu_FALSE='#'
 
21890
else
 
21891
  COND_i386_qemu_TRUE='#'
 
21892
  COND_i386_qemu_FALSE=
 
21893
fi
 
21894
 
 
21895
 if test x$target_cpu = xi386 -a x$platform = xieee1275; then
 
21896
  COND_i386_ieee1275_TRUE=
 
21897
  COND_i386_ieee1275_FALSE='#'
 
21898
else
 
21899
  COND_i386_ieee1275_TRUE='#'
 
21900
  COND_i386_ieee1275_FALSE=
 
21901
fi
 
21902
 
 
21903
 if test x$target_cpu = xi386 -a x$platform = xcoreboot; then
 
21904
  COND_i386_coreboot_TRUE=
 
21905
  COND_i386_coreboot_FALSE='#'
 
21906
else
 
21907
  COND_i386_coreboot_TRUE='#'
 
21908
  COND_i386_coreboot_FALSE=
 
21909
fi
 
21910
 
 
21911
 if test x$target_cpu = xi386 -a x$platform = xmultiboot; then
 
21912
  COND_i386_multiboot_TRUE=
 
21913
  COND_i386_multiboot_FALSE='#'
 
21914
else
 
21915
  COND_i386_multiboot_TRUE='#'
 
21916
  COND_i386_multiboot_FALSE=
 
21917
fi
 
21918
 
 
21919
 if test x$target_cpu = xx86_64 -a x$platform = xefi; then
 
21920
  COND_x86_64_efi_TRUE=
 
21921
  COND_x86_64_efi_FALSE='#'
 
21922
else
 
21923
  COND_x86_64_efi_TRUE='#'
 
21924
  COND_x86_64_efi_FALSE=
 
21925
fi
 
21926
 
 
21927
 if test x$target_cpu = xmips -a x$platform = xyeeloong; then
 
21928
  COND_mips_yeeloong_TRUE=
 
21929
  COND_mips_yeeloong_FALSE='#'
 
21930
else
 
21931
  COND_mips_yeeloong_TRUE='#'
 
21932
  COND_mips_yeeloong_FALSE=
 
21933
fi
 
21934
 
 
21935
 if test x$target_cpu = xmips -a x$platform = xqemu_mips; then
 
21936
  COND_mips_qemu_mips_TRUE=
 
21937
  COND_mips_qemu_mips_FALSE='#'
 
21938
else
 
21939
  COND_mips_qemu_mips_TRUE='#'
 
21940
  COND_mips_qemu_mips_FALSE=
 
21941
fi
 
21942
 
 
21943
 if test x$target_cpu = xsparc64 -a x$platform = xieee1275; then
 
21944
  COND_sparc64_ieee1275_TRUE=
 
21945
  COND_sparc64_ieee1275_FALSE='#'
 
21946
else
 
21947
  COND_sparc64_ieee1275_TRUE='#'
 
21948
  COND_sparc64_ieee1275_FALSE=
 
21949
fi
 
21950
 
 
21951
 if test x$target_cpu = xpowerpc -a x$platform = xieee1275; then
 
21952
  COND_powerpc_ieee1275_TRUE=
 
21953
  COND_powerpc_ieee1275_FALSE='#'
 
21954
else
 
21955
  COND_powerpc_ieee1275_TRUE='#'
 
21956
  COND_powerpc_ieee1275_FALSE=
 
21957
fi
 
21958
 
 
21959
 if test x$target_cpu = xmips; then
 
21960
  COND_mips_TRUE=
 
21961
  COND_mips_FALSE='#'
 
21962
else
 
21963
  COND_mips_TRUE='#'
 
21964
  COND_mips_FALSE=
 
21965
fi
 
21966
 
 
21967
 
 
21968
 if test x$host_kernel = xhurd; then
 
21969
  COND_HOST_HURD_TRUE=
 
21970
  COND_HOST_HURD_FALSE='#'
 
21971
else
 
21972
  COND_HOST_HURD_TRUE='#'
 
21973
  COND_HOST_HURD_FALSE=
 
21974
fi
 
21975
 
 
21976
 if test x$host_kernel = xlinux; then
 
21977
  COND_HOST_LINUX_TRUE=
 
21978
  COND_HOST_LINUX_FALSE='#'
 
21979
else
 
21980
  COND_HOST_LINUX_TRUE='#'
 
21981
  COND_HOST_LINUX_FALSE=
 
21982
fi
 
21983
 
 
21984
 if test x$host_kernel = xnetbsd; then
 
21985
  COND_HOST_NETBSD_TRUE=
 
21986
  COND_HOST_NETBSD_FALSE='#'
 
21987
else
 
21988
  COND_HOST_NETBSD_TRUE='#'
 
21989
  COND_HOST_NETBSD_FALSE=
 
21990
fi
 
21991
 
 
21992
 if test x$host_kernel = xwindows; then
 
21993
  COND_HOST_WINDOWS_TRUE=
 
21994
  COND_HOST_WINDOWS_FALSE='#'
 
21995
else
 
21996
  COND_HOST_WINDOWS_TRUE='#'
 
21997
  COND_HOST_WINDOWS_FALSE=
 
21998
fi
 
21999
 
 
22000
 if test x$host_kernel = xkfreebsd; then
 
22001
  COND_HOST_KFREEBSD_TRUE=
 
22002
  COND_HOST_KFREEBSD_FALSE='#'
 
22003
else
 
22004
  COND_HOST_KFREEBSD_TRUE='#'
 
22005
  COND_HOST_KFREEBSD_FALSE=
 
22006
fi
 
22007
 
 
22008
 
 
22009
 if test x$cross_compiling = xno -a x$HELP2MAN != x; then
 
22010
  COND_MAN_PAGES_TRUE=
 
22011
  COND_MAN_PAGES_FALSE='#'
 
22012
else
 
22013
  COND_MAN_PAGES_TRUE='#'
 
22014
  COND_MAN_PAGES_FALSE=
 
22015
fi
 
22016
 
 
22017
 if test x$enable_grub_emu_usb = xyes; then
 
22018
  COND_GRUB_EMU_USB_TRUE=
 
22019
  COND_GRUB_EMU_USB_FALSE='#'
 
22020
else
 
22021
  COND_GRUB_EMU_USB_TRUE='#'
 
22022
  COND_GRUB_EMU_USB_FALSE=
 
22023
fi
 
22024
 
 
22025
 if test x$enable_grub_emu_sdl = xyes; then
 
22026
  COND_GRUB_EMU_SDL_TRUE=
 
22027
  COND_GRUB_EMU_SDL_FALSE='#'
 
22028
else
 
22029
  COND_GRUB_EMU_SDL_TRUE='#'
 
22030
  COND_GRUB_EMU_SDL_FALSE=
 
22031
fi
 
22032
 
 
22033
 if test x$enable_grub_emu_pci = xyes; then
 
22034
  COND_GRUB_EMU_PCI_TRUE=
 
22035
  COND_GRUB_EMU_PCI_FALSE='#'
 
22036
else
 
22037
  COND_GRUB_EMU_PCI_TRUE='#'
 
22038
  COND_GRUB_EMU_PCI_FALSE=
 
22039
fi
 
22040
 
 
22041
 if test x$enable_grub_mkfont = xyes; then
 
22042
  COND_GRUB_MKFONT_TRUE=
 
22043
  COND_GRUB_MKFONT_FALSE='#'
 
22044
else
 
22045
  COND_GRUB_MKFONT_TRUE='#'
 
22046
  COND_GRUB_MKFONT_FALSE=
 
22047
fi
 
22048
 
 
22049
 if test x$FONT_SOURCE != x; then
 
22050
  COND_HAVE_FONT_SOURCE_TRUE=
 
22051
  COND_HAVE_FONT_SOURCE_FALSE='#'
 
22052
else
 
22053
  COND_HAVE_FONT_SOURCE_TRUE='#'
 
22054
  COND_HAVE_FONT_SOURCE_FALSE=
 
22055
fi
 
22056
 
 
22057
 if test x$TARGET_OBJ2ELF != x; then
 
22058
  COND_GRUB_PE2ELF_TRUE=
 
22059
  COND_GRUB_PE2ELF_FALSE='#'
 
22060
else
 
22061
  COND_GRUB_PE2ELF_TRUE='#'
 
22062
  COND_GRUB_PE2ELF_FALSE=
 
22063
fi
 
22064
 
 
22065
 if test x$TARGET_APPLE_CC = x1; then
 
22066
  COND_APPLE_CC_TRUE=
 
22067
  COND_APPLE_CC_FALSE='#'
 
22068
else
 
22069
  COND_APPLE_CC_TRUE='#'
 
22070
  COND_APPLE_CC_FALSE=
 
22071
fi
 
22072
 
 
22073
 if test x$enable_efiemu = xyes; then
 
22074
  COND_ENABLE_EFIEMU_TRUE=
 
22075
  COND_ENABLE_EFIEMU_FALSE='#'
 
22076
else
 
22077
  COND_ENABLE_EFIEMU_TRUE='#'
 
22078
  COND_ENABLE_EFIEMU_FALSE=
 
22079
fi
 
22080
 
 
22081
 
 
22082
 if test x$HAVE_ASM_USCORE = x1; then
 
22083
  COND_HAVE_ASM_USCORE_TRUE=
 
22084
  COND_HAVE_ASM_USCORE_FALSE='#'
 
22085
else
 
22086
  COND_HAVE_ASM_USCORE_TRUE='#'
 
22087
  COND_HAVE_ASM_USCORE_FALSE=
 
22088
fi
 
22089
 
 
22090
 if test x$host_os = xcygwin; then
 
22091
  COND_CYGWIN_TRUE=
 
22092
  COND_CYGWIN_FALSE='#'
 
22093
else
 
22094
  COND_CYGWIN_TRUE='#'
 
22095
  COND_CYGWIN_FALSE=
 
22096
fi
 
22097
 
 
22098
 
 
22099
# Output files.
 
22100
 
 
22101
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln can handle directories properly" >&5
 
22102
$as_echo_n "checking whether ln can handle directories properly... " >&6; }
 
22103
mkdir testdir 2>/dev/null
 
22104
case $srcdir in
 
22105
[\\/$]* | ?:[\\/]* ) reldir=$srcdir/include/grub/util ;;
 
22106
    *) reldir=../$srcdir/include/grub/util ;;
 
22107
esac
 
22108
if ln -s $reldir testdir/util 2>/dev/null ; then
 
22109
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
22110
$as_echo "yes" >&6; }
 
22111
  link_dir=yes
 
22112
else
 
22113
  link_dir=no
 
22114
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
22115
$as_echo "no" >&6; }
 
22116
fi
 
22117
rm -rf testdir
 
22118
 
 
22119
if test x"$link_dir" = xyes ; then
 
22120
  ac_config_links="$ac_config_links include/grub/cpu:include/grub/$target_cpu"
 
22121
 
 
22122
  if test "$platform" != emu ; then
 
22123
    ac_config_links="$ac_config_links include/grub/machine:include/grub/$target_cpu/$platform"
 
22124
 
 
22125
  fi
 
22126
else
 
22127
  mkdir -p include/grub 2>/dev/null
 
22128
  rm -rf include/grub/cpu
 
22129
  cp -rp $srcdir/include/grub/$target_cpu include/grub/cpu 2>/dev/null
 
22130
  if test "$platform" != emu ; then
 
22131
    rm -rf include/grub/machine
 
22132
    cp -rp $srcdir/include/grub/$target_cpu/$platform include/grub/machine 2>/dev/null
 
22133
  fi
 
22134
fi
 
22135
 
 
22136
ac_config_files="$ac_config_files Makefile"
 
22137
 
 
22138
ac_config_files="$ac_config_files grub-core/Makefile"
 
22139
 
 
22140
ac_config_files="$ac_config_files grub-core/gnulib/Makefile"
 
22141
 
 
22142
ac_config_files="$ac_config_files po/Makefile.in"
 
22143
 
 
22144
ac_config_files="$ac_config_files docs/Makefile"
 
22145
 
 
22146
ac_config_files="$ac_config_files util/bash-completion.d/Makefile"
 
22147
 
 
22148
ac_config_files="$ac_config_files stamp-h"
 
22149
 
 
22150
ac_config_files="$ac_config_files config.h"
 
22151
 
 
22152
 
 
22153
cat >confcache <<\_ACEOF
 
22154
# This file is a shell script that caches the results of configure
 
22155
# tests run on this system so they can be shared between configure
 
22156
# scripts and configure runs, see configure's option --config-cache.
 
22157
# It is not useful on other systems.  If it contains results you don't
 
22158
# want to keep, you may remove or edit it.
 
22159
#
 
22160
# config.status only pays attention to the cache file if you give it
 
22161
# the --recheck option to rerun configure.
 
22162
#
 
22163
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
22164
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
22165
# following values.
 
22166
 
 
22167
_ACEOF
 
22168
 
 
22169
# The following way of writing the cache mishandles newlines in values,
 
22170
# but we know of no workaround that is simple, portable, and efficient.
 
22171
# So, we kill variables containing newlines.
 
22172
# Ultrix sh set writes to stderr and can't be redirected directly,
 
22173
# and sets the high bit in the cache file unless we assign to the vars.
 
22174
(
 
22175
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
22176
    eval ac_val=\$$ac_var
 
22177
    case $ac_val in #(
 
22178
    *${as_nl}*)
 
22179
      case $ac_var in #(
 
22180
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
22181
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
22182
      esac
 
22183
      case $ac_var in #(
 
22184
      _ | IFS | as_nl) ;; #(
 
22185
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
22186
      *) { eval $ac_var=; unset $ac_var;} ;;
 
22187
      esac ;;
 
22188
    esac
 
22189
  done
 
22190
 
 
22191
  (set) 2>&1 |
 
22192
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
22193
    *${as_nl}ac_space=\ *)
 
22194
      # `set' does not quote correctly, so add quotes: double-quote
 
22195
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
22196
      sed -n \
 
22197
        "s/'/'\\\\''/g;
 
22198
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
22199
      ;; #(
 
22200
    *)
 
22201
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
22202
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
22203
      ;;
 
22204
    esac |
 
22205
    sort
 
22206
) |
 
22207
  sed '
 
22208
     /^ac_cv_env_/b end
 
22209
     t clear
 
22210
     :clear
 
22211
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
22212
     t end
 
22213
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
22214
     :end' >>confcache
 
22215
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
22216
  if test -w "$cache_file"; then
 
22217
    test "x$cache_file" != "x/dev/null" &&
 
22218
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
22219
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
22220
    cat confcache >$cache_file
 
22221
  else
 
22222
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
22223
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
22224
  fi
 
22225
fi
 
22226
rm -f confcache
 
22227
 
 
22228
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
22229
# Let make expand exec_prefix.
 
22230
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
22231
 
 
22232
DEFS=-DHAVE_CONFIG_H
 
22233
 
 
22234
ac_libobjs=
 
22235
ac_ltlibobjs=
 
22236
U=
 
22237
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
 
22238
  # 1. Remove the extension, and $U if already installed.
 
22239
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
22240
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
22241
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
22242
  #    will be set to the directory where LIBOBJS objects are built.
 
22243
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
22244
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
22245
done
 
22246
LIB@&t@OBJS=$ac_libobjs
 
22247
 
 
22248
LTLIBOBJS=$ac_ltlibobjs
 
22249
 
 
22250
 
 
22251
 if test -n "$EXEEXT"; then
 
22252
  am__EXEEXT_TRUE=
 
22253
  am__EXEEXT_FALSE='#'
 
22254
else
 
22255
  am__EXEEXT_TRUE='#'
 
22256
  am__EXEEXT_FALSE=
 
22257
fi
 
22258
 
 
22259
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
22260
  as_fn_error $? "conditional \"AMDEP\" was never defined.
 
22261
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22262
fi
 
22263
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
22264
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
22265
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22266
fi
 
22267
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
22268
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
22269
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22270
fi
 
22271
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
 
22272
  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
 
22273
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22274
fi
 
22275
 
 
22276
if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
 
22277
  as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
 
22278
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22279
fi
 
22280
 
 
22281
    gl_libobjs=
 
22282
    gl_ltlibobjs=
 
22283
    if test -n "$gl_LIBOBJS"; then
 
22284
      # Remove the extension.
 
22285
      sed_drop_objext='s/\.o$//;s/\.obj$//'
 
22286
      for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
 
22287
        gl_libobjs="$gl_libobjs $i.$ac_objext"
 
22288
        gl_ltlibobjs="$gl_ltlibobjs $i.lo"
 
22289
      done
 
22290
    fi
 
22291
    gl_LIBOBJS=$gl_libobjs
 
22292
 
 
22293
    gl_LTLIBOBJS=$gl_ltlibobjs
 
22294
 
 
22295
  
 
22296
 
 
22297
    gltests_libobjs=
 
22298
    gltests_ltlibobjs=
 
22299
    if test -n "$gltests_LIBOBJS"; then
 
22300
      # Remove the extension.
 
22301
      sed_drop_objext='s/\.o$//;s/\.obj$//'
 
22302
      for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
 
22303
        gltests_libobjs="$gltests_libobjs $i.$ac_objext"
 
22304
        gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
 
22305
      done
 
22306
    fi
 
22307
    gltests_LIBOBJS=$gltests_libobjs
 
22308
 
 
22309
    gltests_LTLIBOBJS=$gltests_ltlibobjs
 
22310
 
 
22311
  
 
22312
if test -z "${COND_emu_TRUE}" && test -z "${COND_emu_FALSE}"; then
 
22313
  as_fn_error $? "conditional \"COND_emu\" was never defined.
 
22314
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22315
fi
 
22316
if test -z "${COND_i386_pc_TRUE}" && test -z "${COND_i386_pc_FALSE}"; then
 
22317
  as_fn_error $? "conditional \"COND_i386_pc\" was never defined.
 
22318
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22319
fi
 
22320
if test -z "${COND_i386_efi_TRUE}" && test -z "${COND_i386_efi_FALSE}"; then
 
22321
  as_fn_error $? "conditional \"COND_i386_efi\" was never defined.
 
22322
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22323
fi
 
22324
if test -z "${COND_i386_qemu_TRUE}" && test -z "${COND_i386_qemu_FALSE}"; then
 
22325
  as_fn_error $? "conditional \"COND_i386_qemu\" was never defined.
 
22326
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22327
fi
 
22328
if test -z "${COND_i386_ieee1275_TRUE}" && test -z "${COND_i386_ieee1275_FALSE}"; then
 
22329
  as_fn_error $? "conditional \"COND_i386_ieee1275\" was never defined.
 
22330
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22331
fi
 
22332
if test -z "${COND_i386_coreboot_TRUE}" && test -z "${COND_i386_coreboot_FALSE}"; then
 
22333
  as_fn_error $? "conditional \"COND_i386_coreboot\" was never defined.
 
22334
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22335
fi
 
22336
if test -z "${COND_i386_multiboot_TRUE}" && test -z "${COND_i386_multiboot_FALSE}"; then
 
22337
  as_fn_error $? "conditional \"COND_i386_multiboot\" was never defined.
 
22338
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22339
fi
 
22340
if test -z "${COND_x86_64_efi_TRUE}" && test -z "${COND_x86_64_efi_FALSE}"; then
 
22341
  as_fn_error $? "conditional \"COND_x86_64_efi\" was never defined.
 
22342
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22343
fi
 
22344
if test -z "${COND_mips_yeeloong_TRUE}" && test -z "${COND_mips_yeeloong_FALSE}"; then
 
22345
  as_fn_error $? "conditional \"COND_mips_yeeloong\" was never defined.
 
22346
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22347
fi
 
22348
if test -z "${COND_mips_qemu_mips_TRUE}" && test -z "${COND_mips_qemu_mips_FALSE}"; then
 
22349
  as_fn_error $? "conditional \"COND_mips_qemu_mips\" was never defined.
 
22350
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22351
fi
 
22352
if test -z "${COND_sparc64_ieee1275_TRUE}" && test -z "${COND_sparc64_ieee1275_FALSE}"; then
 
22353
  as_fn_error $? "conditional \"COND_sparc64_ieee1275\" was never defined.
 
22354
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22355
fi
 
22356
if test -z "${COND_powerpc_ieee1275_TRUE}" && test -z "${COND_powerpc_ieee1275_FALSE}"; then
 
22357
  as_fn_error $? "conditional \"COND_powerpc_ieee1275\" was never defined.
 
22358
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22359
fi
 
22360
if test -z "${COND_mips_TRUE}" && test -z "${COND_mips_FALSE}"; then
 
22361
  as_fn_error $? "conditional \"COND_mips\" was never defined.
 
22362
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22363
fi
 
22364
if test -z "${COND_HOST_HURD_TRUE}" && test -z "${COND_HOST_HURD_FALSE}"; then
 
22365
  as_fn_error $? "conditional \"COND_HOST_HURD\" was never defined.
 
22366
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22367
fi
 
22368
if test -z "${COND_HOST_LINUX_TRUE}" && test -z "${COND_HOST_LINUX_FALSE}"; then
 
22369
  as_fn_error $? "conditional \"COND_HOST_LINUX\" was never defined.
 
22370
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22371
fi
 
22372
if test -z "${COND_HOST_NETBSD_TRUE}" && test -z "${COND_HOST_NETBSD_FALSE}"; then
 
22373
  as_fn_error $? "conditional \"COND_HOST_NETBSD\" was never defined.
 
22374
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22375
fi
 
22376
if test -z "${COND_HOST_WINDOWS_TRUE}" && test -z "${COND_HOST_WINDOWS_FALSE}"; then
 
22377
  as_fn_error $? "conditional \"COND_HOST_WINDOWS\" was never defined.
 
22378
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22379
fi
 
22380
if test -z "${COND_HOST_KFREEBSD_TRUE}" && test -z "${COND_HOST_KFREEBSD_FALSE}"; then
 
22381
  as_fn_error $? "conditional \"COND_HOST_KFREEBSD\" was never defined.
 
22382
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22383
fi
 
22384
if test -z "${COND_MAN_PAGES_TRUE}" && test -z "${COND_MAN_PAGES_FALSE}"; then
 
22385
  as_fn_error $? "conditional \"COND_MAN_PAGES\" was never defined.
 
22386
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22387
fi
 
22388
if test -z "${COND_GRUB_EMU_USB_TRUE}" && test -z "${COND_GRUB_EMU_USB_FALSE}"; then
 
22389
  as_fn_error $? "conditional \"COND_GRUB_EMU_USB\" was never defined.
 
22390
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22391
fi
 
22392
if test -z "${COND_GRUB_EMU_SDL_TRUE}" && test -z "${COND_GRUB_EMU_SDL_FALSE}"; then
 
22393
  as_fn_error $? "conditional \"COND_GRUB_EMU_SDL\" was never defined.
 
22394
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22395
fi
 
22396
if test -z "${COND_GRUB_EMU_PCI_TRUE}" && test -z "${COND_GRUB_EMU_PCI_FALSE}"; then
 
22397
  as_fn_error $? "conditional \"COND_GRUB_EMU_PCI\" was never defined.
 
22398
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22399
fi
 
22400
if test -z "${COND_GRUB_MKFONT_TRUE}" && test -z "${COND_GRUB_MKFONT_FALSE}"; then
 
22401
  as_fn_error $? "conditional \"COND_GRUB_MKFONT\" was never defined.
 
22402
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22403
fi
 
22404
if test -z "${COND_HAVE_FONT_SOURCE_TRUE}" && test -z "${COND_HAVE_FONT_SOURCE_FALSE}"; then
 
22405
  as_fn_error $? "conditional \"COND_HAVE_FONT_SOURCE\" was never defined.
 
22406
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22407
fi
 
22408
if test -z "${COND_GRUB_PE2ELF_TRUE}" && test -z "${COND_GRUB_PE2ELF_FALSE}"; then
 
22409
  as_fn_error $? "conditional \"COND_GRUB_PE2ELF\" was never defined.
 
22410
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22411
fi
 
22412
if test -z "${COND_APPLE_CC_TRUE}" && test -z "${COND_APPLE_CC_FALSE}"; then
 
22413
  as_fn_error $? "conditional \"COND_APPLE_CC\" was never defined.
 
22414
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22415
fi
 
22416
if test -z "${COND_ENABLE_EFIEMU_TRUE}" && test -z "${COND_ENABLE_EFIEMU_FALSE}"; then
 
22417
  as_fn_error $? "conditional \"COND_ENABLE_EFIEMU\" was never defined.
 
22418
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22419
fi
 
22420
if test -z "${COND_HAVE_ASM_USCORE_TRUE}" && test -z "${COND_HAVE_ASM_USCORE_FALSE}"; then
 
22421
  as_fn_error $? "conditional \"COND_HAVE_ASM_USCORE\" was never defined.
 
22422
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22423
fi
 
22424
if test -z "${COND_CYGWIN_TRUE}" && test -z "${COND_CYGWIN_FALSE}"; then
 
22425
  as_fn_error $? "conditional \"COND_CYGWIN\" was never defined.
 
22426
Usually this means the macro was only invoked conditionally." "$LINENO" 5 
 
22427
fi
 
22428
 
 
22429
: ${CONFIG_STATUS=./config.status}
 
22430
ac_write_fail=0
 
22431
ac_clean_files_save=$ac_clean_files
 
22432
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
22433
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
22434
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
22435
as_write_fail=0
 
22436
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
22437
#! $SHELL
 
22438
# Generated by $as_me.
 
22439
# Run this file to recreate the current configuration.
 
22440
# Compiler output produced by configure, useful for debugging
 
22441
# configure, is in config.log if it exists.
 
22442
 
 
22443
debug=false
 
22444
ac_cs_recheck=false
 
22445
ac_cs_silent=false
 
22446
 
 
22447
SHELL=\${CONFIG_SHELL-$SHELL}
 
22448
export SHELL
 
22449
_ASEOF
 
22450
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
22451
## -------------------- ##
 
22452
## M4sh Initialization. ##
 
22453
## -------------------- ##
 
22454
 
 
22455
# Be more Bourne compatible
 
22456
DUALCASE=1; export DUALCASE # for MKS sh
 
22457
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
22458
  emulate sh
 
22459
  NULLCMD=:
 
22460
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
22461
  # is contrary to our usage.  Disable this feature.
 
22462
  alias -g '${1+"$@"}'='"$@"'
 
22463
  setopt NO_GLOB_SUBST
 
22464
else
 
22465
  case `(set -o) 2>/dev/null` in @%:@(
 
22466
  *posix*) :
 
22467
    set -o posix ;; @%:@(
 
22468
  *) :
 
22469
     ;;
 
22470
esac
 
22471
fi
 
22472
 
 
22473
 
 
22474
as_nl='
 
22475
'
 
22476
export as_nl
 
22477
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
22478
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
22479
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
22480
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
22481
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
22482
# but without wasting forks for bash or zsh.
 
22483
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
22484
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
22485
  as_echo='print -r --'
 
22486
  as_echo_n='print -rn --'
 
22487
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
22488
  as_echo='printf %s\n'
 
22489
  as_echo_n='printf %s'
 
22490
else
 
22491
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
22492
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
22493
    as_echo_n='/usr/ucb/echo -n'
 
22494
  else
 
22495
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
22496
    as_echo_n_body='eval
 
22497
      arg=$1;
 
22498
      case $arg in @%:@(
 
22499
      *"$as_nl"*)
 
22500
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
22501
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
22502
      esac;
 
22503
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
22504
    '
 
22505
    export as_echo_n_body
 
22506
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
22507
  fi
 
22508
  export as_echo_body
 
22509
  as_echo='sh -c $as_echo_body as_echo'
 
22510
fi
 
22511
 
 
22512
# The user is always right.
 
22513
if test "${PATH_SEPARATOR+set}" != set; then
 
22514
  PATH_SEPARATOR=:
 
22515
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
22516
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
22517
      PATH_SEPARATOR=';'
 
22518
  }
 
22519
fi
 
22520
 
 
22521
 
 
22522
# IFS
 
22523
# We need space, tab and new line, in precisely that order.  Quoting is
 
22524
# there to prevent editors from complaining about space-tab.
 
22525
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
22526
# splitting by setting IFS to empty value.)
 
22527
IFS=" ""        $as_nl"
 
22528
 
 
22529
# Find who we are.  Look in the path if we contain no directory separator.
 
22530
case $0 in @%:@((
 
22531
  *[\\/]* ) as_myself=$0 ;;
 
22532
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22533
for as_dir in $PATH
 
22534
do
 
22535
  IFS=$as_save_IFS
 
22536
  test -z "$as_dir" && as_dir=.
 
22537
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
22538
  done
 
22539
IFS=$as_save_IFS
 
22540
 
 
22541
     ;;
 
22542
esac
 
22543
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
22544
# in which case we are not to be found in the path.
 
22545
if test "x$as_myself" = x; then
 
22546
  as_myself=$0
 
22547
fi
 
22548
if test ! -f "$as_myself"; then
 
22549
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
22550
  exit 1
 
22551
fi
 
22552
 
 
22553
# Unset variables that we do not need and which cause bugs (e.g. in
 
22554
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
22555
# suppresses any "Segmentation fault" message there.  '((' could
 
22556
# trigger a bug in pdksh 5.2.14.
 
22557
for as_var in BASH_ENV ENV MAIL MAILPATH
 
22558
do eval test x\${$as_var+set} = xset \
 
22559
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
22560
done
 
22561
PS1='$ '
 
22562
PS2='> '
 
22563
PS4='+ '
 
22564
 
 
22565
# NLS nuisances.
 
22566
LC_ALL=C
 
22567
export LC_ALL
 
22568
LANGUAGE=C
 
22569
export LANGUAGE
 
22570
 
 
22571
# CDPATH.
 
22572
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
22573
 
 
22574
 
 
22575
@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
 
22576
@%:@ ----------------------------------------
 
22577
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
22578
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
22579
@%:@ script with STATUS, using 1 if that was 0.
 
22580
as_fn_error ()
 
22581
{
 
22582
  as_status=$1; test $as_status -eq 0 && as_status=1
 
22583
  if test "$4"; then
 
22584
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
22585
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
22586
  fi
 
22587
  $as_echo "$as_me: error: $2" >&2
 
22588
  as_fn_exit $as_status
 
22589
} @%:@ as_fn_error
 
22590
 
 
22591
 
 
22592
@%:@ as_fn_set_status STATUS
 
22593
@%:@ -----------------------
 
22594
@%:@ Set @S|@? to STATUS, without forking.
 
22595
as_fn_set_status ()
 
22596
{
 
22597
  return $1
 
22598
} @%:@ as_fn_set_status
 
22599
 
 
22600
@%:@ as_fn_exit STATUS
 
22601
@%:@ -----------------
 
22602
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
22603
as_fn_exit ()
 
22604
{
 
22605
  set +e
 
22606
  as_fn_set_status $1
 
22607
  exit $1
 
22608
} @%:@ as_fn_exit
 
22609
 
 
22610
@%:@ as_fn_unset VAR
 
22611
@%:@ ---------------
 
22612
@%:@ Portably unset VAR.
 
22613
as_fn_unset ()
 
22614
{
 
22615
  { eval $1=; unset $1;}
 
22616
}
 
22617
as_unset=as_fn_unset
 
22618
@%:@ as_fn_append VAR VALUE
 
22619
@%:@ ----------------------
 
22620
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
 
22621
@%:@ advantage of any shell optimizations that allow amortized linear growth over
 
22622
@%:@ repeated appends, instead of the typical quadratic growth present in naive
 
22623
@%:@ implementations.
 
22624
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
22625
  eval 'as_fn_append ()
 
22626
  {
 
22627
    eval $1+=\$2
 
22628
  }'
 
22629
else
 
22630
  as_fn_append ()
 
22631
  {
 
22632
    eval $1=\$$1\$2
 
22633
  }
 
22634
fi # as_fn_append
 
22635
 
 
22636
@%:@ as_fn_arith ARG...
 
22637
@%:@ ------------------
 
22638
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
 
22639
@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
 
22640
@%:@ must be portable across @S|@(()) and expr.
 
22641
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
22642
  eval 'as_fn_arith ()
 
22643
  {
 
22644
    as_val=$(( $* ))
 
22645
  }'
 
22646
else
 
22647
  as_fn_arith ()
 
22648
  {
 
22649
    as_val=`expr "$@" || test $? -eq 1`
 
22650
  }
 
22651
fi # as_fn_arith
 
22652
 
 
22653
 
 
22654
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
22655
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
22656
  as_expr=expr
 
22657
else
 
22658
  as_expr=false
 
22659
fi
 
22660
 
 
22661
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
22662
  as_basename=basename
 
22663
else
 
22664
  as_basename=false
 
22665
fi
 
22666
 
 
22667
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
22668
  as_dirname=dirname
 
22669
else
 
22670
  as_dirname=false
 
22671
fi
 
22672
 
 
22673
as_me=`$as_basename -- "$0" ||
 
22674
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
22675
         X"$0" : 'X\(//\)$' \| \
 
22676
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
22677
$as_echo X/"$0" |
 
22678
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
22679
            s//\1/
 
22680
            q
 
22681
          }
 
22682
          /^X\/\(\/\/\)$/{
 
22683
            s//\1/
 
22684
            q
 
22685
          }
 
22686
          /^X\/\(\/\).*/{
 
22687
            s//\1/
 
22688
            q
 
22689
          }
 
22690
          s/.*/./; q'`
 
22691
 
 
22692
# Avoid depending upon Character Ranges.
 
22693
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
22694
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
22695
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
22696
as_cr_digits='0123456789'
 
22697
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
22698
 
 
22699
ECHO_C= ECHO_N= ECHO_T=
 
22700
case `echo -n x` in @%:@(((((
 
22701
-n*)
 
22702
  case `echo 'xy\c'` in
 
22703
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
22704
  xy)  ECHO_C='\c';;
 
22705
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
22706
       ECHO_T=' ';;
 
22707
  esac;;
 
22708
*)
 
22709
  ECHO_N='-n';;
 
22710
esac
 
22711
 
 
22712
rm -f conf$$ conf$$.exe conf$$.file
 
22713
if test -d conf$$.dir; then
 
22714
  rm -f conf$$.dir/conf$$.file
 
22715
else
 
22716
  rm -f conf$$.dir
 
22717
  mkdir conf$$.dir 2>/dev/null
 
22718
fi
 
22719
if (echo >conf$$.file) 2>/dev/null; then
 
22720
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
22721
    as_ln_s='ln -s'
 
22722
    # ... but there are two gotchas:
 
22723
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
22724
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
22725
    # In both cases, we have to default to `cp -p'.
 
22726
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
22727
      as_ln_s='cp -p'
 
22728
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
22729
    as_ln_s=ln
 
22730
  else
 
22731
    as_ln_s='cp -p'
 
22732
  fi
 
22733
else
 
22734
  as_ln_s='cp -p'
 
22735
fi
 
22736
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
22737
rmdir conf$$.dir 2>/dev/null
 
22738
 
 
22739
 
 
22740
@%:@ as_fn_mkdir_p
 
22741
@%:@ -------------
 
22742
@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
 
22743
as_fn_mkdir_p ()
 
22744
{
 
22745
 
 
22746
  case $as_dir in #(
 
22747
  -*) as_dir=./$as_dir;;
 
22748
  esac
 
22749
  test -d "$as_dir" || eval $as_mkdir_p || {
 
22750
    as_dirs=
 
22751
    while :; do
 
22752
      case $as_dir in #(
 
22753
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
22754
      *) as_qdir=$as_dir;;
 
22755
      esac
 
22756
      as_dirs="'$as_qdir' $as_dirs"
 
22757
      as_dir=`$as_dirname -- "$as_dir" ||
 
22758
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22759
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
22760
         X"$as_dir" : 'X\(//\)$' \| \
 
22761
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
22762
$as_echo X"$as_dir" |
 
22763
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
22764
            s//\1/
 
22765
            q
 
22766
          }
 
22767
          /^X\(\/\/\)[^/].*/{
 
22768
            s//\1/
 
22769
            q
 
22770
          }
 
22771
          /^X\(\/\/\)$/{
 
22772
            s//\1/
 
22773
            q
 
22774
          }
 
22775
          /^X\(\/\).*/{
 
22776
            s//\1/
 
22777
            q
 
22778
          }
 
22779
          s/.*/./; q'`
 
22780
      test -d "$as_dir" && break
 
22781
    done
 
22782
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
22783
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
22784
 
 
22785
 
 
22786
} @%:@ as_fn_mkdir_p
 
22787
if mkdir -p . 2>/dev/null; then
 
22788
  as_mkdir_p='mkdir -p "$as_dir"'
 
22789
else
 
22790
  test -d ./-p && rmdir ./-p
 
22791
  as_mkdir_p=false
 
22792
fi
 
22793
 
 
22794
if test -x / >/dev/null 2>&1; then
 
22795
  as_test_x='test -x'
 
22796
else
 
22797
  if ls -dL / >/dev/null 2>&1; then
 
22798
    as_ls_L_option=L
 
22799
  else
 
22800
    as_ls_L_option=
 
22801
  fi
 
22802
  as_test_x='
 
22803
    eval sh -c '\''
 
22804
      if test -d "$1"; then
 
22805
        test -d "$1/.";
 
22806
      else
 
22807
        case $1 in @%:@(
 
22808
        -*)set "./$1";;
 
22809
        esac;
 
22810
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
 
22811
        ???[sx]*):;;*)false;;esac;fi
 
22812
    '\'' sh
 
22813
  '
 
22814
fi
 
22815
as_executable_p=$as_test_x
 
22816
 
 
22817
# Sed expression to map a string onto a valid CPP name.
 
22818
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
22819
 
 
22820
# Sed expression to map a string onto a valid variable name.
 
22821
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
22822
 
 
22823
 
 
22824
exec 6>&1
 
22825
## ----------------------------------- ##
 
22826
## Main body of $CONFIG_STATUS script. ##
 
22827
## ----------------------------------- ##
 
22828
_ASEOF
 
22829
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
22830
 
 
22831
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22832
# Save the log message, to keep $0 and so on meaningful, and to
 
22833
# report actual input values of CONFIG_FILES etc. instead of their
 
22834
# values after options handling.
 
22835
ac_log="
 
22836
This file was extended by GRUB $as_me 1.99~rc1, which was
 
22837
generated by GNU Autoconf 2.67.  Invocation command line was
 
22838
 
 
22839
  CONFIG_FILES    = $CONFIG_FILES
 
22840
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
22841
  CONFIG_LINKS    = $CONFIG_LINKS
 
22842
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
22843
  $ $0 $@
 
22844
 
 
22845
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
22846
"
 
22847
 
 
22848
_ACEOF
 
22849
 
 
22850
case $ac_config_files in *"
 
22851
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
22852
esac
 
22853
 
 
22854
case $ac_config_headers in *"
 
22855
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
22856
esac
 
22857
 
 
22858
 
 
22859
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22860
# Files that config.status was made for.
 
22861
config_files="$ac_config_files"
 
22862
config_headers="$ac_config_headers"
 
22863
config_links="$ac_config_links"
 
22864
config_commands="$ac_config_commands"
 
22865
 
 
22866
_ACEOF
 
22867
 
 
22868
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22869
ac_cs_usage="\
 
22870
\`$as_me' instantiates files and other configuration actions
 
22871
from templates according to the current configuration.  Unless the files
 
22872
and actions are specified as TAGs, all are instantiated by default.
 
22873
 
 
22874
Usage: $0 [OPTION]... [TAG]...
 
22875
 
 
22876
  -h, --help       print this help, then exit
 
22877
  -V, --version    print version number and configuration settings, then exit
 
22878
      --config     print configuration, then exit
 
22879
  -q, --quiet, --silent
 
22880
                   do not print progress messages
 
22881
  -d, --debug      don't remove temporary files
 
22882
      --recheck    update $as_me by reconfiguring in the same conditions
 
22883
      --file=FILE[:TEMPLATE] 
 
22884
                   instantiate the configuration file FILE
 
22885
      --header=FILE[:TEMPLATE] 
 
22886
                   instantiate the configuration header FILE
 
22887
 
 
22888
Configuration files:
 
22889
$config_files
 
22890
 
 
22891
Configuration headers:
 
22892
$config_headers
 
22893
 
 
22894
Configuration links:
 
22895
$config_links
 
22896
 
 
22897
Configuration commands:
 
22898
$config_commands
 
22899
 
 
22900
Report bugs to <bug-grub@gnu.org>."
 
22901
 
 
22902
_ACEOF
 
22903
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22904
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
22905
ac_cs_version="\\
 
22906
GRUB config.status 1.99~rc1
 
22907
configured by $0, generated by GNU Autoconf 2.67,
 
22908
  with options \\"\$ac_cs_config\\"
 
22909
 
 
22910
Copyright (C) 2010 Free Software Foundation, Inc.
 
22911
This config.status script is free software; the Free Software Foundation
 
22912
gives unlimited permission to copy, distribute and modify it."
 
22913
 
 
22914
ac_pwd='$ac_pwd'
 
22915
srcdir='$srcdir'
 
22916
INSTALL='$INSTALL'
 
22917
MKDIR_P='$MKDIR_P'
 
22918
AWK='$AWK'
 
22919
test -n "\$AWK" || AWK=awk
 
22920
_ACEOF
 
22921
 
 
22922
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22923
# The default lists apply if the user does not specify any file.
 
22924
ac_need_defaults=:
 
22925
while test $# != 0
 
22926
do
 
22927
  case $1 in
 
22928
  --*=?*)
 
22929
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
22930
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
22931
    ac_shift=:
 
22932
    ;;
 
22933
  --*=)
 
22934
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
22935
    ac_optarg=
 
22936
    ac_shift=:
 
22937
    ;;
 
22938
  *)
 
22939
    ac_option=$1
 
22940
    ac_optarg=$2
 
22941
    ac_shift=shift
 
22942
    ;;
 
22943
  esac
 
22944
 
 
22945
  case $ac_option in
 
22946
  # Handling of the options.
 
22947
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
22948
    ac_cs_recheck=: ;;
 
22949
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
22950
    $as_echo "$ac_cs_version"; exit ;;
 
22951
  --config | --confi | --conf | --con | --co | --c )
 
22952
    $as_echo "$ac_cs_config"; exit ;;
 
22953
  --debug | --debu | --deb | --de | --d | -d )
 
22954
    debug=: ;;
 
22955
  --file | --fil | --fi | --f )
 
22956
    $ac_shift
 
22957
    case $ac_optarg in
 
22958
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
22959
    '') as_fn_error $? "missing file argument" ;;
 
22960
    esac
 
22961
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
22962
    ac_need_defaults=false;;
 
22963
  --header | --heade | --head | --hea )
 
22964
    $ac_shift
 
22965
    case $ac_optarg in
 
22966
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
22967
    esac
 
22968
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
22969
    ac_need_defaults=false;;
 
22970
  --he | --h)
 
22971
    # Conflict between --help and --header
 
22972
    as_fn_error $? "ambiguous option: \`$1'
 
22973
Try \`$0 --help' for more information.";;
 
22974
  --help | --hel | -h )
 
22975
    $as_echo "$ac_cs_usage"; exit ;;
 
22976
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
22977
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
22978
    ac_cs_silent=: ;;
 
22979
 
 
22980
  # This is an error.
 
22981
  -*) as_fn_error $? "unrecognized option: \`$1'
 
22982
Try \`$0 --help' for more information." ;;
 
22983
 
 
22984
  *) as_fn_append ac_config_targets " $1"
 
22985
     ac_need_defaults=false ;;
 
22986
 
 
22987
  esac
 
22988
  shift
 
22989
done
 
22990
 
 
22991
ac_configure_extra_args=
 
22992
 
 
22993
if $ac_cs_silent; then
 
22994
  exec 6>/dev/null
 
22995
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
22996
fi
 
22997
 
 
22998
_ACEOF
 
22999
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
23000
if \$ac_cs_recheck; then
 
23001
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
23002
  shift
 
23003
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
23004
  CONFIG_SHELL='$SHELL'
 
23005
  export CONFIG_SHELL
 
23006
  exec "\$@"
 
23007
fi
 
23008
 
 
23009
_ACEOF
 
23010
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
23011
exec 5>>config.log
 
23012
{
 
23013
  echo
 
23014
  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
 
23015
@%:@@%:@ Running $as_me. @%:@@%:@
 
23016
_ASBOX
 
23017
  $as_echo "$ac_log"
 
23018
} >&5
 
23019
 
 
23020
_ACEOF
 
23021
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
23022
#
 
23023
# INIT-COMMANDS
 
23024
#
 
23025
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
23026
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
 
23027
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
 
23028
    # from automake < 1.5.
 
23029
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
 
23030
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
 
23031
    LINGUAS="${LINGUAS-%UNSET%}"
 
23032
   
 
23033
 
 
23034
_ACEOF
 
23035
 
 
23036
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
23037
 
 
23038
# Handling of arguments.
 
23039
for ac_config_target in $ac_config_targets
 
23040
do
 
23041
  case $ac_config_target in
 
23042
    "config-util.h") CONFIG_HEADERS="$CONFIG_HEADERS config-util.h" ;;
 
23043
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
23044
    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
 
23045
    "include/grub/cpu") CONFIG_LINKS="$CONFIG_LINKS include/grub/cpu:include/grub/$target_cpu" ;;
 
23046
    "include/grub/machine") CONFIG_LINKS="$CONFIG_LINKS include/grub/machine:include/grub/$target_cpu/$platform" ;;
 
23047
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
23048
    "grub-core/Makefile") CONFIG_FILES="$CONFIG_FILES grub-core/Makefile" ;;
 
23049
    "grub-core/gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES grub-core/gnulib/Makefile" ;;
 
23050
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 
23051
    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
 
23052
    "util/bash-completion.d/Makefile") CONFIG_FILES="$CONFIG_FILES util/bash-completion.d/Makefile" ;;
 
23053
    "stamp-h") CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
 
23054
    "config.h") CONFIG_FILES="$CONFIG_FILES config.h" ;;
 
23055
 
 
23056
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
 
23057
  esac
 
23058
done
 
23059
 
 
23060
 
 
23061
# If the user did not use the arguments to specify the items to instantiate,
 
23062
# then the envvar interface is used.  Set only those that are not.
 
23063
# We use the long form for the default assignment because of an extremely
 
23064
# bizarre bug on SunOS 4.1.3.
 
23065
if $ac_need_defaults; then
 
23066
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
23067
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
23068
  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
 
23069
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
23070
fi
 
23071
 
 
23072
# Have a temporary directory for convenience.  Make it in the build tree
 
23073
# simply because there is no reason against having it here, and in addition,
 
23074
# creating and moving files from /tmp can sometimes cause problems.
 
23075
# Hook for its removal unless debugging.
 
23076
# Note that there is a small window in which the directory will not be cleaned:
 
23077
# after its creation but before its name has been assigned to `$tmp'.
 
23078
$debug ||
 
23079
{
 
23080
  tmp=
 
23081
  trap 'exit_status=$?
 
23082
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
23083
' 0
 
23084
  trap 'as_fn_exit 1' 1 2 13 15
 
23085
}
 
23086
# Create a (secure) tmp directory for tmp files.
 
23087
 
 
23088
{
 
23089
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
23090
  test -n "$tmp" && test -d "$tmp"
 
23091
}  ||
 
23092
{
 
23093
  tmp=./conf$$-$RANDOM
 
23094
  (umask 077 && mkdir "$tmp")
 
23095
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 
 
23096
 
 
23097
# Set up the scripts for CONFIG_FILES section.
 
23098
# No need to generate them if there are no CONFIG_FILES.
 
23099
# This happens for instance with `./config.status config.h'.
 
23100
if test -n "$CONFIG_FILES"; then
 
23101
 
 
23102
 
 
23103
ac_cr=`echo X | tr X '\015'`
 
23104
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
23105
# But we know of no other shell where ac_cr would be empty at this
 
23106
# point, so we can use a bashism as a fallback.
 
23107
if test "x$ac_cr" = x; then
 
23108
  eval ac_cr=\$\'\\r\'
 
23109
fi
 
23110
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
23111
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
23112
  ac_cs_awk_cr='\\r'
 
23113
else
 
23114
  ac_cs_awk_cr=$ac_cr
 
23115
fi
 
23116
 
 
23117
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
23118
_ACEOF
 
23119
 
 
23120
 
 
23121
{
 
23122
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
23123
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
23124
  echo "_ACEOF"
 
23125
} >conf$$subs.sh ||
 
23126
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 
 
23127
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 
23128
ac_delim='%!_!# '
 
23129
for ac_last_try in false false false false false :; do
 
23130
  . ./conf$$subs.sh ||
 
23131
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 
 
23132
 
 
23133
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
23134
  if test $ac_delim_n = $ac_delim_num; then
 
23135
    break
 
23136
  elif $ac_last_try; then
 
23137
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 
 
23138
  else
 
23139
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
23140
  fi
 
23141
done
 
23142
rm -f conf$$subs.sh
 
23143
 
 
23144
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
23145
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
23146
_ACEOF
 
23147
sed -n '
 
23148
h
 
23149
s/^/S["/; s/!.*/"]=/
 
23150
p
 
23151
g
 
23152
s/^[^!]*!//
 
23153
:repl
 
23154
t repl
 
23155
s/'"$ac_delim"'$//
 
23156
t delim
 
23157
:nl
 
23158
h
 
23159
s/\(.\{148\}\)..*/\1/
 
23160
t more1
 
23161
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
23162
p
 
23163
n
 
23164
b repl
 
23165
:more1
 
23166
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
23167
p
 
23168
g
 
23169
s/.\{148\}//
 
23170
t nl
 
23171
:delim
 
23172
h
 
23173
s/\(.\{148\}\)..*/\1/
 
23174
t more2
 
23175
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
23176
p
 
23177
b
 
23178
:more2
 
23179
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
23180
p
 
23181
g
 
23182
s/.\{148\}//
 
23183
t delim
 
23184
' <conf$$subs.awk | sed '
 
23185
/^[^""]/{
 
23186
  N
 
23187
  s/\n//
 
23188
}
 
23189
' >>$CONFIG_STATUS || ac_write_fail=1
 
23190
rm -f conf$$subs.awk
 
23191
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
23192
_ACAWK
 
23193
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
23194
  for (key in S) S_is_set[key] = 1
 
23195
  FS = ""
 
23196
 
 
23197
}
 
23198
{
 
23199
  line = $ 0
 
23200
  nfields = split(line, field, "@")
 
23201
  substed = 0
 
23202
  len = length(field[1])
 
23203
  for (i = 2; i < nfields; i++) {
 
23204
    key = field[i]
 
23205
    keylen = length(key)
 
23206
    if (S_is_set[key]) {
 
23207
      value = S[key]
 
23208
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
23209
      len += length(value) + length(field[++i])
 
23210
      substed = 1
 
23211
    } else
 
23212
      len += 1 + keylen
 
23213
  }
 
23214
 
 
23215
  print line
 
23216
}
 
23217
 
 
23218
_ACAWK
 
23219
_ACEOF
 
23220
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
23221
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
23222
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
23223
else
 
23224
  cat
 
23225
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
23226
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 
 
23227
_ACEOF
 
23228
 
 
23229
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
23230
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 
23231
# trailing colons and then remove the whole line if VPATH becomes empty
 
23232
# (actually we leave an empty line to preserve line numbers).
 
23233
if test "x$srcdir" = x.; then
 
23234
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
23235
h
 
23236
s///
 
23237
s/^/:/
 
23238
s/[      ]*$/:/
 
23239
s/:\$(srcdir):/:/g
 
23240
s/:\${srcdir}:/:/g
 
23241
s/:@srcdir@:/:/g
 
23242
s/^:*//
 
23243
s/:*$//
 
23244
x
 
23245
s/\(=[   ]*\).*/\1/
 
23246
G
 
23247
s/\n//
 
23248
s/^[^=]*=[       ]*$//
 
23249
}'
 
23250
fi
 
23251
 
 
23252
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
23253
fi # test -n "$CONFIG_FILES"
 
23254
 
 
23255
# Set up the scripts for CONFIG_HEADERS section.
 
23256
# No need to generate them if there are no CONFIG_HEADERS.
 
23257
# This happens for instance with `./config.status Makefile'.
 
23258
if test -n "$CONFIG_HEADERS"; then
 
23259
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
23260
BEGIN {
 
23261
_ACEOF
 
23262
 
 
23263
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
23264
# here-document in config.status, that substitutes the proper values into
 
23265
# config.h.in to produce config.h.
 
23266
 
 
23267
# Create a delimiter string that does not exist in confdefs.h, to ease
 
23268
# handling of long lines.
 
23269
ac_delim='%!_!# '
 
23270
for ac_last_try in false false :; do
 
23271
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
23272
  if test -z "$ac_t"; then
 
23273
    break
 
23274
  elif $ac_last_try; then
 
23275
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 
 
23276
  else
 
23277
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
23278
  fi
 
23279
done
 
23280
 
 
23281
# For the awk script, D is an array of macro values keyed by name,
 
23282
# likewise P contains macro parameters if any.  Preserve backslash
 
23283
# newline sequences.
 
23284
 
 
23285
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
23286
sed -n '
 
23287
s/.\{148\}/&'"$ac_delim"'/g
 
23288
t rset
 
23289
:rset
 
23290
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
23291
t def
 
23292
d
 
23293
:def
 
23294
s/\\$//
 
23295
t bsnl
 
23296
s/["\\]/\\&/g
 
23297
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
23298
D["\1"]=" \3"/p
 
23299
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
23300
d
 
23301
:bsnl
 
23302
s/["\\]/\\&/g
 
23303
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
23304
D["\1"]=" \3\\\\\\n"\\/p
 
23305
t cont
 
23306
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
23307
t cont
 
23308
d
 
23309
:cont
 
23310
n
 
23311
s/.\{148\}/&'"$ac_delim"'/g
 
23312
t clear
 
23313
:clear
 
23314
s/\\$//
 
23315
t bsnlc
 
23316
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
23317
d
 
23318
:bsnlc
 
23319
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
23320
b cont
 
23321
' <confdefs.h | sed '
 
23322
s/'"$ac_delim"'/"\\\
 
23323
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
23324
 
 
23325
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
23326
  for (key in D) D_is_set[key] = 1
 
23327
  FS = ""
 
23328
}
 
23329
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
23330
  line = \$ 0
 
23331
  split(line, arg, " ")
 
23332
  if (arg[1] == "#") {
 
23333
    defundef = arg[2]
 
23334
    mac1 = arg[3]
 
23335
  } else {
 
23336
    defundef = substr(arg[1], 2)
 
23337
    mac1 = arg[2]
 
23338
  }
 
23339
  split(mac1, mac2, "(") #)
 
23340
  macro = mac2[1]
 
23341
  prefix = substr(line, 1, index(line, defundef) - 1)
 
23342
  if (D_is_set[macro]) {
 
23343
    # Preserve the white space surrounding the "#".
 
23344
    print prefix "define", macro P[macro] D[macro]
 
23345
    next
 
23346
  } else {
 
23347
    # Replace #undef with comments.  This is necessary, for example,
 
23348
    # in the case of _POSIX_SOURCE, which is predefined and required
 
23349
    # on some systems where configure will not decide to define it.
 
23350
    if (defundef == "undef") {
 
23351
      print "/*", prefix defundef, macro, "*/"
 
23352
      next
 
23353
    }
 
23354
  }
 
23355
}
 
23356
{ print }
 
23357
_ACAWK
 
23358
_ACEOF
 
23359
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
23360
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 
 
23361
fi # test -n "$CONFIG_HEADERS"
 
23362
 
 
23363
 
 
23364
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
 
23365
shift
 
23366
for ac_tag
 
23367
do
 
23368
  case $ac_tag in
 
23369
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
23370
  esac
 
23371
  case $ac_mode$ac_tag in
 
23372
  :[FHL]*:*);;
 
23373
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
 
23374
  :[FH]-) ac_tag=-:-;;
 
23375
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
23376
  esac
 
23377
  ac_save_IFS=$IFS
 
23378
  IFS=:
 
23379
  set x $ac_tag
 
23380
  IFS=$ac_save_IFS
 
23381
  shift
 
23382
  ac_file=$1
 
23383
  shift
 
23384
 
 
23385
  case $ac_mode in
 
23386
  :L) ac_source=$1;;
 
23387
  :[FH])
 
23388
    ac_file_inputs=
 
23389
    for ac_f
 
23390
    do
 
23391
      case $ac_f in
 
23392
      -) ac_f="$tmp/stdin";;
 
23393
      *) # Look for the file first in the build tree, then in the source tree
 
23394
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
23395
         # because $ac_f cannot contain `:'.
 
23396
         test -f "$ac_f" ||
 
23397
           case $ac_f in
 
23398
           [\\/$]*) false;;
 
23399
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
23400
           esac ||
 
23401
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
 
23402
      esac
 
23403
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
23404
      as_fn_append ac_file_inputs " '$ac_f'"
 
23405
    done
 
23406
 
 
23407
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
23408
    # use $as_me), people would be surprised to read:
 
23409
    #    /* config.h.  Generated by config.status.  */
 
23410
    configure_input='Generated from '`
 
23411
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
23412
        `' by configure.'
 
23413
    if test x"$ac_file" != x-; then
 
23414
      configure_input="$ac_file.  $configure_input"
 
23415
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
23416
$as_echo "$as_me: creating $ac_file" >&6;}
 
23417
    fi
 
23418
    # Neutralize special characters interpreted by sed in replacement strings.
 
23419
    case $configure_input in #(
 
23420
    *\&* | *\|* | *\\* )
 
23421
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
23422
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
23423
    *) ac_sed_conf_input=$configure_input;;
 
23424
    esac
 
23425
 
 
23426
    case $ac_tag in
 
23427
    *:-:* | *:-) cat >"$tmp/stdin" \
 
23428
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
 
23429
    esac
 
23430
    ;;
 
23431
  esac
 
23432
 
 
23433
  ac_dir=`$as_dirname -- "$ac_file" ||
 
23434
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23435
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
23436
         X"$ac_file" : 'X\(//\)$' \| \
 
23437
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
23438
$as_echo X"$ac_file" |
 
23439
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23440
            s//\1/
 
23441
            q
 
23442
          }
 
23443
          /^X\(\/\/\)[^/].*/{
 
23444
            s//\1/
 
23445
            q
 
23446
          }
 
23447
          /^X\(\/\/\)$/{
 
23448
            s//\1/
 
23449
            q
 
23450
          }
 
23451
          /^X\(\/\).*/{
 
23452
            s//\1/
 
23453
            q
 
23454
          }
 
23455
          s/.*/./; q'`
 
23456
  as_dir="$ac_dir"; as_fn_mkdir_p
 
23457
  ac_builddir=.
 
23458
 
 
23459
case "$ac_dir" in
 
23460
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
23461
*)
 
23462
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
23463
  # A ".." for each directory in $ac_dir_suffix.
 
23464
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
23465
  case $ac_top_builddir_sub in
 
23466
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
23467
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
23468
  esac ;;
 
23469
esac
 
23470
ac_abs_top_builddir=$ac_pwd
 
23471
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
23472
# for backward compatibility:
 
23473
ac_top_builddir=$ac_top_build_prefix
 
23474
 
 
23475
case $srcdir in
 
23476
  .)  # We are building in place.
 
23477
    ac_srcdir=.
 
23478
    ac_top_srcdir=$ac_top_builddir_sub
 
23479
    ac_abs_top_srcdir=$ac_pwd ;;
 
23480
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
23481
    ac_srcdir=$srcdir$ac_dir_suffix;
 
23482
    ac_top_srcdir=$srcdir
 
23483
    ac_abs_top_srcdir=$srcdir ;;
 
23484
  *) # Relative name.
 
23485
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
23486
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
23487
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
23488
esac
 
23489
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
23490
 
 
23491
 
 
23492
  case $ac_mode in
 
23493
  :F)
 
23494
  #
 
23495
  # CONFIG_FILE
 
23496
  #
 
23497
 
 
23498
  case $INSTALL in
 
23499
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
23500
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
23501
  esac
 
23502
  ac_MKDIR_P=$MKDIR_P
 
23503
  case $MKDIR_P in
 
23504
  [\\/$]* | ?:[\\/]* ) ;;
 
23505
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
23506
  esac
 
23507
_ACEOF
 
23508
 
 
23509
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
23510
# If the template does not know about datarootdir, expand it.
 
23511
# FIXME: This hack should be removed a few years after 2.60.
 
23512
ac_datarootdir_hack=; ac_datarootdir_seen=
 
23513
ac_sed_dataroot='
 
23514
/datarootdir/ {
 
23515
  p
 
23516
  q
 
23517
}
 
23518
/@datadir@/p
 
23519
/@docdir@/p
 
23520
/@infodir@/p
 
23521
/@localedir@/p
 
23522
/@mandir@/p'
 
23523
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
23524
*datarootdir*) ac_datarootdir_seen=yes;;
 
23525
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
23526
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
23527
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
23528
_ACEOF
 
23529
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
23530
  ac_datarootdir_hack='
 
23531
  s&@datadir@&$datadir&g
 
23532
  s&@docdir@&$docdir&g
 
23533
  s&@infodir@&$infodir&g
 
23534
  s&@localedir@&$localedir&g
 
23535
  s&@mandir@&$mandir&g
 
23536
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
23537
esac
 
23538
_ACEOF
 
23539
 
 
23540
# Neutralize VPATH when `$srcdir' = `.'.
 
23541
# Shell code in configure.ac might set extrasub.
 
23542
# FIXME: do we really want to maintain this feature?
 
23543
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
23544
ac_sed_extra="$ac_vpsub
 
23545
$extrasub
 
23546
_ACEOF
 
23547
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
23548
:t
 
23549
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
23550
s|@configure_input@|$ac_sed_conf_input|;t t
 
23551
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
23552
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
23553
s&@srcdir@&$ac_srcdir&;t t
 
23554
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
23555
s&@top_srcdir@&$ac_top_srcdir&;t t
 
23556
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
23557
s&@builddir@&$ac_builddir&;t t
 
23558
s&@abs_builddir@&$ac_abs_builddir&;t t
 
23559
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
23560
s&@INSTALL@&$ac_INSTALL&;t t
 
23561
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
23562
$ac_datarootdir_hack
 
23563
"
 
23564
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
23565
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5 
 
23566
 
 
23567
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
23568
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
23569
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
23570
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
23571
which seems to be undefined.  Please make sure it is defined" >&5
 
23572
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
23573
which seems to be undefined.  Please make sure it is defined" >&2;}
 
23574
 
 
23575
  rm -f "$tmp/stdin"
 
23576
  case $ac_file in
 
23577
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
23578
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
23579
  esac \
 
23580
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5 
 
23581
 ;;
 
23582
  :H)
 
23583
  #
 
23584
  # CONFIG_HEADER
 
23585
  #
 
23586
  if test x"$ac_file" != x-; then
 
23587
    {
 
23588
      $as_echo "/* $configure_input  */" \
 
23589
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
23590
    } >"$tmp/config.h" \
 
23591
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 
 
23592
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
23593
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
23594
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
23595
    else
 
23596
      rm -f "$ac_file"
 
23597
      mv "$tmp/config.h" "$ac_file" \
 
23598
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5 
 
23599
    fi
 
23600
  else
 
23601
    $as_echo "/* $configure_input  */" \
 
23602
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
23603
      || as_fn_error $? "could not create -" "$LINENO" 5 
 
23604
  fi
 
23605
# Compute "$ac_file"'s index in $config_headers.
 
23606
_am_arg="$ac_file"
 
23607
_am_stamp_count=1
 
23608
for _am_header in $config_headers :; do
 
23609
  case $_am_header in
 
23610
    $_am_arg | $_am_arg:* )
 
23611
      break ;;
 
23612
    * )
 
23613
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
23614
  esac
 
23615
done
 
23616
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
23617
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23618
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
23619
         X"$_am_arg" : 'X\(//\)$' \| \
 
23620
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
23621
$as_echo X"$_am_arg" |
 
23622
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23623
            s//\1/
 
23624
            q
 
23625
          }
 
23626
          /^X\(\/\/\)[^/].*/{
 
23627
            s//\1/
 
23628
            q
 
23629
          }
 
23630
          /^X\(\/\/\)$/{
 
23631
            s//\1/
 
23632
            q
 
23633
          }
 
23634
          /^X\(\/\).*/{
 
23635
            s//\1/
 
23636
            q
 
23637
          }
 
23638
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
23639
 ;;
 
23640
  :L)
 
23641
  #
 
23642
  # CONFIG_LINK
 
23643
  #
 
23644
 
 
23645
  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
 
23646
    :
 
23647
  else
 
23648
    # Prefer the file from the source tree if names are identical.
 
23649
    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
 
23650
      ac_source=$srcdir/$ac_source
 
23651
    fi
 
23652
 
 
23653
    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
 
23654
$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
 
23655
 
 
23656
    if test ! -r "$ac_source"; then
 
23657
      as_fn_error $? "$ac_source: file not found" "$LINENO" 5 
 
23658
    fi
 
23659
    rm -f "$ac_file"
 
23660
 
 
23661
    # Try a relative symlink, then a hard link, then a copy.
 
23662
    case $ac_source in
 
23663
    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
 
23664
        *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
 
23665
    esac
 
23666
    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
 
23667
      ln "$ac_source" "$ac_file" 2>/dev/null ||
 
23668
      cp -p "$ac_source" "$ac_file" ||
 
23669
      as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 
 
23670
  fi
 
23671
 ;;
 
23672
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
23673
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
23674
 ;;
 
23675
  esac
 
23676
 
 
23677
 
 
23678
  case $ac_file$ac_mode in
 
23679
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
23680
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
23681
  # are listed without --file.  Let's play safe and only enable the eval
 
23682
  # if we detect the quoting.
 
23683
  case $CONFIG_FILES in
 
23684
  *\'*) eval set x "$CONFIG_FILES" ;;
 
23685
  *)   set x $CONFIG_FILES ;;
 
23686
  esac
 
23687
  shift
 
23688
  for mf
 
23689
  do
 
23690
    # Strip MF so we end up with the name of the file.
 
23691
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
23692
    # Check whether this is an Automake generated Makefile or not.
 
23693
    # We used to match only the files named `Makefile.in', but
 
23694
    # some people rename them; so instead we look at the file content.
 
23695
    # Grep'ing the first line is not enough: some people post-process
 
23696
    # each Makefile.in and add a new line on top of each file to say so.
 
23697
    # Grep'ing the whole file is not good either: AIX grep has a line
 
23698
    # limit of 2048, but all sed's we know have understand at least 4000.
 
23699
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
23700
      dirpart=`$as_dirname -- "$mf" ||
 
23701
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23702
         X"$mf" : 'X\(//\)[^/]' \| \
 
23703
         X"$mf" : 'X\(//\)$' \| \
 
23704
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
23705
$as_echo X"$mf" |
 
23706
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23707
            s//\1/
 
23708
            q
 
23709
          }
 
23710
          /^X\(\/\/\)[^/].*/{
 
23711
            s//\1/
 
23712
            q
 
23713
          }
 
23714
          /^X\(\/\/\)$/{
 
23715
            s//\1/
 
23716
            q
 
23717
          }
 
23718
          /^X\(\/\).*/{
 
23719
            s//\1/
 
23720
            q
 
23721
          }
 
23722
          s/.*/./; q'`
 
23723
    else
 
23724
      continue
 
23725
    fi
 
23726
    # Extract the definition of DEPDIR, am__include, and am__quote
 
23727
    # from the Makefile without running `make'.
 
23728
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
23729
    test -z "$DEPDIR" && continue
 
23730
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
23731
    test -z "am__include" && continue
 
23732
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
23733
    # When using ansi2knr, U may be empty or an underscore; expand it
 
23734
    U=`sed -n 's/^U = //p' < "$mf"`
 
23735
    # Find all dependency output files, they are included files with
 
23736
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
23737
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
23738
    # expansion.
 
23739
    for file in `sed -n "
 
23740
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
23741
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
23742
      # Make sure the directory exists.
 
23743
      test -f "$dirpart/$file" && continue
 
23744
      fdir=`$as_dirname -- "$file" ||
 
23745
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23746
         X"$file" : 'X\(//\)[^/]' \| \
 
23747
         X"$file" : 'X\(//\)$' \| \
 
23748
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
23749
$as_echo X"$file" |
 
23750
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23751
            s//\1/
 
23752
            q
 
23753
          }
 
23754
          /^X\(\/\/\)[^/].*/{
 
23755
            s//\1/
 
23756
            q
 
23757
          }
 
23758
          /^X\(\/\/\)$/{
 
23759
            s//\1/
 
23760
            q
 
23761
          }
 
23762
          /^X\(\/\).*/{
 
23763
            s//\1/
 
23764
            q
 
23765
          }
 
23766
          s/.*/./; q'`
 
23767
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
23768
      # echo "creating $dirpart/$file"
 
23769
      echo '# dummy' > "$dirpart/$file"
 
23770
    done
 
23771
  done
 
23772
}
 
23773
 ;;
 
23774
    "po-directories":C) 
 
23775
    for ac_file in $CONFIG_FILES; do
 
23776
      # Support "outfile[:infile[:infile...]]"
 
23777
      case "$ac_file" in
 
23778
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
23779
      esac
 
23780
      # PO directories have a Makefile.in generated from Makefile.in.in.
 
23781
      case "$ac_file" in */Makefile.in)
 
23782
        # Adjust a relative srcdir.
 
23783
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
 
23784
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
 
23785
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
 
23786
        # In autoconf-2.13 it is called $ac_given_srcdir.
 
23787
        # In autoconf-2.50 it is called $srcdir.
 
23788
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
 
23789
        case "$ac_given_srcdir" in
 
23790
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
 
23791
          /*) top_srcdir="$ac_given_srcdir" ;;
 
23792
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
23793
        esac
 
23794
        # Treat a directory as a PO directory if and only if it has a
 
23795
        # POTFILES.in file. This allows packages to have multiple PO
 
23796
        # directories under different names or in different locations.
 
23797
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
 
23798
          rm -f "$ac_dir/POTFILES"
 
23799
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
 
23800
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
 
23801
          POMAKEFILEDEPS="POTFILES.in"
 
23802
          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
 
23803
          # on $ac_dir but don't depend on user-specified configuration
 
23804
          # parameters.
 
23805
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
 
23806
            # The LINGUAS file contains the set of available languages.
 
23807
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
 
23808
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
 
23809
            fi
 
23810
            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
 
23811
            # Hide the ALL_LINGUAS assigment from automake < 1.5.
 
23812
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
 
23813
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
 
23814
          else
 
23815
            # The set of available languages was given in configure.in.
 
23816
            # Hide the ALL_LINGUAS assigment from automake < 1.5.
 
23817
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
 
23818
          fi
 
23819
          # Compute POFILES
 
23820
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
 
23821
          # Compute UPDATEPOFILES
 
23822
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
 
23823
          # Compute DUMMYPOFILES
 
23824
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
 
23825
          # Compute GMOFILES
 
23826
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
 
23827
          case "$ac_given_srcdir" in
 
23828
            .) srcdirpre= ;;
 
23829
            *) srcdirpre='$(srcdir)/' ;;
 
23830
          esac
 
23831
          POFILES=
 
23832
          UPDATEPOFILES=
 
23833
          DUMMYPOFILES=
 
23834
          GMOFILES=
 
23835
          for lang in $ALL_LINGUAS; do
 
23836
            POFILES="$POFILES $srcdirpre$lang.po"
 
23837
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
 
23838
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
 
23839
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
 
23840
          done
 
23841
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
 
23842
          # environment variable.
 
23843
          INST_LINGUAS=
 
23844
          if test -n "$ALL_LINGUAS"; then
 
23845
            for presentlang in $ALL_LINGUAS; do
 
23846
              useit=no
 
23847
              if test "%UNSET%" != "$LINGUAS"; then
 
23848
                desiredlanguages="$LINGUAS"
 
23849
              else
 
23850
                desiredlanguages="$ALL_LINGUAS"
 
23851
              fi
 
23852
              for desiredlang in $desiredlanguages; do
 
23853
                # Use the presentlang catalog if desiredlang is
 
23854
                #   a. equal to presentlang, or
 
23855
                #   b. a variant of presentlang (because in this case,
 
23856
                #      presentlang can be used as a fallback for messages
 
23857
                #      which are not translated in the desiredlang catalog).
 
23858
                case "$desiredlang" in
 
23859
                  "$presentlang"*) useit=yes;;
 
23860
                esac
 
23861
              done
 
23862
              if test $useit = yes; then
 
23863
                INST_LINGUAS="$INST_LINGUAS $presentlang"
 
23864
              fi
 
23865
            done
 
23866
          fi
 
23867
          CATALOGS=
 
23868
          if test -n "$INST_LINGUAS"; then
 
23869
            for lang in $INST_LINGUAS; do
 
23870
              CATALOGS="$CATALOGS $lang.gmo"
 
23871
            done
 
23872
          fi
 
23873
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
 
23874
          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"
 
23875
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
 
23876
            if test -f "$f"; then
 
23877
              case "$f" in
 
23878
                *.orig | *.bak | *~) ;;
 
23879
                *) cat "$f" >> "$ac_dir/Makefile" ;;
 
23880
              esac
 
23881
            fi
 
23882
          done
 
23883
        fi
 
23884
        ;;
 
23885
      esac
 
23886
    done ;;
 
23887
    "stamp-h":F) echo timestamp > stamp-h ;;
 
23888
 
 
23889
  esac
 
23890
done # for ac_tag
 
23891
 
 
23892
 
 
23893
as_fn_exit 0
 
23894
_ACEOF
 
23895
ac_clean_files=$ac_clean_files_save
 
23896
 
 
23897
test $ac_write_fail = 0 ||
 
23898
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 
 
23899
 
 
23900
 
 
23901
# configure is writing to config.log, and then calls config.status.
 
23902
# config.status does its own redirection, appending to config.log.
 
23903
# Unfortunately, on DOS this fails, as config.log is still kept open
 
23904
# by configure, so config.status won't be able to write to it; its
 
23905
# output is simply discarded.  So we exec the FD to /dev/null,
 
23906
# effectively closing config.log, so it can be properly (re)opened and
 
23907
# appended to by config.status.  When coming back to configure, we
 
23908
# need to make the FD available again.
 
23909
if test "$no_create" != yes; then
 
23910
  ac_cs_success=:
 
23911
  ac_config_status_args=
 
23912
  test "$silent" = yes &&
 
23913
    ac_config_status_args="$ac_config_status_args --quiet"
 
23914
  exec 5>/dev/null
 
23915
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
23916
  exec 5>>config.log
 
23917
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
23918
  # would make configure fail if this is the last instruction.
 
23919
  $ac_cs_success || as_fn_exit 1
 
23920
fi
 
23921
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
23922
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
23923
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
23924
fi
 
23925
 
 
23926
 
 
23927
echo "*******************************************************"
 
23928
echo GRUB2 will be compiled with following components:
 
23929
echo Platform: "$target_cpu"-"$platform"
 
23930
if [ x"$platform" = xemu ]; then
 
23931
if [ x"$grub_emu_usb_excuse" = x ]; then
 
23932
echo USB support for grub-emu: Yes
 
23933
else
 
23934
echo USB support for grub-emu: No "($grub_emu_usb_excuse)"
 
23935
fi
 
23936
if [ x"$grub_emu_sdl_excuse" = x ]; then
 
23937
echo SDL support for grub-emu: Yes
 
23938
else
 
23939
echo SDL support for grub-emu: No "($grub_emu_sdl_excuse)"
 
23940
fi
 
23941
if [ x"$grub_emu_pci_excuse" = x ]; then
 
23942
echo PCI support for grub-emu: Yes
 
23943
else
 
23944
echo PCI support for grub-emu: No "($grub_emu_pci_excuse)"
 
23945
fi
 
23946
fi
 
23947
if test x"$device_mapper_excuse" = x ; then
 
23948
echo With devmapper support: Yes
 
23949
else
 
23950
echo With devmapper support: No "($device_mapper_excuse)"
 
23951
fi
 
23952
if [ x"$enable_mm_debug" = xyes ]; then
 
23953
echo With memory debugging: Yes
 
23954
else
 
23955
echo With memory debugging: No
 
23956
fi
 
23957
if [ x"$efiemu_excuse" = x ]; then
 
23958
echo efiemu runtime: Yes
 
23959
else
 
23960
echo efiemu runtime: No "($efiemu_excuse)"
 
23961
fi
 
23962
if [ x"$grub_mkfont_excuse" = x ]; then
 
23963
echo grub-mkfont: Yes
 
23964
else
 
23965
echo grub-mkfont: No "($grub_mkfont_excuse)"
 
23966
fi
 
23967
echo "*******************************************************"
 
23968