~ubuntu-branches/ubuntu/jaunty/xvidcap/jaunty-proposed

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): John Dong
  • Date: 2008-02-25 15:47:12 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080225154712-qvr11ekcea4c9ry8
Tags: 1.1.6-0.1ubuntu1
* Merge from debian-multimedia (LP: #120003), Ubuntu Changes:
 - For ffmpeg-related build-deps, remove cvs from package names.
 - Standards-Version 3.7.3
 - Maintainer Spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
 
# From configure.ac Revision: 1.23 .
 
2
# From configure.in Revision: 1.29 .
3
3
# Guess values for system-dependent variables and create Makefiles.
4
 
# Generated by GNU Autoconf 2.57 for XVidcap 1.1.3.
5
 
#
6
 
# Report bugs to <karl.h.beckers@gmx.net>.
7
 
#
8
 
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9
 
# Free Software Foundation, Inc.
 
4
# Generated by GNU Autoconf 2.61.
 
5
#
 
6
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
7
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10
8
# This configure script is free software; the Free Software Foundation
11
9
# gives unlimited permission to copy, distribute and modify it.
12
10
## --------------------- ##
13
11
## M4sh Initialization.  ##
14
12
## --------------------- ##
15
13
 
16
 
# Be Bourne compatible
 
14
# Be more Bourne compatible
 
15
DUALCASE=1; export DUALCASE # for MKS sh
17
16
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
17
  emulate sh
19
18
  NULLCMD=:
20
19
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21
20
  # is contrary to our usage.  Disable this feature.
22
21
  alias -g '${1+"$@"}'='"$@"'
23
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24
 
  set -o posix
 
22
  setopt NO_GLOB_SUBST
 
23
else
 
24
  case `(set -o) 2>/dev/null` in
 
25
  *posix*) set -o posix ;;
 
26
esac
 
27
 
 
28
fi
 
29
 
 
30
 
 
31
 
 
32
 
 
33
# PATH needs CR
 
34
# Avoid depending upon Character Ranges.
 
35
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
36
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
37
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
38
as_cr_digits='0123456789'
 
39
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
40
 
 
41
# The user is always right.
 
42
if test "${PATH_SEPARATOR+set}" != set; then
 
43
  echo "#! /bin/sh" >conf$$.sh
 
44
  echo  "exit 0"   >>conf$$.sh
 
45
  chmod +x conf$$.sh
 
46
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
47
    PATH_SEPARATOR=';'
 
48
  else
 
49
    PATH_SEPARATOR=:
 
50
  fi
 
51
  rm -f conf$$.sh
25
52
fi
26
53
 
27
54
# Support unset when possible.
28
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
55
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29
56
  as_unset=unset
30
57
else
31
58
  as_unset=false
32
59
fi
33
60
 
34
61
 
 
62
# IFS
 
63
# We need space, tab and new line, in precisely that order.  Quoting is
 
64
# there to prevent editors from complaining about space-tab.
 
65
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
66
# splitting by setting IFS to empty value.)
 
67
as_nl='
 
68
'
 
69
IFS=" ""        $as_nl"
 
70
 
 
71
# Find who we are.  Look in the path if we contain no directory separator.
 
72
case $0 in
 
73
  *[\\/]* ) as_myself=$0 ;;
 
74
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
75
for as_dir in $PATH
 
76
do
 
77
  IFS=$as_save_IFS
 
78
  test -z "$as_dir" && as_dir=.
 
79
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
80
done
 
81
IFS=$as_save_IFS
 
82
 
 
83
     ;;
 
84
esac
 
85
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
86
# in which case we are not to be found in the path.
 
87
if test "x$as_myself" = x; then
 
88
  as_myself=$0
 
89
fi
 
90
if test ! -f "$as_myself"; then
 
91
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
92
  { (exit 1); exit 1; }
 
93
fi
 
94
 
35
95
# Work around bugs in pre-3.0 UWIN ksh.
36
 
$as_unset ENV MAIL MAILPATH
 
96
for as_var in ENV MAIL MAILPATH
 
97
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
98
done
37
99
PS1='$ '
38
100
PS2='> '
39
101
PS4='+ '
44
106
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45
107
  LC_TELEPHONE LC_TIME
46
108
do
47
 
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
109
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48
110
    eval $as_var=C; export $as_var
49
111
  else
50
 
    $as_unset $as_var
 
112
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
51
113
  fi
52
114
done
53
115
 
54
116
# Required to use basename.
55
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
117
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
118
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
56
119
  as_expr=expr
57
120
else
58
121
  as_expr=false
59
122
fi
60
123
 
61
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
124
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
62
125
  as_basename=basename
63
126
else
64
127
  as_basename=false
66
129
 
67
130
 
68
131
# Name of the executable.
69
 
as_me=`$as_basename "$0" ||
 
132
as_me=`$as_basename -- "$0" ||
70
133
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71
134
         X"$0" : 'X\(//\)$' \| \
72
 
         X"$0" : 'X\(/\)$' \| \
73
 
         .     : '\(.\)' 2>/dev/null ||
 
135
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
74
136
echo X/"$0" |
75
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
77
 
          /^X\/\(\/\).*/{ s//\1/; q; }
78
 
          s/.*/./; q'`
79
 
 
80
 
 
81
 
# PATH needs CR, and LINENO needs CR and PATH.
82
 
# Avoid depending upon Character Ranges.
83
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86
 
as_cr_digits='0123456789'
87
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
88
 
 
89
 
# The user is always right.
90
 
if test "${PATH_SEPARATOR+set}" != set; then
91
 
  echo "#! /bin/sh" >conf$$.sh
92
 
  echo  "exit 0"   >>conf$$.sh
93
 
  chmod +x conf$$.sh
94
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95
 
    PATH_SEPARATOR=';'
96
 
  else
97
 
    PATH_SEPARATOR=:
98
 
  fi
99
 
  rm -f conf$$.sh
100
 
fi
101
 
 
102
 
 
103
 
  as_lineno_1=$LINENO
104
 
  as_lineno_2=$LINENO
105
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
107
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
108
 
  # Find who we are.  Look in the path if we contain no path at all
109
 
  # relative or not.
110
 
  case $0 in
111
 
    *[\\/]* ) as_myself=$0 ;;
112
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113
 
for as_dir in $PATH
114
 
do
115
 
  IFS=$as_save_IFS
116
 
  test -z "$as_dir" && as_dir=.
117
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118
 
done
119
 
 
120
 
       ;;
121
 
  esac
122
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
123
 
  # in which case we are not to be found in the path.
124
 
  if test "x$as_myself" = x; then
125
 
    as_myself=$0
126
 
  fi
127
 
  if test ! -f "$as_myself"; then
128
 
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129
 
   { (exit 1); exit 1; }; }
130
 
  fi
131
 
  case $CONFIG_SHELL in
132
 
  '')
 
137
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
138
            s//\1/
 
139
            q
 
140
          }
 
141
          /^X\/\(\/\/\)$/{
 
142
            s//\1/
 
143
            q
 
144
          }
 
145
          /^X\/\(\/\).*/{
 
146
            s//\1/
 
147
            q
 
148
          }
 
149
          s/.*/./; q'`
 
150
 
 
151
# CDPATH.
 
152
$as_unset CDPATH
 
153
 
 
154
 
 
155
if test "x$CONFIG_SHELL" = x; then
 
156
  if (eval ":") 2>/dev/null; then
 
157
  as_have_required=yes
 
158
else
 
159
  as_have_required=no
 
160
fi
 
161
 
 
162
  if test $as_have_required = yes &&     (eval ":
 
163
(as_func_return () {
 
164
  (exit \$1)
 
165
}
 
166
as_func_success () {
 
167
  as_func_return 0
 
168
}
 
169
as_func_failure () {
 
170
  as_func_return 1
 
171
}
 
172
as_func_ret_success () {
 
173
  return 0
 
174
}
 
175
as_func_ret_failure () {
 
176
  return 1
 
177
}
 
178
 
 
179
exitcode=0
 
180
if as_func_success; then
 
181
  :
 
182
else
 
183
  exitcode=1
 
184
  echo as_func_success failed.
 
185
fi
 
186
 
 
187
if as_func_failure; then
 
188
  exitcode=1
 
189
  echo as_func_failure succeeded.
 
190
fi
 
191
 
 
192
if as_func_ret_success; then
 
193
  :
 
194
else
 
195
  exitcode=1
 
196
  echo as_func_ret_success failed.
 
197
fi
 
198
 
 
199
if as_func_ret_failure; then
 
200
  exitcode=1
 
201
  echo as_func_ret_failure succeeded.
 
202
fi
 
203
 
 
204
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
205
  :
 
206
else
 
207
  exitcode=1
 
208
  echo positional parameters were not saved.
 
209
fi
 
210
 
 
211
test \$exitcode = 0) || { (exit 1); exit 1; }
 
212
 
 
213
(
 
214
  as_lineno_1=\$LINENO
 
215
  as_lineno_2=\$LINENO
 
216
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
217
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
218
") 2> /dev/null; then
 
219
  :
 
220
else
 
221
  as_candidate_shells=
133
222
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134
223
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135
224
do
136
225
  IFS=$as_save_IFS
137
226
  test -z "$as_dir" && as_dir=.
138
 
  for as_base in sh bash ksh sh5; do
139
 
         case $as_dir in
 
227
  case $as_dir in
140
228
         /*)
141
 
           if ("$as_dir/$as_base" -c '
142
 
  as_lineno_1=$LINENO
143
 
  as_lineno_2=$LINENO
144
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
146
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
147
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149
 
             CONFIG_SHELL=$as_dir/$as_base
150
 
             export CONFIG_SHELL
151
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152
 
           fi;;
153
 
         esac
154
 
       done
 
229
           for as_base in sh bash ksh sh5; do
 
230
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
231
           done;;
 
232
       esac
155
233
done
156
 
;;
157
 
  esac
 
234
IFS=$as_save_IFS
 
235
 
 
236
 
 
237
      for as_shell in $as_candidate_shells $SHELL; do
 
238
         # Try only shells that exist, to save several forks.
 
239
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
240
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
241
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
242
  emulate sh
 
243
  NULLCMD=:
 
244
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
245
  # is contrary to our usage.  Disable this feature.
 
246
  alias -g '${1+"$@"}'='"$@"'
 
247
  setopt NO_GLOB_SUBST
 
248
else
 
249
  case `(set -o) 2>/dev/null` in
 
250
  *posix*) set -o posix ;;
 
251
esac
 
252
 
 
253
fi
 
254
 
 
255
 
 
256
:
 
257
_ASEOF
 
258
}; then
 
259
  CONFIG_SHELL=$as_shell
 
260
               as_have_required=yes
 
261
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
262
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
263
  emulate sh
 
264
  NULLCMD=:
 
265
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
266
  # is contrary to our usage.  Disable this feature.
 
267
  alias -g '${1+"$@"}'='"$@"'
 
268
  setopt NO_GLOB_SUBST
 
269
else
 
270
  case `(set -o) 2>/dev/null` in
 
271
  *posix*) set -o posix ;;
 
272
esac
 
273
 
 
274
fi
 
275
 
 
276
 
 
277
:
 
278
(as_func_return () {
 
279
  (exit $1)
 
280
}
 
281
as_func_success () {
 
282
  as_func_return 0
 
283
}
 
284
as_func_failure () {
 
285
  as_func_return 1
 
286
}
 
287
as_func_ret_success () {
 
288
  return 0
 
289
}
 
290
as_func_ret_failure () {
 
291
  return 1
 
292
}
 
293
 
 
294
exitcode=0
 
295
if as_func_success; then
 
296
  :
 
297
else
 
298
  exitcode=1
 
299
  echo as_func_success failed.
 
300
fi
 
301
 
 
302
if as_func_failure; then
 
303
  exitcode=1
 
304
  echo as_func_failure succeeded.
 
305
fi
 
306
 
 
307
if as_func_ret_success; then
 
308
  :
 
309
else
 
310
  exitcode=1
 
311
  echo as_func_ret_success failed.
 
312
fi
 
313
 
 
314
if as_func_ret_failure; then
 
315
  exitcode=1
 
316
  echo as_func_ret_failure succeeded.
 
317
fi
 
318
 
 
319
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
320
  :
 
321
else
 
322
  exitcode=1
 
323
  echo positional parameters were not saved.
 
324
fi
 
325
 
 
326
test $exitcode = 0) || { (exit 1); exit 1; }
 
327
 
 
328
(
 
329
  as_lineno_1=$LINENO
 
330
  as_lineno_2=$LINENO
 
331
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
332
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
333
 
 
334
_ASEOF
 
335
}; then
 
336
  break
 
337
fi
 
338
 
 
339
fi
 
340
 
 
341
      done
 
342
 
 
343
      if test "x$CONFIG_SHELL" != x; then
 
344
  for as_var in BASH_ENV ENV
 
345
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
346
        done
 
347
        export CONFIG_SHELL
 
348
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
349
fi
 
350
 
 
351
 
 
352
    if test $as_have_required = no; then
 
353
  echo This script requires a shell more modern than all the
 
354
      echo shells that I found on your system.  Please install a
 
355
      echo modern shell, or manually run the script under such a
 
356
      echo shell if you do have one.
 
357
      { (exit 1); exit 1; }
 
358
fi
 
359
 
 
360
 
 
361
fi
 
362
 
 
363
fi
 
364
 
 
365
 
 
366
 
 
367
(eval "as_func_return () {
 
368
  (exit \$1)
 
369
}
 
370
as_func_success () {
 
371
  as_func_return 0
 
372
}
 
373
as_func_failure () {
 
374
  as_func_return 1
 
375
}
 
376
as_func_ret_success () {
 
377
  return 0
 
378
}
 
379
as_func_ret_failure () {
 
380
  return 1
 
381
}
 
382
 
 
383
exitcode=0
 
384
if as_func_success; then
 
385
  :
 
386
else
 
387
  exitcode=1
 
388
  echo as_func_success failed.
 
389
fi
 
390
 
 
391
if as_func_failure; then
 
392
  exitcode=1
 
393
  echo as_func_failure succeeded.
 
394
fi
 
395
 
 
396
if as_func_ret_success; then
 
397
  :
 
398
else
 
399
  exitcode=1
 
400
  echo as_func_ret_success failed.
 
401
fi
 
402
 
 
403
if as_func_ret_failure; then
 
404
  exitcode=1
 
405
  echo as_func_ret_failure succeeded.
 
406
fi
 
407
 
 
408
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
409
  :
 
410
else
 
411
  exitcode=1
 
412
  echo positional parameters were not saved.
 
413
fi
 
414
 
 
415
test \$exitcode = 0") || {
 
416
  echo No shell found that supports shell functions.
 
417
  echo Please tell autoconf@gnu.org about your system,
 
418
  echo including any error possibly output before this
 
419
  echo message
 
420
}
 
421
 
 
422
 
 
423
 
 
424
  as_lineno_1=$LINENO
 
425
  as_lineno_2=$LINENO
 
426
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
427
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
158
428
 
159
429
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160
430
  # uniformly replaced by the line number.  The first 'sed' inserts a
161
 
  # line-number line before each line; the second 'sed' does the real
162
 
  # work.  The second script uses 'N' to pair each line-number line
163
 
  # with the numbered line, and appends trailing '-' during
164
 
  # substitution so that $LINENO is not a special case at line end.
 
431
  # line-number line after each line using $LINENO; the second 'sed'
 
432
  # does the real work.  The second script uses 'N' to pair each
 
433
  # line-number line with the line containing $LINENO, and appends
 
434
  # trailing '-' during substitution so that $LINENO is not a special
 
435
  # case at line end.
165
436
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
167
 
  sed '=' <$as_myself |
 
437
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
438
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
439
  sed -n '
 
440
    p
 
441
    /[$]LINENO/=
 
442
  ' <$as_myself |
168
443
    sed '
 
444
      s/[$]LINENO.*/&-/
 
445
      t lineno
 
446
      b
 
447
      :lineno
169
448
      N
170
 
      s,$,-,
171
 
      : loop
172
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
449
      :loop
 
450
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
173
451
      t loop
174
 
      s,-$,,
175
 
      s,^['$as_cr_digits']*\n,,
 
452
      s/-\n.*//
176
453
    ' >$as_me.lineno &&
177
 
  chmod +x $as_me.lineno ||
 
454
  chmod +x "$as_me.lineno" ||
178
455
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179
456
   { (exit 1); exit 1; }; }
180
457
 
181
458
  # Don't try to exec as it changes $[0], causing all sort of problems
182
459
  # (the dirname of $[0] is not the place where we might find the
183
 
  # original and so on.  Autoconf is especially sensible to this).
184
 
  . ./$as_me.lineno
 
460
  # original and so on.  Autoconf is especially sensitive to this).
 
461
  . "./$as_me.lineno"
185
462
  # Exit status is that of the last command.
186
463
  exit
187
464
}
188
465
 
189
466
 
190
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191
 
  *c*,-n*) ECHO_N= ECHO_C='
192
 
' ECHO_T='      ' ;;
193
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
467
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
468
  as_dirname=dirname
 
469
else
 
470
  as_dirname=false
 
471
fi
 
472
 
 
473
ECHO_C= ECHO_N= ECHO_T=
 
474
case `echo -n x` in
 
475
-n*)
 
476
  case `echo 'x\c'` in
 
477
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
478
  *)   ECHO_C='\c';;
 
479
  esac;;
 
480
*)
 
481
  ECHO_N='-n';;
195
482
esac
196
483
 
197
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
484
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
485
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
198
486
  as_expr=expr
199
487
else
200
488
  as_expr=false
201
489
fi
202
490
 
203
491
rm -f conf$$ conf$$.exe conf$$.file
 
492
if test -d conf$$.dir; then
 
493
  rm -f conf$$.dir/conf$$.file
 
494
else
 
495
  rm -f conf$$.dir
 
496
  mkdir conf$$.dir
 
497
fi
204
498
echo >conf$$.file
205
499
if ln -s conf$$.file conf$$ 2>/dev/null; then
206
 
  # We could just check for DJGPP; but this test a) works b) is more generic
207
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208
 
  if test -f conf$$.exe; then
209
 
    # Don't use ln at all; we don't have any links
 
500
  as_ln_s='ln -s'
 
501
  # ... but there are two gotchas:
 
502
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
503
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
504
  # In both cases, we have to default to `cp -p'.
 
505
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
210
506
    as_ln_s='cp -p'
211
 
  else
212
 
    as_ln_s='ln -s'
213
 
  fi
214
507
elif ln conf$$.file conf$$ 2>/dev/null; then
215
508
  as_ln_s=ln
216
509
else
217
510
  as_ln_s='cp -p'
218
511
fi
219
 
rm -f conf$$ conf$$.exe conf$$.file
 
512
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
513
rmdir conf$$.dir 2>/dev/null
220
514
 
221
515
if mkdir -p . 2>/dev/null; then
222
516
  as_mkdir_p=:
223
517
else
 
518
  test -d ./-p && rmdir ./-p
224
519
  as_mkdir_p=false
225
520
fi
226
521
 
227
 
as_executable_p="test -f"
 
522
if test -x / >/dev/null 2>&1; then
 
523
  as_test_x='test -x'
 
524
else
 
525
  if ls -dL / >/dev/null 2>&1; then
 
526
    as_ls_L_option=L
 
527
  else
 
528
    as_ls_L_option=
 
529
  fi
 
530
  as_test_x='
 
531
    eval sh -c '\''
 
532
      if test -d "$1"; then
 
533
        test -d "$1/.";
 
534
      else
 
535
        case $1 in
 
536
        -*)set "./$1";;
 
537
        esac;
 
538
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
539
        ???[sx]*):;;*)false;;esac;fi
 
540
    '\'' sh
 
541
  '
 
542
fi
 
543
as_executable_p=$as_test_x
228
544
 
229
545
# Sed expression to map a string onto a valid CPP name.
230
 
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
546
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
547
 
232
548
# Sed expression to map a string onto a valid variable name.
233
 
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234
 
 
235
 
 
236
 
# IFS
237
 
# We need space, tab and new line, in precisely that order.
238
 
as_nl='
239
 
'
240
 
IFS="   $as_nl"
241
 
 
242
 
# CDPATH.
243
 
$as_unset CDPATH
244
 
 
 
549
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
550
 
 
551
 
 
552
 
 
553
exec 7<&0 </dev/null 6>&1
245
554
 
246
555
# Name of the host.
247
556
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248
557
# so uname gets run too.
249
558
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
559
 
251
 
exec 6>&1
252
 
 
253
560
#
254
561
# Initializations.
255
562
#
256
563
ac_default_prefix=/usr/local
 
564
ac_clean_files=
257
565
ac_config_libobj_dir=.
 
566
LIBOBJS=
258
567
cross_compiling=no
259
568
subdirs=
260
569
MFLAGS=
261
570
MAKEFLAGS=
262
571
SHELL=${CONFIG_SHELL-/bin/sh}
263
572
 
264
 
# Maximum number of lines to put in a shell here document.
265
 
# This variable seems obsolete.  It should probably be removed, and
266
 
# only ac_max_sed_lines should be used.
267
 
: ${ac_max_here_lines=38}
268
 
 
269
573
# Identity of this package.
270
 
PACKAGE_NAME='XVidcap'
271
 
PACKAGE_TARNAME='xvidcap'
272
 
PACKAGE_VERSION='1.1.3'
273
 
PACKAGE_STRING='XVidcap 1.1.3'
274
 
PACKAGE_BUGREPORT='karl.h.beckers@gmx.net'
 
574
PACKAGE_NAME=
 
575
PACKAGE_TARNAME=
 
576
PACKAGE_VERSION=
 
577
PACKAGE_STRING=
 
578
PACKAGE_BUGREPORT=
275
579
 
276
 
ac_unique_file="src/capture.c"
 
580
ac_unique_file="configure.in"
277
581
# Factoring default headers for most tests.
278
582
ac_includes_default="\
279
583
#include <stdio.h>
280
 
#if HAVE_SYS_TYPES_H
 
584
#ifdef HAVE_SYS_TYPES_H
281
585
# include <sys/types.h>
282
586
#endif
283
 
#if HAVE_SYS_STAT_H
 
587
#ifdef HAVE_SYS_STAT_H
284
588
# include <sys/stat.h>
285
589
#endif
286
 
#if STDC_HEADERS
 
590
#ifdef STDC_HEADERS
287
591
# include <stdlib.h>
288
592
# include <stddef.h>
289
593
#else
290
 
# if HAVE_STDLIB_H
 
594
# ifdef HAVE_STDLIB_H
291
595
#  include <stdlib.h>
292
596
# endif
293
597
#endif
294
 
#if HAVE_STRING_H
295
 
# if !STDC_HEADERS && HAVE_MEMORY_H
 
598
#ifdef HAVE_STRING_H
 
599
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
296
600
#  include <memory.h>
297
601
# endif
298
602
# include <string.h>
299
603
#endif
300
 
#if HAVE_STRINGS_H
 
604
#ifdef HAVE_STRINGS_H
301
605
# include <strings.h>
302
606
#endif
303
 
#if HAVE_INTTYPES_H
 
607
#ifdef HAVE_INTTYPES_H
304
608
# include <inttypes.h>
305
 
#else
306
 
# if HAVE_STDINT_H
307
 
#  include <stdint.h>
308
 
# endif
309
 
#endif
310
 
#if HAVE_UNISTD_H
 
609
#endif
 
610
#ifdef HAVE_STDINT_H
 
611
# include <stdint.h>
 
612
#endif
 
613
#ifdef HAVE_UNISTD_H
311
614
# include <unistd.h>
312
615
#endif"
313
616
 
314
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE SOLARIS_TRUE SOLARIS_FALSE LINUX_TRUE LINUX_FALSE HPUX_TRUE HPUX_FALSE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS HAVE_LIBZ_TRUE HAVE_LIBZ_FALSE HAVE_LIBPNG_TRUE HAVE_LIBPNG_FALSE HAVE_LIBJPEG_TRUE HAVE_LIBJPEG_FALSE HAVE_LIBAVCODEC_TRUE HAVE_LIBAVCODEC_FALSE HAVE_LIBAVFORMAT_TRUE HAVE_LIBAVFORMAT_FALSE STATIC_Z_TRUE STATIC_Z_FALSE STATIC_PNG_TRUE STATIC_PNG_FALSE STATIC_JPEG_TRUE STATIC_JPEG_FALSE STATIC_AVFORMAT_TRUE STATIC_AVFORMAT_FALSE STATIC_AVCODEC_TRUE STATIC_AVCODEC_FALSE EGREP LIBOBJS HAVE_SYS_SOUNDCARD_H_TRUE HAVE_SYS_SOUNDCARD_H_FALSE HAVE_GETOPT_LONG_TRUE HAVE_GETOPT_LONG_FALSE HAVE_MALLOC_TRUE HAVE_MALLOC_FALSE HAVE_REALLOC_TRUE HAVE_REALLOC_FALSE WITHGT_TRUE WITHGT_FALSE WITHGTK2_TRUE WITHGTK2_FALSE HAVE_FFMPEG_AUDIO_TRUE HAVE_FFMPEG_AUDIO_FALSE LTLIBOBJS'
 
617
ac_subst_vars='SHELL
 
618
PATH_SEPARATOR
 
619
PACKAGE_NAME
 
620
PACKAGE_TARNAME
 
621
PACKAGE_VERSION
 
622
PACKAGE_STRING
 
623
PACKAGE_BUGREPORT
 
624
exec_prefix
 
625
prefix
 
626
program_transform_name
 
627
bindir
 
628
sbindir
 
629
libexecdir
 
630
datarootdir
 
631
datadir
 
632
sysconfdir
 
633
sharedstatedir
 
634
localstatedir
 
635
includedir
 
636
oldincludedir
 
637
docdir
 
638
infodir
 
639
htmldir
 
640
dvidir
 
641
pdfdir
 
642
psdir
 
643
libdir
 
644
localedir
 
645
mandir
 
646
DEFS
 
647
ECHO_C
 
648
ECHO_N
 
649
ECHO_T
 
650
LIBS
 
651
build_alias
 
652
host_alias
 
653
target_alias
 
654
INSTALL_PROGRAM
 
655
INSTALL_SCRIPT
 
656
INSTALL_DATA
 
657
CYGPATH_W
 
658
PACKAGE
 
659
VERSION
 
660
ACLOCAL
 
661
AUTOCONF
 
662
AUTOMAKE
 
663
AUTOHEADER
 
664
MAKEINFO
 
665
install_sh
 
666
STRIP
 
667
INSTALL_STRIP_PROGRAM
 
668
mkdir_p
 
669
AWK
 
670
SET_MAKE
 
671
am__leading_dot
 
672
AMTAR
 
673
am__tar
 
674
am__untar
 
675
MAINTAINER_MODE_TRUE
 
676
MAINTAINER_MODE_FALSE
 
677
MAINT
 
678
INTLTOOL_DESKTOP_RULE
 
679
INTLTOOL_DIRECTORY_RULE
 
680
INTLTOOL_KEYS_RULE
 
681
INTLTOOL_PROP_RULE
 
682
INTLTOOL_OAF_RULE
 
683
INTLTOOL_PONG_RULE
 
684
INTLTOOL_SERVER_RULE
 
685
INTLTOOL_SHEET_RULE
 
686
INTLTOOL_SOUNDLIST_RULE
 
687
INTLTOOL_UI_RULE
 
688
INTLTOOL_XAM_RULE
 
689
INTLTOOL_KBD_RULE
 
690
INTLTOOL_XML_RULE
 
691
INTLTOOL_XML_NOMERGE_RULE
 
692
INTLTOOL_CAVES_RULE
 
693
INTLTOOL_SCHEMAS_RULE
 
694
INTLTOOL_THEME_RULE
 
695
INTLTOOL_SERVICE_RULE
 
696
INTLTOOL_EXTRACT
 
697
INTLTOOL_MERGE
 
698
INTLTOOL_UPDATE
 
699
INTLTOOL_PERL
 
700
INTLTOOL_ICONV
 
701
INTLTOOL_MSGFMT
 
702
INTLTOOL_MSGMERGE
 
703
INTLTOOL_XGETTEXT
 
704
ALL_LINGUAS
 
705
CC
 
706
CFLAGS
 
707
LDFLAGS
 
708
CPPFLAGS
 
709
ac_ct_CC
 
710
EXEEXT
 
711
OBJEXT
 
712
DEPDIR
 
713
am__include
 
714
am__quote
 
715
AMDEP_TRUE
 
716
AMDEP_FALSE
 
717
AMDEPBACKSLASH
 
718
CCDEPMODE
 
719
am__fastdepCC_TRUE
 
720
am__fastdepCC_FALSE
 
721
DATADIRNAME
 
722
CPP
 
723
GREP
 
724
EGREP
 
725
RANLIB
 
726
BC
 
727
XMKMF
 
728
X_CFLAGS
 
729
X_PRE_LIBS
 
730
X_LIBS
 
731
X_EXTRA_LIBS
 
732
SCROLLKEEPER_BUILD_REQUIRED
 
733
SK_CONFIG
 
734
MK
 
735
DOCBOOK2X_MAN
 
736
XML2PO
 
737
GETTEXT_PACKAGE
 
738
build
 
739
build_cpu
 
740
build_vendor
 
741
build_os
 
742
host
 
743
host_cpu
 
744
host_vendor
 
745
host_os
 
746
USE_NLS
 
747
MSGFMT
 
748
MSGFMT_OPTS
 
749
GMSGFMT
 
750
XGETTEXT
 
751
CATALOGS
 
752
CATOBJEXT
 
753
GMOFILES
 
754
INSTOBJEXT
 
755
INTLLIBS
 
756
PO_IN_DATADIR_TRUE
 
757
PO_IN_DATADIR_FALSE
 
758
POFILES
 
759
POSUB
 
760
MKINSTALLDIRS
 
761
PKG_CONFIG
 
762
PACKAGE_CFLAGS
 
763
PACKAGE_LIBS
 
764
SOLARIS_TRUE
 
765
SOLARIS_FALSE
 
766
LINUX_TRUE
 
767
LINUX_FALSE
 
768
HPUX_TRUE
 
769
HPUX_FALSE
 
770
FREEBSD_TRUE
 
771
FREEBSD_FALSE
 
772
HAVE_LIBMP3LAME_TRUE
 
773
HAVE_LIBMP3LAME_FALSE
 
774
HAVE_LIBTHEORA_TRUE
 
775
HAVE_LIBTHEORA_FALSE
 
776
HAVE_PTHREAD_TRUE
 
777
HAVE_PTHREAD_FALSE
 
778
STATIC_AVFORMAT_TRUE
 
779
STATIC_AVFORMAT_FALSE
 
780
STATIC_AVCODEC_TRUE
 
781
STATIC_AVCODEC_FALSE
 
782
STATIC_AVUTIL_TRUE
 
783
STATIC_AVUTIL_FALSE
 
784
LIBOBJS
 
785
HAVE_GETOPT_LONG_TRUE
 
786
HAVE_GETOPT_LONG_FALSE
 
787
HAVE_MALLOC_TRUE
 
788
HAVE_MALLOC_FALSE
 
789
HAVE_REALLOC_TRUE
 
790
HAVE_REALLOC_FALSE
 
791
HAVE_FFMPEG_AUDIO_TRUE
 
792
HAVE_FFMPEG_AUDIO_FALSE
 
793
LTLIBOBJS'
315
794
ac_subst_files=''
 
795
      ac_precious_vars='build_alias
 
796
host_alias
 
797
target_alias
 
798
CC
 
799
CFLAGS
 
800
LDFLAGS
 
801
LIBS
 
802
CPPFLAGS
 
803
CPP
 
804
XMKMF
 
805
PKG_CONFIG
 
806
PACKAGE_CFLAGS
 
807
PACKAGE_LIBS'
 
808
 
316
809
 
317
810
# Initialize some variables set by options.
318
811
ac_init_help=
339
832
# and all the variables that are supposed to be based on exec_prefix
340
833
# by default will actually change.
341
834
# Use braces instead of parens because sh, perl, etc. also accept them.
 
835
# (The list follows the same order as the GNU Coding Standards.)
342
836
bindir='${exec_prefix}/bin'
343
837
sbindir='${exec_prefix}/sbin'
344
838
libexecdir='${exec_prefix}/libexec'
345
 
datadir='${prefix}/share'
 
839
datarootdir='${prefix}/share'
 
840
datadir='${datarootdir}'
346
841
sysconfdir='${prefix}/etc'
347
842
sharedstatedir='${prefix}/com'
348
843
localstatedir='${prefix}/var'
349
 
libdir='${exec_prefix}/lib'
350
844
includedir='${prefix}/include'
351
845
oldincludedir='/usr/include'
352
 
infodir='${prefix}/info'
353
 
mandir='${prefix}/man'
 
846
docdir='${datarootdir}/doc/${PACKAGE}'
 
847
infodir='${datarootdir}/info'
 
848
htmldir='${docdir}'
 
849
dvidir='${docdir}'
 
850
pdfdir='${docdir}'
 
851
psdir='${docdir}'
 
852
libdir='${exec_prefix}/lib'
 
853
localedir='${datarootdir}/locale'
 
854
mandir='${datarootdir}/man'
354
855
 
355
856
ac_prev=
 
857
ac_dashdash=
356
858
for ac_option
357
859
do
358
860
  # If the previous option needs an argument, assign it.
359
861
  if test -n "$ac_prev"; then
360
 
    eval "$ac_prev=\$ac_option"
 
862
    eval $ac_prev=\$ac_option
361
863
    ac_prev=
362
864
    continue
363
865
  fi
364
866
 
365
 
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
867
  case $ac_option in
 
868
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
869
  *)    ac_optarg=yes ;;
 
870
  esac
366
871
 
367
872
  # Accept the important Cygnus configure options, so we can diagnose typos.
368
873
 
369
 
  case $ac_option in
 
874
  case $ac_dashdash$ac_option in
 
875
  --)
 
876
    ac_dashdash=yes ;;
370
877
 
371
878
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
372
879
    ac_prev=bindir ;;
388
895
  --config-cache | -C)
389
896
    cache_file=config.cache ;;
390
897
 
391
 
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
898
  -datadir | --datadir | --datadi | --datad)
392
899
    ac_prev=datadir ;;
393
 
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394
 
  | --da=*)
 
900
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
395
901
    datadir=$ac_optarg ;;
396
902
 
 
903
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
904
  | --dataroo | --dataro | --datar)
 
905
    ac_prev=datarootdir ;;
 
906
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
907
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
908
    datarootdir=$ac_optarg ;;
 
909
 
397
910
  -disable-* | --disable-*)
398
911
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399
912
    # Reject names that are not valid shell variable names.
400
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
913
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
401
914
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402
915
   { (exit 1); exit 1; }; }
403
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404
 
    eval "enable_$ac_feature=no" ;;
 
916
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
917
    eval enable_$ac_feature=no ;;
 
918
 
 
919
  -docdir | --docdir | --docdi | --doc | --do)
 
920
    ac_prev=docdir ;;
 
921
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
922
    docdir=$ac_optarg ;;
 
923
 
 
924
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
925
    ac_prev=dvidir ;;
 
926
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
927
    dvidir=$ac_optarg ;;
405
928
 
406
929
  -enable-* | --enable-*)
407
930
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408
931
    # Reject names that are not valid shell variable names.
409
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
932
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
410
933
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411
934
   { (exit 1); exit 1; }; }
412
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413
 
    case $ac_option in
414
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415
 
      *) ac_optarg=yes ;;
416
 
    esac
417
 
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
935
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
936
    eval enable_$ac_feature=\$ac_optarg ;;
418
937
 
419
938
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420
939
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
441
960
  -host=* | --host=* | --hos=* | --ho=*)
442
961
    host_alias=$ac_optarg ;;
443
962
 
 
963
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
964
    ac_prev=htmldir ;;
 
965
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
966
  | --ht=*)
 
967
    htmldir=$ac_optarg ;;
 
968
 
444
969
  -includedir | --includedir | --includedi | --included | --include \
445
970
  | --includ | --inclu | --incl | --inc)
446
971
    ac_prev=includedir ;;
465
990
  | --libexe=* | --libex=* | --libe=*)
466
991
    libexecdir=$ac_optarg ;;
467
992
 
 
993
  -localedir | --localedir | --localedi | --localed | --locale)
 
994
    ac_prev=localedir ;;
 
995
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
996
    localedir=$ac_optarg ;;
 
997
 
468
998
  -localstatedir | --localstatedir | --localstatedi | --localstated \
469
 
  | --localstate | --localstat | --localsta | --localst \
470
 
  | --locals | --local | --loca | --loc | --lo)
 
999
  | --localstate | --localstat | --localsta | --localst | --locals)
471
1000
    ac_prev=localstatedir ;;
472
1001
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474
 
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
1002
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
475
1003
    localstatedir=$ac_optarg ;;
476
1004
 
477
1005
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
536
1064
  | --progr-tra=* | --program-tr=* | --program-t=*)
537
1065
    program_transform_name=$ac_optarg ;;
538
1066
 
 
1067
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1068
    ac_prev=pdfdir ;;
 
1069
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1070
    pdfdir=$ac_optarg ;;
 
1071
 
 
1072
  -psdir | --psdir | --psdi | --psd | --ps)
 
1073
    ac_prev=psdir ;;
 
1074
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1075
    psdir=$ac_optarg ;;
 
1076
 
539
1077
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540
1078
  | -silent | --silent | --silen | --sile | --sil)
541
1079
    silent=yes ;;
588
1126
  -with-* | --with-*)
589
1127
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590
1128
    # Reject names that are not valid shell variable names.
591
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
1129
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
592
1130
      { echo "$as_me: error: invalid package name: $ac_package" >&2
593
1131
   { (exit 1); exit 1; }; }
594
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
595
 
    case $ac_option in
596
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597
 
      *) ac_optarg=yes ;;
598
 
    esac
599
 
    eval "with_$ac_package='$ac_optarg'" ;;
 
1132
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1133
    eval with_$ac_package=\$ac_optarg ;;
600
1134
 
601
1135
  -without-* | --without-*)
602
1136
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603
1137
    # Reject names that are not valid shell variable names.
604
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
1138
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
605
1139
      { echo "$as_me: error: invalid package name: $ac_package" >&2
606
1140
   { (exit 1); exit 1; }; }
607
 
    ac_package=`echo $ac_package | sed 's/-/_/g'`
608
 
    eval "with_$ac_package=no" ;;
 
1141
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1142
    eval with_$ac_package=no ;;
609
1143
 
610
1144
  --x)
611
1145
    # Obsolete; use --with-x.
636
1170
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637
1171
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638
1172
   { (exit 1); exit 1; }; }
639
 
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640
 
    eval "$ac_envvar='$ac_optarg'"
 
1173
    eval $ac_envvar=\$ac_optarg
641
1174
    export $ac_envvar ;;
642
1175
 
643
1176
  *)
657
1190
   { (exit 1); exit 1; }; }
658
1191
fi
659
1192
 
660
 
# Be sure to have absolute paths.
661
 
for ac_var in exec_prefix prefix
662
 
do
663
 
  eval ac_val=$`echo $ac_var`
664
 
  case $ac_val in
665
 
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667
 
   { (exit 1); exit 1; }; };;
668
 
  esac
669
 
done
670
 
 
671
 
# Be sure to have absolute paths.
672
 
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673
 
              localstatedir libdir includedir oldincludedir infodir mandir
674
 
do
675
 
  eval ac_val=$`echo $ac_var`
676
 
  case $ac_val in
677
 
    [\\/$]* | ?:[\\/]* ) ;;
678
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679
 
   { (exit 1); exit 1; }; };;
680
 
  esac
 
1193
# Be sure to have absolute directory names.
 
1194
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1195
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1196
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1197
                libdir localedir mandir
 
1198
do
 
1199
  eval ac_val=\$$ac_var
 
1200
  case $ac_val in
 
1201
    [\\/$]* | ?:[\\/]* )  continue;;
 
1202
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1203
  esac
 
1204
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1205
   { (exit 1); exit 1; }; }
681
1206
done
682
1207
 
683
1208
# There might be people who depend on the old broken behavior: `$host'
704
1229
test "$silent" = yes && exec 6>/dev/null
705
1230
 
706
1231
 
 
1232
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1233
ac_ls_di=`ls -di .` &&
 
1234
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1235
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1236
   { (exit 1); exit 1; }; }
 
1237
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1238
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1239
   { (exit 1); exit 1; }; }
 
1240
 
 
1241
 
707
1242
# Find the source files, if location was not specified.
708
1243
if test -z "$srcdir"; then
709
1244
  ac_srcdir_defaulted=yes
710
 
  # Try the directory containing this script, then its parent.
711
 
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
1245
  # Try the directory containing this script, then the parent directory.
 
1246
  ac_confdir=`$as_dirname -- "$0" ||
712
1247
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713
 
         X"$0" : 'X\(//\)[^/]' \| \
714
 
         X"$0" : 'X\(//\)$' \| \
715
 
         X"$0" : 'X\(/\)' \| \
716
 
         .     : '\(.\)' 2>/dev/null ||
 
1248
         X"$0" : 'X\(//\)[^/]' \| \
 
1249
         X"$0" : 'X\(//\)$' \| \
 
1250
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
717
1251
echo X"$0" |
718
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720
 
          /^X\(\/\/\)$/{ s//\1/; q; }
721
 
          /^X\(\/\).*/{ s//\1/; q; }
722
 
          s/.*/./; q'`
 
1252
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1253
            s//\1/
 
1254
            q
 
1255
          }
 
1256
          /^X\(\/\/\)[^/].*/{
 
1257
            s//\1/
 
1258
            q
 
1259
          }
 
1260
          /^X\(\/\/\)$/{
 
1261
            s//\1/
 
1262
            q
 
1263
          }
 
1264
          /^X\(\/\).*/{
 
1265
            s//\1/
 
1266
            q
 
1267
          }
 
1268
          s/.*/./; q'`
723
1269
  srcdir=$ac_confdir
724
 
  if test ! -r $srcdir/$ac_unique_file; then
 
1270
  if test ! -r "$srcdir/$ac_unique_file"; then
725
1271
    srcdir=..
726
1272
  fi
727
1273
else
728
1274
  ac_srcdir_defaulted=no
729
1275
fi
730
 
if test ! -r $srcdir/$ac_unique_file; then
731
 
  if test "$ac_srcdir_defaulted" = yes; then
732
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733
 
   { (exit 1); exit 1; }; }
734
 
  else
735
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736
 
   { (exit 1); exit 1; }; }
737
 
  fi
738
 
fi
739
 
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740
 
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741
 
   { (exit 1); exit 1; }; }
742
 
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743
 
ac_env_build_alias_set=${build_alias+set}
744
 
ac_env_build_alias_value=$build_alias
745
 
ac_cv_env_build_alias_set=${build_alias+set}
746
 
ac_cv_env_build_alias_value=$build_alias
747
 
ac_env_host_alias_set=${host_alias+set}
748
 
ac_env_host_alias_value=$host_alias
749
 
ac_cv_env_host_alias_set=${host_alias+set}
750
 
ac_cv_env_host_alias_value=$host_alias
751
 
ac_env_target_alias_set=${target_alias+set}
752
 
ac_env_target_alias_value=$target_alias
753
 
ac_cv_env_target_alias_set=${target_alias+set}
754
 
ac_cv_env_target_alias_value=$target_alias
755
 
ac_env_CC_set=${CC+set}
756
 
ac_env_CC_value=$CC
757
 
ac_cv_env_CC_set=${CC+set}
758
 
ac_cv_env_CC_value=$CC
759
 
ac_env_CFLAGS_set=${CFLAGS+set}
760
 
ac_env_CFLAGS_value=$CFLAGS
761
 
ac_cv_env_CFLAGS_set=${CFLAGS+set}
762
 
ac_cv_env_CFLAGS_value=$CFLAGS
763
 
ac_env_LDFLAGS_set=${LDFLAGS+set}
764
 
ac_env_LDFLAGS_value=$LDFLAGS
765
 
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766
 
ac_cv_env_LDFLAGS_value=$LDFLAGS
767
 
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768
 
ac_env_CPPFLAGS_value=$CPPFLAGS
769
 
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770
 
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771
 
ac_env_CPP_set=${CPP+set}
772
 
ac_env_CPP_value=$CPP
773
 
ac_cv_env_CPP_set=${CPP+set}
774
 
ac_cv_env_CPP_value=$CPP
 
1276
if test ! -r "$srcdir/$ac_unique_file"; then
 
1277
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1278
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1279
   { (exit 1); exit 1; }; }
 
1280
fi
 
1281
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1282
ac_abs_confdir=`(
 
1283
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1284
   { (exit 1); exit 1; }; }
 
1285
        pwd)`
 
1286
# When building in place, set srcdir=.
 
1287
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1288
  srcdir=.
 
1289
fi
 
1290
# Remove unnecessary trailing slashes from srcdir.
 
1291
# Double slashes in file names in object file debugging info
 
1292
# mess up M-x gdb in Emacs.
 
1293
case $srcdir in
 
1294
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1295
esac
 
1296
for ac_var in $ac_precious_vars; do
 
1297
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1298
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1299
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1300
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1301
done
775
1302
 
776
1303
#
777
1304
# Report the --help message.
780
1307
  # Omit some internal or obsolete options to make the list less imposing.
781
1308
  # This message is too long to be a string in the A/UX 3.1 sh.
782
1309
  cat <<_ACEOF
783
 
\`configure' configures XVidcap 1.1.3 to adapt to many kinds of systems.
 
1310
\`configure' configures this package to adapt to many kinds of systems.
784
1311
 
785
1312
Usage: $0 [OPTION]... [VAR=VALUE]...
786
1313
 
800
1327
  -n, --no-create         do not create output files
801
1328
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
802
1329
 
803
 
_ACEOF
804
 
 
805
 
  cat <<_ACEOF
806
1330
Installation directories:
807
1331
  --prefix=PREFIX         install architecture-independent files in PREFIX
808
 
                          [$ac_default_prefix]
 
1332
                          [$ac_default_prefix]
809
1333
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
810
 
                          [PREFIX]
 
1334
                          [PREFIX]
811
1335
 
812
1336
By default, \`make install' will install all the files in
813
1337
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
820
1344
  --bindir=DIR           user executables [EPREFIX/bin]
821
1345
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
822
1346
  --libexecdir=DIR       program executables [EPREFIX/libexec]
823
 
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
824
1347
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
825
1348
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
826
1349
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
827
1350
  --libdir=DIR           object code libraries [EPREFIX/lib]
828
1351
  --includedir=DIR       C header files [PREFIX/include]
829
1352
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
830
 
  --infodir=DIR          info documentation [PREFIX/info]
831
 
  --mandir=DIR           man documentation [PREFIX/man]
 
1353
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1354
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1355
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1356
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1357
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1358
  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
 
1359
  --htmldir=DIR          html documentation [DOCDIR]
 
1360
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1361
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1362
  --psdir=DIR            ps documentation [DOCDIR]
832
1363
_ACEOF
833
1364
 
834
1365
  cat <<\_ACEOF
841
1372
X features:
842
1373
  --x-includes=DIR    X include files are in DIR
843
1374
  --x-libraries=DIR   X library files are in DIR
 
1375
 
 
1376
System types:
 
1377
  --build=BUILD     configure for building on BUILD [guessed]
 
1378
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
844
1379
_ACEOF
845
1380
fi
846
1381
 
847
1382
if test -n "$ac_init_help"; then
848
 
  case $ac_init_help in
849
 
     short | recursive ) echo "Configuration of XVidcap 1.1.3:";;
850
 
   esac
 
1383
 
851
1384
  cat <<\_ACEOF
852
1385
 
853
1386
Optional Features:
854
1387
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
855
1388
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
856
 
  --enable-static-libs=lib1_lib2
857
 
                          link libs statically (png,jpeg,z,avcodec)
858
 
  --disable-dependency-tracking Speeds up one-time builds
859
 
  --enable-dependency-tracking  Do not reject slow dependency extractors
 
1389
  --enable-maintainer-mode  enable make rules and dependencies not useful
 
1390
                          (and sometimes confusing) to the casual installer
 
1391
  --disable-dependency-tracking  speeds up one-time build
 
1392
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1393
  --enable-libmp3lame     use libmp3lame if found (default=enabled)
 
1394
  --enable-libtheora      use libtheora if found (default=disabled)
860
1395
 
861
1396
Optional Packages:
862
1397
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
863
1398
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
864
 
  --with-gt               enable experimental GNUTime support (default: no)
865
 
  --with-forced-embedded-ffmpeg
866
 
                          don't look for available ffmpeg, also links
867
 
                          statically
868
 
  --with-gtk2             enable GTK2 GUI (default: no)
869
1399
  --with-x                use the X Window System
 
1400
  --without-forced-embedded-ffmpeg
 
1401
                          try to use ffmpeg provided by the system rather than
 
1402
                          the one included (default=always use included
 
1403
                          ffmpeg)
870
1404
 
871
1405
Some influential environment variables:
872
1406
  CC          C compiler command
873
1407
  CFLAGS      C compiler flags
874
1408
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
875
1409
              nonstandard directory <lib dir>
876
 
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
877
 
              headers in a nonstandard directory <include dir>
 
1410
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1411
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1412
              you have headers in a nonstandard directory <include dir>
878
1413
  CPP         C preprocessor
 
1414
  XMKMF       Path to xmkmf, Makefile generator for X Window System
 
1415
  PKG_CONFIG  path to pkg-config utility
 
1416
  PACKAGE_CFLAGS
 
1417
              C compiler flags for PACKAGE, overriding pkg-config
 
1418
  PACKAGE_LIBS
 
1419
              linker flags for PACKAGE, overriding pkg-config
879
1420
 
880
1421
Use these variables to override the choices made by `configure' or to help
881
1422
it to find libraries and programs with nonstandard names/locations.
882
1423
 
883
 
Report bugs to <karl.h.beckers@gmx.net>.
884
1424
_ACEOF
 
1425
ac_status=$?
885
1426
fi
886
1427
 
887
1428
if test "$ac_init_help" = "recursive"; then
888
1429
  # If there are subdirs, report their specific --help.
889
 
  ac_popdir=`pwd`
890
1430
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
891
 
    test -d $ac_dir || continue
 
1431
    test -d "$ac_dir" || continue
892
1432
    ac_builddir=.
893
1433
 
894
 
if test "$ac_dir" != .; then
 
1434
case "$ac_dir" in
 
1435
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1436
*)
895
1437
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
896
 
  # A "../" for each directory in $ac_dir_suffix.
897
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
898
 
else
899
 
  ac_dir_suffix= ac_top_builddir=
900
 
fi
 
1438
  # A ".." for each directory in $ac_dir_suffix.
 
1439
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1440
  case $ac_top_builddir_sub in
 
1441
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1442
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1443
  esac ;;
 
1444
esac
 
1445
ac_abs_top_builddir=$ac_pwd
 
1446
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1447
# for backward compatibility:
 
1448
ac_top_builddir=$ac_top_build_prefix
901
1449
 
902
1450
case $srcdir in
903
 
  .)  # No --srcdir option.  We are building in place.
 
1451
  .)  # We are building in place.
904
1452
    ac_srcdir=.
905
 
    if test -z "$ac_top_builddir"; then
906
 
       ac_top_srcdir=.
907
 
    else
908
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
909
 
    fi ;;
910
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1453
    ac_top_srcdir=$ac_top_builddir_sub
 
1454
    ac_abs_top_srcdir=$ac_pwd ;;
 
1455
  [\\/]* | ?:[\\/]* )  # Absolute name.
911
1456
    ac_srcdir=$srcdir$ac_dir_suffix;
912
 
    ac_top_srcdir=$srcdir ;;
913
 
  *) # Relative path.
914
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
915
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1457
    ac_top_srcdir=$srcdir
 
1458
    ac_abs_top_srcdir=$srcdir ;;
 
1459
  *) # Relative name.
 
1460
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1461
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1462
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
916
1463
esac
917
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
918
 
# absolute.
919
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
920
 
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
921
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
922
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
1464
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
923
1465
 
924
 
    cd $ac_dir
925
 
    # Check for guested configure; otherwise get Cygnus style configure.
926
 
    if test -f $ac_srcdir/configure.gnu; then
927
 
      echo
928
 
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
929
 
    elif test -f $ac_srcdir/configure; then
930
 
      echo
931
 
      $SHELL $ac_srcdir/configure  --help=recursive
932
 
    elif test -f $ac_srcdir/configure.ac ||
933
 
           test -f $ac_srcdir/configure.in; then
934
 
      echo
935
 
      $ac_configure --help
 
1466
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1467
    # Check for guested configure.
 
1468
    if test -f "$ac_srcdir/configure.gnu"; then
 
1469
      echo &&
 
1470
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1471
    elif test -f "$ac_srcdir/configure"; then
 
1472
      echo &&
 
1473
      $SHELL "$ac_srcdir/configure" --help=recursive
936
1474
    else
937
1475
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
938
 
    fi
939
 
    cd $ac_popdir
 
1476
    fi || ac_status=$?
 
1477
    cd "$ac_pwd" || { ac_status=$?; break; }
940
1478
  done
941
1479
fi
942
1480
 
943
 
test -n "$ac_init_help" && exit 0
 
1481
test -n "$ac_init_help" && exit $ac_status
944
1482
if $ac_init_version; then
945
1483
  cat <<\_ACEOF
946
 
XVidcap configure 1.1.3
947
 
generated by GNU Autoconf 2.57
 
1484
configure
 
1485
generated by GNU Autoconf 2.61
948
1486
 
949
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
950
 
Free Software Foundation, Inc.
 
1487
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1488
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
951
1489
This configure script is free software; the Free Software Foundation
952
1490
gives unlimited permission to copy, distribute and modify it.
953
1491
_ACEOF
954
 
  exit 0
 
1492
  exit
955
1493
fi
956
 
exec 5>config.log
957
 
cat >&5 <<_ACEOF
 
1494
cat >config.log <<_ACEOF
958
1495
This file contains any messages produced by compilers while
959
1496
running configure, to aid debugging if configure makes a mistake.
960
1497
 
961
 
It was created by XVidcap $as_me 1.1.3, which was
962
 
generated by GNU Autoconf 2.57.  Invocation command line was
 
1498
It was created by $as_me, which was
 
1499
generated by GNU Autoconf 2.61.  Invocation command line was
963
1500
 
964
1501
  $ $0 $@
965
1502
 
966
1503
_ACEOF
 
1504
exec 5>>config.log
967
1505
{
968
1506
cat <<_ASUNAME
969
1507
## --------- ##
982
1520
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
983
1521
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
984
1522
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
985
 
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1523
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
986
1524
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
987
1525
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
988
1526
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
996
1534
  test -z "$as_dir" && as_dir=.
997
1535
  echo "PATH: $as_dir"
998
1536
done
 
1537
IFS=$as_save_IFS
999
1538
 
1000
1539
} >&5
1001
1540
 
1017
1556
ac_configure_args=
1018
1557
ac_configure_args0=
1019
1558
ac_configure_args1=
1020
 
ac_sep=
1021
1559
ac_must_keep_next=false
1022
1560
for ac_pass in 1 2
1023
1561
do
1028
1566
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1029
1567
    | -silent | --silent | --silen | --sile | --sil)
1030
1568
      continue ;;
1031
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1569
    *\'*)
1032
1570
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1033
1571
    esac
1034
1572
    case $ac_pass in
1036
1574
    2)
1037
1575
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1038
1576
      if test $ac_must_keep_next = true; then
1039
 
        ac_must_keep_next=false # Got value, back to normal.
 
1577
        ac_must_keep_next=false # Got value, back to normal.
1040
1578
      else
1041
 
        case $ac_arg in
1042
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
1043
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1044
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1045
 
          | -with-* | --with-* | -without-* | --without-* | --x)
1046
 
            case "$ac_configure_args0 " in
1047
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1048
 
            esac
1049
 
            ;;
1050
 
          -* ) ac_must_keep_next=true ;;
1051
 
        esac
 
1579
        case $ac_arg in
 
1580
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1581
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1582
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1583
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1584
            case "$ac_configure_args0 " in
 
1585
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1586
            esac
 
1587
            ;;
 
1588
          -* ) ac_must_keep_next=true ;;
 
1589
        esac
1052
1590
      fi
1053
 
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1054
 
      # Get rid of the leading space.
1055
 
      ac_sep=" "
 
1591
      ac_configure_args="$ac_configure_args '$ac_arg'"
1056
1592
      ;;
1057
1593
    esac
1058
1594
  done
1063
1599
# When interrupted or exit'd, cleanup temporary files, and complete
1064
1600
# config.log.  We remove comments because anyway the quotes in there
1065
1601
# would cause problems or look ugly.
1066
 
# WARNING: Be sure not to use single quotes in there, as some shells,
1067
 
# such as our DU 5.0 friend, will then `close' the trap.
 
1602
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1603
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1068
1604
trap 'exit_status=$?
1069
1605
  # Save into config.log some information that might help in debugging.
1070
1606
  {
1077
1613
_ASBOX
1078
1614
    echo
1079
1615
    # The following way of writing the cache mishandles newlines in values,
1080
 
{
 
1616
(
 
1617
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1618
    eval ac_val=\$$ac_var
 
1619
    case $ac_val in #(
 
1620
    *${as_nl}*)
 
1621
      case $ac_var in #(
 
1622
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1623
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1624
      esac
 
1625
      case $ac_var in #(
 
1626
      _ | IFS | as_nl) ;; #(
 
1627
      *) $as_unset $ac_var ;;
 
1628
      esac ;;
 
1629
    esac
 
1630
  done
1081
1631
  (set) 2>&1 |
1082
 
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1083
 
    *ac_space=\ *)
 
1632
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1633
    *${as_nl}ac_space=\ *)
1084
1634
      sed -n \
1085
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1086
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1087
 
      ;;
 
1635
        "s/'\''/'\''\\\\'\'''\''/g;
 
1636
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1637
      ;; #(
1088
1638
    *)
1089
 
      sed -n \
1090
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1639
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1091
1640
      ;;
1092
 
    esac;
1093
 
}
 
1641
    esac |
 
1642
    sort
 
1643
)
1094
1644
    echo
1095
1645
 
1096
1646
    cat <<\_ASBOX
1101
1651
    echo
1102
1652
    for ac_var in $ac_subst_vars
1103
1653
    do
1104
 
      eval ac_val=$`echo $ac_var`
1105
 
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1654
      eval ac_val=\$$ac_var
 
1655
      case $ac_val in
 
1656
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1657
      esac
 
1658
      echo "$ac_var='\''$ac_val'\''"
1106
1659
    done | sort
1107
1660
    echo
1108
1661
 
1109
1662
    if test -n "$ac_subst_files"; then
1110
1663
      cat <<\_ASBOX
1111
 
## ------------- ##
1112
 
## Output files. ##
1113
 
## ------------- ##
 
1664
## ------------------- ##
 
1665
## File substitutions. ##
 
1666
## ------------------- ##
1114
1667
_ASBOX
1115
1668
      echo
1116
1669
      for ac_var in $ac_subst_files
1117
1670
      do
1118
 
        eval ac_val=$`echo $ac_var`
1119
 
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1671
        eval ac_val=\$$ac_var
 
1672
        case $ac_val in
 
1673
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1674
        esac
 
1675
        echo "$ac_var='\''$ac_val'\''"
1120
1676
      done | sort
1121
1677
      echo
1122
1678
    fi
1128
1684
## ----------- ##
1129
1685
_ASBOX
1130
1686
      echo
1131
 
      sed "/^$/d" confdefs.h | sort
 
1687
      cat confdefs.h
1132
1688
      echo
1133
1689
    fi
1134
1690
    test "$ac_signal" != 0 &&
1135
1691
      echo "$as_me: caught signal $ac_signal"
1136
1692
    echo "$as_me: exit $exit_status"
1137
1693
  } >&5
1138
 
  rm -f core core.* *.core &&
1139
 
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1694
  rm -f core *.core core.conftest.* &&
 
1695
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1140
1696
    exit $exit_status
1141
 
     ' 0
 
1697
' 0
1142
1698
for ac_signal in 1 2 13 15; do
1143
1699
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1144
1700
done
1145
1701
ac_signal=0
1146
1702
 
1147
1703
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1148
 
rm -rf conftest* confdefs.h
1149
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1150
 
echo >confdefs.h
 
1704
rm -f -r conftest* confdefs.h
1151
1705
 
1152
1706
# Predefined preprocessor variables.
1153
1707
 
1178
1732
 
1179
1733
# Let the site file select an alternate cache file if it wants to.
1180
1734
# Prefer explicitly selected file to automatically selected ones.
1181
 
if test -z "$CONFIG_SITE"; then
1182
 
  if test "x$prefix" != xNONE; then
1183
 
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1184
 
  else
1185
 
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1186
 
  fi
 
1735
if test -n "$CONFIG_SITE"; then
 
1736
  set x "$CONFIG_SITE"
 
1737
elif test "x$prefix" != xNONE; then
 
1738
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1739
else
 
1740
  set x "$ac_default_prefix/share/config.site" \
 
1741
        "$ac_default_prefix/etc/config.site"
1187
1742
fi
1188
 
for ac_site_file in $CONFIG_SITE; do
 
1743
shift
 
1744
for ac_site_file
 
1745
do
1189
1746
  if test -r "$ac_site_file"; then
1190
1747
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1191
1748
echo "$as_me: loading site script $ac_site_file" >&6;}
1201
1758
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1202
1759
echo "$as_me: loading cache $cache_file" >&6;}
1203
1760
    case $cache_file in
1204
 
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1205
 
      *)                      . ./$cache_file;;
 
1761
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1762
      *)                      . "./$cache_file";;
1206
1763
    esac
1207
1764
  fi
1208
1765
else
1214
1771
# Check that the precious variables saved in the cache have kept the same
1215
1772
# value.
1216
1773
ac_cache_corrupted=false
1217
 
for ac_var in `(set) 2>&1 |
1218
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1774
for ac_var in $ac_precious_vars; do
1219
1775
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1220
1776
  eval ac_new_set=\$ac_env_${ac_var}_set
1221
 
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1222
 
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1777
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1778
  eval ac_new_val=\$ac_env_${ac_var}_value
1223
1779
  case $ac_old_set,$ac_new_set in
1224
1780
    set,)
1225
1781
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1232
1788
    ,);;
1233
1789
    *)
1234
1790
      if test "x$ac_old_val" != "x$ac_new_val"; then
1235
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1791
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1236
1792
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1237
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1793
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1238
1794
echo "$as_me:   former value:  $ac_old_val" >&2;}
1239
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1795
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1240
1796
echo "$as_me:   current value: $ac_new_val" >&2;}
1241
 
        ac_cache_corrupted=:
 
1797
        ac_cache_corrupted=:
1242
1798
      fi;;
1243
1799
  esac
1244
1800
  # Pass precious variables to config.status.
1245
1801
  if test "$ac_new_set" = set; then
1246
1802
    case $ac_new_val in
1247
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1248
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1803
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1249
1804
    *) ac_arg=$ac_var=$ac_new_val ;;
1250
1805
    esac
1251
1806
    case " $ac_configure_args " in
1262
1817
   { (exit 1); exit 1; }; }
1263
1818
fi
1264
1819
 
 
1820
 
 
1821
 
 
1822
 
 
1823
 
 
1824
 
 
1825
 
 
1826
 
 
1827
 
 
1828
 
 
1829
 
 
1830
 
 
1831
 
 
1832
 
 
1833
 
 
1834
 
 
1835
 
1265
1836
ac_ext=c
1266
1837
ac_cpp='$CPP $CPPFLAGS'
1267
1838
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1269
1840
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1270
1841
 
1271
1842
 
1272
 
 
1273
 
 
1274
 
 
1275
 
 
1276
 
 
1277
 
 
1278
 
 
1279
 
 
1280
 
 
1281
 
 
1282
 
 
1283
 
 
1284
 
 
1285
 
 
1286
 
 
1287
 
 
1288
 
 
1289
 
 
1290
 
 
1291
 
 
1292
 
 
1293
 
 
1294
 
 
1295
 
 
1296
 
 
1297
 
am__api_version="1.7"
 
1843
am__api_version="1.9"
1298
1844
ac_aux_dir=
1299
 
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1300
 
  if test -f $ac_dir/install-sh; then
 
1845
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
1846
  if test -f "$ac_dir/install-sh"; then
1301
1847
    ac_aux_dir=$ac_dir
1302
1848
    ac_install_sh="$ac_aux_dir/install-sh -c"
1303
1849
    break
1304
 
  elif test -f $ac_dir/install.sh; then
 
1850
  elif test -f "$ac_dir/install.sh"; then
1305
1851
    ac_aux_dir=$ac_dir
1306
1852
    ac_install_sh="$ac_aux_dir/install.sh -c"
1307
1853
    break
1308
 
  elif test -f $ac_dir/shtool; then
 
1854
  elif test -f "$ac_dir/shtool"; then
1309
1855
    ac_aux_dir=$ac_dir
1310
1856
    ac_install_sh="$ac_aux_dir/shtool install -c"
1311
1857
    break
1312
1858
  fi
1313
1859
done
1314
1860
if test -z "$ac_aux_dir"; then
1315
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1316
 
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1861
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
 
1862
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1317
1863
   { (exit 1); exit 1; }; }
1318
1864
fi
1319
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1320
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1321
 
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1865
 
 
1866
# These three variables are undocumented and unsupported,
 
1867
# and are intended to be withdrawn in a future Autoconf release.
 
1868
# They can cause serious problems if a builder's source tree is in a directory
 
1869
# whose full name contains unusual characters.
 
1870
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
1871
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
1872
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
1873
 
1322
1874
 
1323
1875
# Find a good install program.  We prefer a C program (faster),
1324
1876
# so one script is as good as another.  But avoid the broken or
1331
1883
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1332
1884
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1333
1885
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1886
# OS/2's system install, which has a completely different semantic
1334
1887
# ./install, which can be erroneously created by make from ./install.sh.
1335
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1336
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1888
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1889
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1337
1890
if test -z "$INSTALL"; then
1338
1891
if test "${ac_cv_path_install+set}" = set; then
1339
1892
  echo $ECHO_N "(cached) $ECHO_C" >&6
1347
1900
case $as_dir/ in
1348
1901
  ./ | .// | /cC/* | \
1349
1902
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1903
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1350
1904
  /usr/ucb/* ) ;;
1351
1905
  *)
1352
1906
    # OSF1 and SCO ODT 3.0 have their own names for install.
1354
1908
    # by default.
1355
1909
    for ac_prog in ginstall scoinst install; do
1356
1910
      for ac_exec_ext in '' $ac_executable_extensions; do
1357
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1358
 
          if test $ac_prog = install &&
1359
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1360
 
            # AIX install.  It has an incompatible calling convention.
1361
 
            :
1362
 
          elif test $ac_prog = install &&
1363
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1364
 
            # program-specific install script used by HP pwplus--don't use.
1365
 
            :
1366
 
          else
1367
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1368
 
            break 3
1369
 
          fi
1370
 
        fi
 
1911
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
1912
          if test $ac_prog = install &&
 
1913
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1914
            # AIX install.  It has an incompatible calling convention.
 
1915
            :
 
1916
          elif test $ac_prog = install &&
 
1917
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1918
            # program-specific install script used by HP pwplus--don't use.
 
1919
            :
 
1920
          else
 
1921
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1922
            break 3
 
1923
          fi
 
1924
        fi
1371
1925
      done
1372
1926
    done
1373
1927
    ;;
1374
1928
esac
1375
1929
done
 
1930
IFS=$as_save_IFS
1376
1931
 
1377
1932
 
1378
1933
fi
1379
1934
  if test "${ac_cv_path_install+set}" = set; then
1380
1935
    INSTALL=$ac_cv_path_install
1381
1936
  else
1382
 
    # As a last resort, use the slow shell script.  We don't cache a
1383
 
    # path for INSTALL within a source directory, because that will
 
1937
    # As a last resort, use the slow shell script.  Don't cache a
 
1938
    # value for INSTALL within a source directory, because that will
1384
1939
    # break other packages using the cache if that directory is
1385
 
    # removed, or if the path is relative.
 
1940
    # removed, or if the value is a relative name.
1386
1941
    INSTALL=$ac_install_sh
1387
1942
  fi
1388
1943
fi
1389
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
1390
 
echo "${ECHO_T}$INSTALL" >&6
 
1944
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1945
echo "${ECHO_T}$INSTALL" >&6; }
1391
1946
 
1392
1947
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1393
1948
# It thinks the first close brace ends the variable substitution.
1397
1952
 
1398
1953
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1399
1954
 
1400
 
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1401
 
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1955
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1956
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1402
1957
# Just in case
1403
1958
sleep 1
1404
1959
echo timestamp > conftest.file
1440
1995
Check your system clock" >&2;}
1441
1996
   { (exit 1); exit 1; }; }
1442
1997
fi
1443
 
echo "$as_me:$LINENO: result: yes" >&5
1444
 
echo "${ECHO_T}yes" >&6
 
1998
{ echo "$as_me:$LINENO: result: yes" >&5
 
1999
echo "${ECHO_T}yes" >&6; }
1445
2000
test "$program_prefix" != NONE &&
1446
 
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
2001
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
1447
2002
# Use a double $ so make ignores it.
1448
2003
test "$program_suffix" != NONE &&
1449
 
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
2004
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1450
2005
# Double any \ or $.  echo might interpret backslashes.
1451
2006
# By default was `s,x,x', remove it if useless.
1452
2007
cat <<\_ACEOF >conftest.sed
1453
2008
s/[\\$]/&&/g;s/;s,x,x,$//
1454
2009
_ACEOF
1455
2010
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1456
 
rm conftest.sed
1457
 
 
 
2011
rm -f conftest.sed
1458
2012
 
1459
2013
# expand $ac_aux_dir to an absolute path
1460
2014
am_aux_dir=`cd $ac_aux_dir && pwd`
1469
2023
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1470
2024
fi
1471
2025
 
 
2026
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
2027
  # We used to keeping the `.' as first argument, in order to
 
2028
  # allow $(mkdir_p) to be used without argument.  As in
 
2029
  #   $(mkdir_p) $(somedir)
 
2030
  # where $(somedir) is conditionally defined.  However this is wrong
 
2031
  # for two reasons:
 
2032
  #  1. if the package is installed by a user who cannot write `.'
 
2033
  #     make install will fail,
 
2034
  #  2. the above comment should most certainly read
 
2035
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
2036
  #     so it does not work when $(somedir) is undefined and
 
2037
  #     $(DESTDIR) is not.
 
2038
  #  To support the latter case, we have to write
 
2039
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
2040
  #  so the `.' trick is pointless.
 
2041
  mkdir_p='mkdir -p --'
 
2042
else
 
2043
  # On NextStep and OpenStep, the `mkdir' command does not
 
2044
  # recognize any option.  It will interpret all options as
 
2045
  # directories to create, and then abort because `.' already
 
2046
  # exists.
 
2047
  for d in ./-p ./--version;
 
2048
  do
 
2049
    test -d $d && rmdir $d
 
2050
  done
 
2051
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
2052
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
2053
    mkdir_p='$(mkinstalldirs)'
 
2054
  else
 
2055
    mkdir_p='$(install_sh) -d'
 
2056
  fi
 
2057
fi
 
2058
 
1472
2059
for ac_prog in gawk mawk nawk awk
1473
2060
do
1474
2061
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1475
2062
set dummy $ac_prog; ac_word=$2
1476
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1477
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2063
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2064
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1478
2065
if test "${ac_cv_prog_AWK+set}" = set; then
1479
2066
  echo $ECHO_N "(cached) $ECHO_C" >&6
1480
2067
else
1487
2074
  IFS=$as_save_IFS
1488
2075
  test -z "$as_dir" && as_dir=.
1489
2076
  for ac_exec_ext in '' $ac_executable_extensions; do
1490
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2077
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1491
2078
    ac_cv_prog_AWK="$ac_prog"
1492
2079
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493
2080
    break 2
1494
2081
  fi
1495
2082
done
1496
2083
done
 
2084
IFS=$as_save_IFS
1497
2085
 
1498
2086
fi
1499
2087
fi
1500
2088
AWK=$ac_cv_prog_AWK
1501
2089
if test -n "$AWK"; then
1502
 
  echo "$as_me:$LINENO: result: $AWK" >&5
1503
 
echo "${ECHO_T}$AWK" >&6
 
2090
  { echo "$as_me:$LINENO: result: $AWK" >&5
 
2091
echo "${ECHO_T}$AWK" >&6; }
1504
2092
else
1505
 
  echo "$as_me:$LINENO: result: no" >&5
1506
 
echo "${ECHO_T}no" >&6
 
2093
  { echo "$as_me:$LINENO: result: no" >&5
 
2094
echo "${ECHO_T}no" >&6; }
1507
2095
fi
1508
2096
 
 
2097
 
1509
2098
  test -n "$AWK" && break
1510
2099
done
1511
2100
 
1512
 
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1513
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1514
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1515
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
2101
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2102
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
2103
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2104
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1516
2105
  echo $ECHO_N "(cached) $ECHO_C" >&6
1517
2106
else
1518
2107
  cat >conftest.make <<\_ACEOF
 
2108
SHELL = /bin/sh
1519
2109
all:
1520
 
        @echo 'ac_maketemp="$(MAKE)"'
 
2110
        @echo '@@@%%%=$(MAKE)=@@@%%%'
1521
2111
_ACEOF
1522
2112
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1523
 
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1524
 
if test -n "$ac_maketemp"; then
1525
 
  eval ac_cv_prog_make_${ac_make}_set=yes
1526
 
else
1527
 
  eval ac_cv_prog_make_${ac_make}_set=no
1528
 
fi
 
2113
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2114
  *@@@%%%=?*=@@@%%%*)
 
2115
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2116
  *)
 
2117
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2118
esac
1529
2119
rm -f conftest.make
1530
2120
fi
1531
 
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1532
 
  echo "$as_me:$LINENO: result: yes" >&5
1533
 
echo "${ECHO_T}yes" >&6
 
2121
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2122
  { echo "$as_me:$LINENO: result: yes" >&5
 
2123
echo "${ECHO_T}yes" >&6; }
1534
2124
  SET_MAKE=
1535
2125
else
1536
 
  echo "$as_me:$LINENO: result: no" >&5
1537
 
echo "${ECHO_T}no" >&6
 
2126
  { echo "$as_me:$LINENO: result: no" >&5
 
2127
echo "${ECHO_T}no" >&6; }
1538
2128
  SET_MAKE="MAKE=${MAKE-make}"
1539
2129
fi
1540
2130
 
1541
 
 # test to see if srcdir already configured
 
2131
rm -rf .tst 2>/dev/null
 
2132
mkdir .tst 2>/dev/null
 
2133
if test -d .tst; then
 
2134
  am__leading_dot=.
 
2135
else
 
2136
  am__leading_dot=_
 
2137
fi
 
2138
rmdir .tst 2>/dev/null
 
2139
 
 
2140
# test to see if srcdir already configured
1542
2141
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1543
2142
   test -f $srcdir/config.status; then
1544
2143
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1558
2157
 
1559
2158
# Define the identity of the package.
1560
2159
 PACKAGE=xvidcap
1561
 
 VERSION=1.1.3
 
2160
 VERSION=1.1.6
1562
2161
 
1563
2162
 
1564
2163
cat >>confdefs.h <<_ACEOF
1586
2185
 
1587
2186
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1588
2187
 
1589
 
 
1590
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
1591
 
 
1592
2188
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1593
2189
 
1594
2190
# Installed binaries are usually stripped using `strip' when the user
1599
2195
  if test -n "$ac_tool_prefix"; then
1600
2196
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1601
2197
set dummy ${ac_tool_prefix}strip; ac_word=$2
1602
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1603
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2198
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2199
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1604
2200
if test "${ac_cv_prog_STRIP+set}" = set; then
1605
2201
  echo $ECHO_N "(cached) $ECHO_C" >&6
1606
2202
else
1613
2209
  IFS=$as_save_IFS
1614
2210
  test -z "$as_dir" && as_dir=.
1615
2211
  for ac_exec_ext in '' $ac_executable_extensions; do
1616
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2212
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1617
2213
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1618
2214
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1619
2215
    break 2
1620
2216
  fi
1621
2217
done
1622
2218
done
 
2219
IFS=$as_save_IFS
1623
2220
 
1624
2221
fi
1625
2222
fi
1626
2223
STRIP=$ac_cv_prog_STRIP
1627
2224
if test -n "$STRIP"; then
1628
 
  echo "$as_me:$LINENO: result: $STRIP" >&5
1629
 
echo "${ECHO_T}$STRIP" >&6
 
2225
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
2226
echo "${ECHO_T}$STRIP" >&6; }
1630
2227
else
1631
 
  echo "$as_me:$LINENO: result: no" >&5
1632
 
echo "${ECHO_T}no" >&6
 
2228
  { echo "$as_me:$LINENO: result: no" >&5
 
2229
echo "${ECHO_T}no" >&6; }
1633
2230
fi
 
2231
 
1634
2232
 
1635
2233
fi
1636
2234
if test -z "$ac_cv_prog_STRIP"; then
1637
2235
  ac_ct_STRIP=$STRIP
1638
2236
  # Extract the first word of "strip", so it can be a program name with args.
1639
2237
set dummy strip; ac_word=$2
1640
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1641
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2238
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2239
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1642
2240
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1643
2241
  echo $ECHO_N "(cached) $ECHO_C" >&6
1644
2242
else
1651
2249
  IFS=$as_save_IFS
1652
2250
  test -z "$as_dir" && as_dir=.
1653
2251
  for ac_exec_ext in '' $ac_executable_extensions; do
1654
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2252
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1655
2253
    ac_cv_prog_ac_ct_STRIP="strip"
1656
2254
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1657
2255
    break 2
1658
2256
  fi
1659
2257
done
1660
2258
done
 
2259
IFS=$as_save_IFS
1661
2260
 
1662
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1663
2261
fi
1664
2262
fi
1665
2263
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1666
2264
if test -n "$ac_ct_STRIP"; then
1667
 
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1668
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
2265
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2266
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
1669
2267
else
1670
 
  echo "$as_me:$LINENO: result: no" >&5
1671
 
echo "${ECHO_T}no" >&6
 
2268
  { echo "$as_me:$LINENO: result: no" >&5
 
2269
echo "${ECHO_T}no" >&6; }
1672
2270
fi
1673
2271
 
1674
 
  STRIP=$ac_ct_STRIP
 
2272
  if test "x$ac_ct_STRIP" = x; then
 
2273
    STRIP=":"
 
2274
  else
 
2275
    case $cross_compiling:$ac_tool_warned in
 
2276
yes:)
 
2277
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2278
whose name does not start with the host triplet.  If you think this
 
2279
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2280
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2281
whose name does not start with the host triplet.  If you think this
 
2282
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2283
ac_tool_warned=yes ;;
 
2284
esac
 
2285
    STRIP=$ac_ct_STRIP
 
2286
  fi
1675
2287
else
1676
2288
  STRIP="$ac_cv_prog_STRIP"
1677
2289
fi
1681
2293
 
1682
2294
# We need awk for the "check" target.  The system "awk" is bad on
1683
2295
# some platforms.
1684
 
 
1685
 
 
1686
 
 
1687
 
 
1688
 
          ac_config_headers="$ac_config_headers config.h"
1689
 
 
1690
 
 
1691
 
 
1692
 
rm ffmpeg/avcodec.h >/dev/null 2>&1 || echo "" > /dev/null
1693
 
rm ffmpeg/avformat.h >/dev/null 2>&1 || echo "" > /dev/null
1694
 
rm ffmpeg/avio.h >/dev/null 2>&1 || echo "" > /dev/null
1695
 
rm ffmpeg/rt*.h >/dev/null 2>&1 || echo "" > /dev/null
1696
 
 
1697
 
 
1698
 
# AC_CHECK_LIB_STATIC(LIBRARY, FUNCTION,
1699
 
#              [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND],
1700
 
#              [OTHER-LIBRARIES])
1701
 
# ------------------------------------------------------
1702
 
# set defaults for ld parameters to trigger static/dynamic linking
1703
 
# they should be adapted prior to calling this function
1704
 
 
1705
 
ac_my_static_ld="-Wl,-Bstatic"
1706
 
ac_my_dynamic_ld="-Wl,-Bdynamic"
1707
 
 
1708
 
 
1709
 
# AC_CHECK_LIB_STATIC
1710
 
 
1711
 
 
1712
 
# find operating system
1713
 
# can't do that with other Makefile defines because I need OS specific
1714
 
# ld params for testing
1715
 
#
1716
 
 
1717
 
 
1718
 
if test x`(uname -s)` = xSunOS; then
1719
 
  SOLARIS_TRUE=
1720
 
  SOLARIS_FALSE='#'
1721
 
else
1722
 
  SOLARIS_TRUE='#'
1723
 
  SOLARIS_FALSE=
1724
 
fi
1725
 
 
1726
 
 
1727
 
 
1728
 
if test x`(uname -s)` = xLinux; then
1729
 
  LINUX_TRUE=
1730
 
  LINUX_FALSE='#'
1731
 
else
1732
 
  LINUX_TRUE='#'
1733
 
  LINUX_FALSE=
1734
 
fi
1735
 
 
1736
 
 
1737
 
 
1738
 
if test x`(uname -s)` = xHP-UX; then
1739
 
  HPUX_TRUE=
1740
 
  HPUX_FALSE='#'
1741
 
else
1742
 
  HPUX_TRUE='#'
1743
 
  HPUX_FALSE=
1744
 
fi
1745
 
 
1746
 
if ( test x${HPUX_TRUE} = x ) ; then
1747
 
        ac_my_static_ld="-a archive"
1748
 
        ac_my_dynamic_ld="-a default"
1749
 
else
1750
 
        ac_my_static_ld="-Wl,-Bstatic"
1751
 
        ac_my_dynamic_ld="-Wl,-Bdynamic"
1752
 
fi
1753
 
 
1754
 
 
1755
 
# user options
1756
 
#
1757
 
# Check whether --enable-static-libs or --disable-static-libs was given.
1758
 
if test "${enable_static_libs+set}" = set; then
1759
 
  enableval="$enable_static_libs"
1760
 
  ac_cv_link_static=$enableval
1761
 
else
1762
 
  ac_cv_link_static=no
1763
 
fi;
1764
 
#AC_ARG_ENABLE(decoders, AC_HELP_STRING([--enable-decoders],[make ffmpeg decoders (default: encoders only)]),[ac_cv_ffmpeg_decoders=$enableval], [ac_cv_ffmpeg_decoders=no])
1765
 
 
1766
 
# Check whether --with-gt or --without-gt was given.
1767
 
if test "${with_gt+set}" = set; then
1768
 
  withval="$with_gt"
1769
 
  ac_cv_with_gt=$withval
1770
 
else
1771
 
  ac_cv_with_gt=no
1772
 
fi;
1773
 
 
1774
 
# Check whether --with-forced-embedded-ffmpeg or --without-forced-embedded-ffmpeg was given.
1775
 
if test "${with_forced_embedded_ffmpeg+set}" = set; then
1776
 
  withval="$with_forced_embedded_ffmpeg"
1777
 
  ac_cv_with_embedded_ffmpeg=$withval ; ( test x$ac_cv_with_embedded_ffmpeg = xyes ) && ac_cv_link_static="$ac_cv_link_static avcodec"
1778
 
else
1779
 
  ac_cv_with_embedded_ffmpeg=no
1780
 
fi;
1781
 
 
1782
 
# Check whether --with-gtk2 or --without-gtk2 was given.
1783
 
if test "${with_gtk2+set}" = set; then
1784
 
  withval="$with_gtk2"
1785
 
  ac_cv_with_gtk2=$withval
1786
 
else
1787
 
  ac_cv_with_gtk2=no
1788
 
fi;
1789
 
 
1790
 
 
1791
 
# Checks for programs.
1792
 
#
 
2296
# Always define AMTAR for backward compatibility.
 
2297
 
 
2298
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2299
 
 
2300
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2301
 
 
2302
 
 
2303
 
 
2304
 
 
2305
 
 
2306
ac_config_headers="$ac_config_headers config.h"
 
2307
 
 
2308
{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
2309
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
 
2310
    # Check whether --enable-maintainer-mode was given.
 
2311
if test "${enable_maintainer_mode+set}" = set; then
 
2312
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
 
2313
else
 
2314
  USE_MAINTAINER_MODE=no
 
2315
fi
 
2316
 
 
2317
  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
2318
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
 
2319
 
 
2320
 
 
2321
if test $USE_MAINTAINER_MODE = yes; then
 
2322
  MAINTAINER_MODE_TRUE=
 
2323
  MAINTAINER_MODE_FALSE='#'
 
2324
else
 
2325
  MAINTAINER_MODE_TRUE='#'
 
2326
  MAINTAINER_MODE_FALSE=
 
2327
fi
 
2328
 
 
2329
  MAINT=$MAINTAINER_MODE_TRUE
 
2330
 
 
2331
 
 
2332
 
 
2333
DEPDIR="${am__leading_dot}deps"
 
2334
 
 
2335
ac_config_commands="$ac_config_commands depfiles"
 
2336
 
 
2337
 
 
2338
am_make=${MAKE-make}
 
2339
cat > confinc << 'END'
 
2340
am__doit:
 
2341
        @echo done
 
2342
.PHONY: am__doit
 
2343
END
 
2344
# If we don't find an include directive, just comment out the code.
 
2345
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2346
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
 
2347
am__include="#"
 
2348
am__quote=
 
2349
_am_result=none
 
2350
# First try GNU make style include.
 
2351
echo "include confinc" > confmf
 
2352
# We grep out `Entering directory' and `Leaving directory'
 
2353
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2354
# In particular we don't look at `^make:' because GNU make might
 
2355
# be invoked under some other name (usually "gmake"), in which
 
2356
# case it prints its new name instead of `make'.
 
2357
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2358
   am__include=include
 
2359
   am__quote=
 
2360
   _am_result=GNU
 
2361
fi
 
2362
# Now try BSD make style include.
 
2363
if test "$am__include" = "#"; then
 
2364
   echo '.include "confinc"' > confmf
 
2365
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2366
      am__include=.include
 
2367
      am__quote="\""
 
2368
      _am_result=BSD
 
2369
   fi
 
2370
fi
 
2371
 
 
2372
 
 
2373
{ echo "$as_me:$LINENO: result: $_am_result" >&5
 
2374
echo "${ECHO_T}$_am_result" >&6; }
 
2375
rm -f confinc confmf
 
2376
 
 
2377
# Check whether --enable-dependency-tracking was given.
 
2378
if test "${enable_dependency_tracking+set}" = set; then
 
2379
  enableval=$enable_dependency_tracking;
 
2380
fi
 
2381
 
 
2382
if test "x$enable_dependency_tracking" != xno; then
 
2383
  am_depcomp="$ac_aux_dir/depcomp"
 
2384
  AMDEPBACKSLASH='\'
 
2385
fi
 
2386
 
 
2387
 
 
2388
if test "x$enable_dependency_tracking" != xno; then
 
2389
  AMDEP_TRUE=
 
2390
  AMDEP_FALSE='#'
 
2391
else
 
2392
  AMDEP_TRUE='#'
 
2393
  AMDEP_FALSE=
 
2394
fi
 
2395
 
 
2396
 
 
2397
 
1793
2398
ac_ext=c
1794
2399
ac_cpp='$CPP $CPPFLAGS'
1795
2400
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1798
2403
if test -n "$ac_tool_prefix"; then
1799
2404
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1800
2405
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1801
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1802
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2406
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2407
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1803
2408
if test "${ac_cv_prog_CC+set}" = set; then
1804
2409
  echo $ECHO_N "(cached) $ECHO_C" >&6
1805
2410
else
1812
2417
  IFS=$as_save_IFS
1813
2418
  test -z "$as_dir" && as_dir=.
1814
2419
  for ac_exec_ext in '' $ac_executable_extensions; do
1815
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2420
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1816
2421
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1817
2422
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1818
2423
    break 2
1819
2424
  fi
1820
2425
done
1821
2426
done
 
2427
IFS=$as_save_IFS
1822
2428
 
1823
2429
fi
1824
2430
fi
1825
2431
CC=$ac_cv_prog_CC
1826
2432
if test -n "$CC"; then
1827
 
  echo "$as_me:$LINENO: result: $CC" >&5
1828
 
echo "${ECHO_T}$CC" >&6
 
2433
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2434
echo "${ECHO_T}$CC" >&6; }
1829
2435
else
1830
 
  echo "$as_me:$LINENO: result: no" >&5
1831
 
echo "${ECHO_T}no" >&6
 
2436
  { echo "$as_me:$LINENO: result: no" >&5
 
2437
echo "${ECHO_T}no" >&6; }
1832
2438
fi
 
2439
 
1833
2440
 
1834
2441
fi
1835
2442
if test -z "$ac_cv_prog_CC"; then
1836
2443
  ac_ct_CC=$CC
1837
2444
  # Extract the first word of "gcc", so it can be a program name with args.
1838
2445
set dummy gcc; ac_word=$2
1839
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1840
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2446
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2447
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1841
2448
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1842
2449
  echo $ECHO_N "(cached) $ECHO_C" >&6
1843
2450
else
1850
2457
  IFS=$as_save_IFS
1851
2458
  test -z "$as_dir" && as_dir=.
1852
2459
  for ac_exec_ext in '' $ac_executable_extensions; do
1853
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2460
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1854
2461
    ac_cv_prog_ac_ct_CC="gcc"
1855
2462
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1856
2463
    break 2
1857
2464
  fi
1858
2465
done
1859
2466
done
 
2467
IFS=$as_save_IFS
1860
2468
 
1861
2469
fi
1862
2470
fi
1863
2471
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1864
2472
if test -n "$ac_ct_CC"; then
1865
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1866
 
echo "${ECHO_T}$ac_ct_CC" >&6
 
2473
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2474
echo "${ECHO_T}$ac_ct_CC" >&6; }
1867
2475
else
1868
 
  echo "$as_me:$LINENO: result: no" >&5
1869
 
echo "${ECHO_T}no" >&6
 
2476
  { echo "$as_me:$LINENO: result: no" >&5
 
2477
echo "${ECHO_T}no" >&6; }
1870
2478
fi
1871
2479
 
1872
 
  CC=$ac_ct_CC
 
2480
  if test "x$ac_ct_CC" = x; then
 
2481
    CC=""
 
2482
  else
 
2483
    case $cross_compiling:$ac_tool_warned in
 
2484
yes:)
 
2485
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2486
whose name does not start with the host triplet.  If you think this
 
2487
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2488
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2489
whose name does not start with the host triplet.  If you think this
 
2490
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2491
ac_tool_warned=yes ;;
 
2492
esac
 
2493
    CC=$ac_ct_CC
 
2494
  fi
1873
2495
else
1874
2496
  CC="$ac_cv_prog_CC"
1875
2497
fi
1876
2498
 
1877
2499
if test -z "$CC"; then
1878
 
  if test -n "$ac_tool_prefix"; then
1879
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2500
          if test -n "$ac_tool_prefix"; then
 
2501
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1880
2502
set dummy ${ac_tool_prefix}cc; ac_word=$2
1881
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1882
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2503
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2504
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1883
2505
if test "${ac_cv_prog_CC+set}" = set; then
1884
2506
  echo $ECHO_N "(cached) $ECHO_C" >&6
1885
2507
else
1892
2514
  IFS=$as_save_IFS
1893
2515
  test -z "$as_dir" && as_dir=.
1894
2516
  for ac_exec_ext in '' $ac_executable_extensions; do
1895
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2517
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1896
2518
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1897
2519
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898
2520
    break 2
1899
2521
  fi
1900
2522
done
1901
2523
done
 
2524
IFS=$as_save_IFS
1902
2525
 
1903
2526
fi
1904
2527
fi
1905
2528
CC=$ac_cv_prog_CC
1906
2529
if test -n "$CC"; then
1907
 
  echo "$as_me:$LINENO: result: $CC" >&5
1908
 
echo "${ECHO_T}$CC" >&6
1909
 
else
1910
 
  echo "$as_me:$LINENO: result: no" >&5
1911
 
echo "${ECHO_T}no" >&6
1912
 
fi
1913
 
 
1914
 
fi
1915
 
if test -z "$ac_cv_prog_CC"; then
1916
 
  ac_ct_CC=$CC
1917
 
  # Extract the first word of "cc", so it can be a program name with args.
1918
 
set dummy cc; ac_word=$2
1919
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1920
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1921
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1922
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1923
 
else
1924
 
  if test -n "$ac_ct_CC"; then
1925
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1926
 
else
1927
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928
 
for as_dir in $PATH
1929
 
do
1930
 
  IFS=$as_save_IFS
1931
 
  test -z "$as_dir" && as_dir=.
1932
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1933
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1934
 
    ac_cv_prog_ac_ct_CC="cc"
1935
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936
 
    break 2
 
2530
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2531
echo "${ECHO_T}$CC" >&6; }
 
2532
else
 
2533
  { echo "$as_me:$LINENO: result: no" >&5
 
2534
echo "${ECHO_T}no" >&6; }
 
2535
fi
 
2536
 
 
2537
 
1937
2538
  fi
1938
 
done
1939
 
done
1940
 
 
1941
 
fi
1942
 
fi
1943
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1944
 
if test -n "$ac_ct_CC"; then
1945
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1946
 
echo "${ECHO_T}$ac_ct_CC" >&6
1947
 
else
1948
 
  echo "$as_me:$LINENO: result: no" >&5
1949
 
echo "${ECHO_T}no" >&6
1950
 
fi
1951
 
 
1952
 
  CC=$ac_ct_CC
1953
 
else
1954
 
  CC="$ac_cv_prog_CC"
1955
 
fi
1956
 
 
1957
2539
fi
1958
2540
if test -z "$CC"; then
1959
2541
  # Extract the first word of "cc", so it can be a program name with args.
1960
2542
set dummy cc; ac_word=$2
1961
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1962
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2543
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2544
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1963
2545
if test "${ac_cv_prog_CC+set}" = set; then
1964
2546
  echo $ECHO_N "(cached) $ECHO_C" >&6
1965
2547
else
1973
2555
  IFS=$as_save_IFS
1974
2556
  test -z "$as_dir" && as_dir=.
1975
2557
  for ac_exec_ext in '' $ac_executable_extensions; do
1976
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2558
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1977
2559
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1978
2560
       ac_prog_rejected=yes
1979
2561
       continue
1984
2566
  fi
1985
2567
done
1986
2568
done
 
2569
IFS=$as_save_IFS
1987
2570
 
1988
2571
if test $ac_prog_rejected = yes; then
1989
2572
  # We found a bogon in the path, so make sure we never use it.
2001
2584
fi
2002
2585
CC=$ac_cv_prog_CC
2003
2586
if test -n "$CC"; then
2004
 
  echo "$as_me:$LINENO: result: $CC" >&5
2005
 
echo "${ECHO_T}$CC" >&6
 
2587
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2588
echo "${ECHO_T}$CC" >&6; }
2006
2589
else
2007
 
  echo "$as_me:$LINENO: result: no" >&5
2008
 
echo "${ECHO_T}no" >&6
 
2590
  { echo "$as_me:$LINENO: result: no" >&5
 
2591
echo "${ECHO_T}no" >&6; }
2009
2592
fi
 
2593
 
2010
2594
 
2011
2595
fi
2012
2596
if test -z "$CC"; then
2013
2597
  if test -n "$ac_tool_prefix"; then
2014
 
  for ac_prog in cl
 
2598
  for ac_prog in cl.exe
2015
2599
  do
2016
2600
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2017
2601
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2018
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2019
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2602
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2603
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2020
2604
if test "${ac_cv_prog_CC+set}" = set; then
2021
2605
  echo $ECHO_N "(cached) $ECHO_C" >&6
2022
2606
else
2029
2613
  IFS=$as_save_IFS
2030
2614
  test -z "$as_dir" && as_dir=.
2031
2615
  for ac_exec_ext in '' $ac_executable_extensions; do
2032
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2616
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2033
2617
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2034
2618
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2035
2619
    break 2
2036
2620
  fi
2037
2621
done
2038
2622
done
 
2623
IFS=$as_save_IFS
2039
2624
 
2040
2625
fi
2041
2626
fi
2042
2627
CC=$ac_cv_prog_CC
2043
2628
if test -n "$CC"; then
2044
 
  echo "$as_me:$LINENO: result: $CC" >&5
2045
 
echo "${ECHO_T}$CC" >&6
 
2629
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2630
echo "${ECHO_T}$CC" >&6; }
2046
2631
else
2047
 
  echo "$as_me:$LINENO: result: no" >&5
2048
 
echo "${ECHO_T}no" >&6
 
2632
  { echo "$as_me:$LINENO: result: no" >&5
 
2633
echo "${ECHO_T}no" >&6; }
2049
2634
fi
2050
2635
 
 
2636
 
2051
2637
    test -n "$CC" && break
2052
2638
  done
2053
2639
fi
2054
2640
if test -z "$CC"; then
2055
2641
  ac_ct_CC=$CC
2056
 
  for ac_prog in cl
 
2642
  for ac_prog in cl.exe
2057
2643
do
2058
2644
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2059
2645
set dummy $ac_prog; ac_word=$2
2060
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2061
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2646
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2647
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2062
2648
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2063
2649
  echo $ECHO_N "(cached) $ECHO_C" >&6
2064
2650
else
2071
2657
  IFS=$as_save_IFS
2072
2658
  test -z "$as_dir" && as_dir=.
2073
2659
  for ac_exec_ext in '' $ac_executable_extensions; do
2074
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2660
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2075
2661
    ac_cv_prog_ac_ct_CC="$ac_prog"
2076
2662
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2077
2663
    break 2
2078
2664
  fi
2079
2665
done
2080
2666
done
 
2667
IFS=$as_save_IFS
2081
2668
 
2082
2669
fi
2083
2670
fi
2084
2671
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2085
2672
if test -n "$ac_ct_CC"; then
2086
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2087
 
echo "${ECHO_T}$ac_ct_CC" >&6
 
2673
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2674
echo "${ECHO_T}$ac_ct_CC" >&6; }
2088
2675
else
2089
 
  echo "$as_me:$LINENO: result: no" >&5
2090
 
echo "${ECHO_T}no" >&6
 
2676
  { echo "$as_me:$LINENO: result: no" >&5
 
2677
echo "${ECHO_T}no" >&6; }
2091
2678
fi
2092
2679
 
 
2680
 
2093
2681
  test -n "$ac_ct_CC" && break
2094
2682
done
2095
2683
 
2096
 
  CC=$ac_ct_CC
 
2684
  if test "x$ac_ct_CC" = x; then
 
2685
    CC=""
 
2686
  else
 
2687
    case $cross_compiling:$ac_tool_warned in
 
2688
yes:)
 
2689
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2690
whose name does not start with the host triplet.  If you think this
 
2691
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2692
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2693
whose name does not start with the host triplet.  If you think this
 
2694
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2695
ac_tool_warned=yes ;;
 
2696
esac
 
2697
    CC=$ac_ct_CC
 
2698
  fi
2097
2699
fi
2098
2700
 
2099
2701
fi
2106
2708
   { (exit 1); exit 1; }; }
2107
2709
 
2108
2710
# Provide some information about the compiler.
2109
 
echo "$as_me:$LINENO:" \
2110
 
     "checking for C compiler version" >&5
 
2711
echo "$as_me:$LINENO: checking for C compiler version" >&5
2111
2712
ac_compiler=`set X $ac_compile; echo $2`
2112
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2113
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
2114
 
  ac_status=$?
2115
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116
 
  (exit $ac_status); }
2117
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2118
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
2119
 
  ac_status=$?
2120
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121
 
  (exit $ac_status); }
2122
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2123
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2713
{ (ac_try="$ac_compiler --version >&5"
 
2714
case "(($ac_try" in
 
2715
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2716
  *) ac_try_echo=$ac_try;;
 
2717
esac
 
2718
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2719
  (eval "$ac_compiler --version >&5") 2>&5
 
2720
  ac_status=$?
 
2721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2722
  (exit $ac_status); }
 
2723
{ (ac_try="$ac_compiler -v >&5"
 
2724
case "(($ac_try" in
 
2725
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2726
  *) ac_try_echo=$ac_try;;
 
2727
esac
 
2728
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2729
  (eval "$ac_compiler -v >&5") 2>&5
 
2730
  ac_status=$?
 
2731
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2732
  (exit $ac_status); }
 
2733
{ (ac_try="$ac_compiler -V >&5"
 
2734
case "(($ac_try" in
 
2735
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2736
  *) ac_try_echo=$ac_try;;
 
2737
esac
 
2738
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2739
  (eval "$ac_compiler -V >&5") 2>&5
2124
2740
  ac_status=$?
2125
2741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126
2742
  (exit $ac_status); }
2127
2743
 
2128
2744
cat >conftest.$ac_ext <<_ACEOF
2129
 
#line $LINENO "configure"
2130
2745
/* confdefs.h.  */
2131
2746
_ACEOF
2132
2747
cat confdefs.h >>conftest.$ac_ext
2146
2761
# Try to create an executable without -o first, disregard a.out.
2147
2762
# It will help us diagnose broken compilers, and finding out an intuition
2148
2763
# of exeext.
2149
 
echo "$as_me:$LINENO: checking for C compiler default output" >&5
2150
 
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
 
2764
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2765
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2151
2766
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2152
 
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2153
 
  (eval $ac_link_default) 2>&5
 
2767
#
 
2768
# List of possible output files, starting from the most likely.
 
2769
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
2770
# only as a last resort.  b.out is created by i960 compilers.
 
2771
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
2772
#
 
2773
# The IRIX 6 linker writes into existing files which may not be
 
2774
# executable, retaining their permissions.  Remove them first so a
 
2775
# subsequent execution test works.
 
2776
ac_rmfiles=
 
2777
for ac_file in $ac_files
 
2778
do
 
2779
  case $ac_file in
 
2780
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2781
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2782
  esac
 
2783
done
 
2784
rm -f $ac_rmfiles
 
2785
 
 
2786
if { (ac_try="$ac_link_default"
 
2787
case "(($ac_try" in
 
2788
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2789
  *) ac_try_echo=$ac_try;;
 
2790
esac
 
2791
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2792
  (eval "$ac_link_default") 2>&5
2154
2793
  ac_status=$?
2155
2794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156
2795
  (exit $ac_status); }; then
2157
 
  # Find the output, starting from the most likely.  This scheme is
2158
 
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2159
 
# resort.
2160
 
 
2161
 
# Be careful to initialize this variable, since it used to be cached.
2162
 
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2163
 
ac_cv_exeext=
2164
 
# b.out is created by i960 compilers.
2165
 
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2796
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2797
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2798
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2799
# so that the user can short-circuit this test for compilers unknown to
 
2800
# Autoconf.
 
2801
for ac_file in $ac_files ''
2166
2802
do
2167
2803
  test -f "$ac_file" || continue
2168
2804
  case $ac_file in
2169
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2170
 
        ;;
2171
 
    conftest.$ac_ext )
2172
 
        # This is the source file.
2173
 
        ;;
 
2805
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
2806
        ;;
2174
2807
    [ab].out )
2175
 
        # We found the default executable, but exeext='' is most
2176
 
        # certainly right.
2177
 
        break;;
 
2808
        # We found the default executable, but exeext='' is most
 
2809
        # certainly right.
 
2810
        break;;
2178
2811
    *.* )
2179
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2180
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
2181
 
        # but it would be cool to find out if it's true.  Does anybody
2182
 
        # maintain Libtool? --akim.
2183
 
        export ac_cv_exeext
2184
 
        break;;
 
2812
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
2813
        then :; else
 
2814
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2815
        fi
 
2816
        # We set ac_cv_exeext here because the later test for it is not
 
2817
        # safe: cross compilers may not add the suffix if given an `-o'
 
2818
        # argument, so we may need to know it at that point already.
 
2819
        # Even if this section looks crufty: it has the advantage of
 
2820
        # actually working.
 
2821
        break;;
2185
2822
    * )
2186
 
        break;;
 
2823
        break;;
2187
2824
  esac
2188
2825
done
 
2826
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
2827
 
2189
2828
else
 
2829
  ac_file=''
 
2830
fi
 
2831
 
 
2832
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
2833
echo "${ECHO_T}$ac_file" >&6; }
 
2834
if test -z "$ac_file"; then
2190
2835
  echo "$as_me: failed program was:" >&5
2191
2836
sed 's/^/| /' conftest.$ac_ext >&5
2192
2837
 
2198
2843
fi
2199
2844
 
2200
2845
ac_exeext=$ac_cv_exeext
2201
 
echo "$as_me:$LINENO: result: $ac_file" >&5
2202
 
echo "${ECHO_T}$ac_file" >&6
2203
2846
 
2204
 
# Check the compiler produces executables we can run.  If not, either
 
2847
# Check that the compiler produces executables we can run.  If not, either
2205
2848
# the compiler is broken, or we cross compile.
2206
 
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2207
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2849
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2850
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2208
2851
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2209
2852
# If not cross compiling, check that we can run a simple program.
2210
2853
if test "$cross_compiling" != yes; then
2211
2854
  if { ac_try='./$ac_file'
2212
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213
 
  (eval $ac_try) 2>&5
 
2855
  { (case "(($ac_try" in
 
2856
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2857
  *) ac_try_echo=$ac_try;;
 
2858
esac
 
2859
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2860
  (eval "$ac_try") 2>&5
2214
2861
  ac_status=$?
2215
2862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216
2863
  (exit $ac_status); }; }; then
2229
2876
    fi
2230
2877
  fi
2231
2878
fi
2232
 
echo "$as_me:$LINENO: result: yes" >&5
2233
 
echo "${ECHO_T}yes" >&6
 
2879
{ echo "$as_me:$LINENO: result: yes" >&5
 
2880
echo "${ECHO_T}yes" >&6; }
2234
2881
 
2235
2882
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2236
2883
ac_clean_files=$ac_clean_files_save
2237
 
# Check the compiler produces executables we can run.  If not, either
 
2884
# Check that the compiler produces executables we can run.  If not, either
2238
2885
# the compiler is broken, or we cross compile.
2239
 
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2240
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2241
 
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2242
 
echo "${ECHO_T}$cross_compiling" >&6
 
2886
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2887
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
2888
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2889
echo "${ECHO_T}$cross_compiling" >&6; }
2243
2890
 
2244
 
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2245
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2246
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2247
 
  (eval $ac_link) 2>&5
 
2891
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2892
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
2893
if { (ac_try="$ac_link"
 
2894
case "(($ac_try" in
 
2895
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2896
  *) ac_try_echo=$ac_try;;
 
2897
esac
 
2898
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2899
  (eval "$ac_link") 2>&5
2248
2900
  ac_status=$?
2249
2901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250
2902
  (exit $ac_status); }; then
2255
2907
for ac_file in conftest.exe conftest conftest.*; do
2256
2908
  test -f "$ac_file" || continue
2257
2909
  case $ac_file in
2258
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2910
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2259
2911
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2260
 
          export ac_cv_exeext
2261
 
          break;;
 
2912
          break;;
2262
2913
    * ) break;;
2263
2914
  esac
2264
2915
done
2271
2922
fi
2272
2923
 
2273
2924
rm -f conftest$ac_cv_exeext
2274
 
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2275
 
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2925
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2926
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2276
2927
 
2277
2928
rm -f conftest.$ac_ext
2278
2929
EXEEXT=$ac_cv_exeext
2279
2930
ac_exeext=$EXEEXT
2280
 
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2281
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2931
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2932
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2282
2933
if test "${ac_cv_objext+set}" = set; then
2283
2934
  echo $ECHO_N "(cached) $ECHO_C" >&6
2284
2935
else
2285
2936
  cat >conftest.$ac_ext <<_ACEOF
2286
 
#line $LINENO "configure"
2287
2937
/* confdefs.h.  */
2288
2938
_ACEOF
2289
2939
cat confdefs.h >>conftest.$ac_ext
2299
2949
}
2300
2950
_ACEOF
2301
2951
rm -f conftest.o conftest.obj
2302
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303
 
  (eval $ac_compile) 2>&5
 
2952
if { (ac_try="$ac_compile"
 
2953
case "(($ac_try" in
 
2954
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2955
  *) ac_try_echo=$ac_try;;
 
2956
esac
 
2957
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2958
  (eval "$ac_compile") 2>&5
2304
2959
  ac_status=$?
2305
2960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306
2961
  (exit $ac_status); }; then
2307
 
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2962
  for ac_file in conftest.o conftest.obj conftest.*; do
 
2963
  test -f "$ac_file" || continue;
2308
2964
  case $ac_file in
2309
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2965
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2310
2966
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2311
2967
       break;;
2312
2968
  esac
2324
2980
 
2325
2981
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2326
2982
fi
2327
 
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2328
 
echo "${ECHO_T}$ac_cv_objext" >&6
 
2983
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2984
echo "${ECHO_T}$ac_cv_objext" >&6; }
2329
2985
OBJEXT=$ac_cv_objext
2330
2986
ac_objext=$OBJEXT
2331
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2332
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2333
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2334
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2335
 
else
2336
 
  cat >conftest.$ac_ext <<_ACEOF
2337
 
#line $LINENO "configure"
2338
 
/* confdefs.h.  */
2339
 
_ACEOF
2340
 
cat confdefs.h >>conftest.$ac_ext
2341
 
cat >>conftest.$ac_ext <<_ACEOF
2342
 
/* end confdefs.h.  */
2343
 
 
2344
 
int
2345
 
main ()
2346
 
{
2347
 
#ifndef __GNUC__
2348
 
       choke me
2349
 
#endif
2350
 
 
2351
 
  ;
2352
 
  return 0;
2353
 
}
2354
 
_ACEOF
2355
 
rm -f conftest.$ac_objext
2356
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357
 
  (eval $ac_compile) 2>&5
2358
 
  ac_status=$?
2359
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360
 
  (exit $ac_status); } &&
2361
 
         { ac_try='test -s conftest.$ac_objext'
2362
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363
 
  (eval $ac_try) 2>&5
2364
 
  ac_status=$?
2365
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366
 
  (exit $ac_status); }; }; then
2367
 
  ac_compiler_gnu=yes
2368
 
else
2369
 
  echo "$as_me: failed program was:" >&5
2370
 
sed 's/^/| /' conftest.$ac_ext >&5
2371
 
 
2372
 
ac_compiler_gnu=no
2373
 
fi
2374
 
rm -f conftest.$ac_objext conftest.$ac_ext
2375
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2376
 
 
2377
 
fi
2378
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2379
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2380
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
2381
 
ac_test_CFLAGS=${CFLAGS+set}
2382
 
ac_save_CFLAGS=$CFLAGS
2383
 
CFLAGS="-g"
2384
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2385
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2386
 
if test "${ac_cv_prog_cc_g+set}" = set; then
2387
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2388
 
else
2389
 
  cat >conftest.$ac_ext <<_ACEOF
2390
 
#line $LINENO "configure"
2391
 
/* confdefs.h.  */
2392
 
_ACEOF
2393
 
cat confdefs.h >>conftest.$ac_ext
2394
 
cat >>conftest.$ac_ext <<_ACEOF
2395
 
/* end confdefs.h.  */
2396
 
 
2397
 
int
2398
 
main ()
2399
 
{
2400
 
 
2401
 
  ;
2402
 
  return 0;
2403
 
}
2404
 
_ACEOF
2405
 
rm -f conftest.$ac_objext
2406
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2407
 
  (eval $ac_compile) 2>&5
2408
 
  ac_status=$?
2409
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410
 
  (exit $ac_status); } &&
2411
 
         { ac_try='test -s conftest.$ac_objext'
2412
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413
 
  (eval $ac_try) 2>&5
2414
 
  ac_status=$?
2415
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416
 
  (exit $ac_status); }; }; then
2417
 
  ac_cv_prog_cc_g=yes
2418
 
else
2419
 
  echo "$as_me: failed program was:" >&5
2420
 
sed 's/^/| /' conftest.$ac_ext >&5
2421
 
 
2422
 
ac_cv_prog_cc_g=no
2423
 
fi
2424
 
rm -f conftest.$ac_objext conftest.$ac_ext
2425
 
fi
2426
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2427
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2428
 
if test "$ac_test_CFLAGS" = set; then
2429
 
  CFLAGS=$ac_save_CFLAGS
2430
 
elif test $ac_cv_prog_cc_g = yes; then
2431
 
  if test "$GCC" = yes; then
2432
 
    CFLAGS="-g -O2"
2433
 
  else
2434
 
    CFLAGS="-g"
2435
 
  fi
2436
 
else
2437
 
  if test "$GCC" = yes; then
2438
 
    CFLAGS="-O2"
2439
 
  else
2440
 
    CFLAGS=
2441
 
  fi
2442
 
fi
2443
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2444
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2445
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2446
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2447
 
else
2448
 
  ac_cv_prog_cc_stdc=no
2449
 
ac_save_CC=$CC
2450
 
cat >conftest.$ac_ext <<_ACEOF
2451
 
#line $LINENO "configure"
2452
 
/* confdefs.h.  */
2453
 
_ACEOF
2454
 
cat confdefs.h >>conftest.$ac_ext
2455
 
cat >>conftest.$ac_ext <<_ACEOF
2456
 
/* end confdefs.h.  */
2457
 
#include <stdarg.h>
2458
 
#include <stdio.h>
2459
 
#include <sys/types.h>
2460
 
#include <sys/stat.h>
2461
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2462
 
struct buf { int x; };
2463
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2464
 
static char *e (p, i)
2465
 
     char **p;
2466
 
     int i;
2467
 
{
2468
 
  return p[i];
2469
 
}
2470
 
static char *f (char * (*g) (char **, int), char **p, ...)
2471
 
{
2472
 
  char *s;
2473
 
  va_list v;
2474
 
  va_start (v,p);
2475
 
  s = g (p, va_arg (v,int));
2476
 
  va_end (v);
2477
 
  return s;
2478
 
}
2479
 
int test (int i, double x);
2480
 
struct s1 {int (*f) (int a);};
2481
 
struct s2 {int (*f) (double a);};
2482
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2483
 
int argc;
2484
 
char **argv;
2485
 
int
2486
 
main ()
2487
 
{
2488
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2489
 
  ;
2490
 
  return 0;
2491
 
}
2492
 
_ACEOF
2493
 
# Don't try gcc -ansi; that turns off useful extensions and
2494
 
# breaks some systems' header files.
2495
 
# AIX                   -qlanglvl=ansi
2496
 
# Ultrix and OSF/1      -std1
2497
 
# HP-UX 10.20 and later -Ae
2498
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2499
 
# SVR4                  -Xc -D__EXTENSIONS__
2500
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2501
 
do
2502
 
  CC="$ac_save_CC $ac_arg"
2503
 
  rm -f conftest.$ac_objext
2504
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2505
 
  (eval $ac_compile) 2>&5
2506
 
  ac_status=$?
2507
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508
 
  (exit $ac_status); } &&
2509
 
         { ac_try='test -s conftest.$ac_objext'
2510
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511
 
  (eval $ac_try) 2>&5
2512
 
  ac_status=$?
2513
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514
 
  (exit $ac_status); }; }; then
2515
 
  ac_cv_prog_cc_stdc=$ac_arg
2516
 
break
2517
 
else
2518
 
  echo "$as_me: failed program was:" >&5
2519
 
sed 's/^/| /' conftest.$ac_ext >&5
2520
 
 
2521
 
fi
2522
 
rm -f conftest.$ac_objext
2523
 
done
2524
 
rm -f conftest.$ac_ext conftest.$ac_objext
2525
 
CC=$ac_save_CC
2526
 
 
2527
 
fi
2528
 
 
2529
 
case "x$ac_cv_prog_cc_stdc" in
2530
 
  x|xno)
2531
 
    echo "$as_me:$LINENO: result: none needed" >&5
2532
 
echo "${ECHO_T}none needed" >&6 ;;
2533
 
  *)
2534
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2535
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2536
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2537
 
esac
2538
 
 
2539
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
2540
 
# in C++ we need to declare it.  In case someone uses the same compiler
2541
 
# for both compiling C and C++ we need to have the C++ compiler decide
2542
 
# the declaration of exit, since it's the most demanding environment.
2543
 
cat >conftest.$ac_ext <<_ACEOF
2544
 
#ifndef __cplusplus
2545
 
  choke me
2546
 
#endif
2547
 
_ACEOF
2548
 
rm -f conftest.$ac_objext
2549
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2550
 
  (eval $ac_compile) 2>&5
2551
 
  ac_status=$?
2552
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553
 
  (exit $ac_status); } &&
2554
 
         { ac_try='test -s conftest.$ac_objext'
2555
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556
 
  (eval $ac_try) 2>&5
2557
 
  ac_status=$?
2558
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559
 
  (exit $ac_status); }; }; then
2560
 
  for ac_declaration in \
2561
 
   ''\
2562
 
   '#include <stdlib.h>' \
2563
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2564
 
   'extern "C" void std::exit (int); using std::exit;' \
2565
 
   'extern "C" void exit (int) throw ();' \
2566
 
   'extern "C" void exit (int);' \
2567
 
   'void exit (int);'
2568
 
do
2569
 
  cat >conftest.$ac_ext <<_ACEOF
2570
 
#line $LINENO "configure"
2571
 
/* confdefs.h.  */
2572
 
_ACEOF
2573
 
cat confdefs.h >>conftest.$ac_ext
2574
 
cat >>conftest.$ac_ext <<_ACEOF
2575
 
/* end confdefs.h.  */
2576
 
#include <stdlib.h>
2577
 
$ac_declaration
2578
 
int
2579
 
main ()
2580
 
{
2581
 
exit (42);
2582
 
  ;
2583
 
  return 0;
2584
 
}
2585
 
_ACEOF
2586
 
rm -f conftest.$ac_objext
2587
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2588
 
  (eval $ac_compile) 2>&5
2589
 
  ac_status=$?
2590
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591
 
  (exit $ac_status); } &&
2592
 
         { ac_try='test -s conftest.$ac_objext'
2593
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594
 
  (eval $ac_try) 2>&5
2595
 
  ac_status=$?
2596
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597
 
  (exit $ac_status); }; }; then
2598
 
  :
2599
 
else
2600
 
  echo "$as_me: failed program was:" >&5
2601
 
sed 's/^/| /' conftest.$ac_ext >&5
2602
 
 
2603
 
continue
2604
 
fi
2605
 
rm -f conftest.$ac_objext conftest.$ac_ext
2606
 
  cat >conftest.$ac_ext <<_ACEOF
2607
 
#line $LINENO "configure"
2608
 
/* confdefs.h.  */
2609
 
_ACEOF
2610
 
cat confdefs.h >>conftest.$ac_ext
2611
 
cat >>conftest.$ac_ext <<_ACEOF
2612
 
/* end confdefs.h.  */
2613
 
$ac_declaration
2614
 
int
2615
 
main ()
2616
 
{
2617
 
exit (42);
2618
 
  ;
2619
 
  return 0;
2620
 
}
2621
 
_ACEOF
2622
 
rm -f conftest.$ac_objext
2623
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2624
 
  (eval $ac_compile) 2>&5
2625
 
  ac_status=$?
2626
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627
 
  (exit $ac_status); } &&
2628
 
         { ac_try='test -s conftest.$ac_objext'
2629
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630
 
  (eval $ac_try) 2>&5
2631
 
  ac_status=$?
2632
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633
 
  (exit $ac_status); }; }; then
2634
 
  break
2635
 
else
2636
 
  echo "$as_me: failed program was:" >&5
2637
 
sed 's/^/| /' conftest.$ac_ext >&5
2638
 
 
2639
 
fi
2640
 
rm -f conftest.$ac_objext conftest.$ac_ext
2641
 
done
2642
 
rm -f conftest*
2643
 
if test -n "$ac_declaration"; then
2644
 
  echo '#ifdef __cplusplus' >>confdefs.h
2645
 
  echo $ac_declaration      >>confdefs.h
2646
 
  echo '#endif'             >>confdefs.h
2647
 
fi
2648
 
 
2649
 
else
2650
 
  echo "$as_me: failed program was:" >&5
2651
 
sed 's/^/| /' conftest.$ac_ext >&5
2652
 
 
2653
 
fi
2654
 
rm -f conftest.$ac_objext conftest.$ac_ext
2655
 
ac_ext=c
2656
 
ac_cpp='$CPP $CPPFLAGS'
2657
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2658
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2659
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2660
 
rm -f .deps 2>/dev/null
2661
 
mkdir .deps 2>/dev/null
2662
 
if test -d .deps; then
2663
 
  DEPDIR=.deps
2664
 
else
2665
 
  # MS-DOS does not allow filenames that begin with a dot.
2666
 
  DEPDIR=_deps
2667
 
fi
2668
 
rmdir .deps 2>/dev/null
2669
 
 
2670
 
 
2671
 
          ac_config_commands="$ac_config_commands depfiles"
2672
 
 
2673
 
 
2674
 
am_make=${MAKE-make}
2675
 
cat > confinc << 'END'
2676
 
doit:
2677
 
        @echo done
2678
 
END
2679
 
# If we don't find an include directive, just comment out the code.
2680
 
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2681
 
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2682
 
am__include="#"
2683
 
am__quote=
2684
 
_am_result=none
2685
 
# First try GNU make style include.
2686
 
echo "include confinc" > confmf
2687
 
# We grep out `Entering directory' and `Leaving directory'
2688
 
# messages which can occur if `w' ends up in MAKEFLAGS.
2689
 
# In particular we don't look at `^make:' because GNU make might
2690
 
# be invoked under some other name (usually "gmake"), in which
2691
 
# case it prints its new name instead of `make'.
2692
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2693
 
   am__include=include
2694
 
   am__quote=
2695
 
   _am_result=GNU
2696
 
fi
2697
 
# Now try BSD make style include.
2698
 
if test "$am__include" = "#"; then
2699
 
   echo '.include "confinc"' > confmf
2700
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2701
 
      am__include=.include
2702
 
      am__quote="\""
2703
 
      _am_result=BSD
2704
 
   fi
2705
 
fi
2706
 
 
2707
 
 
2708
 
echo "$as_me:$LINENO: result: $_am_result" >&5
2709
 
echo "${ECHO_T}$_am_result" >&6
2710
 
rm -f confinc confmf
2711
 
 
2712
 
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2713
 
if test "${enable_dependency_tracking+set}" = set; then
2714
 
  enableval="$enable_dependency_tracking"
2715
 
 
2716
 
fi;
2717
 
if test "x$enable_dependency_tracking" != xno; then
2718
 
  am_depcomp="$ac_aux_dir/depcomp"
2719
 
  AMDEPBACKSLASH='\'
2720
 
fi
2721
 
 
2722
 
 
2723
 
if test "x$enable_dependency_tracking" != xno; then
2724
 
  AMDEP_TRUE=
2725
 
  AMDEP_FALSE='#'
2726
 
else
2727
 
  AMDEP_TRUE='#'
2728
 
  AMDEP_FALSE=
2729
 
fi
2730
 
 
2731
 
 
2732
 
 
2733
 
 
2734
 
depcc="$CC"   am_compiler_list=
2735
 
 
2736
 
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2737
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2738
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2739
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2740
 
else
2741
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2742
 
  # We make a subdir and do the tests there.  Otherwise we can end up
2743
 
  # making bogus files that we don't know about and never remove.  For
2744
 
  # instance it was reported that on HP-UX the gcc test will end up
2745
 
  # making a dummy file named `D' -- because `-MD' means `put the output
2746
 
  # in D'.
2747
 
  mkdir conftest.dir
2748
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
2749
 
  # using a relative directory.
2750
 
  cp "$am_depcomp" conftest.dir
2751
 
  cd conftest.dir
2752
 
 
2753
 
  am_cv_CC_dependencies_compiler_type=none
2754
 
  if test "$am_compiler_list" = ""; then
2755
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2756
 
  fi
2757
 
  for depmode in $am_compiler_list; do
2758
 
    # We need to recreate these files for each test, as the compiler may
2759
 
    # overwrite some of them when testing with obscure command lines.
2760
 
    # This happens at least with the AIX C compiler.
2761
 
    echo '#include "conftest.h"' > conftest.c
2762
 
    echo 'int i;' > conftest.h
2763
 
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2764
 
 
2765
 
    case $depmode in
2766
 
    nosideeffect)
2767
 
      # after this tag, mechanisms are not by side-effect, so they'll
2768
 
      # only be used when explicitly requested
2769
 
      if test "x$enable_dependency_tracking" = xyes; then
2770
 
        continue
2771
 
      else
2772
 
        break
2773
 
      fi
2774
 
      ;;
2775
 
    none) break ;;
2776
 
    esac
2777
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2778
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
2779
 
    # handle `-M -o', and we need to detect this.
2780
 
    if depmode=$depmode \
2781
 
       source=conftest.c object=conftest.o \
2782
 
       depfile=conftest.Po tmpdepfile=conftest.TPo \
2783
 
       $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
2784
 
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
2785
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2786
 
      am_cv_CC_dependencies_compiler_type=$depmode
2787
 
      break
2788
 
    fi
2789
 
  done
2790
 
 
2791
 
  cd ..
2792
 
  rm -rf conftest.dir
2793
 
else
2794
 
  am_cv_CC_dependencies_compiler_type=none
2795
 
fi
2796
 
 
2797
 
fi
2798
 
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2799
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2800
 
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2801
 
 
2802
 
 
2803
 
 
2804
 
if
2805
 
  test "x$enable_dependency_tracking" != xno \
2806
 
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2807
 
  am__fastdepCC_TRUE=
2808
 
  am__fastdepCC_FALSE='#'
2809
 
else
2810
 
  am__fastdepCC_TRUE='#'
2811
 
  am__fastdepCC_FALSE=
2812
 
fi
2813
 
 
2814
 
 
2815
 
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2816
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2817
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2818
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
2987
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2988
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
2989
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2990
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2991
else
 
2992
  cat >conftest.$ac_ext <<_ACEOF
 
2993
/* confdefs.h.  */
 
2994
_ACEOF
 
2995
cat confdefs.h >>conftest.$ac_ext
 
2996
cat >>conftest.$ac_ext <<_ACEOF
 
2997
/* end confdefs.h.  */
 
2998
 
 
2999
int
 
3000
main ()
 
3001
{
 
3002
#ifndef __GNUC__
 
3003
       choke me
 
3004
#endif
 
3005
 
 
3006
  ;
 
3007
  return 0;
 
3008
}
 
3009
_ACEOF
 
3010
rm -f conftest.$ac_objext
 
3011
if { (ac_try="$ac_compile"
 
3012
case "(($ac_try" in
 
3013
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3014
  *) ac_try_echo=$ac_try;;
 
3015
esac
 
3016
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3017
  (eval "$ac_compile") 2>conftest.er1
 
3018
  ac_status=$?
 
3019
  grep -v '^ *+' conftest.er1 >conftest.err
 
3020
  rm -f conftest.er1
 
3021
  cat conftest.err >&5
 
3022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3023
  (exit $ac_status); } && {
 
3024
         test -z "$ac_c_werror_flag" ||
 
3025
         test ! -s conftest.err
 
3026
       } && test -s conftest.$ac_objext; then
 
3027
  ac_compiler_gnu=yes
 
3028
else
 
3029
  echo "$as_me: failed program was:" >&5
 
3030
sed 's/^/| /' conftest.$ac_ext >&5
 
3031
 
 
3032
        ac_compiler_gnu=no
 
3033
fi
 
3034
 
 
3035
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3036
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3037
 
 
3038
fi
 
3039
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3040
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
3041
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3042
ac_test_CFLAGS=${CFLAGS+set}
 
3043
ac_save_CFLAGS=$CFLAGS
 
3044
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3045
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
3046
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3047
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3048
else
 
3049
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3050
   ac_c_werror_flag=yes
 
3051
   ac_cv_prog_cc_g=no
 
3052
   CFLAGS="-g"
 
3053
   cat >conftest.$ac_ext <<_ACEOF
 
3054
/* confdefs.h.  */
 
3055
_ACEOF
 
3056
cat confdefs.h >>conftest.$ac_ext
 
3057
cat >>conftest.$ac_ext <<_ACEOF
 
3058
/* end confdefs.h.  */
 
3059
 
 
3060
int
 
3061
main ()
 
3062
{
 
3063
 
 
3064
  ;
 
3065
  return 0;
 
3066
}
 
3067
_ACEOF
 
3068
rm -f conftest.$ac_objext
 
3069
if { (ac_try="$ac_compile"
 
3070
case "(($ac_try" in
 
3071
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3072
  *) ac_try_echo=$ac_try;;
 
3073
esac
 
3074
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3075
  (eval "$ac_compile") 2>conftest.er1
 
3076
  ac_status=$?
 
3077
  grep -v '^ *+' conftest.er1 >conftest.err
 
3078
  rm -f conftest.er1
 
3079
  cat conftest.err >&5
 
3080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3081
  (exit $ac_status); } && {
 
3082
         test -z "$ac_c_werror_flag" ||
 
3083
         test ! -s conftest.err
 
3084
       } && test -s conftest.$ac_objext; then
 
3085
  ac_cv_prog_cc_g=yes
 
3086
else
 
3087
  echo "$as_me: failed program was:" >&5
 
3088
sed 's/^/| /' conftest.$ac_ext >&5
 
3089
 
 
3090
        CFLAGS=""
 
3091
      cat >conftest.$ac_ext <<_ACEOF
 
3092
/* confdefs.h.  */
 
3093
_ACEOF
 
3094
cat confdefs.h >>conftest.$ac_ext
 
3095
cat >>conftest.$ac_ext <<_ACEOF
 
3096
/* end confdefs.h.  */
 
3097
 
 
3098
int
 
3099
main ()
 
3100
{
 
3101
 
 
3102
  ;
 
3103
  return 0;
 
3104
}
 
3105
_ACEOF
 
3106
rm -f conftest.$ac_objext
 
3107
if { (ac_try="$ac_compile"
 
3108
case "(($ac_try" in
 
3109
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3110
  *) ac_try_echo=$ac_try;;
 
3111
esac
 
3112
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3113
  (eval "$ac_compile") 2>conftest.er1
 
3114
  ac_status=$?
 
3115
  grep -v '^ *+' conftest.er1 >conftest.err
 
3116
  rm -f conftest.er1
 
3117
  cat conftest.err >&5
 
3118
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3119
  (exit $ac_status); } && {
 
3120
         test -z "$ac_c_werror_flag" ||
 
3121
         test ! -s conftest.err
 
3122
       } && test -s conftest.$ac_objext; then
 
3123
  :
 
3124
else
 
3125
  echo "$as_me: failed program was:" >&5
 
3126
sed 's/^/| /' conftest.$ac_ext >&5
 
3127
 
 
3128
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3129
         CFLAGS="-g"
 
3130
         cat >conftest.$ac_ext <<_ACEOF
 
3131
/* confdefs.h.  */
 
3132
_ACEOF
 
3133
cat confdefs.h >>conftest.$ac_ext
 
3134
cat >>conftest.$ac_ext <<_ACEOF
 
3135
/* end confdefs.h.  */
 
3136
 
 
3137
int
 
3138
main ()
 
3139
{
 
3140
 
 
3141
  ;
 
3142
  return 0;
 
3143
}
 
3144
_ACEOF
 
3145
rm -f conftest.$ac_objext
 
3146
if { (ac_try="$ac_compile"
 
3147
case "(($ac_try" in
 
3148
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3149
  *) ac_try_echo=$ac_try;;
 
3150
esac
 
3151
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3152
  (eval "$ac_compile") 2>conftest.er1
 
3153
  ac_status=$?
 
3154
  grep -v '^ *+' conftest.er1 >conftest.err
 
3155
  rm -f conftest.er1
 
3156
  cat conftest.err >&5
 
3157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3158
  (exit $ac_status); } && {
 
3159
         test -z "$ac_c_werror_flag" ||
 
3160
         test ! -s conftest.err
 
3161
       } && test -s conftest.$ac_objext; then
 
3162
  ac_cv_prog_cc_g=yes
 
3163
else
 
3164
  echo "$as_me: failed program was:" >&5
 
3165
sed 's/^/| /' conftest.$ac_ext >&5
 
3166
 
 
3167
 
 
3168
fi
 
3169
 
 
3170
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3171
fi
 
3172
 
 
3173
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3174
fi
 
3175
 
 
3176
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3177
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3178
fi
 
3179
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3180
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
3181
if test "$ac_test_CFLAGS" = set; then
 
3182
  CFLAGS=$ac_save_CFLAGS
 
3183
elif test $ac_cv_prog_cc_g = yes; then
 
3184
  if test "$GCC" = yes; then
 
3185
    CFLAGS="-g -O2"
 
3186
  else
 
3187
    CFLAGS="-g"
 
3188
  fi
 
3189
else
 
3190
  if test "$GCC" = yes; then
 
3191
    CFLAGS="-O2"
 
3192
  else
 
3193
    CFLAGS=
 
3194
  fi
 
3195
fi
 
3196
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3197
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
3198
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
3199
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3200
else
 
3201
  ac_cv_prog_cc_c89=no
 
3202
ac_save_CC=$CC
 
3203
cat >conftest.$ac_ext <<_ACEOF
 
3204
/* confdefs.h.  */
 
3205
_ACEOF
 
3206
cat confdefs.h >>conftest.$ac_ext
 
3207
cat >>conftest.$ac_ext <<_ACEOF
 
3208
/* end confdefs.h.  */
 
3209
#include <stdarg.h>
 
3210
#include <stdio.h>
 
3211
#include <sys/types.h>
 
3212
#include <sys/stat.h>
 
3213
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3214
struct buf { int x; };
 
3215
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3216
static char *e (p, i)
 
3217
     char **p;
 
3218
     int i;
 
3219
{
 
3220
  return p[i];
 
3221
}
 
3222
static char *f (char * (*g) (char **, int), char **p, ...)
 
3223
{
 
3224
  char *s;
 
3225
  va_list v;
 
3226
  va_start (v,p);
 
3227
  s = g (p, va_arg (v,int));
 
3228
  va_end (v);
 
3229
  return s;
 
3230
}
 
3231
 
 
3232
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3233
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3234
   These don't provoke an error unfortunately, instead are silently treated
 
3235
   as 'x'.  The following induces an error, until -std is added to get
 
3236
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3237
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3238
   that's true only with -std.  */
 
3239
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3240
 
 
3241
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3242
   inside strings and character constants.  */
 
3243
#define FOO(x) 'x'
 
3244
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3245
 
 
3246
int test (int i, double x);
 
3247
struct s1 {int (*f) (int a);};
 
3248
struct s2 {int (*f) (double a);};
 
3249
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3250
int argc;
 
3251
char **argv;
 
3252
int
 
3253
main ()
 
3254
{
 
3255
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3256
  ;
 
3257
  return 0;
 
3258
}
 
3259
_ACEOF
 
3260
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3261
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3262
do
 
3263
  CC="$ac_save_CC $ac_arg"
 
3264
  rm -f conftest.$ac_objext
 
3265
if { (ac_try="$ac_compile"
 
3266
case "(($ac_try" in
 
3267
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3268
  *) ac_try_echo=$ac_try;;
 
3269
esac
 
3270
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3271
  (eval "$ac_compile") 2>conftest.er1
 
3272
  ac_status=$?
 
3273
  grep -v '^ *+' conftest.er1 >conftest.err
 
3274
  rm -f conftest.er1
 
3275
  cat conftest.err >&5
 
3276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3277
  (exit $ac_status); } && {
 
3278
         test -z "$ac_c_werror_flag" ||
 
3279
         test ! -s conftest.err
 
3280
       } && test -s conftest.$ac_objext; then
 
3281
  ac_cv_prog_cc_c89=$ac_arg
 
3282
else
 
3283
  echo "$as_me: failed program was:" >&5
 
3284
sed 's/^/| /' conftest.$ac_ext >&5
 
3285
 
 
3286
 
 
3287
fi
 
3288
 
 
3289
rm -f core conftest.err conftest.$ac_objext
 
3290
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3291
done
 
3292
rm -f conftest.$ac_ext
 
3293
CC=$ac_save_CC
 
3294
 
 
3295
fi
 
3296
# AC_CACHE_VAL
 
3297
case "x$ac_cv_prog_cc_c89" in
 
3298
  x)
 
3299
    { echo "$as_me:$LINENO: result: none needed" >&5
 
3300
echo "${ECHO_T}none needed" >&6; } ;;
 
3301
  xno)
 
3302
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
3303
echo "${ECHO_T}unsupported" >&6; } ;;
 
3304
  *)
 
3305
    CC="$CC $ac_cv_prog_cc_c89"
 
3306
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
3307
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
3308
esac
 
3309
 
 
3310
 
 
3311
ac_ext=c
 
3312
ac_cpp='$CPP $CPPFLAGS'
 
3313
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3314
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3315
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3316
 
 
3317
depcc="$CC"   am_compiler_list=
 
3318
 
 
3319
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3320
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
3321
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3322
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3323
else
 
3324
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3325
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3326
  # making bogus files that we don't know about and never remove.  For
 
3327
  # instance it was reported that on HP-UX the gcc test will end up
 
3328
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3329
  # in D'.
 
3330
  mkdir conftest.dir
 
3331
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3332
  # using a relative directory.
 
3333
  cp "$am_depcomp" conftest.dir
 
3334
  cd conftest.dir
 
3335
  # We will build objects and dependencies in a subdirectory because
 
3336
  # it helps to detect inapplicable dependency modes.  For instance
 
3337
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3338
  # side effect of compilation, but ICC will put the dependencies in
 
3339
  # the current directory while Tru64 will put them in the object
 
3340
  # directory.
 
3341
  mkdir sub
 
3342
 
 
3343
  am_cv_CC_dependencies_compiler_type=none
 
3344
  if test "$am_compiler_list" = ""; then
 
3345
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3346
  fi
 
3347
  for depmode in $am_compiler_list; do
 
3348
    # Setup a source with many dependencies, because some compilers
 
3349
    # like to wrap large dependency lists on column 80 (with \), and
 
3350
    # we should not choose a depcomp mode which is confused by this.
 
3351
    #
 
3352
    # We need to recreate these files for each test, as the compiler may
 
3353
    # overwrite some of them when testing with obscure command lines.
 
3354
    # This happens at least with the AIX C compiler.
 
3355
    : > sub/conftest.c
 
3356
    for i in 1 2 3 4 5 6; do
 
3357
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3358
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3359
      # Solaris 8's {/usr,}/bin/sh.
 
3360
      touch sub/conftst$i.h
 
3361
    done
 
3362
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3363
 
 
3364
    case $depmode in
 
3365
    nosideeffect)
 
3366
      # after this tag, mechanisms are not by side-effect, so they'll
 
3367
      # only be used when explicitly requested
 
3368
      if test "x$enable_dependency_tracking" = xyes; then
 
3369
        continue
 
3370
      else
 
3371
        break
 
3372
      fi
 
3373
      ;;
 
3374
    none) break ;;
 
3375
    esac
 
3376
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3377
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3378
    # handle `-M -o', and we need to detect this.
 
3379
    if depmode=$depmode \
 
3380
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3381
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3382
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3383
         >/dev/null 2>conftest.err &&
 
3384
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3385
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3386
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3387
      # icc doesn't choke on unknown options, it will just issue warnings
 
3388
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3389
      # that says an option was ignored or not supported.
 
3390
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3391
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3392
      # The diagnosis changed in icc 8.0:
 
3393
      #   icc: Command line remark: option '-MP' not supported
 
3394
      if (grep 'ignoring option' conftest.err ||
 
3395
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3396
        am_cv_CC_dependencies_compiler_type=$depmode
 
3397
        break
 
3398
      fi
 
3399
    fi
 
3400
  done
 
3401
 
 
3402
  cd ..
 
3403
  rm -rf conftest.dir
 
3404
else
 
3405
  am_cv_CC_dependencies_compiler_type=none
 
3406
fi
 
3407
 
 
3408
fi
 
3409
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3410
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
3411
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3412
 
 
3413
 
 
3414
 
 
3415
if
 
3416
  test "x$enable_dependency_tracking" != xno \
 
3417
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3418
  am__fastdepCC_TRUE=
 
3419
  am__fastdepCC_FALSE='#'
 
3420
else
 
3421
  am__fastdepCC_TRUE='#'
 
3422
  am__fastdepCC_FALSE=
 
3423
fi
 
3424
 
 
3425
 
 
3426
 
 
3427
 
 
3428
case "$am__api_version" in
 
3429
    1.01234)
 
3430
        { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
 
3431
echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
 
3432
   { (exit 1); exit 1; }; }
 
3433
    ;;
 
3434
    *)
 
3435
    ;;
 
3436
esac
 
3437
 
 
3438
if test -n ""; then
 
3439
    { echo "$as_me:$LINENO: checking for intltool >= " >&5
 
3440
echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6; }
 
3441
 
 
3442
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo  | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
3443
    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
 
3444
    INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in`
 
3445
 
 
3446
    { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
 
3447
echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; }
 
3448
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
 
3449
        { { echo "$as_me:$LINENO: error: Your intltool is too old.  You need intltool  or later." >&5
 
3450
echo "$as_me: error: Your intltool is too old.  You need intltool  or later." >&2;}
 
3451
   { (exit 1); exit 1; }; }
 
3452
fi
 
3453
 
 
3454
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
3455
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
3456
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
3457
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
3458
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
 
3459
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
3460
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
3461
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
3462
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
3463
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
3464
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
3465
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
 
3466
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
3467
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
3468
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
3469
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
3470
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
3471
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
3472
 
 
3473
 
 
3474
 
 
3475
 
 
3476
 
 
3477
 
 
3478
 
 
3479
 
 
3480
 
 
3481
 
 
3482
 
 
3483
 
 
3484
 
 
3485
 
 
3486
 
 
3487
 
 
3488
 
 
3489
 
 
3490
 
 
3491
 
 
3492
# Use the tools built into the package, not the ones that are installed.
 
3493
INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
 
3494
 
 
3495
INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
 
3496
 
 
3497
INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
 
3498
 
 
3499
 
 
3500
# Extract the first word of "perl", so it can be a program name with args.
 
3501
set dummy perl; ac_word=$2
 
3502
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3503
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3504
if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
 
3505
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3506
else
 
3507
  case $INTLTOOL_PERL in
 
3508
  [\\/]* | ?:[\\/]*)
 
3509
  ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
 
3510
  ;;
 
3511
  *)
 
3512
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3513
for as_dir in $PATH
 
3514
do
 
3515
  IFS=$as_save_IFS
 
3516
  test -z "$as_dir" && as_dir=.
 
3517
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3518
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3519
    ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
 
3520
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3521
    break 2
 
3522
  fi
 
3523
done
 
3524
done
 
3525
IFS=$as_save_IFS
 
3526
 
 
3527
  ;;
 
3528
esac
 
3529
fi
 
3530
INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
 
3531
if test -n "$INTLTOOL_PERL"; then
 
3532
  { echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
 
3533
echo "${ECHO_T}$INTLTOOL_PERL" >&6; }
 
3534
else
 
3535
  { echo "$as_me:$LINENO: result: no" >&5
 
3536
echo "${ECHO_T}no" >&6; }
 
3537
fi
 
3538
 
 
3539
 
 
3540
if test -z "$INTLTOOL_PERL"; then
 
3541
   { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
 
3542
echo "$as_me: error: perl not found; required for intltool" >&2;}
 
3543
   { (exit 1); exit 1; }; }
 
3544
fi
 
3545
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
 
3546
   { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
 
3547
echo "$as_me: error: perl 5.x required for intltool" >&2;}
 
3548
   { (exit 1); exit 1; }; }
 
3549
fi
 
3550
if test "x" != "xno-xml"; then
 
3551
   { echo "$as_me:$LINENO: checking for XML::Parser" >&5
 
3552
echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6; }
 
3553
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
 
3554
       { echo "$as_me:$LINENO: result: ok" >&5
 
3555
echo "${ECHO_T}ok" >&6; }
 
3556
   else
 
3557
       { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
 
3558
echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
 
3559
   { (exit 1); exit 1; }; }
 
3560
   fi
 
3561
fi
 
3562
 
 
3563
# Extract the first word of "iconv", so it can be a program name with args.
 
3564
set dummy iconv; ac_word=$2
 
3565
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3566
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3567
if test "${ac_cv_path_INTLTOOL_ICONV+set}" = set; then
 
3568
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3569
else
 
3570
  case $INTLTOOL_ICONV in
 
3571
  [\\/]* | ?:[\\/]*)
 
3572
  ac_cv_path_INTLTOOL_ICONV="$INTLTOOL_ICONV" # Let the user override the test with a path.
 
3573
  ;;
 
3574
  *)
 
3575
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3576
for as_dir in $PATH
 
3577
do
 
3578
  IFS=$as_save_IFS
 
3579
  test -z "$as_dir" && as_dir=.
 
3580
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3581
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3582
    ac_cv_path_INTLTOOL_ICONV="$as_dir/$ac_word$ac_exec_ext"
 
3583
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3584
    break 2
 
3585
  fi
 
3586
done
 
3587
done
 
3588
IFS=$as_save_IFS
 
3589
 
 
3590
  test -z "$ac_cv_path_INTLTOOL_ICONV" && ac_cv_path_INTLTOOL_ICONV="iconv"
 
3591
  ;;
 
3592
esac
 
3593
fi
 
3594
INTLTOOL_ICONV=$ac_cv_path_INTLTOOL_ICONV
 
3595
if test -n "$INTLTOOL_ICONV"; then
 
3596
  { echo "$as_me:$LINENO: result: $INTLTOOL_ICONV" >&5
 
3597
echo "${ECHO_T}$INTLTOOL_ICONV" >&6; }
 
3598
else
 
3599
  { echo "$as_me:$LINENO: result: no" >&5
 
3600
echo "${ECHO_T}no" >&6; }
 
3601
fi
 
3602
 
 
3603
 
 
3604
# Extract the first word of "msgfmt", so it can be a program name with args.
 
3605
set dummy msgfmt; ac_word=$2
 
3606
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3607
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3608
if test "${ac_cv_path_INTLTOOL_MSGFMT+set}" = set; then
 
3609
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3610
else
 
3611
  case $INTLTOOL_MSGFMT in
 
3612
  [\\/]* | ?:[\\/]*)
 
3613
  ac_cv_path_INTLTOOL_MSGFMT="$INTLTOOL_MSGFMT" # Let the user override the test with a path.
 
3614
  ;;
 
3615
  *)
 
3616
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3617
for as_dir in $PATH
 
3618
do
 
3619
  IFS=$as_save_IFS
 
3620
  test -z "$as_dir" && as_dir=.
 
3621
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3622
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3623
    ac_cv_path_INTLTOOL_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
3624
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3625
    break 2
 
3626
  fi
 
3627
done
 
3628
done
 
3629
IFS=$as_save_IFS
 
3630
 
 
3631
  test -z "$ac_cv_path_INTLTOOL_MSGFMT" && ac_cv_path_INTLTOOL_MSGFMT="msgfmt"
 
3632
  ;;
 
3633
esac
 
3634
fi
 
3635
INTLTOOL_MSGFMT=$ac_cv_path_INTLTOOL_MSGFMT
 
3636
if test -n "$INTLTOOL_MSGFMT"; then
 
3637
  { echo "$as_me:$LINENO: result: $INTLTOOL_MSGFMT" >&5
 
3638
echo "${ECHO_T}$INTLTOOL_MSGFMT" >&6; }
 
3639
else
 
3640
  { echo "$as_me:$LINENO: result: no" >&5
 
3641
echo "${ECHO_T}no" >&6; }
 
3642
fi
 
3643
 
 
3644
 
 
3645
# Extract the first word of "msgmerge", so it can be a program name with args.
 
3646
set dummy msgmerge; ac_word=$2
 
3647
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3648
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3649
if test "${ac_cv_path_INTLTOOL_MSGMERGE+set}" = set; then
 
3650
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3651
else
 
3652
  case $INTLTOOL_MSGMERGE in
 
3653
  [\\/]* | ?:[\\/]*)
 
3654
  ac_cv_path_INTLTOOL_MSGMERGE="$INTLTOOL_MSGMERGE" # Let the user override the test with a path.
 
3655
  ;;
 
3656
  *)
 
3657
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3658
for as_dir in $PATH
 
3659
do
 
3660
  IFS=$as_save_IFS
 
3661
  test -z "$as_dir" && as_dir=.
 
3662
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3663
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3664
    ac_cv_path_INTLTOOL_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
 
3665
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3666
    break 2
 
3667
  fi
 
3668
done
 
3669
done
 
3670
IFS=$as_save_IFS
 
3671
 
 
3672
  test -z "$ac_cv_path_INTLTOOL_MSGMERGE" && ac_cv_path_INTLTOOL_MSGMERGE="msgmerge"
 
3673
  ;;
 
3674
esac
 
3675
fi
 
3676
INTLTOOL_MSGMERGE=$ac_cv_path_INTLTOOL_MSGMERGE
 
3677
if test -n "$INTLTOOL_MSGMERGE"; then
 
3678
  { echo "$as_me:$LINENO: result: $INTLTOOL_MSGMERGE" >&5
 
3679
echo "${ECHO_T}$INTLTOOL_MSGMERGE" >&6; }
 
3680
else
 
3681
  { echo "$as_me:$LINENO: result: no" >&5
 
3682
echo "${ECHO_T}no" >&6; }
 
3683
fi
 
3684
 
 
3685
 
 
3686
# Extract the first word of "xgettext", so it can be a program name with args.
 
3687
set dummy xgettext; ac_word=$2
 
3688
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3689
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3690
if test "${ac_cv_path_INTLTOOL_XGETTEXT+set}" = set; then
 
3691
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3692
else
 
3693
  case $INTLTOOL_XGETTEXT in
 
3694
  [\\/]* | ?:[\\/]*)
 
3695
  ac_cv_path_INTLTOOL_XGETTEXT="$INTLTOOL_XGETTEXT" # Let the user override the test with a path.
 
3696
  ;;
 
3697
  *)
 
3698
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3699
for as_dir in $PATH
 
3700
do
 
3701
  IFS=$as_save_IFS
 
3702
  test -z "$as_dir" && as_dir=.
 
3703
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3704
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3705
    ac_cv_path_INTLTOOL_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
 
3706
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3707
    break 2
 
3708
  fi
 
3709
done
 
3710
done
 
3711
IFS=$as_save_IFS
 
3712
 
 
3713
  test -z "$ac_cv_path_INTLTOOL_XGETTEXT" && ac_cv_path_INTLTOOL_XGETTEXT="xgettext"
 
3714
  ;;
 
3715
esac
 
3716
fi
 
3717
INTLTOOL_XGETTEXT=$ac_cv_path_INTLTOOL_XGETTEXT
 
3718
if test -n "$INTLTOOL_XGETTEXT"; then
 
3719
  { echo "$as_me:$LINENO: result: $INTLTOOL_XGETTEXT" >&5
 
3720
echo "${ECHO_T}$INTLTOOL_XGETTEXT" >&6; }
 
3721
else
 
3722
  { echo "$as_me:$LINENO: result: no" >&5
 
3723
echo "${ECHO_T}no" >&6; }
 
3724
fi
 
3725
 
 
3726
 
 
3727
 
 
3728
# Substitute ALL_LINGUAS so we can use it in po/Makefile
 
3729
 
 
3730
 
 
3731
# Set DATADIRNAME correctly if it is not set yet
 
3732
# (copied from glib-gettext.m4)
 
3733
if test -z "$DATADIRNAME"; then
 
3734
  cat >conftest.$ac_ext <<_ACEOF
 
3735
/* confdefs.h.  */
 
3736
_ACEOF
 
3737
cat confdefs.h >>conftest.$ac_ext
 
3738
cat >>conftest.$ac_ext <<_ACEOF
 
3739
/* end confdefs.h.  */
 
3740
 
 
3741
int
 
3742
main ()
 
3743
{
 
3744
extern int _nl_msg_cat_cntr;
 
3745
                 return _nl_msg_cat_cntr
 
3746
  ;
 
3747
  return 0;
 
3748
}
 
3749
_ACEOF
 
3750
rm -f conftest.$ac_objext conftest$ac_exeext
 
3751
if { (ac_try="$ac_link"
 
3752
case "(($ac_try" in
 
3753
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3754
  *) ac_try_echo=$ac_try;;
 
3755
esac
 
3756
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3757
  (eval "$ac_link") 2>conftest.er1
 
3758
  ac_status=$?
 
3759
  grep -v '^ *+' conftest.er1 >conftest.err
 
3760
  rm -f conftest.er1
 
3761
  cat conftest.err >&5
 
3762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3763
  (exit $ac_status); } && {
 
3764
         test -z "$ac_c_werror_flag" ||
 
3765
         test ! -s conftest.err
 
3766
       } && test -s conftest$ac_exeext &&
 
3767
       $as_test_x conftest$ac_exeext; then
 
3768
  DATADIRNAME=share
 
3769
else
 
3770
  echo "$as_me: failed program was:" >&5
 
3771
sed 's/^/| /' conftest.$ac_ext >&5
 
3772
 
 
3773
        case $host in
 
3774
    *-*-solaris*)
 
3775
                        { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
 
3776
echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
 
3777
if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
 
3778
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3779
else
 
3780
  cat >conftest.$ac_ext <<_ACEOF
 
3781
/* confdefs.h.  */
 
3782
_ACEOF
 
3783
cat confdefs.h >>conftest.$ac_ext
 
3784
cat >>conftest.$ac_ext <<_ACEOF
 
3785
/* end confdefs.h.  */
 
3786
/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
 
3787
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
3788
#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
 
3789
 
 
3790
/* System header to define __stub macros and hopefully few prototypes,
 
3791
    which can conflict with char bind_textdomain_codeset (); below.
 
3792
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3793
    <limits.h> exists even on freestanding compilers.  */
 
3794
 
 
3795
#ifdef __STDC__
 
3796
# include <limits.h>
 
3797
#else
 
3798
# include <assert.h>
 
3799
#endif
 
3800
 
 
3801
#undef bind_textdomain_codeset
 
3802
 
 
3803
/* Override any GCC internal prototype to avoid an error.
 
3804
   Use char because int might match the return type of a GCC
 
3805
   builtin and then its argument prototype would still apply.  */
 
3806
#ifdef __cplusplus
 
3807
extern "C"
 
3808
#endif
 
3809
char bind_textdomain_codeset ();
 
3810
/* The GNU C library defines this for functions which it implements
 
3811
    to always fail with ENOSYS.  Some functions are actually named
 
3812
    something starting with __ and the normal name is an alias.  */
 
3813
#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
 
3814
choke me
 
3815
#endif
 
3816
 
 
3817
int
 
3818
main ()
 
3819
{
 
3820
return bind_textdomain_codeset ();
 
3821
  ;
 
3822
  return 0;
 
3823
}
 
3824
_ACEOF
 
3825
rm -f conftest.$ac_objext conftest$ac_exeext
 
3826
if { (ac_try="$ac_link"
 
3827
case "(($ac_try" in
 
3828
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3829
  *) ac_try_echo=$ac_try;;
 
3830
esac
 
3831
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3832
  (eval "$ac_link") 2>conftest.er1
 
3833
  ac_status=$?
 
3834
  grep -v '^ *+' conftest.er1 >conftest.err
 
3835
  rm -f conftest.er1
 
3836
  cat conftest.err >&5
 
3837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3838
  (exit $ac_status); } && {
 
3839
         test -z "$ac_c_werror_flag" ||
 
3840
         test ! -s conftest.err
 
3841
       } && test -s conftest$ac_exeext &&
 
3842
       $as_test_x conftest$ac_exeext; then
 
3843
  ac_cv_func_bind_textdomain_codeset=yes
 
3844
else
 
3845
  echo "$as_me: failed program was:" >&5
 
3846
sed 's/^/| /' conftest.$ac_ext >&5
 
3847
 
 
3848
        ac_cv_func_bind_textdomain_codeset=no
 
3849
fi
 
3850
 
 
3851
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
3852
      conftest$ac_exeext conftest.$ac_ext
 
3853
fi
 
3854
{ echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
 
3855
echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
 
3856
if test $ac_cv_func_bind_textdomain_codeset = yes; then
 
3857
  DATADIRNAME=share
 
3858
else
 
3859
  DATADIRNAME=lib
 
3860
fi
 
3861
 
 
3862
    ;;
 
3863
    *)
 
3864
    DATADIRNAME=lib
 
3865
    ;;
 
3866
    esac
 
3867
fi
 
3868
 
 
3869
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
3870
      conftest$ac_exeext conftest.$ac_ext
 
3871
fi
 
3872
 
 
3873
 
 
3874
 
 
3875
 
 
3876
 
 
3877
ac_config_commands="$ac_config_commands intltool"
 
3878
 
 
3879
 
 
3880
 
 
3881
 
 
3882
 
 
3883
 
 
3884
{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
 
3885
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
 
3886
if test "${ac_cv_search_strerror+set}" = set; then
 
3887
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3888
else
 
3889
  ac_func_search_save_LIBS=$LIBS
 
3890
cat >conftest.$ac_ext <<_ACEOF
 
3891
/* confdefs.h.  */
 
3892
_ACEOF
 
3893
cat confdefs.h >>conftest.$ac_ext
 
3894
cat >>conftest.$ac_ext <<_ACEOF
 
3895
/* end confdefs.h.  */
 
3896
 
 
3897
/* Override any GCC internal prototype to avoid an error.
 
3898
   Use char because int might match the return type of a GCC
 
3899
   builtin and then its argument prototype would still apply.  */
 
3900
#ifdef __cplusplus
 
3901
extern "C"
 
3902
#endif
 
3903
char strerror ();
 
3904
int
 
3905
main ()
 
3906
{
 
3907
return strerror ();
 
3908
  ;
 
3909
  return 0;
 
3910
}
 
3911
_ACEOF
 
3912
for ac_lib in '' cposix; do
 
3913
  if test -z "$ac_lib"; then
 
3914
    ac_res="none required"
 
3915
  else
 
3916
    ac_res=-l$ac_lib
 
3917
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
3918
  fi
 
3919
  rm -f conftest.$ac_objext conftest$ac_exeext
 
3920
if { (ac_try="$ac_link"
 
3921
case "(($ac_try" in
 
3922
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3923
  *) ac_try_echo=$ac_try;;
 
3924
esac
 
3925
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3926
  (eval "$ac_link") 2>conftest.er1
 
3927
  ac_status=$?
 
3928
  grep -v '^ *+' conftest.er1 >conftest.err
 
3929
  rm -f conftest.er1
 
3930
  cat conftest.err >&5
 
3931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3932
  (exit $ac_status); } && {
 
3933
         test -z "$ac_c_werror_flag" ||
 
3934
         test ! -s conftest.err
 
3935
       } && test -s conftest$ac_exeext &&
 
3936
       $as_test_x conftest$ac_exeext; then
 
3937
  ac_cv_search_strerror=$ac_res
 
3938
else
 
3939
  echo "$as_me: failed program was:" >&5
 
3940
sed 's/^/| /' conftest.$ac_ext >&5
 
3941
 
 
3942
 
 
3943
fi
 
3944
 
 
3945
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
3946
      conftest$ac_exeext
 
3947
  if test "${ac_cv_search_strerror+set}" = set; then
 
3948
  break
 
3949
fi
 
3950
done
 
3951
if test "${ac_cv_search_strerror+set}" = set; then
 
3952
  :
 
3953
else
 
3954
  ac_cv_search_strerror=no
 
3955
fi
 
3956
rm conftest.$ac_ext
 
3957
LIBS=$ac_func_search_save_LIBS
 
3958
fi
 
3959
{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
 
3960
echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
 
3961
ac_res=$ac_cv_search_strerror
 
3962
if test "$ac_res" != no; then
 
3963
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
3964
 
 
3965
fi
 
3966
 
 
3967
ac_ext=c
 
3968
ac_cpp='$CPP $CPPFLAGS'
 
3969
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3970
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3971
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3972
if test -n "$ac_tool_prefix"; then
 
3973
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3974
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3975
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3976
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3977
if test "${ac_cv_prog_CC+set}" = set; then
 
3978
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3979
else
 
3980
  if test -n "$CC"; then
 
3981
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3982
else
 
3983
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3984
for as_dir in $PATH
 
3985
do
 
3986
  IFS=$as_save_IFS
 
3987
  test -z "$as_dir" && as_dir=.
 
3988
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3989
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3990
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3991
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3992
    break 2
 
3993
  fi
 
3994
done
 
3995
done
 
3996
IFS=$as_save_IFS
 
3997
 
 
3998
fi
 
3999
fi
 
4000
CC=$ac_cv_prog_CC
 
4001
if test -n "$CC"; then
 
4002
  { echo "$as_me:$LINENO: result: $CC" >&5
 
4003
echo "${ECHO_T}$CC" >&6; }
 
4004
else
 
4005
  { echo "$as_me:$LINENO: result: no" >&5
 
4006
echo "${ECHO_T}no" >&6; }
 
4007
fi
 
4008
 
 
4009
 
 
4010
fi
 
4011
if test -z "$ac_cv_prog_CC"; then
 
4012
  ac_ct_CC=$CC
 
4013
  # Extract the first word of "gcc", so it can be a program name with args.
 
4014
set dummy gcc; ac_word=$2
 
4015
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4016
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4017
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
4018
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4019
else
 
4020
  if test -n "$ac_ct_CC"; then
 
4021
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
4022
else
 
4023
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4024
for as_dir in $PATH
 
4025
do
 
4026
  IFS=$as_save_IFS
 
4027
  test -z "$as_dir" && as_dir=.
 
4028
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4029
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4030
    ac_cv_prog_ac_ct_CC="gcc"
 
4031
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4032
    break 2
 
4033
  fi
 
4034
done
 
4035
done
 
4036
IFS=$as_save_IFS
 
4037
 
 
4038
fi
 
4039
fi
 
4040
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
4041
if test -n "$ac_ct_CC"; then
 
4042
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
4043
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
4044
else
 
4045
  { echo "$as_me:$LINENO: result: no" >&5
 
4046
echo "${ECHO_T}no" >&6; }
 
4047
fi
 
4048
 
 
4049
  if test "x$ac_ct_CC" = x; then
 
4050
    CC=""
 
4051
  else
 
4052
    case $cross_compiling:$ac_tool_warned in
 
4053
yes:)
 
4054
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
4055
whose name does not start with the host triplet.  If you think this
 
4056
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
4057
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
4058
whose name does not start with the host triplet.  If you think this
 
4059
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
4060
ac_tool_warned=yes ;;
 
4061
esac
 
4062
    CC=$ac_ct_CC
 
4063
  fi
 
4064
else
 
4065
  CC="$ac_cv_prog_CC"
 
4066
fi
 
4067
 
 
4068
if test -z "$CC"; then
 
4069
          if test -n "$ac_tool_prefix"; then
 
4070
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
4071
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
4072
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4073
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4074
if test "${ac_cv_prog_CC+set}" = set; then
 
4075
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4076
else
 
4077
  if test -n "$CC"; then
 
4078
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4079
else
 
4080
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4081
for as_dir in $PATH
 
4082
do
 
4083
  IFS=$as_save_IFS
 
4084
  test -z "$as_dir" && as_dir=.
 
4085
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4086
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4087
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
4088
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4089
    break 2
 
4090
  fi
 
4091
done
 
4092
done
 
4093
IFS=$as_save_IFS
 
4094
 
 
4095
fi
 
4096
fi
 
4097
CC=$ac_cv_prog_CC
 
4098
if test -n "$CC"; then
 
4099
  { echo "$as_me:$LINENO: result: $CC" >&5
 
4100
echo "${ECHO_T}$CC" >&6; }
 
4101
else
 
4102
  { echo "$as_me:$LINENO: result: no" >&5
 
4103
echo "${ECHO_T}no" >&6; }
 
4104
fi
 
4105
 
 
4106
 
 
4107
  fi
 
4108
fi
 
4109
if test -z "$CC"; then
 
4110
  # Extract the first word of "cc", so it can be a program name with args.
 
4111
set dummy cc; ac_word=$2
 
4112
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4113
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4114
if test "${ac_cv_prog_CC+set}" = set; then
 
4115
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4116
else
 
4117
  if test -n "$CC"; then
 
4118
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4119
else
 
4120
  ac_prog_rejected=no
 
4121
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4122
for as_dir in $PATH
 
4123
do
 
4124
  IFS=$as_save_IFS
 
4125
  test -z "$as_dir" && as_dir=.
 
4126
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4127
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4128
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
4129
       ac_prog_rejected=yes
 
4130
       continue
 
4131
     fi
 
4132
    ac_cv_prog_CC="cc"
 
4133
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4134
    break 2
 
4135
  fi
 
4136
done
 
4137
done
 
4138
IFS=$as_save_IFS
 
4139
 
 
4140
if test $ac_prog_rejected = yes; then
 
4141
  # We found a bogon in the path, so make sure we never use it.
 
4142
  set dummy $ac_cv_prog_CC
 
4143
  shift
 
4144
  if test $# != 0; then
 
4145
    # We chose a different compiler from the bogus one.
 
4146
    # However, it has the same basename, so the bogon will be chosen
 
4147
    # first if we set CC to just the basename; use the full file name.
 
4148
    shift
 
4149
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
4150
  fi
 
4151
fi
 
4152
fi
 
4153
fi
 
4154
CC=$ac_cv_prog_CC
 
4155
if test -n "$CC"; then
 
4156
  { echo "$as_me:$LINENO: result: $CC" >&5
 
4157
echo "${ECHO_T}$CC" >&6; }
 
4158
else
 
4159
  { echo "$as_me:$LINENO: result: no" >&5
 
4160
echo "${ECHO_T}no" >&6; }
 
4161
fi
 
4162
 
 
4163
 
 
4164
fi
 
4165
if test -z "$CC"; then
 
4166
  if test -n "$ac_tool_prefix"; then
 
4167
  for ac_prog in cl.exe
 
4168
  do
 
4169
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4170
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4171
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4172
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4173
if test "${ac_cv_prog_CC+set}" = set; then
 
4174
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4175
else
 
4176
  if test -n "$CC"; then
 
4177
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4178
else
 
4179
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4180
for as_dir in $PATH
 
4181
do
 
4182
  IFS=$as_save_IFS
 
4183
  test -z "$as_dir" && as_dir=.
 
4184
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4185
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4186
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
4187
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4188
    break 2
 
4189
  fi
 
4190
done
 
4191
done
 
4192
IFS=$as_save_IFS
 
4193
 
 
4194
fi
 
4195
fi
 
4196
CC=$ac_cv_prog_CC
 
4197
if test -n "$CC"; then
 
4198
  { echo "$as_me:$LINENO: result: $CC" >&5
 
4199
echo "${ECHO_T}$CC" >&6; }
 
4200
else
 
4201
  { echo "$as_me:$LINENO: result: no" >&5
 
4202
echo "${ECHO_T}no" >&6; }
 
4203
fi
 
4204
 
 
4205
 
 
4206
    test -n "$CC" && break
 
4207
  done
 
4208
fi
 
4209
if test -z "$CC"; then
 
4210
  ac_ct_CC=$CC
 
4211
  for ac_prog in cl.exe
 
4212
do
 
4213
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4214
set dummy $ac_prog; ac_word=$2
 
4215
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4216
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4217
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
4218
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4219
else
 
4220
  if test -n "$ac_ct_CC"; then
 
4221
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
4222
else
 
4223
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4224
for as_dir in $PATH
 
4225
do
 
4226
  IFS=$as_save_IFS
 
4227
  test -z "$as_dir" && as_dir=.
 
4228
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4229
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4230
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
4231
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4232
    break 2
 
4233
  fi
 
4234
done
 
4235
done
 
4236
IFS=$as_save_IFS
 
4237
 
 
4238
fi
 
4239
fi
 
4240
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
4241
if test -n "$ac_ct_CC"; then
 
4242
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
4243
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
4244
else
 
4245
  { echo "$as_me:$LINENO: result: no" >&5
 
4246
echo "${ECHO_T}no" >&6; }
 
4247
fi
 
4248
 
 
4249
 
 
4250
  test -n "$ac_ct_CC" && break
 
4251
done
 
4252
 
 
4253
  if test "x$ac_ct_CC" = x; then
 
4254
    CC=""
 
4255
  else
 
4256
    case $cross_compiling:$ac_tool_warned in
 
4257
yes:)
 
4258
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
4259
whose name does not start with the host triplet.  If you think this
 
4260
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
4261
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
4262
whose name does not start with the host triplet.  If you think this
 
4263
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
4264
ac_tool_warned=yes ;;
 
4265
esac
 
4266
    CC=$ac_ct_CC
 
4267
  fi
 
4268
fi
 
4269
 
 
4270
fi
 
4271
 
 
4272
 
 
4273
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
4274
See \`config.log' for more details." >&5
 
4275
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
4276
See \`config.log' for more details." >&2;}
 
4277
   { (exit 1); exit 1; }; }
 
4278
 
 
4279
# Provide some information about the compiler.
 
4280
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
4281
ac_compiler=`set X $ac_compile; echo $2`
 
4282
{ (ac_try="$ac_compiler --version >&5"
 
4283
case "(($ac_try" in
 
4284
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4285
  *) ac_try_echo=$ac_try;;
 
4286
esac
 
4287
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4288
  (eval "$ac_compiler --version >&5") 2>&5
 
4289
  ac_status=$?
 
4290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4291
  (exit $ac_status); }
 
4292
{ (ac_try="$ac_compiler -v >&5"
 
4293
case "(($ac_try" in
 
4294
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4295
  *) ac_try_echo=$ac_try;;
 
4296
esac
 
4297
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4298
  (eval "$ac_compiler -v >&5") 2>&5
 
4299
  ac_status=$?
 
4300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4301
  (exit $ac_status); }
 
4302
{ (ac_try="$ac_compiler -V >&5"
 
4303
case "(($ac_try" in
 
4304
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4305
  *) ac_try_echo=$ac_try;;
 
4306
esac
 
4307
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4308
  (eval "$ac_compiler -V >&5") 2>&5
 
4309
  ac_status=$?
 
4310
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4311
  (exit $ac_status); }
 
4312
 
 
4313
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
4314
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
4315
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
4316
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4317
else
 
4318
  cat >conftest.$ac_ext <<_ACEOF
 
4319
/* confdefs.h.  */
 
4320
_ACEOF
 
4321
cat confdefs.h >>conftest.$ac_ext
 
4322
cat >>conftest.$ac_ext <<_ACEOF
 
4323
/* end confdefs.h.  */
 
4324
 
 
4325
int
 
4326
main ()
 
4327
{
 
4328
#ifndef __GNUC__
 
4329
       choke me
 
4330
#endif
 
4331
 
 
4332
  ;
 
4333
  return 0;
 
4334
}
 
4335
_ACEOF
 
4336
rm -f conftest.$ac_objext
 
4337
if { (ac_try="$ac_compile"
 
4338
case "(($ac_try" in
 
4339
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4340
  *) ac_try_echo=$ac_try;;
 
4341
esac
 
4342
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4343
  (eval "$ac_compile") 2>conftest.er1
 
4344
  ac_status=$?
 
4345
  grep -v '^ *+' conftest.er1 >conftest.err
 
4346
  rm -f conftest.er1
 
4347
  cat conftest.err >&5
 
4348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4349
  (exit $ac_status); } && {
 
4350
         test -z "$ac_c_werror_flag" ||
 
4351
         test ! -s conftest.err
 
4352
       } && test -s conftest.$ac_objext; then
 
4353
  ac_compiler_gnu=yes
 
4354
else
 
4355
  echo "$as_me: failed program was:" >&5
 
4356
sed 's/^/| /' conftest.$ac_ext >&5
 
4357
 
 
4358
        ac_compiler_gnu=no
 
4359
fi
 
4360
 
 
4361
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4362
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
4363
 
 
4364
fi
 
4365
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
4366
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
4367
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
4368
ac_test_CFLAGS=${CFLAGS+set}
 
4369
ac_save_CFLAGS=$CFLAGS
 
4370
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
4371
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
4372
if test "${ac_cv_prog_cc_g+set}" = set; then
 
4373
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4374
else
 
4375
  ac_save_c_werror_flag=$ac_c_werror_flag
 
4376
   ac_c_werror_flag=yes
 
4377
   ac_cv_prog_cc_g=no
 
4378
   CFLAGS="-g"
 
4379
   cat >conftest.$ac_ext <<_ACEOF
 
4380
/* confdefs.h.  */
 
4381
_ACEOF
 
4382
cat confdefs.h >>conftest.$ac_ext
 
4383
cat >>conftest.$ac_ext <<_ACEOF
 
4384
/* end confdefs.h.  */
 
4385
 
 
4386
int
 
4387
main ()
 
4388
{
 
4389
 
 
4390
  ;
 
4391
  return 0;
 
4392
}
 
4393
_ACEOF
 
4394
rm -f conftest.$ac_objext
 
4395
if { (ac_try="$ac_compile"
 
4396
case "(($ac_try" in
 
4397
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4398
  *) ac_try_echo=$ac_try;;
 
4399
esac
 
4400
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4401
  (eval "$ac_compile") 2>conftest.er1
 
4402
  ac_status=$?
 
4403
  grep -v '^ *+' conftest.er1 >conftest.err
 
4404
  rm -f conftest.er1
 
4405
  cat conftest.err >&5
 
4406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4407
  (exit $ac_status); } && {
 
4408
         test -z "$ac_c_werror_flag" ||
 
4409
         test ! -s conftest.err
 
4410
       } && test -s conftest.$ac_objext; then
 
4411
  ac_cv_prog_cc_g=yes
 
4412
else
 
4413
  echo "$as_me: failed program was:" >&5
 
4414
sed 's/^/| /' conftest.$ac_ext >&5
 
4415
 
 
4416
        CFLAGS=""
 
4417
      cat >conftest.$ac_ext <<_ACEOF
 
4418
/* confdefs.h.  */
 
4419
_ACEOF
 
4420
cat confdefs.h >>conftest.$ac_ext
 
4421
cat >>conftest.$ac_ext <<_ACEOF
 
4422
/* end confdefs.h.  */
 
4423
 
 
4424
int
 
4425
main ()
 
4426
{
 
4427
 
 
4428
  ;
 
4429
  return 0;
 
4430
}
 
4431
_ACEOF
 
4432
rm -f conftest.$ac_objext
 
4433
if { (ac_try="$ac_compile"
 
4434
case "(($ac_try" in
 
4435
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4436
  *) ac_try_echo=$ac_try;;
 
4437
esac
 
4438
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4439
  (eval "$ac_compile") 2>conftest.er1
 
4440
  ac_status=$?
 
4441
  grep -v '^ *+' conftest.er1 >conftest.err
 
4442
  rm -f conftest.er1
 
4443
  cat conftest.err >&5
 
4444
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4445
  (exit $ac_status); } && {
 
4446
         test -z "$ac_c_werror_flag" ||
 
4447
         test ! -s conftest.err
 
4448
       } && test -s conftest.$ac_objext; then
 
4449
  :
 
4450
else
 
4451
  echo "$as_me: failed program was:" >&5
 
4452
sed 's/^/| /' conftest.$ac_ext >&5
 
4453
 
 
4454
        ac_c_werror_flag=$ac_save_c_werror_flag
 
4455
         CFLAGS="-g"
 
4456
         cat >conftest.$ac_ext <<_ACEOF
 
4457
/* confdefs.h.  */
 
4458
_ACEOF
 
4459
cat confdefs.h >>conftest.$ac_ext
 
4460
cat >>conftest.$ac_ext <<_ACEOF
 
4461
/* end confdefs.h.  */
 
4462
 
 
4463
int
 
4464
main ()
 
4465
{
 
4466
 
 
4467
  ;
 
4468
  return 0;
 
4469
}
 
4470
_ACEOF
 
4471
rm -f conftest.$ac_objext
 
4472
if { (ac_try="$ac_compile"
 
4473
case "(($ac_try" in
 
4474
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4475
  *) ac_try_echo=$ac_try;;
 
4476
esac
 
4477
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4478
  (eval "$ac_compile") 2>conftest.er1
 
4479
  ac_status=$?
 
4480
  grep -v '^ *+' conftest.er1 >conftest.err
 
4481
  rm -f conftest.er1
 
4482
  cat conftest.err >&5
 
4483
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4484
  (exit $ac_status); } && {
 
4485
         test -z "$ac_c_werror_flag" ||
 
4486
         test ! -s conftest.err
 
4487
       } && test -s conftest.$ac_objext; then
 
4488
  ac_cv_prog_cc_g=yes
 
4489
else
 
4490
  echo "$as_me: failed program was:" >&5
 
4491
sed 's/^/| /' conftest.$ac_ext >&5
 
4492
 
 
4493
 
 
4494
fi
 
4495
 
 
4496
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4497
fi
 
4498
 
 
4499
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4500
fi
 
4501
 
 
4502
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4503
   ac_c_werror_flag=$ac_save_c_werror_flag
 
4504
fi
 
4505
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
4506
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
4507
if test "$ac_test_CFLAGS" = set; then
 
4508
  CFLAGS=$ac_save_CFLAGS
 
4509
elif test $ac_cv_prog_cc_g = yes; then
 
4510
  if test "$GCC" = yes; then
 
4511
    CFLAGS="-g -O2"
 
4512
  else
 
4513
    CFLAGS="-g"
 
4514
  fi
 
4515
else
 
4516
  if test "$GCC" = yes; then
 
4517
    CFLAGS="-O2"
 
4518
  else
 
4519
    CFLAGS=
 
4520
  fi
 
4521
fi
 
4522
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
4523
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
4524
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
4525
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4526
else
 
4527
  ac_cv_prog_cc_c89=no
 
4528
ac_save_CC=$CC
 
4529
cat >conftest.$ac_ext <<_ACEOF
 
4530
/* confdefs.h.  */
 
4531
_ACEOF
 
4532
cat confdefs.h >>conftest.$ac_ext
 
4533
cat >>conftest.$ac_ext <<_ACEOF
 
4534
/* end confdefs.h.  */
 
4535
#include <stdarg.h>
 
4536
#include <stdio.h>
 
4537
#include <sys/types.h>
 
4538
#include <sys/stat.h>
 
4539
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
4540
struct buf { int x; };
 
4541
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
4542
static char *e (p, i)
 
4543
     char **p;
 
4544
     int i;
 
4545
{
 
4546
  return p[i];
 
4547
}
 
4548
static char *f (char * (*g) (char **, int), char **p, ...)
 
4549
{
 
4550
  char *s;
 
4551
  va_list v;
 
4552
  va_start (v,p);
 
4553
  s = g (p, va_arg (v,int));
 
4554
  va_end (v);
 
4555
  return s;
 
4556
}
 
4557
 
 
4558
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
4559
   function prototypes and stuff, but not '\xHH' hex character constants.
 
4560
   These don't provoke an error unfortunately, instead are silently treated
 
4561
   as 'x'.  The following induces an error, until -std is added to get
 
4562
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
4563
   array size at least.  It's necessary to write '\x00'==0 to get something
 
4564
   that's true only with -std.  */
 
4565
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
4566
 
 
4567
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
4568
   inside strings and character constants.  */
 
4569
#define FOO(x) 'x'
 
4570
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
4571
 
 
4572
int test (int i, double x);
 
4573
struct s1 {int (*f) (int a);};
 
4574
struct s2 {int (*f) (double a);};
 
4575
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
4576
int argc;
 
4577
char **argv;
 
4578
int
 
4579
main ()
 
4580
{
 
4581
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
4582
  ;
 
4583
  return 0;
 
4584
}
 
4585
_ACEOF
 
4586
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
4587
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
4588
do
 
4589
  CC="$ac_save_CC $ac_arg"
 
4590
  rm -f conftest.$ac_objext
 
4591
if { (ac_try="$ac_compile"
 
4592
case "(($ac_try" in
 
4593
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4594
  *) ac_try_echo=$ac_try;;
 
4595
esac
 
4596
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4597
  (eval "$ac_compile") 2>conftest.er1
 
4598
  ac_status=$?
 
4599
  grep -v '^ *+' conftest.er1 >conftest.err
 
4600
  rm -f conftest.er1
 
4601
  cat conftest.err >&5
 
4602
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4603
  (exit $ac_status); } && {
 
4604
         test -z "$ac_c_werror_flag" ||
 
4605
         test ! -s conftest.err
 
4606
       } && test -s conftest.$ac_objext; then
 
4607
  ac_cv_prog_cc_c89=$ac_arg
 
4608
else
 
4609
  echo "$as_me: failed program was:" >&5
 
4610
sed 's/^/| /' conftest.$ac_ext >&5
 
4611
 
 
4612
 
 
4613
fi
 
4614
 
 
4615
rm -f core conftest.err conftest.$ac_objext
 
4616
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
4617
done
 
4618
rm -f conftest.$ac_ext
 
4619
CC=$ac_save_CC
 
4620
 
 
4621
fi
 
4622
# AC_CACHE_VAL
 
4623
case "x$ac_cv_prog_cc_c89" in
 
4624
  x)
 
4625
    { echo "$as_me:$LINENO: result: none needed" >&5
 
4626
echo "${ECHO_T}none needed" >&6; } ;;
 
4627
  xno)
 
4628
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
4629
echo "${ECHO_T}unsupported" >&6; } ;;
 
4630
  *)
 
4631
    CC="$CC $ac_cv_prog_cc_c89"
 
4632
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
4633
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
4634
esac
 
4635
 
 
4636
 
 
4637
ac_ext=c
 
4638
ac_cpp='$CPP $CPPFLAGS'
 
4639
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4640
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4641
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4642
 
 
4643
depcc="$CC"   am_compiler_list=
 
4644
 
 
4645
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
4646
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
4647
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
4648
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4649
else
 
4650
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4651
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4652
  # making bogus files that we don't know about and never remove.  For
 
4653
  # instance it was reported that on HP-UX the gcc test will end up
 
4654
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4655
  # in D'.
 
4656
  mkdir conftest.dir
 
4657
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4658
  # using a relative directory.
 
4659
  cp "$am_depcomp" conftest.dir
 
4660
  cd conftest.dir
 
4661
  # We will build objects and dependencies in a subdirectory because
 
4662
  # it helps to detect inapplicable dependency modes.  For instance
 
4663
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4664
  # side effect of compilation, but ICC will put the dependencies in
 
4665
  # the current directory while Tru64 will put them in the object
 
4666
  # directory.
 
4667
  mkdir sub
 
4668
 
 
4669
  am_cv_CC_dependencies_compiler_type=none
 
4670
  if test "$am_compiler_list" = ""; then
 
4671
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4672
  fi
 
4673
  for depmode in $am_compiler_list; do
 
4674
    # Setup a source with many dependencies, because some compilers
 
4675
    # like to wrap large dependency lists on column 80 (with \), and
 
4676
    # we should not choose a depcomp mode which is confused by this.
 
4677
    #
 
4678
    # We need to recreate these files for each test, as the compiler may
 
4679
    # overwrite some of them when testing with obscure command lines.
 
4680
    # This happens at least with the AIX C compiler.
 
4681
    : > sub/conftest.c
 
4682
    for i in 1 2 3 4 5 6; do
 
4683
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4684
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4685
      # Solaris 8's {/usr,}/bin/sh.
 
4686
      touch sub/conftst$i.h
 
4687
    done
 
4688
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4689
 
 
4690
    case $depmode in
 
4691
    nosideeffect)
 
4692
      # after this tag, mechanisms are not by side-effect, so they'll
 
4693
      # only be used when explicitly requested
 
4694
      if test "x$enable_dependency_tracking" = xyes; then
 
4695
        continue
 
4696
      else
 
4697
        break
 
4698
      fi
 
4699
      ;;
 
4700
    none) break ;;
 
4701
    esac
 
4702
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4703
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4704
    # handle `-M -o', and we need to detect this.
 
4705
    if depmode=$depmode \
 
4706
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
4707
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4708
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
4709
         >/dev/null 2>conftest.err &&
 
4710
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4711
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
4712
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4713
      # icc doesn't choke on unknown options, it will just issue warnings
 
4714
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4715
      # that says an option was ignored or not supported.
 
4716
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4717
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4718
      # The diagnosis changed in icc 8.0:
 
4719
      #   icc: Command line remark: option '-MP' not supported
 
4720
      if (grep 'ignoring option' conftest.err ||
 
4721
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4722
        am_cv_CC_dependencies_compiler_type=$depmode
 
4723
        break
 
4724
      fi
 
4725
    fi
 
4726
  done
 
4727
 
 
4728
  cd ..
 
4729
  rm -rf conftest.dir
 
4730
else
 
4731
  am_cv_CC_dependencies_compiler_type=none
 
4732
fi
 
4733
 
 
4734
fi
 
4735
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4736
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
4737
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4738
 
 
4739
 
 
4740
 
 
4741
if
 
4742
  test "x$enable_dependency_tracking" != xno \
 
4743
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4744
  am__fastdepCC_TRUE=
 
4745
  am__fastdepCC_FALSE='#'
 
4746
else
 
4747
  am__fastdepCC_TRUE='#'
 
4748
  am__fastdepCC_FALSE=
 
4749
fi
 
4750
 
 
4751
 
 
4752
ac_ext=c
 
4753
ac_cpp='$CPP $CPPFLAGS'
 
4754
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4755
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4756
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4757
if test -n "$ac_tool_prefix"; then
 
4758
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
4759
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
4760
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4761
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4762
if test "${ac_cv_prog_CC+set}" = set; then
 
4763
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4764
else
 
4765
  if test -n "$CC"; then
 
4766
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4767
else
 
4768
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4769
for as_dir in $PATH
 
4770
do
 
4771
  IFS=$as_save_IFS
 
4772
  test -z "$as_dir" && as_dir=.
 
4773
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4774
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4775
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
4776
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4777
    break 2
 
4778
  fi
 
4779
done
 
4780
done
 
4781
IFS=$as_save_IFS
 
4782
 
 
4783
fi
 
4784
fi
 
4785
CC=$ac_cv_prog_CC
 
4786
if test -n "$CC"; then
 
4787
  { echo "$as_me:$LINENO: result: $CC" >&5
 
4788
echo "${ECHO_T}$CC" >&6; }
 
4789
else
 
4790
  { echo "$as_me:$LINENO: result: no" >&5
 
4791
echo "${ECHO_T}no" >&6; }
 
4792
fi
 
4793
 
 
4794
 
 
4795
fi
 
4796
if test -z "$ac_cv_prog_CC"; then
 
4797
  ac_ct_CC=$CC
 
4798
  # Extract the first word of "gcc", so it can be a program name with args.
 
4799
set dummy gcc; ac_word=$2
 
4800
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4801
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4802
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
4803
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4804
else
 
4805
  if test -n "$ac_ct_CC"; then
 
4806
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
4807
else
 
4808
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4809
for as_dir in $PATH
 
4810
do
 
4811
  IFS=$as_save_IFS
 
4812
  test -z "$as_dir" && as_dir=.
 
4813
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4814
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4815
    ac_cv_prog_ac_ct_CC="gcc"
 
4816
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4817
    break 2
 
4818
  fi
 
4819
done
 
4820
done
 
4821
IFS=$as_save_IFS
 
4822
 
 
4823
fi
 
4824
fi
 
4825
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
4826
if test -n "$ac_ct_CC"; then
 
4827
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
4828
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
4829
else
 
4830
  { echo "$as_me:$LINENO: result: no" >&5
 
4831
echo "${ECHO_T}no" >&6; }
 
4832
fi
 
4833
 
 
4834
  if test "x$ac_ct_CC" = x; then
 
4835
    CC=""
 
4836
  else
 
4837
    case $cross_compiling:$ac_tool_warned in
 
4838
yes:)
 
4839
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
4840
whose name does not start with the host triplet.  If you think this
 
4841
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
4842
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
4843
whose name does not start with the host triplet.  If you think this
 
4844
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
4845
ac_tool_warned=yes ;;
 
4846
esac
 
4847
    CC=$ac_ct_CC
 
4848
  fi
 
4849
else
 
4850
  CC="$ac_cv_prog_CC"
 
4851
fi
 
4852
 
 
4853
if test -z "$CC"; then
 
4854
          if test -n "$ac_tool_prefix"; then
 
4855
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
4856
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
4857
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4858
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4859
if test "${ac_cv_prog_CC+set}" = set; then
 
4860
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4861
else
 
4862
  if test -n "$CC"; then
 
4863
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4864
else
 
4865
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4866
for as_dir in $PATH
 
4867
do
 
4868
  IFS=$as_save_IFS
 
4869
  test -z "$as_dir" && as_dir=.
 
4870
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4871
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4872
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
4873
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4874
    break 2
 
4875
  fi
 
4876
done
 
4877
done
 
4878
IFS=$as_save_IFS
 
4879
 
 
4880
fi
 
4881
fi
 
4882
CC=$ac_cv_prog_CC
 
4883
if test -n "$CC"; then
 
4884
  { echo "$as_me:$LINENO: result: $CC" >&5
 
4885
echo "${ECHO_T}$CC" >&6; }
 
4886
else
 
4887
  { echo "$as_me:$LINENO: result: no" >&5
 
4888
echo "${ECHO_T}no" >&6; }
 
4889
fi
 
4890
 
 
4891
 
 
4892
  fi
 
4893
fi
 
4894
if test -z "$CC"; then
 
4895
  # Extract the first word of "cc", so it can be a program name with args.
 
4896
set dummy cc; ac_word=$2
 
4897
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4898
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4899
if test "${ac_cv_prog_CC+set}" = set; then
 
4900
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4901
else
 
4902
  if test -n "$CC"; then
 
4903
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4904
else
 
4905
  ac_prog_rejected=no
 
4906
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4907
for as_dir in $PATH
 
4908
do
 
4909
  IFS=$as_save_IFS
 
4910
  test -z "$as_dir" && as_dir=.
 
4911
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4912
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4913
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
4914
       ac_prog_rejected=yes
 
4915
       continue
 
4916
     fi
 
4917
    ac_cv_prog_CC="cc"
 
4918
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4919
    break 2
 
4920
  fi
 
4921
done
 
4922
done
 
4923
IFS=$as_save_IFS
 
4924
 
 
4925
if test $ac_prog_rejected = yes; then
 
4926
  # We found a bogon in the path, so make sure we never use it.
 
4927
  set dummy $ac_cv_prog_CC
 
4928
  shift
 
4929
  if test $# != 0; then
 
4930
    # We chose a different compiler from the bogus one.
 
4931
    # However, it has the same basename, so the bogon will be chosen
 
4932
    # first if we set CC to just the basename; use the full file name.
 
4933
    shift
 
4934
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
4935
  fi
 
4936
fi
 
4937
fi
 
4938
fi
 
4939
CC=$ac_cv_prog_CC
 
4940
if test -n "$CC"; then
 
4941
  { echo "$as_me:$LINENO: result: $CC" >&5
 
4942
echo "${ECHO_T}$CC" >&6; }
 
4943
else
 
4944
  { echo "$as_me:$LINENO: result: no" >&5
 
4945
echo "${ECHO_T}no" >&6; }
 
4946
fi
 
4947
 
 
4948
 
 
4949
fi
 
4950
if test -z "$CC"; then
 
4951
  if test -n "$ac_tool_prefix"; then
 
4952
  for ac_prog in cl.exe
 
4953
  do
 
4954
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4955
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4956
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4957
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4958
if test "${ac_cv_prog_CC+set}" = set; then
 
4959
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4960
else
 
4961
  if test -n "$CC"; then
 
4962
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4963
else
 
4964
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4965
for as_dir in $PATH
 
4966
do
 
4967
  IFS=$as_save_IFS
 
4968
  test -z "$as_dir" && as_dir=.
 
4969
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4970
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4971
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
4972
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4973
    break 2
 
4974
  fi
 
4975
done
 
4976
done
 
4977
IFS=$as_save_IFS
 
4978
 
 
4979
fi
 
4980
fi
 
4981
CC=$ac_cv_prog_CC
 
4982
if test -n "$CC"; then
 
4983
  { echo "$as_me:$LINENO: result: $CC" >&5
 
4984
echo "${ECHO_T}$CC" >&6; }
 
4985
else
 
4986
  { echo "$as_me:$LINENO: result: no" >&5
 
4987
echo "${ECHO_T}no" >&6; }
 
4988
fi
 
4989
 
 
4990
 
 
4991
    test -n "$CC" && break
 
4992
  done
 
4993
fi
 
4994
if test -z "$CC"; then
 
4995
  ac_ct_CC=$CC
 
4996
  for ac_prog in cl.exe
 
4997
do
 
4998
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4999
set dummy $ac_prog; ac_word=$2
 
5000
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5001
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5002
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
5003
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5004
else
 
5005
  if test -n "$ac_ct_CC"; then
 
5006
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
5007
else
 
5008
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5009
for as_dir in $PATH
 
5010
do
 
5011
  IFS=$as_save_IFS
 
5012
  test -z "$as_dir" && as_dir=.
 
5013
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5014
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5015
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
5016
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5017
    break 2
 
5018
  fi
 
5019
done
 
5020
done
 
5021
IFS=$as_save_IFS
 
5022
 
 
5023
fi
 
5024
fi
 
5025
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
5026
if test -n "$ac_ct_CC"; then
 
5027
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
5028
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
5029
else
 
5030
  { echo "$as_me:$LINENO: result: no" >&5
 
5031
echo "${ECHO_T}no" >&6; }
 
5032
fi
 
5033
 
 
5034
 
 
5035
  test -n "$ac_ct_CC" && break
 
5036
done
 
5037
 
 
5038
  if test "x$ac_ct_CC" = x; then
 
5039
    CC=""
 
5040
  else
 
5041
    case $cross_compiling:$ac_tool_warned in
 
5042
yes:)
 
5043
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5044
whose name does not start with the host triplet.  If you think this
 
5045
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5046
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5047
whose name does not start with the host triplet.  If you think this
 
5048
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5049
ac_tool_warned=yes ;;
 
5050
esac
 
5051
    CC=$ac_ct_CC
 
5052
  fi
 
5053
fi
 
5054
 
 
5055
fi
 
5056
 
 
5057
 
 
5058
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
5059
See \`config.log' for more details." >&5
 
5060
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
5061
See \`config.log' for more details." >&2;}
 
5062
   { (exit 1); exit 1; }; }
 
5063
 
 
5064
# Provide some information about the compiler.
 
5065
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
5066
ac_compiler=`set X $ac_compile; echo $2`
 
5067
{ (ac_try="$ac_compiler --version >&5"
 
5068
case "(($ac_try" in
 
5069
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5070
  *) ac_try_echo=$ac_try;;
 
5071
esac
 
5072
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5073
  (eval "$ac_compiler --version >&5") 2>&5
 
5074
  ac_status=$?
 
5075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5076
  (exit $ac_status); }
 
5077
{ (ac_try="$ac_compiler -v >&5"
 
5078
case "(($ac_try" in
 
5079
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5080
  *) ac_try_echo=$ac_try;;
 
5081
esac
 
5082
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5083
  (eval "$ac_compiler -v >&5") 2>&5
 
5084
  ac_status=$?
 
5085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5086
  (exit $ac_status); }
 
5087
{ (ac_try="$ac_compiler -V >&5"
 
5088
case "(($ac_try" in
 
5089
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5090
  *) ac_try_echo=$ac_try;;
 
5091
esac
 
5092
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5093
  (eval "$ac_compiler -V >&5") 2>&5
 
5094
  ac_status=$?
 
5095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5096
  (exit $ac_status); }
 
5097
 
 
5098
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
5099
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
5100
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
5101
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5102
else
 
5103
  cat >conftest.$ac_ext <<_ACEOF
 
5104
/* confdefs.h.  */
 
5105
_ACEOF
 
5106
cat confdefs.h >>conftest.$ac_ext
 
5107
cat >>conftest.$ac_ext <<_ACEOF
 
5108
/* end confdefs.h.  */
 
5109
 
 
5110
int
 
5111
main ()
 
5112
{
 
5113
#ifndef __GNUC__
 
5114
       choke me
 
5115
#endif
 
5116
 
 
5117
  ;
 
5118
  return 0;
 
5119
}
 
5120
_ACEOF
 
5121
rm -f conftest.$ac_objext
 
5122
if { (ac_try="$ac_compile"
 
5123
case "(($ac_try" in
 
5124
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5125
  *) ac_try_echo=$ac_try;;
 
5126
esac
 
5127
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5128
  (eval "$ac_compile") 2>conftest.er1
 
5129
  ac_status=$?
 
5130
  grep -v '^ *+' conftest.er1 >conftest.err
 
5131
  rm -f conftest.er1
 
5132
  cat conftest.err >&5
 
5133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5134
  (exit $ac_status); } && {
 
5135
         test -z "$ac_c_werror_flag" ||
 
5136
         test ! -s conftest.err
 
5137
       } && test -s conftest.$ac_objext; then
 
5138
  ac_compiler_gnu=yes
 
5139
else
 
5140
  echo "$as_me: failed program was:" >&5
 
5141
sed 's/^/| /' conftest.$ac_ext >&5
 
5142
 
 
5143
        ac_compiler_gnu=no
 
5144
fi
 
5145
 
 
5146
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5147
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
5148
 
 
5149
fi
 
5150
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
5151
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
5152
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
5153
ac_test_CFLAGS=${CFLAGS+set}
 
5154
ac_save_CFLAGS=$CFLAGS
 
5155
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
5156
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
5157
if test "${ac_cv_prog_cc_g+set}" = set; then
 
5158
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5159
else
 
5160
  ac_save_c_werror_flag=$ac_c_werror_flag
 
5161
   ac_c_werror_flag=yes
 
5162
   ac_cv_prog_cc_g=no
 
5163
   CFLAGS="-g"
 
5164
   cat >conftest.$ac_ext <<_ACEOF
 
5165
/* confdefs.h.  */
 
5166
_ACEOF
 
5167
cat confdefs.h >>conftest.$ac_ext
 
5168
cat >>conftest.$ac_ext <<_ACEOF
 
5169
/* end confdefs.h.  */
 
5170
 
 
5171
int
 
5172
main ()
 
5173
{
 
5174
 
 
5175
  ;
 
5176
  return 0;
 
5177
}
 
5178
_ACEOF
 
5179
rm -f conftest.$ac_objext
 
5180
if { (ac_try="$ac_compile"
 
5181
case "(($ac_try" in
 
5182
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5183
  *) ac_try_echo=$ac_try;;
 
5184
esac
 
5185
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5186
  (eval "$ac_compile") 2>conftest.er1
 
5187
  ac_status=$?
 
5188
  grep -v '^ *+' conftest.er1 >conftest.err
 
5189
  rm -f conftest.er1
 
5190
  cat conftest.err >&5
 
5191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5192
  (exit $ac_status); } && {
 
5193
         test -z "$ac_c_werror_flag" ||
 
5194
         test ! -s conftest.err
 
5195
       } && test -s conftest.$ac_objext; then
 
5196
  ac_cv_prog_cc_g=yes
 
5197
else
 
5198
  echo "$as_me: failed program was:" >&5
 
5199
sed 's/^/| /' conftest.$ac_ext >&5
 
5200
 
 
5201
        CFLAGS=""
 
5202
      cat >conftest.$ac_ext <<_ACEOF
 
5203
/* confdefs.h.  */
 
5204
_ACEOF
 
5205
cat confdefs.h >>conftest.$ac_ext
 
5206
cat >>conftest.$ac_ext <<_ACEOF
 
5207
/* end confdefs.h.  */
 
5208
 
 
5209
int
 
5210
main ()
 
5211
{
 
5212
 
 
5213
  ;
 
5214
  return 0;
 
5215
}
 
5216
_ACEOF
 
5217
rm -f conftest.$ac_objext
 
5218
if { (ac_try="$ac_compile"
 
5219
case "(($ac_try" in
 
5220
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5221
  *) ac_try_echo=$ac_try;;
 
5222
esac
 
5223
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5224
  (eval "$ac_compile") 2>conftest.er1
 
5225
  ac_status=$?
 
5226
  grep -v '^ *+' conftest.er1 >conftest.err
 
5227
  rm -f conftest.er1
 
5228
  cat conftest.err >&5
 
5229
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5230
  (exit $ac_status); } && {
 
5231
         test -z "$ac_c_werror_flag" ||
 
5232
         test ! -s conftest.err
 
5233
       } && test -s conftest.$ac_objext; then
 
5234
  :
 
5235
else
 
5236
  echo "$as_me: failed program was:" >&5
 
5237
sed 's/^/| /' conftest.$ac_ext >&5
 
5238
 
 
5239
        ac_c_werror_flag=$ac_save_c_werror_flag
 
5240
         CFLAGS="-g"
 
5241
         cat >conftest.$ac_ext <<_ACEOF
 
5242
/* confdefs.h.  */
 
5243
_ACEOF
 
5244
cat confdefs.h >>conftest.$ac_ext
 
5245
cat >>conftest.$ac_ext <<_ACEOF
 
5246
/* end confdefs.h.  */
 
5247
 
 
5248
int
 
5249
main ()
 
5250
{
 
5251
 
 
5252
  ;
 
5253
  return 0;
 
5254
}
 
5255
_ACEOF
 
5256
rm -f conftest.$ac_objext
 
5257
if { (ac_try="$ac_compile"
 
5258
case "(($ac_try" in
 
5259
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5260
  *) ac_try_echo=$ac_try;;
 
5261
esac
 
5262
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5263
  (eval "$ac_compile") 2>conftest.er1
 
5264
  ac_status=$?
 
5265
  grep -v '^ *+' conftest.er1 >conftest.err
 
5266
  rm -f conftest.er1
 
5267
  cat conftest.err >&5
 
5268
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5269
  (exit $ac_status); } && {
 
5270
         test -z "$ac_c_werror_flag" ||
 
5271
         test ! -s conftest.err
 
5272
       } && test -s conftest.$ac_objext; then
 
5273
  ac_cv_prog_cc_g=yes
 
5274
else
 
5275
  echo "$as_me: failed program was:" >&5
 
5276
sed 's/^/| /' conftest.$ac_ext >&5
 
5277
 
 
5278
 
 
5279
fi
 
5280
 
 
5281
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5282
fi
 
5283
 
 
5284
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5285
fi
 
5286
 
 
5287
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5288
   ac_c_werror_flag=$ac_save_c_werror_flag
 
5289
fi
 
5290
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
5291
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
5292
if test "$ac_test_CFLAGS" = set; then
 
5293
  CFLAGS=$ac_save_CFLAGS
 
5294
elif test $ac_cv_prog_cc_g = yes; then
 
5295
  if test "$GCC" = yes; then
 
5296
    CFLAGS="-g -O2"
 
5297
  else
 
5298
    CFLAGS="-g"
 
5299
  fi
 
5300
else
 
5301
  if test "$GCC" = yes; then
 
5302
    CFLAGS="-O2"
 
5303
  else
 
5304
    CFLAGS=
 
5305
  fi
 
5306
fi
 
5307
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
5308
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
5309
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
5310
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5311
else
 
5312
  ac_cv_prog_cc_c89=no
 
5313
ac_save_CC=$CC
 
5314
cat >conftest.$ac_ext <<_ACEOF
 
5315
/* confdefs.h.  */
 
5316
_ACEOF
 
5317
cat confdefs.h >>conftest.$ac_ext
 
5318
cat >>conftest.$ac_ext <<_ACEOF
 
5319
/* end confdefs.h.  */
 
5320
#include <stdarg.h>
 
5321
#include <stdio.h>
 
5322
#include <sys/types.h>
 
5323
#include <sys/stat.h>
 
5324
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
5325
struct buf { int x; };
 
5326
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
5327
static char *e (p, i)
 
5328
     char **p;
 
5329
     int i;
 
5330
{
 
5331
  return p[i];
 
5332
}
 
5333
static char *f (char * (*g) (char **, int), char **p, ...)
 
5334
{
 
5335
  char *s;
 
5336
  va_list v;
 
5337
  va_start (v,p);
 
5338
  s = g (p, va_arg (v,int));
 
5339
  va_end (v);
 
5340
  return s;
 
5341
}
 
5342
 
 
5343
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
5344
   function prototypes and stuff, but not '\xHH' hex character constants.
 
5345
   These don't provoke an error unfortunately, instead are silently treated
 
5346
   as 'x'.  The following induces an error, until -std is added to get
 
5347
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
5348
   array size at least.  It's necessary to write '\x00'==0 to get something
 
5349
   that's true only with -std.  */
 
5350
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
5351
 
 
5352
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
5353
   inside strings and character constants.  */
 
5354
#define FOO(x) 'x'
 
5355
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
5356
 
 
5357
int test (int i, double x);
 
5358
struct s1 {int (*f) (int a);};
 
5359
struct s2 {int (*f) (double a);};
 
5360
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
5361
int argc;
 
5362
char **argv;
 
5363
int
 
5364
main ()
 
5365
{
 
5366
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
5367
  ;
 
5368
  return 0;
 
5369
}
 
5370
_ACEOF
 
5371
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
5372
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
5373
do
 
5374
  CC="$ac_save_CC $ac_arg"
 
5375
  rm -f conftest.$ac_objext
 
5376
if { (ac_try="$ac_compile"
 
5377
case "(($ac_try" in
 
5378
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5379
  *) ac_try_echo=$ac_try;;
 
5380
esac
 
5381
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5382
  (eval "$ac_compile") 2>conftest.er1
 
5383
  ac_status=$?
 
5384
  grep -v '^ *+' conftest.er1 >conftest.err
 
5385
  rm -f conftest.er1
 
5386
  cat conftest.err >&5
 
5387
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5388
  (exit $ac_status); } && {
 
5389
         test -z "$ac_c_werror_flag" ||
 
5390
         test ! -s conftest.err
 
5391
       } && test -s conftest.$ac_objext; then
 
5392
  ac_cv_prog_cc_c89=$ac_arg
 
5393
else
 
5394
  echo "$as_me: failed program was:" >&5
 
5395
sed 's/^/| /' conftest.$ac_ext >&5
 
5396
 
 
5397
 
 
5398
fi
 
5399
 
 
5400
rm -f core conftest.err conftest.$ac_objext
 
5401
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
5402
done
 
5403
rm -f conftest.$ac_ext
 
5404
CC=$ac_save_CC
 
5405
 
 
5406
fi
 
5407
# AC_CACHE_VAL
 
5408
case "x$ac_cv_prog_cc_c89" in
 
5409
  x)
 
5410
    { echo "$as_me:$LINENO: result: none needed" >&5
 
5411
echo "${ECHO_T}none needed" >&6; } ;;
 
5412
  xno)
 
5413
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
5414
echo "${ECHO_T}unsupported" >&6; } ;;
 
5415
  *)
 
5416
    CC="$CC $ac_cv_prog_cc_c89"
 
5417
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
5418
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
5419
esac
 
5420
 
 
5421
 
 
5422
ac_ext=c
 
5423
ac_cpp='$CPP $CPPFLAGS'
 
5424
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5425
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5426
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5427
 
 
5428
depcc="$CC"   am_compiler_list=
 
5429
 
 
5430
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
5431
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
5432
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
5433
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5434
else
 
5435
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
5436
  # We make a subdir and do the tests there.  Otherwise we can end up
 
5437
  # making bogus files that we don't know about and never remove.  For
 
5438
  # instance it was reported that on HP-UX the gcc test will end up
 
5439
  # making a dummy file named `D' -- because `-MD' means `put the output
 
5440
  # in D'.
 
5441
  mkdir conftest.dir
 
5442
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
5443
  # using a relative directory.
 
5444
  cp "$am_depcomp" conftest.dir
 
5445
  cd conftest.dir
 
5446
  # We will build objects and dependencies in a subdirectory because
 
5447
  # it helps to detect inapplicable dependency modes.  For instance
 
5448
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
5449
  # side effect of compilation, but ICC will put the dependencies in
 
5450
  # the current directory while Tru64 will put them in the object
 
5451
  # directory.
 
5452
  mkdir sub
 
5453
 
 
5454
  am_cv_CC_dependencies_compiler_type=none
 
5455
  if test "$am_compiler_list" = ""; then
 
5456
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
5457
  fi
 
5458
  for depmode in $am_compiler_list; do
 
5459
    # Setup a source with many dependencies, because some compilers
 
5460
    # like to wrap large dependency lists on column 80 (with \), and
 
5461
    # we should not choose a depcomp mode which is confused by this.
 
5462
    #
 
5463
    # We need to recreate these files for each test, as the compiler may
 
5464
    # overwrite some of them when testing with obscure command lines.
 
5465
    # This happens at least with the AIX C compiler.
 
5466
    : > sub/conftest.c
 
5467
    for i in 1 2 3 4 5 6; do
 
5468
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
5469
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
5470
      # Solaris 8's {/usr,}/bin/sh.
 
5471
      touch sub/conftst$i.h
 
5472
    done
 
5473
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
5474
 
 
5475
    case $depmode in
 
5476
    nosideeffect)
 
5477
      # after this tag, mechanisms are not by side-effect, so they'll
 
5478
      # only be used when explicitly requested
 
5479
      if test "x$enable_dependency_tracking" = xyes; then
 
5480
        continue
 
5481
      else
 
5482
        break
 
5483
      fi
 
5484
      ;;
 
5485
    none) break ;;
 
5486
    esac
 
5487
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
5488
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
5489
    # handle `-M -o', and we need to detect this.
 
5490
    if depmode=$depmode \
 
5491
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
5492
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
5493
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
5494
         >/dev/null 2>conftest.err &&
 
5495
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
5496
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
5497
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
5498
      # icc doesn't choke on unknown options, it will just issue warnings
 
5499
      # or remarks (even with -Werror).  So we grep stderr for any message
 
5500
      # that says an option was ignored or not supported.
 
5501
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
5502
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
5503
      # The diagnosis changed in icc 8.0:
 
5504
      #   icc: Command line remark: option '-MP' not supported
 
5505
      if (grep 'ignoring option' conftest.err ||
 
5506
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
5507
        am_cv_CC_dependencies_compiler_type=$depmode
 
5508
        break
 
5509
      fi
 
5510
    fi
 
5511
  done
 
5512
 
 
5513
  cd ..
 
5514
  rm -rf conftest.dir
 
5515
else
 
5516
  am_cv_CC_dependencies_compiler_type=none
 
5517
fi
 
5518
 
 
5519
fi
 
5520
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
5521
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
5522
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
5523
 
 
5524
 
 
5525
 
 
5526
if
 
5527
  test "x$enable_dependency_tracking" != xno \
 
5528
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
5529
  am__fastdepCC_TRUE=
 
5530
  am__fastdepCC_FALSE='#'
 
5531
else
 
5532
  am__fastdepCC_TRUE='#'
 
5533
  am__fastdepCC_FALSE=
 
5534
fi
 
5535
 
 
5536
 
 
5537
 
 
5538
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
 
5539
 
 
5540
ac_ext=c
 
5541
ac_cpp='$CPP $CPPFLAGS'
 
5542
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5543
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5544
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5545
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
5546
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
5547
# On Suns, sometimes $CPP names a directory.
 
5548
if test -n "$CPP" && test -d "$CPP"; then
 
5549
  CPP=
 
5550
fi
 
5551
if test -z "$CPP"; then
 
5552
  if test "${ac_cv_prog_CPP+set}" = set; then
 
5553
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5554
else
 
5555
      # Double quotes because CPP needs to be expanded
 
5556
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
5557
    do
 
5558
      ac_preproc_ok=false
 
5559
for ac_c_preproc_warn_flag in '' yes
 
5560
do
 
5561
  # Use a header file that comes with gcc, so configuring glibc
 
5562
  # with a fresh cross-compiler works.
 
5563
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5564
  # <limits.h> exists even on freestanding compilers.
 
5565
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5566
  # not just through cpp. "Syntax error" is here to catch this case.
 
5567
  cat >conftest.$ac_ext <<_ACEOF
 
5568
/* confdefs.h.  */
 
5569
_ACEOF
 
5570
cat confdefs.h >>conftest.$ac_ext
 
5571
cat >>conftest.$ac_ext <<_ACEOF
 
5572
/* end confdefs.h.  */
 
5573
#ifdef __STDC__
 
5574
# include <limits.h>
 
5575
#else
 
5576
# include <assert.h>
 
5577
#endif
 
5578
                     Syntax error
 
5579
_ACEOF
 
5580
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5581
case "(($ac_try" in
 
5582
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5583
  *) ac_try_echo=$ac_try;;
 
5584
esac
 
5585
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5586
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5587
  ac_status=$?
 
5588
  grep -v '^ *+' conftest.er1 >conftest.err
 
5589
  rm -f conftest.er1
 
5590
  cat conftest.err >&5
 
5591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5592
  (exit $ac_status); } >/dev/null && {
 
5593
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5594
         test ! -s conftest.err
 
5595
       }; then
 
5596
  :
 
5597
else
 
5598
  echo "$as_me: failed program was:" >&5
 
5599
sed 's/^/| /' conftest.$ac_ext >&5
 
5600
 
 
5601
  # Broken: fails on valid input.
 
5602
continue
 
5603
fi
 
5604
 
 
5605
rm -f conftest.err conftest.$ac_ext
 
5606
 
 
5607
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5608
  # can be detected and how.
 
5609
  cat >conftest.$ac_ext <<_ACEOF
 
5610
/* confdefs.h.  */
 
5611
_ACEOF
 
5612
cat confdefs.h >>conftest.$ac_ext
 
5613
cat >>conftest.$ac_ext <<_ACEOF
 
5614
/* end confdefs.h.  */
 
5615
#include <ac_nonexistent.h>
 
5616
_ACEOF
 
5617
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5618
case "(($ac_try" in
 
5619
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5620
  *) ac_try_echo=$ac_try;;
 
5621
esac
 
5622
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5623
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5624
  ac_status=$?
 
5625
  grep -v '^ *+' conftest.er1 >conftest.err
 
5626
  rm -f conftest.er1
 
5627
  cat conftest.err >&5
 
5628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5629
  (exit $ac_status); } >/dev/null && {
 
5630
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5631
         test ! -s conftest.err
 
5632
       }; then
 
5633
  # Broken: success on invalid input.
 
5634
continue
 
5635
else
 
5636
  echo "$as_me: failed program was:" >&5
 
5637
sed 's/^/| /' conftest.$ac_ext >&5
 
5638
 
 
5639
  # Passes both tests.
 
5640
ac_preproc_ok=:
 
5641
break
 
5642
fi
 
5643
 
 
5644
rm -f conftest.err conftest.$ac_ext
 
5645
 
 
5646
done
 
5647
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5648
rm -f conftest.err conftest.$ac_ext
 
5649
if $ac_preproc_ok; then
 
5650
  break
 
5651
fi
 
5652
 
 
5653
    done
 
5654
    ac_cv_prog_CPP=$CPP
 
5655
 
 
5656
fi
 
5657
  CPP=$ac_cv_prog_CPP
 
5658
else
 
5659
  ac_cv_prog_CPP=$CPP
 
5660
fi
 
5661
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
5662
echo "${ECHO_T}$CPP" >&6; }
 
5663
ac_preproc_ok=false
 
5664
for ac_c_preproc_warn_flag in '' yes
 
5665
do
 
5666
  # Use a header file that comes with gcc, so configuring glibc
 
5667
  # with a fresh cross-compiler works.
 
5668
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5669
  # <limits.h> exists even on freestanding compilers.
 
5670
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5671
  # not just through cpp. "Syntax error" is here to catch this case.
 
5672
  cat >conftest.$ac_ext <<_ACEOF
 
5673
/* confdefs.h.  */
 
5674
_ACEOF
 
5675
cat confdefs.h >>conftest.$ac_ext
 
5676
cat >>conftest.$ac_ext <<_ACEOF
 
5677
/* end confdefs.h.  */
 
5678
#ifdef __STDC__
 
5679
# include <limits.h>
 
5680
#else
 
5681
# include <assert.h>
 
5682
#endif
 
5683
                     Syntax error
 
5684
_ACEOF
 
5685
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5686
case "(($ac_try" in
 
5687
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5688
  *) ac_try_echo=$ac_try;;
 
5689
esac
 
5690
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5691
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5692
  ac_status=$?
 
5693
  grep -v '^ *+' conftest.er1 >conftest.err
 
5694
  rm -f conftest.er1
 
5695
  cat conftest.err >&5
 
5696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5697
  (exit $ac_status); } >/dev/null && {
 
5698
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5699
         test ! -s conftest.err
 
5700
       }; then
 
5701
  :
 
5702
else
 
5703
  echo "$as_me: failed program was:" >&5
 
5704
sed 's/^/| /' conftest.$ac_ext >&5
 
5705
 
 
5706
  # Broken: fails on valid input.
 
5707
continue
 
5708
fi
 
5709
 
 
5710
rm -f conftest.err conftest.$ac_ext
 
5711
 
 
5712
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5713
  # can be detected and how.
 
5714
  cat >conftest.$ac_ext <<_ACEOF
 
5715
/* confdefs.h.  */
 
5716
_ACEOF
 
5717
cat confdefs.h >>conftest.$ac_ext
 
5718
cat >>conftest.$ac_ext <<_ACEOF
 
5719
/* end confdefs.h.  */
 
5720
#include <ac_nonexistent.h>
 
5721
_ACEOF
 
5722
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5723
case "(($ac_try" in
 
5724
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5725
  *) ac_try_echo=$ac_try;;
 
5726
esac
 
5727
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5728
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5729
  ac_status=$?
 
5730
  grep -v '^ *+' conftest.er1 >conftest.err
 
5731
  rm -f conftest.er1
 
5732
  cat conftest.err >&5
 
5733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5734
  (exit $ac_status); } >/dev/null && {
 
5735
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5736
         test ! -s conftest.err
 
5737
       }; then
 
5738
  # Broken: success on invalid input.
 
5739
continue
 
5740
else
 
5741
  echo "$as_me: failed program was:" >&5
 
5742
sed 's/^/| /' conftest.$ac_ext >&5
 
5743
 
 
5744
  # Passes both tests.
 
5745
ac_preproc_ok=:
 
5746
break
 
5747
fi
 
5748
 
 
5749
rm -f conftest.err conftest.$ac_ext
 
5750
 
 
5751
done
 
5752
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5753
rm -f conftest.err conftest.$ac_ext
 
5754
if $ac_preproc_ok; then
 
5755
  :
 
5756
else
 
5757
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
5758
See \`config.log' for more details." >&5
 
5759
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
5760
See \`config.log' for more details." >&2;}
 
5761
   { (exit 1); exit 1; }; }
 
5762
fi
 
5763
 
 
5764
ac_ext=c
 
5765
ac_cpp='$CPP $CPPFLAGS'
 
5766
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5767
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5768
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5769
 
 
5770
 
 
5771
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
5772
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
5773
if test "${ac_cv_path_GREP+set}" = set; then
 
5774
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5775
else
 
5776
  # Extract the first word of "grep ggrep" to use in msg output
 
5777
if test -z "$GREP"; then
 
5778
set dummy grep ggrep; ac_prog_name=$2
 
5779
if test "${ac_cv_path_GREP+set}" = set; then
 
5780
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5781
else
 
5782
  ac_path_GREP_found=false
 
5783
# Loop through the user's path and test for each of PROGNAME-LIST
 
5784
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5785
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
5786
do
 
5787
  IFS=$as_save_IFS
 
5788
  test -z "$as_dir" && as_dir=.
 
5789
  for ac_prog in grep ggrep; do
 
5790
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5791
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
5792
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
5793
    # Check for GNU ac_path_GREP and select it if it is found.
 
5794
  # Check for GNU $ac_path_GREP
 
5795
case `"$ac_path_GREP" --version 2>&1` in
 
5796
*GNU*)
 
5797
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
5798
*)
 
5799
  ac_count=0
 
5800
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
5801
  while :
 
5802
  do
 
5803
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5804
    mv "conftest.tmp" "conftest.in"
 
5805
    cp "conftest.in" "conftest.nl"
 
5806
    echo 'GREP' >> "conftest.nl"
 
5807
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5808
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5809
    ac_count=`expr $ac_count + 1`
 
5810
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
5811
      # Best one so far, save it but keep looking for a better one
 
5812
      ac_cv_path_GREP="$ac_path_GREP"
 
5813
      ac_path_GREP_max=$ac_count
 
5814
    fi
 
5815
    # 10*(2^10) chars as input seems more than enough
 
5816
    test $ac_count -gt 10 && break
 
5817
  done
 
5818
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5819
esac
 
5820
 
 
5821
 
 
5822
    $ac_path_GREP_found && break 3
 
5823
  done
 
5824
done
 
5825
 
 
5826
done
 
5827
IFS=$as_save_IFS
 
5828
 
 
5829
 
 
5830
fi
 
5831
 
 
5832
GREP="$ac_cv_path_GREP"
 
5833
if test -z "$GREP"; then
 
5834
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
5835
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
5836
   { (exit 1); exit 1; }; }
 
5837
fi
 
5838
 
 
5839
else
 
5840
  ac_cv_path_GREP=$GREP
 
5841
fi
 
5842
 
 
5843
 
 
5844
fi
 
5845
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
5846
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
5847
 GREP="$ac_cv_path_GREP"
 
5848
 
 
5849
 
 
5850
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
5851
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
5852
if test "${ac_cv_path_EGREP+set}" = set; then
 
5853
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5854
else
 
5855
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
5856
   then ac_cv_path_EGREP="$GREP -E"
 
5857
   else
 
5858
     # Extract the first word of "egrep" to use in msg output
 
5859
if test -z "$EGREP"; then
 
5860
set dummy egrep; ac_prog_name=$2
 
5861
if test "${ac_cv_path_EGREP+set}" = set; then
 
5862
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5863
else
 
5864
  ac_path_EGREP_found=false
 
5865
# Loop through the user's path and test for each of PROGNAME-LIST
 
5866
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5867
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
5868
do
 
5869
  IFS=$as_save_IFS
 
5870
  test -z "$as_dir" && as_dir=.
 
5871
  for ac_prog in egrep; do
 
5872
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5873
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
5874
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
5875
    # Check for GNU ac_path_EGREP and select it if it is found.
 
5876
  # Check for GNU $ac_path_EGREP
 
5877
case `"$ac_path_EGREP" --version 2>&1` in
 
5878
*GNU*)
 
5879
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
5880
*)
 
5881
  ac_count=0
 
5882
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
5883
  while :
 
5884
  do
 
5885
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5886
    mv "conftest.tmp" "conftest.in"
 
5887
    cp "conftest.in" "conftest.nl"
 
5888
    echo 'EGREP' >> "conftest.nl"
 
5889
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5890
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5891
    ac_count=`expr $ac_count + 1`
 
5892
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
5893
      # Best one so far, save it but keep looking for a better one
 
5894
      ac_cv_path_EGREP="$ac_path_EGREP"
 
5895
      ac_path_EGREP_max=$ac_count
 
5896
    fi
 
5897
    # 10*(2^10) chars as input seems more than enough
 
5898
    test $ac_count -gt 10 && break
 
5899
  done
 
5900
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5901
esac
 
5902
 
 
5903
 
 
5904
    $ac_path_EGREP_found && break 3
 
5905
  done
 
5906
done
 
5907
 
 
5908
done
 
5909
IFS=$as_save_IFS
 
5910
 
 
5911
 
 
5912
fi
 
5913
 
 
5914
EGREP="$ac_cv_path_EGREP"
 
5915
if test -z "$EGREP"; then
 
5916
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
5917
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
5918
   { (exit 1); exit 1; }; }
 
5919
fi
 
5920
 
 
5921
else
 
5922
  ac_cv_path_EGREP=$EGREP
 
5923
fi
 
5924
 
 
5925
 
 
5926
   fi
 
5927
fi
 
5928
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
5929
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
5930
 EGREP="$ac_cv_path_EGREP"
 
5931
 
 
5932
 
 
5933
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
5934
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
5935
if test "${ac_cv_header_stdc+set}" = set; then
 
5936
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5937
else
 
5938
  cat >conftest.$ac_ext <<_ACEOF
 
5939
/* confdefs.h.  */
 
5940
_ACEOF
 
5941
cat confdefs.h >>conftest.$ac_ext
 
5942
cat >>conftest.$ac_ext <<_ACEOF
 
5943
/* end confdefs.h.  */
 
5944
#include <stdlib.h>
 
5945
#include <stdarg.h>
 
5946
#include <string.h>
 
5947
#include <float.h>
 
5948
 
 
5949
int
 
5950
main ()
 
5951
{
 
5952
 
 
5953
  ;
 
5954
  return 0;
 
5955
}
 
5956
_ACEOF
 
5957
rm -f conftest.$ac_objext
 
5958
if { (ac_try="$ac_compile"
 
5959
case "(($ac_try" in
 
5960
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5961
  *) ac_try_echo=$ac_try;;
 
5962
esac
 
5963
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5964
  (eval "$ac_compile") 2>conftest.er1
 
5965
  ac_status=$?
 
5966
  grep -v '^ *+' conftest.er1 >conftest.err
 
5967
  rm -f conftest.er1
 
5968
  cat conftest.err >&5
 
5969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5970
  (exit $ac_status); } && {
 
5971
         test -z "$ac_c_werror_flag" ||
 
5972
         test ! -s conftest.err
 
5973
       } && test -s conftest.$ac_objext; then
 
5974
  ac_cv_header_stdc=yes
 
5975
else
 
5976
  echo "$as_me: failed program was:" >&5
 
5977
sed 's/^/| /' conftest.$ac_ext >&5
 
5978
 
 
5979
        ac_cv_header_stdc=no
 
5980
fi
 
5981
 
 
5982
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5983
 
 
5984
if test $ac_cv_header_stdc = yes; then
 
5985
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
5986
  cat >conftest.$ac_ext <<_ACEOF
 
5987
/* confdefs.h.  */
 
5988
_ACEOF
 
5989
cat confdefs.h >>conftest.$ac_ext
 
5990
cat >>conftest.$ac_ext <<_ACEOF
 
5991
/* end confdefs.h.  */
 
5992
#include <string.h>
 
5993
 
 
5994
_ACEOF
 
5995
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5996
  $EGREP "memchr" >/dev/null 2>&1; then
 
5997
  :
 
5998
else
 
5999
  ac_cv_header_stdc=no
 
6000
fi
 
6001
rm -f conftest*
 
6002
 
 
6003
fi
 
6004
 
 
6005
if test $ac_cv_header_stdc = yes; then
 
6006
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
6007
  cat >conftest.$ac_ext <<_ACEOF
 
6008
/* confdefs.h.  */
 
6009
_ACEOF
 
6010
cat confdefs.h >>conftest.$ac_ext
 
6011
cat >>conftest.$ac_ext <<_ACEOF
 
6012
/* end confdefs.h.  */
 
6013
#include <stdlib.h>
 
6014
 
 
6015
_ACEOF
 
6016
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6017
  $EGREP "free" >/dev/null 2>&1; then
 
6018
  :
 
6019
else
 
6020
  ac_cv_header_stdc=no
 
6021
fi
 
6022
rm -f conftest*
 
6023
 
 
6024
fi
 
6025
 
 
6026
if test $ac_cv_header_stdc = yes; then
 
6027
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
6028
  if test "$cross_compiling" = yes; then
 
6029
  :
 
6030
else
 
6031
  cat >conftest.$ac_ext <<_ACEOF
 
6032
/* confdefs.h.  */
 
6033
_ACEOF
 
6034
cat confdefs.h >>conftest.$ac_ext
 
6035
cat >>conftest.$ac_ext <<_ACEOF
 
6036
/* end confdefs.h.  */
 
6037
#include <ctype.h>
 
6038
#include <stdlib.h>
 
6039
#if ((' ' & 0x0FF) == 0x020)
 
6040
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
6041
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
6042
#else
 
6043
# define ISLOWER(c) \
 
6044
                   (('a' <= (c) && (c) <= 'i') \
 
6045
                     || ('j' <= (c) && (c) <= 'r') \
 
6046
                     || ('s' <= (c) && (c) <= 'z'))
 
6047
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
6048
#endif
 
6049
 
 
6050
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
6051
int
 
6052
main ()
 
6053
{
 
6054
  int i;
 
6055
  for (i = 0; i < 256; i++)
 
6056
    if (XOR (islower (i), ISLOWER (i))
 
6057
        || toupper (i) != TOUPPER (i))
 
6058
      return 2;
 
6059
  return 0;
 
6060
}
 
6061
_ACEOF
 
6062
rm -f conftest$ac_exeext
 
6063
if { (ac_try="$ac_link"
 
6064
case "(($ac_try" in
 
6065
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6066
  *) ac_try_echo=$ac_try;;
 
6067
esac
 
6068
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6069
  (eval "$ac_link") 2>&5
 
6070
  ac_status=$?
 
6071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6072
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6073
  { (case "(($ac_try" in
 
6074
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6075
  *) ac_try_echo=$ac_try;;
 
6076
esac
 
6077
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6078
  (eval "$ac_try") 2>&5
 
6079
  ac_status=$?
 
6080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6081
  (exit $ac_status); }; }; then
 
6082
  :
 
6083
else
 
6084
  echo "$as_me: program exited with status $ac_status" >&5
 
6085
echo "$as_me: failed program was:" >&5
 
6086
sed 's/^/| /' conftest.$ac_ext >&5
 
6087
 
 
6088
( exit $ac_status )
 
6089
ac_cv_header_stdc=no
 
6090
fi
 
6091
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6092
fi
 
6093
 
 
6094
 
 
6095
fi
 
6096
fi
 
6097
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
6098
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
6099
if test $ac_cv_header_stdc = yes; then
 
6100
 
 
6101
cat >>confdefs.h <<\_ACEOF
 
6102
#define STDC_HEADERS 1
 
6103
_ACEOF
 
6104
 
 
6105
fi
 
6106
 
 
6107
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
6108
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
6109
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
6110
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2819
6111
  echo $ECHO_N "(cached) $ECHO_C" >&6
2820
6112
else
2821
6113
  cat >conftest.make <<\_ACEOF
 
6114
SHELL = /bin/sh
2822
6115
all:
2823
 
        @echo 'ac_maketemp="$(MAKE)"'
 
6116
        @echo '@@@%%%=$(MAKE)=@@@%%%'
2824
6117
_ACEOF
2825
6118
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2826
 
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2827
 
if test -n "$ac_maketemp"; then
2828
 
  eval ac_cv_prog_make_${ac_make}_set=yes
2829
 
else
2830
 
  eval ac_cv_prog_make_${ac_make}_set=no
2831
 
fi
 
6119
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
6120
  *@@@%%%=?*=@@@%%%*)
 
6121
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
6122
  *)
 
6123
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
6124
esac
2832
6125
rm -f conftest.make
2833
6126
fi
2834
 
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2835
 
  echo "$as_me:$LINENO: result: yes" >&5
2836
 
echo "${ECHO_T}yes" >&6
 
6127
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
6128
  { echo "$as_me:$LINENO: result: yes" >&5
 
6129
echo "${ECHO_T}yes" >&6; }
2837
6130
  SET_MAKE=
2838
6131
else
2839
 
  echo "$as_me:$LINENO: result: no" >&5
2840
 
echo "${ECHO_T}no" >&6
 
6132
  { echo "$as_me:$LINENO: result: no" >&5
 
6133
echo "${ECHO_T}no" >&6; }
2841
6134
  SET_MAKE="MAKE=${MAKE-make}"
2842
6135
fi
2843
6136
 
2844
6137
if test -n "$ac_tool_prefix"; then
2845
6138
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2846
6139
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2847
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2848
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6140
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6141
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2849
6142
if test "${ac_cv_prog_RANLIB+set}" = set; then
2850
6143
  echo $ECHO_N "(cached) $ECHO_C" >&6
2851
6144
else
2858
6151
  IFS=$as_save_IFS
2859
6152
  test -z "$as_dir" && as_dir=.
2860
6153
  for ac_exec_ext in '' $ac_executable_extensions; do
2861
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6154
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2862
6155
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2863
6156
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2864
6157
    break 2
2865
6158
  fi
2866
6159
done
2867
6160
done
 
6161
IFS=$as_save_IFS
2868
6162
 
2869
6163
fi
2870
6164
fi
2871
6165
RANLIB=$ac_cv_prog_RANLIB
2872
6166
if test -n "$RANLIB"; then
2873
 
  echo "$as_me:$LINENO: result: $RANLIB" >&5
2874
 
echo "${ECHO_T}$RANLIB" >&6
 
6167
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
6168
echo "${ECHO_T}$RANLIB" >&6; }
2875
6169
else
2876
 
  echo "$as_me:$LINENO: result: no" >&5
2877
 
echo "${ECHO_T}no" >&6
 
6170
  { echo "$as_me:$LINENO: result: no" >&5
 
6171
echo "${ECHO_T}no" >&6; }
2878
6172
fi
 
6173
 
2879
6174
 
2880
6175
fi
2881
6176
if test -z "$ac_cv_prog_RANLIB"; then
2882
6177
  ac_ct_RANLIB=$RANLIB
2883
6178
  # Extract the first word of "ranlib", so it can be a program name with args.
2884
6179
set dummy ranlib; ac_word=$2
2885
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2886
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6180
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6181
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2887
6182
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2888
6183
  echo $ECHO_N "(cached) $ECHO_C" >&6
2889
6184
else
2896
6191
  IFS=$as_save_IFS
2897
6192
  test -z "$as_dir" && as_dir=.
2898
6193
  for ac_exec_ext in '' $ac_executable_extensions; do
2899
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6194
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2900
6195
    ac_cv_prog_ac_ct_RANLIB="ranlib"
2901
6196
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2902
6197
    break 2
2903
6198
  fi
2904
6199
done
2905
6200
done
 
6201
IFS=$as_save_IFS
2906
6202
 
2907
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2908
6203
fi
2909
6204
fi
2910
6205
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2911
6206
if test -n "$ac_ct_RANLIB"; then
2912
 
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2913
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
6207
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
6208
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2914
6209
else
2915
 
  echo "$as_me:$LINENO: result: no" >&5
2916
 
echo "${ECHO_T}no" >&6
 
6210
  { echo "$as_me:$LINENO: result: no" >&5
 
6211
echo "${ECHO_T}no" >&6; }
2917
6212
fi
2918
6213
 
2919
 
  RANLIB=$ac_ct_RANLIB
 
6214
  if test "x$ac_ct_RANLIB" = x; then
 
6215
    RANLIB=":"
 
6216
  else
 
6217
    case $cross_compiling:$ac_tool_warned in
 
6218
yes:)
 
6219
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6220
whose name does not start with the host triplet.  If you think this
 
6221
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6222
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6223
whose name does not start with the host triplet.  If you think this
 
6224
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6225
ac_tool_warned=yes ;;
 
6226
esac
 
6227
    RANLIB=$ac_ct_RANLIB
 
6228
  fi
2920
6229
else
2921
6230
  RANLIB="$ac_cv_prog_RANLIB"
2922
6231
fi
2923
6232
 
2924
 
 
2925
 
ac_ext=c
2926
 
ac_cpp='$CPP $CPPFLAGS'
2927
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2930
 
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2931
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2932
 
# On Suns, sometimes $CPP names a directory.
2933
 
if test -n "$CPP" && test -d "$CPP"; then
2934
 
  CPP=
2935
 
fi
2936
 
if test -z "$CPP"; then
2937
 
  if test "${ac_cv_prog_CPP+set}" = set; then
2938
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2939
 
else
2940
 
      # Double quotes because CPP needs to be expanded
2941
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2942
 
    do
2943
 
      ac_preproc_ok=false
2944
 
for ac_c_preproc_warn_flag in '' yes
2945
 
do
2946
 
  # Use a header file that comes with gcc, so configuring glibc
2947
 
  # with a fresh cross-compiler works.
2948
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2949
 
  # <limits.h> exists even on freestanding compilers.
2950
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
2951
 
  # not just through cpp. "Syntax error" is here to catch this case.
2952
 
  cat >conftest.$ac_ext <<_ACEOF
2953
 
#line $LINENO "configure"
2954
 
/* confdefs.h.  */
2955
 
_ACEOF
2956
 
cat confdefs.h >>conftest.$ac_ext
2957
 
cat >>conftest.$ac_ext <<_ACEOF
2958
 
/* end confdefs.h.  */
2959
 
#ifdef __STDC__
2960
 
# include <limits.h>
2961
 
#else
2962
 
# include <assert.h>
2963
 
#endif
2964
 
                     Syntax error
2965
 
_ACEOF
2966
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2967
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2968
 
  ac_status=$?
2969
 
  grep -v '^ *+' conftest.er1 >conftest.err
2970
 
  rm -f conftest.er1
2971
 
  cat conftest.err >&5
2972
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973
 
  (exit $ac_status); } >/dev/null; then
2974
 
  if test -s conftest.err; then
2975
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2976
 
  else
2977
 
    ac_cpp_err=
2978
 
  fi
2979
 
else
2980
 
  ac_cpp_err=yes
2981
 
fi
2982
 
if test -z "$ac_cpp_err"; then
2983
 
  :
2984
 
else
2985
 
  echo "$as_me: failed program was:" >&5
2986
 
sed 's/^/| /' conftest.$ac_ext >&5
2987
 
 
2988
 
  # Broken: fails on valid input.
2989
 
continue
2990
 
fi
2991
 
rm -f conftest.err conftest.$ac_ext
2992
 
 
2993
 
  # OK, works on sane cases.  Now check whether non-existent headers
2994
 
  # can be detected and how.
2995
 
  cat >conftest.$ac_ext <<_ACEOF
2996
 
#line $LINENO "configure"
2997
 
/* confdefs.h.  */
2998
 
_ACEOF
2999
 
cat confdefs.h >>conftest.$ac_ext
3000
 
cat >>conftest.$ac_ext <<_ACEOF
3001
 
/* end confdefs.h.  */
3002
 
#include <ac_nonexistent.h>
3003
 
_ACEOF
3004
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3005
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3006
 
  ac_status=$?
3007
 
  grep -v '^ *+' conftest.er1 >conftest.err
3008
 
  rm -f conftest.er1
3009
 
  cat conftest.err >&5
3010
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011
 
  (exit $ac_status); } >/dev/null; then
3012
 
  if test -s conftest.err; then
3013
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3014
 
  else
3015
 
    ac_cpp_err=
3016
 
  fi
3017
 
else
3018
 
  ac_cpp_err=yes
3019
 
fi
3020
 
if test -z "$ac_cpp_err"; then
3021
 
  # Broken: success on invalid input.
3022
 
continue
3023
 
else
3024
 
  echo "$as_me: failed program was:" >&5
3025
 
sed 's/^/| /' conftest.$ac_ext >&5
3026
 
 
3027
 
  # Passes both tests.
3028
 
ac_preproc_ok=:
3029
 
break
3030
 
fi
3031
 
rm -f conftest.err conftest.$ac_ext
3032
 
 
3033
 
done
3034
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3035
 
rm -f conftest.err conftest.$ac_ext
3036
 
if $ac_preproc_ok; then
3037
 
  break
3038
 
fi
3039
 
 
3040
 
    done
3041
 
    ac_cv_prog_CPP=$CPP
3042
 
 
3043
 
fi
3044
 
  CPP=$ac_cv_prog_CPP
3045
 
else
3046
 
  ac_cv_prog_CPP=$CPP
3047
 
fi
3048
 
echo "$as_me:$LINENO: result: $CPP" >&5
3049
 
echo "${ECHO_T}$CPP" >&6
3050
 
ac_preproc_ok=false
3051
 
for ac_c_preproc_warn_flag in '' yes
3052
 
do
3053
 
  # Use a header file that comes with gcc, so configuring glibc
3054
 
  # with a fresh cross-compiler works.
3055
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3056
 
  # <limits.h> exists even on freestanding compilers.
3057
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
3058
 
  # not just through cpp. "Syntax error" is here to catch this case.
3059
 
  cat >conftest.$ac_ext <<_ACEOF
3060
 
#line $LINENO "configure"
3061
 
/* confdefs.h.  */
3062
 
_ACEOF
3063
 
cat confdefs.h >>conftest.$ac_ext
3064
 
cat >>conftest.$ac_ext <<_ACEOF
3065
 
/* end confdefs.h.  */
3066
 
#ifdef __STDC__
3067
 
# include <limits.h>
3068
 
#else
3069
 
# include <assert.h>
3070
 
#endif
3071
 
                     Syntax error
3072
 
_ACEOF
3073
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3074
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3075
 
  ac_status=$?
3076
 
  grep -v '^ *+' conftest.er1 >conftest.err
3077
 
  rm -f conftest.er1
3078
 
  cat conftest.err >&5
3079
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080
 
  (exit $ac_status); } >/dev/null; then
3081
 
  if test -s conftest.err; then
3082
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3083
 
  else
3084
 
    ac_cpp_err=
3085
 
  fi
3086
 
else
3087
 
  ac_cpp_err=yes
3088
 
fi
3089
 
if test -z "$ac_cpp_err"; then
3090
 
  :
3091
 
else
3092
 
  echo "$as_me: failed program was:" >&5
3093
 
sed 's/^/| /' conftest.$ac_ext >&5
3094
 
 
3095
 
  # Broken: fails on valid input.
3096
 
continue
3097
 
fi
3098
 
rm -f conftest.err conftest.$ac_ext
3099
 
 
3100
 
  # OK, works on sane cases.  Now check whether non-existent headers
3101
 
  # can be detected and how.
3102
 
  cat >conftest.$ac_ext <<_ACEOF
3103
 
#line $LINENO "configure"
3104
 
/* confdefs.h.  */
3105
 
_ACEOF
3106
 
cat confdefs.h >>conftest.$ac_ext
3107
 
cat >>conftest.$ac_ext <<_ACEOF
3108
 
/* end confdefs.h.  */
3109
 
#include <ac_nonexistent.h>
3110
 
_ACEOF
3111
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3112
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3113
 
  ac_status=$?
3114
 
  grep -v '^ *+' conftest.er1 >conftest.err
3115
 
  rm -f conftest.er1
3116
 
  cat conftest.err >&5
3117
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118
 
  (exit $ac_status); } >/dev/null; then
3119
 
  if test -s conftest.err; then
3120
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3121
 
  else
3122
 
    ac_cpp_err=
3123
 
  fi
3124
 
else
3125
 
  ac_cpp_err=yes
3126
 
fi
3127
 
if test -z "$ac_cpp_err"; then
3128
 
  # Broken: success on invalid input.
3129
 
continue
3130
 
else
3131
 
  echo "$as_me: failed program was:" >&5
3132
 
sed 's/^/| /' conftest.$ac_ext >&5
3133
 
 
3134
 
  # Passes both tests.
3135
 
ac_preproc_ok=:
3136
 
break
3137
 
fi
3138
 
rm -f conftest.err conftest.$ac_ext
3139
 
 
3140
 
done
3141
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3142
 
rm -f conftest.err conftest.$ac_ext
3143
 
if $ac_preproc_ok; then
3144
 
  :
3145
 
else
3146
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3147
 
See \`config.log' for more details." >&5
3148
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3149
 
See \`config.log' for more details." >&2;}
3150
 
   { (exit 1); exit 1; }; }
3151
 
fi
3152
 
 
3153
 
ac_ext=c
3154
 
ac_cpp='$CPP $CPPFLAGS'
3155
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3156
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3157
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3158
 
 
3159
 
 
3160
 
echo "$as_me:$LINENO: checking for X" >&5
3161
 
echo $ECHO_N "checking for X... $ECHO_C" >&6
3162
 
 
3163
 
 
3164
 
# Check whether --with-x or --without-x was given.
 
6233
for ac_prog in gawk mawk nawk awk
 
6234
do
 
6235
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6236
set dummy $ac_prog; ac_word=$2
 
6237
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6238
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6239
if test "${ac_cv_prog_AWK+set}" = set; then
 
6240
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6241
else
 
6242
  if test -n "$AWK"; then
 
6243
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
6244
else
 
6245
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6246
for as_dir in $PATH
 
6247
do
 
6248
  IFS=$as_save_IFS
 
6249
  test -z "$as_dir" && as_dir=.
 
6250
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6251
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6252
    ac_cv_prog_AWK="$ac_prog"
 
6253
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6254
    break 2
 
6255
  fi
 
6256
done
 
6257
done
 
6258
IFS=$as_save_IFS
 
6259
 
 
6260
fi
 
6261
fi
 
6262
AWK=$ac_cv_prog_AWK
 
6263
if test -n "$AWK"; then
 
6264
  { echo "$as_me:$LINENO: result: $AWK" >&5
 
6265
echo "${ECHO_T}$AWK" >&6; }
 
6266
else
 
6267
  { echo "$as_me:$LINENO: result: no" >&5
 
6268
echo "${ECHO_T}no" >&6; }
 
6269
fi
 
6270
 
 
6271
 
 
6272
  test -n "$AWK" && break
 
6273
done
 
6274
 
 
6275
# Extract the first word of "bc", so it can be a program name with args.
 
6276
set dummy bc; ac_word=$2
 
6277
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6278
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6279
if test "${ac_cv_path_BC+set}" = set; then
 
6280
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6281
else
 
6282
  case $BC in
 
6283
  [\\/]* | ?:[\\/]*)
 
6284
  ac_cv_path_BC="$BC" # Let the user override the test with a path.
 
6285
  ;;
 
6286
  *)
 
6287
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6288
for as_dir in $PATH
 
6289
do
 
6290
  IFS=$as_save_IFS
 
6291
  test -z "$as_dir" && as_dir=.
 
6292
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6293
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6294
    ac_cv_path_BC="$as_dir/$ac_word$ac_exec_ext"
 
6295
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6296
    break 2
 
6297
  fi
 
6298
done
 
6299
done
 
6300
IFS=$as_save_IFS
 
6301
 
 
6302
  test -z "$ac_cv_path_BC" && ac_cv_path_BC="no"
 
6303
  ;;
 
6304
esac
 
6305
fi
 
6306
BC=$ac_cv_path_BC
 
6307
if test -n "$BC"; then
 
6308
  { echo "$as_me:$LINENO: result: $BC" >&5
 
6309
echo "${ECHO_T}$BC" >&6; }
 
6310
else
 
6311
  { echo "$as_me:$LINENO: result: no" >&5
 
6312
echo "${ECHO_T}no" >&6; }
 
6313
fi
 
6314
 
 
6315
 
 
6316
 
 
6317
{ echo "$as_me:$LINENO: checking for X" >&5
 
6318
echo $ECHO_N "checking for X... $ECHO_C" >&6; }
 
6319
 
 
6320
 
 
6321
# Check whether --with-x was given.
3165
6322
if test "${with_x+set}" = set; then
3166
 
  withval="$with_x"
 
6323
  withval=$with_x;
 
6324
fi
3167
6325
 
3168
 
fi;
3169
6326
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3170
6327
if test "x$with_x" = xno; then
3171
6328
  # The user explicitly disabled X.
3172
6329
  have_x=disabled
3173
6330
else
3174
 
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3175
 
    # Both variables are already set.
3176
 
    have_x=yes
3177
 
  else
3178
 
    if test "${ac_cv_have_x+set}" = set; then
 
6331
  case $x_includes,$x_libraries in #(
 
6332
    *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
 
6333
echo "$as_me: error: Cannot use X directory names containing '" >&2;}
 
6334
   { (exit 1); exit 1; }; };; #(
 
6335
    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
3179
6336
  echo $ECHO_N "(cached) $ECHO_C" >&6
3180
6337
else
3181
6338
  # One or both of the vars are not set, and there is no cached value.
3182
6339
ac_x_includes=no ac_x_libraries=no
3183
 
rm -fr conftest.dir
 
6340
rm -f -r conftest.dir
3184
6341
if mkdir conftest.dir; then
3185
6342
  cd conftest.dir
3186
 
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3187
6343
  cat >Imakefile <<'_ACEOF'
3188
 
acfindx:
3189
 
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
 
6344
incroot:
 
6345
        @echo incroot='${INCROOT}'
 
6346
usrlibdir:
 
6347
        @echo usrlibdir='${USRLIBDIR}'
 
6348
libdir:
 
6349
        @echo libdir='${LIBDIR}'
3190
6350
_ACEOF
3191
 
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
 
6351
  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3192
6352
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3193
 
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
 
6353
    for ac_var in incroot usrlibdir libdir; do
 
6354
      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
 
6355
    done
3194
6356
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3195
6357
    for ac_extension in a so sl; do
3196
 
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3197
 
         test -f $ac_im_libdir/libX11.$ac_extension; then
3198
 
        ac_im_usrlibdir=$ac_im_libdir; break
 
6358
      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
 
6359
         test -f "$ac_im_libdir/libX11.$ac_extension"; then
 
6360
        ac_im_usrlibdir=$ac_im_libdir; break
3199
6361
      fi
3200
6362
    done
3201
6363
    # Screen out bogus values from the imake configuration.  They are
3202
6364
    # bogus both because they are the default anyway, and because
3203
6365
    # using them would break gcc on systems where it needs fixed includes.
3204
6366
    case $ac_im_incroot in
3205
 
        /usr/include) ;;
 
6367
        /usr/include) ac_x_includes= ;;
3206
6368
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3207
6369
    esac
3208
6370
    case $ac_im_usrlibdir in
3211
6373
    esac
3212
6374
  fi
3213
6375
  cd ..
3214
 
  rm -fr conftest.dir
 
6376
  rm -f -r conftest.dir
3215
6377
fi
3216
6378
 
3217
6379
# Standard set of common directories for X headers.
3252
6414
/usr/openwin/share/include'
3253
6415
 
3254
6416
if test "$ac_x_includes" = no; then
3255
 
  # Guess where to find include files, by looking for Intrinsic.h.
 
6417
  # Guess where to find include files, by looking for Xlib.h.
3256
6418
  # First, try using that file with no special directory specified.
3257
6419
  cat >conftest.$ac_ext <<_ACEOF
3258
 
#line $LINENO "configure"
3259
6420
/* confdefs.h.  */
3260
6421
_ACEOF
3261
6422
cat confdefs.h >>conftest.$ac_ext
3262
6423
cat >>conftest.$ac_ext <<_ACEOF
3263
6424
/* end confdefs.h.  */
3264
 
#include <X11/Intrinsic.h>
 
6425
#include <X11/Xlib.h>
3265
6426
_ACEOF
3266
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3267
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6427
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6428
case "(($ac_try" in
 
6429
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6430
  *) ac_try_echo=$ac_try;;
 
6431
esac
 
6432
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6433
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3268
6434
  ac_status=$?
3269
6435
  grep -v '^ *+' conftest.er1 >conftest.err
3270
6436
  rm -f conftest.er1
3271
6437
  cat conftest.err >&5
3272
6438
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273
 
  (exit $ac_status); } >/dev/null; then
3274
 
  if test -s conftest.err; then
3275
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3276
 
  else
3277
 
    ac_cpp_err=
3278
 
  fi
3279
 
else
3280
 
  ac_cpp_err=yes
3281
 
fi
3282
 
if test -z "$ac_cpp_err"; then
 
6439
  (exit $ac_status); } >/dev/null && {
 
6440
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6441
         test ! -s conftest.err
 
6442
       }; then
3283
6443
  # We can compile using X headers with no special include directory.
3284
6444
ac_x_includes=
3285
6445
else
3287
6447
sed 's/^/| /' conftest.$ac_ext >&5
3288
6448
 
3289
6449
  for ac_dir in $ac_x_header_dirs; do
3290
 
  if test -r "$ac_dir/X11/Intrinsic.h"; then
 
6450
  if test -r "$ac_dir/X11/Xlib.h"; then
3291
6451
    ac_x_includes=$ac_dir
3292
6452
    break
3293
6453
  fi
3294
6454
done
3295
6455
fi
 
6456
 
3296
6457
rm -f conftest.err conftest.$ac_ext
3297
6458
fi # $ac_x_includes = no
3298
6459
 
3301
6462
  # See if we find them without any special options.
3302
6463
  # Don't add to $LIBS permanently.
3303
6464
  ac_save_LIBS=$LIBS
3304
 
  LIBS="-lXt $LIBS"
 
6465
  LIBS="-lX11 $LIBS"
3305
6466
  cat >conftest.$ac_ext <<_ACEOF
3306
 
#line $LINENO "configure"
3307
6467
/* confdefs.h.  */
3308
6468
_ACEOF
3309
6469
cat confdefs.h >>conftest.$ac_ext
3310
6470
cat >>conftest.$ac_ext <<_ACEOF
3311
6471
/* end confdefs.h.  */
3312
 
#include <X11/Intrinsic.h>
 
6472
#include <X11/Xlib.h>
3313
6473
int
3314
6474
main ()
3315
6475
{
3316
 
XtMalloc (0)
 
6476
XrmInitialize ()
3317
6477
  ;
3318
6478
  return 0;
3319
6479
}
3320
6480
_ACEOF
3321
6481
rm -f conftest.$ac_objext conftest$ac_exeext
3322
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3323
 
  (eval $ac_link) 2>&5
3324
 
  ac_status=$?
3325
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326
 
  (exit $ac_status); } &&
3327
 
         { ac_try='test -s conftest$ac_exeext'
3328
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329
 
  (eval $ac_try) 2>&5
3330
 
  ac_status=$?
3331
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332
 
  (exit $ac_status); }; }; then
 
6482
if { (ac_try="$ac_link"
 
6483
case "(($ac_try" in
 
6484
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6485
  *) ac_try_echo=$ac_try;;
 
6486
esac
 
6487
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6488
  (eval "$ac_link") 2>conftest.er1
 
6489
  ac_status=$?
 
6490
  grep -v '^ *+' conftest.er1 >conftest.err
 
6491
  rm -f conftest.er1
 
6492
  cat conftest.err >&5
 
6493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6494
  (exit $ac_status); } && {
 
6495
         test -z "$ac_c_werror_flag" ||
 
6496
         test ! -s conftest.err
 
6497
       } && test -s conftest$ac_exeext &&
 
6498
       $as_test_x conftest$ac_exeext; then
3333
6499
  LIBS=$ac_save_LIBS
3334
6500
# We can link X programs with no special library path.
3335
6501
ac_x_libraries=
3337
6503
  echo "$as_me: failed program was:" >&5
3338
6504
sed 's/^/| /' conftest.$ac_ext >&5
3339
6505
 
3340
 
LIBS=$ac_save_LIBS
 
6506
        LIBS=$ac_save_LIBS
3341
6507
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3342
6508
do
3343
6509
  # Don't even attempt the hair of trying to link an X program!
3344
6510
  for ac_extension in a so sl; do
3345
 
    if test -r $ac_dir/libXt.$ac_extension; then
 
6511
    if test -r "$ac_dir/libX11.$ac_extension"; then
3346
6512
      ac_x_libraries=$ac_dir
3347
6513
      break 2
3348
6514
    fi
3349
6515
  done
3350
6516
done
3351
6517
fi
3352
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6518
 
 
6519
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6520
      conftest$ac_exeext conftest.$ac_ext
3353
6521
fi # $ac_x_libraries = no
3354
6522
 
3355
 
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3356
 
  # Didn't find X anywhere.  Cache the known absence of X.
3357
 
  ac_cv_have_x="have_x=no"
3358
 
else
3359
 
  # Record where we found X for the cache.
3360
 
  ac_cv_have_x="have_x=yes \
3361
 
                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3362
 
fi
3363
 
fi
3364
 
 
3365
 
  fi
 
6523
case $ac_x_includes,$ac_x_libraries in #(
 
6524
  no,* | *,no | *\'*)
 
6525
    # Didn't find X, or a directory has "'" in its name.
 
6526
    ac_cv_have_x="have_x=no";; #(
 
6527
  *)
 
6528
    # Record where we found X for the cache.
 
6529
    ac_cv_have_x="have_x=yes\
 
6530
        ac_x_includes='$ac_x_includes'\
 
6531
        ac_x_libraries='$ac_x_libraries'"
 
6532
esac
 
6533
fi
 
6534
;; #(
 
6535
    *) have_x=yes;;
 
6536
  esac
3366
6537
  eval "$ac_cv_have_x"
3367
6538
fi # $with_x != no
3368
6539
 
3369
6540
if test "$have_x" != yes; then
3370
 
  echo "$as_me:$LINENO: result: $have_x" >&5
3371
 
echo "${ECHO_T}$have_x" >&6
 
6541
  { echo "$as_me:$LINENO: result: $have_x" >&5
 
6542
echo "${ECHO_T}$have_x" >&6; }
3372
6543
  no_x=yes
3373
6544
else
3374
6545
  # If each of the values was on the command line, it overrides each guess.
3375
6546
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3376
6547
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3377
6548
  # Update the cache value to reflect the command line values.
3378
 
  ac_cv_have_x="have_x=yes \
3379
 
                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3380
 
  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3381
 
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
 
6549
  ac_cv_have_x="have_x=yes\
 
6550
        ac_x_includes='$x_includes'\
 
6551
        ac_x_libraries='$x_libraries'"
 
6552
  { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
 
6553
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
3382
6554
fi
3383
6555
 
3384
6556
if test "$no_x" = yes; then
3399
6571
    X_LIBS="$X_LIBS -L$x_libraries"
3400
6572
    # For Solaris; some versions of Sun CC require a space after -R and
3401
6573
    # others require no space.  Words are not sufficient . . . .
3402
 
    case `(uname -sr) 2>/dev/null` in
3403
 
    "SunOS 5"*)
3404
 
      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3405
 
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3406
 
      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3407
 
      cat >conftest.$ac_ext <<_ACEOF
3408
 
#line $LINENO "configure"
 
6574
    { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
 
6575
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
 
6576
    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
 
6577
    ac_xsave_c_werror_flag=$ac_c_werror_flag
 
6578
    ac_c_werror_flag=yes
 
6579
    cat >conftest.$ac_ext <<_ACEOF
3409
6580
/* confdefs.h.  */
3410
6581
_ACEOF
3411
6582
cat confdefs.h >>conftest.$ac_ext
3421
6592
}
3422
6593
_ACEOF
3423
6594
rm -f conftest.$ac_objext conftest$ac_exeext
3424
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3425
 
  (eval $ac_link) 2>&5
3426
 
  ac_status=$?
3427
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428
 
  (exit $ac_status); } &&
3429
 
         { ac_try='test -s conftest$ac_exeext'
3430
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3431
 
  (eval $ac_try) 2>&5
3432
 
  ac_status=$?
3433
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434
 
  (exit $ac_status); }; }; then
3435
 
  ac_R_nospace=yes
 
6595
if { (ac_try="$ac_link"
 
6596
case "(($ac_try" in
 
6597
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6598
  *) ac_try_echo=$ac_try;;
 
6599
esac
 
6600
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6601
  (eval "$ac_link") 2>conftest.er1
 
6602
  ac_status=$?
 
6603
  grep -v '^ *+' conftest.er1 >conftest.err
 
6604
  rm -f conftest.er1
 
6605
  cat conftest.err >&5
 
6606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6607
  (exit $ac_status); } && {
 
6608
         test -z "$ac_c_werror_flag" ||
 
6609
         test ! -s conftest.err
 
6610
       } && test -s conftest$ac_exeext &&
 
6611
       $as_test_x conftest$ac_exeext; then
 
6612
  { echo "$as_me:$LINENO: result: no" >&5
 
6613
echo "${ECHO_T}no" >&6; }
 
6614
       X_LIBS="$X_LIBS -R$x_libraries"
3436
6615
else
3437
6616
  echo "$as_me: failed program was:" >&5
3438
6617
sed 's/^/| /' conftest.$ac_ext >&5
3439
6618
 
3440
 
ac_R_nospace=no
3441
 
fi
3442
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3443
 
      if test $ac_R_nospace = yes; then
3444
 
        echo "$as_me:$LINENO: result: no" >&5
3445
 
echo "${ECHO_T}no" >&6
3446
 
        X_LIBS="$X_LIBS -R$x_libraries"
3447
 
      else
3448
6619
        LIBS="$ac_xsave_LIBS -R $x_libraries"
3449
 
        cat >conftest.$ac_ext <<_ACEOF
3450
 
#line $LINENO "configure"
 
6620
       cat >conftest.$ac_ext <<_ACEOF
3451
6621
/* confdefs.h.  */
3452
6622
_ACEOF
3453
6623
cat confdefs.h >>conftest.$ac_ext
3463
6633
}
3464
6634
_ACEOF
3465
6635
rm -f conftest.$ac_objext conftest$ac_exeext
3466
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3467
 
  (eval $ac_link) 2>&5
3468
 
  ac_status=$?
3469
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470
 
  (exit $ac_status); } &&
3471
 
         { ac_try='test -s conftest$ac_exeext'
3472
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473
 
  (eval $ac_try) 2>&5
3474
 
  ac_status=$?
3475
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476
 
  (exit $ac_status); }; }; then
3477
 
  ac_R_space=yes
3478
 
else
3479
 
  echo "$as_me: failed program was:" >&5
3480
 
sed 's/^/| /' conftest.$ac_ext >&5
3481
 
 
3482
 
ac_R_space=no
3483
 
fi
3484
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3485
 
        if test $ac_R_space = yes; then
3486
 
          echo "$as_me:$LINENO: result: yes" >&5
3487
 
echo "${ECHO_T}yes" >&6
 
6636
if { (ac_try="$ac_link"
 
6637
case "(($ac_try" in
 
6638
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6639
  *) ac_try_echo=$ac_try;;
 
6640
esac
 
6641
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6642
  (eval "$ac_link") 2>conftest.er1
 
6643
  ac_status=$?
 
6644
  grep -v '^ *+' conftest.er1 >conftest.err
 
6645
  rm -f conftest.er1
 
6646
  cat conftest.err >&5
 
6647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6648
  (exit $ac_status); } && {
 
6649
         test -z "$ac_c_werror_flag" ||
 
6650
         test ! -s conftest.err
 
6651
       } && test -s conftest$ac_exeext &&
 
6652
       $as_test_x conftest$ac_exeext; then
 
6653
  { echo "$as_me:$LINENO: result: yes" >&5
 
6654
echo "${ECHO_T}yes" >&6; }
3488
6655
          X_LIBS="$X_LIBS -R $x_libraries"
3489
 
        else
3490
 
          echo "$as_me:$LINENO: result: neither works" >&5
3491
 
echo "${ECHO_T}neither works" >&6
3492
 
        fi
3493
 
      fi
3494
 
      LIBS=$ac_xsave_LIBS
3495
 
    esac
 
6656
else
 
6657
  echo "$as_me: failed program was:" >&5
 
6658
sed 's/^/| /' conftest.$ac_ext >&5
 
6659
 
 
6660
        { echo "$as_me:$LINENO: result: neither works" >&5
 
6661
echo "${ECHO_T}neither works" >&6; }
 
6662
fi
 
6663
 
 
6664
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6665
      conftest$ac_exeext conftest.$ac_ext
 
6666
fi
 
6667
 
 
6668
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6669
      conftest$ac_exeext conftest.$ac_ext
 
6670
    ac_c_werror_flag=$ac_xsave_c_werror_flag
 
6671
    LIBS=$ac_xsave_LIBS
3496
6672
  fi
3497
6673
 
3498
6674
  # Check for system-dependent libraries X programs must link with.
3507
6683
    # the Alpha needs dnet_stub (dnet does not exist).
3508
6684
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3509
6685
    cat >conftest.$ac_ext <<_ACEOF
3510
 
#line $LINENO "configure"
3511
6686
/* confdefs.h.  */
3512
6687
_ACEOF
3513
6688
cat confdefs.h >>conftest.$ac_ext
3514
6689
cat >>conftest.$ac_ext <<_ACEOF
3515
6690
/* end confdefs.h.  */
3516
6691
 
3517
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
6692
/* Override any GCC internal prototype to avoid an error.
 
6693
   Use char because int might match the return type of a GCC
 
6694
   builtin and then its argument prototype would still apply.  */
3518
6695
#ifdef __cplusplus
3519
6696
extern "C"
3520
6697
#endif
3521
 
/* We use char because int might match the return type of a gcc2
3522
 
   builtin and then its argument prototype would still apply.  */
3523
6698
char XOpenDisplay ();
3524
6699
int
3525
6700
main ()
3526
6701
{
3527
 
XOpenDisplay ();
 
6702
return XOpenDisplay ();
3528
6703
  ;
3529
6704
  return 0;
3530
6705
}
3531
6706
_ACEOF
3532
6707
rm -f conftest.$ac_objext conftest$ac_exeext
3533
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3534
 
  (eval $ac_link) 2>&5
3535
 
  ac_status=$?
3536
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537
 
  (exit $ac_status); } &&
3538
 
         { ac_try='test -s conftest$ac_exeext'
3539
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540
 
  (eval $ac_try) 2>&5
3541
 
  ac_status=$?
3542
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543
 
  (exit $ac_status); }; }; then
 
6708
if { (ac_try="$ac_link"
 
6709
case "(($ac_try" in
 
6710
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6711
  *) ac_try_echo=$ac_try;;
 
6712
esac
 
6713
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6714
  (eval "$ac_link") 2>conftest.er1
 
6715
  ac_status=$?
 
6716
  grep -v '^ *+' conftest.er1 >conftest.err
 
6717
  rm -f conftest.er1
 
6718
  cat conftest.err >&5
 
6719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6720
  (exit $ac_status); } && {
 
6721
         test -z "$ac_c_werror_flag" ||
 
6722
         test ! -s conftest.err
 
6723
       } && test -s conftest$ac_exeext &&
 
6724
       $as_test_x conftest$ac_exeext; then
3544
6725
  :
3545
6726
else
3546
6727
  echo "$as_me: failed program was:" >&5
3547
6728
sed 's/^/| /' conftest.$ac_ext >&5
3548
6729
 
3549
 
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3550
 
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
 
6730
        { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
 
6731
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
3551
6732
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3552
6733
  echo $ECHO_N "(cached) $ECHO_C" >&6
3553
6734
else
3554
6735
  ac_check_lib_save_LIBS=$LIBS
3555
6736
LIBS="-ldnet  $LIBS"
3556
6737
cat >conftest.$ac_ext <<_ACEOF
3557
 
#line $LINENO "configure"
3558
6738
/* confdefs.h.  */
3559
6739
_ACEOF
3560
6740
cat confdefs.h >>conftest.$ac_ext
3561
6741
cat >>conftest.$ac_ext <<_ACEOF
3562
6742
/* end confdefs.h.  */
3563
6743
 
3564
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
6744
/* Override any GCC internal prototype to avoid an error.
 
6745
   Use char because int might match the return type of a GCC
 
6746
   builtin and then its argument prototype would still apply.  */
3565
6747
#ifdef __cplusplus
3566
6748
extern "C"
3567
6749
#endif
3568
 
/* We use char because int might match the return type of a gcc2
3569
 
   builtin and then its argument prototype would still apply.  */
3570
6750
char dnet_ntoa ();
3571
6751
int
3572
6752
main ()
3573
6753
{
3574
 
dnet_ntoa ();
 
6754
return dnet_ntoa ();
3575
6755
  ;
3576
6756
  return 0;
3577
6757
}
3578
6758
_ACEOF
3579
6759
rm -f conftest.$ac_objext conftest$ac_exeext
3580
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3581
 
  (eval $ac_link) 2>&5
3582
 
  ac_status=$?
3583
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584
 
  (exit $ac_status); } &&
3585
 
         { ac_try='test -s conftest$ac_exeext'
3586
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587
 
  (eval $ac_try) 2>&5
3588
 
  ac_status=$?
3589
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590
 
  (exit $ac_status); }; }; then
 
6760
if { (ac_try="$ac_link"
 
6761
case "(($ac_try" in
 
6762
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6763
  *) ac_try_echo=$ac_try;;
 
6764
esac
 
6765
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6766
  (eval "$ac_link") 2>conftest.er1
 
6767
  ac_status=$?
 
6768
  grep -v '^ *+' conftest.er1 >conftest.err
 
6769
  rm -f conftest.er1
 
6770
  cat conftest.err >&5
 
6771
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6772
  (exit $ac_status); } && {
 
6773
         test -z "$ac_c_werror_flag" ||
 
6774
         test ! -s conftest.err
 
6775
       } && test -s conftest$ac_exeext &&
 
6776
       $as_test_x conftest$ac_exeext; then
3591
6777
  ac_cv_lib_dnet_dnet_ntoa=yes
3592
6778
else
3593
6779
  echo "$as_me: failed program was:" >&5
3594
6780
sed 's/^/| /' conftest.$ac_ext >&5
3595
6781
 
3596
 
ac_cv_lib_dnet_dnet_ntoa=no
 
6782
        ac_cv_lib_dnet_dnet_ntoa=no
3597
6783
fi
3598
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6784
 
 
6785
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6786
      conftest$ac_exeext conftest.$ac_ext
3599
6787
LIBS=$ac_check_lib_save_LIBS
3600
6788
fi
3601
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3602
 
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
 
6789
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
 
6790
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
3603
6791
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3604
6792
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3605
6793
fi
3606
6794
 
3607
6795
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3608
 
      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3609
 
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
 
6796
      { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
 
6797
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
3610
6798
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3611
6799
  echo $ECHO_N "(cached) $ECHO_C" >&6
3612
6800
else
3613
6801
  ac_check_lib_save_LIBS=$LIBS
3614
6802
LIBS="-ldnet_stub  $LIBS"
3615
6803
cat >conftest.$ac_ext <<_ACEOF
3616
 
#line $LINENO "configure"
3617
6804
/* confdefs.h.  */
3618
6805
_ACEOF
3619
6806
cat confdefs.h >>conftest.$ac_ext
3620
6807
cat >>conftest.$ac_ext <<_ACEOF
3621
6808
/* end confdefs.h.  */
3622
6809
 
3623
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
6810
/* Override any GCC internal prototype to avoid an error.
 
6811
   Use char because int might match the return type of a GCC
 
6812
   builtin and then its argument prototype would still apply.  */
3624
6813
#ifdef __cplusplus
3625
6814
extern "C"
3626
6815
#endif
3627
 
/* We use char because int might match the return type of a gcc2
3628
 
   builtin and then its argument prototype would still apply.  */
3629
6816
char dnet_ntoa ();
3630
6817
int
3631
6818
main ()
3632
6819
{
3633
 
dnet_ntoa ();
 
6820
return dnet_ntoa ();
3634
6821
  ;
3635
6822
  return 0;
3636
6823
}
3637
6824
_ACEOF
3638
6825
rm -f conftest.$ac_objext conftest$ac_exeext
3639
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3640
 
  (eval $ac_link) 2>&5
3641
 
  ac_status=$?
3642
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643
 
  (exit $ac_status); } &&
3644
 
         { ac_try='test -s conftest$ac_exeext'
3645
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646
 
  (eval $ac_try) 2>&5
3647
 
  ac_status=$?
3648
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649
 
  (exit $ac_status); }; }; then
 
6826
if { (ac_try="$ac_link"
 
6827
case "(($ac_try" in
 
6828
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6829
  *) ac_try_echo=$ac_try;;
 
6830
esac
 
6831
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6832
  (eval "$ac_link") 2>conftest.er1
 
6833
  ac_status=$?
 
6834
  grep -v '^ *+' conftest.er1 >conftest.err
 
6835
  rm -f conftest.er1
 
6836
  cat conftest.err >&5
 
6837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6838
  (exit $ac_status); } && {
 
6839
         test -z "$ac_c_werror_flag" ||
 
6840
         test ! -s conftest.err
 
6841
       } && test -s conftest$ac_exeext &&
 
6842
       $as_test_x conftest$ac_exeext; then
3650
6843
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
3651
6844
else
3652
6845
  echo "$as_me: failed program was:" >&5
3653
6846
sed 's/^/| /' conftest.$ac_ext >&5
3654
6847
 
3655
 
ac_cv_lib_dnet_stub_dnet_ntoa=no
 
6848
        ac_cv_lib_dnet_stub_dnet_ntoa=no
3656
6849
fi
3657
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6850
 
 
6851
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6852
      conftest$ac_exeext conftest.$ac_ext
3658
6853
LIBS=$ac_check_lib_save_LIBS
3659
6854
fi
3660
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3661
 
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
 
6855
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
 
6856
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
3662
6857
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3663
6858
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3664
6859
fi
3665
6860
 
3666
6861
    fi
3667
6862
fi
3668
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6863
 
 
6864
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6865
      conftest$ac_exeext conftest.$ac_ext
3669
6866
    LIBS="$ac_xsave_LIBS"
3670
6867
 
3671
6868
    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3676
6873
    # on Irix 5.2, according to T.E. Dickey.
3677
6874
    # The functions gethostbyname, getservbyname, and inet_addr are
3678
6875
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3679
 
    echo "$as_me:$LINENO: checking for gethostbyname" >&5
3680
 
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
 
6876
    { echo "$as_me:$LINENO: checking for gethostbyname" >&5
 
6877
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
3681
6878
if test "${ac_cv_func_gethostbyname+set}" = set; then
3682
6879
  echo $ECHO_N "(cached) $ECHO_C" >&6
3683
6880
else
3684
6881
  cat >conftest.$ac_ext <<_ACEOF
3685
 
#line $LINENO "configure"
3686
6882
/* confdefs.h.  */
3687
6883
_ACEOF
3688
6884
cat confdefs.h >>conftest.$ac_ext
3689
6885
cat >>conftest.$ac_ext <<_ACEOF
3690
6886
/* end confdefs.h.  */
 
6887
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
 
6888
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
6889
#define gethostbyname innocuous_gethostbyname
 
6890
 
3691
6891
/* System header to define __stub macros and hopefully few prototypes,
3692
6892
    which can conflict with char gethostbyname (); below.
3693
6893
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3694
6894
    <limits.h> exists even on freestanding compilers.  */
 
6895
 
3695
6896
#ifdef __STDC__
3696
6897
# include <limits.h>
3697
6898
#else
3698
6899
# include <assert.h>
3699
6900
#endif
3700
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
6901
 
 
6902
#undef gethostbyname
 
6903
 
 
6904
/* Override any GCC internal prototype to avoid an error.
 
6905
   Use char because int might match the return type of a GCC
 
6906
   builtin and then its argument prototype would still apply.  */
3701
6907
#ifdef __cplusplus
3702
6908
extern "C"
3703
 
{
3704
6909
#endif
3705
 
/* We use char because int might match the return type of a gcc2
3706
 
   builtin and then its argument prototype would still apply.  */
3707
6910
char gethostbyname ();
3708
6911
/* The GNU C library defines this for functions which it implements
3709
6912
    to always fail with ENOSYS.  Some functions are actually named
3710
6913
    something starting with __ and the normal name is an alias.  */
3711
 
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
 
6914
#if defined __stub_gethostbyname || defined __stub___gethostbyname
3712
6915
choke me
3713
 
#else
3714
 
char (*f) () = gethostbyname;
3715
 
#endif
3716
 
#ifdef __cplusplus
3717
 
}
3718
6916
#endif
3719
6917
 
3720
6918
int
3721
6919
main ()
3722
6920
{
3723
 
return f != gethostbyname;
 
6921
return gethostbyname ();
3724
6922
  ;
3725
6923
  return 0;
3726
6924
}
3727
6925
_ACEOF
3728
6926
rm -f conftest.$ac_objext conftest$ac_exeext
3729
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3730
 
  (eval $ac_link) 2>&5
3731
 
  ac_status=$?
3732
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733
 
  (exit $ac_status); } &&
3734
 
         { ac_try='test -s conftest$ac_exeext'
3735
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3736
 
  (eval $ac_try) 2>&5
3737
 
  ac_status=$?
3738
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739
 
  (exit $ac_status); }; }; then
 
6927
if { (ac_try="$ac_link"
 
6928
case "(($ac_try" in
 
6929
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6930
  *) ac_try_echo=$ac_try;;
 
6931
esac
 
6932
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6933
  (eval "$ac_link") 2>conftest.er1
 
6934
  ac_status=$?
 
6935
  grep -v '^ *+' conftest.er1 >conftest.err
 
6936
  rm -f conftest.er1
 
6937
  cat conftest.err >&5
 
6938
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6939
  (exit $ac_status); } && {
 
6940
         test -z "$ac_c_werror_flag" ||
 
6941
         test ! -s conftest.err
 
6942
       } && test -s conftest$ac_exeext &&
 
6943
       $as_test_x conftest$ac_exeext; then
3740
6944
  ac_cv_func_gethostbyname=yes
3741
6945
else
3742
6946
  echo "$as_me: failed program was:" >&5
3743
6947
sed 's/^/| /' conftest.$ac_ext >&5
3744
6948
 
3745
 
ac_cv_func_gethostbyname=no
3746
 
fi
3747
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3748
 
fi
3749
 
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3750
 
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
 
6949
        ac_cv_func_gethostbyname=no
 
6950
fi
 
6951
 
 
6952
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6953
      conftest$ac_exeext conftest.$ac_ext
 
6954
fi
 
6955
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
 
6956
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
3751
6957
 
3752
6958
    if test $ac_cv_func_gethostbyname = no; then
3753
 
      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3754
 
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
 
6959
      { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
 
6960
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
3755
6961
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3756
6962
  echo $ECHO_N "(cached) $ECHO_C" >&6
3757
6963
else
3758
6964
  ac_check_lib_save_LIBS=$LIBS
3759
6965
LIBS="-lnsl  $LIBS"
3760
6966
cat >conftest.$ac_ext <<_ACEOF
3761
 
#line $LINENO "configure"
3762
6967
/* confdefs.h.  */
3763
6968
_ACEOF
3764
6969
cat confdefs.h >>conftest.$ac_ext
3765
6970
cat >>conftest.$ac_ext <<_ACEOF
3766
6971
/* end confdefs.h.  */
3767
6972
 
3768
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
6973
/* Override any GCC internal prototype to avoid an error.
 
6974
   Use char because int might match the return type of a GCC
 
6975
   builtin and then its argument prototype would still apply.  */
3769
6976
#ifdef __cplusplus
3770
6977
extern "C"
3771
6978
#endif
3772
 
/* We use char because int might match the return type of a gcc2
3773
 
   builtin and then its argument prototype would still apply.  */
3774
6979
char gethostbyname ();
3775
6980
int
3776
6981
main ()
3777
6982
{
3778
 
gethostbyname ();
 
6983
return gethostbyname ();
3779
6984
  ;
3780
6985
  return 0;
3781
6986
}
3782
6987
_ACEOF
3783
6988
rm -f conftest.$ac_objext conftest$ac_exeext
3784
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3785
 
  (eval $ac_link) 2>&5
3786
 
  ac_status=$?
3787
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788
 
  (exit $ac_status); } &&
3789
 
         { ac_try='test -s conftest$ac_exeext'
3790
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3791
 
  (eval $ac_try) 2>&5
3792
 
  ac_status=$?
3793
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794
 
  (exit $ac_status); }; }; then
 
6989
if { (ac_try="$ac_link"
 
6990
case "(($ac_try" in
 
6991
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6992
  *) ac_try_echo=$ac_try;;
 
6993
esac
 
6994
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6995
  (eval "$ac_link") 2>conftest.er1
 
6996
  ac_status=$?
 
6997
  grep -v '^ *+' conftest.er1 >conftest.err
 
6998
  rm -f conftest.er1
 
6999
  cat conftest.err >&5
 
7000
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7001
  (exit $ac_status); } && {
 
7002
         test -z "$ac_c_werror_flag" ||
 
7003
         test ! -s conftest.err
 
7004
       } && test -s conftest$ac_exeext &&
 
7005
       $as_test_x conftest$ac_exeext; then
3795
7006
  ac_cv_lib_nsl_gethostbyname=yes
3796
7007
else
3797
7008
  echo "$as_me: failed program was:" >&5
3798
7009
sed 's/^/| /' conftest.$ac_ext >&5
3799
7010
 
3800
 
ac_cv_lib_nsl_gethostbyname=no
 
7011
        ac_cv_lib_nsl_gethostbyname=no
3801
7012
fi
3802
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7013
 
 
7014
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7015
      conftest$ac_exeext conftest.$ac_ext
3803
7016
LIBS=$ac_check_lib_save_LIBS
3804
7017
fi
3805
 
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3806
 
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
 
7018
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
 
7019
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
3807
7020
if test $ac_cv_lib_nsl_gethostbyname = yes; then
3808
7021
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3809
7022
fi
3810
7023
 
3811
7024
      if test $ac_cv_lib_nsl_gethostbyname = no; then
3812
 
        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3813
 
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
 
7025
        { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
 
7026
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
3814
7027
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3815
7028
  echo $ECHO_N "(cached) $ECHO_C" >&6
3816
7029
else
3817
7030
  ac_check_lib_save_LIBS=$LIBS
3818
7031
LIBS="-lbsd  $LIBS"
3819
7032
cat >conftest.$ac_ext <<_ACEOF
3820
 
#line $LINENO "configure"
3821
7033
/* confdefs.h.  */
3822
7034
_ACEOF
3823
7035
cat confdefs.h >>conftest.$ac_ext
3824
7036
cat >>conftest.$ac_ext <<_ACEOF
3825
7037
/* end confdefs.h.  */
3826
7038
 
3827
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
7039
/* Override any GCC internal prototype to avoid an error.
 
7040
   Use char because int might match the return type of a GCC
 
7041
   builtin and then its argument prototype would still apply.  */
3828
7042
#ifdef __cplusplus
3829
7043
extern "C"
3830
7044
#endif
3831
 
/* We use char because int might match the return type of a gcc2
3832
 
   builtin and then its argument prototype would still apply.  */
3833
7045
char gethostbyname ();
3834
7046
int
3835
7047
main ()
3836
7048
{
3837
 
gethostbyname ();
 
7049
return gethostbyname ();
3838
7050
  ;
3839
7051
  return 0;
3840
7052
}
3841
7053
_ACEOF
3842
7054
rm -f conftest.$ac_objext conftest$ac_exeext
3843
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3844
 
  (eval $ac_link) 2>&5
3845
 
  ac_status=$?
3846
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847
 
  (exit $ac_status); } &&
3848
 
         { ac_try='test -s conftest$ac_exeext'
3849
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850
 
  (eval $ac_try) 2>&5
3851
 
  ac_status=$?
3852
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853
 
  (exit $ac_status); }; }; then
 
7055
if { (ac_try="$ac_link"
 
7056
case "(($ac_try" in
 
7057
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7058
  *) ac_try_echo=$ac_try;;
 
7059
esac
 
7060
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7061
  (eval "$ac_link") 2>conftest.er1
 
7062
  ac_status=$?
 
7063
  grep -v '^ *+' conftest.er1 >conftest.err
 
7064
  rm -f conftest.er1
 
7065
  cat conftest.err >&5
 
7066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7067
  (exit $ac_status); } && {
 
7068
         test -z "$ac_c_werror_flag" ||
 
7069
         test ! -s conftest.err
 
7070
       } && test -s conftest$ac_exeext &&
 
7071
       $as_test_x conftest$ac_exeext; then
3854
7072
  ac_cv_lib_bsd_gethostbyname=yes
3855
7073
else
3856
7074
  echo "$as_me: failed program was:" >&5
3857
7075
sed 's/^/| /' conftest.$ac_ext >&5
3858
7076
 
3859
 
ac_cv_lib_bsd_gethostbyname=no
 
7077
        ac_cv_lib_bsd_gethostbyname=no
3860
7078
fi
3861
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7079
 
 
7080
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7081
      conftest$ac_exeext conftest.$ac_ext
3862
7082
LIBS=$ac_check_lib_save_LIBS
3863
7083
fi
3864
 
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3865
 
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
 
7084
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
 
7085
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
3866
7086
if test $ac_cv_lib_bsd_gethostbyname = yes; then
3867
7087
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3868
7088
fi
3877
7097
    # variants that don't use the name server (or something).  -lsocket
3878
7098
    # must be given before -lnsl if both are needed.  We assume that
3879
7099
    # if connect needs -lnsl, so does gethostbyname.
3880
 
    echo "$as_me:$LINENO: checking for connect" >&5
3881
 
echo $ECHO_N "checking for connect... $ECHO_C" >&6
 
7100
    { echo "$as_me:$LINENO: checking for connect" >&5
 
7101
echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
3882
7102
if test "${ac_cv_func_connect+set}" = set; then
3883
7103
  echo $ECHO_N "(cached) $ECHO_C" >&6
3884
7104
else
3885
7105
  cat >conftest.$ac_ext <<_ACEOF
3886
 
#line $LINENO "configure"
3887
7106
/* confdefs.h.  */
3888
7107
_ACEOF
3889
7108
cat confdefs.h >>conftest.$ac_ext
3890
7109
cat >>conftest.$ac_ext <<_ACEOF
3891
7110
/* end confdefs.h.  */
 
7111
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
 
7112
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
7113
#define connect innocuous_connect
 
7114
 
3892
7115
/* System header to define __stub macros and hopefully few prototypes,
3893
7116
    which can conflict with char connect (); below.
3894
7117
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3895
7118
    <limits.h> exists even on freestanding compilers.  */
 
7119
 
3896
7120
#ifdef __STDC__
3897
7121
# include <limits.h>
3898
7122
#else
3899
7123
# include <assert.h>
3900
7124
#endif
3901
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
7125
 
 
7126
#undef connect
 
7127
 
 
7128
/* Override any GCC internal prototype to avoid an error.
 
7129
   Use char because int might match the return type of a GCC
 
7130
   builtin and then its argument prototype would still apply.  */
3902
7131
#ifdef __cplusplus
3903
7132
extern "C"
3904
 
{
3905
7133
#endif
3906
 
/* We use char because int might match the return type of a gcc2
3907
 
   builtin and then its argument prototype would still apply.  */
3908
7134
char connect ();
3909
7135
/* The GNU C library defines this for functions which it implements
3910
7136
    to always fail with ENOSYS.  Some functions are actually named
3911
7137
    something starting with __ and the normal name is an alias.  */
3912
 
#if defined (__stub_connect) || defined (__stub___connect)
 
7138
#if defined __stub_connect || defined __stub___connect
3913
7139
choke me
3914
 
#else
3915
 
char (*f) () = connect;
3916
 
#endif
3917
 
#ifdef __cplusplus
3918
 
}
3919
7140
#endif
3920
7141
 
3921
7142
int
3922
7143
main ()
3923
7144
{
3924
 
return f != connect;
 
7145
return connect ();
3925
7146
  ;
3926
7147
  return 0;
3927
7148
}
3928
7149
_ACEOF
3929
7150
rm -f conftest.$ac_objext conftest$ac_exeext
3930
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3931
 
  (eval $ac_link) 2>&5
3932
 
  ac_status=$?
3933
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934
 
  (exit $ac_status); } &&
3935
 
         { ac_try='test -s conftest$ac_exeext'
3936
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937
 
  (eval $ac_try) 2>&5
3938
 
  ac_status=$?
3939
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940
 
  (exit $ac_status); }; }; then
 
7151
if { (ac_try="$ac_link"
 
7152
case "(($ac_try" in
 
7153
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7154
  *) ac_try_echo=$ac_try;;
 
7155
esac
 
7156
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7157
  (eval "$ac_link") 2>conftest.er1
 
7158
  ac_status=$?
 
7159
  grep -v '^ *+' conftest.er1 >conftest.err
 
7160
  rm -f conftest.er1
 
7161
  cat conftest.err >&5
 
7162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7163
  (exit $ac_status); } && {
 
7164
         test -z "$ac_c_werror_flag" ||
 
7165
         test ! -s conftest.err
 
7166
       } && test -s conftest$ac_exeext &&
 
7167
       $as_test_x conftest$ac_exeext; then
3941
7168
  ac_cv_func_connect=yes
3942
7169
else
3943
7170
  echo "$as_me: failed program was:" >&5
3944
7171
sed 's/^/| /' conftest.$ac_ext >&5
3945
7172
 
3946
 
ac_cv_func_connect=no
3947
 
fi
3948
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3949
 
fi
3950
 
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3951
 
echo "${ECHO_T}$ac_cv_func_connect" >&6
 
7173
        ac_cv_func_connect=no
 
7174
fi
 
7175
 
 
7176
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7177
      conftest$ac_exeext conftest.$ac_ext
 
7178
fi
 
7179
{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
 
7180
echo "${ECHO_T}$ac_cv_func_connect" >&6; }
3952
7181
 
3953
7182
    if test $ac_cv_func_connect = no; then
3954
 
      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3955
 
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
 
7183
      { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
 
7184
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
3956
7185
if test "${ac_cv_lib_socket_connect+set}" = set; then
3957
7186
  echo $ECHO_N "(cached) $ECHO_C" >&6
3958
7187
else
3959
7188
  ac_check_lib_save_LIBS=$LIBS
3960
7189
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3961
7190
cat >conftest.$ac_ext <<_ACEOF
3962
 
#line $LINENO "configure"
3963
7191
/* confdefs.h.  */
3964
7192
_ACEOF
3965
7193
cat confdefs.h >>conftest.$ac_ext
3966
7194
cat >>conftest.$ac_ext <<_ACEOF
3967
7195
/* end confdefs.h.  */
3968
7196
 
3969
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
7197
/* Override any GCC internal prototype to avoid an error.
 
7198
   Use char because int might match the return type of a GCC
 
7199
   builtin and then its argument prototype would still apply.  */
3970
7200
#ifdef __cplusplus
3971
7201
extern "C"
3972
7202
#endif
3973
 
/* We use char because int might match the return type of a gcc2
3974
 
   builtin and then its argument prototype would still apply.  */
3975
7203
char connect ();
3976
7204
int
3977
7205
main ()
3978
7206
{
3979
 
connect ();
 
7207
return connect ();
3980
7208
  ;
3981
7209
  return 0;
3982
7210
}
3983
7211
_ACEOF
3984
7212
rm -f conftest.$ac_objext conftest$ac_exeext
3985
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3986
 
  (eval $ac_link) 2>&5
3987
 
  ac_status=$?
3988
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989
 
  (exit $ac_status); } &&
3990
 
         { ac_try='test -s conftest$ac_exeext'
3991
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992
 
  (eval $ac_try) 2>&5
3993
 
  ac_status=$?
3994
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995
 
  (exit $ac_status); }; }; then
 
7213
if { (ac_try="$ac_link"
 
7214
case "(($ac_try" in
 
7215
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7216
  *) ac_try_echo=$ac_try;;
 
7217
esac
 
7218
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7219
  (eval "$ac_link") 2>conftest.er1
 
7220
  ac_status=$?
 
7221
  grep -v '^ *+' conftest.er1 >conftest.err
 
7222
  rm -f conftest.er1
 
7223
  cat conftest.err >&5
 
7224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7225
  (exit $ac_status); } && {
 
7226
         test -z "$ac_c_werror_flag" ||
 
7227
         test ! -s conftest.err
 
7228
       } && test -s conftest$ac_exeext &&
 
7229
       $as_test_x conftest$ac_exeext; then
3996
7230
  ac_cv_lib_socket_connect=yes
3997
7231
else
3998
7232
  echo "$as_me: failed program was:" >&5
3999
7233
sed 's/^/| /' conftest.$ac_ext >&5
4000
7234
 
4001
 
ac_cv_lib_socket_connect=no
 
7235
        ac_cv_lib_socket_connect=no
4002
7236
fi
4003
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7237
 
 
7238
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7239
      conftest$ac_exeext conftest.$ac_ext
4004
7240
LIBS=$ac_check_lib_save_LIBS
4005
7241
fi
4006
 
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4007
 
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
 
7242
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
 
7243
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
4008
7244
if test $ac_cv_lib_socket_connect = yes; then
4009
7245
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4010
7246
fi
4012
7248
    fi
4013
7249
 
4014
7250
    # Guillermo Gomez says -lposix is necessary on A/UX.
4015
 
    echo "$as_me:$LINENO: checking for remove" >&5
4016
 
echo $ECHO_N "checking for remove... $ECHO_C" >&6
 
7251
    { echo "$as_me:$LINENO: checking for remove" >&5
 
7252
echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
4017
7253
if test "${ac_cv_func_remove+set}" = set; then
4018
7254
  echo $ECHO_N "(cached) $ECHO_C" >&6
4019
7255
else
4020
7256
  cat >conftest.$ac_ext <<_ACEOF
4021
 
#line $LINENO "configure"
4022
7257
/* confdefs.h.  */
4023
7258
_ACEOF
4024
7259
cat confdefs.h >>conftest.$ac_ext
4025
7260
cat >>conftest.$ac_ext <<_ACEOF
4026
7261
/* end confdefs.h.  */
 
7262
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
 
7263
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
7264
#define remove innocuous_remove
 
7265
 
4027
7266
/* System header to define __stub macros and hopefully few prototypes,
4028
7267
    which can conflict with char remove (); below.
4029
7268
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4030
7269
    <limits.h> exists even on freestanding compilers.  */
 
7270
 
4031
7271
#ifdef __STDC__
4032
7272
# include <limits.h>
4033
7273
#else
4034
7274
# include <assert.h>
4035
7275
#endif
4036
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
7276
 
 
7277
#undef remove
 
7278
 
 
7279
/* Override any GCC internal prototype to avoid an error.
 
7280
   Use char because int might match the return type of a GCC
 
7281
   builtin and then its argument prototype would still apply.  */
4037
7282
#ifdef __cplusplus
4038
7283
extern "C"
4039
 
{
4040
7284
#endif
4041
 
/* We use char because int might match the return type of a gcc2
4042
 
   builtin and then its argument prototype would still apply.  */
4043
7285
char remove ();
4044
7286
/* The GNU C library defines this for functions which it implements
4045
7287
    to always fail with ENOSYS.  Some functions are actually named
4046
7288
    something starting with __ and the normal name is an alias.  */
4047
 
#if defined (__stub_remove) || defined (__stub___remove)
 
7289
#if defined __stub_remove || defined __stub___remove
4048
7290
choke me
4049
 
#else
4050
 
char (*f) () = remove;
4051
 
#endif
4052
 
#ifdef __cplusplus
4053
 
}
4054
7291
#endif
4055
7292
 
4056
7293
int
4057
7294
main ()
4058
7295
{
4059
 
return f != remove;
 
7296
return remove ();
4060
7297
  ;
4061
7298
  return 0;
4062
7299
}
4063
7300
_ACEOF
4064
7301
rm -f conftest.$ac_objext conftest$ac_exeext
4065
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4066
 
  (eval $ac_link) 2>&5
4067
 
  ac_status=$?
4068
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069
 
  (exit $ac_status); } &&
4070
 
         { ac_try='test -s conftest$ac_exeext'
4071
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072
 
  (eval $ac_try) 2>&5
4073
 
  ac_status=$?
4074
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075
 
  (exit $ac_status); }; }; then
 
7302
if { (ac_try="$ac_link"
 
7303
case "(($ac_try" in
 
7304
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7305
  *) ac_try_echo=$ac_try;;
 
7306
esac
 
7307
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7308
  (eval "$ac_link") 2>conftest.er1
 
7309
  ac_status=$?
 
7310
  grep -v '^ *+' conftest.er1 >conftest.err
 
7311
  rm -f conftest.er1
 
7312
  cat conftest.err >&5
 
7313
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7314
  (exit $ac_status); } && {
 
7315
         test -z "$ac_c_werror_flag" ||
 
7316
         test ! -s conftest.err
 
7317
       } && test -s conftest$ac_exeext &&
 
7318
       $as_test_x conftest$ac_exeext; then
4076
7319
  ac_cv_func_remove=yes
4077
7320
else
4078
7321
  echo "$as_me: failed program was:" >&5
4079
7322
sed 's/^/| /' conftest.$ac_ext >&5
4080
7323
 
4081
 
ac_cv_func_remove=no
4082
 
fi
4083
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4084
 
fi
4085
 
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4086
 
echo "${ECHO_T}$ac_cv_func_remove" >&6
 
7324
        ac_cv_func_remove=no
 
7325
fi
 
7326
 
 
7327
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7328
      conftest$ac_exeext conftest.$ac_ext
 
7329
fi
 
7330
{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
 
7331
echo "${ECHO_T}$ac_cv_func_remove" >&6; }
4087
7332
 
4088
7333
    if test $ac_cv_func_remove = no; then
4089
 
      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4090
 
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
 
7334
      { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
 
7335
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
4091
7336
if test "${ac_cv_lib_posix_remove+set}" = set; then
4092
7337
  echo $ECHO_N "(cached) $ECHO_C" >&6
4093
7338
else
4094
7339
  ac_check_lib_save_LIBS=$LIBS
4095
7340
LIBS="-lposix  $LIBS"
4096
7341
cat >conftest.$ac_ext <<_ACEOF
4097
 
#line $LINENO "configure"
4098
7342
/* confdefs.h.  */
4099
7343
_ACEOF
4100
7344
cat confdefs.h >>conftest.$ac_ext
4101
7345
cat >>conftest.$ac_ext <<_ACEOF
4102
7346
/* end confdefs.h.  */
4103
7347
 
4104
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
7348
/* Override any GCC internal prototype to avoid an error.
 
7349
   Use char because int might match the return type of a GCC
 
7350
   builtin and then its argument prototype would still apply.  */
4105
7351
#ifdef __cplusplus
4106
7352
extern "C"
4107
7353
#endif
4108
 
/* We use char because int might match the return type of a gcc2
4109
 
   builtin and then its argument prototype would still apply.  */
4110
7354
char remove ();
4111
7355
int
4112
7356
main ()
4113
7357
{
4114
 
remove ();
 
7358
return remove ();
4115
7359
  ;
4116
7360
  return 0;
4117
7361
}
4118
7362
_ACEOF
4119
7363
rm -f conftest.$ac_objext conftest$ac_exeext
4120
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4121
 
  (eval $ac_link) 2>&5
4122
 
  ac_status=$?
4123
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124
 
  (exit $ac_status); } &&
4125
 
         { ac_try='test -s conftest$ac_exeext'
4126
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127
 
  (eval $ac_try) 2>&5
4128
 
  ac_status=$?
4129
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130
 
  (exit $ac_status); }; }; then
 
7364
if { (ac_try="$ac_link"
 
7365
case "(($ac_try" in
 
7366
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7367
  *) ac_try_echo=$ac_try;;
 
7368
esac
 
7369
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7370
  (eval "$ac_link") 2>conftest.er1
 
7371
  ac_status=$?
 
7372
  grep -v '^ *+' conftest.er1 >conftest.err
 
7373
  rm -f conftest.er1
 
7374
  cat conftest.err >&5
 
7375
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7376
  (exit $ac_status); } && {
 
7377
         test -z "$ac_c_werror_flag" ||
 
7378
         test ! -s conftest.err
 
7379
       } && test -s conftest$ac_exeext &&
 
7380
       $as_test_x conftest$ac_exeext; then
4131
7381
  ac_cv_lib_posix_remove=yes
4132
7382
else
4133
7383
  echo "$as_me: failed program was:" >&5
4134
7384
sed 's/^/| /' conftest.$ac_ext >&5
4135
7385
 
4136
 
ac_cv_lib_posix_remove=no
 
7386
        ac_cv_lib_posix_remove=no
4137
7387
fi
4138
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7388
 
 
7389
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7390
      conftest$ac_exeext conftest.$ac_ext
4139
7391
LIBS=$ac_check_lib_save_LIBS
4140
7392
fi
4141
 
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4142
 
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
 
7393
{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
 
7394
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
4143
7395
if test $ac_cv_lib_posix_remove = yes; then
4144
7396
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4145
7397
fi
4147
7399
    fi
4148
7400
 
4149
7401
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4150
 
    echo "$as_me:$LINENO: checking for shmat" >&5
4151
 
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
 
7402
    { echo "$as_me:$LINENO: checking for shmat" >&5
 
7403
echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
4152
7404
if test "${ac_cv_func_shmat+set}" = set; then
4153
7405
  echo $ECHO_N "(cached) $ECHO_C" >&6
4154
7406
else
4155
7407
  cat >conftest.$ac_ext <<_ACEOF
4156
 
#line $LINENO "configure"
4157
7408
/* confdefs.h.  */
4158
7409
_ACEOF
4159
7410
cat confdefs.h >>conftest.$ac_ext
4160
7411
cat >>conftest.$ac_ext <<_ACEOF
4161
7412
/* end confdefs.h.  */
 
7413
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
 
7414
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
7415
#define shmat innocuous_shmat
 
7416
 
4162
7417
/* System header to define __stub macros and hopefully few prototypes,
4163
7418
    which can conflict with char shmat (); below.
4164
7419
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4165
7420
    <limits.h> exists even on freestanding compilers.  */
 
7421
 
4166
7422
#ifdef __STDC__
4167
7423
# include <limits.h>
4168
7424
#else
4169
7425
# include <assert.h>
4170
7426
#endif
4171
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
7427
 
 
7428
#undef shmat
 
7429
 
 
7430
/* Override any GCC internal prototype to avoid an error.
 
7431
   Use char because int might match the return type of a GCC
 
7432
   builtin and then its argument prototype would still apply.  */
4172
7433
#ifdef __cplusplus
4173
7434
extern "C"
4174
 
{
4175
7435
#endif
4176
 
/* We use char because int might match the return type of a gcc2
4177
 
   builtin and then its argument prototype would still apply.  */
4178
7436
char shmat ();
4179
7437
/* The GNU C library defines this for functions which it implements
4180
7438
    to always fail with ENOSYS.  Some functions are actually named
4181
7439
    something starting with __ and the normal name is an alias.  */
4182
 
#if defined (__stub_shmat) || defined (__stub___shmat)
 
7440
#if defined __stub_shmat || defined __stub___shmat
4183
7441
choke me
4184
 
#else
4185
 
char (*f) () = shmat;
4186
 
#endif
4187
 
#ifdef __cplusplus
4188
 
}
4189
7442
#endif
4190
7443
 
4191
7444
int
4192
7445
main ()
4193
7446
{
4194
 
return f != shmat;
 
7447
return shmat ();
4195
7448
  ;
4196
7449
  return 0;
4197
7450
}
4198
7451
_ACEOF
4199
7452
rm -f conftest.$ac_objext conftest$ac_exeext
4200
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4201
 
  (eval $ac_link) 2>&5
4202
 
  ac_status=$?
4203
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204
 
  (exit $ac_status); } &&
4205
 
         { ac_try='test -s conftest$ac_exeext'
4206
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207
 
  (eval $ac_try) 2>&5
4208
 
  ac_status=$?
4209
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210
 
  (exit $ac_status); }; }; then
 
7453
if { (ac_try="$ac_link"
 
7454
case "(($ac_try" in
 
7455
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7456
  *) ac_try_echo=$ac_try;;
 
7457
esac
 
7458
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7459
  (eval "$ac_link") 2>conftest.er1
 
7460
  ac_status=$?
 
7461
  grep -v '^ *+' conftest.er1 >conftest.err
 
7462
  rm -f conftest.er1
 
7463
  cat conftest.err >&5
 
7464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7465
  (exit $ac_status); } && {
 
7466
         test -z "$ac_c_werror_flag" ||
 
7467
         test ! -s conftest.err
 
7468
       } && test -s conftest$ac_exeext &&
 
7469
       $as_test_x conftest$ac_exeext; then
4211
7470
  ac_cv_func_shmat=yes
4212
7471
else
4213
7472
  echo "$as_me: failed program was:" >&5
4214
7473
sed 's/^/| /' conftest.$ac_ext >&5
4215
7474
 
4216
 
ac_cv_func_shmat=no
4217
 
fi
4218
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4219
 
fi
4220
 
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4221
 
echo "${ECHO_T}$ac_cv_func_shmat" >&6
 
7475
        ac_cv_func_shmat=no
 
7476
fi
 
7477
 
 
7478
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7479
      conftest$ac_exeext conftest.$ac_ext
 
7480
fi
 
7481
{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
 
7482
echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
4222
7483
 
4223
7484
    if test $ac_cv_func_shmat = no; then
4224
 
      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4225
 
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
 
7485
      { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
 
7486
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
4226
7487
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4227
7488
  echo $ECHO_N "(cached) $ECHO_C" >&6
4228
7489
else
4229
7490
  ac_check_lib_save_LIBS=$LIBS
4230
7491
LIBS="-lipc  $LIBS"
4231
7492
cat >conftest.$ac_ext <<_ACEOF
4232
 
#line $LINENO "configure"
4233
7493
/* confdefs.h.  */
4234
7494
_ACEOF
4235
7495
cat confdefs.h >>conftest.$ac_ext
4236
7496
cat >>conftest.$ac_ext <<_ACEOF
4237
7497
/* end confdefs.h.  */
4238
7498
 
4239
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
7499
/* Override any GCC internal prototype to avoid an error.
 
7500
   Use char because int might match the return type of a GCC
 
7501
   builtin and then its argument prototype would still apply.  */
4240
7502
#ifdef __cplusplus
4241
7503
extern "C"
4242
7504
#endif
4243
 
/* We use char because int might match the return type of a gcc2
4244
 
   builtin and then its argument prototype would still apply.  */
4245
7505
char shmat ();
4246
7506
int
4247
7507
main ()
4248
7508
{
4249
 
shmat ();
 
7509
return shmat ();
4250
7510
  ;
4251
7511
  return 0;
4252
7512
}
4253
7513
_ACEOF
4254
7514
rm -f conftest.$ac_objext conftest$ac_exeext
4255
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4256
 
  (eval $ac_link) 2>&5
4257
 
  ac_status=$?
4258
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259
 
  (exit $ac_status); } &&
4260
 
         { ac_try='test -s conftest$ac_exeext'
4261
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262
 
  (eval $ac_try) 2>&5
4263
 
  ac_status=$?
4264
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265
 
  (exit $ac_status); }; }; then
 
7515
if { (ac_try="$ac_link"
 
7516
case "(($ac_try" in
 
7517
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7518
  *) ac_try_echo=$ac_try;;
 
7519
esac
 
7520
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7521
  (eval "$ac_link") 2>conftest.er1
 
7522
  ac_status=$?
 
7523
  grep -v '^ *+' conftest.er1 >conftest.err
 
7524
  rm -f conftest.er1
 
7525
  cat conftest.err >&5
 
7526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7527
  (exit $ac_status); } && {
 
7528
         test -z "$ac_c_werror_flag" ||
 
7529
         test ! -s conftest.err
 
7530
       } && test -s conftest$ac_exeext &&
 
7531
       $as_test_x conftest$ac_exeext; then
4266
7532
  ac_cv_lib_ipc_shmat=yes
4267
7533
else
4268
7534
  echo "$as_me: failed program was:" >&5
4269
7535
sed 's/^/| /' conftest.$ac_ext >&5
4270
7536
 
4271
 
ac_cv_lib_ipc_shmat=no
 
7537
        ac_cv_lib_ipc_shmat=no
4272
7538
fi
4273
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7539
 
 
7540
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7541
      conftest$ac_exeext conftest.$ac_ext
4274
7542
LIBS=$ac_check_lib_save_LIBS
4275
7543
fi
4276
 
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4277
 
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
 
7544
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
 
7545
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
4278
7546
if test $ac_cv_lib_ipc_shmat = yes; then
4279
7547
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4280
7548
fi
4291
7559
  # These have to be linked with before -lX11, unlike the other
4292
7560
  # libraries we check for below, so use a different variable.
4293
7561
  # John Interrante, Karl Berry
4294
 
  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4295
 
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
 
7562
  { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
 
7563
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
4296
7564
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4297
7565
  echo $ECHO_N "(cached) $ECHO_C" >&6
4298
7566
else
4299
7567
  ac_check_lib_save_LIBS=$LIBS
4300
7568
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4301
7569
cat >conftest.$ac_ext <<_ACEOF
4302
 
#line $LINENO "configure"
4303
7570
/* confdefs.h.  */
4304
7571
_ACEOF
4305
7572
cat confdefs.h >>conftest.$ac_ext
4306
7573
cat >>conftest.$ac_ext <<_ACEOF
4307
7574
/* end confdefs.h.  */
4308
7575
 
4309
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
7576
/* Override any GCC internal prototype to avoid an error.
 
7577
   Use char because int might match the return type of a GCC
 
7578
   builtin and then its argument prototype would still apply.  */
4310
7579
#ifdef __cplusplus
4311
7580
extern "C"
4312
7581
#endif
4313
 
/* We use char because int might match the return type of a gcc2
4314
 
   builtin and then its argument prototype would still apply.  */
4315
7582
char IceConnectionNumber ();
4316
7583
int
4317
7584
main ()
4318
7585
{
4319
 
IceConnectionNumber ();
 
7586
return IceConnectionNumber ();
4320
7587
  ;
4321
7588
  return 0;
4322
7589
}
4323
7590
_ACEOF
4324
7591
rm -f conftest.$ac_objext conftest$ac_exeext
4325
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4326
 
  (eval $ac_link) 2>&5
4327
 
  ac_status=$?
4328
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329
 
  (exit $ac_status); } &&
4330
 
         { ac_try='test -s conftest$ac_exeext'
4331
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4332
 
  (eval $ac_try) 2>&5
4333
 
  ac_status=$?
4334
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335
 
  (exit $ac_status); }; }; then
 
7592
if { (ac_try="$ac_link"
 
7593
case "(($ac_try" in
 
7594
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7595
  *) ac_try_echo=$ac_try;;
 
7596
esac
 
7597
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7598
  (eval "$ac_link") 2>conftest.er1
 
7599
  ac_status=$?
 
7600
  grep -v '^ *+' conftest.er1 >conftest.err
 
7601
  rm -f conftest.er1
 
7602
  cat conftest.err >&5
 
7603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7604
  (exit $ac_status); } && {
 
7605
         test -z "$ac_c_werror_flag" ||
 
7606
         test ! -s conftest.err
 
7607
       } && test -s conftest$ac_exeext &&
 
7608
       $as_test_x conftest$ac_exeext; then
4336
7609
  ac_cv_lib_ICE_IceConnectionNumber=yes
4337
7610
else
4338
7611
  echo "$as_me: failed program was:" >&5
4339
7612
sed 's/^/| /' conftest.$ac_ext >&5
4340
7613
 
4341
 
ac_cv_lib_ICE_IceConnectionNumber=no
 
7614
        ac_cv_lib_ICE_IceConnectionNumber=no
4342
7615
fi
4343
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7616
 
 
7617
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7618
      conftest$ac_exeext conftest.$ac_ext
4344
7619
LIBS=$ac_check_lib_save_LIBS
4345
7620
fi
4346
 
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4347
 
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
 
7621
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
 
7622
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
4348
7623
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4349
7624
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4350
7625
fi
4353
7628
 
4354
7629
fi
4355
7630
 
4356
 
 
4357
 
 
4358
 
# Checks for libraries.
4359
 
 
4360
 
# find individual libraries for static linking from --with-static-libs param
4361
 
# first prepend a _ so we can test even if variable is empty
4362
 
ac_cv_link_static=_${ac_cv_link_static}
 
7631
#########################################################
 
7632
#########################################################
 
7633
 
 
7634
#SCROLLKEEPER##############################################
 
7635
#########################################################
 
7636
SCROLLKEEPER_BUILD_REQUIRED=0.3.5
 
7637
 
 
7638
 
 
7639
# Extract the first word of "scrollkeeper-config", so it can be a program name with args.
 
7640
set dummy scrollkeeper-config; ac_word=$2
 
7641
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7642
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7643
if test "${ac_cv_path_SK_CONFIG+set}" = set; then
 
7644
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7645
else
 
7646
  case $SK_CONFIG in
 
7647
  [\\/]* | ?:[\\/]*)
 
7648
  ac_cv_path_SK_CONFIG="$SK_CONFIG" # Let the user override the test with a path.
 
7649
  ;;
 
7650
  *)
 
7651
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7652
for as_dir in $PATH
 
7653
do
 
7654
  IFS=$as_save_IFS
 
7655
  test -z "$as_dir" && as_dir=.
 
7656
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7657
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7658
    ac_cv_path_SK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
7659
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7660
    break 2
 
7661
  fi
 
7662
done
 
7663
done
 
7664
IFS=$as_save_IFS
 
7665
 
 
7666
  test -z "$ac_cv_path_SK_CONFIG" && ac_cv_path_SK_CONFIG="no"
 
7667
  ;;
 
7668
esac
 
7669
fi
 
7670
SK_CONFIG=$ac_cv_path_SK_CONFIG
 
7671
if test -n "$SK_CONFIG"; then
 
7672
  { echo "$as_me:$LINENO: result: $SK_CONFIG" >&5
 
7673
echo "${ECHO_T}$SK_CONFIG" >&6; }
 
7674
else
 
7675
  { echo "$as_me:$LINENO: result: no" >&5
 
7676
echo "${ECHO_T}no" >&6; }
 
7677
fi
 
7678
 
 
7679
 
 
7680
if test x$SK_CONFIG = xno; then
 
7681
  { { echo "$as_me:$LINENO: error: Couldn't find scrollkeeper-config. Please install the scrollkeeper package: http://scrollkeeper.sourceforge.net" >&5
 
7682
echo "$as_me: error: Couldn't find scrollkeeper-config. Please install the scrollkeeper package: http://scrollkeeper.sourceforge.net" >&2;}
 
7683
   { (exit 1); exit 1; }; }
 
7684
fi
 
7685
 
 
7686
# here follows a hack to get the docs installed in a separate, recursive install-doc target
 
7687
MK='';
 
7688
#########################################################
 
7689
#########################################################
 
7690
# Extract the first word of "docbook2x-man", so it can be a program name with args.
 
7691
set dummy docbook2x-man; ac_word=$2
 
7692
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7693
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7694
if test "${ac_cv_path_DOCBOOK2X_MAN+set}" = set; then
 
7695
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7696
else
 
7697
  case $DOCBOOK2X_MAN in
 
7698
  [\\/]* | ?:[\\/]*)
 
7699
  ac_cv_path_DOCBOOK2X_MAN="$DOCBOOK2X_MAN" # Let the user override the test with a path.
 
7700
  ;;
 
7701
  *)
 
7702
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7703
for as_dir in $PATH
 
7704
do
 
7705
  IFS=$as_save_IFS
 
7706
  test -z "$as_dir" && as_dir=.
 
7707
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7708
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7709
    ac_cv_path_DOCBOOK2X_MAN="$as_dir/$ac_word$ac_exec_ext"
 
7710
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7711
    break 2
 
7712
  fi
 
7713
done
 
7714
done
 
7715
IFS=$as_save_IFS
 
7716
 
 
7717
  test -z "$ac_cv_path_DOCBOOK2X_MAN" && ac_cv_path_DOCBOOK2X_MAN="no"
 
7718
  ;;
 
7719
esac
 
7720
fi
 
7721
DOCBOOK2X_MAN=$ac_cv_path_DOCBOOK2X_MAN
 
7722
if test -n "$DOCBOOK2X_MAN"; then
 
7723
  { echo "$as_me:$LINENO: result: $DOCBOOK2X_MAN" >&5
 
7724
echo "${ECHO_T}$DOCBOOK2X_MAN" >&6; }
 
7725
else
 
7726
  { echo "$as_me:$LINENO: result: no" >&5
 
7727
echo "${ECHO_T}no" >&6; }
 
7728
fi
 
7729
 
 
7730
 
 
7731
if test x$DOCBOOK2X_MAN = xno; then
 
7732
  { echo "$as_me:$LINENO: Couldn't find docbook2x-man to generate current man pages. Will try db2x_docbook2man." >&5
 
7733
echo "$as_me: Couldn't find docbook2x-man to generate current man pages. Will try db2x_docbook2man." >&6;}
 
7734
  unset ac_cv_path_DOCBOOK2X_MAN
 
7735
  # Extract the first word of "db2x_docbook2man", so it can be a program name with args.
 
7736
set dummy db2x_docbook2man; ac_word=$2
 
7737
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7738
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7739
if test "${ac_cv_path_DOCBOOK2X_MAN+set}" = set; then
 
7740
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7741
else
 
7742
  case $DOCBOOK2X_MAN in
 
7743
  [\\/]* | ?:[\\/]*)
 
7744
  ac_cv_path_DOCBOOK2X_MAN="$DOCBOOK2X_MAN" # Let the user override the test with a path.
 
7745
  ;;
 
7746
  *)
 
7747
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7748
for as_dir in $PATH
 
7749
do
 
7750
  IFS=$as_save_IFS
 
7751
  test -z "$as_dir" && as_dir=.
 
7752
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7753
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7754
    ac_cv_path_DOCBOOK2X_MAN="$as_dir/$ac_word$ac_exec_ext"
 
7755
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7756
    break 2
 
7757
  fi
 
7758
done
 
7759
done
 
7760
IFS=$as_save_IFS
 
7761
 
 
7762
  test -z "$ac_cv_path_DOCBOOK2X_MAN" && ac_cv_path_DOCBOOK2X_MAN="no"
 
7763
  ;;
 
7764
esac
 
7765
fi
 
7766
DOCBOOK2X_MAN=$ac_cv_path_DOCBOOK2X_MAN
 
7767
if test -n "$DOCBOOK2X_MAN"; then
 
7768
  { echo "$as_me:$LINENO: result: $DOCBOOK2X_MAN" >&5
 
7769
echo "${ECHO_T}$DOCBOOK2X_MAN" >&6; }
 
7770
else
 
7771
  { echo "$as_me:$LINENO: result: no" >&5
 
7772
echo "${ECHO_T}no" >&6; }
 
7773
fi
 
7774
 
 
7775
 
 
7776
fi
 
7777
if test x$DOCBOOK2X_MAN = xno; then
 
7778
  { echo "$as_me:$LINENO: Couldn't find neither docbook2x-man nor db2x_docbook2man to generate current man pages. Will install pre-generated ones if present." >&5
 
7779
echo "$as_me: Couldn't find neither docbook2x-man nor db2x_docbook2man to generate current man pages. Will install pre-generated ones if present." >&6;}
 
7780
fi
 
7781
 
 
7782
# Extract the first word of "xml2po", so it can be a program name with args.
 
7783
set dummy xml2po; ac_word=$2
 
7784
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7785
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7786
if test "${ac_cv_path_XML2PO+set}" = set; then
 
7787
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7788
else
 
7789
  case $XML2PO in
 
7790
  [\\/]* | ?:[\\/]*)
 
7791
  ac_cv_path_XML2PO="$XML2PO" # Let the user override the test with a path.
 
7792
  ;;
 
7793
  *)
 
7794
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7795
for as_dir in $PATH
 
7796
do
 
7797
  IFS=$as_save_IFS
 
7798
  test -z "$as_dir" && as_dir=.
 
7799
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7800
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7801
    ac_cv_path_XML2PO="$as_dir/$ac_word$ac_exec_ext"
 
7802
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7803
    break 2
 
7804
  fi
 
7805
done
 
7806
done
 
7807
IFS=$as_save_IFS
 
7808
 
 
7809
  test -z "$ac_cv_path_XML2PO" && ac_cv_path_XML2PO="no"
 
7810
  ;;
 
7811
esac
 
7812
fi
 
7813
XML2PO=$ac_cv_path_XML2PO
 
7814
if test -n "$XML2PO"; then
 
7815
  { echo "$as_me:$LINENO: result: $XML2PO" >&5
 
7816
echo "${ECHO_T}$XML2PO" >&6; }
 
7817
else
 
7818
  { echo "$as_me:$LINENO: result: no" >&5
 
7819
echo "${ECHO_T}no" >&6; }
 
7820
fi
 
7821
 
 
7822
 
 
7823
if test x$XML2PO = xno; then
 
7824
  { echo "$as_me:$LINENO: Couldn't find xml2po to translate current man pages. Will install pre-generated ones if present." >&5
 
7825
echo "$as_me: Couldn't find xml2po to translate current man pages. Will install pre-generated ones if present." >&6;}
 
7826
fi
 
7827
#MANPAGES###############################################
 
7828
#########################################################
 
7829
 
 
7830
#########################################################
 
7831
#########################################################
 
7832
 
 
7833
#########################################################
 
7834
########################################################
 
7835
#i18n####################################################
 
7836
#########################################################
 
7837
GETTEXT_PACKAGE=xvidcap
 
7838
 
 
7839
 
 
7840
cat >>confdefs.h <<_ACEOF
 
7841
#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
 
7842
_ACEOF
 
7843
 
 
7844
 
 
7845
ALL_LINGUAS="de en it es"
 
7846
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
7847
 
 
7848
 
 
7849
 
 
7850
 
 
7851
 
 
7852
 
 
7853
 
 
7854
 
 
7855
 
 
7856
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
7857
                  inttypes.h stdint.h unistd.h
 
7858
do
 
7859
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7860
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7861
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
7862
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
7863
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7864
else
 
7865
  cat >conftest.$ac_ext <<_ACEOF
 
7866
/* confdefs.h.  */
 
7867
_ACEOF
 
7868
cat confdefs.h >>conftest.$ac_ext
 
7869
cat >>conftest.$ac_ext <<_ACEOF
 
7870
/* end confdefs.h.  */
 
7871
$ac_includes_default
 
7872
 
 
7873
#include <$ac_header>
 
7874
_ACEOF
 
7875
rm -f conftest.$ac_objext
 
7876
if { (ac_try="$ac_compile"
 
7877
case "(($ac_try" in
 
7878
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7879
  *) ac_try_echo=$ac_try;;
 
7880
esac
 
7881
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7882
  (eval "$ac_compile") 2>conftest.er1
 
7883
  ac_status=$?
 
7884
  grep -v '^ *+' conftest.er1 >conftest.err
 
7885
  rm -f conftest.er1
 
7886
  cat conftest.err >&5
 
7887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7888
  (exit $ac_status); } && {
 
7889
         test -z "$ac_c_werror_flag" ||
 
7890
         test ! -s conftest.err
 
7891
       } && test -s conftest.$ac_objext; then
 
7892
  eval "$as_ac_Header=yes"
 
7893
else
 
7894
  echo "$as_me: failed program was:" >&5
 
7895
sed 's/^/| /' conftest.$ac_ext >&5
 
7896
 
 
7897
        eval "$as_ac_Header=no"
 
7898
fi
 
7899
 
 
7900
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7901
fi
 
7902
ac_res=`eval echo '${'$as_ac_Header'}'`
 
7903
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
7904
echo "${ECHO_T}$ac_res" >&6; }
 
7905
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
7906
  cat >>confdefs.h <<_ACEOF
 
7907
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7908
_ACEOF
 
7909
 
 
7910
fi
 
7911
 
 
7912
done
 
7913
 
 
7914
 
 
7915
# Make sure we can run config.sub.
 
7916
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
7917
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
7918
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
7919
   { (exit 1); exit 1; }; }
 
7920
 
 
7921
{ echo "$as_me:$LINENO: checking build system type" >&5
 
7922
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
 
7923
if test "${ac_cv_build+set}" = set; then
 
7924
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7925
else
 
7926
  ac_build_alias=$build_alias
 
7927
test "x$ac_build_alias" = x &&
 
7928
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
7929
test "x$ac_build_alias" = x &&
 
7930
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
7931
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
7932
   { (exit 1); exit 1; }; }
 
7933
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
7934
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
7935
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
7936
   { (exit 1); exit 1; }; }
 
7937
 
 
7938
fi
 
7939
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
7940
echo "${ECHO_T}$ac_cv_build" >&6; }
 
7941
case $ac_cv_build in
 
7942
*-*-*) ;;
 
7943
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
7944
echo "$as_me: error: invalid value of canonical build" >&2;}
 
7945
   { (exit 1); exit 1; }; };;
 
7946
esac
 
7947
build=$ac_cv_build
 
7948
ac_save_IFS=$IFS; IFS='-'
 
7949
set x $ac_cv_build
 
7950
shift
 
7951
build_cpu=$1
 
7952
build_vendor=$2
 
7953
shift; shift
 
7954
# Remember, the first character of IFS is used to create $*,
 
7955
# except with old shells:
 
7956
build_os=$*
 
7957
IFS=$ac_save_IFS
 
7958
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
7959
 
 
7960
 
 
7961
{ echo "$as_me:$LINENO: checking host system type" >&5
 
7962
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
 
7963
if test "${ac_cv_host+set}" = set; then
 
7964
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7965
else
 
7966
  if test "x$host_alias" = x; then
 
7967
  ac_cv_host=$ac_cv_build
 
7968
else
 
7969
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
7970
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
7971
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
7972
   { (exit 1); exit 1; }; }
 
7973
fi
 
7974
 
 
7975
fi
 
7976
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
7977
echo "${ECHO_T}$ac_cv_host" >&6; }
 
7978
case $ac_cv_host in
 
7979
*-*-*) ;;
 
7980
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
7981
echo "$as_me: error: invalid value of canonical host" >&2;}
 
7982
   { (exit 1); exit 1; }; };;
 
7983
esac
 
7984
host=$ac_cv_host
 
7985
ac_save_IFS=$IFS; IFS='-'
 
7986
set x $ac_cv_host
 
7987
shift
 
7988
host_cpu=$1
 
7989
host_vendor=$2
 
7990
shift; shift
 
7991
# Remember, the first character of IFS is used to create $*,
 
7992
# except with old shells:
 
7993
host_os=$*
 
7994
IFS=$ac_save_IFS
 
7995
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
7996
 
 
7997
 
 
7998
 
 
7999
 
 
8000
for ac_header in locale.h
 
8001
do
 
8002
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8003
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
8004
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8005
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
8006
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
8007
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8008
fi
 
8009
ac_res=`eval echo '${'$as_ac_Header'}'`
 
8010
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
8011
echo "${ECHO_T}$ac_res" >&6; }
 
8012
else
 
8013
  # Is the header compilable?
 
8014
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
8015
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
8016
cat >conftest.$ac_ext <<_ACEOF
 
8017
/* confdefs.h.  */
 
8018
_ACEOF
 
8019
cat confdefs.h >>conftest.$ac_ext
 
8020
cat >>conftest.$ac_ext <<_ACEOF
 
8021
/* end confdefs.h.  */
 
8022
$ac_includes_default
 
8023
#include <$ac_header>
 
8024
_ACEOF
 
8025
rm -f conftest.$ac_objext
 
8026
if { (ac_try="$ac_compile"
 
8027
case "(($ac_try" in
 
8028
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8029
  *) ac_try_echo=$ac_try;;
 
8030
esac
 
8031
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8032
  (eval "$ac_compile") 2>conftest.er1
 
8033
  ac_status=$?
 
8034
  grep -v '^ *+' conftest.er1 >conftest.err
 
8035
  rm -f conftest.er1
 
8036
  cat conftest.err >&5
 
8037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8038
  (exit $ac_status); } && {
 
8039
         test -z "$ac_c_werror_flag" ||
 
8040
         test ! -s conftest.err
 
8041
       } && test -s conftest.$ac_objext; then
 
8042
  ac_header_compiler=yes
 
8043
else
 
8044
  echo "$as_me: failed program was:" >&5
 
8045
sed 's/^/| /' conftest.$ac_ext >&5
 
8046
 
 
8047
        ac_header_compiler=no
 
8048
fi
 
8049
 
 
8050
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8051
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
8052
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
8053
 
 
8054
# Is the header present?
 
8055
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
8056
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
8057
cat >conftest.$ac_ext <<_ACEOF
 
8058
/* confdefs.h.  */
 
8059
_ACEOF
 
8060
cat confdefs.h >>conftest.$ac_ext
 
8061
cat >>conftest.$ac_ext <<_ACEOF
 
8062
/* end confdefs.h.  */
 
8063
#include <$ac_header>
 
8064
_ACEOF
 
8065
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
8066
case "(($ac_try" in
 
8067
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8068
  *) ac_try_echo=$ac_try;;
 
8069
esac
 
8070
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8071
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
8072
  ac_status=$?
 
8073
  grep -v '^ *+' conftest.er1 >conftest.err
 
8074
  rm -f conftest.er1
 
8075
  cat conftest.err >&5
 
8076
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8077
  (exit $ac_status); } >/dev/null && {
 
8078
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
8079
         test ! -s conftest.err
 
8080
       }; then
 
8081
  ac_header_preproc=yes
 
8082
else
 
8083
  echo "$as_me: failed program was:" >&5
 
8084
sed 's/^/| /' conftest.$ac_ext >&5
 
8085
 
 
8086
  ac_header_preproc=no
 
8087
fi
 
8088
 
 
8089
rm -f conftest.err conftest.$ac_ext
 
8090
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
8091
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
8092
 
 
8093
# So?  What about this header?
 
8094
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
8095
  yes:no: )
 
8096
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
8097
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
8098
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
8099
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
8100
    ac_header_preproc=yes
 
8101
    ;;
 
8102
  no:yes:* )
 
8103
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
8104
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
8105
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
8106
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
8107
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
8108
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
8109
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
8110
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
8111
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8112
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
8113
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
8114
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
8115
 
 
8116
    ;;
 
8117
esac
 
8118
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8119
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
8120
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
8121
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8122
else
 
8123
  eval "$as_ac_Header=\$ac_header_preproc"
 
8124
fi
 
8125
ac_res=`eval echo '${'$as_ac_Header'}'`
 
8126
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
8127
echo "${ECHO_T}$ac_res" >&6; }
 
8128
 
 
8129
fi
 
8130
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8131
  cat >>confdefs.h <<_ACEOF
 
8132
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8133
_ACEOF
 
8134
 
 
8135
fi
 
8136
 
 
8137
done
 
8138
 
 
8139
    if test $ac_cv_header_locale_h = yes; then
 
8140
    { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
 
8141
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
 
8142
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
 
8143
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8144
else
 
8145
  cat >conftest.$ac_ext <<_ACEOF
 
8146
/* confdefs.h.  */
 
8147
_ACEOF
 
8148
cat confdefs.h >>conftest.$ac_ext
 
8149
cat >>conftest.$ac_ext <<_ACEOF
 
8150
/* end confdefs.h.  */
 
8151
#include <locale.h>
 
8152
int
 
8153
main ()
 
8154
{
 
8155
return LC_MESSAGES
 
8156
  ;
 
8157
  return 0;
 
8158
}
 
8159
_ACEOF
 
8160
rm -f conftest.$ac_objext conftest$ac_exeext
 
8161
if { (ac_try="$ac_link"
 
8162
case "(($ac_try" in
 
8163
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8164
  *) ac_try_echo=$ac_try;;
 
8165
esac
 
8166
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8167
  (eval "$ac_link") 2>conftest.er1
 
8168
  ac_status=$?
 
8169
  grep -v '^ *+' conftest.er1 >conftest.err
 
8170
  rm -f conftest.er1
 
8171
  cat conftest.err >&5
 
8172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8173
  (exit $ac_status); } && {
 
8174
         test -z "$ac_c_werror_flag" ||
 
8175
         test ! -s conftest.err
 
8176
       } && test -s conftest$ac_exeext &&
 
8177
       $as_test_x conftest$ac_exeext; then
 
8178
  am_cv_val_LC_MESSAGES=yes
 
8179
else
 
8180
  echo "$as_me: failed program was:" >&5
 
8181
sed 's/^/| /' conftest.$ac_ext >&5
 
8182
 
 
8183
        am_cv_val_LC_MESSAGES=no
 
8184
fi
 
8185
 
 
8186
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8187
      conftest$ac_exeext conftest.$ac_ext
 
8188
fi
 
8189
{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
 
8190
echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
 
8191
    if test $am_cv_val_LC_MESSAGES = yes; then
 
8192
 
 
8193
cat >>confdefs.h <<\_ACEOF
 
8194
#define HAVE_LC_MESSAGES 1
 
8195
_ACEOF
 
8196
 
 
8197
    fi
 
8198
  fi
 
8199
         USE_NLS=yes
 
8200
 
 
8201
 
 
8202
    gt_cv_have_gettext=no
 
8203
 
 
8204
    CATOBJEXT=NONE
 
8205
    XGETTEXT=:
 
8206
    INTLLIBS=
 
8207
 
 
8208
    if test "${ac_cv_header_libintl_h+set}" = set; then
 
8209
  { echo "$as_me:$LINENO: checking for libintl.h" >&5
 
8210
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
 
8211
if test "${ac_cv_header_libintl_h+set}" = set; then
 
8212
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8213
fi
 
8214
{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 
8215
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
 
8216
else
 
8217
  # Is the header compilable?
 
8218
{ echo "$as_me:$LINENO: checking libintl.h usability" >&5
 
8219
echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
 
8220
cat >conftest.$ac_ext <<_ACEOF
 
8221
/* confdefs.h.  */
 
8222
_ACEOF
 
8223
cat confdefs.h >>conftest.$ac_ext
 
8224
cat >>conftest.$ac_ext <<_ACEOF
 
8225
/* end confdefs.h.  */
 
8226
$ac_includes_default
 
8227
#include <libintl.h>
 
8228
_ACEOF
 
8229
rm -f conftest.$ac_objext
 
8230
if { (ac_try="$ac_compile"
 
8231
case "(($ac_try" in
 
8232
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8233
  *) ac_try_echo=$ac_try;;
 
8234
esac
 
8235
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8236
  (eval "$ac_compile") 2>conftest.er1
 
8237
  ac_status=$?
 
8238
  grep -v '^ *+' conftest.er1 >conftest.err
 
8239
  rm -f conftest.er1
 
8240
  cat conftest.err >&5
 
8241
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8242
  (exit $ac_status); } && {
 
8243
         test -z "$ac_c_werror_flag" ||
 
8244
         test ! -s conftest.err
 
8245
       } && test -s conftest.$ac_objext; then
 
8246
  ac_header_compiler=yes
 
8247
else
 
8248
  echo "$as_me: failed program was:" >&5
 
8249
sed 's/^/| /' conftest.$ac_ext >&5
 
8250
 
 
8251
        ac_header_compiler=no
 
8252
fi
 
8253
 
 
8254
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8255
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
8256
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
8257
 
 
8258
# Is the header present?
 
8259
{ echo "$as_me:$LINENO: checking libintl.h presence" >&5
 
8260
echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
 
8261
cat >conftest.$ac_ext <<_ACEOF
 
8262
/* confdefs.h.  */
 
8263
_ACEOF
 
8264
cat confdefs.h >>conftest.$ac_ext
 
8265
cat >>conftest.$ac_ext <<_ACEOF
 
8266
/* end confdefs.h.  */
 
8267
#include <libintl.h>
 
8268
_ACEOF
 
8269
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
8270
case "(($ac_try" in
 
8271
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8272
  *) ac_try_echo=$ac_try;;
 
8273
esac
 
8274
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8275
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
8276
  ac_status=$?
 
8277
  grep -v '^ *+' conftest.er1 >conftest.err
 
8278
  rm -f conftest.er1
 
8279
  cat conftest.err >&5
 
8280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8281
  (exit $ac_status); } >/dev/null && {
 
8282
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
8283
         test ! -s conftest.err
 
8284
       }; then
 
8285
  ac_header_preproc=yes
 
8286
else
 
8287
  echo "$as_me: failed program was:" >&5
 
8288
sed 's/^/| /' conftest.$ac_ext >&5
 
8289
 
 
8290
  ac_header_preproc=no
 
8291
fi
 
8292
 
 
8293
rm -f conftest.err conftest.$ac_ext
 
8294
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
8295
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
8296
 
 
8297
# So?  What about this header?
 
8298
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
8299
  yes:no: )
 
8300
    { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
8301
echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
8302
    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
 
8303
echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
 
8304
    ac_header_preproc=yes
 
8305
    ;;
 
8306
  no:yes:* )
 
8307
    { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
 
8308
echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
 
8309
    { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
 
8310
echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
 
8311
    { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
 
8312
echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
 
8313
    { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
 
8314
echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
8315
    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
 
8316
echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
 
8317
    { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
 
8318
echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
 
8319
 
 
8320
    ;;
 
8321
esac
 
8322
{ echo "$as_me:$LINENO: checking for libintl.h" >&5
 
8323
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
 
8324
if test "${ac_cv_header_libintl_h+set}" = set; then
 
8325
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8326
else
 
8327
  ac_cv_header_libintl_h=$ac_header_preproc
 
8328
fi
 
8329
{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 
8330
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
 
8331
 
 
8332
fi
 
8333
if test $ac_cv_header_libintl_h = yes; then
 
8334
  gt_cv_func_dgettext_libintl="no"
 
8335
      libintl_extra_libs=""
 
8336
 
 
8337
      #
 
8338
      # First check in libc
 
8339
      #
 
8340
      { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
 
8341
echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
 
8342
if test "${gt_cv_func_ngettext_libc+set}" = set; then
 
8343
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8344
else
 
8345
  cat >conftest.$ac_ext <<_ACEOF
 
8346
/* confdefs.h.  */
 
8347
_ACEOF
 
8348
cat confdefs.h >>conftest.$ac_ext
 
8349
cat >>conftest.$ac_ext <<_ACEOF
 
8350
/* end confdefs.h.  */
 
8351
 
 
8352
#include <libintl.h>
 
8353
 
 
8354
int
 
8355
main ()
 
8356
{
 
8357
return !ngettext ("","", 1)
 
8358
  ;
 
8359
  return 0;
 
8360
}
 
8361
_ACEOF
 
8362
rm -f conftest.$ac_objext conftest$ac_exeext
 
8363
if { (ac_try="$ac_link"
 
8364
case "(($ac_try" in
 
8365
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8366
  *) ac_try_echo=$ac_try;;
 
8367
esac
 
8368
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8369
  (eval "$ac_link") 2>conftest.er1
 
8370
  ac_status=$?
 
8371
  grep -v '^ *+' conftest.er1 >conftest.err
 
8372
  rm -f conftest.er1
 
8373
  cat conftest.err >&5
 
8374
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8375
  (exit $ac_status); } && {
 
8376
         test -z "$ac_c_werror_flag" ||
 
8377
         test ! -s conftest.err
 
8378
       } && test -s conftest$ac_exeext &&
 
8379
       $as_test_x conftest$ac_exeext; then
 
8380
  gt_cv_func_ngettext_libc=yes
 
8381
else
 
8382
  echo "$as_me: failed program was:" >&5
 
8383
sed 's/^/| /' conftest.$ac_ext >&5
 
8384
 
 
8385
        gt_cv_func_ngettext_libc=no
 
8386
fi
 
8387
 
 
8388
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8389
      conftest$ac_exeext conftest.$ac_ext
 
8390
 
 
8391
fi
 
8392
{ echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
 
8393
echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
 
8394
 
 
8395
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
8396
              { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
 
8397
echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
 
8398
if test "${gt_cv_func_dgettext_libc+set}" = set; then
 
8399
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8400
else
 
8401
  cat >conftest.$ac_ext <<_ACEOF
 
8402
/* confdefs.h.  */
 
8403
_ACEOF
 
8404
cat confdefs.h >>conftest.$ac_ext
 
8405
cat >>conftest.$ac_ext <<_ACEOF
 
8406
/* end confdefs.h.  */
 
8407
 
 
8408
#include <libintl.h>
 
8409
 
 
8410
int
 
8411
main ()
 
8412
{
 
8413
return !dgettext ("","")
 
8414
  ;
 
8415
  return 0;
 
8416
}
 
8417
_ACEOF
 
8418
rm -f conftest.$ac_objext conftest$ac_exeext
 
8419
if { (ac_try="$ac_link"
 
8420
case "(($ac_try" in
 
8421
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8422
  *) ac_try_echo=$ac_try;;
 
8423
esac
 
8424
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8425
  (eval "$ac_link") 2>conftest.er1
 
8426
  ac_status=$?
 
8427
  grep -v '^ *+' conftest.er1 >conftest.err
 
8428
  rm -f conftest.er1
 
8429
  cat conftest.err >&5
 
8430
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8431
  (exit $ac_status); } && {
 
8432
         test -z "$ac_c_werror_flag" ||
 
8433
         test ! -s conftest.err
 
8434
       } && test -s conftest$ac_exeext &&
 
8435
       $as_test_x conftest$ac_exeext; then
 
8436
  gt_cv_func_dgettext_libc=yes
 
8437
else
 
8438
  echo "$as_me: failed program was:" >&5
 
8439
sed 's/^/| /' conftest.$ac_ext >&5
 
8440
 
 
8441
        gt_cv_func_dgettext_libc=no
 
8442
fi
 
8443
 
 
8444
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8445
      conftest$ac_exeext conftest.$ac_ext
 
8446
 
 
8447
fi
 
8448
{ echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
 
8449
echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
 
8450
      fi
 
8451
 
 
8452
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
8453
 
 
8454
for ac_func in bind_textdomain_codeset
 
8455
do
 
8456
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
8457
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
8458
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
8459
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
8460
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8461
else
 
8462
  cat >conftest.$ac_ext <<_ACEOF
 
8463
/* confdefs.h.  */
 
8464
_ACEOF
 
8465
cat confdefs.h >>conftest.$ac_ext
 
8466
cat >>conftest.$ac_ext <<_ACEOF
 
8467
/* end confdefs.h.  */
 
8468
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
8469
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8470
#define $ac_func innocuous_$ac_func
 
8471
 
 
8472
/* System header to define __stub macros and hopefully few prototypes,
 
8473
    which can conflict with char $ac_func (); below.
 
8474
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8475
    <limits.h> exists even on freestanding compilers.  */
 
8476
 
 
8477
#ifdef __STDC__
 
8478
# include <limits.h>
 
8479
#else
 
8480
# include <assert.h>
 
8481
#endif
 
8482
 
 
8483
#undef $ac_func
 
8484
 
 
8485
/* Override any GCC internal prototype to avoid an error.
 
8486
   Use char because int might match the return type of a GCC
 
8487
   builtin and then its argument prototype would still apply.  */
 
8488
#ifdef __cplusplus
 
8489
extern "C"
 
8490
#endif
 
8491
char $ac_func ();
 
8492
/* The GNU C library defines this for functions which it implements
 
8493
    to always fail with ENOSYS.  Some functions are actually named
 
8494
    something starting with __ and the normal name is an alias.  */
 
8495
#if defined __stub_$ac_func || defined __stub___$ac_func
 
8496
choke me
 
8497
#endif
 
8498
 
 
8499
int
 
8500
main ()
 
8501
{
 
8502
return $ac_func ();
 
8503
  ;
 
8504
  return 0;
 
8505
}
 
8506
_ACEOF
 
8507
rm -f conftest.$ac_objext conftest$ac_exeext
 
8508
if { (ac_try="$ac_link"
 
8509
case "(($ac_try" in
 
8510
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8511
  *) ac_try_echo=$ac_try;;
 
8512
esac
 
8513
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8514
  (eval "$ac_link") 2>conftest.er1
 
8515
  ac_status=$?
 
8516
  grep -v '^ *+' conftest.er1 >conftest.err
 
8517
  rm -f conftest.er1
 
8518
  cat conftest.err >&5
 
8519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8520
  (exit $ac_status); } && {
 
8521
         test -z "$ac_c_werror_flag" ||
 
8522
         test ! -s conftest.err
 
8523
       } && test -s conftest$ac_exeext &&
 
8524
       $as_test_x conftest$ac_exeext; then
 
8525
  eval "$as_ac_var=yes"
 
8526
else
 
8527
  echo "$as_me: failed program was:" >&5
 
8528
sed 's/^/| /' conftest.$ac_ext >&5
 
8529
 
 
8530
        eval "$as_ac_var=no"
 
8531
fi
 
8532
 
 
8533
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8534
      conftest$ac_exeext conftest.$ac_ext
 
8535
fi
 
8536
ac_res=`eval echo '${'$as_ac_var'}'`
 
8537
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
8538
echo "${ECHO_T}$ac_res" >&6; }
 
8539
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
8540
  cat >>confdefs.h <<_ACEOF
 
8541
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
8542
_ACEOF
 
8543
 
 
8544
fi
 
8545
done
 
8546
 
 
8547
      fi
 
8548
 
 
8549
      #
 
8550
      # If we don't have everything we want, check in libintl
 
8551
      #
 
8552
      if test "$gt_cv_func_dgettext_libc" != "yes" \
 
8553
         || test "$gt_cv_func_ngettext_libc" != "yes" \
 
8554
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 
8555
 
 
8556
        { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
 
8557
echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
 
8558
if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
 
8559
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8560
else
 
8561
  ac_check_lib_save_LIBS=$LIBS
 
8562
LIBS="-lintl  $LIBS"
 
8563
cat >conftest.$ac_ext <<_ACEOF
 
8564
/* confdefs.h.  */
 
8565
_ACEOF
 
8566
cat confdefs.h >>conftest.$ac_ext
 
8567
cat >>conftest.$ac_ext <<_ACEOF
 
8568
/* end confdefs.h.  */
 
8569
 
 
8570
/* Override any GCC internal prototype to avoid an error.
 
8571
   Use char because int might match the return type of a GCC
 
8572
   builtin and then its argument prototype would still apply.  */
 
8573
#ifdef __cplusplus
 
8574
extern "C"
 
8575
#endif
 
8576
char bindtextdomain ();
 
8577
int
 
8578
main ()
 
8579
{
 
8580
return bindtextdomain ();
 
8581
  ;
 
8582
  return 0;
 
8583
}
 
8584
_ACEOF
 
8585
rm -f conftest.$ac_objext conftest$ac_exeext
 
8586
if { (ac_try="$ac_link"
 
8587
case "(($ac_try" in
 
8588
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8589
  *) ac_try_echo=$ac_try;;
 
8590
esac
 
8591
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8592
  (eval "$ac_link") 2>conftest.er1
 
8593
  ac_status=$?
 
8594
  grep -v '^ *+' conftest.er1 >conftest.err
 
8595
  rm -f conftest.er1
 
8596
  cat conftest.err >&5
 
8597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8598
  (exit $ac_status); } && {
 
8599
         test -z "$ac_c_werror_flag" ||
 
8600
         test ! -s conftest.err
 
8601
       } && test -s conftest$ac_exeext &&
 
8602
       $as_test_x conftest$ac_exeext; then
 
8603
  ac_cv_lib_intl_bindtextdomain=yes
 
8604
else
 
8605
  echo "$as_me: failed program was:" >&5
 
8606
sed 's/^/| /' conftest.$ac_ext >&5
 
8607
 
 
8608
        ac_cv_lib_intl_bindtextdomain=no
 
8609
fi
 
8610
 
 
8611
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8612
      conftest$ac_exeext conftest.$ac_ext
 
8613
LIBS=$ac_check_lib_save_LIBS
 
8614
fi
 
8615
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
 
8616
echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
 
8617
if test $ac_cv_lib_intl_bindtextdomain = yes; then
 
8618
  { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 
8619
echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
 
8620
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 
8621
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8622
else
 
8623
  ac_check_lib_save_LIBS=$LIBS
 
8624
LIBS="-lintl  $LIBS"
 
8625
cat >conftest.$ac_ext <<_ACEOF
 
8626
/* confdefs.h.  */
 
8627
_ACEOF
 
8628
cat confdefs.h >>conftest.$ac_ext
 
8629
cat >>conftest.$ac_ext <<_ACEOF
 
8630
/* end confdefs.h.  */
 
8631
 
 
8632
/* Override any GCC internal prototype to avoid an error.
 
8633
   Use char because int might match the return type of a GCC
 
8634
   builtin and then its argument prototype would still apply.  */
 
8635
#ifdef __cplusplus
 
8636
extern "C"
 
8637
#endif
 
8638
char ngettext ();
 
8639
int
 
8640
main ()
 
8641
{
 
8642
return ngettext ();
 
8643
  ;
 
8644
  return 0;
 
8645
}
 
8646
_ACEOF
 
8647
rm -f conftest.$ac_objext conftest$ac_exeext
 
8648
if { (ac_try="$ac_link"
 
8649
case "(($ac_try" in
 
8650
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8651
  *) ac_try_echo=$ac_try;;
 
8652
esac
 
8653
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8654
  (eval "$ac_link") 2>conftest.er1
 
8655
  ac_status=$?
 
8656
  grep -v '^ *+' conftest.er1 >conftest.err
 
8657
  rm -f conftest.er1
 
8658
  cat conftest.err >&5
 
8659
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8660
  (exit $ac_status); } && {
 
8661
         test -z "$ac_c_werror_flag" ||
 
8662
         test ! -s conftest.err
 
8663
       } && test -s conftest$ac_exeext &&
 
8664
       $as_test_x conftest$ac_exeext; then
 
8665
  ac_cv_lib_intl_ngettext=yes
 
8666
else
 
8667
  echo "$as_me: failed program was:" >&5
 
8668
sed 's/^/| /' conftest.$ac_ext >&5
 
8669
 
 
8670
        ac_cv_lib_intl_ngettext=no
 
8671
fi
 
8672
 
 
8673
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8674
      conftest$ac_exeext conftest.$ac_ext
 
8675
LIBS=$ac_check_lib_save_LIBS
 
8676
fi
 
8677
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 
8678
echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
 
8679
if test $ac_cv_lib_intl_ngettext = yes; then
 
8680
  { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
 
8681
echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
 
8682
if test "${ac_cv_lib_intl_dgettext+set}" = set; then
 
8683
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8684
else
 
8685
  ac_check_lib_save_LIBS=$LIBS
 
8686
LIBS="-lintl  $LIBS"
 
8687
cat >conftest.$ac_ext <<_ACEOF
 
8688
/* confdefs.h.  */
 
8689
_ACEOF
 
8690
cat confdefs.h >>conftest.$ac_ext
 
8691
cat >>conftest.$ac_ext <<_ACEOF
 
8692
/* end confdefs.h.  */
 
8693
 
 
8694
/* Override any GCC internal prototype to avoid an error.
 
8695
   Use char because int might match the return type of a GCC
 
8696
   builtin and then its argument prototype would still apply.  */
 
8697
#ifdef __cplusplus
 
8698
extern "C"
 
8699
#endif
 
8700
char dgettext ();
 
8701
int
 
8702
main ()
 
8703
{
 
8704
return dgettext ();
 
8705
  ;
 
8706
  return 0;
 
8707
}
 
8708
_ACEOF
 
8709
rm -f conftest.$ac_objext conftest$ac_exeext
 
8710
if { (ac_try="$ac_link"
 
8711
case "(($ac_try" in
 
8712
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8713
  *) ac_try_echo=$ac_try;;
 
8714
esac
 
8715
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8716
  (eval "$ac_link") 2>conftest.er1
 
8717
  ac_status=$?
 
8718
  grep -v '^ *+' conftest.er1 >conftest.err
 
8719
  rm -f conftest.er1
 
8720
  cat conftest.err >&5
 
8721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8722
  (exit $ac_status); } && {
 
8723
         test -z "$ac_c_werror_flag" ||
 
8724
         test ! -s conftest.err
 
8725
       } && test -s conftest$ac_exeext &&
 
8726
       $as_test_x conftest$ac_exeext; then
 
8727
  ac_cv_lib_intl_dgettext=yes
 
8728
else
 
8729
  echo "$as_me: failed program was:" >&5
 
8730
sed 's/^/| /' conftest.$ac_ext >&5
 
8731
 
 
8732
        ac_cv_lib_intl_dgettext=no
 
8733
fi
 
8734
 
 
8735
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8736
      conftest$ac_exeext conftest.$ac_ext
 
8737
LIBS=$ac_check_lib_save_LIBS
 
8738
fi
 
8739
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
 
8740
echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
 
8741
if test $ac_cv_lib_intl_dgettext = yes; then
 
8742
  gt_cv_func_dgettext_libintl=yes
 
8743
fi
 
8744
 
 
8745
fi
 
8746
 
 
8747
fi
 
8748
 
 
8749
 
 
8750
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 
8751
          { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
 
8752
echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
 
8753
          { echo "$as_me:$LINENO: result: " >&5
 
8754
echo "${ECHO_T}" >&6; }
 
8755
          { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 
8756
echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
 
8757
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 
8758
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8759
else
 
8760
  ac_check_lib_save_LIBS=$LIBS
 
8761
LIBS="-lintl -liconv $LIBS"
 
8762
cat >conftest.$ac_ext <<_ACEOF
 
8763
/* confdefs.h.  */
 
8764
_ACEOF
 
8765
cat confdefs.h >>conftest.$ac_ext
 
8766
cat >>conftest.$ac_ext <<_ACEOF
 
8767
/* end confdefs.h.  */
 
8768
 
 
8769
/* Override any GCC internal prototype to avoid an error.
 
8770
   Use char because int might match the return type of a GCC
 
8771
   builtin and then its argument prototype would still apply.  */
 
8772
#ifdef __cplusplus
 
8773
extern "C"
 
8774
#endif
 
8775
char ngettext ();
 
8776
int
 
8777
main ()
 
8778
{
 
8779
return ngettext ();
 
8780
  ;
 
8781
  return 0;
 
8782
}
 
8783
_ACEOF
 
8784
rm -f conftest.$ac_objext conftest$ac_exeext
 
8785
if { (ac_try="$ac_link"
 
8786
case "(($ac_try" in
 
8787
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8788
  *) ac_try_echo=$ac_try;;
 
8789
esac
 
8790
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8791
  (eval "$ac_link") 2>conftest.er1
 
8792
  ac_status=$?
 
8793
  grep -v '^ *+' conftest.er1 >conftest.err
 
8794
  rm -f conftest.er1
 
8795
  cat conftest.err >&5
 
8796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8797
  (exit $ac_status); } && {
 
8798
         test -z "$ac_c_werror_flag" ||
 
8799
         test ! -s conftest.err
 
8800
       } && test -s conftest$ac_exeext &&
 
8801
       $as_test_x conftest$ac_exeext; then
 
8802
  ac_cv_lib_intl_ngettext=yes
 
8803
else
 
8804
  echo "$as_me: failed program was:" >&5
 
8805
sed 's/^/| /' conftest.$ac_ext >&5
 
8806
 
 
8807
        ac_cv_lib_intl_ngettext=no
 
8808
fi
 
8809
 
 
8810
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8811
      conftest$ac_exeext conftest.$ac_ext
 
8812
LIBS=$ac_check_lib_save_LIBS
 
8813
fi
 
8814
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 
8815
echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
 
8816
if test $ac_cv_lib_intl_ngettext = yes; then
 
8817
  { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
 
8818
echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
 
8819
if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
 
8820
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8821
else
 
8822
  ac_check_lib_save_LIBS=$LIBS
 
8823
LIBS="-lintl -liconv $LIBS"
 
8824
cat >conftest.$ac_ext <<_ACEOF
 
8825
/* confdefs.h.  */
 
8826
_ACEOF
 
8827
cat confdefs.h >>conftest.$ac_ext
 
8828
cat >>conftest.$ac_ext <<_ACEOF
 
8829
/* end confdefs.h.  */
 
8830
 
 
8831
/* Override any GCC internal prototype to avoid an error.
 
8832
   Use char because int might match the return type of a GCC
 
8833
   builtin and then its argument prototype would still apply.  */
 
8834
#ifdef __cplusplus
 
8835
extern "C"
 
8836
#endif
 
8837
char dcgettext ();
 
8838
int
 
8839
main ()
 
8840
{
 
8841
return dcgettext ();
 
8842
  ;
 
8843
  return 0;
 
8844
}
 
8845
_ACEOF
 
8846
rm -f conftest.$ac_objext conftest$ac_exeext
 
8847
if { (ac_try="$ac_link"
 
8848
case "(($ac_try" in
 
8849
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8850
  *) ac_try_echo=$ac_try;;
 
8851
esac
 
8852
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8853
  (eval "$ac_link") 2>conftest.er1
 
8854
  ac_status=$?
 
8855
  grep -v '^ *+' conftest.er1 >conftest.err
 
8856
  rm -f conftest.er1
 
8857
  cat conftest.err >&5
 
8858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8859
  (exit $ac_status); } && {
 
8860
         test -z "$ac_c_werror_flag" ||
 
8861
         test ! -s conftest.err
 
8862
       } && test -s conftest$ac_exeext &&
 
8863
       $as_test_x conftest$ac_exeext; then
 
8864
  ac_cv_lib_intl_dcgettext=yes
 
8865
else
 
8866
  echo "$as_me: failed program was:" >&5
 
8867
sed 's/^/| /' conftest.$ac_ext >&5
 
8868
 
 
8869
        ac_cv_lib_intl_dcgettext=no
 
8870
fi
 
8871
 
 
8872
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8873
      conftest$ac_exeext conftest.$ac_ext
 
8874
LIBS=$ac_check_lib_save_LIBS
 
8875
fi
 
8876
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
 
8877
echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
 
8878
if test $ac_cv_lib_intl_dcgettext = yes; then
 
8879
  gt_cv_func_dgettext_libintl=yes
 
8880
                        libintl_extra_libs=-liconv
 
8881
else
 
8882
  :
 
8883
fi
 
8884
 
 
8885
else
 
8886
  :
 
8887
fi
 
8888
 
 
8889
        fi
 
8890
 
 
8891
        #
 
8892
        # If we found libintl, then check in it for bind_textdomain_codeset();
 
8893
        # we'll prefer libc if neither have bind_textdomain_codeset(),
 
8894
        # and both have dgettext and ngettext
 
8895
        #
 
8896
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 
8897
          glib_save_LIBS="$LIBS"
 
8898
          LIBS="$LIBS -lintl $libintl_extra_libs"
 
8899
          unset ac_cv_func_bind_textdomain_codeset
 
8900
 
 
8901
for ac_func in bind_textdomain_codeset
 
8902
do
 
8903
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
8904
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
8905
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
8906
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
8907
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8908
else
 
8909
  cat >conftest.$ac_ext <<_ACEOF
 
8910
/* confdefs.h.  */
 
8911
_ACEOF
 
8912
cat confdefs.h >>conftest.$ac_ext
 
8913
cat >>conftest.$ac_ext <<_ACEOF
 
8914
/* end confdefs.h.  */
 
8915
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
8916
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8917
#define $ac_func innocuous_$ac_func
 
8918
 
 
8919
/* System header to define __stub macros and hopefully few prototypes,
 
8920
    which can conflict with char $ac_func (); below.
 
8921
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8922
    <limits.h> exists even on freestanding compilers.  */
 
8923
 
 
8924
#ifdef __STDC__
 
8925
# include <limits.h>
 
8926
#else
 
8927
# include <assert.h>
 
8928
#endif
 
8929
 
 
8930
#undef $ac_func
 
8931
 
 
8932
/* Override any GCC internal prototype to avoid an error.
 
8933
   Use char because int might match the return type of a GCC
 
8934
   builtin and then its argument prototype would still apply.  */
 
8935
#ifdef __cplusplus
 
8936
extern "C"
 
8937
#endif
 
8938
char $ac_func ();
 
8939
/* The GNU C library defines this for functions which it implements
 
8940
    to always fail with ENOSYS.  Some functions are actually named
 
8941
    something starting with __ and the normal name is an alias.  */
 
8942
#if defined __stub_$ac_func || defined __stub___$ac_func
 
8943
choke me
 
8944
#endif
 
8945
 
 
8946
int
 
8947
main ()
 
8948
{
 
8949
return $ac_func ();
 
8950
  ;
 
8951
  return 0;
 
8952
}
 
8953
_ACEOF
 
8954
rm -f conftest.$ac_objext conftest$ac_exeext
 
8955
if { (ac_try="$ac_link"
 
8956
case "(($ac_try" in
 
8957
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8958
  *) ac_try_echo=$ac_try;;
 
8959
esac
 
8960
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8961
  (eval "$ac_link") 2>conftest.er1
 
8962
  ac_status=$?
 
8963
  grep -v '^ *+' conftest.er1 >conftest.err
 
8964
  rm -f conftest.er1
 
8965
  cat conftest.err >&5
 
8966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8967
  (exit $ac_status); } && {
 
8968
         test -z "$ac_c_werror_flag" ||
 
8969
         test ! -s conftest.err
 
8970
       } && test -s conftest$ac_exeext &&
 
8971
       $as_test_x conftest$ac_exeext; then
 
8972
  eval "$as_ac_var=yes"
 
8973
else
 
8974
  echo "$as_me: failed program was:" >&5
 
8975
sed 's/^/| /' conftest.$ac_ext >&5
 
8976
 
 
8977
        eval "$as_ac_var=no"
 
8978
fi
 
8979
 
 
8980
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8981
      conftest$ac_exeext conftest.$ac_ext
 
8982
fi
 
8983
ac_res=`eval echo '${'$as_ac_var'}'`
 
8984
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
8985
echo "${ECHO_T}$ac_res" >&6; }
 
8986
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
8987
  cat >>confdefs.h <<_ACEOF
 
8988
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
8989
_ACEOF
 
8990
 
 
8991
fi
 
8992
done
 
8993
 
 
8994
          LIBS="$glib_save_LIBS"
 
8995
 
 
8996
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 
8997
            gt_cv_func_dgettext_libc=no
 
8998
          else
 
8999
            if test "$gt_cv_func_dgettext_libc" = "yes" \
 
9000
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
 
9001
              gt_cv_func_dgettext_libintl=no
 
9002
            fi
 
9003
          fi
 
9004
        fi
 
9005
      fi
 
9006
 
 
9007
      if test "$gt_cv_func_dgettext_libc" = "yes" \
 
9008
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
9009
        gt_cv_have_gettext=yes
 
9010
      fi
 
9011
 
 
9012
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
9013
        INTLLIBS="-lintl $libintl_extra_libs"
 
9014
      fi
 
9015
 
 
9016
      if test "$gt_cv_have_gettext" = "yes"; then
 
9017
 
 
9018
cat >>confdefs.h <<\_ACEOF
 
9019
#define HAVE_GETTEXT 1
 
9020
_ACEOF
 
9021
 
 
9022
        # Extract the first word of "msgfmt", so it can be a program name with args.
 
9023
set dummy msgfmt; ac_word=$2
 
9024
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9025
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
9026
if test "${ac_cv_path_MSGFMT+set}" = set; then
 
9027
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9028
else
 
9029
  case "$MSGFMT" in
 
9030
  /*)
 
9031
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
9032
  ;;
 
9033
  *)
 
9034
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
9035
  for ac_dir in $PATH; do
 
9036
    test -z "$ac_dir" && ac_dir=.
 
9037
    if test -f $ac_dir/$ac_word; then
 
9038
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
 
9039
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 
9040
        break
 
9041
      fi
 
9042
    fi
 
9043
  done
 
9044
  IFS="$ac_save_ifs"
 
9045
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
 
9046
  ;;
 
9047
esac
 
9048
fi
 
9049
MSGFMT="$ac_cv_path_MSGFMT"
 
9050
if test "$MSGFMT" != "no"; then
 
9051
  { echo "$as_me:$LINENO: result: $MSGFMT" >&5
 
9052
echo "${ECHO_T}$MSGFMT" >&6; }
 
9053
else
 
9054
  { echo "$as_me:$LINENO: result: no" >&5
 
9055
echo "${ECHO_T}no" >&6; }
 
9056
fi
 
9057
        if test "$MSGFMT" != "no"; then
 
9058
          glib_save_LIBS="$LIBS"
 
9059
          LIBS="$LIBS $INTLLIBS"
 
9060
 
 
9061
for ac_func in dcgettext
 
9062
do
 
9063
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9064
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
9065
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
9066
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
9067
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9068
else
 
9069
  cat >conftest.$ac_ext <<_ACEOF
 
9070
/* confdefs.h.  */
 
9071
_ACEOF
 
9072
cat confdefs.h >>conftest.$ac_ext
 
9073
cat >>conftest.$ac_ext <<_ACEOF
 
9074
/* end confdefs.h.  */
 
9075
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
9076
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9077
#define $ac_func innocuous_$ac_func
 
9078
 
 
9079
/* System header to define __stub macros and hopefully few prototypes,
 
9080
    which can conflict with char $ac_func (); below.
 
9081
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9082
    <limits.h> exists even on freestanding compilers.  */
 
9083
 
 
9084
#ifdef __STDC__
 
9085
# include <limits.h>
 
9086
#else
 
9087
# include <assert.h>
 
9088
#endif
 
9089
 
 
9090
#undef $ac_func
 
9091
 
 
9092
/* Override any GCC internal prototype to avoid an error.
 
9093
   Use char because int might match the return type of a GCC
 
9094
   builtin and then its argument prototype would still apply.  */
 
9095
#ifdef __cplusplus
 
9096
extern "C"
 
9097
#endif
 
9098
char $ac_func ();
 
9099
/* The GNU C library defines this for functions which it implements
 
9100
    to always fail with ENOSYS.  Some functions are actually named
 
9101
    something starting with __ and the normal name is an alias.  */
 
9102
#if defined __stub_$ac_func || defined __stub___$ac_func
 
9103
choke me
 
9104
#endif
 
9105
 
 
9106
int
 
9107
main ()
 
9108
{
 
9109
return $ac_func ();
 
9110
  ;
 
9111
  return 0;
 
9112
}
 
9113
_ACEOF
 
9114
rm -f conftest.$ac_objext conftest$ac_exeext
 
9115
if { (ac_try="$ac_link"
 
9116
case "(($ac_try" in
 
9117
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9118
  *) ac_try_echo=$ac_try;;
 
9119
esac
 
9120
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9121
  (eval "$ac_link") 2>conftest.er1
 
9122
  ac_status=$?
 
9123
  grep -v '^ *+' conftest.er1 >conftest.err
 
9124
  rm -f conftest.er1
 
9125
  cat conftest.err >&5
 
9126
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9127
  (exit $ac_status); } && {
 
9128
         test -z "$ac_c_werror_flag" ||
 
9129
         test ! -s conftest.err
 
9130
       } && test -s conftest$ac_exeext &&
 
9131
       $as_test_x conftest$ac_exeext; then
 
9132
  eval "$as_ac_var=yes"
 
9133
else
 
9134
  echo "$as_me: failed program was:" >&5
 
9135
sed 's/^/| /' conftest.$ac_ext >&5
 
9136
 
 
9137
        eval "$as_ac_var=no"
 
9138
fi
 
9139
 
 
9140
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9141
      conftest$ac_exeext conftest.$ac_ext
 
9142
fi
 
9143
ac_res=`eval echo '${'$as_ac_var'}'`
 
9144
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
9145
echo "${ECHO_T}$ac_res" >&6; }
 
9146
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
9147
  cat >>confdefs.h <<_ACEOF
 
9148
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
9149
_ACEOF
 
9150
 
 
9151
fi
 
9152
done
 
9153
 
 
9154
          MSGFMT_OPTS=
 
9155
          { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
 
9156
echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
 
9157
          cat >conftest.foo <<_ACEOF
 
9158
 
 
9159
msgid ""
 
9160
msgstr ""
 
9161
"Content-Type: text/plain; charset=UTF-8\n"
 
9162
"Project-Id-Version: test 1.0\n"
 
9163
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
 
9164
"Last-Translator: test <foo@bar.xx>\n"
 
9165
"Language-Team: C <LL@li.org>\n"
 
9166
"MIME-Version: 1.0\n"
 
9167
"Content-Transfer-Encoding: 8bit\n"
 
9168
 
 
9169
_ACEOF
 
9170
if { (echo "$as_me:$LINENO: msgfmt -c -o /dev/null conftest.foo") >&5
 
9171
  (msgfmt -c -o /dev/null conftest.foo) 2>&5
 
9172
  ac_status=$?
 
9173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9174
  (exit $ac_status); }; then
 
9175
  MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
 
9176
echo "${ECHO_T}yes" >&6; }
 
9177
else { echo "$as_me:$LINENO: result: no" >&5
 
9178
echo "${ECHO_T}no" >&6; }
 
9179
echo "$as_me: failed input was:" >&5
 
9180
sed 's/^/| /' conftest.foo >&5
 
9181
fi
 
9182
 
 
9183
          # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
9184
set dummy gmsgfmt; ac_word=$2
 
9185
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9186
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
9187
if test "${ac_cv_path_GMSGFMT+set}" = set; then
 
9188
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9189
else
 
9190
  case $GMSGFMT in
 
9191
  [\\/]* | ?:[\\/]*)
 
9192
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
9193
  ;;
 
9194
  *)
 
9195
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9196
for as_dir in $PATH
 
9197
do
 
9198
  IFS=$as_save_IFS
 
9199
  test -z "$as_dir" && as_dir=.
 
9200
  for ac_exec_ext in '' $ac_executable_extensions; do
 
9201
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
9202
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
9203
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9204
    break 2
 
9205
  fi
 
9206
done
 
9207
done
 
9208
IFS=$as_save_IFS
 
9209
 
 
9210
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
9211
  ;;
 
9212
esac
 
9213
fi
 
9214
GMSGFMT=$ac_cv_path_GMSGFMT
 
9215
if test -n "$GMSGFMT"; then
 
9216
  { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 
9217
echo "${ECHO_T}$GMSGFMT" >&6; }
 
9218
else
 
9219
  { echo "$as_me:$LINENO: result: no" >&5
 
9220
echo "${ECHO_T}no" >&6; }
 
9221
fi
 
9222
 
 
9223
 
 
9224
          # Extract the first word of "xgettext", so it can be a program name with args.
 
9225
set dummy xgettext; ac_word=$2
 
9226
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9227
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
9228
if test "${ac_cv_path_XGETTEXT+set}" = set; then
 
9229
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9230
else
 
9231
  case "$XGETTEXT" in
 
9232
  /*)
 
9233
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
9234
  ;;
 
9235
  *)
 
9236
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
9237
  for ac_dir in $PATH; do
 
9238
    test -z "$ac_dir" && ac_dir=.
 
9239
    if test -f $ac_dir/$ac_word; then
 
9240
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 
9241
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 
9242
        break
 
9243
      fi
 
9244
    fi
 
9245
  done
 
9246
  IFS="$ac_save_ifs"
 
9247
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
9248
  ;;
 
9249
esac
 
9250
fi
 
9251
XGETTEXT="$ac_cv_path_XGETTEXT"
 
9252
if test "$XGETTEXT" != ":"; then
 
9253
  { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 
9254
echo "${ECHO_T}$XGETTEXT" >&6; }
 
9255
else
 
9256
  { echo "$as_me:$LINENO: result: no" >&5
 
9257
echo "${ECHO_T}no" >&6; }
 
9258
fi
 
9259
 
 
9260
          cat >conftest.$ac_ext <<_ACEOF
 
9261
/* confdefs.h.  */
 
9262
_ACEOF
 
9263
cat confdefs.h >>conftest.$ac_ext
 
9264
cat >>conftest.$ac_ext <<_ACEOF
 
9265
/* end confdefs.h.  */
 
9266
 
 
9267
int
 
9268
main ()
 
9269
{
 
9270
extern int _nl_msg_cat_cntr;
 
9271
                         return _nl_msg_cat_cntr
 
9272
  ;
 
9273
  return 0;
 
9274
}
 
9275
_ACEOF
 
9276
rm -f conftest.$ac_objext conftest$ac_exeext
 
9277
if { (ac_try="$ac_link"
 
9278
case "(($ac_try" in
 
9279
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9280
  *) ac_try_echo=$ac_try;;
 
9281
esac
 
9282
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9283
  (eval "$ac_link") 2>conftest.er1
 
9284
  ac_status=$?
 
9285
  grep -v '^ *+' conftest.er1 >conftest.err
 
9286
  rm -f conftest.er1
 
9287
  cat conftest.err >&5
 
9288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9289
  (exit $ac_status); } && {
 
9290
         test -z "$ac_c_werror_flag" ||
 
9291
         test ! -s conftest.err
 
9292
       } && test -s conftest$ac_exeext &&
 
9293
       $as_test_x conftest$ac_exeext; then
 
9294
  CATOBJEXT=.gmo
 
9295
             DATADIRNAME=share
 
9296
else
 
9297
  echo "$as_me: failed program was:" >&5
 
9298
sed 's/^/| /' conftest.$ac_ext >&5
 
9299
 
 
9300
        case $host in
 
9301
            *-*-solaris*)
 
9302
                                                                { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
 
9303
echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
 
9304
if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
 
9305
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9306
else
 
9307
  cat >conftest.$ac_ext <<_ACEOF
 
9308
/* confdefs.h.  */
 
9309
_ACEOF
 
9310
cat confdefs.h >>conftest.$ac_ext
 
9311
cat >>conftest.$ac_ext <<_ACEOF
 
9312
/* end confdefs.h.  */
 
9313
/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
 
9314
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9315
#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
 
9316
 
 
9317
/* System header to define __stub macros and hopefully few prototypes,
 
9318
    which can conflict with char bind_textdomain_codeset (); below.
 
9319
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9320
    <limits.h> exists even on freestanding compilers.  */
 
9321
 
 
9322
#ifdef __STDC__
 
9323
# include <limits.h>
 
9324
#else
 
9325
# include <assert.h>
 
9326
#endif
 
9327
 
 
9328
#undef bind_textdomain_codeset
 
9329
 
 
9330
/* Override any GCC internal prototype to avoid an error.
 
9331
   Use char because int might match the return type of a GCC
 
9332
   builtin and then its argument prototype would still apply.  */
 
9333
#ifdef __cplusplus
 
9334
extern "C"
 
9335
#endif
 
9336
char bind_textdomain_codeset ();
 
9337
/* The GNU C library defines this for functions which it implements
 
9338
    to always fail with ENOSYS.  Some functions are actually named
 
9339
    something starting with __ and the normal name is an alias.  */
 
9340
#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
 
9341
choke me
 
9342
#endif
 
9343
 
 
9344
int
 
9345
main ()
 
9346
{
 
9347
return bind_textdomain_codeset ();
 
9348
  ;
 
9349
  return 0;
 
9350
}
 
9351
_ACEOF
 
9352
rm -f conftest.$ac_objext conftest$ac_exeext
 
9353
if { (ac_try="$ac_link"
 
9354
case "(($ac_try" in
 
9355
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9356
  *) ac_try_echo=$ac_try;;
 
9357
esac
 
9358
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9359
  (eval "$ac_link") 2>conftest.er1
 
9360
  ac_status=$?
 
9361
  grep -v '^ *+' conftest.er1 >conftest.err
 
9362
  rm -f conftest.er1
 
9363
  cat conftest.err >&5
 
9364
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9365
  (exit $ac_status); } && {
 
9366
         test -z "$ac_c_werror_flag" ||
 
9367
         test ! -s conftest.err
 
9368
       } && test -s conftest$ac_exeext &&
 
9369
       $as_test_x conftest$ac_exeext; then
 
9370
  ac_cv_func_bind_textdomain_codeset=yes
 
9371
else
 
9372
  echo "$as_me: failed program was:" >&5
 
9373
sed 's/^/| /' conftest.$ac_ext >&5
 
9374
 
 
9375
        ac_cv_func_bind_textdomain_codeset=no
 
9376
fi
 
9377
 
 
9378
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9379
      conftest$ac_exeext conftest.$ac_ext
 
9380
fi
 
9381
{ echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
 
9382
echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
 
9383
if test $ac_cv_func_bind_textdomain_codeset = yes; then
 
9384
  CATOBJEXT=.gmo
 
9385
               DATADIRNAME=share
 
9386
else
 
9387
  CATOBJEXT=.mo
 
9388
               DATADIRNAME=lib
 
9389
fi
 
9390
 
 
9391
            ;;
 
9392
            *)
 
9393
            CATOBJEXT=.mo
 
9394
            DATADIRNAME=lib
 
9395
            ;;
 
9396
            esac
 
9397
fi
 
9398
 
 
9399
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9400
      conftest$ac_exeext conftest.$ac_ext
 
9401
          LIBS="$glib_save_LIBS"
 
9402
          INSTOBJEXT=.mo
 
9403
        else
 
9404
          gt_cv_have_gettext=no
 
9405
        fi
 
9406
      fi
 
9407
 
 
9408
fi
 
9409
 
 
9410
 
 
9411
 
 
9412
    if test "$gt_cv_have_gettext" = "yes" ; then
 
9413
 
 
9414
cat >>confdefs.h <<\_ACEOF
 
9415
#define ENABLE_NLS 1
 
9416
_ACEOF
 
9417
 
 
9418
    fi
 
9419
 
 
9420
        if test "$XGETTEXT" != ":"; then
 
9421
                  if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 
9422
        : ;
 
9423
      else
 
9424
        { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
 
9425
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
 
9426
        XGETTEXT=":"
 
9427
      fi
 
9428
    fi
 
9429
 
 
9430
    # We need to process the po/ directory.
 
9431
    POSUB=po
 
9432
 
 
9433
    ac_config_commands="$ac_config_commands default-1"
 
9434
 
 
9435
 
 
9436
                for lang in $ALL_LINGUAS; do
 
9437
      GMOFILES="$GMOFILES $lang.gmo"
 
9438
      POFILES="$POFILES $lang.po"
 
9439
    done
 
9440
 
 
9441
 
 
9442
 
 
9443
 
 
9444
 
 
9445
 
 
9446
 
 
9447
 
 
9448
 
 
9449
 
 
9450
 
 
9451
 
 
9452
 
 
9453
   if test "$gt_cv_have_gettext" = "yes"; then
 
9454
     if test "x$ALL_LINGUAS" = "x"; then
 
9455
       LINGUAS=
 
9456
     else
 
9457
       { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
 
9458
echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
 
9459
       NEW_LINGUAS=
 
9460
       for presentlang in $ALL_LINGUAS; do
 
9461
         useit=no
 
9462
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 
9463
           desiredlanguages="$LINGUAS"
 
9464
         else
 
9465
           desiredlanguages="$ALL_LINGUAS"
 
9466
         fi
 
9467
         for desiredlang in $desiredlanguages; do
 
9468
           # Use the presentlang catalog if desiredlang is
 
9469
           #   a. equal to presentlang, or
 
9470
           #   b. a variant of presentlang (because in this case,
 
9471
           #      presentlang can be used as a fallback for messages
 
9472
           #      which are not translated in the desiredlang catalog).
 
9473
           case "$desiredlang" in
 
9474
             "$presentlang"*) useit=yes;;
 
9475
           esac
 
9476
         done
 
9477
         if test $useit = yes; then
 
9478
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 
9479
         fi
 
9480
       done
 
9481
       LINGUAS=$NEW_LINGUAS
 
9482
       { echo "$as_me:$LINENO: result: $LINGUAS" >&5
 
9483
echo "${ECHO_T}$LINGUAS" >&6; }
 
9484
     fi
 
9485
 
 
9486
          if test -n "$LINGUAS"; then
 
9487
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 
9488
     fi
 
9489
   fi
 
9490
 
 
9491
            MKINSTALLDIRS=
 
9492
   if test -n "$ac_aux_dir"; then
 
9493
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 
9494
   fi
 
9495
   if test -z "$MKINSTALLDIRS"; then
 
9496
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
9497
   fi
 
9498
 
 
9499
 
 
9500
         test -d po || mkdir po
 
9501
   if test "x$srcdir" != "x."; then
 
9502
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 
9503
       posrcprefix="$srcdir/"
 
9504
     else
 
9505
       posrcprefix="../$srcdir/"
 
9506
     fi
 
9507
   else
 
9508
     posrcprefix="../"
 
9509
   fi
 
9510
   rm -f po/POTFILES
 
9511
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 
9512
        < $srcdir/po/POTFILES.in > po/POTFILES
 
9513
 
 
9514
#########################################################
 
9515
#########################################################
 
9516
 
 
9517
 
 
9518
#PACKAGE CHECKS#############################################
 
9519
#########################################################
 
9520
 
 
9521
 
 
9522
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
9523
        if test -n "$ac_tool_prefix"; then
 
9524
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
9525
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
9526
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9527
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
9528
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
9529
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9530
else
 
9531
  case $PKG_CONFIG in
 
9532
  [\\/]* | ?:[\\/]*)
 
9533
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
9534
  ;;
 
9535
  *)
 
9536
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9537
for as_dir in $PATH
 
9538
do
 
9539
  IFS=$as_save_IFS
 
9540
  test -z "$as_dir" && as_dir=.
 
9541
  for ac_exec_ext in '' $ac_executable_extensions; do
 
9542
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
9543
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
9544
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9545
    break 2
 
9546
  fi
 
9547
done
 
9548
done
 
9549
IFS=$as_save_IFS
 
9550
 
 
9551
  ;;
 
9552
esac
 
9553
fi
 
9554
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
9555
if test -n "$PKG_CONFIG"; then
 
9556
  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
9557
echo "${ECHO_T}$PKG_CONFIG" >&6; }
 
9558
else
 
9559
  { echo "$as_me:$LINENO: result: no" >&5
 
9560
echo "${ECHO_T}no" >&6; }
 
9561
fi
 
9562
 
 
9563
 
 
9564
fi
 
9565
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
9566
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
9567
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
9568
set dummy pkg-config; ac_word=$2
 
9569
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9570
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
9571
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 
9572
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9573
else
 
9574
  case $ac_pt_PKG_CONFIG in
 
9575
  [\\/]* | ?:[\\/]*)
 
9576
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
9577
  ;;
 
9578
  *)
 
9579
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9580
for as_dir in $PATH
 
9581
do
 
9582
  IFS=$as_save_IFS
 
9583
  test -z "$as_dir" && as_dir=.
 
9584
  for ac_exec_ext in '' $ac_executable_extensions; do
 
9585
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
9586
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
9587
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9588
    break 2
 
9589
  fi
 
9590
done
 
9591
done
 
9592
IFS=$as_save_IFS
 
9593
 
 
9594
  ;;
 
9595
esac
 
9596
fi
 
9597
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
9598
if test -n "$ac_pt_PKG_CONFIG"; then
 
9599
  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 
9600
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
 
9601
else
 
9602
  { echo "$as_me:$LINENO: result: no" >&5
 
9603
echo "${ECHO_T}no" >&6; }
 
9604
fi
 
9605
 
 
9606
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
9607
    PKG_CONFIG=""
 
9608
  else
 
9609
    case $cross_compiling:$ac_tool_warned in
 
9610
yes:)
 
9611
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
9612
whose name does not start with the host triplet.  If you think this
 
9613
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
9614
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
9615
whose name does not start with the host triplet.  If you think this
 
9616
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
9617
ac_tool_warned=yes ;;
 
9618
esac
 
9619
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
9620
  fi
 
9621
else
 
9622
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
9623
fi
 
9624
 
 
9625
fi
 
9626
if test -n "$PKG_CONFIG"; then
 
9627
        _pkg_min_version=0.9.0
 
9628
        { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 
9629
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
 
9630
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
9631
                { echo "$as_me:$LINENO: result: yes" >&5
 
9632
echo "${ECHO_T}yes" >&6; }
 
9633
        else
 
9634
                { echo "$as_me:$LINENO: result: no" >&5
 
9635
echo "${ECHO_T}no" >&6; }
 
9636
                PKG_CONFIG=""
 
9637
        fi
 
9638
 
 
9639
fi
 
9640
 
 
9641
pkg_failed=no
 
9642
{ echo "$as_me:$LINENO: checking for PACKAGE" >&5
 
9643
echo $ECHO_N "checking for PACKAGE... $ECHO_C" >&6; }
 
9644
 
 
9645
if test -n "$PKG_CONFIG"; then
 
9646
    if test -n "$PACKAGE_CFLAGS"; then
 
9647
        pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
 
9648
    else
 
9649
        if test -n "$PKG_CONFIG" && \
 
9650
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.4.0 libglade-2.0 glib-2.0 gthread-2.0\"") >&5
 
9651
  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.4.0 libglade-2.0 glib-2.0 gthread-2.0") 2>&5
 
9652
  ac_status=$?
 
9653
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9654
  (exit $ac_status); }; then
 
9655
  pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4.0 libglade-2.0 glib-2.0 gthread-2.0" 2>/dev/null`
 
9656
else
 
9657
  pkg_failed=yes
 
9658
fi
 
9659
    fi
 
9660
else
 
9661
        pkg_failed=untried
 
9662
fi
 
9663
if test -n "$PKG_CONFIG"; then
 
9664
    if test -n "$PACKAGE_LIBS"; then
 
9665
        pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
 
9666
    else
 
9667
        if test -n "$PKG_CONFIG" && \
 
9668
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.4.0 libglade-2.0 glib-2.0 gthread-2.0\"") >&5
 
9669
  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.4.0 libglade-2.0 glib-2.0 gthread-2.0") 2>&5
 
9670
  ac_status=$?
 
9671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9672
  (exit $ac_status); }; then
 
9673
  pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4.0 libglade-2.0 glib-2.0 gthread-2.0" 2>/dev/null`
 
9674
else
 
9675
  pkg_failed=yes
 
9676
fi
 
9677
    fi
 
9678
else
 
9679
        pkg_failed=untried
 
9680
fi
 
9681
 
 
9682
 
 
9683
 
 
9684
if test $pkg_failed = yes; then
 
9685
 
 
9686
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
9687
        _pkg_short_errors_supported=yes
 
9688
else
 
9689
        _pkg_short_errors_supported=no
 
9690
fi
 
9691
        if test $_pkg_short_errors_supported = yes; then
 
9692
                PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4.0 libglade-2.0 glib-2.0 gthread-2.0"`
 
9693
        else
 
9694
                PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4.0 libglade-2.0 glib-2.0 gthread-2.0"`
 
9695
        fi
 
9696
        # Put the nasty error message in config.log where it belongs
 
9697
        echo "$PACKAGE_PKG_ERRORS" >&5
 
9698
 
 
9699
        { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0 >= 2.4.0 libglade-2.0 glib-2.0 gthread-2.0) were not met:
 
9700
 
 
9701
$PACKAGE_PKG_ERRORS
 
9702
 
 
9703
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
9704
installed software in a non-standard prefix.
 
9705
 
 
9706
Alternatively, you may set the environment variables PACKAGE_CFLAGS
 
9707
and PACKAGE_LIBS to avoid the need to call pkg-config.
 
9708
See the pkg-config man page for more details.
 
9709
" >&5
 
9710
echo "$as_me: error: Package requirements (gtk+-2.0 >= 2.4.0 libglade-2.0 glib-2.0 gthread-2.0) were not met:
 
9711
 
 
9712
$PACKAGE_PKG_ERRORS
 
9713
 
 
9714
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
9715
installed software in a non-standard prefix.
 
9716
 
 
9717
Alternatively, you may set the environment variables PACKAGE_CFLAGS
 
9718
and PACKAGE_LIBS to avoid the need to call pkg-config.
 
9719
See the pkg-config man page for more details.
 
9720
" >&2;}
 
9721
   { (exit 1); exit 1; }; }
 
9722
elif test $pkg_failed = untried; then
 
9723
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
9724
is in your PATH or set the PKG_CONFIG environment variable to the full
 
9725
path to pkg-config.
 
9726
 
 
9727
Alternatively, you may set the environment variables PACKAGE_CFLAGS
 
9728
and PACKAGE_LIBS to avoid the need to call pkg-config.
 
9729
See the pkg-config man page for more details.
 
9730
 
 
9731
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
9732
See \`config.log' for more details." >&5
 
9733
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
9734
is in your PATH or set the PKG_CONFIG environment variable to the full
 
9735
path to pkg-config.
 
9736
 
 
9737
Alternatively, you may set the environment variables PACKAGE_CFLAGS
 
9738
and PACKAGE_LIBS to avoid the need to call pkg-config.
 
9739
See the pkg-config man page for more details.
 
9740
 
 
9741
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
9742
See \`config.log' for more details." >&2;}
 
9743
   { (exit 1); exit 1; }; }
 
9744
else
 
9745
        PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS
 
9746
        PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
 
9747
        { echo "$as_me:$LINENO: result: yes" >&5
 
9748
echo "${ECHO_T}yes" >&6; }
 
9749
        :
 
9750
fi
 
9751
if test -n "$PKG_CONFIG" && \
 
9752
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 dbus-glib-1\"") >&5
 
9753
  ($PKG_CONFIG --exists --print-errors "dbus-1 dbus-glib-1") 2>&5
 
9754
  ac_status=$?
 
9755
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9756
  (exit $ac_status); }; then
 
9757
  ac_my_dbus_usable=yes
 
9758
else
 
9759
  ac_my_dbus_usable=no
 
9760
fi
 
9761
if ( test x${ac_my_dbus_usable} = "xyes" ) ; then
 
9762
        if test -n "$PKG_CONFIG"; then
 
9763
    if test -n "$dbus_CFLAGS"; then
 
9764
        pkg_cv_dbus_CFLAGS="$dbus_CFLAGS"
 
9765
    else
 
9766
        if test -n "$PKG_CONFIG" && \
 
9767
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 dbus-glib-1\"") >&5
 
9768
  ($PKG_CONFIG --exists --print-errors "dbus-1 dbus-glib-1") 2>&5
 
9769
  ac_status=$?
 
9770
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9771
  (exit $ac_status); }; then
 
9772
  pkg_cv_dbus_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 dbus-glib-1" 2>/dev/null`
 
9773
else
 
9774
  pkg_failed=yes
 
9775
fi
 
9776
    fi
 
9777
else
 
9778
        pkg_failed=untried
 
9779
fi
 
9780
        PACKAGE_CFLAGS="${PACKAGE_CFLAGS} ${pkg_cv_dbus_CFLAGS}"
 
9781
        if test -n "$PKG_CONFIG"; then
 
9782
    if test -n "$dbus_LIBS"; then
 
9783
        pkg_cv_dbus_LIBS="$dbus_LIBS"
 
9784
    else
 
9785
        if test -n "$PKG_CONFIG" && \
 
9786
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 dbus-glib-1\"") >&5
 
9787
  ($PKG_CONFIG --exists --print-errors "dbus-1 dbus-glib-1") 2>&5
 
9788
  ac_status=$?
 
9789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9790
  (exit $ac_status); }; then
 
9791
  pkg_cv_dbus_LIBS=`$PKG_CONFIG --libs "dbus-1 dbus-glib-1" 2>/dev/null`
 
9792
else
 
9793
  pkg_failed=yes
 
9794
fi
 
9795
    fi
 
9796
else
 
9797
        pkg_failed=untried
 
9798
fi
 
9799
        PACKAGE_LIBS="${PACKAGE_LIBS} ${pkg_cv_dbus_LIBS}"
 
9800
fi
 
9801
 
 
9802
 
 
9803
 
 
9804
 
 
9805
#########################################################
 
9806
#########################################################
 
9807
 
 
9808
 
 
9809
 
 
9810
#########################################################
 
9811
#########################################################
 
9812
# fist remove symlinks in ffmpeg dir
 
9813
# these symlinks are needed for static linking, but make dynamic
 
9814
# linking fail if you first configured with static and then with
 
9815
# dynamic ffmpeg
 
9816
#########################################################
 
9817
rm ffmpeg/adler32.h >/dev/null 2>&1 || echo "" > /dev/null
 
9818
rm ffmpeg/avcodec.h >/dev/null 2>&1 || echo "" > /dev/null
 
9819
rm ffmpeg/avutil.h >/dev/null 2>&1 || echo "" > /dev/null
 
9820
rm ffmpeg/common.h >/dev/null 2>&1 || echo "" > /dev/null
 
9821
rm ffmpeg/dsputil.h >/dev/null 2>&1 || echo "" > /dev/null
 
9822
rm ffmpeg/integer.h >/dev/null 2>&1 || echo "" > /dev/null
 
9823
rm ffmpeg/intfloat_readwrite.h >/dev/null 2>&1 || echo "" > /dev/null
 
9824
rm ffmpeg/log.h >/dev/null 2>&1 || echo "" > /dev/null
 
9825
rm ffmpeg/mathematics.h >/dev/null 2>&1 || echo "" > /dev/null
 
9826
rm ffmpeg/md5.h >/dev/null 2>&1 || echo "" > /dev/null
 
9827
rm ffmpeg/rational.h >/dev/null 2>&1 || echo "" > /dev/null
 
9828
rm ffmpeg/avformat.h >/dev/null 2>&1 || echo "" > /dev/null
 
9829
rm ffmpeg/avio.h >/dev/null 2>&1 || echo "" > /dev/null
 
9830
rm ffmpeg/rtp.h >/dev/null 2>&1 || echo "" > /dev/null
 
9831
rm ffmpeg/rtsp.h >/dev/null 2>&1 || echo "" > /dev/null
 
9832
rm ffmpeg/rtspcodes.h >/dev/null 2>&1 || echo "" > /dev/null
 
9833
rm ffmpeg/rtp_h264.h >/dev/null 2>&1 || echo "" > /dev/null
 
9834
rm ffmpeg/rtp_internal.h >/dev/null 2>&1 || echo "" > /dev/null
 
9835
rm ffmpeg/fifo.h >/dev/null 2>&1 || echo "" > /dev/null
 
9836
rm ffmpeg/swscale.h >/dev/null 2>&1 || echo "" > /dev/null
 
9837
rm ffmpeg/rgb2rgb.h >/dev/null 2>&1 || echo "" > /dev/null
 
9838
#########################################################
 
9839
#########################################################
 
9840
 
 
9841
 
 
9842
#########################################################
 
9843
#########################################################
 
9844
# define macro
 
9845
# AC_CHECK_LIB_STATIC(LIBRARY, FUNCTION,
 
9846
#                       [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND],
 
9847
#                       [OTHER-LIBRARIES])
 
9848
#########################################################
 
9849
 
 
9850
# set defaults for ld parameters to trigger static/dynamic linking
 
9851
# they should be adapted prior to calling this function
 
9852
 
 
9853
ac_my_static_ld="-Wl,-Bstatic"
 
9854
ac_my_dynamic_ld="-Wl,-Bdynamic"
 
9855
 
 
9856
# Use a cache variable name containing both the library and function name,
 
9857
# because the test really is for library $1 defining function $2, not
 
9858
# just for library $1. Separate tests with the same $1 and different $2s
 
9859
# may have different results.
 
9860
 
 
9861
# Note that using directly AS_VAR_PUSHDEF([ac_Lib], [ac_cv_lib_$1_$2])
 
9862
# is asking for troubles, since AC_CHECK_LIB($lib, fun) would give
 
9863
# ac_cv_lib_$lib_fun, which is definitely not what was meant. Hence
 
9864
# the AS_LITERAL_IF indirection.
 
9865
 
 
9866
# FIXME: This macro is extremely suspicious.  It DEFINEs unconditionally,
 
9867
# whatever the FUNCTION, in addition to not being a *S macro. Note
 
9868
# that the cache does depend upon the function we are looking for.
 
9869
 
 
9870
# It is on purpose we used `ac_check_lib_save_LIBS' and not just
 
9871
# `ac_save_LIBS': there are many macros which don't want to see `LIBS'
 
9872
# changed but still want to use AC_CHECK_LIB, so they save `LIBS'.
 
9873
# And ``ac_save_LIBS' is too tempting a name, so let's leave them some
 
9874
# freedom.
 
9875
 
 
9876
# AC_CHECK_LIB_STATIC
 
9877
#########################################################
 
9878
#########################################################
 
9879
 
 
9880
 
 
9881
#########################################################
 
9882
#########################################################
 
9883
# find operating system
 
9884
# can't do that with other Makefile defines because I need OS specific
 
9885
# ld params for testing
 
9886
#########################################################
 
9887
 
 
9888
 
 
9889
if test x`(uname -s)` = xSunOS; then
 
9890
  SOLARIS_TRUE=
 
9891
  SOLARIS_FALSE='#'
 
9892
else
 
9893
  SOLARIS_TRUE='#'
 
9894
  SOLARIS_FALSE=
 
9895
fi
 
9896
 
 
9897
 
 
9898
 
 
9899
if test x`(uname -s)` = xLinux; then
 
9900
  LINUX_TRUE=
 
9901
  LINUX_FALSE='#'
 
9902
else
 
9903
  LINUX_TRUE='#'
 
9904
  LINUX_FALSE=
 
9905
fi
 
9906
 
 
9907
 
 
9908
 
 
9909
if test x`(uname -s)` = xHP-UX; then
 
9910
  HPUX_TRUE=
 
9911
  HPUX_FALSE='#'
 
9912
else
 
9913
  HPUX_TRUE='#'
 
9914
  HPUX_FALSE=
 
9915
fi
 
9916
 
 
9917
if ( test x${HPUX_TRUE} = x ) ; then
 
9918
        ac_my_static_ld="-a archive"
 
9919
        ac_my_dynamic_ld="-a default"
 
9920
else
 
9921
        ac_my_static_ld="-Wl,-Bstatic"
 
9922
        ac_my_dynamic_ld="-Wl,-Bdynamic"
 
9923
fi
 
9924
 
 
9925
 
 
9926
if test x`(uname -s)` = xFreeBSD; then
 
9927
  FREEBSD_TRUE=
 
9928
  FREEBSD_FALSE='#'
 
9929
else
 
9930
  FREEBSD_TRUE='#'
 
9931
  FREEBSD_FALSE=
 
9932
fi
 
9933
 
 
9934
#########################################################
 
9935
#########################################################
 
9936
 
 
9937
 
 
9938
#########################################################
 
9939
#########################################################
 
9940
# user options
 
9941
#########################################################
 
9942
 
 
9943
# Check whether --with-forced-embedded-ffmpeg was given.
 
9944
if test "${with_forced_embedded_ffmpeg+set}" = set; then
 
9945
  withval=$with_forced_embedded_ffmpeg; ac_cv_with_embedded_ffmpeg=$withval
 
9946
else
 
9947
  ac_cv_with_embedded_ffmpeg=yes
 
9948
fi
 
9949
 
4363
9950
 
4364
9951
# set static_avcodec = yes if avcodec is in
4365
 
static_avcodec=`echo $ac_cv_link_static | ${AWK} '/avcodec/{print "yes"}'`
 
9952
static_avcodec=${ac_cv_with_embedded_ffmpeg}
4366
9953
 
4367
 
# if avcodec is static, avformat is, too.
 
9954
# if avcodec is static, avformat and avutil are, too.
4368
9955
test x$static_avcodec = xyes && static_avformat=yes
4369
 
 
4370
 
# remove avcodec from list of static libs
4371
 
ac_cv_link_static=`echo $ac_cv_link_static | sed 's/avcodec//g'`
4372
 
 
4373
 
# continue with other libs
4374
 
static_jpeg=`echo $ac_cv_link_static | ${AWK} '/jpeg/{print "yes"}'`
4375
 
ac_cv_link_static=`echo $ac_cv_link_static | sed 's/jpeg//g'`
4376
 
static_png=`echo $ac_cv_link_static | ${AWK} '/png/{print "yes"}'`
4377
 
ac_cv_link_static=`echo $ac_cv_link_static | sed 's/png//g'`
4378
 
static_z=`echo $ac_cv_link_static | ${AWK} '/z/{print "yes"}'`
4379
 
 
4380
 
#
4381
 
#
4382
 
# try these libs statically first, if user choses so
4383
 
# if $static_z = yes, try static lib. if not or static link fails, try dynamic
4384
 
 
4385
 
 
4386
 
 
4387
 
if test x$static_z = xyes; then
4388
 
 
4389
 
echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
4390
 
echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
4391
 
if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
4392
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4393
 
else
4394
 
 
4395
 
echo -n "(static?) ... "
4396
 
ac_check_lib_save_LIBS=$LIBS
4397
 
LIBS="-Wl,-Bstatic -lz -Wl,-Bdynamic  $LIBS"
4398
 
cat >conftest.$ac_ext <<_ACEOF
4399
 
#line $LINENO "configure"
4400
 
/* confdefs.h.  */
4401
 
_ACEOF
4402
 
cat confdefs.h >>conftest.$ac_ext
4403
 
cat >>conftest.$ac_ext <<_ACEOF
4404
 
/* end confdefs.h.  */
4405
 
 
4406
 
/* Override any gcc2 internal prototype to avoid an error.  */
4407
 
#ifdef __cplusplus
4408
 
extern "C"
4409
 
#endif
4410
 
/* We use char because int might match the return type of a gcc2
4411
 
   builtin and then its argument prototype would still apply.  */
4412
 
char zlibVersion ();
4413
 
int
4414
 
main ()
4415
 
{
4416
 
zlibVersion ();
4417
 
  ;
4418
 
  return 0;
4419
 
}
4420
 
_ACEOF
4421
 
rm -f conftest.$ac_objext conftest$ac_exeext
4422
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4423
 
  (eval $ac_link) 2>&5
4424
 
  ac_status=$?
4425
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426
 
  (exit $ac_status); } &&
4427
 
         { ac_try='test -s conftest$ac_exeext'
4428
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429
 
  (eval $ac_try) 2>&5
4430
 
  ac_status=$?
4431
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432
 
  (exit $ac_status); }; }; then
4433
 
  ac_cv_lib_z_zlibVersion=yes
4434
 
else
4435
 
  echo "$as_me: failed program was:" >&5
4436
 
sed 's/^/| /' conftest.$ac_ext >&5
4437
 
 
4438
 
ac_cv_lib_z_zlibVersion=no
4439
 
fi
4440
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4441
 
LIBS=$ac_check_lib_save_LIBS
4442
 
 
4443
 
fi
4444
 
echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
4445
 
echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
4446
 
else
4447
 
  ac_cv_lib_z_zlibVersion=no
4448
 
fi
4449
 
 
4450
 
if test $ac_cv_lib_z_zlibVersion = yes; then
4451
 
  cat >>confdefs.h <<_ACEOF
4452
 
#define HAVE_LIBZ 1
4453
 
_ACEOF
4454
 
 
4455
 
  LIBS="-Wl,-Bstatic -lz -Wl,-Bdynamic $LIBS"
4456
 
 
4457
 
else
4458
 
  unset ac_cv_lib_z_zlibVersion ; static_z=no ;
4459
 
echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
4460
 
echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
4461
 
if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
4462
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4463
 
else
4464
 
  ac_check_lib_save_LIBS=$LIBS
4465
 
LIBS="-lz  $LIBS"
4466
 
cat >conftest.$ac_ext <<_ACEOF
4467
 
#line $LINENO "configure"
4468
 
/* confdefs.h.  */
4469
 
_ACEOF
4470
 
cat confdefs.h >>conftest.$ac_ext
4471
 
cat >>conftest.$ac_ext <<_ACEOF
4472
 
/* end confdefs.h.  */
4473
 
 
4474
 
/* Override any gcc2 internal prototype to avoid an error.  */
4475
 
#ifdef __cplusplus
4476
 
extern "C"
4477
 
#endif
4478
 
/* We use char because int might match the return type of a gcc2
4479
 
   builtin and then its argument prototype would still apply.  */
4480
 
char zlibVersion ();
4481
 
int
4482
 
main ()
4483
 
{
4484
 
zlibVersion ();
4485
 
  ;
4486
 
  return 0;
4487
 
}
4488
 
_ACEOF
4489
 
rm -f conftest.$ac_objext conftest$ac_exeext
4490
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4491
 
  (eval $ac_link) 2>&5
4492
 
  ac_status=$?
4493
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494
 
  (exit $ac_status); } &&
4495
 
         { ac_try='test -s conftest$ac_exeext'
4496
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497
 
  (eval $ac_try) 2>&5
4498
 
  ac_status=$?
4499
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500
 
  (exit $ac_status); }; }; then
4501
 
  ac_cv_lib_z_zlibVersion=yes
4502
 
else
4503
 
  echo "$as_me: failed program was:" >&5
4504
 
sed 's/^/| /' conftest.$ac_ext >&5
4505
 
 
4506
 
ac_cv_lib_z_zlibVersion=no
4507
 
fi
4508
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4509
 
LIBS=$ac_check_lib_save_LIBS
4510
 
fi
4511
 
echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
4512
 
echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
4513
 
if test $ac_cv_lib_z_zlibVersion = yes; then
4514
 
  cat >>confdefs.h <<_ACEOF
4515
 
#define HAVE_LIBZ 1
4516
 
_ACEOF
4517
 
 
4518
 
  LIBS="-lz $LIBS"
4519
 
 
4520
 
fi
 
9956
test x$static_avcodec = xyes && static_avutil=yes
 
9957
 
 
9958
# Check whether --enable-libmp3lame was given.
 
9959
if test "${enable_libmp3lame+set}" = set; then
 
9960
  enableval=$enable_libmp3lame; ac_cv_enable_libmp3lame=$enableval
 
9961
else
 
9962
  ac_cv_enable_libmp3lame=yes
 
9963
fi
 
9964
 
 
9965
# Check whether --enable-libtheora was given.
 
9966
if test "${enable_libtheora+set}" = set; then
 
9967
  enableval=$enable_libtheora; ac_cv_enable_libtheora=$enableval
 
9968
else
 
9969
  ac_cv_enable_libtheora=no
 
9970
fi
 
9971
 
 
9972
#########################################################
 
9973
#########################################################
 
9974
 
 
9975
 
 
9976
#########################################################
 
9977
#########################################################
 
9978
# Checks for libraries.
 
9979
#########################################################
 
9980
 
 
9981
#########################################################
 
9982
# X11 libraries
 
9983
#########################################################
 
9984
 
 
9985
if test "x${ac_cv_have_x}" = "x" ; then
 
9986
    echo "xvidcap needs X11 runtime and build environment"
 
9987
    exit 1
 
9988
fi
 
9989
 
 
9990
# first check for Xmu without tweaking, then in X11 paths
 
9991
 
 
9992
{ echo "$as_me:$LINENO: checking for XmuClientWindow in -lXmu" >&5
 
9993
echo $ECHO_N "checking for XmuClientWindow in -lXmu... $ECHO_C" >&6; }
 
9994
if test "${ac_cv_lib_Xmu_XmuClientWindow+set}" = set; then
 
9995
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9996
else
 
9997
  ac_check_lib_save_LIBS=$LIBS
 
9998
LIBS="-lXmu  $LIBS"
 
9999
cat >conftest.$ac_ext <<_ACEOF
 
10000
/* confdefs.h.  */
 
10001
_ACEOF
 
10002
cat confdefs.h >>conftest.$ac_ext
 
10003
cat >>conftest.$ac_ext <<_ACEOF
 
10004
/* end confdefs.h.  */
 
10005
 
 
10006
/* Override any GCC internal prototype to avoid an error.
 
10007
   Use char because int might match the return type of a GCC
 
10008
   builtin and then its argument prototype would still apply.  */
 
10009
#ifdef __cplusplus
 
10010
extern "C"
 
10011
#endif
 
10012
char XmuClientWindow ();
 
10013
int
 
10014
main ()
 
10015
{
 
10016
return XmuClientWindow ();
 
10017
  ;
 
10018
  return 0;
 
10019
}
 
10020
_ACEOF
 
10021
rm -f conftest.$ac_objext conftest$ac_exeext
 
10022
if { (ac_try="$ac_link"
 
10023
case "(($ac_try" in
 
10024
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10025
  *) ac_try_echo=$ac_try;;
 
10026
esac
 
10027
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10028
  (eval "$ac_link") 2>conftest.er1
 
10029
  ac_status=$?
 
10030
  grep -v '^ *+' conftest.er1 >conftest.err
 
10031
  rm -f conftest.er1
 
10032
  cat conftest.err >&5
 
10033
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10034
  (exit $ac_status); } && {
 
10035
         test -z "$ac_c_werror_flag" ||
 
10036
         test ! -s conftest.err
 
10037
       } && test -s conftest$ac_exeext &&
 
10038
       $as_test_x conftest$ac_exeext; then
 
10039
  ac_cv_lib_Xmu_XmuClientWindow=yes
 
10040
else
 
10041
  echo "$as_me: failed program was:" >&5
 
10042
sed 's/^/| /' conftest.$ac_ext >&5
 
10043
 
 
10044
        ac_cv_lib_Xmu_XmuClientWindow=no
 
10045
fi
 
10046
 
 
10047
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10048
      conftest$ac_exeext conftest.$ac_ext
 
10049
LIBS=$ac_check_lib_save_LIBS
 
10050
fi
 
10051
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuClientWindow" >&5
 
10052
echo "${ECHO_T}$ac_cv_lib_Xmu_XmuClientWindow" >&6; }
 
10053
if test $ac_cv_lib_Xmu_XmuClientWindow = yes; then
 
10054
  cat >>confdefs.h <<_ACEOF
 
10055
#define HAVE_LIBXMU 1
 
10056
_ACEOF
 
10057
 
 
10058
  LIBS="-lXmu $LIBS"
 
10059
 
 
10060
else
 
10061
  unset ac_cv_lib_Xmu_XmuClientWindow; echo "Couldn't find libXmu in LD_LIBRARY_PATH, checking X11 paths"; { echo "$as_me:$LINENO: checking for XmuClientWindow in -lXmu" >&5
 
10062
echo $ECHO_N "checking for XmuClientWindow in -lXmu... $ECHO_C" >&6; }
 
10063
if test "${ac_cv_lib_Xmu_XmuClientWindow+set}" = set; then
 
10064
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10065
else
 
10066
  ac_check_lib_save_LIBS=$LIBS
 
10067
LIBS="-lXmu -L${ac_x_libraries} $LIBS"
 
10068
cat >conftest.$ac_ext <<_ACEOF
 
10069
/* confdefs.h.  */
 
10070
_ACEOF
 
10071
cat confdefs.h >>conftest.$ac_ext
 
10072
cat >>conftest.$ac_ext <<_ACEOF
 
10073
/* end confdefs.h.  */
 
10074
 
 
10075
/* Override any GCC internal prototype to avoid an error.
 
10076
   Use char because int might match the return type of a GCC
 
10077
   builtin and then its argument prototype would still apply.  */
 
10078
#ifdef __cplusplus
 
10079
extern "C"
 
10080
#endif
 
10081
char XmuClientWindow ();
 
10082
int
 
10083
main ()
 
10084
{
 
10085
return XmuClientWindow ();
 
10086
  ;
 
10087
  return 0;
 
10088
}
 
10089
_ACEOF
 
10090
rm -f conftest.$ac_objext conftest$ac_exeext
 
10091
if { (ac_try="$ac_link"
 
10092
case "(($ac_try" in
 
10093
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10094
  *) ac_try_echo=$ac_try;;
 
10095
esac
 
10096
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10097
  (eval "$ac_link") 2>conftest.er1
 
10098
  ac_status=$?
 
10099
  grep -v '^ *+' conftest.er1 >conftest.err
 
10100
  rm -f conftest.er1
 
10101
  cat conftest.err >&5
 
10102
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10103
  (exit $ac_status); } && {
 
10104
         test -z "$ac_c_werror_flag" ||
 
10105
         test ! -s conftest.err
 
10106
       } && test -s conftest$ac_exeext &&
 
10107
       $as_test_x conftest$ac_exeext; then
 
10108
  ac_cv_lib_Xmu_XmuClientWindow=yes
 
10109
else
 
10110
  echo "$as_me: failed program was:" >&5
 
10111
sed 's/^/| /' conftest.$ac_ext >&5
 
10112
 
 
10113
        ac_cv_lib_Xmu_XmuClientWindow=no
 
10114
fi
 
10115
 
 
10116
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10117
      conftest$ac_exeext conftest.$ac_ext
 
10118
LIBS=$ac_check_lib_save_LIBS
 
10119
fi
 
10120
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuClientWindow" >&5
 
10121
echo "${ECHO_T}$ac_cv_lib_Xmu_XmuClientWindow" >&6; }
 
10122
if test $ac_cv_lib_Xmu_XmuClientWindow = yes; then
 
10123
  LDFLAGS="${LDFLAGS} -L${ac_x_libraries} -Xlinker -R${ac_x_libraries}"; LIBS="${LIBS} -lXmu"
 
10124
else
 
10125
  echo "libXmu required for drawing the frame around the area to capture" && exit 1
 
10126
fi
 
10127
 
 
10128
fi
 
10129
 
 
10130
 
 
10131
# first check for Xfixes without tweaking, then in X11 paths
 
10132
 
 
10133
{ echo "$as_me:$LINENO: checking for XFixesGetCursorImage in -lXfixes" >&5
 
10134
echo $ECHO_N "checking for XFixesGetCursorImage in -lXfixes... $ECHO_C" >&6; }
 
10135
if test "${ac_cv_lib_Xfixes_XFixesGetCursorImage+set}" = set; then
 
10136
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10137
else
 
10138
  ac_check_lib_save_LIBS=$LIBS
 
10139
LIBS="-lXfixes  $LIBS"
 
10140
cat >conftest.$ac_ext <<_ACEOF
 
10141
/* confdefs.h.  */
 
10142
_ACEOF
 
10143
cat confdefs.h >>conftest.$ac_ext
 
10144
cat >>conftest.$ac_ext <<_ACEOF
 
10145
/* end confdefs.h.  */
 
10146
 
 
10147
/* Override any GCC internal prototype to avoid an error.
 
10148
   Use char because int might match the return type of a GCC
 
10149
   builtin and then its argument prototype would still apply.  */
 
10150
#ifdef __cplusplus
 
10151
extern "C"
 
10152
#endif
 
10153
char XFixesGetCursorImage ();
 
10154
int
 
10155
main ()
 
10156
{
 
10157
return XFixesGetCursorImage ();
 
10158
  ;
 
10159
  return 0;
 
10160
}
 
10161
_ACEOF
 
10162
rm -f conftest.$ac_objext conftest$ac_exeext
 
10163
if { (ac_try="$ac_link"
 
10164
case "(($ac_try" in
 
10165
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10166
  *) ac_try_echo=$ac_try;;
 
10167
esac
 
10168
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10169
  (eval "$ac_link") 2>conftest.er1
 
10170
  ac_status=$?
 
10171
  grep -v '^ *+' conftest.er1 >conftest.err
 
10172
  rm -f conftest.er1
 
10173
  cat conftest.err >&5
 
10174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10175
  (exit $ac_status); } && {
 
10176
         test -z "$ac_c_werror_flag" ||
 
10177
         test ! -s conftest.err
 
10178
       } && test -s conftest$ac_exeext &&
 
10179
       $as_test_x conftest$ac_exeext; then
 
10180
  ac_cv_lib_Xfixes_XFixesGetCursorImage=yes
 
10181
else
 
10182
  echo "$as_me: failed program was:" >&5
 
10183
sed 's/^/| /' conftest.$ac_ext >&5
 
10184
 
 
10185
        ac_cv_lib_Xfixes_XFixesGetCursorImage=no
 
10186
fi
 
10187
 
 
10188
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10189
      conftest$ac_exeext conftest.$ac_ext
 
10190
LIBS=$ac_check_lib_save_LIBS
 
10191
fi
 
10192
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xfixes_XFixesGetCursorImage" >&5
 
10193
echo "${ECHO_T}$ac_cv_lib_Xfixes_XFixesGetCursorImage" >&6; }
 
10194
if test $ac_cv_lib_Xfixes_XFixesGetCursorImage = yes; then
 
10195
  cat >>confdefs.h <<_ACEOF
 
10196
#define HAVE_LIBXFIXES 1
 
10197
_ACEOF
 
10198
 
 
10199
  LIBS="-lXfixes $LIBS"
 
10200
 
 
10201
else
 
10202
  unset ac_cv_lib_Xfixes_XFixesGetCursorImage; echo "Couldn't find libXfixes in LD_LIBRARY_PATH, checking X11 paths"; { echo "$as_me:$LINENO: checking for XFixesGetCursorImage in -lXfixes" >&5
 
10203
echo $ECHO_N "checking for XFixesGetCursorImage in -lXfixes... $ECHO_C" >&6; }
 
10204
if test "${ac_cv_lib_Xfixes_XFixesGetCursorImage+set}" = set; then
 
10205
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10206
else
 
10207
  ac_check_lib_save_LIBS=$LIBS
 
10208
LIBS="-lXfixes -L${ac_x_libraries} $LIBS"
 
10209
cat >conftest.$ac_ext <<_ACEOF
 
10210
/* confdefs.h.  */
 
10211
_ACEOF
 
10212
cat confdefs.h >>conftest.$ac_ext
 
10213
cat >>conftest.$ac_ext <<_ACEOF
 
10214
/* end confdefs.h.  */
 
10215
 
 
10216
/* Override any GCC internal prototype to avoid an error.
 
10217
   Use char because int might match the return type of a GCC
 
10218
   builtin and then its argument prototype would still apply.  */
 
10219
#ifdef __cplusplus
 
10220
extern "C"
 
10221
#endif
 
10222
char XFixesGetCursorImage ();
 
10223
int
 
10224
main ()
 
10225
{
 
10226
return XFixesGetCursorImage ();
 
10227
  ;
 
10228
  return 0;
 
10229
}
 
10230
_ACEOF
 
10231
rm -f conftest.$ac_objext conftest$ac_exeext
 
10232
if { (ac_try="$ac_link"
 
10233
case "(($ac_try" in
 
10234
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10235
  *) ac_try_echo=$ac_try;;
 
10236
esac
 
10237
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10238
  (eval "$ac_link") 2>conftest.er1
 
10239
  ac_status=$?
 
10240
  grep -v '^ *+' conftest.er1 >conftest.err
 
10241
  rm -f conftest.er1
 
10242
  cat conftest.err >&5
 
10243
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10244
  (exit $ac_status); } && {
 
10245
         test -z "$ac_c_werror_flag" ||
 
10246
         test ! -s conftest.err
 
10247
       } && test -s conftest$ac_exeext &&
 
10248
       $as_test_x conftest$ac_exeext; then
 
10249
  ac_cv_lib_Xfixes_XFixesGetCursorImage=yes
 
10250
else
 
10251
  echo "$as_me: failed program was:" >&5
 
10252
sed 's/^/| /' conftest.$ac_ext >&5
 
10253
 
 
10254
        ac_cv_lib_Xfixes_XFixesGetCursorImage=no
 
10255
fi
 
10256
 
 
10257
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10258
      conftest$ac_exeext conftest.$ac_ext
 
10259
LIBS=$ac_check_lib_save_LIBS
 
10260
fi
 
10261
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xfixes_XFixesGetCursorImage" >&5
 
10262
echo "${ECHO_T}$ac_cv_lib_Xfixes_XFixesGetCursorImage" >&6; }
 
10263
if test $ac_cv_lib_Xfixes_XFixesGetCursorImage = yes; then
 
10264
  LDFLAGS="${LDFLAGS} -L${ac_x_libraries} -Xlinker -R${ac_x_libraries}"; LIBS="${LIBS} -lXfixes"
 
10265
else
 
10266
  echo "libXfixes not available, cannot capture real mouse pointer"
 
10267
fi
 
10268
 
 
10269
fi
 
10270
 
 
10271
 
 
10272
# first check for Xdamage without tweaking, then in X11 paths
 
10273
 
 
10274
{ echo "$as_me:$LINENO: checking for XDamageSubtract in -lXdamage" >&5
 
10275
echo $ECHO_N "checking for XDamageSubtract in -lXdamage... $ECHO_C" >&6; }
 
10276
if test "${ac_cv_lib_Xdamage_XDamageSubtract+set}" = set; then
 
10277
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10278
else
 
10279
  ac_check_lib_save_LIBS=$LIBS
 
10280
LIBS="-lXdamage  $LIBS"
 
10281
cat >conftest.$ac_ext <<_ACEOF
 
10282
/* confdefs.h.  */
 
10283
_ACEOF
 
10284
cat confdefs.h >>conftest.$ac_ext
 
10285
cat >>conftest.$ac_ext <<_ACEOF
 
10286
/* end confdefs.h.  */
 
10287
 
 
10288
/* Override any GCC internal prototype to avoid an error.
 
10289
   Use char because int might match the return type of a GCC
 
10290
   builtin and then its argument prototype would still apply.  */
 
10291
#ifdef __cplusplus
 
10292
extern "C"
 
10293
#endif
 
10294
char XDamageSubtract ();
 
10295
int
 
10296
main ()
 
10297
{
 
10298
return XDamageSubtract ();
 
10299
  ;
 
10300
  return 0;
 
10301
}
 
10302
_ACEOF
 
10303
rm -f conftest.$ac_objext conftest$ac_exeext
 
10304
if { (ac_try="$ac_link"
 
10305
case "(($ac_try" in
 
10306
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10307
  *) ac_try_echo=$ac_try;;
 
10308
esac
 
10309
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10310
  (eval "$ac_link") 2>conftest.er1
 
10311
  ac_status=$?
 
10312
  grep -v '^ *+' conftest.er1 >conftest.err
 
10313
  rm -f conftest.er1
 
10314
  cat conftest.err >&5
 
10315
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10316
  (exit $ac_status); } && {
 
10317
         test -z "$ac_c_werror_flag" ||
 
10318
         test ! -s conftest.err
 
10319
       } && test -s conftest$ac_exeext &&
 
10320
       $as_test_x conftest$ac_exeext; then
 
10321
  ac_cv_lib_Xdamage_XDamageSubtract=yes
 
10322
else
 
10323
  echo "$as_me: failed program was:" >&5
 
10324
sed 's/^/| /' conftest.$ac_ext >&5
 
10325
 
 
10326
        ac_cv_lib_Xdamage_XDamageSubtract=no
 
10327
fi
 
10328
 
 
10329
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10330
      conftest$ac_exeext conftest.$ac_ext
 
10331
LIBS=$ac_check_lib_save_LIBS
 
10332
fi
 
10333
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xdamage_XDamageSubtract" >&5
 
10334
echo "${ECHO_T}$ac_cv_lib_Xdamage_XDamageSubtract" >&6; }
 
10335
if test $ac_cv_lib_Xdamage_XDamageSubtract = yes; then
 
10336
  cat >>confdefs.h <<_ACEOF
 
10337
#define HAVE_LIBXDAMAGE 1
 
10338
_ACEOF
 
10339
 
 
10340
  LIBS="-lXdamage $LIBS"
 
10341
 
 
10342
else
 
10343
  unset ac_cv_lib_Xdamage_XDamageSubtract; echo "Couldn't find libXdamage in LD_LIBRARY_PATH, checking X11 paths"; { echo "$as_me:$LINENO: checking for XDamageSubtract in -lXdamage" >&5
 
10344
echo $ECHO_N "checking for XDamageSubtract in -lXdamage... $ECHO_C" >&6; }
 
10345
if test "${ac_cv_lib_Xdamage_XDamageSubtract+set}" = set; then
 
10346
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10347
else
 
10348
  ac_check_lib_save_LIBS=$LIBS
 
10349
LIBS="-lXdamage -L${ac_x_libraries} $LIBS"
 
10350
cat >conftest.$ac_ext <<_ACEOF
 
10351
/* confdefs.h.  */
 
10352
_ACEOF
 
10353
cat confdefs.h >>conftest.$ac_ext
 
10354
cat >>conftest.$ac_ext <<_ACEOF
 
10355
/* end confdefs.h.  */
 
10356
 
 
10357
/* Override any GCC internal prototype to avoid an error.
 
10358
   Use char because int might match the return type of a GCC
 
10359
   builtin and then its argument prototype would still apply.  */
 
10360
#ifdef __cplusplus
 
10361
extern "C"
 
10362
#endif
 
10363
char XDamageSubtract ();
 
10364
int
 
10365
main ()
 
10366
{
 
10367
return XDamageSubtract ();
 
10368
  ;
 
10369
  return 0;
 
10370
}
 
10371
_ACEOF
 
10372
rm -f conftest.$ac_objext conftest$ac_exeext
 
10373
if { (ac_try="$ac_link"
 
10374
case "(($ac_try" in
 
10375
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10376
  *) ac_try_echo=$ac_try;;
 
10377
esac
 
10378
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10379
  (eval "$ac_link") 2>conftest.er1
 
10380
  ac_status=$?
 
10381
  grep -v '^ *+' conftest.er1 >conftest.err
 
10382
  rm -f conftest.er1
 
10383
  cat conftest.err >&5
 
10384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10385
  (exit $ac_status); } && {
 
10386
         test -z "$ac_c_werror_flag" ||
 
10387
         test ! -s conftest.err
 
10388
       } && test -s conftest$ac_exeext &&
 
10389
       $as_test_x conftest$ac_exeext; then
 
10390
  ac_cv_lib_Xdamage_XDamageSubtract=yes
 
10391
else
 
10392
  echo "$as_me: failed program was:" >&5
 
10393
sed 's/^/| /' conftest.$ac_ext >&5
 
10394
 
 
10395
        ac_cv_lib_Xdamage_XDamageSubtract=no
 
10396
fi
 
10397
 
 
10398
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10399
      conftest$ac_exeext conftest.$ac_ext
 
10400
LIBS=$ac_check_lib_save_LIBS
 
10401
fi
 
10402
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xdamage_XDamageSubtract" >&5
 
10403
echo "${ECHO_T}$ac_cv_lib_Xdamage_XDamageSubtract" >&6; }
 
10404
if test $ac_cv_lib_Xdamage_XDamageSubtract = yes; then
 
10405
  LDFLAGS="${LDFLAGS} -L${ac_x_libraries} -Xlinker -R${ac_x_libraries}"; LIBS="${LIBS} -lXdamage"
 
10406
else
 
10407
  echo "libXdamage not available, cannot use delta screenshots"
 
10408
fi
 
10409
 
 
10410
fi
 
10411
 
 
10412
 
 
10413
## libice test is present, but we need to bail out if not there
 
10414
 
 
10415
if test "x${ac_cv_lib_ICE_IceConnectionNumber+set}" = "x"; then
 
10416
  echo "Your X11 environment is missing libice."
 
10417
  exit 1
 
10418
fi
 
10419
 
 
10420
 
 
10421
#########################################################
 
10422
 
 
10423
#########################################################
 
10424
# libm is required by ffmpeg
 
10425
#########################################################
 
10426
 
 
10427
{ echo "$as_me:$LINENO: checking for pow in -lm" >&5
 
10428
echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
 
10429
if test "${ac_cv_lib_m_pow+set}" = set; then
 
10430
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10431
else
 
10432
  ac_check_lib_save_LIBS=$LIBS
 
10433
LIBS="-lm  $LIBS"
 
10434
cat >conftest.$ac_ext <<_ACEOF
 
10435
/* confdefs.h.  */
 
10436
_ACEOF
 
10437
cat confdefs.h >>conftest.$ac_ext
 
10438
cat >>conftest.$ac_ext <<_ACEOF
 
10439
/* end confdefs.h.  */
 
10440
 
 
10441
/* Override any GCC internal prototype to avoid an error.
 
10442
   Use char because int might match the return type of a GCC
 
10443
   builtin and then its argument prototype would still apply.  */
 
10444
#ifdef __cplusplus
 
10445
extern "C"
 
10446
#endif
 
10447
char pow ();
 
10448
int
 
10449
main ()
 
10450
{
 
10451
return pow ();
 
10452
  ;
 
10453
  return 0;
 
10454
}
 
10455
_ACEOF
 
10456
rm -f conftest.$ac_objext conftest$ac_exeext
 
10457
if { (ac_try="$ac_link"
 
10458
case "(($ac_try" in
 
10459
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10460
  *) ac_try_echo=$ac_try;;
 
10461
esac
 
10462
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10463
  (eval "$ac_link") 2>conftest.er1
 
10464
  ac_status=$?
 
10465
  grep -v '^ *+' conftest.er1 >conftest.err
 
10466
  rm -f conftest.er1
 
10467
  cat conftest.err >&5
 
10468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10469
  (exit $ac_status); } && {
 
10470
         test -z "$ac_c_werror_flag" ||
 
10471
         test ! -s conftest.err
 
10472
       } && test -s conftest$ac_exeext &&
 
10473
       $as_test_x conftest$ac_exeext; then
 
10474
  ac_cv_lib_m_pow=yes
 
10475
else
 
10476
  echo "$as_me: failed program was:" >&5
 
10477
sed 's/^/| /' conftest.$ac_ext >&5
 
10478
 
 
10479
        ac_cv_lib_m_pow=no
 
10480
fi
 
10481
 
 
10482
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10483
      conftest$ac_exeext conftest.$ac_ext
 
10484
LIBS=$ac_check_lib_save_LIBS
 
10485
fi
 
10486
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
 
10487
echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
 
10488
if test $ac_cv_lib_m_pow = yes; then
 
10489
  cat >>confdefs.h <<_ACEOF
 
10490
#define HAVE_LIBM 1
 
10491
_ACEOF
 
10492
 
 
10493
  LIBS="-lm $LIBS"
 
10494
 
 
10495
else
 
10496
  echo "libm required by ffmpeg"; static_avcodec=no; static_avformat=no; static_avutil=no
 
10497
fi
 
10498
 
 
10499
#########################################################
 
10500
 
 
10501
################################################################
 
10502
# check for libmp3lame et. al.
 
10503
################################################################
 
10504
 
 
10505
if test "${ac_cv_enable_libmp3lame}" = "yes"; then
 
10506
 
 
10507
{ echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
 
10508
echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6; }
 
10509
if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
 
10510
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10511
else
 
10512
  ac_check_lib_save_LIBS=$LIBS
 
10513
LIBS="-lmp3lame  $LIBS"
 
10514
cat >conftest.$ac_ext <<_ACEOF
 
10515
/* confdefs.h.  */
 
10516
_ACEOF
 
10517
cat confdefs.h >>conftest.$ac_ext
 
10518
cat >>conftest.$ac_ext <<_ACEOF
 
10519
/* end confdefs.h.  */
 
10520
 
 
10521
/* Override any GCC internal prototype to avoid an error.
 
10522
   Use char because int might match the return type of a GCC
 
10523
   builtin and then its argument prototype would still apply.  */
 
10524
#ifdef __cplusplus
 
10525
extern "C"
 
10526
#endif
 
10527
char lame_init ();
 
10528
int
 
10529
main ()
 
10530
{
 
10531
return lame_init ();
 
10532
  ;
 
10533
  return 0;
 
10534
}
 
10535
_ACEOF
 
10536
rm -f conftest.$ac_objext conftest$ac_exeext
 
10537
if { (ac_try="$ac_link"
 
10538
case "(($ac_try" in
 
10539
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10540
  *) ac_try_echo=$ac_try;;
 
10541
esac
 
10542
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10543
  (eval "$ac_link") 2>conftest.er1
 
10544
  ac_status=$?
 
10545
  grep -v '^ *+' conftest.er1 >conftest.err
 
10546
  rm -f conftest.er1
 
10547
  cat conftest.err >&5
 
10548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10549
  (exit $ac_status); } && {
 
10550
         test -z "$ac_c_werror_flag" ||
 
10551
         test ! -s conftest.err
 
10552
       } && test -s conftest$ac_exeext &&
 
10553
       $as_test_x conftest$ac_exeext; then
 
10554
  ac_cv_lib_mp3lame_lame_init=yes
 
10555
else
 
10556
  echo "$as_me: failed program was:" >&5
 
10557
sed 's/^/| /' conftest.$ac_ext >&5
 
10558
 
 
10559
        ac_cv_lib_mp3lame_lame_init=no
 
10560
fi
 
10561
 
 
10562
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10563
      conftest$ac_exeext conftest.$ac_ext
 
10564
LIBS=$ac_check_lib_save_LIBS
 
10565
fi
 
10566
{ echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
 
10567
echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6; }
 
10568
if test $ac_cv_lib_mp3lame_lame_init = yes; then
 
10569
  cat >>confdefs.h <<_ACEOF
 
10570
#define HAVE_LIBMP3LAME 1
 
10571
_ACEOF
 
10572
 
 
10573
  LIBS="-lmp3lame $LIBS"
 
10574
 
 
10575
else
 
10576
  echo "To use mp3 audio codecs you need liblame/liblame-dev"
 
10577
fi
 
10578
 
 
10579
fi
 
10580
 
 
10581
 
 
10582
if test x$ac_cv_lib_mp3lame_lame_init = xyes; then
 
10583
  HAVE_LIBMP3LAME_TRUE=
 
10584
  HAVE_LIBMP3LAME_FALSE='#'
 
10585
else
 
10586
  HAVE_LIBMP3LAME_TRUE='#'
 
10587
  HAVE_LIBMP3LAME_FALSE=
 
10588
fi
 
10589
 
 
10590
 
 
10591
 
 
10592
if test "${ac_cv_enable_libtheora}" = "yes"; then
 
10593
 
 
10594
{ echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
 
10595
echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
 
10596
if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
 
10597
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10598
else
 
10599
  ac_check_lib_save_LIBS=$LIBS
 
10600
LIBS="-logg  $LIBS"
 
10601
cat >conftest.$ac_ext <<_ACEOF
 
10602
/* confdefs.h.  */
 
10603
_ACEOF
 
10604
cat confdefs.h >>conftest.$ac_ext
 
10605
cat >>conftest.$ac_ext <<_ACEOF
 
10606
/* end confdefs.h.  */
 
10607
 
 
10608
/* Override any GCC internal prototype to avoid an error.
 
10609
   Use char because int might match the return type of a GCC
 
10610
   builtin and then its argument prototype would still apply.  */
 
10611
#ifdef __cplusplus
 
10612
extern "C"
 
10613
#endif
 
10614
char ogg_sync_init ();
 
10615
int
 
10616
main ()
 
10617
{
 
10618
return ogg_sync_init ();
 
10619
  ;
 
10620
  return 0;
 
10621
}
 
10622
_ACEOF
 
10623
rm -f conftest.$ac_objext conftest$ac_exeext
 
10624
if { (ac_try="$ac_link"
 
10625
case "(($ac_try" in
 
10626
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10627
  *) ac_try_echo=$ac_try;;
 
10628
esac
 
10629
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10630
  (eval "$ac_link") 2>conftest.er1
 
10631
  ac_status=$?
 
10632
  grep -v '^ *+' conftest.er1 >conftest.err
 
10633
  rm -f conftest.er1
 
10634
  cat conftest.err >&5
 
10635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10636
  (exit $ac_status); } && {
 
10637
         test -z "$ac_c_werror_flag" ||
 
10638
         test ! -s conftest.err
 
10639
       } && test -s conftest$ac_exeext &&
 
10640
       $as_test_x conftest$ac_exeext; then
 
10641
  ac_cv_lib_ogg_ogg_sync_init=yes
 
10642
else
 
10643
  echo "$as_me: failed program was:" >&5
 
10644
sed 's/^/| /' conftest.$ac_ext >&5
 
10645
 
 
10646
        ac_cv_lib_ogg_ogg_sync_init=no
 
10647
fi
 
10648
 
 
10649
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10650
      conftest$ac_exeext conftest.$ac_ext
 
10651
LIBS=$ac_check_lib_save_LIBS
 
10652
fi
 
10653
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
 
10654
echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
 
10655
if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
 
10656
  cat >>confdefs.h <<_ACEOF
 
10657
#define HAVE_LIBOGG 1
 
10658
_ACEOF
 
10659
 
 
10660
  LIBS="-logg $LIBS"
 
10661
 
 
10662
else
 
10663
  echo "To use the theora video codec you also need libogg/libogg-dev"
 
10664
fi
 
10665
 
 
10666
        if test "x${ac_cv_lib_ogg_ogg_sync_init}" = "xno" ; then
 
10667
                echo "Please install the required libraries or deselect theora support."
 
10668
                exit 1
 
10669
        fi
 
10670
 
 
10671
{ echo "$as_me:$LINENO: checking for theora_encode_init in -ltheora" >&5
 
10672
echo $ECHO_N "checking for theora_encode_init in -ltheora... $ECHO_C" >&6; }
 
10673
if test "${ac_cv_lib_theora_theora_encode_init+set}" = set; then
 
10674
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10675
else
 
10676
  ac_check_lib_save_LIBS=$LIBS
 
10677
LIBS="-ltheora -logg $LIBS"
 
10678
cat >conftest.$ac_ext <<_ACEOF
 
10679
/* confdefs.h.  */
 
10680
_ACEOF
 
10681
cat confdefs.h >>conftest.$ac_ext
 
10682
cat >>conftest.$ac_ext <<_ACEOF
 
10683
/* end confdefs.h.  */
 
10684
 
 
10685
/* Override any GCC internal prototype to avoid an error.
 
10686
   Use char because int might match the return type of a GCC
 
10687
   builtin and then its argument prototype would still apply.  */
 
10688
#ifdef __cplusplus
 
10689
extern "C"
 
10690
#endif
 
10691
char theora_encode_init ();
 
10692
int
 
10693
main ()
 
10694
{
 
10695
return theora_encode_init ();
 
10696
  ;
 
10697
  return 0;
 
10698
}
 
10699
_ACEOF
 
10700
rm -f conftest.$ac_objext conftest$ac_exeext
 
10701
if { (ac_try="$ac_link"
 
10702
case "(($ac_try" in
 
10703
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10704
  *) ac_try_echo=$ac_try;;
 
10705
esac
 
10706
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10707
  (eval "$ac_link") 2>conftest.er1
 
10708
  ac_status=$?
 
10709
  grep -v '^ *+' conftest.er1 >conftest.err
 
10710
  rm -f conftest.er1
 
10711
  cat conftest.err >&5
 
10712
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10713
  (exit $ac_status); } && {
 
10714
         test -z "$ac_c_werror_flag" ||
 
10715
         test ! -s conftest.err
 
10716
       } && test -s conftest$ac_exeext &&
 
10717
       $as_test_x conftest$ac_exeext; then
 
10718
  ac_cv_lib_theora_theora_encode_init=yes
 
10719
else
 
10720
  echo "$as_me: failed program was:" >&5
 
10721
sed 's/^/| /' conftest.$ac_ext >&5
 
10722
 
 
10723
        ac_cv_lib_theora_theora_encode_init=no
 
10724
fi
 
10725
 
 
10726
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10727
      conftest$ac_exeext conftest.$ac_ext
 
10728
LIBS=$ac_check_lib_save_LIBS
 
10729
fi
 
10730
{ echo "$as_me:$LINENO: result: $ac_cv_lib_theora_theora_encode_init" >&5
 
10731
echo "${ECHO_T}$ac_cv_lib_theora_theora_encode_init" >&6; }
 
10732
if test $ac_cv_lib_theora_theora_encode_init = yes; then
 
10733
  cat >>confdefs.h <<_ACEOF
 
10734
#define HAVE_LIBTHEORA 1
 
10735
_ACEOF
 
10736
 
 
10737
  LIBS="-ltheora $LIBS"
 
10738
 
 
10739
else
 
10740
  echo "To use the theora video codec you need libtheora/libtheora-dev"
 
10741
fi
 
10742
 
 
10743
fi
 
10744
 
 
10745
 
 
10746
if test x$ac_cv_lib_theora_theora_encode_init = xyes; then
 
10747
  HAVE_LIBTHEORA_TRUE=
 
10748
  HAVE_LIBTHEORA_FALSE='#'
 
10749
else
 
10750
  HAVE_LIBTHEORA_TRUE='#'
 
10751
  HAVE_LIBTHEORA_FALSE=
 
10752
fi
 
10753
 
 
10754
 
 
10755
################################################################
 
10756
# check for threading libraries
 
10757
################################################################
 
10758
 
 
10759
 
 
10760
{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
 
10761
echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
 
10762
if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
 
10763
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10764
else
 
10765
  ac_check_lib_save_LIBS=$LIBS
 
10766
LIBS="-lpthread  $LIBS"
 
10767
cat >conftest.$ac_ext <<_ACEOF
 
10768
/* confdefs.h.  */
 
10769
_ACEOF
 
10770
cat confdefs.h >>conftest.$ac_ext
 
10771
cat >>conftest.$ac_ext <<_ACEOF
 
10772
/* end confdefs.h.  */
 
10773
 
 
10774
/* Override any GCC internal prototype to avoid an error.
 
10775
   Use char because int might match the return type of a GCC
 
10776
   builtin and then its argument prototype would still apply.  */
 
10777
#ifdef __cplusplus
 
10778
extern "C"
 
10779
#endif
 
10780
char pthread_mutex_init ();
 
10781
int
 
10782
main ()
 
10783
{
 
10784
return pthread_mutex_init ();
 
10785
  ;
 
10786
  return 0;
 
10787
}
 
10788
_ACEOF
 
10789
rm -f conftest.$ac_objext conftest$ac_exeext
 
10790
if { (ac_try="$ac_link"
 
10791
case "(($ac_try" in
 
10792
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10793
  *) ac_try_echo=$ac_try;;
 
10794
esac
 
10795
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10796
  (eval "$ac_link") 2>conftest.er1
 
10797
  ac_status=$?
 
10798
  grep -v '^ *+' conftest.er1 >conftest.err
 
10799
  rm -f conftest.er1
 
10800
  cat conftest.err >&5
 
10801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10802
  (exit $ac_status); } && {
 
10803
         test -z "$ac_c_werror_flag" ||
 
10804
         test ! -s conftest.err
 
10805
       } && test -s conftest$ac_exeext &&
 
10806
       $as_test_x conftest$ac_exeext; then
 
10807
  ac_cv_lib_pthread_pthread_mutex_init=yes
 
10808
else
 
10809
  echo "$as_me: failed program was:" >&5
 
10810
sed 's/^/| /' conftest.$ac_ext >&5
 
10811
 
 
10812
        ac_cv_lib_pthread_pthread_mutex_init=no
 
10813
fi
 
10814
 
 
10815
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10816
      conftest$ac_exeext conftest.$ac_ext
 
10817
LIBS=$ac_check_lib_save_LIBS
 
10818
fi
 
10819
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
 
10820
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
 
10821
if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
 
10822
  cat >>confdefs.h <<_ACEOF
 
10823
#define HAVE_LIBPTHREAD 1
 
10824
_ACEOF
 
10825
 
 
10826
  LIBS="-lpthread $LIBS"
4521
10827
 
4522
10828
fi
4523
10829
 
4524
10830
# set config.h define
4525
10831
 
4526
10832
 
4527
 
if test x$ac_cv_lib_z_zlibVersion = xyes; then
4528
 
  HAVE_LIBZ_TRUE=
4529
 
  HAVE_LIBZ_FALSE='#'
4530
 
else
4531
 
  HAVE_LIBZ_TRUE='#'
4532
 
  HAVE_LIBZ_FALSE=
4533
 
fi
4534
 
 
4535
 
 
4536
 
# continue with other libs
4537
 
 
4538
 
 
4539
 
if test x$static_png = xyes; then
4540
 
 
4541
 
echo "$as_me:$LINENO: checking for png_set_filter in -lpng" >&5
4542
 
echo $ECHO_N "checking for png_set_filter in -lpng... $ECHO_C" >&6
4543
 
if test "${ac_cv_lib_png_png_set_filter+set}" = set; then
4544
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4545
 
else
4546
 
 
4547
 
echo -n "(static?) ... "
4548
 
ac_check_lib_save_LIBS=$LIBS
4549
 
LIBS="-Wl,-Bstatic -lpng -Wl,-Bdynamic -lm $LIBS"
4550
 
cat >conftest.$ac_ext <<_ACEOF
4551
 
#line $LINENO "configure"
4552
 
/* confdefs.h.  */
4553
 
_ACEOF
4554
 
cat confdefs.h >>conftest.$ac_ext
4555
 
cat >>conftest.$ac_ext <<_ACEOF
4556
 
/* end confdefs.h.  */
4557
 
 
4558
 
/* Override any gcc2 internal prototype to avoid an error.  */
4559
 
#ifdef __cplusplus
4560
 
extern "C"
4561
 
#endif
4562
 
/* We use char because int might match the return type of a gcc2
4563
 
   builtin and then its argument prototype would still apply.  */
4564
 
char png_set_filter ();
4565
 
int
4566
 
main ()
4567
 
{
4568
 
png_set_filter ();
4569
 
  ;
4570
 
  return 0;
4571
 
}
4572
 
_ACEOF
4573
 
rm -f conftest.$ac_objext conftest$ac_exeext
4574
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4575
 
  (eval $ac_link) 2>&5
4576
 
  ac_status=$?
4577
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578
 
  (exit $ac_status); } &&
4579
 
         { ac_try='test -s conftest$ac_exeext'
4580
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581
 
  (eval $ac_try) 2>&5
4582
 
  ac_status=$?
4583
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584
 
  (exit $ac_status); }; }; then
4585
 
  ac_cv_lib_png_png_set_filter=yes
4586
 
else
4587
 
  echo "$as_me: failed program was:" >&5
4588
 
sed 's/^/| /' conftest.$ac_ext >&5
4589
 
 
4590
 
ac_cv_lib_png_png_set_filter=no
4591
 
fi
4592
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4593
 
LIBS=$ac_check_lib_save_LIBS
4594
 
 
4595
 
fi
4596
 
echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_set_filter" >&5
4597
 
echo "${ECHO_T}$ac_cv_lib_png_png_set_filter" >&6
4598
 
else
4599
 
  ac_cv_lib_png_png_set_filter=no
4600
 
fi
4601
 
 
4602
 
if test $ac_cv_lib_png_png_set_filter = yes; then
4603
 
  cat >>confdefs.h <<_ACEOF
4604
 
#define HAVE_LIBPNG 1
4605
 
_ACEOF
4606
 
 
4607
 
  LIBS="-Wl,-Bstatic -lpng -Wl,-Bdynamic $LIBS"
4608
 
 
4609
 
else
4610
 
  unset ac_cv_lib_png_png_set_filter ; static_png=no ;
4611
 
echo "$as_me:$LINENO: checking for png_set_filter in -lpng" >&5
4612
 
echo $ECHO_N "checking for png_set_filter in -lpng... $ECHO_C" >&6
4613
 
if test "${ac_cv_lib_png_png_set_filter+set}" = set; then
4614
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4615
 
else
4616
 
  ac_check_lib_save_LIBS=$LIBS
4617
 
LIBS="-lpng -lm $LIBS"
4618
 
cat >conftest.$ac_ext <<_ACEOF
4619
 
#line $LINENO "configure"
4620
 
/* confdefs.h.  */
4621
 
_ACEOF
4622
 
cat confdefs.h >>conftest.$ac_ext
4623
 
cat >>conftest.$ac_ext <<_ACEOF
4624
 
/* end confdefs.h.  */
4625
 
 
4626
 
/* Override any gcc2 internal prototype to avoid an error.  */
4627
 
#ifdef __cplusplus
4628
 
extern "C"
4629
 
#endif
4630
 
/* We use char because int might match the return type of a gcc2
4631
 
   builtin and then its argument prototype would still apply.  */
4632
 
char png_set_filter ();
4633
 
int
4634
 
main ()
4635
 
{
4636
 
png_set_filter ();
4637
 
  ;
4638
 
  return 0;
4639
 
}
4640
 
_ACEOF
4641
 
rm -f conftest.$ac_objext conftest$ac_exeext
4642
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4643
 
  (eval $ac_link) 2>&5
4644
 
  ac_status=$?
4645
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646
 
  (exit $ac_status); } &&
4647
 
         { ac_try='test -s conftest$ac_exeext'
4648
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649
 
  (eval $ac_try) 2>&5
4650
 
  ac_status=$?
4651
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652
 
  (exit $ac_status); }; }; then
4653
 
  ac_cv_lib_png_png_set_filter=yes
4654
 
else
4655
 
  echo "$as_me: failed program was:" >&5
4656
 
sed 's/^/| /' conftest.$ac_ext >&5
4657
 
 
4658
 
ac_cv_lib_png_png_set_filter=no
4659
 
fi
4660
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4661
 
LIBS=$ac_check_lib_save_LIBS
4662
 
fi
4663
 
echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_set_filter" >&5
4664
 
echo "${ECHO_T}$ac_cv_lib_png_png_set_filter" >&6
4665
 
if test $ac_cv_lib_png_png_set_filter = yes; then
4666
 
  cat >>confdefs.h <<_ACEOF
4667
 
#define HAVE_LIBPNG 1
4668
 
_ACEOF
4669
 
 
4670
 
  LIBS="-lpng $LIBS"
4671
 
 
4672
 
fi
4673
 
 
4674
 
fi
4675
 
 
4676
 
 
4677
 
 
4678
 
if test x$ac_cv_lib_png_png_set_filter = xyes; then
4679
 
  HAVE_LIBPNG_TRUE=
4680
 
  HAVE_LIBPNG_FALSE='#'
4681
 
else
4682
 
  HAVE_LIBPNG_TRUE='#'
4683
 
  HAVE_LIBPNG_FALSE=
4684
 
fi
4685
 
 
4686
 
 
4687
 
 
4688
 
 
4689
 
if test x$static_jpeg = xyes; then
4690
 
 
4691
 
echo "$as_me:$LINENO: checking for jpeg_CreateCompress in -ljpeg" >&5
4692
 
echo $ECHO_N "checking for jpeg_CreateCompress in -ljpeg... $ECHO_C" >&6
4693
 
if test "${ac_cv_lib_jpeg_jpeg_CreateCompress+set}" = set; then
4694
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4695
 
else
4696
 
 
4697
 
echo -n "(static?) ... "
4698
 
ac_check_lib_save_LIBS=$LIBS
4699
 
LIBS="-Wl,-Bstatic -ljpeg -Wl,-Bdynamic  $LIBS"
4700
 
cat >conftest.$ac_ext <<_ACEOF
4701
 
#line $LINENO "configure"
4702
 
/* confdefs.h.  */
4703
 
_ACEOF
4704
 
cat confdefs.h >>conftest.$ac_ext
4705
 
cat >>conftest.$ac_ext <<_ACEOF
4706
 
/* end confdefs.h.  */
4707
 
 
4708
 
/* Override any gcc2 internal prototype to avoid an error.  */
4709
 
#ifdef __cplusplus
4710
 
extern "C"
4711
 
#endif
4712
 
/* We use char because int might match the return type of a gcc2
4713
 
   builtin and then its argument prototype would still apply.  */
4714
 
char jpeg_CreateCompress ();
4715
 
int
4716
 
main ()
4717
 
{
4718
 
jpeg_CreateCompress ();
4719
 
  ;
4720
 
  return 0;
4721
 
}
4722
 
_ACEOF
4723
 
rm -f conftest.$ac_objext conftest$ac_exeext
4724
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4725
 
  (eval $ac_link) 2>&5
4726
 
  ac_status=$?
4727
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728
 
  (exit $ac_status); } &&
4729
 
         { ac_try='test -s conftest$ac_exeext'
4730
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731
 
  (eval $ac_try) 2>&5
4732
 
  ac_status=$?
4733
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734
 
  (exit $ac_status); }; }; then
4735
 
  ac_cv_lib_jpeg_jpeg_CreateCompress=yes
4736
 
else
4737
 
  echo "$as_me: failed program was:" >&5
4738
 
sed 's/^/| /' conftest.$ac_ext >&5
4739
 
 
4740
 
ac_cv_lib_jpeg_jpeg_CreateCompress=no
4741
 
fi
4742
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4743
 
LIBS=$ac_check_lib_save_LIBS
4744
 
 
4745
 
fi
4746
 
echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_CreateCompress" >&5
4747
 
echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_CreateCompress" >&6
4748
 
else
4749
 
  ac_cv_lib_jpeg_jpeg_CreateCompress=no
4750
 
fi
4751
 
 
4752
 
if test $ac_cv_lib_jpeg_jpeg_CreateCompress = yes; then
4753
 
  cat >>confdefs.h <<_ACEOF
4754
 
#define HAVE_LIBJPEG 1
4755
 
_ACEOF
4756
 
 
4757
 
  LIBS="-Wl,-Bstatic -ljpeg -Wl,-Bdynamic $LIBS"
4758
 
 
4759
 
else
4760
 
  unset ac_cv_lib_jpeg_jpeg_CreateCompress ; static_jpeg=no ;
4761
 
echo "$as_me:$LINENO: checking for jpeg_CreateCompress in -ljpeg" >&5
4762
 
echo $ECHO_N "checking for jpeg_CreateCompress in -ljpeg... $ECHO_C" >&6
4763
 
if test "${ac_cv_lib_jpeg_jpeg_CreateCompress+set}" = set; then
4764
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4765
 
else
4766
 
  ac_check_lib_save_LIBS=$LIBS
4767
 
LIBS="-ljpeg  $LIBS"
4768
 
cat >conftest.$ac_ext <<_ACEOF
4769
 
#line $LINENO "configure"
4770
 
/* confdefs.h.  */
4771
 
_ACEOF
4772
 
cat confdefs.h >>conftest.$ac_ext
4773
 
cat >>conftest.$ac_ext <<_ACEOF
4774
 
/* end confdefs.h.  */
4775
 
 
4776
 
/* Override any gcc2 internal prototype to avoid an error.  */
4777
 
#ifdef __cplusplus
4778
 
extern "C"
4779
 
#endif
4780
 
/* We use char because int might match the return type of a gcc2
4781
 
   builtin and then its argument prototype would still apply.  */
4782
 
char jpeg_CreateCompress ();
4783
 
int
4784
 
main ()
4785
 
{
4786
 
jpeg_CreateCompress ();
4787
 
  ;
4788
 
  return 0;
4789
 
}
4790
 
_ACEOF
4791
 
rm -f conftest.$ac_objext conftest$ac_exeext
4792
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4793
 
  (eval $ac_link) 2>&5
4794
 
  ac_status=$?
4795
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796
 
  (exit $ac_status); } &&
4797
 
         { ac_try='test -s conftest$ac_exeext'
4798
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799
 
  (eval $ac_try) 2>&5
4800
 
  ac_status=$?
4801
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802
 
  (exit $ac_status); }; }; then
4803
 
  ac_cv_lib_jpeg_jpeg_CreateCompress=yes
4804
 
else
4805
 
  echo "$as_me: failed program was:" >&5
4806
 
sed 's/^/| /' conftest.$ac_ext >&5
4807
 
 
4808
 
ac_cv_lib_jpeg_jpeg_CreateCompress=no
4809
 
fi
4810
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4811
 
LIBS=$ac_check_lib_save_LIBS
4812
 
fi
4813
 
echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_CreateCompress" >&5
4814
 
echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_CreateCompress" >&6
4815
 
if test $ac_cv_lib_jpeg_jpeg_CreateCompress = yes; then
4816
 
  cat >>confdefs.h <<_ACEOF
4817
 
#define HAVE_LIBJPEG 1
4818
 
_ACEOF
4819
 
 
4820
 
  LIBS="-ljpeg $LIBS"
4821
 
 
4822
 
else
4823
 
  echo "To use jpeg you need libjpeg version 6+"
4824
 
fi
4825
 
 
4826
 
fi
4827
 
 
4828
 
 
4829
 
 
4830
 
if test x$ac_cv_lib_jpeg_jpeg_CreateCompress = xyes; then
4831
 
  HAVE_LIBJPEG_TRUE=
4832
 
  HAVE_LIBJPEG_FALSE='#'
4833
 
else
4834
 
  HAVE_LIBJPEG_TRUE='#'
4835
 
  HAVE_LIBJPEG_FALSE=
4836
 
fi
4837
 
 
4838
 
 
4839
 
# png and z seem to need libm for proper static linking ...
4840
 
test \( \( x$static_z = xyes \) -o \( x$static_png = xyes \) \) && LIBS="${LIBS} -lm"
4841
 
 
4842
 
#
4843
 
#
 
10833
if test x$ac_cv_lib_pthread_pthread_mutex_init = xyes; then
 
10834
  HAVE_PTHREAD_TRUE=
 
10835
  HAVE_PTHREAD_FALSE='#'
 
10836
else
 
10837
  HAVE_PTHREAD_TRUE='#'
 
10838
  HAVE_PTHREAD_FALSE=
 
10839
fi
 
10840
 
 
10841
if ( `test x${ac_cv_lib_pthread_pthread_mutex_init} = xno` ) ; then
 
10842
        # haven't found libpthread
 
10843
        if ( `test x${FREEBSD_TRUE} = "x"` ) ; then
 
10844
                # On FreeBSD try -lc_r ... thanks to Oyvind Hallsteinsen
 
10845
                if ( test -x /sbin/sysctl ) ; then
 
10846
                        ac_my_freebsd_release=`/sbin/sysctl -n kern.osreldate`
 
10847
                else
 
10848
                        ac_my_freebsd_release=`/usr/sbin/sysctl -n kern.osreldate`
 
10849
                fi
 
10850
                if ( expr ${ac_my_freebsd_release} \< 500016 ) ; then
 
10851
                        LIBS="${LIBS} -pthread"
 
10852
                else
 
10853
                        LIBS="${LIBS} -lc_r"
 
10854
                fi
 
10855
        else
 
10856
                # if we don't have threads, we can't record
 
10857
        echo "xvidcap requires libpthread for recording. This machine doesn't have the libraries and/or header files installed."
 
10858
        exit 1
 
10859
        fi
 
10860
fi
 
10861
 
 
10862
#########################################################
4844
10863
# avcodec/avformat
4845
10864
# test static linking first, if requested ... if not, or not found, reset cache
4846
 
if ( ! (test x$ac_cv_with_embedded_ffmpeg = xyes ) ) ; then
4847
 
        ac_my_static_avcodec_save=$static_avcodec
4848
 
 
4849
 
 
4850
 
if test x$static_avcodec = xyes; then
4851
 
 
4852
 
echo "$as_me:$LINENO: checking for img_convert in -lavcodec" >&5
4853
 
echo $ECHO_N "checking for img_convert in -lavcodec... $ECHO_C" >&6
4854
 
if test "${ac_cv_lib_avcodec_img_convert+set}" = set; then
4855
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4856
 
else
4857
 
 
4858
 
echo -n "(static?) ... "
4859
 
ac_check_lib_save_LIBS=$LIBS
4860
 
LIBS="-Wl,-Bstatic -lavcodec -Wl,-Bdynamic  $LIBS"
4861
 
cat >conftest.$ac_ext <<_ACEOF
4862
 
#line $LINENO "configure"
4863
 
/* confdefs.h.  */
4864
 
_ACEOF
4865
 
cat confdefs.h >>conftest.$ac_ext
4866
 
cat >>conftest.$ac_ext <<_ACEOF
4867
 
/* end confdefs.h.  */
4868
 
 
4869
 
/* Override any gcc2 internal prototype to avoid an error.  */
4870
 
#ifdef __cplusplus
4871
 
extern "C"
4872
 
#endif
4873
 
/* We use char because int might match the return type of a gcc2
4874
 
   builtin and then its argument prototype would still apply.  */
4875
 
char img_convert ();
4876
 
int
4877
 
main ()
4878
 
{
4879
 
img_convert ();
4880
 
  ;
4881
 
  return 0;
4882
 
}
4883
 
_ACEOF
4884
 
rm -f conftest.$ac_objext conftest$ac_exeext
4885
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4886
 
  (eval $ac_link) 2>&5
4887
 
  ac_status=$?
4888
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889
 
  (exit $ac_status); } &&
4890
 
         { ac_try='test -s conftest$ac_exeext'
4891
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892
 
  (eval $ac_try) 2>&5
4893
 
  ac_status=$?
4894
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895
 
  (exit $ac_status); }; }; then
4896
 
  ac_cv_lib_avcodec_img_convert=yes
4897
 
else
4898
 
  echo "$as_me: failed program was:" >&5
4899
 
sed 's/^/| /' conftest.$ac_ext >&5
4900
 
 
4901
 
ac_cv_lib_avcodec_img_convert=no
4902
 
fi
4903
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4904
 
LIBS=$ac_check_lib_save_LIBS
4905
 
 
4906
 
fi
4907
 
echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_img_convert" >&5
4908
 
echo "${ECHO_T}$ac_cv_lib_avcodec_img_convert" >&6
4909
 
else
4910
 
  ac_cv_lib_avcodec_img_convert=no
4911
 
fi
4912
 
 
4913
 
if test $ac_cv_lib_avcodec_img_convert = yes; then
4914
 
  cat >>confdefs.h <<_ACEOF
4915
 
#define HAVE_LIBAVCODEC 1
4916
 
_ACEOF
4917
 
 
4918
 
  LIBS="-Wl,-Bstatic -lavcodec -Wl,-Bdynamic $LIBS"
4919
 
 
4920
 
else
4921
 
  unset ac_cv_lib_avcodec_img_convert
4922
 
fi
4923
 
 
4924
 
        static_avcodec=$ac_my_static_avcodec_save
4925
 
fi
 
10865
#########################################################
 
10866
 
 
10867
 
 
10868
test x$ac_cv_lib_mp3lame_lame_init = xyes && ac_my_ffmpeg_cfg_lib_switch="--enable-libmp3lame"
 
10869
test x$ac_cv_lib_theora_theora_encode_init = xyes && ac_my_ffmpeg_cfg_lib_switch="${ac_my_ffmpeg_cfg_lib_switch} --enable-libogg --enable-libtheora"
4926
10870
 
4927
10871
# if cache empty (not tested or failed) and want static avcodec (then it failed) ...
4928
 
if ( `test \( \( x${ac_cv_lib_avcodec_img_convert+set} = x \) -a \( x$static_avcodec = xyes \) \)` ) ; then
 
10872
if ( `test \( \( x${ac_cv_lib_avutil_av_rescale+set} = x \) -a \( x$static_avutil = xyes \) \)` ) ; then
4929
10873
        # build embedded ffmpeg
4930
 
        echo "${MAKE-make}-ing prerequisite ffmpeg libraries" && ( cd ./ffmpeg/ && ./configure --disable-ffserver --disable-ffplay && ln -s libavcodec/avcodec.h && ln -s libavformat/avformat.h && ln -s libavformat/avio.h && ln -s libavformat/rt*.h ./ && ${MAKE-make} )
 
10874
        echo "${MAKE-make}-ing prerequisite ffmpeg libraries" && \
 
10875
        ( cd ./ffmpeg/ && \
 
10876
        ./configure --cc=${CC} --enable-gpl ${ac_my_ffmpeg_cfg_lib_switch} --enable-pthreads --enable-swscaler --disable-ffserver --disable-ffplay && \
 
10877
        ln -s libavcodec/avcodec.h ./ && \
 
10878
        ln -s libavcodec/dsputil.h ./ && \
 
10879
        ln -s libavformat/avformat.h ./ && \
 
10880
        ln -s libavformat/avio.h ./ && \
 
10881
        ln -s libavformat/rt*.h ./ && \
 
10882
        ln -s libavutil/common.h ./ && \
 
10883
        ln -s libavutil/avutil.h ./ && \
 
10884
        ln -s libavutil/mathematics.h ./ && \
 
10885
        ln -s libavutil/integer.h ./ && \
 
10886
        ln -s libavutil/intfloat_readwrite.h ./ && \
 
10887
        ln -s libavutil/rational.h ./ && \
 
10888
        ln -s libavutil/fifo.h ./ && \
 
10889
        ln -s libswscale/swscale.h ./ && \
 
10890
        ln -s libswscale/rgb2rgb.h ./ && \
 
10891
        ${MAKE-make} )
4931
10892
        # try to link it statically, or reset cache, set static_avcodec=no
4932
10893
        top_srcdir=`pwd`
4933
 
        ac_my_ldflags_save=${LDFLAGS} ; LDFLAGS="${LDFLAGS} -L$top_srcdir/ffmpeg/libavcodec -L$top_srcdir/ffmpeg/libavformat"
4934
 
        ac_my_cflags_save=${CFLAGS} ; CFLAGS="${CFLAGS} -I$top_srcdir/ffmpeg/libavcodec -I$top_srcdir/ffmpeg/libavformat"
4935
 
 
4936
 
 
4937
 
if test x$static_avcodec = xyes; then
4938
 
 
4939
 
echo "$as_me:$LINENO: checking for img_convert in -lavcodec" >&5
4940
 
echo $ECHO_N "checking for img_convert in -lavcodec... $ECHO_C" >&6
4941
 
if test "${ac_cv_lib_avcodec_img_convert+set}" = set; then
 
10894
        ac_my_ldflags_save=${LDFLAGS} ; LDFLAGS="${LDFLAGS} -L$top_srcdir/ffmpeg/libavcodec -L$top_srcdir/ffmpeg/libavformat -L$top_srcdir/ffmpeg/libavutil -L$top_srcdir/ffmpeg/libswscale"
 
10895
        ac_my_cflags_save=${CFLAGS} ; CFLAGS="${CFLAGS} -I $top_srcdir -I$top_srcdir/ffmpeg/libavcodec -I$top_srcdir/ffmpeg/libavformat -I$top_srcdir/ffmpeg/libavutil -I$top_srcdir/ffmpeg/libswscale"
 
10896
 
 
10897
 
 
10898
 
 
10899
if test x$static_avutil = xyes; then
 
10900
 
 
10901
                                { echo "$as_me:$LINENO: checking for av_rescale in -lavutil" >&5
 
10902
echo $ECHO_N "checking for av_rescale in -lavutil... $ECHO_C" >&6; }
 
10903
if test "${ac_cv_lib_avutil_av_rescale+set}" = set; then
4942
10904
  echo $ECHO_N "(cached) $ECHO_C" >&6
4943
10905
else
4944
10906
 
4945
10907
echo -n "(static?) ... "
4946
10908
ac_check_lib_save_LIBS=$LIBS
4947
 
LIBS="-Wl,-Bstatic -lavcodec -Wl,-Bdynamic  $LIBS"
 
10909
LIBS="-Wl,-Bstatic -lavutil -Wl,-Bdynamic  $LIBS"
4948
10910
cat >conftest.$ac_ext <<_ACEOF
4949
 
#line $LINENO "configure"
4950
10911
/* confdefs.h.  */
4951
10912
_ACEOF
4952
10913
cat confdefs.h >>conftest.$ac_ext
4953
10914
cat >>conftest.$ac_ext <<_ACEOF
4954
10915
/* end confdefs.h.  */
4955
10916
 
4956
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
10917
/* Override any GCC internal prototype to avoid an error.
 
10918
   Use char because int might match the return type of a GCC
 
10919
   builtin and then its argument prototype would still apply.  */
4957
10920
#ifdef __cplusplus
4958
10921
extern "C"
4959
10922
#endif
4960
 
/* We use char because int might match the return type of a gcc2
4961
 
   builtin and then its argument prototype would still apply.  */
4962
 
char img_convert ();
 
10923
char av_rescale ();
4963
10924
int
4964
10925
main ()
4965
10926
{
4966
 
img_convert ();
 
10927
return av_rescale ();
4967
10928
  ;
4968
10929
  return 0;
4969
10930
}
4970
10931
_ACEOF
4971
10932
rm -f conftest.$ac_objext conftest$ac_exeext
4972
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4973
 
  (eval $ac_link) 2>&5
4974
 
  ac_status=$?
4975
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976
 
  (exit $ac_status); } &&
4977
 
         { ac_try='test -s conftest$ac_exeext'
4978
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979
 
  (eval $ac_try) 2>&5
4980
 
  ac_status=$?
4981
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982
 
  (exit $ac_status); }; }; then
4983
 
  ac_cv_lib_avcodec_img_convert=yes
 
10933
if { (ac_try="$ac_link"
 
10934
case "(($ac_try" in
 
10935
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10936
  *) ac_try_echo=$ac_try;;
 
10937
esac
 
10938
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10939
  (eval "$ac_link") 2>conftest.er1
 
10940
  ac_status=$?
 
10941
  grep -v '^ *+' conftest.er1 >conftest.err
 
10942
  rm -f conftest.er1
 
10943
  cat conftest.err >&5
 
10944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10945
  (exit $ac_status); } && {
 
10946
         test -z "$ac_c_werror_flag" ||
 
10947
         test ! -s conftest.err
 
10948
       } && test -s conftest$ac_exeext &&
 
10949
       $as_test_x conftest$ac_exeext; then
 
10950
  ac_cv_lib_avutil_av_rescale=yes
4984
10951
else
4985
10952
  echo "$as_me: failed program was:" >&5
4986
10953
sed 's/^/| /' conftest.$ac_ext >&5
4987
10954
 
4988
 
ac_cv_lib_avcodec_img_convert=no
 
10955
        ac_cv_lib_avutil_av_rescale=no
4989
10956
fi
4990
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10957
 
 
10958
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10959
      conftest$ac_exeext conftest.$ac_ext
4991
10960
LIBS=$ac_check_lib_save_LIBS
4992
10961
 
4993
10962
fi
4994
 
echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_img_convert" >&5
4995
 
echo "${ECHO_T}$ac_cv_lib_avcodec_img_convert" >&6
 
10963
{ echo "$as_me:$LINENO: result: $ac_cv_lib_avutil_av_rescale" >&5
 
10964
echo "${ECHO_T}$ac_cv_lib_avutil_av_rescale" >&6; }
4996
10965
else
4997
 
  ac_cv_lib_avcodec_img_convert=no
 
10966
  ac_cv_lib_avutil_av_rescale=no
4998
10967
fi
4999
10968
 
5000
 
if test $ac_cv_lib_avcodec_img_convert = yes; then
 
10969
if test $ac_cv_lib_avutil_av_rescale = yes; then
5001
10970
  cat >>confdefs.h <<_ACEOF
5002
 
#define HAVE_LIBAVCODEC 1
 
10971
#define HAVE_LIBAVUTIL 1
5003
10972
_ACEOF
5004
10973
 
5005
 
  LIBS="-Wl,-Bstatic -lavcodec -Wl,-Bdynamic $LIBS"
 
10974
                LIBS="-Wl,-Bstatic -lavutil -Wl,-Bdynamic $LIBS"
5006
10975
 
5007
10976
else
5008
 
  unset ac_cv_lib_avcodec_img_convert ; static_avcodec=no ; LDFLAGS=$ac_my_ldflags_save ; CFLAGS=$ac_my_cflags_save
 
10977
  unset ac_cv_lib_avutil_av_rescale ; static_avcodec=no ; LDFLAGS=$ac_my_ldflags_save ; CFLAGS=$ac_my_cflags_save
5009
10978
fi
 
10979
 
 
10980
 
5010
10981
 
5011
10982
fi
5012
10983
 
5013
10984
# if still not found try to link dynamically
5014
 
if test x${ac_cv_lib_avcodec_img_convert+set} = x ; then
5015
 
 
5016
 
echo "$as_me:$LINENO: checking for img_convert in -lavcodec" >&5
5017
 
echo $ECHO_N "checking for img_convert in -lavcodec... $ECHO_C" >&6
5018
 
if test "${ac_cv_lib_avcodec_img_convert+set}" = set; then
5019
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5020
 
else
5021
 
  ac_check_lib_save_LIBS=$LIBS
5022
 
LIBS="-lavcodec  $LIBS"
5023
 
cat >conftest.$ac_ext <<_ACEOF
5024
 
#line $LINENO "configure"
5025
 
/* confdefs.h.  */
5026
 
_ACEOF
5027
 
cat confdefs.h >>conftest.$ac_ext
5028
 
cat >>conftest.$ac_ext <<_ACEOF
5029
 
/* end confdefs.h.  */
5030
 
 
5031
 
/* Override any gcc2 internal prototype to avoid an error.  */
5032
 
#ifdef __cplusplus
5033
 
extern "C"
5034
 
#endif
5035
 
/* We use char because int might match the return type of a gcc2
5036
 
   builtin and then its argument prototype would still apply.  */
5037
 
char img_convert ();
5038
 
int
5039
 
main ()
5040
 
{
5041
 
img_convert ();
5042
 
  ;
5043
 
  return 0;
5044
 
}
5045
 
_ACEOF
5046
 
rm -f conftest.$ac_objext conftest$ac_exeext
5047
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5048
 
  (eval $ac_link) 2>&5
5049
 
  ac_status=$?
5050
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051
 
  (exit $ac_status); } &&
5052
 
         { ac_try='test -s conftest$ac_exeext'
5053
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5054
 
  (eval $ac_try) 2>&5
5055
 
  ac_status=$?
5056
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057
 
  (exit $ac_status); }; }; then
5058
 
  ac_cv_lib_avcodec_img_convert=yes
5059
 
else
5060
 
  echo "$as_me: failed program was:" >&5
5061
 
sed 's/^/| /' conftest.$ac_ext >&5
5062
 
 
5063
 
ac_cv_lib_avcodec_img_convert=no
5064
 
fi
5065
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5066
 
LIBS=$ac_check_lib_save_LIBS
5067
 
fi
5068
 
echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_img_convert" >&5
5069
 
echo "${ECHO_T}$ac_cv_lib_avcodec_img_convert" >&6
5070
 
if test $ac_cv_lib_avcodec_img_convert = yes; then
 
10985
if test x${ac_cv_lib_avutil_av_rescale+set} = x ; then
 
10986
 
 
10987
{ echo "$as_me:$LINENO: checking for av_rescale in -lavutil" >&5
 
10988
echo $ECHO_N "checking for av_rescale in -lavutil... $ECHO_C" >&6; }
 
10989
if test "${ac_cv_lib_avutil_av_rescale+set}" = set; then
 
10990
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10991
else
 
10992
  ac_check_lib_save_LIBS=$LIBS
 
10993
LIBS="-lavutil  $LIBS"
 
10994
cat >conftest.$ac_ext <<_ACEOF
 
10995
/* confdefs.h.  */
 
10996
_ACEOF
 
10997
cat confdefs.h >>conftest.$ac_ext
 
10998
cat >>conftest.$ac_ext <<_ACEOF
 
10999
/* end confdefs.h.  */
 
11000
 
 
11001
/* Override any GCC internal prototype to avoid an error.
 
11002
   Use char because int might match the return type of a GCC
 
11003
   builtin and then its argument prototype would still apply.  */
 
11004
#ifdef __cplusplus
 
11005
extern "C"
 
11006
#endif
 
11007
char av_rescale ();
 
11008
int
 
11009
main ()
 
11010
{
 
11011
return av_rescale ();
 
11012
  ;
 
11013
  return 0;
 
11014
}
 
11015
_ACEOF
 
11016
rm -f conftest.$ac_objext conftest$ac_exeext
 
11017
if { (ac_try="$ac_link"
 
11018
case "(($ac_try" in
 
11019
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11020
  *) ac_try_echo=$ac_try;;
 
11021
esac
 
11022
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11023
  (eval "$ac_link") 2>conftest.er1
 
11024
  ac_status=$?
 
11025
  grep -v '^ *+' conftest.er1 >conftest.err
 
11026
  rm -f conftest.er1
 
11027
  cat conftest.err >&5
 
11028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11029
  (exit $ac_status); } && {
 
11030
         test -z "$ac_c_werror_flag" ||
 
11031
         test ! -s conftest.err
 
11032
       } && test -s conftest$ac_exeext &&
 
11033
       $as_test_x conftest$ac_exeext; then
 
11034
  ac_cv_lib_avutil_av_rescale=yes
 
11035
else
 
11036
  echo "$as_me: failed program was:" >&5
 
11037
sed 's/^/| /' conftest.$ac_ext >&5
 
11038
 
 
11039
        ac_cv_lib_avutil_av_rescale=no
 
11040
fi
 
11041
 
 
11042
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11043
      conftest$ac_exeext conftest.$ac_ext
 
11044
LIBS=$ac_check_lib_save_LIBS
 
11045
fi
 
11046
{ echo "$as_me:$LINENO: result: $ac_cv_lib_avutil_av_rescale" >&5
 
11047
echo "${ECHO_T}$ac_cv_lib_avutil_av_rescale" >&6; }
 
11048
if test $ac_cv_lib_avutil_av_rescale = yes; then
 
11049
  cat >>confdefs.h <<_ACEOF
 
11050
#define HAVE_LIBAVUTIL 1
 
11051
_ACEOF
 
11052
 
 
11053
  LIBS="-lavutil $LIBS"
 
11054
 
 
11055
fi
 
11056
 
 
11057
fi
 
11058
 
 
11059
# if avutil is linked statically, swscale should, too
 
11060
static_swscale=$static_avutil
 
11061
ac_my_swscale_libs=""
 
11062
test x`(uname -s)` = xSunOS && ac_my_swscale_libs="-lnsl -lsocket"
 
11063
 
 
11064
 
 
11065
 
 
11066
if test x$static_swscale = xyes; then
 
11067
 
 
11068
                                { echo "$as_me:$LINENO: checking for sws_scale in -lswscale" >&5
 
11069
echo $ECHO_N "checking for sws_scale in -lswscale... $ECHO_C" >&6; }
 
11070
if test "${ac_cv_lib_swscale_sws_scale+set}" = set; then
 
11071
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11072
else
 
11073
 
 
11074
echo -n "(static?) ... "
 
11075
ac_check_lib_save_LIBS=$LIBS
 
11076
LIBS="-Wl,-Bstatic -lswscale -Wl,-Bdynamic $ac_my_swscale_libs $LIBS"
 
11077
cat >conftest.$ac_ext <<_ACEOF
 
11078
/* confdefs.h.  */
 
11079
_ACEOF
 
11080
cat confdefs.h >>conftest.$ac_ext
 
11081
cat >>conftest.$ac_ext <<_ACEOF
 
11082
/* end confdefs.h.  */
 
11083
 
 
11084
/* Override any GCC internal prototype to avoid an error.
 
11085
   Use char because int might match the return type of a GCC
 
11086
   builtin and then its argument prototype would still apply.  */
 
11087
#ifdef __cplusplus
 
11088
extern "C"
 
11089
#endif
 
11090
char sws_scale ();
 
11091
int
 
11092
main ()
 
11093
{
 
11094
return sws_scale ();
 
11095
  ;
 
11096
  return 0;
 
11097
}
 
11098
_ACEOF
 
11099
rm -f conftest.$ac_objext conftest$ac_exeext
 
11100
if { (ac_try="$ac_link"
 
11101
case "(($ac_try" in
 
11102
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11103
  *) ac_try_echo=$ac_try;;
 
11104
esac
 
11105
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11106
  (eval "$ac_link") 2>conftest.er1
 
11107
  ac_status=$?
 
11108
  grep -v '^ *+' conftest.er1 >conftest.err
 
11109
  rm -f conftest.er1
 
11110
  cat conftest.err >&5
 
11111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11112
  (exit $ac_status); } && {
 
11113
         test -z "$ac_c_werror_flag" ||
 
11114
         test ! -s conftest.err
 
11115
       } && test -s conftest$ac_exeext &&
 
11116
       $as_test_x conftest$ac_exeext; then
 
11117
  ac_cv_lib_swscale_sws_scale=yes
 
11118
else
 
11119
  echo "$as_me: failed program was:" >&5
 
11120
sed 's/^/| /' conftest.$ac_ext >&5
 
11121
 
 
11122
        ac_cv_lib_swscale_sws_scale=no
 
11123
fi
 
11124
 
 
11125
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11126
      conftest$ac_exeext conftest.$ac_ext
 
11127
LIBS=$ac_check_lib_save_LIBS
 
11128
 
 
11129
fi
 
11130
{ echo "$as_me:$LINENO: result: $ac_cv_lib_swscale_sws_scale" >&5
 
11131
echo "${ECHO_T}$ac_cv_lib_swscale_sws_scale" >&6; }
 
11132
else
 
11133
  ac_cv_lib_swscale_sws_scale=no
 
11134
fi
 
11135
 
 
11136
if test $ac_cv_lib_swscale_sws_scale = yes; then
 
11137
  cat >>confdefs.h <<_ACEOF
 
11138
#define HAVE_LIBSWSCALE 1
 
11139
_ACEOF
 
11140
 
 
11141
                LIBS="-Wl,-Bstatic -lswscale -Wl,-Bdynamic $LIBS"
 
11142
 
 
11143
else
 
11144
  unset ac_cv_lib_swscale_sws_scale ; static_swscale=no ;
 
11145
{ echo "$as_me:$LINENO: checking for sws_scale in -lswscale" >&5
 
11146
echo $ECHO_N "checking for sws_scale in -lswscale... $ECHO_C" >&6; }
 
11147
if test "${ac_cv_lib_swscale_sws_scale+set}" = set; then
 
11148
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11149
else
 
11150
  ac_check_lib_save_LIBS=$LIBS
 
11151
LIBS="-lswscale $ac_my_swscale_libs $LIBS"
 
11152
cat >conftest.$ac_ext <<_ACEOF
 
11153
/* confdefs.h.  */
 
11154
_ACEOF
 
11155
cat confdefs.h >>conftest.$ac_ext
 
11156
cat >>conftest.$ac_ext <<_ACEOF
 
11157
/* end confdefs.h.  */
 
11158
 
 
11159
/* Override any GCC internal prototype to avoid an error.
 
11160
   Use char because int might match the return type of a GCC
 
11161
   builtin and then its argument prototype would still apply.  */
 
11162
#ifdef __cplusplus
 
11163
extern "C"
 
11164
#endif
 
11165
char sws_scale ();
 
11166
int
 
11167
main ()
 
11168
{
 
11169
return sws_scale ();
 
11170
  ;
 
11171
  return 0;
 
11172
}
 
11173
_ACEOF
 
11174
rm -f conftest.$ac_objext conftest$ac_exeext
 
11175
if { (ac_try="$ac_link"
 
11176
case "(($ac_try" in
 
11177
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11178
  *) ac_try_echo=$ac_try;;
 
11179
esac
 
11180
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11181
  (eval "$ac_link") 2>conftest.er1
 
11182
  ac_status=$?
 
11183
  grep -v '^ *+' conftest.er1 >conftest.err
 
11184
  rm -f conftest.er1
 
11185
  cat conftest.err >&5
 
11186
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11187
  (exit $ac_status); } && {
 
11188
         test -z "$ac_c_werror_flag" ||
 
11189
         test ! -s conftest.err
 
11190
       } && test -s conftest$ac_exeext &&
 
11191
       $as_test_x conftest$ac_exeext; then
 
11192
  ac_cv_lib_swscale_sws_scale=yes
 
11193
else
 
11194
  echo "$as_me: failed program was:" >&5
 
11195
sed 's/^/| /' conftest.$ac_ext >&5
 
11196
 
 
11197
        ac_cv_lib_swscale_sws_scale=no
 
11198
fi
 
11199
 
 
11200
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11201
      conftest$ac_exeext conftest.$ac_ext
 
11202
LIBS=$ac_check_lib_save_LIBS
 
11203
fi
 
11204
{ echo "$as_me:$LINENO: result: $ac_cv_lib_swscale_sws_scale" >&5
 
11205
echo "${ECHO_T}$ac_cv_lib_swscale_sws_scale" >&6; }
 
11206
if test $ac_cv_lib_swscale_sws_scale = yes; then
 
11207
  cat >>confdefs.h <<_ACEOF
 
11208
#define HAVE_LIBSWSCALE 1
 
11209
_ACEOF
 
11210
 
 
11211
  LIBS="-lswscale $LIBS"
 
11212
 
 
11213
fi
 
11214
 
 
11215
fi
 
11216
 
 
11217
 
 
11218
 
 
11219
 
 
11220
# if avutil is linked statically, avcodec should, too
 
11221
static_avcodec=$static_avutil
 
11222
ac_my_avcodec_libs=""
 
11223
test x`(uname -s)` = xSunOS && ac_my_avcodec_libs="-lnsl -lsocket"
 
11224
 
 
11225
 
 
11226
 
 
11227
if test x$static_avcodec = xyes; then
 
11228
 
 
11229
                                { echo "$as_me:$LINENO: checking for avcodec_encode_video in -lavcodec" >&5
 
11230
echo $ECHO_N "checking for avcodec_encode_video in -lavcodec... $ECHO_C" >&6; }
 
11231
if test "${ac_cv_lib_avcodec_avcodec_encode_video+set}" = set; then
 
11232
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11233
else
 
11234
 
 
11235
echo -n "(static?) ... "
 
11236
ac_check_lib_save_LIBS=$LIBS
 
11237
LIBS="-Wl,-Bstatic -lavcodec -Wl,-Bdynamic $ac_my_avcodec_libs $LIBS"
 
11238
cat >conftest.$ac_ext <<_ACEOF
 
11239
/* confdefs.h.  */
 
11240
_ACEOF
 
11241
cat confdefs.h >>conftest.$ac_ext
 
11242
cat >>conftest.$ac_ext <<_ACEOF
 
11243
/* end confdefs.h.  */
 
11244
 
 
11245
/* Override any GCC internal prototype to avoid an error.
 
11246
   Use char because int might match the return type of a GCC
 
11247
   builtin and then its argument prototype would still apply.  */
 
11248
#ifdef __cplusplus
 
11249
extern "C"
 
11250
#endif
 
11251
char avcodec_encode_video ();
 
11252
int
 
11253
main ()
 
11254
{
 
11255
return avcodec_encode_video ();
 
11256
  ;
 
11257
  return 0;
 
11258
}
 
11259
_ACEOF
 
11260
rm -f conftest.$ac_objext conftest$ac_exeext
 
11261
if { (ac_try="$ac_link"
 
11262
case "(($ac_try" in
 
11263
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11264
  *) ac_try_echo=$ac_try;;
 
11265
esac
 
11266
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11267
  (eval "$ac_link") 2>conftest.er1
 
11268
  ac_status=$?
 
11269
  grep -v '^ *+' conftest.er1 >conftest.err
 
11270
  rm -f conftest.er1
 
11271
  cat conftest.err >&5
 
11272
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11273
  (exit $ac_status); } && {
 
11274
         test -z "$ac_c_werror_flag" ||
 
11275
         test ! -s conftest.err
 
11276
       } && test -s conftest$ac_exeext &&
 
11277
       $as_test_x conftest$ac_exeext; then
 
11278
  ac_cv_lib_avcodec_avcodec_encode_video=yes
 
11279
else
 
11280
  echo "$as_me: failed program was:" >&5
 
11281
sed 's/^/| /' conftest.$ac_ext >&5
 
11282
 
 
11283
        ac_cv_lib_avcodec_avcodec_encode_video=no
 
11284
fi
 
11285
 
 
11286
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11287
      conftest$ac_exeext conftest.$ac_ext
 
11288
LIBS=$ac_check_lib_save_LIBS
 
11289
 
 
11290
fi
 
11291
{ echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_avcodec_encode_video" >&5
 
11292
echo "${ECHO_T}$ac_cv_lib_avcodec_avcodec_encode_video" >&6; }
 
11293
else
 
11294
  ac_cv_lib_avcodec_avcodec_encode_video=no
 
11295
fi
 
11296
 
 
11297
if test $ac_cv_lib_avcodec_avcodec_encode_video = yes; then
 
11298
  cat >>confdefs.h <<_ACEOF
 
11299
#define HAVE_LIBAVCODEC 1
 
11300
_ACEOF
 
11301
 
 
11302
                LIBS="-Wl,-Bstatic -lavcodec -Wl,-Bdynamic $LIBS"
 
11303
 
 
11304
else
 
11305
  unset ac_cv_lib_avcodec_avcodec_encode_video ; static_avcodec=no ;
 
11306
{ echo "$as_me:$LINENO: checking for avcodec_encode_video in -lavcodec" >&5
 
11307
echo $ECHO_N "checking for avcodec_encode_video in -lavcodec... $ECHO_C" >&6; }
 
11308
if test "${ac_cv_lib_avcodec_avcodec_encode_video+set}" = set; then
 
11309
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11310
else
 
11311
  ac_check_lib_save_LIBS=$LIBS
 
11312
LIBS="-lavcodec $ac_my_avcodec_libs $LIBS"
 
11313
cat >conftest.$ac_ext <<_ACEOF
 
11314
/* confdefs.h.  */
 
11315
_ACEOF
 
11316
cat confdefs.h >>conftest.$ac_ext
 
11317
cat >>conftest.$ac_ext <<_ACEOF
 
11318
/* end confdefs.h.  */
 
11319
 
 
11320
/* Override any GCC internal prototype to avoid an error.
 
11321
   Use char because int might match the return type of a GCC
 
11322
   builtin and then its argument prototype would still apply.  */
 
11323
#ifdef __cplusplus
 
11324
extern "C"
 
11325
#endif
 
11326
char avcodec_encode_video ();
 
11327
int
 
11328
main ()
 
11329
{
 
11330
return avcodec_encode_video ();
 
11331
  ;
 
11332
  return 0;
 
11333
}
 
11334
_ACEOF
 
11335
rm -f conftest.$ac_objext conftest$ac_exeext
 
11336
if { (ac_try="$ac_link"
 
11337
case "(($ac_try" in
 
11338
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11339
  *) ac_try_echo=$ac_try;;
 
11340
esac
 
11341
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11342
  (eval "$ac_link") 2>conftest.er1
 
11343
  ac_status=$?
 
11344
  grep -v '^ *+' conftest.er1 >conftest.err
 
11345
  rm -f conftest.er1
 
11346
  cat conftest.err >&5
 
11347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11348
  (exit $ac_status); } && {
 
11349
         test -z "$ac_c_werror_flag" ||
 
11350
         test ! -s conftest.err
 
11351
       } && test -s conftest$ac_exeext &&
 
11352
       $as_test_x conftest$ac_exeext; then
 
11353
  ac_cv_lib_avcodec_avcodec_encode_video=yes
 
11354
else
 
11355
  echo "$as_me: failed program was:" >&5
 
11356
sed 's/^/| /' conftest.$ac_ext >&5
 
11357
 
 
11358
        ac_cv_lib_avcodec_avcodec_encode_video=no
 
11359
fi
 
11360
 
 
11361
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11362
      conftest$ac_exeext conftest.$ac_ext
 
11363
LIBS=$ac_check_lib_save_LIBS
 
11364
fi
 
11365
{ echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_avcodec_encode_video" >&5
 
11366
echo "${ECHO_T}$ac_cv_lib_avcodec_avcodec_encode_video" >&6; }
 
11367
if test $ac_cv_lib_avcodec_avcodec_encode_video = yes; then
5071
11368
  cat >>confdefs.h <<_ACEOF
5072
11369
#define HAVE_LIBAVCODEC 1
5073
11370
_ACEOF
5079
11376
fi
5080
11377
 
5081
11378
 
5082
 
if test x$ac_cv_lib_avcodec_img_convert = xyes; then
5083
 
  HAVE_LIBAVCODEC_TRUE=
5084
 
  HAVE_LIBAVCODEC_FALSE='#'
5085
 
else
5086
 
  HAVE_LIBAVCODEC_TRUE='#'
5087
 
  HAVE_LIBAVCODEC_FALSE=
5088
 
fi
5089
11379
 
5090
11380
 
5091
11381
# if avcodec is linked statically, avformat should, too
5094
11384
test x`(uname -s)` = xSunOS && ac_my_avformat_libs="-lnsl -lsocket"
5095
11385
 
5096
11386
 
 
11387
 
5097
11388
if test x$static_avformat = xyes; then
5098
11389
 
5099
 
echo "$as_me:$LINENO: checking for avienc_init in -lavformat" >&5
5100
 
echo $ECHO_N "checking for avienc_init in -lavformat... $ECHO_C" >&6
5101
 
if test "${ac_cv_lib_avformat_avienc_init+set}" = set; then
 
11390
                                { echo "$as_me:$LINENO: checking for av_write_header in -lavformat" >&5
 
11391
echo $ECHO_N "checking for av_write_header in -lavformat... $ECHO_C" >&6; }
 
11392
if test "${ac_cv_lib_avformat_av_write_header+set}" = set; then
5102
11393
  echo $ECHO_N "(cached) $ECHO_C" >&6
5103
11394
else
5104
11395
 
5106
11397
ac_check_lib_save_LIBS=$LIBS
5107
11398
LIBS="-Wl,-Bstatic -lavformat -Wl,-Bdynamic $ac_my_avformat_libs $LIBS"
5108
11399
cat >conftest.$ac_ext <<_ACEOF
5109
 
#line $LINENO "configure"
5110
11400
/* confdefs.h.  */
5111
11401
_ACEOF
5112
11402
cat confdefs.h >>conftest.$ac_ext
5113
11403
cat >>conftest.$ac_ext <<_ACEOF
5114
11404
/* end confdefs.h.  */
5115
11405
 
5116
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
11406
/* Override any GCC internal prototype to avoid an error.
 
11407
   Use char because int might match the return type of a GCC
 
11408
   builtin and then its argument prototype would still apply.  */
5117
11409
#ifdef __cplusplus
5118
11410
extern "C"
5119
11411
#endif
5120
 
/* We use char because int might match the return type of a gcc2
5121
 
   builtin and then its argument prototype would still apply.  */
5122
 
char avienc_init ();
 
11412
char av_write_header ();
5123
11413
int
5124
11414
main ()
5125
11415
{
5126
 
avienc_init ();
 
11416
return av_write_header ();
5127
11417
  ;
5128
11418
  return 0;
5129
11419
}
5130
11420
_ACEOF
5131
11421
rm -f conftest.$ac_objext conftest$ac_exeext
5132
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5133
 
  (eval $ac_link) 2>&5
5134
 
  ac_status=$?
5135
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136
 
  (exit $ac_status); } &&
5137
 
         { ac_try='test -s conftest$ac_exeext'
5138
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139
 
  (eval $ac_try) 2>&5
5140
 
  ac_status=$?
5141
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142
 
  (exit $ac_status); }; }; then
5143
 
  ac_cv_lib_avformat_avienc_init=yes
 
11422
if { (ac_try="$ac_link"
 
11423
case "(($ac_try" in
 
11424
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11425
  *) ac_try_echo=$ac_try;;
 
11426
esac
 
11427
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11428
  (eval "$ac_link") 2>conftest.er1
 
11429
  ac_status=$?
 
11430
  grep -v '^ *+' conftest.er1 >conftest.err
 
11431
  rm -f conftest.er1
 
11432
  cat conftest.err >&5
 
11433
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11434
  (exit $ac_status); } && {
 
11435
         test -z "$ac_c_werror_flag" ||
 
11436
         test ! -s conftest.err
 
11437
       } && test -s conftest$ac_exeext &&
 
11438
       $as_test_x conftest$ac_exeext; then
 
11439
  ac_cv_lib_avformat_av_write_header=yes
5144
11440
else
5145
11441
  echo "$as_me: failed program was:" >&5
5146
11442
sed 's/^/| /' conftest.$ac_ext >&5
5147
11443
 
5148
 
ac_cv_lib_avformat_avienc_init=no
 
11444
        ac_cv_lib_avformat_av_write_header=no
5149
11445
fi
5150
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11446
 
 
11447
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11448
      conftest$ac_exeext conftest.$ac_ext
5151
11449
LIBS=$ac_check_lib_save_LIBS
5152
11450
 
5153
11451
fi
5154
 
echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_avienc_init" >&5
5155
 
echo "${ECHO_T}$ac_cv_lib_avformat_avienc_init" >&6
 
11452
{ echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_av_write_header" >&5
 
11453
echo "${ECHO_T}$ac_cv_lib_avformat_av_write_header" >&6; }
5156
11454
else
5157
 
  ac_cv_lib_avformat_avienc_init=no
 
11455
  ac_cv_lib_avformat_av_write_header=no
5158
11456
fi
5159
11457
 
5160
 
if test $ac_cv_lib_avformat_avienc_init = yes; then
 
11458
if test $ac_cv_lib_avformat_av_write_header = yes; then
5161
11459
  cat >>confdefs.h <<_ACEOF
5162
11460
#define HAVE_LIBAVFORMAT 1
5163
11461
_ACEOF
5164
11462
 
5165
 
  LIBS="-Wl,-Bstatic -lavformat -Wl,-Bdynamic $LIBS"
 
11463
                LIBS="-Wl,-Bstatic -lavformat -Wl,-Bdynamic $LIBS"
5166
11464
 
5167
11465
else
5168
 
  unset ac_cv_lib_avformat_avienc_init ; static_avformat=no ;
5169
 
echo "$as_me:$LINENO: checking for avienc_init in -lavformat" >&5
5170
 
echo $ECHO_N "checking for avienc_init in -lavformat... $ECHO_C" >&6
5171
 
if test "${ac_cv_lib_avformat_avienc_init+set}" = set; then
 
11466
  unset ac_cv_lib_avformat_av_write_header ; static_avformat=no ;
 
11467
{ echo "$as_me:$LINENO: checking for av_write_header in -lavformat" >&5
 
11468
echo $ECHO_N "checking for av_write_header in -lavformat... $ECHO_C" >&6; }
 
11469
if test "${ac_cv_lib_avformat_av_write_header+set}" = set; then
5172
11470
  echo $ECHO_N "(cached) $ECHO_C" >&6
5173
11471
else
5174
11472
  ac_check_lib_save_LIBS=$LIBS
5175
11473
LIBS="-lavformat $ac_my_avformat_libs $LIBS"
5176
11474
cat >conftest.$ac_ext <<_ACEOF
5177
 
#line $LINENO "configure"
5178
11475
/* confdefs.h.  */
5179
11476
_ACEOF
5180
11477
cat confdefs.h >>conftest.$ac_ext
5181
11478
cat >>conftest.$ac_ext <<_ACEOF
5182
11479
/* end confdefs.h.  */
5183
11480
 
5184
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
11481
/* Override any GCC internal prototype to avoid an error.
 
11482
   Use char because int might match the return type of a GCC
 
11483
   builtin and then its argument prototype would still apply.  */
5185
11484
#ifdef __cplusplus
5186
11485
extern "C"
5187
11486
#endif
5188
 
/* We use char because int might match the return type of a gcc2
5189
 
   builtin and then its argument prototype would still apply.  */
5190
 
char avienc_init ();
 
11487
char av_write_header ();
5191
11488
int
5192
11489
main ()
5193
11490
{
5194
 
avienc_init ();
 
11491
return av_write_header ();
5195
11492
  ;
5196
11493
  return 0;
5197
11494
}
5198
11495
_ACEOF
5199
11496
rm -f conftest.$ac_objext conftest$ac_exeext
5200
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5201
 
  (eval $ac_link) 2>&5
5202
 
  ac_status=$?
5203
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204
 
  (exit $ac_status); } &&
5205
 
         { ac_try='test -s conftest$ac_exeext'
5206
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5207
 
  (eval $ac_try) 2>&5
5208
 
  ac_status=$?
5209
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210
 
  (exit $ac_status); }; }; then
5211
 
  ac_cv_lib_avformat_avienc_init=yes
 
11497
if { (ac_try="$ac_link"
 
11498
case "(($ac_try" in
 
11499
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11500
  *) ac_try_echo=$ac_try;;
 
11501
esac
 
11502
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11503
  (eval "$ac_link") 2>conftest.er1
 
11504
  ac_status=$?
 
11505
  grep -v '^ *+' conftest.er1 >conftest.err
 
11506
  rm -f conftest.er1
 
11507
  cat conftest.err >&5
 
11508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11509
  (exit $ac_status); } && {
 
11510
         test -z "$ac_c_werror_flag" ||
 
11511
         test ! -s conftest.err
 
11512
       } && test -s conftest$ac_exeext &&
 
11513
       $as_test_x conftest$ac_exeext; then
 
11514
  ac_cv_lib_avformat_av_write_header=yes
5212
11515
else
5213
11516
  echo "$as_me: failed program was:" >&5
5214
11517
sed 's/^/| /' conftest.$ac_ext >&5
5215
11518
 
5216
 
ac_cv_lib_avformat_avienc_init=no
 
11519
        ac_cv_lib_avformat_av_write_header=no
5217
11520
fi
5218
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11521
 
 
11522
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11523
      conftest$ac_exeext conftest.$ac_ext
5219
11524
LIBS=$ac_check_lib_save_LIBS
5220
11525
fi
5221
 
echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_avienc_init" >&5
5222
 
echo "${ECHO_T}$ac_cv_lib_avformat_avienc_init" >&6
5223
 
if test $ac_cv_lib_avformat_avienc_init = yes; then
 
11526
{ echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_av_write_header" >&5
 
11527
echo "${ECHO_T}$ac_cv_lib_avformat_av_write_header" >&6; }
 
11528
if test $ac_cv_lib_avformat_av_write_header = yes; then
5224
11529
  cat >>confdefs.h <<_ACEOF
5225
11530
#define HAVE_LIBAVFORMAT 1
5226
11531
_ACEOF
5233
11538
 
5234
11539
 
5235
11540
 
5236
 
if test x$ac_cv_lib_avformat_avienc_init = xyes; then
5237
 
  HAVE_LIBAVFORMAT_TRUE=
5238
 
  HAVE_LIBAVFORMAT_FALSE='#'
 
11541
 
 
11542
 
 
11543
# only use ffmpeg if ALL required libs are present
 
11544
if ( `test x$ac_cv_lib_avcodec_avcodec_encode_video = xyes -a x$ac_cv_lib_avformat_av_write_header = xyes -a x$ac_cv_lib_avutil_av_rescale = xyes -a x$ac_cv_lib_swscale_sws_scale = xyes` ) ; then
 
11545
    ac_cv_lib_avcodec_avcodec_encode_video=yes
5239
11546
else
5240
 
  HAVE_LIBAVFORMAT_TRUE='#'
5241
 
  HAVE_LIBAVFORMAT_FALSE=
 
11547
    ac_cv_lib_avcodec_avcodec_encode_video=no
5242
11548
fi
5243
11549
 
5244
 
 
5245
 
#check for audio suport in FFMPEG
5246
 
if ( test x${ac_cv_lib_avformat_avienc_init} = xyes ) ; then
5247
 
        test x`(uname -s)` = xSunOS && ac_my_avformat_libs="-lnsl -lsocket"
5248
 
 
5249
 
if test x$static_avformat = xyes; then
5250
 
 
5251
 
echo "$as_me:$LINENO: checking for audio_init in -lavformat" >&5
5252
 
echo $ECHO_N "checking for audio_init in -lavformat... $ECHO_C" >&6
5253
 
if test "${ac_cv_lib_avformat_audio_init+set}" = set; then
 
11550
#check for audio suport in FFMPEG (only if that is present in the first place)
 
11551
# thanks to Daniel Stonier for pointing out a typo and thus fixing a bug
 
11552
# with audio detection in shared library libavformat
 
11553
if ( test x${ac_cv_lib_avcodec_avcodec_encode_video} = xyes ) ; then
 
11554
        test x`(uname -s)` = xSunOS && ac_my_avcodec_libs="-lnsl -lsocket"
 
11555
 
 
11556
 
 
11557
if test x$static_avcodec = xyes; then
 
11558
 
 
11559
                                { echo "$as_me:$LINENO: checking for avcodec_decode_audio in -lavcodec" >&5
 
11560
echo $ECHO_N "checking for avcodec_decode_audio in -lavcodec... $ECHO_C" >&6; }
 
11561
if test "${ac_cv_lib_avcodec_avcodec_decode_audio+set}" = set; then
5254
11562
  echo $ECHO_N "(cached) $ECHO_C" >&6
5255
11563
else
5256
11564
 
5257
11565
echo -n "(static?) ... "
5258
11566
ac_check_lib_save_LIBS=$LIBS
5259
 
LIBS="-Wl,-Bstatic -lavformat -Wl,-Bdynamic $ac_my_avformat_libs $LIBS"
 
11567
LIBS="-Wl,-Bstatic -lavcodec -Wl,-Bdynamic $ac_my_avcodec_libs $LIBS"
5260
11568
cat >conftest.$ac_ext <<_ACEOF
5261
 
#line $LINENO "configure"
5262
11569
/* confdefs.h.  */
5263
11570
_ACEOF
5264
11571
cat confdefs.h >>conftest.$ac_ext
5265
11572
cat >>conftest.$ac_ext <<_ACEOF
5266
11573
/* end confdefs.h.  */
5267
11574
 
5268
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
11575
/* Override any GCC internal prototype to avoid an error.
 
11576
   Use char because int might match the return type of a GCC
 
11577
   builtin and then its argument prototype would still apply.  */
5269
11578
#ifdef __cplusplus
5270
11579
extern "C"
5271
11580
#endif
5272
 
/* We use char because int might match the return type of a gcc2
5273
 
   builtin and then its argument prototype would still apply.  */
5274
 
char audio_init ();
 
11581
char avcodec_decode_audio ();
5275
11582
int
5276
11583
main ()
5277
11584
{
5278
 
audio_init ();
 
11585
return avcodec_decode_audio ();
5279
11586
  ;
5280
11587
  return 0;
5281
11588
}
5282
11589
_ACEOF
5283
11590
rm -f conftest.$ac_objext conftest$ac_exeext
5284
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5285
 
  (eval $ac_link) 2>&5
5286
 
  ac_status=$?
5287
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288
 
  (exit $ac_status); } &&
5289
 
         { ac_try='test -s conftest$ac_exeext'
5290
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291
 
  (eval $ac_try) 2>&5
5292
 
  ac_status=$?
5293
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294
 
  (exit $ac_status); }; }; then
5295
 
  ac_cv_lib_avformat_audio_init=yes
 
11591
if { (ac_try="$ac_link"
 
11592
case "(($ac_try" in
 
11593
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11594
  *) ac_try_echo=$ac_try;;
 
11595
esac
 
11596
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11597
  (eval "$ac_link") 2>conftest.er1
 
11598
  ac_status=$?
 
11599
  grep -v '^ *+' conftest.er1 >conftest.err
 
11600
  rm -f conftest.er1
 
11601
  cat conftest.err >&5
 
11602
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11603
  (exit $ac_status); } && {
 
11604
         test -z "$ac_c_werror_flag" ||
 
11605
         test ! -s conftest.err
 
11606
       } && test -s conftest$ac_exeext &&
 
11607
       $as_test_x conftest$ac_exeext; then
 
11608
  ac_cv_lib_avcodec_avcodec_decode_audio=yes
5296
11609
else
5297
11610
  echo "$as_me: failed program was:" >&5
5298
11611
sed 's/^/| /' conftest.$ac_ext >&5
5299
11612
 
5300
 
ac_cv_lib_avformat_audio_init=no
 
11613
        ac_cv_lib_avcodec_avcodec_decode_audio=no
5301
11614
fi
5302
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11615
 
 
11616
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11617
      conftest$ac_exeext conftest.$ac_ext
5303
11618
LIBS=$ac_check_lib_save_LIBS
5304
11619
 
5305
11620
fi
5306
 
echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_audio_init" >&5
5307
 
echo "${ECHO_T}$ac_cv_lib_avformat_audio_init" >&6
 
11621
{ echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_avcodec_decode_audio" >&5
 
11622
echo "${ECHO_T}$ac_cv_lib_avcodec_avcodec_decode_audio" >&6; }
5308
11623
else
5309
 
  ac_cv_lib_avformat_audio_init=no
 
11624
  ac_cv_lib_avcodec_avcodec_decode_audio=no
5310
11625
fi
5311
11626
 
5312
 
if test $ac_cv_lib_avformat_audio_init = yes; then
 
11627
if test $ac_cv_lib_avcodec_avcodec_decode_audio = yes; then
5313
11628
  ac_my_have_ffmpeg_audio="1"
5314
11629
else
5315
 
  unset ac_cv_lib_avformat_audio_open ; echo "$as_me:$LINENO: checking for audio_init in -lavformat" >&5
5316
 
echo $ECHO_N "checking for audio_init in -lavformat... $ECHO_C" >&6
5317
 
if test "${ac_cv_lib_avformat_audio_init+set}" = set; then
 
11630
  unset ac_cv_lib_avcodec_avcodec_decode_audio ; { echo "$as_me:$LINENO: checking for avcodec_decode_audio in -lavcodec" >&5
 
11631
echo $ECHO_N "checking for avcodec_decode_audio in -lavcodec... $ECHO_C" >&6; }
 
11632
if test "${ac_cv_lib_avcodec_avcodec_decode_audio+set}" = set; then
5318
11633
  echo $ECHO_N "(cached) $ECHO_C" >&6
5319
11634
else
5320
11635
  ac_check_lib_save_LIBS=$LIBS
5321
 
LIBS="-lavformat $ac_my_avformat_libs $LIBS"
 
11636
LIBS="-lavcodec $ac_my_avcodec_libs $LIBS"
5322
11637
cat >conftest.$ac_ext <<_ACEOF
5323
 
#line $LINENO "configure"
5324
11638
/* confdefs.h.  */
5325
11639
_ACEOF
5326
11640
cat confdefs.h >>conftest.$ac_ext
5327
11641
cat >>conftest.$ac_ext <<_ACEOF
5328
11642
/* end confdefs.h.  */
5329
11643
 
5330
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
11644
/* Override any GCC internal prototype to avoid an error.
 
11645
   Use char because int might match the return type of a GCC
 
11646
   builtin and then its argument prototype would still apply.  */
5331
11647
#ifdef __cplusplus
5332
11648
extern "C"
5333
11649
#endif
5334
 
/* We use char because int might match the return type of a gcc2
5335
 
   builtin and then its argument prototype would still apply.  */
5336
 
char audio_init ();
 
11650
char avcodec_decode_audio ();
5337
11651
int
5338
11652
main ()
5339
11653
{
5340
 
audio_init ();
 
11654
return avcodec_decode_audio ();
5341
11655
  ;
5342
11656
  return 0;
5343
11657
}
5344
11658
_ACEOF
5345
11659
rm -f conftest.$ac_objext conftest$ac_exeext
5346
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5347
 
  (eval $ac_link) 2>&5
5348
 
  ac_status=$?
5349
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350
 
  (exit $ac_status); } &&
5351
 
         { ac_try='test -s conftest$ac_exeext'
5352
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353
 
  (eval $ac_try) 2>&5
5354
 
  ac_status=$?
5355
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356
 
  (exit $ac_status); }; }; then
5357
 
  ac_cv_lib_avformat_audio_init=yes
 
11660
if { (ac_try="$ac_link"
 
11661
case "(($ac_try" in
 
11662
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11663
  *) ac_try_echo=$ac_try;;
 
11664
esac
 
11665
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11666
  (eval "$ac_link") 2>conftest.er1
 
11667
  ac_status=$?
 
11668
  grep -v '^ *+' conftest.er1 >conftest.err
 
11669
  rm -f conftest.er1
 
11670
  cat conftest.err >&5
 
11671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11672
  (exit $ac_status); } && {
 
11673
         test -z "$ac_c_werror_flag" ||
 
11674
         test ! -s conftest.err
 
11675
       } && test -s conftest$ac_exeext &&
 
11676
       $as_test_x conftest$ac_exeext; then
 
11677
  ac_cv_lib_avcodec_avcodec_decode_audio=yes
5358
11678
else
5359
11679
  echo "$as_me: failed program was:" >&5
5360
11680
sed 's/^/| /' conftest.$ac_ext >&5
5361
11681
 
5362
 
ac_cv_lib_avformat_audio_init=no
 
11682
        ac_cv_lib_avcodec_avcodec_decode_audio=no
5363
11683
fi
5364
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11684
 
 
11685
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11686
      conftest$ac_exeext conftest.$ac_ext
5365
11687
LIBS=$ac_check_lib_save_LIBS
5366
11688
fi
5367
 
echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_audio_init" >&5
5368
 
echo "${ECHO_T}$ac_cv_lib_avformat_audio_init" >&6
5369
 
if test $ac_cv_lib_avformat_audio_init = yes; then
 
11689
{ echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_avcodec_decode_audio" >&5
 
11690
echo "${ECHO_T}$ac_cv_lib_avcodec_avcodec_decode_audio" >&6; }
 
11691
if test $ac_cv_lib_avcodec_avcodec_decode_audio = yes; then
5370
11692
  ac_my_have_ffmpeg_audio="1"
5371
11693
else
5372
11694
  ac_my_have_ffmpeg_audio="0"
5374
11696
 
5375
11697
fi
5376
11698
 
 
11699
 
 
11700
 
5377
11701
fi
5378
11702
 
5379
 
 
 
11703
################################################################
5380
11704
# which libs were found statically
5381
 
 
5382
 
 
5383
 
if test x$static_z = xyes; then
5384
 
  STATIC_Z_TRUE=
5385
 
  STATIC_Z_FALSE='#'
5386
 
else
5387
 
  STATIC_Z_TRUE='#'
5388
 
  STATIC_Z_FALSE=
5389
 
fi
5390
 
 
5391
 
 
5392
 
 
5393
 
if test x$static_png = xyes; then
5394
 
  STATIC_PNG_TRUE=
5395
 
  STATIC_PNG_FALSE='#'
5396
 
else
5397
 
  STATIC_PNG_TRUE='#'
5398
 
  STATIC_PNG_FALSE=
5399
 
fi
5400
 
 
5401
 
 
5402
 
 
5403
 
if test x$static_jpeg = xyes; then
5404
 
  STATIC_JPEG_TRUE=
5405
 
  STATIC_JPEG_FALSE='#'
5406
 
else
5407
 
  STATIC_JPEG_TRUE='#'
5408
 
  STATIC_JPEG_FALSE=
5409
 
fi
 
11705
################################################################
5410
11706
 
5411
11707
 
5412
11708
 
5429
11725
fi
5430
11726
 
5431
11727
 
5432
 
# check for GTK2
5433
 
if ( `test x${ac_cv_with_gtk2} = xyes` ) ; then
5434
 
        echo -n "Checking for GTK2 version ... "
5435
 
        ac_my_gtk_ver=`pkg-config --modversion gtk+-2.0`
5436
 
        res=$?
5437
 
        if ( `test x${res} = x0` ) ; then
5438
 
                ac_my_gtk_ok=`echo ${ac_my_gtk_ver} | ${AWK} -F "." '{
5439
 
                        if ( ( $1 > 1 ) && ( $2 > 1 ) ) {
5440
 
                                if ( ( $2 == 2 ) && ( $3 < 1 ) ) {
5441
 
                                        print "no"
5442
 
                                } else {
5443
 
                                        print "yes"
5444
 
                                }
5445
 
                        } else {
5446
 
                                print "no"
5447
 
                        }
5448
 
                }'`
5449
 
                echo ${ac_my_gtk_ver}
5450
 
                if ( `test x${ac_my_gtk_ok} = xno` ) ; then
5451
 
                        echo "YOU CONFIGURED --WITH-GTK2 BUT NO GTK2 VERSION >= 2.2.1 CAN BE FOUND!"
5452
 
                        echo "CHECK YOUR GTK CONFIG, ESP.: pkg-config --modversion gtk+-2.0"
5453
 
                        echo "ABORTING!"
5454
 
                        exit
5455
 
                fi
5456
 
        else # pkg-config returns error
5457
 
                echo "none"
5458
 
                echo "YOU CONFIGURED --WITH-GTK2 BUT NO GTK2 VERSION >= 2.2.1 CAN BE FOUND!"
5459
 
                echo "CHECK YOUR GTK CONFIG, ESP.: pkg-config --modversion gtk+-2.0"
5460
 
                echo "ABORTING!"
5461
 
                exit
5462
 
        fi
 
11728
 
 
11729
if test x$static_avutil = xyes; then
 
11730
  STATIC_AVUTIL_TRUE=
 
11731
  STATIC_AVUTIL_FALSE='#'
 
11732
else
 
11733
  STATIC_AVUTIL_TRUE='#'
 
11734
  STATIC_AVUTIL_FALSE=
5463
11735
fi
5464
11736
 
5465
11737
 
 
11738
################################################################
 
11739
################################################################
 
11740
 
 
11741
 
 
11742
################################################################
 
11743
################################################################
5466
11744
# Checks for header files.
5467
 
echo "$as_me:$LINENO: checking for egrep" >&5
5468
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5469
 
if test "${ac_cv_prog_egrep+set}" = set; then
5470
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5471
 
else
5472
 
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5473
 
    then ac_cv_prog_egrep='grep -E'
5474
 
    else ac_cv_prog_egrep='egrep'
5475
 
    fi
5476
 
fi
5477
 
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5478
 
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5479
 
 EGREP=$ac_cv_prog_egrep
5480
 
 
5481
 
 
5482
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5483
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
11745
################################################################
 
11746
 
 
11747
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
11748
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5484
11749
if test "${ac_cv_header_stdc+set}" = set; then
5485
11750
  echo $ECHO_N "(cached) $ECHO_C" >&6
5486
11751
else
5487
11752
  cat >conftest.$ac_ext <<_ACEOF
5488
 
#line $LINENO "configure"
5489
11753
/* confdefs.h.  */
5490
11754
_ACEOF
5491
11755
cat confdefs.h >>conftest.$ac_ext
5505
11769
}
5506
11770
_ACEOF
5507
11771
rm -f conftest.$ac_objext
5508
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5509
 
  (eval $ac_compile) 2>&5
5510
 
  ac_status=$?
5511
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512
 
  (exit $ac_status); } &&
5513
 
         { ac_try='test -s conftest.$ac_objext'
5514
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515
 
  (eval $ac_try) 2>&5
5516
 
  ac_status=$?
5517
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518
 
  (exit $ac_status); }; }; then
 
11772
if { (ac_try="$ac_compile"
 
11773
case "(($ac_try" in
 
11774
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11775
  *) ac_try_echo=$ac_try;;
 
11776
esac
 
11777
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11778
  (eval "$ac_compile") 2>conftest.er1
 
11779
  ac_status=$?
 
11780
  grep -v '^ *+' conftest.er1 >conftest.err
 
11781
  rm -f conftest.er1
 
11782
  cat conftest.err >&5
 
11783
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11784
  (exit $ac_status); } && {
 
11785
         test -z "$ac_c_werror_flag" ||
 
11786
         test ! -s conftest.err
 
11787
       } && test -s conftest.$ac_objext; then
5519
11788
  ac_cv_header_stdc=yes
5520
11789
else
5521
11790
  echo "$as_me: failed program was:" >&5
5522
11791
sed 's/^/| /' conftest.$ac_ext >&5
5523
11792
 
5524
 
ac_cv_header_stdc=no
 
11793
        ac_cv_header_stdc=no
5525
11794
fi
5526
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
11795
 
 
11796
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527
11797
 
5528
11798
if test $ac_cv_header_stdc = yes; then
5529
11799
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5530
11800
  cat >conftest.$ac_ext <<_ACEOF
5531
 
#line $LINENO "configure"
5532
11801
/* confdefs.h.  */
5533
11802
_ACEOF
5534
11803
cat confdefs.h >>conftest.$ac_ext
5550
11819
if test $ac_cv_header_stdc = yes; then
5551
11820
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5552
11821
  cat >conftest.$ac_ext <<_ACEOF
5553
 
#line $LINENO "configure"
5554
11822
/* confdefs.h.  */
5555
11823
_ACEOF
5556
11824
cat confdefs.h >>conftest.$ac_ext
5575
11843
  :
5576
11844
else
5577
11845
  cat >conftest.$ac_ext <<_ACEOF
5578
 
#line $LINENO "configure"
5579
11846
/* confdefs.h.  */
5580
11847
_ACEOF
5581
11848
cat confdefs.h >>conftest.$ac_ext
5582
11849
cat >>conftest.$ac_ext <<_ACEOF
5583
11850
/* end confdefs.h.  */
5584
11851
#include <ctype.h>
 
11852
#include <stdlib.h>
5585
11853
#if ((' ' & 0x0FF) == 0x020)
5586
11854
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5587
11855
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5588
11856
#else
5589
11857
# define ISLOWER(c) \
5590
 
                   (('a' <= (c) && (c) <= 'i') \
5591
 
                     || ('j' <= (c) && (c) <= 'r') \
5592
 
                     || ('s' <= (c) && (c) <= 'z'))
 
11858
                   (('a' <= (c) && (c) <= 'i') \
 
11859
                     || ('j' <= (c) && (c) <= 'r') \
 
11860
                     || ('s' <= (c) && (c) <= 'z'))
5593
11861
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5594
11862
#endif
5595
11863
 
5600
11868
  int i;
5601
11869
  for (i = 0; i < 256; i++)
5602
11870
    if (XOR (islower (i), ISLOWER (i))
5603
 
        || toupper (i) != TOUPPER (i))
5604
 
      exit(2);
5605
 
  exit (0);
 
11871
        || toupper (i) != TOUPPER (i))
 
11872
      return 2;
 
11873
  return 0;
5606
11874
}
5607
11875
_ACEOF
5608
11876
rm -f conftest$ac_exeext
5609
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5610
 
  (eval $ac_link) 2>&5
 
11877
if { (ac_try="$ac_link"
 
11878
case "(($ac_try" in
 
11879
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11880
  *) ac_try_echo=$ac_try;;
 
11881
esac
 
11882
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11883
  (eval "$ac_link") 2>&5
5611
11884
  ac_status=$?
5612
11885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613
11886
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5614
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615
 
  (eval $ac_try) 2>&5
 
11887
  { (case "(($ac_try" in
 
11888
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11889
  *) ac_try_echo=$ac_try;;
 
11890
esac
 
11891
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11892
  (eval "$ac_try") 2>&5
5616
11893
  ac_status=$?
5617
11894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618
11895
  (exit $ac_status); }; }; then
5625
11902
( exit $ac_status )
5626
11903
ac_cv_header_stdc=no
5627
11904
fi
5628
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5629
 
fi
5630
 
fi
5631
 
fi
5632
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5633
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
11905
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
11906
fi
 
11907
 
 
11908
 
 
11909
fi
 
11910
fi
 
11911
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
11912
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5634
11913
if test $ac_cv_header_stdc = yes; then
5635
11914
 
5636
11915
cat >>confdefs.h <<\_ACEOF
5639
11918
 
5640
11919
fi
5641
11920
 
5642
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5643
 
 
5644
 
 
5645
 
 
5646
 
 
5647
 
 
5648
 
 
5649
 
 
5650
 
 
5651
 
 
5652
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5653
 
                  inttypes.h stdint.h unistd.h
5654
 
do
5655
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5656
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
5657
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5658
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5659
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5660
 
else
5661
 
  cat >conftest.$ac_ext <<_ACEOF
5662
 
#line $LINENO "configure"
5663
 
/* confdefs.h.  */
5664
 
_ACEOF
5665
 
cat confdefs.h >>conftest.$ac_ext
5666
 
cat >>conftest.$ac_ext <<_ACEOF
5667
 
/* end confdefs.h.  */
5668
 
$ac_includes_default
5669
 
 
5670
 
#include <$ac_header>
5671
 
_ACEOF
5672
 
rm -f conftest.$ac_objext
5673
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5674
 
  (eval $ac_compile) 2>&5
5675
 
  ac_status=$?
5676
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677
 
  (exit $ac_status); } &&
5678
 
         { ac_try='test -s conftest.$ac_objext'
5679
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680
 
  (eval $ac_try) 2>&5
5681
 
  ac_status=$?
5682
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683
 
  (exit $ac_status); }; }; then
5684
 
  eval "$as_ac_Header=yes"
5685
 
else
5686
 
  echo "$as_me: failed program was:" >&5
5687
 
sed 's/^/| /' conftest.$ac_ext >&5
5688
 
 
5689
 
eval "$as_ac_Header=no"
5690
 
fi
5691
 
rm -f conftest.$ac_objext conftest.$ac_ext
5692
 
fi
5693
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5694
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5695
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5696
 
  cat >>confdefs.h <<_ACEOF
5697
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5698
 
_ACEOF
5699
 
 
5700
 
fi
5701
 
 
5702
 
done
5703
 
 
5704
 
 
5705
 
 
5706
 
 
5707
 
 
5708
 
 
5709
 
 
5710
 
 
5711
 
 
5712
 
 
5713
 
 
5714
 
 
5715
 
for ac_header in fcntl.h limits.h stdlib.h string.h sys/ioctl.h sys/time.h unistd.h zlib.h sys/soundcard.h stdint.h
5716
 
do
5717
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5718
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5719
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
5720
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5721
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5722
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5723
 
fi
5724
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5725
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5726
 
else
5727
 
  # Is the header compilable?
5728
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5729
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5730
 
cat >conftest.$ac_ext <<_ACEOF
5731
 
#line $LINENO "configure"
5732
 
/* confdefs.h.  */
5733
 
_ACEOF
5734
 
cat confdefs.h >>conftest.$ac_ext
5735
 
cat >>conftest.$ac_ext <<_ACEOF
5736
 
/* end confdefs.h.  */
5737
 
$ac_includes_default
5738
 
#include <$ac_header>
5739
 
_ACEOF
5740
 
rm -f conftest.$ac_objext
5741
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5742
 
  (eval $ac_compile) 2>&5
5743
 
  ac_status=$?
5744
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745
 
  (exit $ac_status); } &&
5746
 
         { ac_try='test -s conftest.$ac_objext'
5747
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748
 
  (eval $ac_try) 2>&5
5749
 
  ac_status=$?
5750
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751
 
  (exit $ac_status); }; }; then
5752
 
  ac_header_compiler=yes
5753
 
else
5754
 
  echo "$as_me: failed program was:" >&5
5755
 
sed 's/^/| /' conftest.$ac_ext >&5
5756
 
 
5757
 
ac_header_compiler=no
5758
 
fi
5759
 
rm -f conftest.$ac_objext conftest.$ac_ext
5760
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5761
 
echo "${ECHO_T}$ac_header_compiler" >&6
5762
 
 
5763
 
# Is the header present?
5764
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5765
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5766
 
cat >conftest.$ac_ext <<_ACEOF
5767
 
#line $LINENO "configure"
5768
 
/* confdefs.h.  */
5769
 
_ACEOF
5770
 
cat confdefs.h >>conftest.$ac_ext
5771
 
cat >>conftest.$ac_ext <<_ACEOF
5772
 
/* end confdefs.h.  */
5773
 
#include <$ac_header>
5774
 
_ACEOF
5775
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5776
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5777
 
  ac_status=$?
5778
 
  grep -v '^ *+' conftest.er1 >conftest.err
5779
 
  rm -f conftest.er1
5780
 
  cat conftest.err >&5
5781
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782
 
  (exit $ac_status); } >/dev/null; then
5783
 
  if test -s conftest.err; then
5784
 
    ac_cpp_err=$ac_c_preproc_warn_flag
5785
 
  else
5786
 
    ac_cpp_err=
5787
 
  fi
5788
 
else
5789
 
  ac_cpp_err=yes
5790
 
fi
5791
 
if test -z "$ac_cpp_err"; then
5792
 
  ac_header_preproc=yes
5793
 
else
5794
 
  echo "$as_me: failed program was:" >&5
5795
 
sed 's/^/| /' conftest.$ac_ext >&5
5796
 
 
5797
 
  ac_header_preproc=no
5798
 
fi
5799
 
rm -f conftest.err conftest.$ac_ext
5800
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5801
 
echo "${ECHO_T}$ac_header_preproc" >&6
5802
 
 
5803
 
# So?  What about this header?
5804
 
case $ac_header_compiler:$ac_header_preproc in
5805
 
  yes:no )
5806
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5807
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5808
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5809
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5810
 
    (
5811
 
      cat <<\_ASBOX
5812
 
## ------------------------------------ ##
5813
 
## Report this to bug-autoconf@gnu.org. ##
5814
 
## ------------------------------------ ##
5815
 
_ASBOX
5816
 
    ) |
5817
 
      sed "s/^/$as_me: WARNING:     /" >&2
5818
 
    ;;
5819
 
  no:yes )
5820
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5821
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5822
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5823
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5824
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5825
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5826
 
    (
5827
 
      cat <<\_ASBOX
5828
 
## ------------------------------------ ##
5829
 
## Report this to bug-autoconf@gnu.org. ##
5830
 
## ------------------------------------ ##
5831
 
_ASBOX
5832
 
    ) |
5833
 
      sed "s/^/$as_me: WARNING:     /" >&2
5834
 
    ;;
5835
 
esac
5836
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
5837
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5838
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5839
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5840
 
else
5841
 
  eval "$as_ac_Header=$ac_header_preproc"
5842
 
fi
5843
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5844
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5845
 
 
5846
 
fi
5847
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5848
 
  cat >>confdefs.h <<_ACEOF
5849
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5850
 
_ACEOF
5851
 
 
5852
 
fi
5853
 
 
5854
 
done
5855
 
 
5856
 
 
5857
 
 
 
11921
 
 
11922
 
 
11923
 
 
11924
 
 
11925
 
 
11926
 
 
11927
 
 
11928
 
 
11929
for ac_header in fcntl.h limits.h stdlib.h string.h sys/ioctl.h sys/time.h unistd.h stdint.h
 
11930
do
 
11931
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11932
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
11933
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11934
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
11935
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
11936
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11937
fi
 
11938
ac_res=`eval echo '${'$as_ac_Header'}'`
 
11939
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
11940
echo "${ECHO_T}$ac_res" >&6; }
 
11941
else
 
11942
  # Is the header compilable?
 
11943
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
11944
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
11945
cat >conftest.$ac_ext <<_ACEOF
 
11946
/* confdefs.h.  */
 
11947
_ACEOF
 
11948
cat confdefs.h >>conftest.$ac_ext
 
11949
cat >>conftest.$ac_ext <<_ACEOF
 
11950
/* end confdefs.h.  */
 
11951
$ac_includes_default
 
11952
#include <$ac_header>
 
11953
_ACEOF
 
11954
rm -f conftest.$ac_objext
 
11955
if { (ac_try="$ac_compile"
 
11956
case "(($ac_try" in
 
11957
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11958
  *) ac_try_echo=$ac_try;;
 
11959
esac
 
11960
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11961
  (eval "$ac_compile") 2>conftest.er1
 
11962
  ac_status=$?
 
11963
  grep -v '^ *+' conftest.er1 >conftest.err
 
11964
  rm -f conftest.er1
 
11965
  cat conftest.err >&5
 
11966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11967
  (exit $ac_status); } && {
 
11968
         test -z "$ac_c_werror_flag" ||
 
11969
         test ! -s conftest.err
 
11970
       } && test -s conftest.$ac_objext; then
 
11971
  ac_header_compiler=yes
 
11972
else
 
11973
  echo "$as_me: failed program was:" >&5
 
11974
sed 's/^/| /' conftest.$ac_ext >&5
 
11975
 
 
11976
        ac_header_compiler=no
 
11977
fi
 
11978
 
 
11979
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11980
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
11981
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
11982
 
 
11983
# Is the header present?
 
11984
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
11985
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
11986
cat >conftest.$ac_ext <<_ACEOF
 
11987
/* confdefs.h.  */
 
11988
_ACEOF
 
11989
cat confdefs.h >>conftest.$ac_ext
 
11990
cat >>conftest.$ac_ext <<_ACEOF
 
11991
/* end confdefs.h.  */
 
11992
#include <$ac_header>
 
11993
_ACEOF
 
11994
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
11995
case "(($ac_try" in
 
11996
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11997
  *) ac_try_echo=$ac_try;;
 
11998
esac
 
11999
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12000
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
12001
  ac_status=$?
 
12002
  grep -v '^ *+' conftest.er1 >conftest.err
 
12003
  rm -f conftest.er1
 
12004
  cat conftest.err >&5
 
12005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12006
  (exit $ac_status); } >/dev/null && {
 
12007
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
12008
         test ! -s conftest.err
 
12009
       }; then
 
12010
  ac_header_preproc=yes
 
12011
else
 
12012
  echo "$as_me: failed program was:" >&5
 
12013
sed 's/^/| /' conftest.$ac_ext >&5
 
12014
 
 
12015
  ac_header_preproc=no
 
12016
fi
 
12017
 
 
12018
rm -f conftest.err conftest.$ac_ext
 
12019
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
12020
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
12021
 
 
12022
# So?  What about this header?
 
12023
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
12024
  yes:no: )
 
12025
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
12026
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
12027
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
12028
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
12029
    ac_header_preproc=yes
 
12030
    ;;
 
12031
  no:yes:* )
 
12032
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
12033
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
12034
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
12035
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
12036
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
12037
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
12038
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
12039
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
12040
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
12041
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
12042
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
12043
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
12044
 
 
12045
    ;;
 
12046
esac
 
12047
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12048
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
12049
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12050
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12051
else
 
12052
  eval "$as_ac_Header=\$ac_header_preproc"
 
12053
fi
 
12054
ac_res=`eval echo '${'$as_ac_Header'}'`
 
12055
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12056
echo "${ECHO_T}$ac_res" >&6; }
 
12057
 
 
12058
fi
 
12059
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
12060
  cat >>confdefs.h <<_ACEOF
 
12061
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12062
_ACEOF
 
12063
 
 
12064
fi
 
12065
 
 
12066
done
 
12067
 
 
12068
 
 
12069
 
 
12070
 
 
12071
 
 
12072
for ac_header in ctype.h stat.h errno.h netinet/in.h
 
12073
do
 
12074
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
12075
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12076
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12077
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
12078
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12079
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12080
fi
 
12081
ac_res=`eval echo '${'$as_ac_Header'}'`
 
12082
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12083
echo "${ECHO_T}$ac_res" >&6; }
 
12084
else
 
12085
  # Is the header compilable?
 
12086
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
12087
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
12088
cat >conftest.$ac_ext <<_ACEOF
 
12089
/* confdefs.h.  */
 
12090
_ACEOF
 
12091
cat confdefs.h >>conftest.$ac_ext
 
12092
cat >>conftest.$ac_ext <<_ACEOF
 
12093
/* end confdefs.h.  */
 
12094
$ac_includes_default
 
12095
#include <$ac_header>
 
12096
_ACEOF
 
12097
rm -f conftest.$ac_objext
 
12098
if { (ac_try="$ac_compile"
 
12099
case "(($ac_try" in
 
12100
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12101
  *) ac_try_echo=$ac_try;;
 
12102
esac
 
12103
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12104
  (eval "$ac_compile") 2>conftest.er1
 
12105
  ac_status=$?
 
12106
  grep -v '^ *+' conftest.er1 >conftest.err
 
12107
  rm -f conftest.er1
 
12108
  cat conftest.err >&5
 
12109
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12110
  (exit $ac_status); } && {
 
12111
         test -z "$ac_c_werror_flag" ||
 
12112
         test ! -s conftest.err
 
12113
       } && test -s conftest.$ac_objext; then
 
12114
  ac_header_compiler=yes
 
12115
else
 
12116
  echo "$as_me: failed program was:" >&5
 
12117
sed 's/^/| /' conftest.$ac_ext >&5
 
12118
 
 
12119
        ac_header_compiler=no
 
12120
fi
 
12121
 
 
12122
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12123
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
12124
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
12125
 
 
12126
# Is the header present?
 
12127
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
12128
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
12129
cat >conftest.$ac_ext <<_ACEOF
 
12130
/* confdefs.h.  */
 
12131
_ACEOF
 
12132
cat confdefs.h >>conftest.$ac_ext
 
12133
cat >>conftest.$ac_ext <<_ACEOF
 
12134
/* end confdefs.h.  */
 
12135
#include <$ac_header>
 
12136
_ACEOF
 
12137
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
12138
case "(($ac_try" in
 
12139
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12140
  *) ac_try_echo=$ac_try;;
 
12141
esac
 
12142
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12143
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
12144
  ac_status=$?
 
12145
  grep -v '^ *+' conftest.er1 >conftest.err
 
12146
  rm -f conftest.er1
 
12147
  cat conftest.err >&5
 
12148
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12149
  (exit $ac_status); } >/dev/null && {
 
12150
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
12151
         test ! -s conftest.err
 
12152
       }; then
 
12153
  ac_header_preproc=yes
 
12154
else
 
12155
  echo "$as_me: failed program was:" >&5
 
12156
sed 's/^/| /' conftest.$ac_ext >&5
 
12157
 
 
12158
  ac_header_preproc=no
 
12159
fi
 
12160
 
 
12161
rm -f conftest.err conftest.$ac_ext
 
12162
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
12163
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
12164
 
 
12165
# So?  What about this header?
 
12166
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
12167
  yes:no: )
 
12168
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
12169
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
12170
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
12171
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
12172
    ac_header_preproc=yes
 
12173
    ;;
 
12174
  no:yes:* )
 
12175
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
12176
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
12177
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
12178
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
12179
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
12180
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
12181
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
12182
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
12183
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
12184
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
12185
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
12186
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
12187
 
 
12188
    ;;
 
12189
esac
 
12190
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12191
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
12192
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12193
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12194
else
 
12195
  eval "$as_ac_Header=\$ac_header_preproc"
 
12196
fi
 
12197
ac_res=`eval echo '${'$as_ac_Header'}'`
 
12198
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12199
echo "${ECHO_T}$ac_res" >&6; }
 
12200
 
 
12201
fi
 
12202
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
12203
  cat >>confdefs.h <<_ACEOF
 
12204
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12205
_ACEOF
 
12206
 
 
12207
fi
 
12208
 
 
12209
done
 
12210
 
 
12211
if ( `test x${ac_cv_header_ctype_h} = xno` ) ; then
 
12212
        echo "FATAL ERROR: header file ctype.h not found and required!"
 
12213
        exit 1
 
12214
fi
 
12215
 
 
12216
################################################################
 
12217
################################################################
 
12218
 
 
12219
 
 
12220
################################################################
 
12221
################################################################
5858
12222
# Checks for typedefs, structures, and compiler characteristics.
5859
 
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5860
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
12223
################################################################
 
12224
 
 
12225
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
12226
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5861
12227
if test "${ac_cv_c_const+set}" = set; then
5862
12228
  echo $ECHO_N "(cached) $ECHO_C" >&6
5863
12229
else
5864
12230
  cat >conftest.$ac_ext <<_ACEOF
5865
 
#line $LINENO "configure"
5866
12231
/* confdefs.h.  */
5867
12232
_ACEOF
5868
12233
cat confdefs.h >>conftest.$ac_ext
5876
12241
#ifndef __cplusplus
5877
12242
  /* Ultrix mips cc rejects this.  */
5878
12243
  typedef int charset[2];
5879
 
  const charset x;
 
12244
  const charset cs;
5880
12245
  /* SunOS 4.1.1 cc rejects this.  */
5881
 
  char const *const *ccp;
5882
 
  char **p;
 
12246
  char const *const *pcpcc;
 
12247
  char **ppc;
5883
12248
  /* NEC SVR4.0.2 mips cc rejects this.  */
5884
12249
  struct point {int x, y;};
5885
12250
  static struct point const zero = {0,0};
5888
12253
     an arm of an if-expression whose if-part is not a constant
5889
12254
     expression */
5890
12255
  const char *g = "string";
5891
 
  ccp = &g + (g ? g-g : 0);
 
12256
  pcpcc = &g + (g ? g-g : 0);
5892
12257
  /* HPUX 7.0 cc rejects these. */
5893
 
  ++ccp;
5894
 
  p = (char**) ccp;
5895
 
  ccp = (char const *const *) p;
 
12258
  ++pcpcc;
 
12259
  ppc = (char**) pcpcc;
 
12260
  pcpcc = (char const *const *) ppc;
5896
12261
  { /* SCO 3.2v4 cc rejects this.  */
5897
12262
    char *t;
5898
12263
    char const *s = 0 ? (char *) 0 : (char const *) 0;
5899
12264
 
5900
12265
    *t++ = 0;
 
12266
    if (s) return 0;
5901
12267
  }
5902
12268
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5903
12269
    int x[] = {25, 17};
5916
12282
  }
5917
12283
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5918
12284
    const int foo = 10;
 
12285
    if (!foo) return 0;
5919
12286
  }
 
12287
  return !cs[0] && !zero.x;
5920
12288
#endif
5921
12289
 
5922
12290
  ;
5924
12292
}
5925
12293
_ACEOF
5926
12294
rm -f conftest.$ac_objext
5927
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5928
 
  (eval $ac_compile) 2>&5
5929
 
  ac_status=$?
5930
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931
 
  (exit $ac_status); } &&
5932
 
         { ac_try='test -s conftest.$ac_objext'
5933
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5934
 
  (eval $ac_try) 2>&5
5935
 
  ac_status=$?
5936
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937
 
  (exit $ac_status); }; }; then
 
12295
if { (ac_try="$ac_compile"
 
12296
case "(($ac_try" in
 
12297
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12298
  *) ac_try_echo=$ac_try;;
 
12299
esac
 
12300
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12301
  (eval "$ac_compile") 2>conftest.er1
 
12302
  ac_status=$?
 
12303
  grep -v '^ *+' conftest.er1 >conftest.err
 
12304
  rm -f conftest.er1
 
12305
  cat conftest.err >&5
 
12306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12307
  (exit $ac_status); } && {
 
12308
         test -z "$ac_c_werror_flag" ||
 
12309
         test ! -s conftest.err
 
12310
       } && test -s conftest.$ac_objext; then
5938
12311
  ac_cv_c_const=yes
5939
12312
else
5940
12313
  echo "$as_me: failed program was:" >&5
5941
12314
sed 's/^/| /' conftest.$ac_ext >&5
5942
12315
 
5943
 
ac_cv_c_const=no
5944
 
fi
5945
 
rm -f conftest.$ac_objext conftest.$ac_ext
5946
 
fi
5947
 
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5948
 
echo "${ECHO_T}$ac_cv_c_const" >&6
 
12316
        ac_cv_c_const=no
 
12317
fi
 
12318
 
 
12319
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12320
fi
 
12321
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
12322
echo "${ECHO_T}$ac_cv_c_const" >&6; }
5949
12323
if test $ac_cv_c_const = no; then
5950
12324
 
5951
12325
cat >>confdefs.h <<\_ACEOF
5954
12328
 
5955
12329
fi
5956
12330
 
5957
 
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5958
 
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
 
12331
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
12332
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
5959
12333
if test "${ac_cv_header_time+set}" = set; then
5960
12334
  echo $ECHO_N "(cached) $ECHO_C" >&6
5961
12335
else
5962
12336
  cat >conftest.$ac_ext <<_ACEOF
5963
 
#line $LINENO "configure"
5964
12337
/* confdefs.h.  */
5965
12338
_ACEOF
5966
12339
cat confdefs.h >>conftest.$ac_ext
5980
12353
}
5981
12354
_ACEOF
5982
12355
rm -f conftest.$ac_objext
5983
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5984
 
  (eval $ac_compile) 2>&5
5985
 
  ac_status=$?
5986
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987
 
  (exit $ac_status); } &&
5988
 
         { ac_try='test -s conftest.$ac_objext'
5989
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990
 
  (eval $ac_try) 2>&5
5991
 
  ac_status=$?
5992
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993
 
  (exit $ac_status); }; }; then
 
12356
if { (ac_try="$ac_compile"
 
12357
case "(($ac_try" in
 
12358
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12359
  *) ac_try_echo=$ac_try;;
 
12360
esac
 
12361
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12362
  (eval "$ac_compile") 2>conftest.er1
 
12363
  ac_status=$?
 
12364
  grep -v '^ *+' conftest.er1 >conftest.err
 
12365
  rm -f conftest.er1
 
12366
  cat conftest.err >&5
 
12367
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12368
  (exit $ac_status); } && {
 
12369
         test -z "$ac_c_werror_flag" ||
 
12370
         test ! -s conftest.err
 
12371
       } && test -s conftest.$ac_objext; then
5994
12372
  ac_cv_header_time=yes
5995
12373
else
5996
12374
  echo "$as_me: failed program was:" >&5
5997
12375
sed 's/^/| /' conftest.$ac_ext >&5
5998
12376
 
5999
 
ac_cv_header_time=no
6000
 
fi
6001
 
rm -f conftest.$ac_objext conftest.$ac_ext
6002
 
fi
6003
 
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6004
 
echo "${ECHO_T}$ac_cv_header_time" >&6
 
12377
        ac_cv_header_time=no
 
12378
fi
 
12379
 
 
12380
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12381
fi
 
12382
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
 
12383
echo "${ECHO_T}$ac_cv_header_time" >&6; }
6005
12384
if test $ac_cv_header_time = yes; then
6006
12385
 
6007
12386
cat >>confdefs.h <<\_ACEOF
6011
12390
fi
6012
12391
 
6013
12392
 
6014
 
 
 
12393
################################################################
 
12394
################################################################
 
12395
 
 
12396
 
 
12397
################################################################
 
12398
################################################################
6015
12399
# Checks for general library functions.
 
12400
################################################################
 
12401
 
6016
12402
if test $ac_cv_c_compiler_gnu = yes; then
6017
 
    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
6018
 
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
 
12403
    { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
 
12404
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
6019
12405
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
6020
12406
  echo $ECHO_N "(cached) $ECHO_C" >&6
6021
12407
else
6022
12408
    ac_pattern="Autoconf.*'x'"
6023
12409
  cat >conftest.$ac_ext <<_ACEOF
6024
 
#line $LINENO "configure"
6025
12410
/* confdefs.h.  */
6026
12411
_ACEOF
6027
12412
cat confdefs.h >>conftest.$ac_ext
6041
12426
 
6042
12427
  if test $ac_cv_prog_gcc_traditional = no; then
6043
12428
    cat >conftest.$ac_ext <<_ACEOF
6044
 
#line $LINENO "configure"
6045
12429
/* confdefs.h.  */
6046
12430
_ACEOF
6047
12431
cat confdefs.h >>conftest.$ac_ext
6058
12442
 
6059
12443
  fi
6060
12444
fi
6061
 
echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
6062
 
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
 
12445
{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
 
12446
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
6063
12447
  if test $ac_cv_prog_gcc_traditional = yes; then
6064
12448
    CC="$CC -traditional"
6065
12449
  fi
6069
12453
for ac_header in stdlib.h
6070
12454
do
6071
12455
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6072
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6073
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
6074
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6075
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
12456
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12457
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12458
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
12459
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6076
12460
  echo $ECHO_N "(cached) $ECHO_C" >&6
6077
12461
fi
6078
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6079
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
12462
ac_res=`eval echo '${'$as_ac_Header'}'`
 
12463
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12464
echo "${ECHO_T}$ac_res" >&6; }
6080
12465
else
6081
12466
  # Is the header compilable?
6082
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
6083
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
12467
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
12468
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6084
12469
cat >conftest.$ac_ext <<_ACEOF
6085
 
#line $LINENO "configure"
6086
12470
/* confdefs.h.  */
6087
12471
_ACEOF
6088
12472
cat confdefs.h >>conftest.$ac_ext
6092
12476
#include <$ac_header>
6093
12477
_ACEOF
6094
12478
rm -f conftest.$ac_objext
6095
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6096
 
  (eval $ac_compile) 2>&5
6097
 
  ac_status=$?
6098
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099
 
  (exit $ac_status); } &&
6100
 
         { ac_try='test -s conftest.$ac_objext'
6101
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6102
 
  (eval $ac_try) 2>&5
6103
 
  ac_status=$?
6104
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105
 
  (exit $ac_status); }; }; then
 
12479
if { (ac_try="$ac_compile"
 
12480
case "(($ac_try" in
 
12481
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12482
  *) ac_try_echo=$ac_try;;
 
12483
esac
 
12484
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12485
  (eval "$ac_compile") 2>conftest.er1
 
12486
  ac_status=$?
 
12487
  grep -v '^ *+' conftest.er1 >conftest.err
 
12488
  rm -f conftest.er1
 
12489
  cat conftest.err >&5
 
12490
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12491
  (exit $ac_status); } && {
 
12492
         test -z "$ac_c_werror_flag" ||
 
12493
         test ! -s conftest.err
 
12494
       } && test -s conftest.$ac_objext; then
6106
12495
  ac_header_compiler=yes
6107
12496
else
6108
12497
  echo "$as_me: failed program was:" >&5
6109
12498
sed 's/^/| /' conftest.$ac_ext >&5
6110
12499
 
6111
 
ac_header_compiler=no
 
12500
        ac_header_compiler=no
6112
12501
fi
6113
 
rm -f conftest.$ac_objext conftest.$ac_ext
6114
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6115
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
12502
 
 
12503
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12504
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
12505
echo "${ECHO_T}$ac_header_compiler" >&6; }
6116
12506
 
6117
12507
# Is the header present?
6118
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
6119
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
12508
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
12509
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6120
12510
cat >conftest.$ac_ext <<_ACEOF
6121
 
#line $LINENO "configure"
6122
12511
/* confdefs.h.  */
6123
12512
_ACEOF
6124
12513
cat confdefs.h >>conftest.$ac_ext
6126
12515
/* end confdefs.h.  */
6127
12516
#include <$ac_header>
6128
12517
_ACEOF
6129
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6130
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
12518
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
12519
case "(($ac_try" in
 
12520
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12521
  *) ac_try_echo=$ac_try;;
 
12522
esac
 
12523
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12524
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6131
12525
  ac_status=$?
6132
12526
  grep -v '^ *+' conftest.er1 >conftest.err
6133
12527
  rm -f conftest.er1
6134
12528
  cat conftest.err >&5
6135
12529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136
 
  (exit $ac_status); } >/dev/null; then
6137
 
  if test -s conftest.err; then
6138
 
    ac_cpp_err=$ac_c_preproc_warn_flag
6139
 
  else
6140
 
    ac_cpp_err=
6141
 
  fi
6142
 
else
6143
 
  ac_cpp_err=yes
6144
 
fi
6145
 
if test -z "$ac_cpp_err"; then
 
12530
  (exit $ac_status); } >/dev/null && {
 
12531
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
12532
         test ! -s conftest.err
 
12533
       }; then
6146
12534
  ac_header_preproc=yes
6147
12535
else
6148
12536
  echo "$as_me: failed program was:" >&5
6150
12538
 
6151
12539
  ac_header_preproc=no
6152
12540
fi
 
12541
 
6153
12542
rm -f conftest.err conftest.$ac_ext
6154
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6155
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
12543
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
12544
echo "${ECHO_T}$ac_header_preproc" >&6; }
6156
12545
 
6157
12546
# So?  What about this header?
6158
 
case $ac_header_compiler:$ac_header_preproc in
6159
 
  yes:no )
 
12547
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
12548
  yes:no: )
6160
12549
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6161
12550
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6162
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6163
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6164
 
    (
6165
 
      cat <<\_ASBOX
6166
 
## ------------------------------------ ##
6167
 
## Report this to bug-autoconf@gnu.org. ##
6168
 
## ------------------------------------ ##
6169
 
_ASBOX
6170
 
    ) |
6171
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
12551
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
12552
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
12553
    ac_header_preproc=yes
6172
12554
    ;;
6173
 
  no:yes )
 
12555
  no:yes:* )
6174
12556
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6175
12557
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6176
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6177
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
12558
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
12559
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
12560
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
12561
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
12562
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
12563
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6178
12564
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6179
12565
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6180
 
    (
6181
 
      cat <<\_ASBOX
6182
 
## ------------------------------------ ##
6183
 
## Report this to bug-autoconf@gnu.org. ##
6184
 
## ------------------------------------ ##
6185
 
_ASBOX
6186
 
    ) |
6187
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
12566
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
12567
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
12568
 
6188
12569
    ;;
6189
12570
esac
6190
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
6191
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6192
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
12571
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12572
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
12573
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6193
12574
  echo $ECHO_N "(cached) $ECHO_C" >&6
6194
12575
else
6195
 
  eval "$as_ac_Header=$ac_header_preproc"
 
12576
  eval "$as_ac_Header=\$ac_header_preproc"
6196
12577
fi
6197
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6198
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
12578
ac_res=`eval echo '${'$as_ac_Header'}'`
 
12579
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12580
echo "${ECHO_T}$ac_res" >&6; }
6199
12581
 
6200
12582
fi
6201
12583
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6207
12589
 
6208
12590
done
6209
12591
 
6210
 
echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
6211
 
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
 
12592
{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
 
12593
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
6212
12594
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
6213
12595
  echo $ECHO_N "(cached) $ECHO_C" >&6
6214
12596
else
6216
12598
  ac_cv_func_malloc_0_nonnull=no
6217
12599
else
6218
12600
  cat >conftest.$ac_ext <<_ACEOF
6219
 
#line $LINENO "configure"
6220
12601
/* confdefs.h.  */
6221
12602
_ACEOF
6222
12603
cat confdefs.h >>conftest.$ac_ext
6223
12604
cat >>conftest.$ac_ext <<_ACEOF
6224
12605
/* end confdefs.h.  */
6225
 
#if STDC_HEADERS || HAVE_STDLIB_H
 
12606
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6226
12607
# include <stdlib.h>
6227
12608
#else
6228
12609
char *malloc ();
6231
12612
int
6232
12613
main ()
6233
12614
{
6234
 
exit (malloc (0) ? 0 : 1);
 
12615
return ! malloc (0);
6235
12616
  ;
6236
12617
  return 0;
6237
12618
}
6238
12619
_ACEOF
6239
12620
rm -f conftest$ac_exeext
6240
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6241
 
  (eval $ac_link) 2>&5
 
12621
if { (ac_try="$ac_link"
 
12622
case "(($ac_try" in
 
12623
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12624
  *) ac_try_echo=$ac_try;;
 
12625
esac
 
12626
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12627
  (eval "$ac_link") 2>&5
6242
12628
  ac_status=$?
6243
12629
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244
12630
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6245
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246
 
  (eval $ac_try) 2>&5
 
12631
  { (case "(($ac_try" in
 
12632
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12633
  *) ac_try_echo=$ac_try;;
 
12634
esac
 
12635
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12636
  (eval "$ac_try") 2>&5
6247
12637
  ac_status=$?
6248
12638
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249
12639
  (exit $ac_status); }; }; then
6256
12646
( exit $ac_status )
6257
12647
ac_cv_func_malloc_0_nonnull=no
6258
12648
fi
6259
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6260
 
fi
6261
 
fi
6262
 
echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
6263
 
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
 
12649
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
12650
fi
 
12651
 
 
12652
 
 
12653
fi
 
12654
{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
 
12655
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
6264
12656
if test $ac_cv_func_malloc_0_nonnull = yes; then
6265
12657
 
6266
12658
cat >>confdefs.h <<\_ACEOF
6272
12664
#define HAVE_MALLOC 0
6273
12665
_ACEOF
6274
12666
 
6275
 
   LIBOBJS="$LIBOBJS malloc.$ac_objext"
 
12667
   case " $LIBOBJS " in
 
12668
  *" malloc.$ac_objext "* ) ;;
 
12669
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
 
12670
 ;;
 
12671
esac
 
12672
 
6276
12673
 
6277
12674
cat >>confdefs.h <<\_ACEOF
6278
12675
#define malloc rpl_malloc
6287
12684
for ac_header in stdlib.h unistd.h
6288
12685
do
6289
12686
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6290
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6291
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
6292
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6293
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
12687
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12688
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12689
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
12690
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6294
12691
  echo $ECHO_N "(cached) $ECHO_C" >&6
6295
12692
fi
6296
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6297
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
12693
ac_res=`eval echo '${'$as_ac_Header'}'`
 
12694
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12695
echo "${ECHO_T}$ac_res" >&6; }
6298
12696
else
6299
12697
  # Is the header compilable?
6300
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
6301
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
12698
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
12699
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6302
12700
cat >conftest.$ac_ext <<_ACEOF
6303
 
#line $LINENO "configure"
6304
12701
/* confdefs.h.  */
6305
12702
_ACEOF
6306
12703
cat confdefs.h >>conftest.$ac_ext
6310
12707
#include <$ac_header>
6311
12708
_ACEOF
6312
12709
rm -f conftest.$ac_objext
6313
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6314
 
  (eval $ac_compile) 2>&5
6315
 
  ac_status=$?
6316
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317
 
  (exit $ac_status); } &&
6318
 
         { ac_try='test -s conftest.$ac_objext'
6319
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320
 
  (eval $ac_try) 2>&5
6321
 
  ac_status=$?
6322
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323
 
  (exit $ac_status); }; }; then
 
12710
if { (ac_try="$ac_compile"
 
12711
case "(($ac_try" in
 
12712
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12713
  *) ac_try_echo=$ac_try;;
 
12714
esac
 
12715
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12716
  (eval "$ac_compile") 2>conftest.er1
 
12717
  ac_status=$?
 
12718
  grep -v '^ *+' conftest.er1 >conftest.err
 
12719
  rm -f conftest.er1
 
12720
  cat conftest.err >&5
 
12721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12722
  (exit $ac_status); } && {
 
12723
         test -z "$ac_c_werror_flag" ||
 
12724
         test ! -s conftest.err
 
12725
       } && test -s conftest.$ac_objext; then
6324
12726
  ac_header_compiler=yes
6325
12727
else
6326
12728
  echo "$as_me: failed program was:" >&5
6327
12729
sed 's/^/| /' conftest.$ac_ext >&5
6328
12730
 
6329
 
ac_header_compiler=no
 
12731
        ac_header_compiler=no
6330
12732
fi
6331
 
rm -f conftest.$ac_objext conftest.$ac_ext
6332
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6333
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
12733
 
 
12734
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12735
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
12736
echo "${ECHO_T}$ac_header_compiler" >&6; }
6334
12737
 
6335
12738
# Is the header present?
6336
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
6337
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
12739
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
12740
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6338
12741
cat >conftest.$ac_ext <<_ACEOF
6339
 
#line $LINENO "configure"
6340
12742
/* confdefs.h.  */
6341
12743
_ACEOF
6342
12744
cat confdefs.h >>conftest.$ac_ext
6344
12746
/* end confdefs.h.  */
6345
12747
#include <$ac_header>
6346
12748
_ACEOF
6347
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6348
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
12749
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
12750
case "(($ac_try" in
 
12751
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12752
  *) ac_try_echo=$ac_try;;
 
12753
esac
 
12754
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12755
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6349
12756
  ac_status=$?
6350
12757
  grep -v '^ *+' conftest.er1 >conftest.err
6351
12758
  rm -f conftest.er1
6352
12759
  cat conftest.err >&5
6353
12760
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354
 
  (exit $ac_status); } >/dev/null; then
6355
 
  if test -s conftest.err; then
6356
 
    ac_cpp_err=$ac_c_preproc_warn_flag
6357
 
  else
6358
 
    ac_cpp_err=
6359
 
  fi
6360
 
else
6361
 
  ac_cpp_err=yes
6362
 
fi
6363
 
if test -z "$ac_cpp_err"; then
 
12761
  (exit $ac_status); } >/dev/null && {
 
12762
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
12763
         test ! -s conftest.err
 
12764
       }; then
6364
12765
  ac_header_preproc=yes
6365
12766
else
6366
12767
  echo "$as_me: failed program was:" >&5
6368
12769
 
6369
12770
  ac_header_preproc=no
6370
12771
fi
 
12772
 
6371
12773
rm -f conftest.err conftest.$ac_ext
6372
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6373
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
12774
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
12775
echo "${ECHO_T}$ac_header_preproc" >&6; }
6374
12776
 
6375
12777
# So?  What about this header?
6376
 
case $ac_header_compiler:$ac_header_preproc in
6377
 
  yes:no )
 
12778
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
12779
  yes:no: )
6378
12780
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6379
12781
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6380
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6381
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6382
 
    (
6383
 
      cat <<\_ASBOX
6384
 
## ------------------------------------ ##
6385
 
## Report this to bug-autoconf@gnu.org. ##
6386
 
## ------------------------------------ ##
6387
 
_ASBOX
6388
 
    ) |
6389
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
12782
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
12783
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
12784
    ac_header_preproc=yes
6390
12785
    ;;
6391
 
  no:yes )
 
12786
  no:yes:* )
6392
12787
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6393
12788
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6394
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6395
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
12789
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
12790
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
12791
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
12792
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
12793
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
12794
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6396
12795
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6397
12796
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6398
 
    (
6399
 
      cat <<\_ASBOX
6400
 
## ------------------------------------ ##
6401
 
## Report this to bug-autoconf@gnu.org. ##
6402
 
## ------------------------------------ ##
6403
 
_ASBOX
6404
 
    ) |
6405
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
12797
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
12798
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
12799
 
6406
12800
    ;;
6407
12801
esac
6408
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
6409
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6410
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
12802
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12803
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
12804
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6411
12805
  echo $ECHO_N "(cached) $ECHO_C" >&6
6412
12806
else
6413
 
  eval "$as_ac_Header=$ac_header_preproc"
 
12807
  eval "$as_ac_Header=\$ac_header_preproc"
6414
12808
fi
6415
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6416
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
12809
ac_res=`eval echo '${'$as_ac_Header'}'`
 
12810
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12811
echo "${ECHO_T}$ac_res" >&6; }
6417
12812
 
6418
12813
fi
6419
12814
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6429
12824
for ac_func in getpagesize
6430
12825
do
6431
12826
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6432
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
6433
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6434
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
12827
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
12828
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
12829
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6435
12830
  echo $ECHO_N "(cached) $ECHO_C" >&6
6436
12831
else
6437
12832
  cat >conftest.$ac_ext <<_ACEOF
6438
 
#line $LINENO "configure"
6439
12833
/* confdefs.h.  */
6440
12834
_ACEOF
6441
12835
cat confdefs.h >>conftest.$ac_ext
6442
12836
cat >>conftest.$ac_ext <<_ACEOF
6443
12837
/* end confdefs.h.  */
 
12838
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
12839
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12840
#define $ac_func innocuous_$ac_func
 
12841
 
6444
12842
/* System header to define __stub macros and hopefully few prototypes,
6445
12843
    which can conflict with char $ac_func (); below.
6446
12844
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6447
12845
    <limits.h> exists even on freestanding compilers.  */
 
12846
 
6448
12847
#ifdef __STDC__
6449
12848
# include <limits.h>
6450
12849
#else
6451
12850
# include <assert.h>
6452
12851
#endif
6453
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
12852
 
 
12853
#undef $ac_func
 
12854
 
 
12855
/* Override any GCC internal prototype to avoid an error.
 
12856
   Use char because int might match the return type of a GCC
 
12857
   builtin and then its argument prototype would still apply.  */
6454
12858
#ifdef __cplusplus
6455
12859
extern "C"
6456
 
{
6457
12860
#endif
6458
 
/* We use char because int might match the return type of a gcc2
6459
 
   builtin and then its argument prototype would still apply.  */
6460
12861
char $ac_func ();
6461
12862
/* The GNU C library defines this for functions which it implements
6462
12863
    to always fail with ENOSYS.  Some functions are actually named
6463
12864
    something starting with __ and the normal name is an alias.  */
6464
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
12865
#if defined __stub_$ac_func || defined __stub___$ac_func
6465
12866
choke me
6466
 
#else
6467
 
char (*f) () = $ac_func;
6468
 
#endif
6469
 
#ifdef __cplusplus
6470
 
}
6471
12867
#endif
6472
12868
 
6473
12869
int
6474
12870
main ()
6475
12871
{
6476
 
return f != $ac_func;
 
12872
return $ac_func ();
6477
12873
  ;
6478
12874
  return 0;
6479
12875
}
6480
12876
_ACEOF
6481
12877
rm -f conftest.$ac_objext conftest$ac_exeext
6482
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6483
 
  (eval $ac_link) 2>&5
6484
 
  ac_status=$?
6485
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486
 
  (exit $ac_status); } &&
6487
 
         { ac_try='test -s conftest$ac_exeext'
6488
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489
 
  (eval $ac_try) 2>&5
6490
 
  ac_status=$?
6491
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492
 
  (exit $ac_status); }; }; then
 
12878
if { (ac_try="$ac_link"
 
12879
case "(($ac_try" in
 
12880
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12881
  *) ac_try_echo=$ac_try;;
 
12882
esac
 
12883
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12884
  (eval "$ac_link") 2>conftest.er1
 
12885
  ac_status=$?
 
12886
  grep -v '^ *+' conftest.er1 >conftest.err
 
12887
  rm -f conftest.er1
 
12888
  cat conftest.err >&5
 
12889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12890
  (exit $ac_status); } && {
 
12891
         test -z "$ac_c_werror_flag" ||
 
12892
         test ! -s conftest.err
 
12893
       } && test -s conftest$ac_exeext &&
 
12894
       $as_test_x conftest$ac_exeext; then
6493
12895
  eval "$as_ac_var=yes"
6494
12896
else
6495
12897
  echo "$as_me: failed program was:" >&5
6496
12898
sed 's/^/| /' conftest.$ac_ext >&5
6497
12899
 
6498
 
eval "$as_ac_var=no"
6499
 
fi
6500
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6501
 
fi
6502
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6503
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
12900
        eval "$as_ac_var=no"
 
12901
fi
 
12902
 
 
12903
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12904
      conftest$ac_exeext conftest.$ac_ext
 
12905
fi
 
12906
ac_res=`eval echo '${'$as_ac_var'}'`
 
12907
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12908
echo "${ECHO_T}$ac_res" >&6; }
6504
12909
if test `eval echo '${'$as_ac_var'}'` = yes; then
6505
12910
  cat >>confdefs.h <<_ACEOF
6506
12911
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6509
12914
fi
6510
12915
done
6511
12916
 
6512
 
echo "$as_me:$LINENO: checking for working mmap" >&5
6513
 
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
 
12917
{ echo "$as_me:$LINENO: checking for working mmap" >&5
 
12918
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6514
12919
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6515
12920
  echo $ECHO_N "(cached) $ECHO_C" >&6
6516
12921
else
6518
12923
  ac_cv_func_mmap_fixed_mapped=no
6519
12924
else
6520
12925
  cat >conftest.$ac_ext <<_ACEOF
6521
 
#line $LINENO "configure"
6522
12926
/* confdefs.h.  */
6523
12927
_ACEOF
6524
12928
cat confdefs.h >>conftest.$ac_ext
6553
12957
#include <fcntl.h>
6554
12958
#include <sys/mman.h>
6555
12959
 
6556
 
#if !STDC_HEADERS && !HAVE_STDLIB_H
 
12960
#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6557
12961
char *malloc ();
6558
12962
#endif
6559
12963
 
6560
12964
/* This mess was copied from the GNU getpagesize.h.  */
6561
 
#if !HAVE_GETPAGESIZE
 
12965
#ifndef HAVE_GETPAGESIZE
6562
12966
/* Assume that all systems that can run configure have sys/param.h.  */
6563
 
# if !HAVE_SYS_PARAM_H
 
12967
# ifndef HAVE_SYS_PARAM_H
6564
12968
#  define HAVE_SYS_PARAM_H 1
6565
12969
# endif
6566
12970
 
6567
12971
# ifdef _SC_PAGESIZE
6568
12972
#  define getpagesize() sysconf(_SC_PAGESIZE)
6569
12973
# else /* no _SC_PAGESIZE */
6570
 
#  if HAVE_SYS_PARAM_H
 
12974
#  ifdef HAVE_SYS_PARAM_H
6571
12975
#   include <sys/param.h>
6572
12976
#   ifdef EXEC_PAGESIZE
6573
12977
#    define getpagesize() EXEC_PAGESIZE
6606
13010
  /* First, make a file with some known garbage in it. */
6607
13011
  data = (char *) malloc (pagesize);
6608
13012
  if (!data)
6609
 
    exit (1);
 
13013
    return 1;
6610
13014
  for (i = 0; i < pagesize; ++i)
6611
13015
    *(data + i) = rand ();
6612
13016
  umask (0);
6613
13017
  fd = creat ("conftest.mmap", 0600);
6614
13018
  if (fd < 0)
6615
 
    exit (1);
 
13019
    return 1;
6616
13020
  if (write (fd, data, pagesize) != pagesize)
6617
 
    exit (1);
 
13021
    return 1;
6618
13022
  close (fd);
6619
13023
 
6620
13024
  /* Next, try to mmap the file at a fixed address which already has
6622
13026
     we see the same garbage.  */
6623
13027
  fd = open ("conftest.mmap", O_RDWR);
6624
13028
  if (fd < 0)
6625
 
    exit (1);
 
13029
    return 1;
6626
13030
  data2 = (char *) malloc (2 * pagesize);
6627
13031
  if (!data2)
6628
 
    exit (1);
6629
 
  data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
 
13032
    return 1;
 
13033
  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6630
13034
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6631
 
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
6632
 
    exit (1);
 
13035
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
 
13036
    return 1;
6633
13037
  for (i = 0; i < pagesize; ++i)
6634
13038
    if (*(data + i) != *(data2 + i))
6635
 
      exit (1);
 
13039
      return 1;
6636
13040
 
6637
13041
  /* Finally, make sure that changes to the mapped area do not
6638
13042
     percolate back to the file as seen by read().  (This is a bug on
6641
13045
    *(data2 + i) = *(data2 + i) + 1;
6642
13046
  data3 = (char *) malloc (pagesize);
6643
13047
  if (!data3)
6644
 
    exit (1);
 
13048
    return 1;
6645
13049
  if (read (fd, data3, pagesize) != pagesize)
6646
 
    exit (1);
 
13050
    return 1;
6647
13051
  for (i = 0; i < pagesize; ++i)
6648
13052
    if (*(data + i) != *(data3 + i))
6649
 
      exit (1);
 
13053
      return 1;
6650
13054
  close (fd);
6651
 
  exit (0);
 
13055
  return 0;
6652
13056
}
6653
13057
_ACEOF
6654
13058
rm -f conftest$ac_exeext
6655
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6656
 
  (eval $ac_link) 2>&5
 
13059
if { (ac_try="$ac_link"
 
13060
case "(($ac_try" in
 
13061
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13062
  *) ac_try_echo=$ac_try;;
 
13063
esac
 
13064
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13065
  (eval "$ac_link") 2>&5
6657
13066
  ac_status=$?
6658
13067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659
13068
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6660
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661
 
  (eval $ac_try) 2>&5
 
13069
  { (case "(($ac_try" in
 
13070
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13071
  *) ac_try_echo=$ac_try;;
 
13072
esac
 
13073
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13074
  (eval "$ac_try") 2>&5
6662
13075
  ac_status=$?
6663
13076
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664
13077
  (exit $ac_status); }; }; then
6671
13084
( exit $ac_status )
6672
13085
ac_cv_func_mmap_fixed_mapped=no
6673
13086
fi
6674
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6675
 
fi
6676
 
fi
6677
 
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6678
 
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
 
13087
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
13088
fi
 
13089
 
 
13090
 
 
13091
fi
 
13092
{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
 
13093
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6679
13094
if test $ac_cv_func_mmap_fixed_mapped = yes; then
6680
13095
 
6681
13096
cat >>confdefs.h <<\_ACEOF
6689
13104
for ac_header in stdlib.h
6690
13105
do
6691
13106
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6692
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6693
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
6694
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6695
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
13107
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13108
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13109
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
13110
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6696
13111
  echo $ECHO_N "(cached) $ECHO_C" >&6
6697
13112
fi
6698
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6699
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
13113
ac_res=`eval echo '${'$as_ac_Header'}'`
 
13114
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
13115
echo "${ECHO_T}$ac_res" >&6; }
6700
13116
else
6701
13117
  # Is the header compilable?
6702
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
6703
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
13118
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
13119
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6704
13120
cat >conftest.$ac_ext <<_ACEOF
6705
 
#line $LINENO "configure"
6706
13121
/* confdefs.h.  */
6707
13122
_ACEOF
6708
13123
cat confdefs.h >>conftest.$ac_ext
6712
13127
#include <$ac_header>
6713
13128
_ACEOF
6714
13129
rm -f conftest.$ac_objext
6715
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6716
 
  (eval $ac_compile) 2>&5
6717
 
  ac_status=$?
6718
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719
 
  (exit $ac_status); } &&
6720
 
         { ac_try='test -s conftest.$ac_objext'
6721
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722
 
  (eval $ac_try) 2>&5
6723
 
  ac_status=$?
6724
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725
 
  (exit $ac_status); }; }; then
 
13130
if { (ac_try="$ac_compile"
 
13131
case "(($ac_try" in
 
13132
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13133
  *) ac_try_echo=$ac_try;;
 
13134
esac
 
13135
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13136
  (eval "$ac_compile") 2>conftest.er1
 
13137
  ac_status=$?
 
13138
  grep -v '^ *+' conftest.er1 >conftest.err
 
13139
  rm -f conftest.er1
 
13140
  cat conftest.err >&5
 
13141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13142
  (exit $ac_status); } && {
 
13143
         test -z "$ac_c_werror_flag" ||
 
13144
         test ! -s conftest.err
 
13145
       } && test -s conftest.$ac_objext; then
6726
13146
  ac_header_compiler=yes
6727
13147
else
6728
13148
  echo "$as_me: failed program was:" >&5
6729
13149
sed 's/^/| /' conftest.$ac_ext >&5
6730
13150
 
6731
 
ac_header_compiler=no
 
13151
        ac_header_compiler=no
6732
13152
fi
6733
 
rm -f conftest.$ac_objext conftest.$ac_ext
6734
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6735
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
13153
 
 
13154
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13155
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
13156
echo "${ECHO_T}$ac_header_compiler" >&6; }
6736
13157
 
6737
13158
# Is the header present?
6738
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
6739
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
13159
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
13160
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6740
13161
cat >conftest.$ac_ext <<_ACEOF
6741
 
#line $LINENO "configure"
6742
13162
/* confdefs.h.  */
6743
13163
_ACEOF
6744
13164
cat confdefs.h >>conftest.$ac_ext
6746
13166
/* end confdefs.h.  */
6747
13167
#include <$ac_header>
6748
13168
_ACEOF
6749
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6750
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
13169
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
13170
case "(($ac_try" in
 
13171
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13172
  *) ac_try_echo=$ac_try;;
 
13173
esac
 
13174
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13175
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6751
13176
  ac_status=$?
6752
13177
  grep -v '^ *+' conftest.er1 >conftest.err
6753
13178
  rm -f conftest.er1
6754
13179
  cat conftest.err >&5
6755
13180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756
 
  (exit $ac_status); } >/dev/null; then
6757
 
  if test -s conftest.err; then
6758
 
    ac_cpp_err=$ac_c_preproc_warn_flag
6759
 
  else
6760
 
    ac_cpp_err=
6761
 
  fi
6762
 
else
6763
 
  ac_cpp_err=yes
6764
 
fi
6765
 
if test -z "$ac_cpp_err"; then
 
13181
  (exit $ac_status); } >/dev/null && {
 
13182
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
13183
         test ! -s conftest.err
 
13184
       }; then
6766
13185
  ac_header_preproc=yes
6767
13186
else
6768
13187
  echo "$as_me: failed program was:" >&5
6770
13189
 
6771
13190
  ac_header_preproc=no
6772
13191
fi
 
13192
 
6773
13193
rm -f conftest.err conftest.$ac_ext
6774
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6775
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
13194
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
13195
echo "${ECHO_T}$ac_header_preproc" >&6; }
6776
13196
 
6777
13197
# So?  What about this header?
6778
 
case $ac_header_compiler:$ac_header_preproc in
6779
 
  yes:no )
 
13198
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
13199
  yes:no: )
6780
13200
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6781
13201
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6782
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6783
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6784
 
    (
6785
 
      cat <<\_ASBOX
6786
 
## ------------------------------------ ##
6787
 
## Report this to bug-autoconf@gnu.org. ##
6788
 
## ------------------------------------ ##
6789
 
_ASBOX
6790
 
    ) |
6791
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
13202
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
13203
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
13204
    ac_header_preproc=yes
6792
13205
    ;;
6793
 
  no:yes )
 
13206
  no:yes:* )
6794
13207
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6795
13208
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6796
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6797
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
13209
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
13210
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
13211
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
13212
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
13213
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
13214
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6798
13215
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6799
13216
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6800
 
    (
6801
 
      cat <<\_ASBOX
6802
 
## ------------------------------------ ##
6803
 
## Report this to bug-autoconf@gnu.org. ##
6804
 
## ------------------------------------ ##
6805
 
_ASBOX
6806
 
    ) |
6807
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
13217
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
13218
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
13219
 
6808
13220
    ;;
6809
13221
esac
6810
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
6811
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6812
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
13222
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13223
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
13224
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6813
13225
  echo $ECHO_N "(cached) $ECHO_C" >&6
6814
13226
else
6815
 
  eval "$as_ac_Header=$ac_header_preproc"
 
13227
  eval "$as_ac_Header=\$ac_header_preproc"
6816
13228
fi
6817
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6818
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
13229
ac_res=`eval echo '${'$as_ac_Header'}'`
 
13230
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
13231
echo "${ECHO_T}$ac_res" >&6; }
6819
13232
 
6820
13233
fi
6821
13234
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6827
13240
 
6828
13241
done
6829
13242
 
6830
 
echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
6831
 
echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
 
13243
{ echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
 
13244
echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
6832
13245
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
6833
13246
  echo $ECHO_N "(cached) $ECHO_C" >&6
6834
13247
else
6836
13249
  ac_cv_func_realloc_0_nonnull=no
6837
13250
else
6838
13251
  cat >conftest.$ac_ext <<_ACEOF
6839
 
#line $LINENO "configure"
6840
13252
/* confdefs.h.  */
6841
13253
_ACEOF
6842
13254
cat confdefs.h >>conftest.$ac_ext
6843
13255
cat >>conftest.$ac_ext <<_ACEOF
6844
13256
/* end confdefs.h.  */
6845
 
#if STDC_HEADERS || HAVE_STDLIB_H
 
13257
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6846
13258
# include <stdlib.h>
6847
13259
#else
6848
13260
char *realloc ();
6851
13263
int
6852
13264
main ()
6853
13265
{
6854
 
exit (realloc (0, 0) ? 0 : 1);
 
13266
return ! realloc (0, 0);
6855
13267
  ;
6856
13268
  return 0;
6857
13269
}
6858
13270
_ACEOF
6859
13271
rm -f conftest$ac_exeext
6860
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6861
 
  (eval $ac_link) 2>&5
 
13272
if { (ac_try="$ac_link"
 
13273
case "(($ac_try" in
 
13274
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13275
  *) ac_try_echo=$ac_try;;
 
13276
esac
 
13277
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13278
  (eval "$ac_link") 2>&5
6862
13279
  ac_status=$?
6863
13280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864
13281
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6865
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6866
 
  (eval $ac_try) 2>&5
 
13282
  { (case "(($ac_try" in
 
13283
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13284
  *) ac_try_echo=$ac_try;;
 
13285
esac
 
13286
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13287
  (eval "$ac_try") 2>&5
6867
13288
  ac_status=$?
6868
13289
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869
13290
  (exit $ac_status); }; }; then
6876
13297
( exit $ac_status )
6877
13298
ac_cv_func_realloc_0_nonnull=no
6878
13299
fi
6879
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6880
 
fi
6881
 
fi
6882
 
echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
6883
 
echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
 
13300
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
13301
fi
 
13302
 
 
13303
 
 
13304
fi
 
13305
{ echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
 
13306
echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
6884
13307
if test $ac_cv_func_realloc_0_nonnull = yes; then
6885
13308
 
6886
13309
cat >>confdefs.h <<\_ACEOF
6892
13315
#define HAVE_REALLOC 0
6893
13316
_ACEOF
6894
13317
 
6895
 
   LIBOBJS="$LIBOBJS realloc.$ac_objext"
 
13318
   case " $LIBOBJS " in
 
13319
  *" realloc.$ac_objext "* ) ;;
 
13320
  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
 
13321
 ;;
 
13322
esac
 
13323
 
6896
13324
 
6897
13325
cat >>confdefs.h <<\_ACEOF
6898
13326
#define realloc rpl_realloc
6915
13343
for ac_func in fdatasync gettimeofday memmove memset munmap strcasecmp strchr strdup strstr getopt_long
6916
13344
do
6917
13345
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6918
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
6919
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6920
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
13346
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
13347
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
13348
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6921
13349
  echo $ECHO_N "(cached) $ECHO_C" >&6
6922
13350
else
6923
13351
  cat >conftest.$ac_ext <<_ACEOF
6924
 
#line $LINENO "configure"
6925
13352
/* confdefs.h.  */
6926
13353
_ACEOF
6927
13354
cat confdefs.h >>conftest.$ac_ext
6928
13355
cat >>conftest.$ac_ext <<_ACEOF
6929
13356
/* end confdefs.h.  */
 
13357
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
13358
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13359
#define $ac_func innocuous_$ac_func
 
13360
 
6930
13361
/* System header to define __stub macros and hopefully few prototypes,
6931
13362
    which can conflict with char $ac_func (); below.
6932
13363
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6933
13364
    <limits.h> exists even on freestanding compilers.  */
 
13365
 
6934
13366
#ifdef __STDC__
6935
13367
# include <limits.h>
6936
13368
#else
6937
13369
# include <assert.h>
6938
13370
#endif
6939
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
13371
 
 
13372
#undef $ac_func
 
13373
 
 
13374
/* Override any GCC internal prototype to avoid an error.
 
13375
   Use char because int might match the return type of a GCC
 
13376
   builtin and then its argument prototype would still apply.  */
6940
13377
#ifdef __cplusplus
6941
13378
extern "C"
6942
 
{
6943
13379
#endif
6944
 
/* We use char because int might match the return type of a gcc2
6945
 
   builtin and then its argument prototype would still apply.  */
6946
13380
char $ac_func ();
6947
13381
/* The GNU C library defines this for functions which it implements
6948
13382
    to always fail with ENOSYS.  Some functions are actually named
6949
13383
    something starting with __ and the normal name is an alias.  */
6950
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
13384
#if defined __stub_$ac_func || defined __stub___$ac_func
6951
13385
choke me
6952
 
#else
6953
 
char (*f) () = $ac_func;
6954
 
#endif
6955
 
#ifdef __cplusplus
6956
 
}
6957
13386
#endif
6958
13387
 
6959
13388
int
6960
13389
main ()
6961
13390
{
6962
 
return f != $ac_func;
 
13391
return $ac_func ();
6963
13392
  ;
6964
13393
  return 0;
6965
13394
}
6966
13395
_ACEOF
6967
13396
rm -f conftest.$ac_objext conftest$ac_exeext
6968
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6969
 
  (eval $ac_link) 2>&5
6970
 
  ac_status=$?
6971
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972
 
  (exit $ac_status); } &&
6973
 
         { ac_try='test -s conftest$ac_exeext'
6974
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6975
 
  (eval $ac_try) 2>&5
6976
 
  ac_status=$?
6977
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978
 
  (exit $ac_status); }; }; then
 
13397
if { (ac_try="$ac_link"
 
13398
case "(($ac_try" in
 
13399
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13400
  *) ac_try_echo=$ac_try;;
 
13401
esac
 
13402
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13403
  (eval "$ac_link") 2>conftest.er1
 
13404
  ac_status=$?
 
13405
  grep -v '^ *+' conftest.er1 >conftest.err
 
13406
  rm -f conftest.er1
 
13407
  cat conftest.err >&5
 
13408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13409
  (exit $ac_status); } && {
 
13410
         test -z "$ac_c_werror_flag" ||
 
13411
         test ! -s conftest.err
 
13412
       } && test -s conftest$ac_exeext &&
 
13413
       $as_test_x conftest$ac_exeext; then
6979
13414
  eval "$as_ac_var=yes"
6980
13415
else
6981
13416
  echo "$as_me: failed program was:" >&5
6982
13417
sed 's/^/| /' conftest.$ac_ext >&5
6983
13418
 
6984
 
eval "$as_ac_var=no"
6985
 
fi
6986
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6987
 
fi
6988
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6989
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
13419
        eval "$as_ac_var=no"
 
13420
fi
 
13421
 
 
13422
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
13423
      conftest$ac_exeext conftest.$ac_ext
 
13424
fi
 
13425
ac_res=`eval echo '${'$as_ac_var'}'`
 
13426
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
13427
echo "${ECHO_T}$ac_res" >&6; }
6990
13428
if test `eval echo '${'$as_ac_var'}'` = yes; then
6991
13429
  cat >>confdefs.h <<_ACEOF
6992
13430
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6996
13434
done
6997
13435
 
6998
13436
 
6999
 
 
 
13437
################################################################
 
13438
################################################################
 
13439
 
 
13440
 
 
13441
################################################################
 
13442
################################################################
7000
13443
# variables for use in Makefiles
7001
 
#
7002
 
 
7003
 
 
7004
 
if test x$ac_cv_header_sys_soundcard_h = xyes; then
7005
 
  HAVE_SYS_SOUNDCARD_H_TRUE=
7006
 
  HAVE_SYS_SOUNDCARD_H_FALSE='#'
7007
 
else
7008
 
  HAVE_SYS_SOUNDCARD_H_TRUE='#'
7009
 
  HAVE_SYS_SOUNDCARD_H_FALSE=
7010
 
fi
 
13444
################################################################
7011
13445
 
7012
13446
 
7013
13447
 
7042
13476
 
7043
13477
 
7044
13478
 
7045
 
if test x$ac_cv_with_gt = xyes; then
7046
 
  WITHGT_TRUE=
7047
 
  WITHGT_FALSE='#'
7048
 
else
7049
 
  WITHGT_TRUE='#'
7050
 
  WITHGT_FALSE=
7051
 
fi
7052
 
 
7053
 
 
7054
 
 
7055
 
if test \( \( x$ac_cv_with_gtk2 = xyes \) -a \( x$ac_my_gtk_ok = xyes \) \); then
7056
 
  WITHGTK2_TRUE=
7057
 
  WITHGTK2_FALSE='#'
7058
 
else
7059
 
  WITHGTK2_TRUE='#'
7060
 
  WITHGTK2_FALSE=
7061
 
fi
7062
 
 
7063
 
 
7064
 
 
7065
13479
if test x${ac_my_have_ffmpeg_audio} = x1; then
7066
13480
  HAVE_FFMPEG_AUDIO_TRUE=
7067
13481
  HAVE_FFMPEG_AUDIO_FALSE='#'
7071
13485
fi
7072
13486
 
7073
13487
 
 
13488
################################################################
 
13489
################################################################
 
13490
 
 
13491
 
 
13492
################################################################
 
13493
################################################################
7074
13494
# generic preproc defines
 
13495
################################################################
 
13496
 
 
13497
 
 
13498
 
 
13499
 
 
13500
test x${ac_cv_lib_avcodec_avcodec_encode_video} = "xyes" && cat >>confdefs.h <<\_ACEOF
 
13501
#define USE_FFMPEG 1
 
13502
_ACEOF
 
13503
 
7075
13504
 
7076
13505
 
7077
13506
test x${ac_cv_func_shmat} = "xyes" && cat >>confdefs.h <<\_ACEOF
7098
13527
 
7099
13528
 
7100
13529
 
 
13530
test x${FREEBSD_TRUE} = "x" && cat >>confdefs.h <<\_ACEOF
 
13531
#define FREEBSD 1
 
13532
_ACEOF
 
13533
 
 
13534
 
 
13535
 
7101
13536
test x${SOLARIS_TRUE} = "x" && cat >>confdefs.h <<\_ACEOF
7102
13537
#define u_int32_t uint32_t
7103
13538
_ACEOF
7104
13539
 
7105
13540
 
7106
13541
 
7107
 
test x${WITHGT_TRUE} = "x" && cat >>confdefs.h <<\_ACEOF
7108
 
#define WITHGT 1
7109
 
_ACEOF
7110
 
 
7111
 
 
7112
 
 
7113
 
test x${WITHGTK2_TRUE} = "x" && cat >>confdefs.h <<\_ACEOF
7114
 
#define WITHGTK2 1
7115
 
_ACEOF
7116
 
 
7117
 
 
7118
 
 
7119
13542
test x${HAVE_FFMPEG_AUDIO_TRUE} = "x" && cat >>confdefs.h <<\_ACEOF
7120
13543
#define HAVE_FFMPEG_AUDIO 1
7121
13544
_ACEOF
7122
13545
 
7123
13546
 
7124
13547
 
7125
 
                                        ac_config_files="$ac_config_files Makefile src/Makefile gt/Makefile Xw/Makefile"
 
13548
test x${ac_cv_lib_Xdamage_XDamageSubtract} = "xyes" &&
 
13549
test x${ac_cv_lib_Xfixes_XFixesGetCursorImage} = "xyes" &&
 
13550
cat >>confdefs.h <<\_ACEOF
 
13551
#define USE_XDAMAGE 1
 
13552
_ACEOF
 
13553
 
 
13554
 
 
13555
 
 
13556
test x${ac_my_dbus_usable} = "xyes" && cat >>confdefs.h <<\_ACEOF
 
13557
#define USE_DBUS 1
 
13558
_ACEOF
 
13559
 
 
13560
 
 
13561
 
 
13562
################################################################
 
13563
################################################################
 
13564
 
 
13565
 
 
13566
 
 
13567
 
 
13568
 
 
13569
ac_config_files="$ac_config_files doc/Makefile doc/xvidcap/Makefile doc/xvidcap/C/Makefile doc/xvidcap/de/Makefile doc/xvidcap/it/Makefile doc/xvidcap/es/Makefile doc/man/Makefile doc/man/C/Makefile doc/man/de/Makefile doc/man/it/Makefile doc/man/es/Makefile po/Makefile.in src/Makefile Makefile"
7126
13570
 
7127
13571
cat >confcache <<\_ACEOF
7128
13572
# This file is a shell script that caches the results of configure
7142
13586
 
7143
13587
# The following way of writing the cache mishandles newlines in values,
7144
13588
# but we know of no workaround that is simple, portable, and efficient.
7145
 
# So, don't put newlines in cache variables' values.
 
13589
# So, we kill variables containing newlines.
7146
13590
# Ultrix sh set writes to stderr and can't be redirected directly,
7147
13591
# and sets the high bit in the cache file unless we assign to the vars.
7148
 
{
 
13592
(
 
13593
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
13594
    eval ac_val=\$$ac_var
 
13595
    case $ac_val in #(
 
13596
    *${as_nl}*)
 
13597
      case $ac_var in #(
 
13598
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
13599
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
13600
      esac
 
13601
      case $ac_var in #(
 
13602
      _ | IFS | as_nl) ;; #(
 
13603
      *) $as_unset $ac_var ;;
 
13604
      esac ;;
 
13605
    esac
 
13606
  done
 
13607
 
7149
13608
  (set) 2>&1 |
7150
 
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
7151
 
    *ac_space=\ *)
 
13609
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
13610
    *${as_nl}ac_space=\ *)
7152
13611
      # `set' does not quote correctly, so add quotes (double-quote
7153
13612
      # substitution turns \\\\ into \\, and sed turns \\ into \).
7154
13613
      sed -n \
7155
 
        "s/'/'\\\\''/g;
7156
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7157
 
      ;;
 
13614
        "s/'/'\\\\''/g;
 
13615
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
13616
      ;; #(
7158
13617
    *)
7159
13618
      # `set' quotes correctly as required by POSIX, so do not add quotes.
7160
 
      sed -n \
7161
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
13619
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7162
13620
      ;;
7163
 
    esac;
7164
 
} |
 
13621
    esac |
 
13622
    sort
 
13623
) |
7165
13624
  sed '
 
13625
     /^ac_cv_env_/b end
7166
13626
     t clear
7167
 
     : clear
 
13627
     :clear
7168
13628
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7169
13629
     t end
7170
 
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7171
 
     : end' >>confcache
7172
 
if diff $cache_file confcache >/dev/null 2>&1; then :; else
7173
 
  if test -w $cache_file; then
7174
 
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
13630
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
13631
     :end' >>confcache
 
13632
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
13633
  if test -w "$cache_file"; then
 
13634
    test "x$cache_file" != "x/dev/null" &&
 
13635
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
13636
echo "$as_me: updating cache $cache_file" >&6;}
7175
13637
    cat confcache >$cache_file
7176
13638
  else
7177
 
    echo "not updating unwritable cache $cache_file"
 
13639
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
13640
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7178
13641
  fi
7179
13642
fi
7180
13643
rm -f confcache
7183
13646
# Let make expand exec_prefix.
7184
13647
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7185
13648
 
7186
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
7187
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7188
 
# trailing colons and then remove the whole line if VPATH becomes empty
7189
 
# (actually we leave an empty line to preserve line numbers).
7190
 
if test "x$srcdir" = x.; then
7191
 
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
7192
 
s/:*\$(srcdir):*/:/;
7193
 
s/:*\${srcdir}:*/:/;
7194
 
s/:*@srcdir@:*/:/;
7195
 
s/^\([^=]*=[    ]*\):*/\1/;
7196
 
s/:*$//;
7197
 
s/^[^=]*=[      ]*$//;
7198
 
}'
7199
 
fi
7200
 
 
7201
13649
DEFS=-DHAVE_CONFIG_H
7202
13650
 
7203
13651
ac_libobjs=
7204
13652
ac_ltlibobjs=
7205
13653
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7206
13654
  # 1. Remove the extension, and $U if already installed.
7207
 
  ac_i=`echo "$ac_i" |
7208
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7209
 
  # 2. Add them.
7210
 
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7211
 
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
13655
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
13656
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
13657
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
13658
  #    will be set to the directory where LIBOBJS objects are built.
 
13659
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
13660
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7212
13661
done
7213
13662
LIBOBJS=$ac_libobjs
7214
13663
 
7215
13664
LTLIBOBJS=$ac_ltlibobjs
7216
13665
 
7217
13666
 
 
13667
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
13668
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 
13669
Usually this means the macro was only invoked conditionally." >&5
 
13670
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 
13671
Usually this means the macro was only invoked conditionally." >&2;}
 
13672
   { (exit 1); exit 1; }; }
 
13673
fi
 
13674
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
13675
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
13676
Usually this means the macro was only invoked conditionally." >&5
 
13677
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
13678
Usually this means the macro was only invoked conditionally." >&2;}
 
13679
   { (exit 1); exit 1; }; }
 
13680
fi
 
13681
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
13682
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
13683
Usually this means the macro was only invoked conditionally." >&5
 
13684
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
13685
Usually this means the macro was only invoked conditionally." >&2;}
 
13686
   { (exit 1); exit 1; }; }
 
13687
fi
 
13688
 
 
13689
  ac_config_commands="$ac_config_commands po/stamp-it"
 
13690
 
 
13691
 
 
13692
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
13693
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
13694
Usually this means the macro was only invoked conditionally." >&5
 
13695
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
13696
Usually this means the macro was only invoked conditionally." >&2;}
 
13697
   { (exit 1); exit 1; }; }
 
13698
fi
 
13699
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
13700
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
13701
Usually this means the macro was only invoked conditionally." >&5
 
13702
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
13703
Usually this means the macro was only invoked conditionally." >&2;}
 
13704
   { (exit 1); exit 1; }; }
 
13705
fi
7218
13706
if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
7219
13707
  { { echo "$as_me:$LINENO: error: conditional \"SOLARIS\" was never defined.
7220
13708
Usually this means the macro was only invoked conditionally." >&5
7236
13724
Usually this means the macro was only invoked conditionally." >&2;}
7237
13725
   { (exit 1); exit 1; }; }
7238
13726
fi
7239
 
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7240
 
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7241
 
Usually this means the macro was only invoked conditionally." >&5
7242
 
echo "$as_me: error: conditional \"AMDEP\" was never defined.
7243
 
Usually this means the macro was only invoked conditionally." >&2;}
7244
 
   { (exit 1); exit 1; }; }
7245
 
fi
7246
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7247
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7248
 
Usually this means the macro was only invoked conditionally." >&5
7249
 
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7250
 
Usually this means the macro was only invoked conditionally." >&2;}
7251
 
   { (exit 1); exit 1; }; }
7252
 
fi
7253
 
if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
7254
 
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
7255
 
Usually this means the macro was only invoked conditionally." >&5
7256
 
echo "$as_me: error: conditional \"HAVE_LIBZ\" was never defined.
7257
 
Usually this means the macro was only invoked conditionally." >&2;}
7258
 
   { (exit 1); exit 1; }; }
7259
 
fi
7260
 
if test -z "${HAVE_LIBPNG_TRUE}" && test -z "${HAVE_LIBPNG_FALSE}"; then
7261
 
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBPNG\" was never defined.
7262
 
Usually this means the macro was only invoked conditionally." >&5
7263
 
echo "$as_me: error: conditional \"HAVE_LIBPNG\" was never defined.
7264
 
Usually this means the macro was only invoked conditionally." >&2;}
7265
 
   { (exit 1); exit 1; }; }
7266
 
fi
7267
 
if test -z "${HAVE_LIBJPEG_TRUE}" && test -z "${HAVE_LIBJPEG_FALSE}"; then
7268
 
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBJPEG\" was never defined.
7269
 
Usually this means the macro was only invoked conditionally." >&5
7270
 
echo "$as_me: error: conditional \"HAVE_LIBJPEG\" was never defined.
7271
 
Usually this means the macro was only invoked conditionally." >&2;}
7272
 
   { (exit 1); exit 1; }; }
7273
 
fi
7274
 
if test -z "${HAVE_LIBAVCODEC_TRUE}" && test -z "${HAVE_LIBAVCODEC_FALSE}"; then
7275
 
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBAVCODEC\" was never defined.
7276
 
Usually this means the macro was only invoked conditionally." >&5
7277
 
echo "$as_me: error: conditional \"HAVE_LIBAVCODEC\" was never defined.
7278
 
Usually this means the macro was only invoked conditionally." >&2;}
7279
 
   { (exit 1); exit 1; }; }
7280
 
fi
7281
 
if test -z "${HAVE_LIBAVFORMAT_TRUE}" && test -z "${HAVE_LIBAVFORMAT_FALSE}"; then
7282
 
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBAVFORMAT\" was never defined.
7283
 
Usually this means the macro was only invoked conditionally." >&5
7284
 
echo "$as_me: error: conditional \"HAVE_LIBAVFORMAT\" was never defined.
7285
 
Usually this means the macro was only invoked conditionally." >&2;}
7286
 
   { (exit 1); exit 1; }; }
7287
 
fi
7288
 
if test -z "${STATIC_Z_TRUE}" && test -z "${STATIC_Z_FALSE}"; then
7289
 
  { { echo "$as_me:$LINENO: error: conditional \"STATIC_Z\" was never defined.
7290
 
Usually this means the macro was only invoked conditionally." >&5
7291
 
echo "$as_me: error: conditional \"STATIC_Z\" was never defined.
7292
 
Usually this means the macro was only invoked conditionally." >&2;}
7293
 
   { (exit 1); exit 1; }; }
7294
 
fi
7295
 
if test -z "${STATIC_PNG_TRUE}" && test -z "${STATIC_PNG_FALSE}"; then
7296
 
  { { echo "$as_me:$LINENO: error: conditional \"STATIC_PNG\" was never defined.
7297
 
Usually this means the macro was only invoked conditionally." >&5
7298
 
echo "$as_me: error: conditional \"STATIC_PNG\" was never defined.
7299
 
Usually this means the macro was only invoked conditionally." >&2;}
7300
 
   { (exit 1); exit 1; }; }
7301
 
fi
7302
 
if test -z "${STATIC_JPEG_TRUE}" && test -z "${STATIC_JPEG_FALSE}"; then
7303
 
  { { echo "$as_me:$LINENO: error: conditional \"STATIC_JPEG\" was never defined.
7304
 
Usually this means the macro was only invoked conditionally." >&5
7305
 
echo "$as_me: error: conditional \"STATIC_JPEG\" was never defined.
 
13727
if test -z "${FREEBSD_TRUE}" && test -z "${FREEBSD_FALSE}"; then
 
13728
  { { echo "$as_me:$LINENO: error: conditional \"FREEBSD\" was never defined.
 
13729
Usually this means the macro was only invoked conditionally." >&5
 
13730
echo "$as_me: error: conditional \"FREEBSD\" was never defined.
 
13731
Usually this means the macro was only invoked conditionally." >&2;}
 
13732
   { (exit 1); exit 1; }; }
 
13733
fi
 
13734
if test -z "${HAVE_LIBMP3LAME_TRUE}" && test -z "${HAVE_LIBMP3LAME_FALSE}"; then
 
13735
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBMP3LAME\" was never defined.
 
13736
Usually this means the macro was only invoked conditionally." >&5
 
13737
echo "$as_me: error: conditional \"HAVE_LIBMP3LAME\" was never defined.
 
13738
Usually this means the macro was only invoked conditionally." >&2;}
 
13739
   { (exit 1); exit 1; }; }
 
13740
fi
 
13741
if test -z "${HAVE_LIBTHEORA_TRUE}" && test -z "${HAVE_LIBTHEORA_FALSE}"; then
 
13742
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBTHEORA\" was never defined.
 
13743
Usually this means the macro was only invoked conditionally." >&5
 
13744
echo "$as_me: error: conditional \"HAVE_LIBTHEORA\" was never defined.
 
13745
Usually this means the macro was only invoked conditionally." >&2;}
 
13746
   { (exit 1); exit 1; }; }
 
13747
fi
 
13748
if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
 
13749
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_PTHREAD\" was never defined.
 
13750
Usually this means the macro was only invoked conditionally." >&5
 
13751
echo "$as_me: error: conditional \"HAVE_PTHREAD\" was never defined.
7306
13752
Usually this means the macro was only invoked conditionally." >&2;}
7307
13753
   { (exit 1); exit 1; }; }
7308
13754
fi
7320
13766
Usually this means the macro was only invoked conditionally." >&2;}
7321
13767
   { (exit 1); exit 1; }; }
7322
13768
fi
7323
 
if test -z "${HAVE_SYS_SOUNDCARD_H_TRUE}" && test -z "${HAVE_SYS_SOUNDCARD_H_FALSE}"; then
7324
 
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_SYS_SOUNDCARD_H\" was never defined.
 
13769
if test -z "${STATIC_AVUTIL_TRUE}" && test -z "${STATIC_AVUTIL_FALSE}"; then
 
13770
  { { echo "$as_me:$LINENO: error: conditional \"STATIC_AVUTIL\" was never defined.
7325
13771
Usually this means the macro was only invoked conditionally." >&5
7326
 
echo "$as_me: error: conditional \"HAVE_SYS_SOUNDCARD_H\" was never defined.
 
13772
echo "$as_me: error: conditional \"STATIC_AVUTIL\" was never defined.
7327
13773
Usually this means the macro was only invoked conditionally." >&2;}
7328
13774
   { (exit 1); exit 1; }; }
7329
13775
fi
7348
13794
Usually this means the macro was only invoked conditionally." >&2;}
7349
13795
   { (exit 1); exit 1; }; }
7350
13796
fi
7351
 
if test -z "${WITHGT_TRUE}" && test -z "${WITHGT_FALSE}"; then
7352
 
  { { echo "$as_me:$LINENO: error: conditional \"WITHGT\" was never defined.
7353
 
Usually this means the macro was only invoked conditionally." >&5
7354
 
echo "$as_me: error: conditional \"WITHGT\" was never defined.
7355
 
Usually this means the macro was only invoked conditionally." >&2;}
7356
 
   { (exit 1); exit 1; }; }
7357
 
fi
7358
 
if test -z "${WITHGTK2_TRUE}" && test -z "${WITHGTK2_FALSE}"; then
7359
 
  { { echo "$as_me:$LINENO: error: conditional \"WITHGTK2\" was never defined.
7360
 
Usually this means the macro was only invoked conditionally." >&5
7361
 
echo "$as_me: error: conditional \"WITHGTK2\" was never defined.
7362
 
Usually this means the macro was only invoked conditionally." >&2;}
7363
 
   { (exit 1); exit 1; }; }
7364
 
fi
7365
13797
if test -z "${HAVE_FFMPEG_AUDIO_TRUE}" && test -z "${HAVE_FFMPEG_AUDIO_FALSE}"; then
7366
13798
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_FFMPEG_AUDIO\" was never defined.
7367
13799
Usually this means the macro was only invoked conditionally." >&5
7393
13825
## M4sh Initialization.  ##
7394
13826
## --------------------- ##
7395
13827
 
7396
 
# Be Bourne compatible
 
13828
# Be more Bourne compatible
 
13829
DUALCASE=1; export DUALCASE # for MKS sh
7397
13830
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7398
13831
  emulate sh
7399
13832
  NULLCMD=:
7400
13833
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7401
13834
  # is contrary to our usage.  Disable this feature.
7402
13835
  alias -g '${1+"$@"}'='"$@"'
7403
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7404
 
  set -o posix
 
13836
  setopt NO_GLOB_SUBST
 
13837
else
 
13838
  case `(set -o) 2>/dev/null` in
 
13839
  *posix*) set -o posix ;;
 
13840
esac
 
13841
 
 
13842
fi
 
13843
 
 
13844
 
 
13845
 
 
13846
 
 
13847
# PATH needs CR
 
13848
# Avoid depending upon Character Ranges.
 
13849
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
13850
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
13851
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
13852
as_cr_digits='0123456789'
 
13853
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
13854
 
 
13855
# The user is always right.
 
13856
if test "${PATH_SEPARATOR+set}" != set; then
 
13857
  echo "#! /bin/sh" >conf$$.sh
 
13858
  echo  "exit 0"   >>conf$$.sh
 
13859
  chmod +x conf$$.sh
 
13860
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
13861
    PATH_SEPARATOR=';'
 
13862
  else
 
13863
    PATH_SEPARATOR=:
 
13864
  fi
 
13865
  rm -f conf$$.sh
7405
13866
fi
7406
13867
 
7407
13868
# Support unset when possible.
7408
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
13869
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7409
13870
  as_unset=unset
7410
13871
else
7411
13872
  as_unset=false
7412
13873
fi
7413
13874
 
7414
13875
 
 
13876
# IFS
 
13877
# We need space, tab and new line, in precisely that order.  Quoting is
 
13878
# there to prevent editors from complaining about space-tab.
 
13879
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
13880
# splitting by setting IFS to empty value.)
 
13881
as_nl='
 
13882
'
 
13883
IFS=" ""        $as_nl"
 
13884
 
 
13885
# Find who we are.  Look in the path if we contain no directory separator.
 
13886
case $0 in
 
13887
  *[\\/]* ) as_myself=$0 ;;
 
13888
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13889
for as_dir in $PATH
 
13890
do
 
13891
  IFS=$as_save_IFS
 
13892
  test -z "$as_dir" && as_dir=.
 
13893
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
13894
done
 
13895
IFS=$as_save_IFS
 
13896
 
 
13897
     ;;
 
13898
esac
 
13899
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
13900
# in which case we are not to be found in the path.
 
13901
if test "x$as_myself" = x; then
 
13902
  as_myself=$0
 
13903
fi
 
13904
if test ! -f "$as_myself"; then
 
13905
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
13906
  { (exit 1); exit 1; }
 
13907
fi
 
13908
 
7415
13909
# Work around bugs in pre-3.0 UWIN ksh.
7416
 
$as_unset ENV MAIL MAILPATH
 
13910
for as_var in ENV MAIL MAILPATH
 
13911
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
13912
done
7417
13913
PS1='$ '
7418
13914
PS2='> '
7419
13915
PS4='+ '
7424
13920
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7425
13921
  LC_TELEPHONE LC_TIME
7426
13922
do
7427
 
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
13923
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7428
13924
    eval $as_var=C; export $as_var
7429
13925
  else
7430
 
    $as_unset $as_var
 
13926
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7431
13927
  fi
7432
13928
done
7433
13929
 
7434
13930
# Required to use basename.
7435
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
13931
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
13932
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7436
13933
  as_expr=expr
7437
13934
else
7438
13935
  as_expr=false
7439
13936
fi
7440
13937
 
7441
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
13938
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7442
13939
  as_basename=basename
7443
13940
else
7444
13941
  as_basename=false
7446
13943
 
7447
13944
 
7448
13945
# Name of the executable.
7449
 
as_me=`$as_basename "$0" ||
 
13946
as_me=`$as_basename -- "$0" ||
7450
13947
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7451
13948
         X"$0" : 'X\(//\)$' \| \
7452
 
         X"$0" : 'X\(/\)$' \| \
7453
 
         .     : '\(.\)' 2>/dev/null ||
 
13949
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7454
13950
echo X/"$0" |
7455
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7456
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
7457
 
          /^X\/\(\/\).*/{ s//\1/; q; }
7458
 
          s/.*/./; q'`
7459
 
 
7460
 
 
7461
 
# PATH needs CR, and LINENO needs CR and PATH.
7462
 
# Avoid depending upon Character Ranges.
7463
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7464
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7465
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7466
 
as_cr_digits='0123456789'
7467
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
7468
 
 
7469
 
# The user is always right.
7470
 
if test "${PATH_SEPARATOR+set}" != set; then
7471
 
  echo "#! /bin/sh" >conf$$.sh
7472
 
  echo  "exit 0"   >>conf$$.sh
7473
 
  chmod +x conf$$.sh
7474
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7475
 
    PATH_SEPARATOR=';'
7476
 
  else
7477
 
    PATH_SEPARATOR=:
7478
 
  fi
7479
 
  rm -f conf$$.sh
7480
 
fi
7481
 
 
7482
 
 
7483
 
  as_lineno_1=$LINENO
7484
 
  as_lineno_2=$LINENO
7485
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7486
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
7487
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7488
 
  # Find who we are.  Look in the path if we contain no path at all
7489
 
  # relative or not.
7490
 
  case $0 in
7491
 
    *[\\/]* ) as_myself=$0 ;;
7492
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493
 
for as_dir in $PATH
7494
 
do
7495
 
  IFS=$as_save_IFS
7496
 
  test -z "$as_dir" && as_dir=.
7497
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7498
 
done
7499
 
 
7500
 
       ;;
7501
 
  esac
7502
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
7503
 
  # in which case we are not to be found in the path.
7504
 
  if test "x$as_myself" = x; then
7505
 
    as_myself=$0
7506
 
  fi
7507
 
  if test ! -f "$as_myself"; then
7508
 
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7509
 
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7510
 
   { (exit 1); exit 1; }; }
7511
 
  fi
7512
 
  case $CONFIG_SHELL in
7513
 
  '')
7514
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7516
 
do
7517
 
  IFS=$as_save_IFS
7518
 
  test -z "$as_dir" && as_dir=.
7519
 
  for as_base in sh bash ksh sh5; do
7520
 
         case $as_dir in
7521
 
         /*)
7522
 
           if ("$as_dir/$as_base" -c '
7523
 
  as_lineno_1=$LINENO
7524
 
  as_lineno_2=$LINENO
7525
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7526
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
7527
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7528
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7529
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7530
 
             CONFIG_SHELL=$as_dir/$as_base
7531
 
             export CONFIG_SHELL
7532
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7533
 
           fi;;
7534
 
         esac
7535
 
       done
7536
 
done
7537
 
;;
7538
 
  esac
 
13951
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
13952
            s//\1/
 
13953
            q
 
13954
          }
 
13955
          /^X\/\(\/\/\)$/{
 
13956
            s//\1/
 
13957
            q
 
13958
          }
 
13959
          /^X\/\(\/\).*/{
 
13960
            s//\1/
 
13961
            q
 
13962
          }
 
13963
          s/.*/./; q'`
 
13964
 
 
13965
# CDPATH.
 
13966
$as_unset CDPATH
 
13967
 
 
13968
 
 
13969
 
 
13970
  as_lineno_1=$LINENO
 
13971
  as_lineno_2=$LINENO
 
13972
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
13973
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7539
13974
 
7540
13975
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7541
13976
  # uniformly replaced by the line number.  The first 'sed' inserts a
7542
 
  # line-number line before each line; the second 'sed' does the real
7543
 
  # work.  The second script uses 'N' to pair each line-number line
7544
 
  # with the numbered line, and appends trailing '-' during
7545
 
  # substitution so that $LINENO is not a special case at line end.
 
13977
  # line-number line after each line using $LINENO; the second 'sed'
 
13978
  # does the real work.  The second script uses 'N' to pair each
 
13979
  # line-number line with the line containing $LINENO, and appends
 
13980
  # trailing '-' during substitution so that $LINENO is not a special
 
13981
  # case at line end.
7546
13982
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7547
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7548
 
  sed '=' <$as_myself |
 
13983
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
13984
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
13985
  sed -n '
 
13986
    p
 
13987
    /[$]LINENO/=
 
13988
  ' <$as_myself |
7549
13989
    sed '
 
13990
      s/[$]LINENO.*/&-/
 
13991
      t lineno
 
13992
      b
 
13993
      :lineno
7550
13994
      N
7551
 
      s,$,-,
7552
 
      : loop
7553
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
13995
      :loop
 
13996
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7554
13997
      t loop
7555
 
      s,-$,,
7556
 
      s,^['$as_cr_digits']*\n,,
 
13998
      s/-\n.*//
7557
13999
    ' >$as_me.lineno &&
7558
 
  chmod +x $as_me.lineno ||
7559
 
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7560
 
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
14000
  chmod +x "$as_me.lineno" ||
 
14001
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7561
14002
   { (exit 1); exit 1; }; }
7562
14003
 
7563
14004
  # Don't try to exec as it changes $[0], causing all sort of problems
7564
14005
  # (the dirname of $[0] is not the place where we might find the
7565
 
  # original and so on.  Autoconf is especially sensible to this).
7566
 
  . ./$as_me.lineno
 
14006
  # original and so on.  Autoconf is especially sensitive to this).
 
14007
  . "./$as_me.lineno"
7567
14008
  # Exit status is that of the last command.
7568
14009
  exit
7569
14010
}
7570
14011
 
7571
14012
 
7572
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7573
 
  *c*,-n*) ECHO_N= ECHO_C='
7574
 
' ECHO_T='      ' ;;
7575
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7576
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
14013
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
14014
  as_dirname=dirname
 
14015
else
 
14016
  as_dirname=false
 
14017
fi
 
14018
 
 
14019
ECHO_C= ECHO_N= ECHO_T=
 
14020
case `echo -n x` in
 
14021
-n*)
 
14022
  case `echo 'x\c'` in
 
14023
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
14024
  *)   ECHO_C='\c';;
 
14025
  esac;;
 
14026
*)
 
14027
  ECHO_N='-n';;
7577
14028
esac
7578
14029
 
7579
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
14030
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
14031
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7580
14032
  as_expr=expr
7581
14033
else
7582
14034
  as_expr=false
7583
14035
fi
7584
14036
 
7585
14037
rm -f conf$$ conf$$.exe conf$$.file
 
14038
if test -d conf$$.dir; then
 
14039
  rm -f conf$$.dir/conf$$.file
 
14040
else
 
14041
  rm -f conf$$.dir
 
14042
  mkdir conf$$.dir
 
14043
fi
7586
14044
echo >conf$$.file
7587
14045
if ln -s conf$$.file conf$$ 2>/dev/null; then
7588
 
  # We could just check for DJGPP; but this test a) works b) is more generic
7589
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7590
 
  if test -f conf$$.exe; then
7591
 
    # Don't use ln at all; we don't have any links
 
14046
  as_ln_s='ln -s'
 
14047
  # ... but there are two gotchas:
 
14048
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
14049
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
14050
  # In both cases, we have to default to `cp -p'.
 
14051
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7592
14052
    as_ln_s='cp -p'
7593
 
  else
7594
 
    as_ln_s='ln -s'
7595
 
  fi
7596
14053
elif ln conf$$.file conf$$ 2>/dev/null; then
7597
14054
  as_ln_s=ln
7598
14055
else
7599
14056
  as_ln_s='cp -p'
7600
14057
fi
7601
 
rm -f conf$$ conf$$.exe conf$$.file
 
14058
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
14059
rmdir conf$$.dir 2>/dev/null
7602
14060
 
7603
14061
if mkdir -p . 2>/dev/null; then
7604
14062
  as_mkdir_p=:
7605
14063
else
 
14064
  test -d ./-p && rmdir ./-p
7606
14065
  as_mkdir_p=false
7607
14066
fi
7608
14067
 
7609
 
as_executable_p="test -f"
 
14068
if test -x / >/dev/null 2>&1; then
 
14069
  as_test_x='test -x'
 
14070
else
 
14071
  if ls -dL / >/dev/null 2>&1; then
 
14072
    as_ls_L_option=L
 
14073
  else
 
14074
    as_ls_L_option=
 
14075
  fi
 
14076
  as_test_x='
 
14077
    eval sh -c '\''
 
14078
      if test -d "$1"; then
 
14079
        test -d "$1/.";
 
14080
      else
 
14081
        case $1 in
 
14082
        -*)set "./$1";;
 
14083
        esac;
 
14084
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
14085
        ???[sx]*):;;*)false;;esac;fi
 
14086
    '\'' sh
 
14087
  '
 
14088
fi
 
14089
as_executable_p=$as_test_x
7610
14090
 
7611
14091
# Sed expression to map a string onto a valid CPP name.
7612
 
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
14092
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7613
14093
 
7614
14094
# Sed expression to map a string onto a valid variable name.
7615
 
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7616
 
 
7617
 
 
7618
 
# IFS
7619
 
# We need space, tab and new line, in precisely that order.
7620
 
as_nl='
7621
 
'
7622
 
IFS="   $as_nl"
7623
 
 
7624
 
# CDPATH.
7625
 
$as_unset CDPATH
 
14095
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
14096
 
7626
14097
 
7627
14098
exec 6>&1
7628
14099
 
7629
 
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
14100
# Save the log message, to keep $[0] and so on meaningful, and to
7630
14101
# report actual input values of CONFIG_FILES etc. instead of their
7631
 
# values after options handling.  Logging --version etc. is OK.
7632
 
exec 5>>config.log
7633
 
{
7634
 
  echo
7635
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7636
 
## Running $as_me. ##
7637
 
_ASBOX
7638
 
} >&5
7639
 
cat >&5 <<_CSEOF
7640
 
 
7641
 
This file was extended by XVidcap $as_me 1.1.3, which was
7642
 
generated by GNU Autoconf 2.57.  Invocation command line was
 
14102
# values after options handling.
 
14103
ac_log="
 
14104
This file was extended by $as_me, which was
 
14105
generated by GNU Autoconf 2.61.  Invocation command line was
7643
14106
 
7644
14107
  CONFIG_FILES    = $CONFIG_FILES
7645
14108
  CONFIG_HEADERS  = $CONFIG_HEADERS
7647
14110
  CONFIG_COMMANDS = $CONFIG_COMMANDS
7648
14111
  $ $0 $@
7649
14112
 
7650
 
_CSEOF
7651
 
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7652
 
echo >&5
 
14113
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
14114
"
 
14115
 
7653
14116
_ACEOF
7654
14117
 
 
14118
cat >>$CONFIG_STATUS <<_ACEOF
7655
14119
# Files that config.status was made for.
7656
 
if test -n "$ac_config_files"; then
7657
 
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7658
 
fi
7659
 
 
7660
 
if test -n "$ac_config_headers"; then
7661
 
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7662
 
fi
7663
 
 
7664
 
if test -n "$ac_config_links"; then
7665
 
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7666
 
fi
7667
 
 
7668
 
if test -n "$ac_config_commands"; then
7669
 
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7670
 
fi
 
14120
config_files="$ac_config_files"
 
14121
config_headers="$ac_config_headers"
 
14122
config_commands="$ac_config_commands"
 
14123
 
 
14124
_ACEOF
7671
14125
 
7672
14126
cat >>$CONFIG_STATUS <<\_ACEOF
7673
 
 
7674
14127
ac_cs_usage="\
7675
14128
\`$as_me' instantiates files from templates according to the
7676
14129
current configuration.
7678
14131
Usage: $0 [OPTIONS] [FILE]...
7679
14132
 
7680
14133
  -h, --help       print this help, then exit
7681
 
  -V, --version    print version number, then exit
 
14134
  -V, --version    print version number and configuration settings, then exit
7682
14135
  -q, --quiet      do not print progress messages
7683
14136
  -d, --debug      don't remove temporary files
7684
14137
      --recheck    update $as_me by reconfiguring in the same conditions
7685
14138
  --file=FILE[:TEMPLATE]
7686
 
                   instantiate the configuration file FILE
 
14139
                   instantiate the configuration file FILE
7687
14140
  --header=FILE[:TEMPLATE]
7688
 
                   instantiate the configuration header FILE
 
14141
                   instantiate the configuration header FILE
7689
14142
 
7690
14143
Configuration files:
7691
14144
$config_files
7697
14150
$config_commands
7698
14151
 
7699
14152
Report bugs to <bug-autoconf@gnu.org>."
 
14153
 
7700
14154
_ACEOF
7701
 
 
7702
14155
cat >>$CONFIG_STATUS <<_ACEOF
7703
14156
ac_cs_version="\\
7704
 
XVidcap config.status 1.1.3
7705
 
configured by $0, generated by GNU Autoconf 2.57,
7706
 
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
14157
config.status
 
14158
configured by $0, generated by GNU Autoconf 2.61,
 
14159
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7707
14160
 
7708
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7709
 
Free Software Foundation, Inc.
 
14161
Copyright (C) 2006 Free Software Foundation, Inc.
7710
14162
This config.status script is free software; the Free Software Foundation
7711
14163
gives unlimited permission to copy, distribute and modify it."
7712
 
srcdir=$srcdir
7713
 
INSTALL="$INSTALL"
 
14164
 
 
14165
ac_pwd='$ac_pwd'
 
14166
srcdir='$srcdir'
 
14167
INSTALL='$INSTALL'
7714
14168
_ACEOF
7715
14169
 
7716
14170
cat >>$CONFIG_STATUS <<\_ACEOF
7721
14175
do
7722
14176
  case $1 in
7723
14177
  --*=*)
7724
 
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
7725
 
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
14178
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
14179
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7726
14180
    ac_shift=:
7727
14181
    ;;
7728
 
  -*)
 
14182
  *)
7729
14183
    ac_option=$1
7730
14184
    ac_optarg=$2
7731
14185
    ac_shift=shift
7732
14186
    ;;
7733
 
  *) # This is not an option, so the user has probably given explicit
7734
 
     # arguments.
7735
 
     ac_option=$1
7736
 
     ac_need_defaults=false;;
7737
14187
  esac
7738
14188
 
7739
14189
  case $ac_option in
7740
14190
  # Handling of the options.
7741
 
_ACEOF
7742
 
cat >>$CONFIG_STATUS <<\_ACEOF
7743
14191
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7744
14192
    ac_cs_recheck=: ;;
7745
 
  --version | --vers* | -V )
7746
 
    echo "$ac_cs_version"; exit 0 ;;
7747
 
  --he | --h)
7748
 
    # Conflict between --help and --header
7749
 
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
7750
 
Try \`$0 --help' for more information." >&5
7751
 
echo "$as_me: error: ambiguous option: $1
7752
 
Try \`$0 --help' for more information." >&2;}
7753
 
   { (exit 1); exit 1; }; };;
7754
 
  --help | --hel | -h )
7755
 
    echo "$ac_cs_usage"; exit 0 ;;
7756
 
  --debug | --d* | -d )
 
14193
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
14194
    echo "$ac_cs_version"; exit ;;
 
14195
  --debug | --debu | --deb | --de | --d | -d )
7757
14196
    debug=: ;;
7758
14197
  --file | --fil | --fi | --f )
7759
14198
    $ac_shift
7763
14202
    $ac_shift
7764
14203
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7765
14204
    ac_need_defaults=false;;
 
14205
  --he | --h)
 
14206
    # Conflict between --help and --header
 
14207
    { echo "$as_me: error: ambiguous option: $1
 
14208
Try \`$0 --help' for more information." >&2
 
14209
   { (exit 1); exit 1; }; };;
 
14210
  --help | --hel | -h )
 
14211
    echo "$ac_cs_usage"; exit ;;
7766
14212
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7767
14213
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7768
14214
    ac_cs_silent=: ;;
7769
14215
 
7770
14216
  # This is an error.
7771
 
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7772
 
Try \`$0 --help' for more information." >&5
7773
 
echo "$as_me: error: unrecognized option: $1
7774
 
Try \`$0 --help' for more information." >&2;}
 
14217
  -*) { echo "$as_me: error: unrecognized option: $1
 
14218
Try \`$0 --help' for more information." >&2
7775
14219
   { (exit 1); exit 1; }; } ;;
7776
14220
 
7777
 
  *) ac_config_targets="$ac_config_targets $1" ;;
 
14221
  *) ac_config_targets="$ac_config_targets $1"
 
14222
     ac_need_defaults=false ;;
7778
14223
 
7779
14224
  esac
7780
14225
  shift
7790
14235
_ACEOF
7791
14236
cat >>$CONFIG_STATUS <<_ACEOF
7792
14237
if \$ac_cs_recheck; then
7793
 
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7794
 
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
14238
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
14239
  CONFIG_SHELL=$SHELL
 
14240
  export CONFIG_SHELL
 
14241
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7795
14242
fi
7796
14243
 
7797
14244
_ACEOF
 
14245
cat >>$CONFIG_STATUS <<\_ACEOF
 
14246
exec 5>>config.log
 
14247
{
 
14248
  echo
 
14249
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
14250
## Running $as_me. ##
 
14251
_ASBOX
 
14252
  echo "$ac_log"
 
14253
} >&5
7798
14254
 
 
14255
_ACEOF
7799
14256
cat >>$CONFIG_STATUS <<_ACEOF
7800
14257
#
7801
 
# INIT-COMMANDS section.
 
14258
# INIT-COMMANDS
7802
14259
#
7803
 
 
7804
14260
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
14261
INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
 
14262
prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir"
 
14263
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' INTLTOOL_ICONV='${INTLTOOL_ICONV}'
 
14264
INTLTOOL_MSGFMT='${INTLTOOL_MSGFMT}' INTLTOOL_MSGMERGE='${INTLTOOL_MSGMERGE}'
 
14265
INTLTOOL_XGETTEXT='${INTLTOOL_XGETTEXT}'
 
14266
 
7805
14267
 
7806
14268
_ACEOF
7807
14269
 
7808
 
 
7809
 
 
7810
14270
cat >>$CONFIG_STATUS <<\_ACEOF
 
14271
 
 
14272
# Handling of arguments.
7811
14273
for ac_config_target in $ac_config_targets
7812
14274
do
7813
 
  case "$ac_config_target" in
7814
 
  # Handling of arguments.
7815
 
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7816
 
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7817
 
  "gt/Makefile" ) CONFIG_FILES="$CONFIG_FILES gt/Makefile" ;;
7818
 
  "Xw/Makefile" ) CONFIG_FILES="$CONFIG_FILES Xw/Makefile" ;;
7819
 
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7820
 
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
14275
  case $ac_config_target in
 
14276
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
14277
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
14278
    "intltool") CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;;
 
14279
    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 
14280
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
14281
    "doc/xvidcap/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xvidcap/Makefile" ;;
 
14282
    "doc/xvidcap/C/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xvidcap/C/Makefile" ;;
 
14283
    "doc/xvidcap/de/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xvidcap/de/Makefile" ;;
 
14284
    "doc/xvidcap/it/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xvidcap/it/Makefile" ;;
 
14285
    "doc/xvidcap/es/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xvidcap/es/Makefile" ;;
 
14286
    "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
 
14287
    "doc/man/C/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/C/Makefile" ;;
 
14288
    "doc/man/de/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/de/Makefile" ;;
 
14289
    "doc/man/it/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/it/Makefile" ;;
 
14290
    "doc/man/es/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/es/Makefile" ;;
 
14291
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 
14292
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
14293
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
14294
    "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
 
14295
 
7821
14296
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7822
14297
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7823
14298
   { (exit 1); exit 1; }; };;
7824
14299
  esac
7825
14300
done
7826
14301
 
 
14302
 
7827
14303
# If the user did not use the arguments to specify the items to instantiate,
7828
14304
# then the envvar interface is used.  Set only those that are not.
7829
14305
# We use the long form for the default assignment because of an extremely
7835
14311
fi
7836
14312
 
7837
14313
# Have a temporary directory for convenience.  Make it in the build tree
7838
 
# simply because there is no reason to put it here, and in addition,
 
14314
# simply because there is no reason against having it here, and in addition,
7839
14315
# creating and moving files from /tmp can sometimes cause problems.
7840
 
# Create a temporary directory, and hook for its removal unless debugging.
 
14316
# Hook for its removal unless debugging.
 
14317
# Note that there is a small window in which the directory will not be cleaned:
 
14318
# after its creation but before its name has been assigned to `$tmp'.
7841
14319
$debug ||
7842
14320
{
7843
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
14321
  tmp=
 
14322
  trap 'exit_status=$?
 
14323
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
14324
' 0
7844
14325
  trap '{ (exit 1); exit 1; }' 1 2 13 15
7845
14326
}
7846
 
 
7847
14327
# Create a (secure) tmp directory for tmp files.
7848
14328
 
7849
14329
{
7850
 
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
14330
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7851
14331
  test -n "$tmp" && test -d "$tmp"
7852
14332
}  ||
7853
14333
{
7854
 
  tmp=./confstat$$-$RANDOM
7855
 
  (umask 077 && mkdir $tmp)
 
14334
  tmp=./conf$$-$RANDOM
 
14335
  (umask 077 && mkdir "$tmp")
7856
14336
} ||
7857
14337
{
7858
14338
   echo "$me: cannot create a temporary directory in ." >&2
7859
14339
   { (exit 1); exit 1; }
7860
14340
}
7861
14341
 
7862
 
_ACEOF
7863
 
 
7864
 
cat >>$CONFIG_STATUS <<_ACEOF
7865
 
 
7866
14342
#
7867
 
# CONFIG_FILES section.
 
14343
# Set up the sed scripts for CONFIG_FILES section.
7868
14344
#
7869
14345
 
7870
14346
# No need to generate the scripts if there are no CONFIG_FILES.
7871
14347
# This happens for instance when ./config.status config.h
7872
 
if test -n "\$CONFIG_FILES"; then
7873
 
  # Protect against being on the right side of a sed subst in config.status.
7874
 
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7875
 
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7876
 
s,@SHELL@,$SHELL,;t t
7877
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7878
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7879
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7880
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7881
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7882
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7883
 
s,@exec_prefix@,$exec_prefix,;t t
7884
 
s,@prefix@,$prefix,;t t
7885
 
s,@program_transform_name@,$program_transform_name,;t t
7886
 
s,@bindir@,$bindir,;t t
7887
 
s,@sbindir@,$sbindir,;t t
7888
 
s,@libexecdir@,$libexecdir,;t t
7889
 
s,@datadir@,$datadir,;t t
7890
 
s,@sysconfdir@,$sysconfdir,;t t
7891
 
s,@sharedstatedir@,$sharedstatedir,;t t
7892
 
s,@localstatedir@,$localstatedir,;t t
7893
 
s,@libdir@,$libdir,;t t
7894
 
s,@includedir@,$includedir,;t t
7895
 
s,@oldincludedir@,$oldincludedir,;t t
7896
 
s,@infodir@,$infodir,;t t
7897
 
s,@mandir@,$mandir,;t t
7898
 
s,@build_alias@,$build_alias,;t t
7899
 
s,@host_alias@,$host_alias,;t t
7900
 
s,@target_alias@,$target_alias,;t t
7901
 
s,@DEFS@,$DEFS,;t t
7902
 
s,@ECHO_C@,$ECHO_C,;t t
7903
 
s,@ECHO_N@,$ECHO_N,;t t
7904
 
s,@ECHO_T@,$ECHO_T,;t t
7905
 
s,@LIBS@,$LIBS,;t t
7906
 
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7907
 
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7908
 
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7909
 
s,@CYGPATH_W@,$CYGPATH_W,;t t
7910
 
s,@PACKAGE@,$PACKAGE,;t t
7911
 
s,@VERSION@,$VERSION,;t t
7912
 
s,@ACLOCAL@,$ACLOCAL,;t t
7913
 
s,@AUTOCONF@,$AUTOCONF,;t t
7914
 
s,@AUTOMAKE@,$AUTOMAKE,;t t
7915
 
s,@AUTOHEADER@,$AUTOHEADER,;t t
7916
 
s,@MAKEINFO@,$MAKEINFO,;t t
7917
 
s,@AMTAR@,$AMTAR,;t t
7918
 
s,@install_sh@,$install_sh,;t t
7919
 
s,@STRIP@,$STRIP,;t t
7920
 
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7921
 
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7922
 
s,@AWK@,$AWK,;t t
7923
 
s,@SET_MAKE@,$SET_MAKE,;t t
7924
 
s,@SOLARIS_TRUE@,$SOLARIS_TRUE,;t t
7925
 
s,@SOLARIS_FALSE@,$SOLARIS_FALSE,;t t
7926
 
s,@LINUX_TRUE@,$LINUX_TRUE,;t t
7927
 
s,@LINUX_FALSE@,$LINUX_FALSE,;t t
7928
 
s,@HPUX_TRUE@,$HPUX_TRUE,;t t
7929
 
s,@HPUX_FALSE@,$HPUX_FALSE,;t t
7930
 
s,@CC@,$CC,;t t
7931
 
s,@CFLAGS@,$CFLAGS,;t t
7932
 
s,@LDFLAGS@,$LDFLAGS,;t t
7933
 
s,@CPPFLAGS@,$CPPFLAGS,;t t
7934
 
s,@ac_ct_CC@,$ac_ct_CC,;t t
7935
 
s,@EXEEXT@,$EXEEXT,;t t
7936
 
s,@OBJEXT@,$OBJEXT,;t t
7937
 
s,@DEPDIR@,$DEPDIR,;t t
7938
 
s,@am__include@,$am__include,;t t
7939
 
s,@am__quote@,$am__quote,;t t
7940
 
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7941
 
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7942
 
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7943
 
s,@CCDEPMODE@,$CCDEPMODE,;t t
7944
 
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7945
 
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7946
 
s,@RANLIB@,$RANLIB,;t t
7947
 
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7948
 
s,@CPP@,$CPP,;t t
7949
 
s,@X_CFLAGS@,$X_CFLAGS,;t t
7950
 
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
7951
 
s,@X_LIBS@,$X_LIBS,;t t
7952
 
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
7953
 
s,@HAVE_LIBZ_TRUE@,$HAVE_LIBZ_TRUE,;t t
7954
 
s,@HAVE_LIBZ_FALSE@,$HAVE_LIBZ_FALSE,;t t
7955
 
s,@HAVE_LIBPNG_TRUE@,$HAVE_LIBPNG_TRUE,;t t
7956
 
s,@HAVE_LIBPNG_FALSE@,$HAVE_LIBPNG_FALSE,;t t
7957
 
s,@HAVE_LIBJPEG_TRUE@,$HAVE_LIBJPEG_TRUE,;t t
7958
 
s,@HAVE_LIBJPEG_FALSE@,$HAVE_LIBJPEG_FALSE,;t t
7959
 
s,@HAVE_LIBAVCODEC_TRUE@,$HAVE_LIBAVCODEC_TRUE,;t t
7960
 
s,@HAVE_LIBAVCODEC_FALSE@,$HAVE_LIBAVCODEC_FALSE,;t t
7961
 
s,@HAVE_LIBAVFORMAT_TRUE@,$HAVE_LIBAVFORMAT_TRUE,;t t
7962
 
s,@HAVE_LIBAVFORMAT_FALSE@,$HAVE_LIBAVFORMAT_FALSE,;t t
7963
 
s,@STATIC_Z_TRUE@,$STATIC_Z_TRUE,;t t
7964
 
s,@STATIC_Z_FALSE@,$STATIC_Z_FALSE,;t t
7965
 
s,@STATIC_PNG_TRUE@,$STATIC_PNG_TRUE,;t t
7966
 
s,@STATIC_PNG_FALSE@,$STATIC_PNG_FALSE,;t t
7967
 
s,@STATIC_JPEG_TRUE@,$STATIC_JPEG_TRUE,;t t
7968
 
s,@STATIC_JPEG_FALSE@,$STATIC_JPEG_FALSE,;t t
7969
 
s,@STATIC_AVFORMAT_TRUE@,$STATIC_AVFORMAT_TRUE,;t t
7970
 
s,@STATIC_AVFORMAT_FALSE@,$STATIC_AVFORMAT_FALSE,;t t
7971
 
s,@STATIC_AVCODEC_TRUE@,$STATIC_AVCODEC_TRUE,;t t
7972
 
s,@STATIC_AVCODEC_FALSE@,$STATIC_AVCODEC_FALSE,;t t
7973
 
s,@EGREP@,$EGREP,;t t
7974
 
s,@LIBOBJS@,$LIBOBJS,;t t
7975
 
s,@HAVE_SYS_SOUNDCARD_H_TRUE@,$HAVE_SYS_SOUNDCARD_H_TRUE,;t t
7976
 
s,@HAVE_SYS_SOUNDCARD_H_FALSE@,$HAVE_SYS_SOUNDCARD_H_FALSE,;t t
7977
 
s,@HAVE_GETOPT_LONG_TRUE@,$HAVE_GETOPT_LONG_TRUE,;t t
7978
 
s,@HAVE_GETOPT_LONG_FALSE@,$HAVE_GETOPT_LONG_FALSE,;t t
7979
 
s,@HAVE_MALLOC_TRUE@,$HAVE_MALLOC_TRUE,;t t
7980
 
s,@HAVE_MALLOC_FALSE@,$HAVE_MALLOC_FALSE,;t t
7981
 
s,@HAVE_REALLOC_TRUE@,$HAVE_REALLOC_TRUE,;t t
7982
 
s,@HAVE_REALLOC_FALSE@,$HAVE_REALLOC_FALSE,;t t
7983
 
s,@WITHGT_TRUE@,$WITHGT_TRUE,;t t
7984
 
s,@WITHGT_FALSE@,$WITHGT_FALSE,;t t
7985
 
s,@WITHGTK2_TRUE@,$WITHGTK2_TRUE,;t t
7986
 
s,@WITHGTK2_FALSE@,$WITHGTK2_FALSE,;t t
7987
 
s,@HAVE_FFMPEG_AUDIO_TRUE@,$HAVE_FFMPEG_AUDIO_TRUE,;t t
7988
 
s,@HAVE_FFMPEG_AUDIO_FALSE@,$HAVE_FFMPEG_AUDIO_FALSE,;t t
7989
 
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7990
 
CEOF
7991
 
 
7992
 
_ACEOF
7993
 
 
7994
 
  cat >>$CONFIG_STATUS <<\_ACEOF
7995
 
  # Split the substitutions into bite-sized pieces for seds with
7996
 
  # small command number limits, like on Digital OSF/1 and HP-UX.
7997
 
  ac_max_sed_lines=48
7998
 
  ac_sed_frag=1 # Number of current file.
7999
 
  ac_beg=1 # First line for current file.
8000
 
  ac_end=$ac_max_sed_lines # Line after last line for current file.
8001
 
  ac_more_lines=:
8002
 
  ac_sed_cmds=
8003
 
  while $ac_more_lines; do
8004
 
    if test $ac_beg -gt 1; then
8005
 
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8006
 
    else
8007
 
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8008
 
    fi
8009
 
    if test ! -s $tmp/subs.frag; then
8010
 
      ac_more_lines=false
8011
 
    else
8012
 
      # The purpose of the label and of the branching condition is to
8013
 
      # speed up the sed processing (if there are no `@' at all, there
8014
 
      # is no need to browse any of the substitutions).
8015
 
      # These are the two extra sed commands mentioned above.
8016
 
      (echo ':t
8017
 
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8018
 
      if test -z "$ac_sed_cmds"; then
8019
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8020
 
      else
8021
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8022
 
      fi
8023
 
      ac_sed_frag=`expr $ac_sed_frag + 1`
8024
 
      ac_beg=$ac_end
8025
 
      ac_end=`expr $ac_end + $ac_max_sed_lines`
8026
 
    fi
8027
 
  done
8028
 
  if test -z "$ac_sed_cmds"; then
8029
 
    ac_sed_cmds=cat
8030
 
  fi
 
14348
if test -n "$CONFIG_FILES"; then
 
14349
 
 
14350
_ACEOF
 
14351
 
 
14352
 
 
14353
 
 
14354
ac_delim='%!_!# '
 
14355
for ac_last_try in false false false false false :; do
 
14356
  cat >conf$$subs.sed <<_ACEOF
 
14357
SHELL!$SHELL$ac_delim
 
14358
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
14359
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
14360
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
14361
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
14362
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
14363
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
14364
exec_prefix!$exec_prefix$ac_delim
 
14365
prefix!$prefix$ac_delim
 
14366
program_transform_name!$program_transform_name$ac_delim
 
14367
bindir!$bindir$ac_delim
 
14368
sbindir!$sbindir$ac_delim
 
14369
libexecdir!$libexecdir$ac_delim
 
14370
datarootdir!$datarootdir$ac_delim
 
14371
datadir!$datadir$ac_delim
 
14372
sysconfdir!$sysconfdir$ac_delim
 
14373
sharedstatedir!$sharedstatedir$ac_delim
 
14374
localstatedir!$localstatedir$ac_delim
 
14375
includedir!$includedir$ac_delim
 
14376
oldincludedir!$oldincludedir$ac_delim
 
14377
docdir!$docdir$ac_delim
 
14378
infodir!$infodir$ac_delim
 
14379
htmldir!$htmldir$ac_delim
 
14380
dvidir!$dvidir$ac_delim
 
14381
pdfdir!$pdfdir$ac_delim
 
14382
psdir!$psdir$ac_delim
 
14383
libdir!$libdir$ac_delim
 
14384
localedir!$localedir$ac_delim
 
14385
mandir!$mandir$ac_delim
 
14386
DEFS!$DEFS$ac_delim
 
14387
ECHO_C!$ECHO_C$ac_delim
 
14388
ECHO_N!$ECHO_N$ac_delim
 
14389
ECHO_T!$ECHO_T$ac_delim
 
14390
LIBS!$LIBS$ac_delim
 
14391
build_alias!$build_alias$ac_delim
 
14392
host_alias!$host_alias$ac_delim
 
14393
target_alias!$target_alias$ac_delim
 
14394
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 
14395
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 
14396
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
14397
CYGPATH_W!$CYGPATH_W$ac_delim
 
14398
PACKAGE!$PACKAGE$ac_delim
 
14399
VERSION!$VERSION$ac_delim
 
14400
ACLOCAL!$ACLOCAL$ac_delim
 
14401
AUTOCONF!$AUTOCONF$ac_delim
 
14402
AUTOMAKE!$AUTOMAKE$ac_delim
 
14403
AUTOHEADER!$AUTOHEADER$ac_delim
 
14404
MAKEINFO!$MAKEINFO$ac_delim
 
14405
install_sh!$install_sh$ac_delim
 
14406
STRIP!$STRIP$ac_delim
 
14407
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
 
14408
mkdir_p!$mkdir_p$ac_delim
 
14409
AWK!$AWK$ac_delim
 
14410
SET_MAKE!$SET_MAKE$ac_delim
 
14411
am__leading_dot!$am__leading_dot$ac_delim
 
14412
AMTAR!$AMTAR$ac_delim
 
14413
am__tar!$am__tar$ac_delim
 
14414
am__untar!$am__untar$ac_delim
 
14415
MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
 
14416
MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
 
14417
MAINT!$MAINT$ac_delim
 
14418
INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim
 
14419
INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim
 
14420
INTLTOOL_KEYS_RULE!$INTLTOOL_KEYS_RULE$ac_delim
 
14421
INTLTOOL_PROP_RULE!$INTLTOOL_PROP_RULE$ac_delim
 
14422
INTLTOOL_OAF_RULE!$INTLTOOL_OAF_RULE$ac_delim
 
14423
INTLTOOL_PONG_RULE!$INTLTOOL_PONG_RULE$ac_delim
 
14424
INTLTOOL_SERVER_RULE!$INTLTOOL_SERVER_RULE$ac_delim
 
14425
INTLTOOL_SHEET_RULE!$INTLTOOL_SHEET_RULE$ac_delim
 
14426
INTLTOOL_SOUNDLIST_RULE!$INTLTOOL_SOUNDLIST_RULE$ac_delim
 
14427
INTLTOOL_UI_RULE!$INTLTOOL_UI_RULE$ac_delim
 
14428
INTLTOOL_XAM_RULE!$INTLTOOL_XAM_RULE$ac_delim
 
14429
INTLTOOL_KBD_RULE!$INTLTOOL_KBD_RULE$ac_delim
 
14430
INTLTOOL_XML_RULE!$INTLTOOL_XML_RULE$ac_delim
 
14431
INTLTOOL_XML_NOMERGE_RULE!$INTLTOOL_XML_NOMERGE_RULE$ac_delim
 
14432
INTLTOOL_CAVES_RULE!$INTLTOOL_CAVES_RULE$ac_delim
 
14433
INTLTOOL_SCHEMAS_RULE!$INTLTOOL_SCHEMAS_RULE$ac_delim
 
14434
INTLTOOL_THEME_RULE!$INTLTOOL_THEME_RULE$ac_delim
 
14435
INTLTOOL_SERVICE_RULE!$INTLTOOL_SERVICE_RULE$ac_delim
 
14436
INTLTOOL_EXTRACT!$INTLTOOL_EXTRACT$ac_delim
 
14437
INTLTOOL_MERGE!$INTLTOOL_MERGE$ac_delim
 
14438
INTLTOOL_UPDATE!$INTLTOOL_UPDATE$ac_delim
 
14439
INTLTOOL_PERL!$INTLTOOL_PERL$ac_delim
 
14440
INTLTOOL_ICONV!$INTLTOOL_ICONV$ac_delim
 
14441
INTLTOOL_MSGFMT!$INTLTOOL_MSGFMT$ac_delim
 
14442
INTLTOOL_MSGMERGE!$INTLTOOL_MSGMERGE$ac_delim
 
14443
INTLTOOL_XGETTEXT!$INTLTOOL_XGETTEXT$ac_delim
 
14444
ALL_LINGUAS!$ALL_LINGUAS$ac_delim
 
14445
CC!$CC$ac_delim
 
14446
CFLAGS!$CFLAGS$ac_delim
 
14447
LDFLAGS!$LDFLAGS$ac_delim
 
14448
CPPFLAGS!$CPPFLAGS$ac_delim
 
14449
ac_ct_CC!$ac_ct_CC$ac_delim
 
14450
EXEEXT!$EXEEXT$ac_delim
 
14451
OBJEXT!$OBJEXT$ac_delim
 
14452
DEPDIR!$DEPDIR$ac_delim
 
14453
am__include!$am__include$ac_delim
 
14454
_ACEOF
 
14455
 
 
14456
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
14457
    break
 
14458
  elif $ac_last_try; then
 
14459
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
14460
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
14461
   { (exit 1); exit 1; }; }
 
14462
  else
 
14463
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
14464
  fi
 
14465
done
 
14466
 
 
14467
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
14468
if test -n "$ac_eof"; then
 
14469
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
14470
  ac_eof=`expr $ac_eof + 1`
 
14471
fi
 
14472
 
 
14473
cat >>$CONFIG_STATUS <<_ACEOF
 
14474
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
14475
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
14476
_ACEOF
 
14477
sed '
 
14478
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
14479
s/^/s,@/; s/!/@,|#_!!_#|/
 
14480
:n
 
14481
t n
 
14482
s/'"$ac_delim"'$/,g/; t
 
14483
s/$/\\/; p
 
14484
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
14485
' >>$CONFIG_STATUS <conf$$subs.sed
 
14486
rm -f conf$$subs.sed
 
14487
cat >>$CONFIG_STATUS <<_ACEOF
 
14488
CEOF$ac_eof
 
14489
_ACEOF
 
14490
 
 
14491
 
 
14492
ac_delim='%!_!# '
 
14493
for ac_last_try in false false false false false :; do
 
14494
  cat >conf$$subs.sed <<_ACEOF
 
14495
am__quote!$am__quote$ac_delim
 
14496
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
 
14497
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
 
14498
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 
14499
CCDEPMODE!$CCDEPMODE$ac_delim
 
14500
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 
14501
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 
14502
DATADIRNAME!$DATADIRNAME$ac_delim
 
14503
CPP!$CPP$ac_delim
 
14504
GREP!$GREP$ac_delim
 
14505
EGREP!$EGREP$ac_delim
 
14506
RANLIB!$RANLIB$ac_delim
 
14507
BC!$BC$ac_delim
 
14508
XMKMF!$XMKMF$ac_delim
 
14509
X_CFLAGS!$X_CFLAGS$ac_delim
 
14510
X_PRE_LIBS!$X_PRE_LIBS$ac_delim
 
14511
X_LIBS!$X_LIBS$ac_delim
 
14512
X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
 
14513
SCROLLKEEPER_BUILD_REQUIRED!$SCROLLKEEPER_BUILD_REQUIRED$ac_delim
 
14514
SK_CONFIG!$SK_CONFIG$ac_delim
 
14515
MK!$MK$ac_delim
 
14516
DOCBOOK2X_MAN!$DOCBOOK2X_MAN$ac_delim
 
14517
XML2PO!$XML2PO$ac_delim
 
14518
GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
 
14519
build!$build$ac_delim
 
14520
build_cpu!$build_cpu$ac_delim
 
14521
build_vendor!$build_vendor$ac_delim
 
14522
build_os!$build_os$ac_delim
 
14523
host!$host$ac_delim
 
14524
host_cpu!$host_cpu$ac_delim
 
14525
host_vendor!$host_vendor$ac_delim
 
14526
host_os!$host_os$ac_delim
 
14527
USE_NLS!$USE_NLS$ac_delim
 
14528
MSGFMT!$MSGFMT$ac_delim
 
14529
MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
 
14530
GMSGFMT!$GMSGFMT$ac_delim
 
14531
XGETTEXT!$XGETTEXT$ac_delim
 
14532
CATALOGS!$CATALOGS$ac_delim
 
14533
CATOBJEXT!$CATOBJEXT$ac_delim
 
14534
GMOFILES!$GMOFILES$ac_delim
 
14535
INSTOBJEXT!$INSTOBJEXT$ac_delim
 
14536
INTLLIBS!$INTLLIBS$ac_delim
 
14537
PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
 
14538
PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
 
14539
POFILES!$POFILES$ac_delim
 
14540
POSUB!$POSUB$ac_delim
 
14541
MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
 
14542
PKG_CONFIG!$PKG_CONFIG$ac_delim
 
14543
PACKAGE_CFLAGS!$PACKAGE_CFLAGS$ac_delim
 
14544
PACKAGE_LIBS!$PACKAGE_LIBS$ac_delim
 
14545
SOLARIS_TRUE!$SOLARIS_TRUE$ac_delim
 
14546
SOLARIS_FALSE!$SOLARIS_FALSE$ac_delim
 
14547
LINUX_TRUE!$LINUX_TRUE$ac_delim
 
14548
LINUX_FALSE!$LINUX_FALSE$ac_delim
 
14549
HPUX_TRUE!$HPUX_TRUE$ac_delim
 
14550
HPUX_FALSE!$HPUX_FALSE$ac_delim
 
14551
FREEBSD_TRUE!$FREEBSD_TRUE$ac_delim
 
14552
FREEBSD_FALSE!$FREEBSD_FALSE$ac_delim
 
14553
HAVE_LIBMP3LAME_TRUE!$HAVE_LIBMP3LAME_TRUE$ac_delim
 
14554
HAVE_LIBMP3LAME_FALSE!$HAVE_LIBMP3LAME_FALSE$ac_delim
 
14555
HAVE_LIBTHEORA_TRUE!$HAVE_LIBTHEORA_TRUE$ac_delim
 
14556
HAVE_LIBTHEORA_FALSE!$HAVE_LIBTHEORA_FALSE$ac_delim
 
14557
HAVE_PTHREAD_TRUE!$HAVE_PTHREAD_TRUE$ac_delim
 
14558
HAVE_PTHREAD_FALSE!$HAVE_PTHREAD_FALSE$ac_delim
 
14559
STATIC_AVFORMAT_TRUE!$STATIC_AVFORMAT_TRUE$ac_delim
 
14560
STATIC_AVFORMAT_FALSE!$STATIC_AVFORMAT_FALSE$ac_delim
 
14561
STATIC_AVCODEC_TRUE!$STATIC_AVCODEC_TRUE$ac_delim
 
14562
STATIC_AVCODEC_FALSE!$STATIC_AVCODEC_FALSE$ac_delim
 
14563
STATIC_AVUTIL_TRUE!$STATIC_AVUTIL_TRUE$ac_delim
 
14564
STATIC_AVUTIL_FALSE!$STATIC_AVUTIL_FALSE$ac_delim
 
14565
LIBOBJS!$LIBOBJS$ac_delim
 
14566
HAVE_GETOPT_LONG_TRUE!$HAVE_GETOPT_LONG_TRUE$ac_delim
 
14567
HAVE_GETOPT_LONG_FALSE!$HAVE_GETOPT_LONG_FALSE$ac_delim
 
14568
HAVE_MALLOC_TRUE!$HAVE_MALLOC_TRUE$ac_delim
 
14569
HAVE_MALLOC_FALSE!$HAVE_MALLOC_FALSE$ac_delim
 
14570
HAVE_REALLOC_TRUE!$HAVE_REALLOC_TRUE$ac_delim
 
14571
HAVE_REALLOC_FALSE!$HAVE_REALLOC_FALSE$ac_delim
 
14572
HAVE_FFMPEG_AUDIO_TRUE!$HAVE_FFMPEG_AUDIO_TRUE$ac_delim
 
14573
HAVE_FFMPEG_AUDIO_FALSE!$HAVE_FFMPEG_AUDIO_FALSE$ac_delim
 
14574
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
14575
_ACEOF
 
14576
 
 
14577
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
 
14578
    break
 
14579
  elif $ac_last_try; then
 
14580
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
14581
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
14582
   { (exit 1); exit 1; }; }
 
14583
  else
 
14584
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
14585
  fi
 
14586
done
 
14587
 
 
14588
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
14589
if test -n "$ac_eof"; then
 
14590
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
14591
  ac_eof=`expr $ac_eof + 1`
 
14592
fi
 
14593
 
 
14594
cat >>$CONFIG_STATUS <<_ACEOF
 
14595
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
14596
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
14597
_ACEOF
 
14598
sed '
 
14599
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
14600
s/^/s,@/; s/!/@,|#_!!_#|/
 
14601
:n
 
14602
t n
 
14603
s/'"$ac_delim"'$/,g/; t
 
14604
s/$/\\/; p
 
14605
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
14606
' >>$CONFIG_STATUS <conf$$subs.sed
 
14607
rm -f conf$$subs.sed
 
14608
cat >>$CONFIG_STATUS <<_ACEOF
 
14609
:end
 
14610
s/|#_!!_#|//g
 
14611
CEOF$ac_eof
 
14612
_ACEOF
 
14613
 
 
14614
 
 
14615
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
14616
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
14617
# trailing colons and then remove the whole line if VPATH becomes empty
 
14618
# (actually we leave an empty line to preserve line numbers).
 
14619
if test "x$srcdir" = x.; then
 
14620
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
14621
s/:*\$(srcdir):*/:/
 
14622
s/:*\${srcdir}:*/:/
 
14623
s/:*@srcdir@:*/:/
 
14624
s/^\([^=]*=[     ]*\):*/\1/
 
14625
s/:*$//
 
14626
s/^[^=]*=[       ]*$//
 
14627
}'
 
14628
fi
 
14629
 
 
14630
cat >>$CONFIG_STATUS <<\_ACEOF
8031
14631
fi # test -n "$CONFIG_FILES"
8032
14632
 
8033
 
_ACEOF
8034
 
cat >>$CONFIG_STATUS <<\_ACEOF
8035
 
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8036
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8037
 
  case $ac_file in
8038
 
  - | *:- | *:-:* ) # input from stdin
8039
 
        cat >$tmp/stdin
8040
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8041
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8042
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8043
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8044
 
  * )   ac_file_in=$ac_file.in ;;
8045
 
  esac
8046
 
 
8047
 
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8048
 
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
14633
 
 
14634
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 
14635
do
 
14636
  case $ac_tag in
 
14637
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
14638
  esac
 
14639
  case $ac_mode$ac_tag in
 
14640
  :[FHL]*:*);;
 
14641
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
14642
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
14643
   { (exit 1); exit 1; }; };;
 
14644
  :[FH]-) ac_tag=-:-;;
 
14645
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
14646
  esac
 
14647
  ac_save_IFS=$IFS
 
14648
  IFS=:
 
14649
  set x $ac_tag
 
14650
  IFS=$ac_save_IFS
 
14651
  shift
 
14652
  ac_file=$1
 
14653
  shift
 
14654
 
 
14655
  case $ac_mode in
 
14656
  :L) ac_source=$1;;
 
14657
  :[FH])
 
14658
    ac_file_inputs=
 
14659
    for ac_f
 
14660
    do
 
14661
      case $ac_f in
 
14662
      -) ac_f="$tmp/stdin";;
 
14663
      *) # Look for the file first in the build tree, then in the source tree
 
14664
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
14665
         # because $ac_f cannot contain `:'.
 
14666
         test -f "$ac_f" ||
 
14667
           case $ac_f in
 
14668
           [\\/$]*) false;;
 
14669
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
14670
           esac ||
 
14671
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
14672
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
14673
   { (exit 1); exit 1; }; };;
 
14674
      esac
 
14675
      ac_file_inputs="$ac_file_inputs $ac_f"
 
14676
    done
 
14677
 
 
14678
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
14679
    # use $as_me), people would be surprised to read:
 
14680
    #    /* config.h.  Generated by config.status.  */
 
14681
    configure_input="Generated from "`IFS=:
 
14682
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
14683
    if test x"$ac_file" != x-; then
 
14684
      configure_input="$ac_file.  $configure_input"
 
14685
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
14686
echo "$as_me: creating $ac_file" >&6;}
 
14687
    fi
 
14688
 
 
14689
    case $ac_tag in
 
14690
    *:-:* | *:-) cat >"$tmp/stdin";;
 
14691
    esac
 
14692
    ;;
 
14693
  esac
 
14694
 
 
14695
  ac_dir=`$as_dirname -- "$ac_file" ||
8049
14696
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8050
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
8051
 
         X"$ac_file" : 'X\(//\)$' \| \
8052
 
         X"$ac_file" : 'X\(/\)' \| \
8053
 
         .     : '\(.\)' 2>/dev/null ||
 
14697
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
14698
         X"$ac_file" : 'X\(//\)$' \| \
 
14699
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8054
14700
echo X"$ac_file" |
8055
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8056
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8057
 
          /^X\(\/\/\)$/{ s//\1/; q; }
8058
 
          /^X\(\/\).*/{ s//\1/; q; }
8059
 
          s/.*/./; q'`
8060
 
  { if $as_mkdir_p; then
8061
 
    mkdir -p "$ac_dir"
8062
 
  else
8063
 
    as_dir="$ac_dir"
 
14701
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14702
            s//\1/
 
14703
            q
 
14704
          }
 
14705
          /^X\(\/\/\)[^/].*/{
 
14706
            s//\1/
 
14707
            q
 
14708
          }
 
14709
          /^X\(\/\/\)$/{
 
14710
            s//\1/
 
14711
            q
 
14712
          }
 
14713
          /^X\(\/\).*/{
 
14714
            s//\1/
 
14715
            q
 
14716
          }
 
14717
          s/.*/./; q'`
 
14718
  { as_dir="$ac_dir"
 
14719
  case $as_dir in #(
 
14720
  -*) as_dir=./$as_dir;;
 
14721
  esac
 
14722
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8064
14723
    as_dirs=
8065
 
    while test ! -d "$as_dir"; do
8066
 
      as_dirs="$as_dir $as_dirs"
8067
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
14724
    while :; do
 
14725
      case $as_dir in #(
 
14726
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
14727
      *) as_qdir=$as_dir;;
 
14728
      esac
 
14729
      as_dirs="'$as_qdir' $as_dirs"
 
14730
      as_dir=`$as_dirname -- "$as_dir" ||
8068
14731
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8069
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
8070
 
         X"$as_dir" : 'X\(//\)$' \| \
8071
 
         X"$as_dir" : 'X\(/\)' \| \
8072
 
         .     : '\(.\)' 2>/dev/null ||
 
14732
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
14733
         X"$as_dir" : 'X\(//\)$' \| \
 
14734
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8073
14735
echo X"$as_dir" |
8074
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8075
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8076
 
          /^X\(\/\/\)$/{ s//\1/; q; }
8077
 
          /^X\(\/\).*/{ s//\1/; q; }
8078
 
          s/.*/./; q'`
 
14736
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14737
            s//\1/
 
14738
            q
 
14739
          }
 
14740
          /^X\(\/\/\)[^/].*/{
 
14741
            s//\1/
 
14742
            q
 
14743
          }
 
14744
          /^X\(\/\/\)$/{
 
14745
            s//\1/
 
14746
            q
 
14747
          }
 
14748
          /^X\(\/\).*/{
 
14749
            s//\1/
 
14750
            q
 
14751
          }
 
14752
          s/.*/./; q'`
 
14753
      test -d "$as_dir" && break
8079
14754
    done
8080
 
    test ! -n "$as_dirs" || mkdir $as_dirs
8081
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8082
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
14755
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
14756
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
14757
echo "$as_me: error: cannot create directory $as_dir" >&2;}
8083
14758
   { (exit 1); exit 1; }; }; }
8084
 
 
8085
14759
  ac_builddir=.
8086
14760
 
8087
 
if test "$ac_dir" != .; then
 
14761
case "$ac_dir" in
 
14762
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
14763
*)
8088
14764
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8089
 
  # A "../" for each directory in $ac_dir_suffix.
8090
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8091
 
else
8092
 
  ac_dir_suffix= ac_top_builddir=
8093
 
fi
 
14765
  # A ".." for each directory in $ac_dir_suffix.
 
14766
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
14767
  case $ac_top_builddir_sub in
 
14768
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
14769
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
14770
  esac ;;
 
14771
esac
 
14772
ac_abs_top_builddir=$ac_pwd
 
14773
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
14774
# for backward compatibility:
 
14775
ac_top_builddir=$ac_top_build_prefix
8094
14776
 
8095
14777
case $srcdir in
8096
 
  .)  # No --srcdir option.  We are building in place.
 
14778
  .)  # We are building in place.
8097
14779
    ac_srcdir=.
8098
 
    if test -z "$ac_top_builddir"; then
8099
 
       ac_top_srcdir=.
8100
 
    else
8101
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8102
 
    fi ;;
8103
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
14780
    ac_top_srcdir=$ac_top_builddir_sub
 
14781
    ac_abs_top_srcdir=$ac_pwd ;;
 
14782
  [\\/]* | ?:[\\/]* )  # Absolute name.
8104
14783
    ac_srcdir=$srcdir$ac_dir_suffix;
8105
 
    ac_top_srcdir=$srcdir ;;
8106
 
  *) # Relative path.
8107
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8108
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
14784
    ac_top_srcdir=$srcdir
 
14785
    ac_abs_top_srcdir=$srcdir ;;
 
14786
  *) # Relative name.
 
14787
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
14788
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
14789
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8109
14790
esac
8110
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8111
 
# absolute.
8112
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8113
 
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8114
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8115
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8116
 
 
 
14791
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
14792
 
 
14793
 
 
14794
  case $ac_mode in
 
14795
  :F)
 
14796
  #
 
14797
  # CONFIG_FILE
 
14798
  #
8117
14799
 
8118
14800
  case $INSTALL in
8119
14801
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8120
 
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
14802
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8121
14803
  esac
8122
 
 
8123
 
  if test x"$ac_file" != x-; then
8124
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
8125
 
echo "$as_me: creating $ac_file" >&6;}
8126
 
    rm -f "$ac_file"
8127
 
  fi
8128
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
8129
 
  # use $as_me), people would be surprised to read:
8130
 
  #    /* config.h.  Generated by config.status.  */
8131
 
  if test x"$ac_file" = x-; then
8132
 
    configure_input=
8133
 
  else
8134
 
    configure_input="$ac_file.  "
8135
 
  fi
8136
 
  configure_input=$configure_input"Generated from `echo $ac_file_in |
8137
 
                                     sed 's,.*/,,'` by configure."
8138
 
 
8139
 
  # First look for the input files in the build tree, otherwise in the
8140
 
  # src tree.
8141
 
  ac_file_inputs=`IFS=:
8142
 
    for f in $ac_file_in; do
8143
 
      case $f in
8144
 
      -) echo $tmp/stdin ;;
8145
 
      [\\/$]*)
8146
 
         # Absolute (can't be DOS-style, as IFS=:)
8147
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8148
 
echo "$as_me: error: cannot find input file: $f" >&2;}
8149
 
   { (exit 1); exit 1; }; }
8150
 
         echo $f;;
8151
 
      *) # Relative
8152
 
         if test -f "$f"; then
8153
 
           # Build tree
8154
 
           echo $f
8155
 
         elif test -f "$srcdir/$f"; then
8156
 
           # Source tree
8157
 
           echo $srcdir/$f
8158
 
         else
8159
 
           # /dev/null tree
8160
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8161
 
echo "$as_me: error: cannot find input file: $f" >&2;}
8162
 
   { (exit 1); exit 1; }; }
8163
 
         fi;;
8164
 
      esac
8165
 
    done` || { (exit 1); exit 1; }
8166
 
_ACEOF
 
14804
_ACEOF
 
14805
 
 
14806
cat >>$CONFIG_STATUS <<\_ACEOF
 
14807
# If the template does not know about datarootdir, expand it.
 
14808
# FIXME: This hack should be removed a few years after 2.60.
 
14809
ac_datarootdir_hack=; ac_datarootdir_seen=
 
14810
 
 
14811
case `sed -n '/datarootdir/ {
 
14812
  p
 
14813
  q
 
14814
}
 
14815
/@datadir@/p
 
14816
/@docdir@/p
 
14817
/@infodir@/p
 
14818
/@localedir@/p
 
14819
/@mandir@/p
 
14820
' $ac_file_inputs` in
 
14821
*datarootdir*) ac_datarootdir_seen=yes;;
 
14822
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
14823
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
14824
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
14825
_ACEOF
 
14826
cat >>$CONFIG_STATUS <<_ACEOF
 
14827
  ac_datarootdir_hack='
 
14828
  s&@datadir@&$datadir&g
 
14829
  s&@docdir@&$docdir&g
 
14830
  s&@infodir@&$infodir&g
 
14831
  s&@localedir@&$localedir&g
 
14832
  s&@mandir@&$mandir&g
 
14833
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
14834
esac
 
14835
_ACEOF
 
14836
 
 
14837
# Neutralize VPATH when `$srcdir' = `.'.
 
14838
# Shell code in configure.ac might set extrasub.
 
14839
# FIXME: do we really want to maintain this feature?
8167
14840
cat >>$CONFIG_STATUS <<_ACEOF
8168
14841
  sed "$ac_vpsub
8169
14842
$extrasub
8171
14844
cat >>$CONFIG_STATUS <<\_ACEOF
8172
14845
:t
8173
14846
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8174
 
s,@configure_input@,$configure_input,;t t
8175
 
s,@srcdir@,$ac_srcdir,;t t
8176
 
s,@abs_srcdir@,$ac_abs_srcdir,;t t
8177
 
s,@top_srcdir@,$ac_top_srcdir,;t t
8178
 
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8179
 
s,@builddir@,$ac_builddir,;t t
8180
 
s,@abs_builddir@,$ac_abs_builddir,;t t
8181
 
s,@top_builddir@,$ac_top_builddir,;t t
8182
 
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8183
 
s,@INSTALL@,$ac_INSTALL,;t t
8184
 
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8185
 
  rm -f $tmp/stdin
8186
 
  if test x"$ac_file" != x-; then
8187
 
    mv $tmp/out $ac_file
8188
 
  else
8189
 
    cat $tmp/out
8190
 
    rm -f $tmp/out
8191
 
  fi
8192
 
 
8193
 
done
 
14847
s&@configure_input@&$configure_input&;t t
 
14848
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
14849
s&@srcdir@&$ac_srcdir&;t t
 
14850
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
14851
s&@top_srcdir@&$ac_top_srcdir&;t t
 
14852
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
14853
s&@builddir@&$ac_builddir&;t t
 
14854
s&@abs_builddir@&$ac_abs_builddir&;t t
 
14855
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
14856
s&@INSTALL@&$ac_INSTALL&;t t
 
14857
$ac_datarootdir_hack
 
14858
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
14859
 
 
14860
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
14861
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
14862
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
14863
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
14864
which seems to be undefined.  Please make sure it is defined." >&5
 
14865
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
14866
which seems to be undefined.  Please make sure it is defined." >&2;}
 
14867
 
 
14868
  rm -f "$tmp/stdin"
 
14869
  case $ac_file in
 
14870
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
14871
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
14872
  esac
 
14873
 ;;
 
14874
  :H)
 
14875
  #
 
14876
  # CONFIG_HEADER
 
14877
  #
8194
14878
_ACEOF
8195
 
cat >>$CONFIG_STATUS <<\_ACEOF
8196
 
 
8197
 
#
8198
 
# CONFIG_HEADER section.
8199
 
#
8200
 
 
8201
 
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8202
 
# NAME is the cpp macro being defined and VALUE is the value it is being given.
8203
 
#
8204
 
# ac_d sets the value in "#define NAME VALUE" lines.
8205
 
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
8206
 
ac_dB='[        ].*$,\1#\2'
 
14879
 
 
14880
# Transform confdefs.h into a sed script `conftest.defines', that
 
14881
# substitutes the proper values into config.h.in to produce config.h.
 
14882
rm -f conftest.defines conftest.tail
 
14883
# First, append a space to every undef/define line, to ease matching.
 
14884
echo 's/$/ /' >conftest.defines
 
14885
# Then, protect against being on the right side of a sed subst, or in
 
14886
# an unquoted here document, in config.status.  If some macros were
 
14887
# called several times there might be several #defines for the same
 
14888
# symbol, which is useless.  But do not sort them, since the last
 
14889
# AC_DEFINE must be honored.
 
14890
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
14891
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 
14892
# NAME is the cpp macro being defined, VALUE is the value it is being given.
 
14893
# PARAMS is the parameter list in the macro definition--in most cases, it's
 
14894
# just an empty string.
 
14895
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
 
14896
ac_dB='\\)[      (].*,\\1define\\2'
8207
14897
ac_dC=' '
8208
 
ac_dD=',;t'
8209
 
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8210
 
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8211
 
ac_uB='$,\1#\2define\3'
8212
 
ac_uC=' '
8213
 
ac_uD=',;t'
8214
 
 
8215
 
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8216
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8217
 
  case $ac_file in
8218
 
  - | *:- | *:-:* ) # input from stdin
8219
 
        cat >$tmp/stdin
8220
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8221
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8222
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8223
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8224
 
  * )   ac_file_in=$ac_file.in ;;
8225
 
  esac
8226
 
 
8227
 
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8228
 
echo "$as_me: creating $ac_file" >&6;}
8229
 
 
8230
 
  # First look for the input files in the build tree, otherwise in the
8231
 
  # src tree.
8232
 
  ac_file_inputs=`IFS=:
8233
 
    for f in $ac_file_in; do
8234
 
      case $f in
8235
 
      -) echo $tmp/stdin ;;
8236
 
      [\\/$]*)
8237
 
         # Absolute (can't be DOS-style, as IFS=:)
8238
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8239
 
echo "$as_me: error: cannot find input file: $f" >&2;}
8240
 
   { (exit 1); exit 1; }; }
8241
 
         echo $f;;
8242
 
      *) # Relative
8243
 
         if test -f "$f"; then
8244
 
           # Build tree
8245
 
           echo $f
8246
 
         elif test -f "$srcdir/$f"; then
8247
 
           # Source tree
8248
 
           echo $srcdir/$f
8249
 
         else
8250
 
           # /dev/null tree
8251
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8252
 
echo "$as_me: error: cannot find input file: $f" >&2;}
8253
 
   { (exit 1); exit 1; }; }
8254
 
         fi;;
8255
 
      esac
8256
 
    done` || { (exit 1); exit 1; }
8257
 
  # Remove the trailing spaces.
8258
 
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
8259
 
 
8260
 
_ACEOF
8261
 
 
8262
 
# Transform confdefs.h into two sed scripts, `conftest.defines' and
8263
 
# `conftest.undefs', that substitutes the proper values into
8264
 
# config.h.in to produce config.h.  The first handles `#define'
8265
 
# templates, and the second `#undef' templates.
8266
 
# And first: Protect against being on the right side of a sed subst in
8267
 
# config.status.  Protect against being in an unquoted here document
8268
 
# in config.status.
8269
 
rm -f conftest.defines conftest.undefs
8270
 
# Using a here document instead of a string reduces the quoting nightmare.
8271
 
# Putting comments in sed scripts is not portable.
8272
 
#
8273
 
# `end' is used to avoid that the second main sed command (meant for
8274
 
# 0-ary CPP macros) applies to n-ary macro definitions.
8275
 
# See the Autoconf documentation for `clear'.
8276
 
cat >confdef2sed.sed <<\_ACEOF
8277
 
s/[\\&,]/\\&/g
8278
 
s,[\\$`],\\&,g
8279
 
t clear
8280
 
: clear
8281
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8282
 
t end
8283
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8284
 
: end
8285
 
_ACEOF
8286
 
# If some macros were called several times there might be several times
8287
 
# the same #defines, which is useless.  Nevertheless, we may not want to
8288
 
# sort them, since we want the *last* AC-DEFINE to be honored.
8289
 
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8290
 
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8291
 
rm -f confdef2sed.sed
8292
 
 
8293
 
# This sed command replaces #undef with comments.  This is necessary, for
 
14898
ac_dD=' ,'
 
14899
 
 
14900
uniq confdefs.h |
 
14901
  sed -n '
 
14902
        t rset
 
14903
        :rset
 
14904
        s/^[     ]*#[    ]*define[       ][      ]*//
 
14905
        t ok
 
14906
        d
 
14907
        :ok
 
14908
        s/[\\&,]/\\&/g
 
14909
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 
14910
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 
14911
  ' >>conftest.defines
 
14912
 
 
14913
# Remove the space that was appended to ease matching.
 
14914
# Then replace #undef with comments.  This is necessary, for
8294
14915
# example, in the case of _POSIX_SOURCE, which is predefined and required
8295
14916
# on some systems where configure will not decide to define it.
8296
 
cat >>conftest.undefs <<\_ACEOF
8297
 
s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
14917
# (The regexp can be short, since the line contains either #define or #undef.)
 
14918
echo 's/ $//
 
14919
s,^[     #]*u.*,/* & */,' >>conftest.defines
 
14920
 
 
14921
# Break up conftest.defines:
 
14922
ac_max_sed_lines=50
 
14923
 
 
14924
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 
14925
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 
14926
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 
14927
# et cetera.
 
14928
ac_in='$ac_file_inputs'
 
14929
ac_out='"$tmp/out1"'
 
14930
ac_nxt='"$tmp/out2"'
 
14931
 
 
14932
while :
 
14933
do
 
14934
  # Write a here document:
 
14935
    cat >>$CONFIG_STATUS <<_ACEOF
 
14936
    # First, check the format of the line:
 
14937
    cat >"\$tmp/defines.sed" <<\\CEOF
 
14938
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
 
14939
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
 
14940
b
 
14941
:def
8298
14942
_ACEOF
8299
 
 
8300
 
# Break up conftest.defines because some shells have a limit on the size
8301
 
# of here documents, and old seds have small limits too (100 cmds).
8302
 
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8303
 
echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8304
 
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8305
 
echo '  :' >>$CONFIG_STATUS
8306
 
rm -f conftest.tail
8307
 
while grep . conftest.defines >/dev/null
8308
 
do
8309
 
  # Write a limited-size here document to $tmp/defines.sed.
8310
 
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8311
 
  # Speed up: don't consider the non `#define' lines.
8312
 
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
8313
 
  # Work around the forget-to-reset-the-flag bug.
8314
 
  echo 't clr' >>$CONFIG_STATUS
8315
 
  echo ': clr' >>$CONFIG_STATUS
8316
 
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
14943
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
8317
14944
  echo 'CEOF
8318
 
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
8319
 
  rm -f $tmp/in
8320
 
  mv $tmp/out $tmp/in
8321
 
' >>$CONFIG_STATUS
8322
 
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
14945
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 
14946
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 
14947
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 
14948
  grep . conftest.tail >/dev/null || break
8323
14949
  rm -f conftest.defines
8324
14950
  mv conftest.tail conftest.defines
8325
14951
done
8326
 
rm -f conftest.defines
8327
 
echo '  fi # grep' >>$CONFIG_STATUS
8328
 
echo >>$CONFIG_STATUS
8329
 
 
8330
 
# Break up conftest.undefs because some shells have a limit on the size
8331
 
# of here documents, and old seds have small limits too (100 cmds).
8332
 
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
8333
 
rm -f conftest.tail
8334
 
while grep . conftest.undefs >/dev/null
8335
 
do
8336
 
  # Write a limited-size here document to $tmp/undefs.sed.
8337
 
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8338
 
  # Speed up: don't consider the non `#undef'
8339
 
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8340
 
  # Work around the forget-to-reset-the-flag bug.
8341
 
  echo 't clr' >>$CONFIG_STATUS
8342
 
  echo ': clr' >>$CONFIG_STATUS
8343
 
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8344
 
  echo 'CEOF
8345
 
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8346
 
  rm -f $tmp/in
8347
 
  mv $tmp/out $tmp/in
8348
 
' >>$CONFIG_STATUS
8349
 
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8350
 
  rm -f conftest.undefs
8351
 
  mv conftest.tail conftest.undefs
8352
 
done
8353
 
rm -f conftest.undefs
8354
 
 
 
14952
rm -f conftest.defines conftest.tail
 
14953
 
 
14954
echo "ac_result=$ac_in" >>$CONFIG_STATUS
8355
14955
cat >>$CONFIG_STATUS <<\_ACEOF
8356
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
8357
 
  # use $as_me), people would be surprised to read:
8358
 
  #    /* config.h.  Generated by config.status.  */
8359
 
  if test x"$ac_file" = x-; then
8360
 
    echo "/* Generated by configure.  */" >$tmp/config.h
8361
 
  else
8362
 
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
8363
 
  fi
8364
 
  cat $tmp/in >>$tmp/config.h
8365
 
  rm -f $tmp/in
8366
14956
  if test x"$ac_file" != x-; then
8367
 
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
14957
    echo "/* $configure_input  */" >"$tmp/config.h"
 
14958
    cat "$ac_result" >>"$tmp/config.h"
 
14959
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
8368
14960
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8369
14961
echo "$as_me: $ac_file is unchanged" >&6;}
8370
14962
    else
8371
 
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8372
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8373
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
8374
 
         X"$ac_file" : 'X\(//\)$' \| \
8375
 
         X"$ac_file" : 'X\(/\)' \| \
8376
 
         .     : '\(.\)' 2>/dev/null ||
8377
 
echo X"$ac_file" |
8378
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8379
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8380
 
          /^X\(\/\/\)$/{ s//\1/; q; }
8381
 
          /^X\(\/\).*/{ s//\1/; q; }
8382
 
          s/.*/./; q'`
8383
 
      { if $as_mkdir_p; then
8384
 
    mkdir -p "$ac_dir"
8385
 
  else
8386
 
    as_dir="$ac_dir"
8387
 
    as_dirs=
8388
 
    while test ! -d "$as_dir"; do
8389
 
      as_dirs="$as_dir $as_dirs"
8390
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8391
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8392
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
8393
 
         X"$as_dir" : 'X\(//\)$' \| \
8394
 
         X"$as_dir" : 'X\(/\)' \| \
8395
 
         .     : '\(.\)' 2>/dev/null ||
8396
 
echo X"$as_dir" |
8397
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8398
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8399
 
          /^X\(\/\/\)$/{ s//\1/; q; }
8400
 
          /^X\(\/\).*/{ s//\1/; q; }
8401
 
          s/.*/./; q'`
8402
 
    done
8403
 
    test ! -n "$as_dirs" || mkdir $as_dirs
8404
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8405
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8406
 
   { (exit 1); exit 1; }; }; }
8407
 
 
8408
14963
      rm -f $ac_file
8409
 
      mv $tmp/config.h $ac_file
 
14964
      mv "$tmp/config.h" $ac_file
8410
14965
    fi
8411
14966
  else
8412
 
    cat $tmp/config.h
8413
 
    rm -f $tmp/config.h
 
14967
    echo "/* $configure_input  */"
 
14968
    cat "$ac_result"
8414
14969
  fi
8415
 
_am_stamp_count=`expr ${_am_stamp_count-0} + 1`
8416
 
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
14970
  rm -f "$tmp/out12"
 
14971
# Compute $ac_file's index in $config_headers.
 
14972
_am_stamp_count=1
 
14973
for _am_header in $config_headers :; do
 
14974
  case $_am_header in
 
14975
    $ac_file | $ac_file:* )
 
14976
      break ;;
 
14977
    * )
 
14978
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
14979
  esac
 
14980
done
 
14981
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
8417
14982
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8418
 
         X$ac_file : 'X\(//\)[^/]' \| \
8419
 
         X$ac_file : 'X\(//\)$' \| \
8420
 
         X$ac_file : 'X\(/\)' \| \
8421
 
         .     : '\(.\)' 2>/dev/null ||
 
14983
         X$ac_file : 'X\(//\)[^/]' \| \
 
14984
         X$ac_file : 'X\(//\)$' \| \
 
14985
         X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
8422
14986
echo X$ac_file |
8423
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8424
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8425
 
          /^X\(\/\/\)$/{ s//\1/; q; }
8426
 
          /^X\(\/\).*/{ s//\1/; q; }
8427
 
          s/.*/./; q'`/stamp-h$_am_stamp_count
8428
 
done
8429
 
_ACEOF
8430
 
cat >>$CONFIG_STATUS <<\_ACEOF
8431
 
 
8432
 
#
8433
 
# CONFIG_COMMANDS section.
8434
 
#
8435
 
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8436
 
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8437
 
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8438
 
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8439
 
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8440
 
         X"$ac_dest" : 'X\(//\)[^/]' \| \
8441
 
         X"$ac_dest" : 'X\(//\)$' \| \
8442
 
         X"$ac_dest" : 'X\(/\)' \| \
8443
 
         .     : '\(.\)' 2>/dev/null ||
8444
 
echo X"$ac_dest" |
8445
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8446
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8447
 
          /^X\(\/\/\)$/{ s//\1/; q; }
8448
 
          /^X\(\/\).*/{ s//\1/; q; }
8449
 
          s/.*/./; q'`
8450
 
  ac_builddir=.
8451
 
 
8452
 
if test "$ac_dir" != .; then
8453
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8454
 
  # A "../" for each directory in $ac_dir_suffix.
8455
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8456
 
else
8457
 
  ac_dir_suffix= ac_top_builddir=
8458
 
fi
8459
 
 
8460
 
case $srcdir in
8461
 
  .)  # No --srcdir option.  We are building in place.
8462
 
    ac_srcdir=.
8463
 
    if test -z "$ac_top_builddir"; then
8464
 
       ac_top_srcdir=.
8465
 
    else
8466
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8467
 
    fi ;;
8468
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
8469
 
    ac_srcdir=$srcdir$ac_dir_suffix;
8470
 
    ac_top_srcdir=$srcdir ;;
8471
 
  *) # Relative path.
8472
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8473
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
8474
 
esac
8475
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8476
 
# absolute.
8477
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8478
 
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8479
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8480
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8481
 
 
8482
 
 
8483
 
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8484
 
echo "$as_me: executing $ac_dest commands" >&6;}
8485
 
  case $ac_dest in
8486
 
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
14987
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14988
            s//\1/
 
14989
            q
 
14990
          }
 
14991
          /^X\(\/\/\)[^/].*/{
 
14992
            s//\1/
 
14993
            q
 
14994
          }
 
14995
          /^X\(\/\/\)$/{
 
14996
            s//\1/
 
14997
            q
 
14998
          }
 
14999
          /^X\(\/\).*/{
 
15000
            s//\1/
 
15001
            q
 
15002
          }
 
15003
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
15004
 ;;
 
15005
 
 
15006
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
15007
echo "$as_me: executing $ac_file commands" >&6;}
 
15008
 ;;
 
15009
  esac
 
15010
 
 
15011
 
 
15012
  case $ac_file$ac_mode in
 
15013
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8487
15014
  # Strip MF so we end up with the name of the file.
8488
15015
  mf=`echo "$mf" | sed -e 's/:.*$//'`
8489
15016
  # Check whether this is an Automake generated Makefile or not.
8493
15020
  # each Makefile.in and add a new line on top of each file to say so.
8494
15021
  # So let's grep whole file.
8495
15022
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8496
 
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
15023
    dirpart=`$as_dirname -- "$mf" ||
8497
15024
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8498
 
         X"$mf" : 'X\(//\)[^/]' \| \
8499
 
         X"$mf" : 'X\(//\)$' \| \
8500
 
         X"$mf" : 'X\(/\)' \| \
8501
 
         .     : '\(.\)' 2>/dev/null ||
 
15025
         X"$mf" : 'X\(//\)[^/]' \| \
 
15026
         X"$mf" : 'X\(//\)$' \| \
 
15027
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8502
15028
echo X"$mf" |
8503
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8504
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8505
 
          /^X\(\/\/\)$/{ s//\1/; q; }
8506
 
          /^X\(\/\).*/{ s//\1/; q; }
8507
 
          s/.*/./; q'`
 
15029
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15030
            s//\1/
 
15031
            q
 
15032
          }
 
15033
          /^X\(\/\/\)[^/].*/{
 
15034
            s//\1/
 
15035
            q
 
15036
          }
 
15037
          /^X\(\/\/\)$/{
 
15038
            s//\1/
 
15039
            q
 
15040
          }
 
15041
          /^X\(\/\).*/{
 
15042
            s//\1/
 
15043
            q
 
15044
          }
 
15045
          s/.*/./; q'`
8508
15046
  else
8509
15047
    continue
8510
15048
  fi
8511
 
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
8512
 
  # Extract the definition of DEP_FILES from the Makefile without
8513
 
  # running `make'.
8514
 
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
15049
  # Extract the definition of DEPDIR, am__include, and am__quote
 
15050
  # from the Makefile without running `make'.
 
15051
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8515
15052
  test -z "$DEPDIR" && continue
 
15053
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
15054
  test -z "am__include" && continue
 
15055
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8516
15056
  # When using ansi2knr, U may be empty or an underscore; expand it
8517
 
  U=`sed -n -e '/^U = / s///p' < "$mf"`
8518
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
8519
 
  # We invoke sed twice because it is the simplest approach to
8520
 
  # changing $(DEPDIR) to its actual value in the expansion.
8521
 
  for file in `sed -n -e '
8522
 
    /^DEP_FILES = .*\\\\$/ {
8523
 
      s/^DEP_FILES = //
8524
 
      :loop
8525
 
        s/\\\\$//
8526
 
        p
8527
 
        n
8528
 
        /\\\\$/ b loop
8529
 
      p
8530
 
    }
8531
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
15057
  U=`sed -n 's/^U = //p' < "$mf"`
 
15058
  # Find all dependency output files, they are included files with
 
15059
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
15060
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
15061
  # expansion.
 
15062
  for file in `sed -n "
 
15063
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8532
15064
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8533
15065
    # Make sure the directory exists.
8534
15066
    test -f "$dirpart/$file" && continue
8535
 
    fdir=`(dirname "$file") 2>/dev/null ||
 
15067
    fdir=`$as_dirname -- "$file" ||
8536
15068
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8537
 
         X"$file" : 'X\(//\)[^/]' \| \
8538
 
         X"$file" : 'X\(//\)$' \| \
8539
 
         X"$file" : 'X\(/\)' \| \
8540
 
         .     : '\(.\)' 2>/dev/null ||
 
15069
         X"$file" : 'X\(//\)[^/]' \| \
 
15070
         X"$file" : 'X\(//\)$' \| \
 
15071
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8541
15072
echo X"$file" |
8542
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8543
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8544
 
          /^X\(\/\/\)$/{ s//\1/; q; }
8545
 
          /^X\(\/\).*/{ s//\1/; q; }
8546
 
          s/.*/./; q'`
8547
 
    { if $as_mkdir_p; then
8548
 
    mkdir -p $dirpart/$fdir
8549
 
  else
8550
 
    as_dir=$dirpart/$fdir
 
15073
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15074
            s//\1/
 
15075
            q
 
15076
          }
 
15077
          /^X\(\/\/\)[^/].*/{
 
15078
            s//\1/
 
15079
            q
 
15080
          }
 
15081
          /^X\(\/\/\)$/{
 
15082
            s//\1/
 
15083
            q
 
15084
          }
 
15085
          /^X\(\/\).*/{
 
15086
            s//\1/
 
15087
            q
 
15088
          }
 
15089
          s/.*/./; q'`
 
15090
    { as_dir=$dirpart/$fdir
 
15091
  case $as_dir in #(
 
15092
  -*) as_dir=./$as_dir;;
 
15093
  esac
 
15094
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8551
15095
    as_dirs=
8552
 
    while test ! -d "$as_dir"; do
8553
 
      as_dirs="$as_dir $as_dirs"
8554
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
15096
    while :; do
 
15097
      case $as_dir in #(
 
15098
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
15099
      *) as_qdir=$as_dir;;
 
15100
      esac
 
15101
      as_dirs="'$as_qdir' $as_dirs"
 
15102
      as_dir=`$as_dirname -- "$as_dir" ||
8555
15103
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8556
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
8557
 
         X"$as_dir" : 'X\(//\)$' \| \
8558
 
         X"$as_dir" : 'X\(/\)' \| \
8559
 
         .     : '\(.\)' 2>/dev/null ||
 
15104
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
15105
         X"$as_dir" : 'X\(//\)$' \| \
 
15106
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8560
15107
echo X"$as_dir" |
8561
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8562
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8563
 
          /^X\(\/\/\)$/{ s//\1/; q; }
8564
 
          /^X\(\/\).*/{ s//\1/; q; }
8565
 
          s/.*/./; q'`
 
15108
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15109
            s//\1/
 
15110
            q
 
15111
          }
 
15112
          /^X\(\/\/\)[^/].*/{
 
15113
            s//\1/
 
15114
            q
 
15115
          }
 
15116
          /^X\(\/\/\)$/{
 
15117
            s//\1/
 
15118
            q
 
15119
          }
 
15120
          /^X\(\/\).*/{
 
15121
            s//\1/
 
15122
            q
 
15123
          }
 
15124
          s/.*/./; q'`
 
15125
      test -d "$as_dir" && break
8566
15126
    done
8567
 
    test ! -n "$as_dirs" || mkdir $as_dirs
8568
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8569
 
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
15127
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
15128
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
15129
echo "$as_me: error: cannot create directory $as_dir" >&2;}
8570
15130
   { (exit 1); exit 1; }; }; }
8571
 
 
8572
15131
    # echo "creating $dirpart/$file"
8573
15132
    echo '# dummy' > "$dirpart/$file"
8574
15133
  done
8575
15134
done
8576
15135
 ;;
 
15136
    "intltool":C)
 
15137
 
 
15138
for file in intltool-extract intltool-merge intltool-update; do
 
15139
  sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
 
15140
      -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
 
15141
      -e "s|@INTLTOOL_ICONV@|${INTLTOOL_ICONV}|g" \
 
15142
      -e "s|@INTLTOOL_MSGFMT@|${INTLTOOL_MSGFMT}|g" \
 
15143
      -e "s|@INTLTOOL_MSGMERGE@|${INTLTOOL_MSGMERGE}|g" \
 
15144
      -e "s|@INTLTOOL_XGETTEXT@|${INTLTOOL_XGETTEXT}|g" \
 
15145
      -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
 
15146
        < ${ac_aux_dir}/${file}.in > ${file}.out
 
15147
  if cmp -s ${file} ${file}.out 2>/dev/null; then
 
15148
    rm -f ${file}.out
 
15149
  else
 
15150
    mv -f ${file}.out ${file}
 
15151
  fi
 
15152
  chmod ugo+x ${file}
 
15153
  chmod u+w ${file}
 
15154
done
 
15155
 
 
15156
 ;;
 
15157
    "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
 
15158
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 
15159
      esac ;;
 
15160
    "po/stamp-it":C)
 
15161
    rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
 
15162
    >"po/stamp-it.tmp"
 
15163
    sed '/^#/d
 
15164
         s/^[[].*] *//
 
15165
         /^[    ]*$/d
 
15166
        '"s|^|  $ac_top_srcdir/|" \
 
15167
      "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
 
15168
 
 
15169
    if test ! -f "po/Makefile"; then
 
15170
      { { echo "$as_me:$LINENO: error: po/Makefile is not ready." >&5
 
15171
echo "$as_me: error: po/Makefile is not ready." >&2;}
 
15172
   { (exit 1); exit 1; }; }
 
15173
    fi
 
15174
    mv "po/Makefile" "po/Makefile.tmp"
 
15175
    sed '/^POTFILES =/,/[^\\]$/ {
 
15176
                /^POTFILES =/!d
 
15177
                r po/POTFILES
 
15178
          }
 
15179
         ' "po/Makefile.tmp" >"po/Makefile"
 
15180
    rm -f "po/Makefile.tmp"
 
15181
    mv "po/stamp-it.tmp" "po/stamp-it"
 
15182
   ;;
 
15183
 
8577
15184
  esac
8578
 
done
8579
 
_ACEOF
 
15185
done # for ac_tag
8580
15186
 
8581
 
cat >>$CONFIG_STATUS <<\_ACEOF
8582
15187
 
8583
15188
{ (exit 0); exit 0; }
8584
15189
_ACEOF
8607
15212
  $ac_cs_success || { (exit 1); exit 1; }
8608
15213
fi
8609
15214
 
8610