~ubuntu-branches/ubuntu/wily/flrig/wily

« back to all changes in this revision

Viewing changes to configure

  • Committer: Package Import Robot
  • Author(s): Kamal Mostafa
  • Date: 2014-06-07 11:28:52 UTC
  • Revision ID: package-import@ubuntu.com-20140607112852-v4d5tb1m3h3vi0dl
Tags: upstream-1.3.15
ImportĀ upstreamĀ versionĀ 1.3.15

Show diffs side-by-side

added added

removed removed

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