OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [libcpp/] [configure] - Blame information for rev 847

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.