~ubuntu-branches/debian/sid/cheese/sid

« back to all changes in this revision

Viewing changes to .pc/0002-fix-linking.patch/configure

  • Committer: Bazaar Package Importer
  • Author(s): Laurent Bigonville
  • Date: 2011-07-17 21:04:16 UTC
  • mfrom: (15.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20110717210416-nt5qi659qei7a2yy
Tags: 3.0.1-2
* debian/control.in:
  - Change gir1.2-cheese-3.0 Section to libs
  - Make library packages depend against cheese-common package
  - Make cheese package recommends against hicolor-icon-theme
  - Move gst Dependency to libcheese package
* debian/patches/0002-fix-linking.patch: Add missing library to fix linking
* debian/watch:
  - Switch to .bz2 tarballs.
  - Bump version to 3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.67 for cheese 3.0.1.
 
4
#
 
5
# Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=cheese>.
 
6
#
 
7
#
 
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
 
10
# Foundation, Inc.
 
11
#
 
12
#
 
13
# This configure script is free software; the Free Software Foundation
 
14
# gives unlimited permission to copy, distribute and modify it.
 
15
## -------------------- ##
 
16
## M4sh Initialization. ##
 
17
## -------------------- ##
 
18
 
 
19
# Be more Bourne compatible
 
20
DUALCASE=1; export DUALCASE # for MKS sh
 
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
22
  emulate sh
 
23
  NULLCMD=:
 
24
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
25
  # is contrary to our usage.  Disable this feature.
 
26
  alias -g '${1+"$@"}'='"$@"'
 
27
  setopt NO_GLOB_SUBST
 
28
else
 
29
  case `(set -o) 2>/dev/null` in #(
 
30
  *posix*) :
 
31
    set -o posix ;; #(
 
32
  *) :
 
33
     ;;
 
34
esac
 
35
fi
 
36
 
 
37
 
 
38
as_nl='
 
39
'
 
40
export as_nl
 
41
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
42
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
43
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
45
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
46
# but without wasting forks for bash or zsh.
 
47
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
48
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
49
  as_echo='print -r --'
 
50
  as_echo_n='print -rn --'
 
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
52
  as_echo='printf %s\n'
 
53
  as_echo_n='printf %s'
 
54
else
 
55
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
56
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
57
    as_echo_n='/usr/ucb/echo -n'
 
58
  else
 
59
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
60
    as_echo_n_body='eval
 
61
      arg=$1;
 
62
      case $arg in #(
 
63
      *"$as_nl"*)
 
64
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
65
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
66
      esac;
 
67
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
68
    '
 
69
    export as_echo_n_body
 
70
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
71
  fi
 
72
  export as_echo_body
 
73
  as_echo='sh -c $as_echo_body as_echo'
 
74
fi
 
75
 
 
76
# The user is always right.
 
77
if test "${PATH_SEPARATOR+set}" != set; then
 
78
  PATH_SEPARATOR=:
 
79
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
80
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
81
      PATH_SEPARATOR=';'
 
82
  }
 
83
fi
 
84
 
 
85
 
 
86
# IFS
 
87
# We need space, tab and new line, in precisely that order.  Quoting is
 
88
# there to prevent editors from complaining about space-tab.
 
89
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
90
# splitting by setting IFS to empty value.)
 
91
IFS=" ""        $as_nl"
 
92
 
 
93
# Find who we are.  Look in the path if we contain no directory separator.
 
94
case $0 in #((
 
95
  *[\\/]* ) as_myself=$0 ;;
 
96
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
97
for as_dir in $PATH
 
98
do
 
99
  IFS=$as_save_IFS
 
100
  test -z "$as_dir" && as_dir=.
 
101
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
102
  done
 
103
IFS=$as_save_IFS
 
104
 
 
105
     ;;
 
106
esac
 
107
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
108
# in which case we are not to be found in the path.
 
109
if test "x$as_myself" = x; then
 
110
  as_myself=$0
 
111
fi
 
112
if test ! -f "$as_myself"; then
 
113
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
114
  exit 1
 
115
fi
 
116
 
 
117
# Unset variables that we do not need and which cause bugs (e.g. in
 
118
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
119
# suppresses any "Segmentation fault" message there.  '((' could
 
120
# trigger a bug in pdksh 5.2.14.
 
121
for as_var in BASH_ENV ENV MAIL MAILPATH
 
122
do eval test x\${$as_var+set} = xset \
 
123
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
124
done
 
125
PS1='$ '
 
126
PS2='> '
 
127
PS4='+ '
 
128
 
 
129
# NLS nuisances.
 
130
LC_ALL=C
 
131
export LC_ALL
 
132
LANGUAGE=C
 
133
export LANGUAGE
 
134
 
 
135
# CDPATH.
 
136
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
137
 
 
138
if test "x$CONFIG_SHELL" = x; then
 
139
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
140
  emulate sh
 
141
  NULLCMD=:
 
142
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
143
  # is contrary to our usage.  Disable this feature.
 
144
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
145
  setopt NO_GLOB_SUBST
 
146
else
 
147
  case \`(set -o) 2>/dev/null\` in #(
 
148
  *posix*) :
 
149
    set -o posix ;; #(
 
150
  *) :
 
151
     ;;
 
152
esac
 
153
fi
 
154
"
 
155
  as_required="as_fn_return () { (exit \$1); }
 
156
as_fn_success () { as_fn_return 0; }
 
157
as_fn_failure () { as_fn_return 1; }
 
158
as_fn_ret_success () { return 0; }
 
159
as_fn_ret_failure () { return 1; }
 
160
 
 
161
exitcode=0
 
162
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
163
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
164
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
165
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
166
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
167
 
 
168
else
 
169
  exitcode=1; echo positional parameters were not saved.
 
170
fi
 
171
test x\$exitcode = x0 || exit 1"
 
172
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
173
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
174
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
175
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
176
test \$(( 1 + 1 )) = 2 || exit 1
 
177
 
 
178
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
 
179
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
180
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
181
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
182
    PATH=/empty FPATH=/empty; export PATH FPATH
 
183
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
 
184
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
 
185
  if (eval "$as_required") 2>/dev/null; then :
 
186
  as_have_required=yes
 
187
else
 
188
  as_have_required=no
 
189
fi
 
190
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
191
 
 
192
else
 
193
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
194
as_found=false
 
195
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
196
do
 
197
  IFS=$as_save_IFS
 
198
  test -z "$as_dir" && as_dir=.
 
199
  as_found=:
 
200
  case $as_dir in #(
 
201
         /*)
 
202
           for as_base in sh bash ksh sh5; do
 
203
             # Try only shells that exist, to save several forks.
 
204
             as_shell=$as_dir/$as_base
 
205
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
206
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
207
  CONFIG_SHELL=$as_shell as_have_required=yes
 
208
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
209
  break 2
 
210
fi
 
211
fi
 
212
           done;;
 
213
       esac
 
214
  as_found=false
 
215
done
 
216
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
217
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
218
  CONFIG_SHELL=$SHELL as_have_required=yes
 
219
fi; }
 
220
IFS=$as_save_IFS
 
221
 
 
222
 
 
223
      if test "x$CONFIG_SHELL" != x; then :
 
224
  # We cannot yet assume a decent shell, so we have to provide a
 
225
        # neutralization value for shells without unset; and this also
 
226
        # works around shells that cannot unset nonexistent variables.
 
227
        BASH_ENV=/dev/null
 
228
        ENV=/dev/null
 
229
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
230
        export CONFIG_SHELL
 
231
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
232
fi
 
233
 
 
234
    if test x$as_have_required = xno; then :
 
235
  $as_echo "$0: This script requires a shell more modern than all"
 
236
  $as_echo "$0: the shells that I found on your system."
 
237
  if test x${ZSH_VERSION+set} = xset ; then
 
238
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
239
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
240
  else
 
241
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
 
242
$0: http://bugzilla.gnome.org/enter_bug.cgi?product=cheese
 
243
$0: about your system, including any error possibly output
 
244
$0: before this message. Then install a modern shell, or
 
245
$0: manually run the script under such a shell if you do
 
246
$0: have one."
 
247
  fi
 
248
  exit 1
 
249
fi
 
250
fi
 
251
fi
 
252
SHELL=${CONFIG_SHELL-/bin/sh}
 
253
export SHELL
 
254
# Unset more variables known to interfere with behavior of common tools.
 
255
CLICOLOR_FORCE= GREP_OPTIONS=
 
256
unset CLICOLOR_FORCE GREP_OPTIONS
 
257
 
 
258
## --------------------- ##
 
259
## M4sh Shell Functions. ##
 
260
## --------------------- ##
 
261
# as_fn_unset VAR
 
262
# ---------------
 
263
# Portably unset VAR.
 
264
as_fn_unset ()
 
265
{
 
266
  { eval $1=; unset $1;}
 
267
}
 
268
as_unset=as_fn_unset
 
269
 
 
270
# as_fn_set_status STATUS
 
271
# -----------------------
 
272
# Set $? to STATUS, without forking.
 
273
as_fn_set_status ()
 
274
{
 
275
  return $1
 
276
} # as_fn_set_status
 
277
 
 
278
# as_fn_exit STATUS
 
279
# -----------------
 
280
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
281
as_fn_exit ()
 
282
{
 
283
  set +e
 
284
  as_fn_set_status $1
 
285
  exit $1
 
286
} # as_fn_exit
 
287
 
 
288
# as_fn_mkdir_p
 
289
# -------------
 
290
# Create "$as_dir" as a directory, including parents if necessary.
 
291
as_fn_mkdir_p ()
 
292
{
 
293
 
 
294
  case $as_dir in #(
 
295
  -*) as_dir=./$as_dir;;
 
296
  esac
 
297
  test -d "$as_dir" || eval $as_mkdir_p || {
 
298
    as_dirs=
 
299
    while :; do
 
300
      case $as_dir in #(
 
301
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
302
      *) as_qdir=$as_dir;;
 
303
      esac
 
304
      as_dirs="'$as_qdir' $as_dirs"
 
305
      as_dir=`$as_dirname -- "$as_dir" ||
 
306
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
307
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
308
         X"$as_dir" : 'X\(//\)$' \| \
 
309
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
310
$as_echo X"$as_dir" |
 
311
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
312
            s//\1/
 
313
            q
 
314
          }
 
315
          /^X\(\/\/\)[^/].*/{
 
316
            s//\1/
 
317
            q
 
318
          }
 
319
          /^X\(\/\/\)$/{
 
320
            s//\1/
 
321
            q
 
322
          }
 
323
          /^X\(\/\).*/{
 
324
            s//\1/
 
325
            q
 
326
          }
 
327
          s/.*/./; q'`
 
328
      test -d "$as_dir" && break
 
329
    done
 
330
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
331
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
332
 
 
333
 
 
334
} # as_fn_mkdir_p
 
335
# as_fn_append VAR VALUE
 
336
# ----------------------
 
337
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
338
# advantage of any shell optimizations that allow amortized linear growth over
 
339
# repeated appends, instead of the typical quadratic growth present in naive
 
340
# implementations.
 
341
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
342
  eval 'as_fn_append ()
 
343
  {
 
344
    eval $1+=\$2
 
345
  }'
 
346
else
 
347
  as_fn_append ()
 
348
  {
 
349
    eval $1=\$$1\$2
 
350
  }
 
351
fi # as_fn_append
 
352
 
 
353
# as_fn_arith ARG...
 
354
# ------------------
 
355
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
356
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
357
# must be portable across $(()) and expr.
 
358
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
359
  eval 'as_fn_arith ()
 
360
  {
 
361
    as_val=$(( $* ))
 
362
  }'
 
363
else
 
364
  as_fn_arith ()
 
365
  {
 
366
    as_val=`expr "$@" || test $? -eq 1`
 
367
  }
 
368
fi # as_fn_arith
 
369
 
 
370
 
 
371
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
372
# ----------------------------------------
 
373
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
374
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
375
# script with STATUS, using 1 if that was 0.
 
376
as_fn_error ()
 
377
{
 
378
  as_status=$1; test $as_status -eq 0 && as_status=1
 
379
  if test "$4"; then
 
380
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
381
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
382
  fi
 
383
  $as_echo "$as_me: error: $2" >&2
 
384
  as_fn_exit $as_status
 
385
} # as_fn_error
 
386
 
 
387
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
388
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
389
  as_expr=expr
 
390
else
 
391
  as_expr=false
 
392
fi
 
393
 
 
394
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
395
  as_basename=basename
 
396
else
 
397
  as_basename=false
 
398
fi
 
399
 
 
400
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
401
  as_dirname=dirname
 
402
else
 
403
  as_dirname=false
 
404
fi
 
405
 
 
406
as_me=`$as_basename -- "$0" ||
 
407
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
408
         X"$0" : 'X\(//\)$' \| \
 
409
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
410
$as_echo X/"$0" |
 
411
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
412
            s//\1/
 
413
            q
 
414
          }
 
415
          /^X\/\(\/\/\)$/{
 
416
            s//\1/
 
417
            q
 
418
          }
 
419
          /^X\/\(\/\).*/{
 
420
            s//\1/
 
421
            q
 
422
          }
 
423
          s/.*/./; q'`
 
424
 
 
425
# Avoid depending upon Character Ranges.
 
426
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
427
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
428
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
429
as_cr_digits='0123456789'
 
430
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
431
 
 
432
 
 
433
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
434
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
435
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
436
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
437
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
438
  sed -n '
 
439
    p
 
440
    /[$]LINENO/=
 
441
  ' <$as_myself |
 
442
    sed '
 
443
      s/[$]LINENO.*/&-/
 
444
      t lineno
 
445
      b
 
446
      :lineno
 
447
      N
 
448
      :loop
 
449
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
450
      t loop
 
451
      s/-\n.*//
 
452
    ' >$as_me.lineno &&
 
453
  chmod +x "$as_me.lineno" ||
 
454
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
455
 
 
456
  # Don't try to exec as it changes $[0], causing all sort of problems
 
457
  # (the dirname of $[0] is not the place where we might find the
 
458
  # original and so on.  Autoconf is especially sensitive to this).
 
459
  . "./$as_me.lineno"
 
460
  # Exit status is that of the last command.
 
461
  exit
 
462
}
 
463
 
 
464
ECHO_C= ECHO_N= ECHO_T=
 
465
case `echo -n x` in #(((((
 
466
-n*)
 
467
  case `echo 'xy\c'` in
 
468
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
469
  xy)  ECHO_C='\c';;
 
470
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
471
       ECHO_T=' ';;
 
472
  esac;;
 
473
*)
 
474
  ECHO_N='-n';;
 
475
esac
 
476
 
 
477
rm -f conf$$ conf$$.exe conf$$.file
 
478
if test -d conf$$.dir; then
 
479
  rm -f conf$$.dir/conf$$.file
 
480
else
 
481
  rm -f conf$$.dir
 
482
  mkdir conf$$.dir 2>/dev/null
 
483
fi
 
484
if (echo >conf$$.file) 2>/dev/null; then
 
485
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
486
    as_ln_s='ln -s'
 
487
    # ... but there are two gotchas:
 
488
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
489
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
490
    # In both cases, we have to default to `cp -p'.
 
491
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
492
      as_ln_s='cp -p'
 
493
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
494
    as_ln_s=ln
 
495
  else
 
496
    as_ln_s='cp -p'
 
497
  fi
 
498
else
 
499
  as_ln_s='cp -p'
 
500
fi
 
501
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
502
rmdir conf$$.dir 2>/dev/null
 
503
 
 
504
if mkdir -p . 2>/dev/null; then
 
505
  as_mkdir_p='mkdir -p "$as_dir"'
 
506
else
 
507
  test -d ./-p && rmdir ./-p
 
508
  as_mkdir_p=false
 
509
fi
 
510
 
 
511
if test -x / >/dev/null 2>&1; then
 
512
  as_test_x='test -x'
 
513
else
 
514
  if ls -dL / >/dev/null 2>&1; then
 
515
    as_ls_L_option=L
 
516
  else
 
517
    as_ls_L_option=
 
518
  fi
 
519
  as_test_x='
 
520
    eval sh -c '\''
 
521
      if test -d "$1"; then
 
522
        test -d "$1/.";
 
523
      else
 
524
        case $1 in #(
 
525
        -*)set "./$1";;
 
526
        esac;
 
527
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
528
        ???[sx]*):;;*)false;;esac;fi
 
529
    '\'' sh
 
530
  '
 
531
fi
 
532
as_executable_p=$as_test_x
 
533
 
 
534
# Sed expression to map a string onto a valid CPP name.
 
535
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
536
 
 
537
# Sed expression to map a string onto a valid variable name.
 
538
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
539
 
 
540
as_awk_strverscmp='
 
541
  # Use only awk features that work with 7th edition Unix awk (1978).
 
542
  # My, what an old awk you have, Mr. Solaris!
 
543
  END {
 
544
    while (length(v1) && length(v2)) {
 
545
      # Set d1 to be the next thing to compare from v1, and likewise for d2.
 
546
      # Normally this is a single character, but if v1 and v2 contain digits,
 
547
      # compare them as integers and fractions as strverscmp does.
 
548
      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
 
549
        # Split v1 and v2 into their leading digit string components d1 and d2,
 
550
        # and advance v1 and v2 past the leading digit strings.
 
551
        for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
 
552
        for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
 
553
        d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
 
554
        d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
 
555
        if (d1 ~ /^0/) {
 
556
          if (d2 ~ /^0/) {
 
557
            # Compare two fractions.
 
558
            while (d1 ~ /^0/ && d2 ~ /^0/) {
 
559
              d1 = substr(d1, 2); len1--
 
560
              d2 = substr(d2, 2); len2--
 
561
            }
 
562
            if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
 
563
              # The two components differ in length, and the common prefix
 
564
              # contains only leading zeros.  Consider the longer to be less.
 
565
              d1 = -len1
 
566
              d2 = -len2
 
567
            } else {
 
568
              # Otherwise, compare as strings.
 
569
              d1 = "x" d1
 
570
              d2 = "x" d2
 
571
            }
 
572
          } else {
 
573
            # A fraction is less than an integer.
 
574
            exit 1
 
575
          }
 
576
        } else {
 
577
          if (d2 ~ /^0/) {
 
578
            # An integer is greater than a fraction.
 
579
            exit 2
 
580
          } else {
 
581
            # Compare two integers.
 
582
            d1 += 0
 
583
            d2 += 0
 
584
          }
 
585
        }
 
586
      } else {
 
587
        # The normal case, without worrying about digits.
 
588
        d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
 
589
        d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
 
590
      }
 
591
      if (d1 < d2) exit 1
 
592
      if (d1 > d2) exit 2
 
593
    }
 
594
    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
 
595
    # which mishandles some comparisons of empty strings to integers.
 
596
    if (length(v2)) exit 1
 
597
    if (length(v1)) exit 2
 
598
  }
 
599
'
 
600
SHELL=${CONFIG_SHELL-/bin/sh}
 
601
 
 
602
 
 
603
test -n "$DJDIR" || exec 7<&0 </dev/null
 
604
exec 6>&1
 
605
 
 
606
# Name of the host.
 
607
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 
608
# so uname gets run too.
 
609
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
610
 
 
611
#
 
612
# Initializations.
 
613
#
 
614
ac_default_prefix=/usr/local
 
615
ac_clean_files=
 
616
ac_config_libobj_dir=.
 
617
LIBOBJS=
 
618
cross_compiling=no
 
619
subdirs=
 
620
MFLAGS=
 
621
MAKEFLAGS=
 
622
 
 
623
# Identity of this package.
 
624
PACKAGE_NAME='cheese'
 
625
PACKAGE_TARNAME='cheese'
 
626
PACKAGE_VERSION='3.0.1'
 
627
PACKAGE_STRING='cheese 3.0.1'
 
628
PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=cheese'
 
629
PACKAGE_URL='http://projects.gnome.org/cheese/'
 
630
 
 
631
ac_unique_file="configure.ac"
 
632
# Factoring default headers for most tests.
 
633
ac_includes_default="\
 
634
#include <stdio.h>
 
635
#ifdef HAVE_SYS_TYPES_H
 
636
# include <sys/types.h>
 
637
#endif
 
638
#ifdef HAVE_SYS_STAT_H
 
639
# include <sys/stat.h>
 
640
#endif
 
641
#ifdef STDC_HEADERS
 
642
# include <stdlib.h>
 
643
# include <stddef.h>
 
644
#else
 
645
# ifdef HAVE_STDLIB_H
 
646
#  include <stdlib.h>
 
647
# endif
 
648
#endif
 
649
#ifdef HAVE_STRING_H
 
650
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
651
#  include <memory.h>
 
652
# endif
 
653
# include <string.h>
 
654
#endif
 
655
#ifdef HAVE_STRINGS_H
 
656
# include <strings.h>
 
657
#endif
 
658
#ifdef HAVE_INTTYPES_H
 
659
# include <inttypes.h>
 
660
#endif
 
661
#ifdef HAVE_STDINT_H
 
662
# include <stdint.h>
 
663
#endif
 
664
#ifdef HAVE_UNISTD_H
 
665
# include <unistd.h>
 
666
#endif"
 
667
 
 
668
gt_needs=
 
669
ac_subst_vars='am__EXEEXT_FALSE
 
670
am__EXEEXT_TRUE
 
671
LTLIBOBJS
 
672
LIBOBJS
 
673
GSETTINGS_RULES
 
674
GLIB_COMPILE_SCHEMAS
 
675
gsettingsschemadir
 
676
GSETTINGS_DISABLE_SCHEMAS_COMPILE
 
677
HAVE_GNOME_DOC_UTILS_FALSE
 
678
HAVE_GNOME_DOC_UTILS_TRUE
 
679
DISTCHECK_CONFIGURE_FLAGS
 
680
ENABLE_SK_FALSE
 
681
ENABLE_SK_TRUE
 
682
DOC_USER_FORMATS
 
683
OMF_DIR
 
684
HELP_DIR
 
685
GTK_DOC_USE_REBASE_FALSE
 
686
GTK_DOC_USE_REBASE_TRUE
 
687
GTK_DOC_USE_LIBTOOL_FALSE
 
688
GTK_DOC_USE_LIBTOOL_TRUE
 
689
GTK_DOC_BUILD_PDF_FALSE
 
690
GTK_DOC_BUILD_PDF_TRUE
 
691
GTK_DOC_BUILD_HTML_FALSE
 
692
GTK_DOC_BUILD_HTML_TRUE
 
693
ENABLE_GTK_DOC_FALSE
 
694
ENABLE_GTK_DOC_TRUE
 
695
HTML_DIR
 
696
GTKDOC_MKPDF
 
697
GTKDOC_REBASE
 
698
GTKDOC_CHECK
 
699
HAVE_INTROSPECTION_FALSE
 
700
HAVE_INTROSPECTION_TRUE
 
701
INTROSPECTION_MAKEFILE
 
702
INTROSPECTION_LIBS
 
703
INTROSPECTION_CFLAGS
 
704
INTROSPECTION_TYPELIBDIR
 
705
INTROSPECTION_GIRDIR
 
706
INTROSPECTION_GENERATE
 
707
INTROSPECTION_COMPILER
 
708
INTROSPECTION_SCANNER
 
709
GLIB_MKENUMS
 
710
GLIB_GENMARSHAL
 
711
CHEESE_GTK_LIBS
 
712
CHEESE_GTK_CFLAGS
 
713
CHEESE_LIBS
 
714
CHEESE_CFLAGS
 
715
HAVE_XTEST_FALSE
 
716
HAVE_XTEST_TRUE
 
717
XTEST_LIBS
 
718
OS_LINUX
 
719
UDEV_LIBS
 
720
UDEV_CFLAGS
 
721
PKG_CONFIG_LIBDIR
 
722
PKG_CONFIG_PATH
 
723
PKG_CONFIG
 
724
DATADIRNAME
 
725
ALL_LINGUAS
 
726
INTLTOOL_PERL
 
727
INTLTOOL_POLICY_RULE
 
728
INTLTOOL_SERVICE_RULE
 
729
INTLTOOL_THEME_RULE
 
730
INTLTOOL_SCHEMAS_RULE
 
731
INTLTOOL_CAVES_RULE
 
732
INTLTOOL_XML_NOMERGE_RULE
 
733
INTLTOOL_XML_RULE
 
734
INTLTOOL_KBD_RULE
 
735
INTLTOOL_XAM_RULE
 
736
INTLTOOL_UI_RULE
 
737
INTLTOOL_SOUNDLIST_RULE
 
738
INTLTOOL_SHEET_RULE
 
739
INTLTOOL_SERVER_RULE
 
740
INTLTOOL_PONG_RULE
 
741
INTLTOOL_OAF_RULE
 
742
INTLTOOL_PROP_RULE
 
743
INTLTOOL_KEYS_RULE
 
744
INTLTOOL_DIRECTORY_RULE
 
745
INTLTOOL_DESKTOP_RULE
 
746
INTLTOOL_EXTRACT
 
747
INTLTOOL_MERGE
 
748
INTLTOOL_UPDATE
 
749
GETTEXT_PACKAGE
 
750
POSUB
 
751
LTLIBINTL
 
752
LIBINTL
 
753
INTLLIBS
 
754
LTLIBICONV
 
755
LIBICONV
 
756
INTL_MACOSX_LIBS
 
757
XGETTEXT_EXTRA_OPTIONS
 
758
MSGMERGE
 
759
XGETTEXT_015
 
760
XGETTEXT
 
761
GMSGFMT_015
 
762
MSGFMT_015
 
763
GMSGFMT
 
764
MSGFMT
 
765
GETTEXT_MACRO_VERSION
 
766
USE_NLS
 
767
FULL_LIBEXECDIR
 
768
LIBCHEESE_GTK_LT_VERSION
 
769
LIBCHEESE_LT_VERSION
 
770
WARN_CFLAGS
 
771
DISABLE_DEPRECATED
 
772
OTOOL64
 
773
OTOOL
 
774
LIPO
 
775
NMEDIT
 
776
DSYMUTIL
 
777
MANIFEST_TOOL
 
778
RANLIB
 
779
ac_ct_AR
 
780
AR
 
781
DLLTOOL
 
782
OBJDUMP
 
783
LN_S
 
784
NM
 
785
ac_ct_DUMPBIN
 
786
DUMPBIN
 
787
LD
 
788
FGREP
 
789
SED
 
790
host_os
 
791
host_vendor
 
792
host_cpu
 
793
host
 
794
build_os
 
795
build_vendor
 
796
build_cpu
 
797
build
 
798
LIBTOOL
 
799
VALAC
 
800
EGREP
 
801
GREP
 
802
CPP
 
803
am__fastdepCC_FALSE
 
804
am__fastdepCC_TRUE
 
805
CCDEPMODE
 
806
AMDEPBACKSLASH
 
807
AMDEP_FALSE
 
808
AMDEP_TRUE
 
809
am__quote
 
810
am__include
 
811
DEPDIR
 
812
OBJEXT
 
813
EXEEXT
 
814
ac_ct_CC
 
815
CPPFLAGS
 
816
LDFLAGS
 
817
CFLAGS
 
818
CC
 
819
MAINT
 
820
MAINTAINER_MODE_FALSE
 
821
MAINTAINER_MODE_TRUE
 
822
am__untar
 
823
am__tar
 
824
AMTAR
 
825
am__leading_dot
 
826
SET_MAKE
 
827
AWK
 
828
mkdir_p
 
829
MKDIR_P
 
830
INSTALL_STRIP_PROGRAM
 
831
STRIP
 
832
install_sh
 
833
MAKEINFO
 
834
AUTOHEADER
 
835
AUTOMAKE
 
836
AUTOCONF
 
837
ACLOCAL
 
838
VERSION
 
839
PACKAGE
 
840
CYGPATH_W
 
841
am__isrc
 
842
INSTALL_DATA
 
843
INSTALL_SCRIPT
 
844
INSTALL_PROGRAM
 
845
target_alias
 
846
host_alias
 
847
build_alias
 
848
LIBS
 
849
ECHO_T
 
850
ECHO_N
 
851
ECHO_C
 
852
DEFS
 
853
mandir
 
854
localedir
 
855
libdir
 
856
psdir
 
857
pdfdir
 
858
dvidir
 
859
htmldir
 
860
infodir
 
861
docdir
 
862
oldincludedir
 
863
includedir
 
864
localstatedir
 
865
sharedstatedir
 
866
sysconfdir
 
867
datadir
 
868
datarootdir
 
869
libexecdir
 
870
sbindir
 
871
bindir
 
872
program_transform_name
 
873
prefix
 
874
exec_prefix
 
875
PACKAGE_URL
 
876
PACKAGE_BUGREPORT
 
877
PACKAGE_STRING
 
878
PACKAGE_VERSION
 
879
PACKAGE_TARNAME
 
880
PACKAGE_NAME
 
881
PATH_SEPARATOR
 
882
SHELL'
 
883
ac_subst_files=''
 
884
ac_user_opts='
 
885
enable_option_checking
 
886
enable_maintainer_mode
 
887
enable_dependency_tracking
 
888
enable_shared
 
889
enable_static
 
890
with_pic
 
891
enable_fast_install
 
892
with_gnu_ld
 
893
with_sysroot
 
894
enable_libtool_lock
 
895
enable_compile_warnings
 
896
enable_iso_c
 
897
enable_nls
 
898
enable_rpath
 
899
with_libiconv_prefix
 
900
with_libintl_prefix
 
901
enable_introspection
 
902
with_html_dir
 
903
enable_gtk_doc
 
904
enable_gtk_doc_html
 
905
enable_gtk_doc_pdf
 
906
with_help_dir
 
907
with_omf_dir
 
908
with_help_formats
 
909
enable_scrollkeeper
 
910
enable_schemas_compile
 
911
'
 
912
      ac_precious_vars='build_alias
 
913
host_alias
 
914
target_alias
 
915
CC
 
916
CFLAGS
 
917
LDFLAGS
 
918
LIBS
 
919
CPPFLAGS
 
920
CPP
 
921
PKG_CONFIG
 
922
PKG_CONFIG_PATH
 
923
PKG_CONFIG_LIBDIR
 
924
UDEV_CFLAGS
 
925
UDEV_LIBS
 
926
CHEESE_CFLAGS
 
927
CHEESE_LIBS
 
928
CHEESE_GTK_CFLAGS
 
929
CHEESE_GTK_LIBS'
 
930
 
 
931
 
 
932
# Initialize some variables set by options.
 
933
ac_init_help=
 
934
ac_init_version=false
 
935
ac_unrecognized_opts=
 
936
ac_unrecognized_sep=
 
937
# The variables have the same names as the options, with
 
938
# dashes changed to underlines.
 
939
cache_file=/dev/null
 
940
exec_prefix=NONE
 
941
no_create=
 
942
no_recursion=
 
943
prefix=NONE
 
944
program_prefix=NONE
 
945
program_suffix=NONE
 
946
program_transform_name=s,x,x,
 
947
silent=
 
948
site=
 
949
srcdir=
 
950
verbose=
 
951
x_includes=NONE
 
952
x_libraries=NONE
 
953
 
 
954
# Installation directory options.
 
955
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
956
# and all the variables that are supposed to be based on exec_prefix
 
957
# by default will actually change.
 
958
# Use braces instead of parens because sh, perl, etc. also accept them.
 
959
# (The list follows the same order as the GNU Coding Standards.)
 
960
bindir='${exec_prefix}/bin'
 
961
sbindir='${exec_prefix}/sbin'
 
962
libexecdir='${exec_prefix}/libexec'
 
963
datarootdir='${prefix}/share'
 
964
datadir='${datarootdir}'
 
965
sysconfdir='${prefix}/etc'
 
966
sharedstatedir='${prefix}/com'
 
967
localstatedir='${prefix}/var'
 
968
includedir='${prefix}/include'
 
969
oldincludedir='/usr/include'
 
970
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
971
infodir='${datarootdir}/info'
 
972
htmldir='${docdir}'
 
973
dvidir='${docdir}'
 
974
pdfdir='${docdir}'
 
975
psdir='${docdir}'
 
976
libdir='${exec_prefix}/lib'
 
977
localedir='${datarootdir}/locale'
 
978
mandir='${datarootdir}/man'
 
979
 
 
980
ac_prev=
 
981
ac_dashdash=
 
982
for ac_option
 
983
do
 
984
  # If the previous option needs an argument, assign it.
 
985
  if test -n "$ac_prev"; then
 
986
    eval $ac_prev=\$ac_option
 
987
    ac_prev=
 
988
    continue
 
989
  fi
 
990
 
 
991
  case $ac_option in
 
992
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
993
  *=)   ac_optarg= ;;
 
994
  *)    ac_optarg=yes ;;
 
995
  esac
 
996
 
 
997
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
998
 
 
999
  case $ac_dashdash$ac_option in
 
1000
  --)
 
1001
    ac_dashdash=yes ;;
 
1002
 
 
1003
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
1004
    ac_prev=bindir ;;
 
1005
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
1006
    bindir=$ac_optarg ;;
 
1007
 
 
1008
  -build | --build | --buil | --bui | --bu)
 
1009
    ac_prev=build_alias ;;
 
1010
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
1011
    build_alias=$ac_optarg ;;
 
1012
 
 
1013
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
1014
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
1015
    ac_prev=cache_file ;;
 
1016
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
1017
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
1018
    cache_file=$ac_optarg ;;
 
1019
 
 
1020
  --config-cache | -C)
 
1021
    cache_file=config.cache ;;
 
1022
 
 
1023
  -datadir | --datadir | --datadi | --datad)
 
1024
    ac_prev=datadir ;;
 
1025
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1026
    datadir=$ac_optarg ;;
 
1027
 
 
1028
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1029
  | --dataroo | --dataro | --datar)
 
1030
    ac_prev=datarootdir ;;
 
1031
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1032
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1033
    datarootdir=$ac_optarg ;;
 
1034
 
 
1035
  -disable-* | --disable-*)
 
1036
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1037
    # Reject names that are not valid shell variable names.
 
1038
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1039
      as_fn_error $? "invalid feature name: $ac_useropt"
 
1040
    ac_useropt_orig=$ac_useropt
 
1041
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1042
    case $ac_user_opts in
 
1043
      *"
 
1044
"enable_$ac_useropt"
 
1045
"*) ;;
 
1046
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
1047
         ac_unrecognized_sep=', ';;
 
1048
    esac
 
1049
    eval enable_$ac_useropt=no ;;
 
1050
 
 
1051
  -docdir | --docdir | --docdi | --doc | --do)
 
1052
    ac_prev=docdir ;;
 
1053
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1054
    docdir=$ac_optarg ;;
 
1055
 
 
1056
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1057
    ac_prev=dvidir ;;
 
1058
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1059
    dvidir=$ac_optarg ;;
 
1060
 
 
1061
  -enable-* | --enable-*)
 
1062
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1063
    # Reject names that are not valid shell variable names.
 
1064
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1065
      as_fn_error $? "invalid feature name: $ac_useropt"
 
1066
    ac_useropt_orig=$ac_useropt
 
1067
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1068
    case $ac_user_opts in
 
1069
      *"
 
1070
"enable_$ac_useropt"
 
1071
"*) ;;
 
1072
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
1073
         ac_unrecognized_sep=', ';;
 
1074
    esac
 
1075
    eval enable_$ac_useropt=\$ac_optarg ;;
 
1076
 
 
1077
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1078
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1079
  | --exec | --exe | --ex)
 
1080
    ac_prev=exec_prefix ;;
 
1081
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1082
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1083
  | --exec=* | --exe=* | --ex=*)
 
1084
    exec_prefix=$ac_optarg ;;
 
1085
 
 
1086
  -gas | --gas | --ga | --g)
 
1087
    # Obsolete; use --with-gas.
 
1088
    with_gas=yes ;;
 
1089
 
 
1090
  -help | --help | --hel | --he | -h)
 
1091
    ac_init_help=long ;;
 
1092
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1093
    ac_init_help=recursive ;;
 
1094
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1095
    ac_init_help=short ;;
 
1096
 
 
1097
  -host | --host | --hos | --ho)
 
1098
    ac_prev=host_alias ;;
 
1099
  -host=* | --host=* | --hos=* | --ho=*)
 
1100
    host_alias=$ac_optarg ;;
 
1101
 
 
1102
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1103
    ac_prev=htmldir ;;
 
1104
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1105
  | --ht=*)
 
1106
    htmldir=$ac_optarg ;;
 
1107
 
 
1108
  -includedir | --includedir | --includedi | --included | --include \
 
1109
  | --includ | --inclu | --incl | --inc)
 
1110
    ac_prev=includedir ;;
 
1111
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1112
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1113
    includedir=$ac_optarg ;;
 
1114
 
 
1115
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1116
    ac_prev=infodir ;;
 
1117
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1118
    infodir=$ac_optarg ;;
 
1119
 
 
1120
  -libdir | --libdir | --libdi | --libd)
 
1121
    ac_prev=libdir ;;
 
1122
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1123
    libdir=$ac_optarg ;;
 
1124
 
 
1125
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1126
  | --libexe | --libex | --libe)
 
1127
    ac_prev=libexecdir ;;
 
1128
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1129
  | --libexe=* | --libex=* | --libe=*)
 
1130
    libexecdir=$ac_optarg ;;
 
1131
 
 
1132
  -localedir | --localedir | --localedi | --localed | --locale)
 
1133
    ac_prev=localedir ;;
 
1134
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1135
    localedir=$ac_optarg ;;
 
1136
 
 
1137
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1138
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1139
    ac_prev=localstatedir ;;
 
1140
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1141
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1142
    localstatedir=$ac_optarg ;;
 
1143
 
 
1144
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1145
    ac_prev=mandir ;;
 
1146
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1147
    mandir=$ac_optarg ;;
 
1148
 
 
1149
  -nfp | --nfp | --nf)
 
1150
    # Obsolete; use --without-fp.
 
1151
    with_fp=no ;;
 
1152
 
 
1153
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1154
  | --no-cr | --no-c | -n)
 
1155
    no_create=yes ;;
 
1156
 
 
1157
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1158
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1159
    no_recursion=yes ;;
 
1160
 
 
1161
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1162
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1163
  | --oldin | --oldi | --old | --ol | --o)
 
1164
    ac_prev=oldincludedir ;;
 
1165
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1166
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1167
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1168
    oldincludedir=$ac_optarg ;;
 
1169
 
 
1170
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1171
    ac_prev=prefix ;;
 
1172
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1173
    prefix=$ac_optarg ;;
 
1174
 
 
1175
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1176
  | --program-pre | --program-pr | --program-p)
 
1177
    ac_prev=program_prefix ;;
 
1178
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1179
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1180
    program_prefix=$ac_optarg ;;
 
1181
 
 
1182
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1183
  | --program-suf | --program-su | --program-s)
 
1184
    ac_prev=program_suffix ;;
 
1185
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1186
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1187
    program_suffix=$ac_optarg ;;
 
1188
 
 
1189
  -program-transform-name | --program-transform-name \
 
1190
  | --program-transform-nam | --program-transform-na \
 
1191
  | --program-transform-n | --program-transform- \
 
1192
  | --program-transform | --program-transfor \
 
1193
  | --program-transfo | --program-transf \
 
1194
  | --program-trans | --program-tran \
 
1195
  | --progr-tra | --program-tr | --program-t)
 
1196
    ac_prev=program_transform_name ;;
 
1197
  -program-transform-name=* | --program-transform-name=* \
 
1198
  | --program-transform-nam=* | --program-transform-na=* \
 
1199
  | --program-transform-n=* | --program-transform-=* \
 
1200
  | --program-transform=* | --program-transfor=* \
 
1201
  | --program-transfo=* | --program-transf=* \
 
1202
  | --program-trans=* | --program-tran=* \
 
1203
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1204
    program_transform_name=$ac_optarg ;;
 
1205
 
 
1206
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1207
    ac_prev=pdfdir ;;
 
1208
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1209
    pdfdir=$ac_optarg ;;
 
1210
 
 
1211
  -psdir | --psdir | --psdi | --psd | --ps)
 
1212
    ac_prev=psdir ;;
 
1213
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1214
    psdir=$ac_optarg ;;
 
1215
 
 
1216
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1217
  | -silent | --silent | --silen | --sile | --sil)
 
1218
    silent=yes ;;
 
1219
 
 
1220
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1221
    ac_prev=sbindir ;;
 
1222
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1223
  | --sbi=* | --sb=*)
 
1224
    sbindir=$ac_optarg ;;
 
1225
 
 
1226
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1227
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1228
  | --sharedst | --shareds | --shared | --share | --shar \
 
1229
  | --sha | --sh)
 
1230
    ac_prev=sharedstatedir ;;
 
1231
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1232
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1233
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1234
  | --sha=* | --sh=*)
 
1235
    sharedstatedir=$ac_optarg ;;
 
1236
 
 
1237
  -site | --site | --sit)
 
1238
    ac_prev=site ;;
 
1239
  -site=* | --site=* | --sit=*)
 
1240
    site=$ac_optarg ;;
 
1241
 
 
1242
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1243
    ac_prev=srcdir ;;
 
1244
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1245
    srcdir=$ac_optarg ;;
 
1246
 
 
1247
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1248
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1249
    ac_prev=sysconfdir ;;
 
1250
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1251
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1252
    sysconfdir=$ac_optarg ;;
 
1253
 
 
1254
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1255
    ac_prev=target_alias ;;
 
1256
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1257
    target_alias=$ac_optarg ;;
 
1258
 
 
1259
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1260
    verbose=yes ;;
 
1261
 
 
1262
  -version | --version | --versio | --versi | --vers | -V)
 
1263
    ac_init_version=: ;;
 
1264
 
 
1265
  -with-* | --with-*)
 
1266
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1267
    # Reject names that are not valid shell variable names.
 
1268
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1269
      as_fn_error $? "invalid package name: $ac_useropt"
 
1270
    ac_useropt_orig=$ac_useropt
 
1271
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1272
    case $ac_user_opts in
 
1273
      *"
 
1274
"with_$ac_useropt"
 
1275
"*) ;;
 
1276
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1277
         ac_unrecognized_sep=', ';;
 
1278
    esac
 
1279
    eval with_$ac_useropt=\$ac_optarg ;;
 
1280
 
 
1281
  -without-* | --without-*)
 
1282
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1283
    # Reject names that are not valid shell variable names.
 
1284
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1285
      as_fn_error $? "invalid package name: $ac_useropt"
 
1286
    ac_useropt_orig=$ac_useropt
 
1287
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1288
    case $ac_user_opts in
 
1289
      *"
 
1290
"with_$ac_useropt"
 
1291
"*) ;;
 
1292
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1293
         ac_unrecognized_sep=', ';;
 
1294
    esac
 
1295
    eval with_$ac_useropt=no ;;
 
1296
 
 
1297
  --x)
 
1298
    # Obsolete; use --with-x.
 
1299
    with_x=yes ;;
 
1300
 
 
1301
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1302
  | --x-incl | --x-inc | --x-in | --x-i)
 
1303
    ac_prev=x_includes ;;
 
1304
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1305
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1306
    x_includes=$ac_optarg ;;
 
1307
 
 
1308
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1309
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1310
    ac_prev=x_libraries ;;
 
1311
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1312
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1313
    x_libraries=$ac_optarg ;;
 
1314
 
 
1315
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1316
Try \`$0 --help' for more information"
 
1317
    ;;
 
1318
 
 
1319
  *=*)
 
1320
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1321
    # Reject names that are not valid shell variable names.
 
1322
    case $ac_envvar in #(
 
1323
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1324
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1325
    esac
 
1326
    eval $ac_envvar=\$ac_optarg
 
1327
    export $ac_envvar ;;
 
1328
 
 
1329
  *)
 
1330
    # FIXME: should be removed in autoconf 3.0.
 
1331
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1332
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1333
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1334
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1335
    ;;
 
1336
 
 
1337
  esac
 
1338
done
 
1339
 
 
1340
if test -n "$ac_prev"; then
 
1341
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1342
  as_fn_error $? "missing argument to $ac_option"
 
1343
fi
 
1344
 
 
1345
if test -n "$ac_unrecognized_opts"; then
 
1346
  case $enable_option_checking in
 
1347
    no) ;;
 
1348
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1349
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1350
  esac
 
1351
fi
 
1352
 
 
1353
# Check all directory arguments for consistency.
 
1354
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1355
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1356
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1357
                libdir localedir mandir
 
1358
do
 
1359
  eval ac_val=\$$ac_var
 
1360
  # Remove trailing slashes.
 
1361
  case $ac_val in
 
1362
    */ )
 
1363
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1364
      eval $ac_var=\$ac_val;;
 
1365
  esac
 
1366
  # Be sure to have absolute directory names.
 
1367
  case $ac_val in
 
1368
    [\\/$]* | ?:[\\/]* )  continue;;
 
1369
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1370
  esac
 
1371
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 
1372
done
 
1373
 
 
1374
# There might be people who depend on the old broken behavior: `$host'
 
1375
# used to hold the argument of --host etc.
 
1376
# FIXME: To remove some day.
 
1377
build=$build_alias
 
1378
host=$host_alias
 
1379
target=$target_alias
 
1380
 
 
1381
# FIXME: To remove some day.
 
1382
if test "x$host_alias" != x; then
 
1383
  if test "x$build_alias" = x; then
 
1384
    cross_compiling=maybe
 
1385
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
 
1386
    If a cross compiler is detected then cross compile mode will be used" >&2
 
1387
  elif test "x$build_alias" != "x$host_alias"; then
 
1388
    cross_compiling=yes
 
1389
  fi
 
1390
fi
 
1391
 
 
1392
ac_tool_prefix=
 
1393
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1394
 
 
1395
test "$silent" = yes && exec 6>/dev/null
 
1396
 
 
1397
 
 
1398
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1399
ac_ls_di=`ls -di .` &&
 
1400
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1401
  as_fn_error $? "working directory cannot be determined"
 
1402
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1403
  as_fn_error $? "pwd does not report name of working directory"
 
1404
 
 
1405
 
 
1406
# Find the source files, if location was not specified.
 
1407
if test -z "$srcdir"; then
 
1408
  ac_srcdir_defaulted=yes
 
1409
  # Try the directory containing this script, then the parent directory.
 
1410
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1411
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1412
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1413
         X"$as_myself" : 'X\(//\)$' \| \
 
1414
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1415
$as_echo X"$as_myself" |
 
1416
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1417
            s//\1/
 
1418
            q
 
1419
          }
 
1420
          /^X\(\/\/\)[^/].*/{
 
1421
            s//\1/
 
1422
            q
 
1423
          }
 
1424
          /^X\(\/\/\)$/{
 
1425
            s//\1/
 
1426
            q
 
1427
          }
 
1428
          /^X\(\/\).*/{
 
1429
            s//\1/
 
1430
            q
 
1431
          }
 
1432
          s/.*/./; q'`
 
1433
  srcdir=$ac_confdir
 
1434
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1435
    srcdir=..
 
1436
  fi
 
1437
else
 
1438
  ac_srcdir_defaulted=no
 
1439
fi
 
1440
if test ! -r "$srcdir/$ac_unique_file"; then
 
1441
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1442
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 
1443
fi
 
1444
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1445
ac_abs_confdir=`(
 
1446
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 
1447
        pwd)`
 
1448
# When building in place, set srcdir=.
 
1449
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1450
  srcdir=.
 
1451
fi
 
1452
# Remove unnecessary trailing slashes from srcdir.
 
1453
# Double slashes in file names in object file debugging info
 
1454
# mess up M-x gdb in Emacs.
 
1455
case $srcdir in
 
1456
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1457
esac
 
1458
for ac_var in $ac_precious_vars; do
 
1459
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1460
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1461
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1462
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1463
done
 
1464
 
 
1465
#
 
1466
# Report the --help message.
 
1467
#
 
1468
if test "$ac_init_help" = "long"; then
 
1469
  # Omit some internal or obsolete options to make the list less imposing.
 
1470
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1471
  cat <<_ACEOF
 
1472
\`configure' configures cheese 3.0.1 to adapt to many kinds of systems.
 
1473
 
 
1474
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1475
 
 
1476
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1477
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1478
 
 
1479
Defaults for the options are specified in brackets.
 
1480
 
 
1481
Configuration:
 
1482
  -h, --help              display this help and exit
 
1483
      --help=short        display options specific to this package
 
1484
      --help=recursive    display the short help of all the included packages
 
1485
  -V, --version           display version information and exit
 
1486
  -q, --quiet, --silent   do not print \`checking ...' messages
 
1487
      --cache-file=FILE   cache test results in FILE [disabled]
 
1488
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1489
  -n, --no-create         do not create output files
 
1490
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1491
 
 
1492
Installation directories:
 
1493
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1494
                          [$ac_default_prefix]
 
1495
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1496
                          [PREFIX]
 
1497
 
 
1498
By default, \`make install' will install all the files in
 
1499
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1500
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1501
for instance \`--prefix=\$HOME'.
 
1502
 
 
1503
For better control, use the options below.
 
1504
 
 
1505
Fine tuning of the installation directories:
 
1506
  --bindir=DIR            user executables [EPREFIX/bin]
 
1507
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1508
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1509
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1510
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1511
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1512
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1513
  --includedir=DIR        C header files [PREFIX/include]
 
1514
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1515
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1516
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1517
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1518
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1519
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1520
  --docdir=DIR            documentation root [DATAROOTDIR/doc/cheese]
 
1521
  --htmldir=DIR           html documentation [DOCDIR]
 
1522
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1523
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1524
  --psdir=DIR             ps documentation [DOCDIR]
 
1525
_ACEOF
 
1526
 
 
1527
  cat <<\_ACEOF
 
1528
 
 
1529
Program names:
 
1530
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1531
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1532
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1533
 
 
1534
System types:
 
1535
  --build=BUILD     configure for building on BUILD [guessed]
 
1536
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1537
_ACEOF
 
1538
fi
 
1539
 
 
1540
if test -n "$ac_init_help"; then
 
1541
  case $ac_init_help in
 
1542
     short | recursive ) echo "Configuration of cheese 3.0.1:";;
 
1543
   esac
 
1544
  cat <<\_ACEOF
 
1545
 
 
1546
Optional Features:
 
1547
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1548
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1549
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1550
  --disable-maintainer-mode  disable make rules and dependencies not useful
 
1551
                          (and sometimes confusing) to the casual installer
 
1552
  --disable-dependency-tracking  speeds up one-time build
 
1553
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1554
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1555
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1556
  --enable-fast-install[=PKGS]
 
1557
                          optimize for fast installation [default=yes]
 
1558
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1559
  --enable-compile-warnings=[no/minimum/yes/maximum/error]
 
1560
                          Turn on compiler warnings
 
1561
  --enable-iso-c          Try to warn if code is not ISO C
 
1562
  --disable-nls           do not use Native Language Support
 
1563
  --disable-rpath         do not hardcode runtime library paths
 
1564
  --enable-introspection=[no/auto/yes]
 
1565
                          Enable introspection for this build
 
1566
  --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
 
1567
  --enable-gtk-doc-html   build documentation in html format [[default=yes]]
 
1568
  --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
 
1569
  --disable-scrollkeeper  do not make updates to the scrollkeeper database
 
1570
  --disable-schemas-compile
 
1571
                          Disable regeneration of gschemas.compiled on install
 
1572
 
 
1573
Optional Packages:
 
1574
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1575
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1576
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1577
                          both]
 
1578
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1579
  --with-sysroot=DIR Search for dependent libraries within DIR
 
1580
                        (or the compiler's sysroot if not specified).
 
1581
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
1582
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
 
1583
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
 
1584
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
 
1585
  --without-libintl-prefix     don't search for libintl in includedir and libdir
 
1586
  --with-html-dir=PATH    path to installed docs
 
1587
  --with-help-dir=DIR     path to help docs
 
1588
  --with-omf-dir=DIR      path to OMF files
 
1589
  --with-help-formats=FORMATS
 
1590
                          list of formats
 
1591
 
 
1592
Some influential environment variables:
 
1593
  CC          C compiler command
 
1594
  CFLAGS      C compiler flags
 
1595
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1596
              nonstandard directory <lib dir>
 
1597
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1598
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1599
              you have headers in a nonstandard directory <include dir>
 
1600
  CPP         C preprocessor
 
1601
  PKG_CONFIG  path to pkg-config utility
 
1602
  PKG_CONFIG_PATH
 
1603
              directories to add to pkg-config's search path
 
1604
  PKG_CONFIG_LIBDIR
 
1605
              path overriding pkg-config's built-in search path
 
1606
  UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
 
1607
  UDEV_LIBS   linker flags for UDEV, overriding pkg-config
 
1608
  CHEESE_CFLAGS
 
1609
              C compiler flags for CHEESE, overriding pkg-config
 
1610
  CHEESE_LIBS linker flags for CHEESE, overriding pkg-config
 
1611
  CHEESE_GTK_CFLAGS
 
1612
              C compiler flags for CHEESE_GTK, overriding pkg-config
 
1613
  CHEESE_GTK_LIBS
 
1614
              linker flags for CHEESE_GTK, overriding pkg-config
 
1615
 
 
1616
Use these variables to override the choices made by `configure' or to help
 
1617
it to find libraries and programs with nonstandard names/locations.
 
1618
 
 
1619
Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=cheese>.
 
1620
cheese home page: <http://projects.gnome.org/cheese/>.
 
1621
_ACEOF
 
1622
ac_status=$?
 
1623
fi
 
1624
 
 
1625
if test "$ac_init_help" = "recursive"; then
 
1626
  # If there are subdirs, report their specific --help.
 
1627
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1628
    test -d "$ac_dir" ||
 
1629
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1630
      continue
 
1631
    ac_builddir=.
 
1632
 
 
1633
case "$ac_dir" in
 
1634
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1635
*)
 
1636
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1637
  # A ".." for each directory in $ac_dir_suffix.
 
1638
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1639
  case $ac_top_builddir_sub in
 
1640
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1641
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1642
  esac ;;
 
1643
esac
 
1644
ac_abs_top_builddir=$ac_pwd
 
1645
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1646
# for backward compatibility:
 
1647
ac_top_builddir=$ac_top_build_prefix
 
1648
 
 
1649
case $srcdir in
 
1650
  .)  # We are building in place.
 
1651
    ac_srcdir=.
 
1652
    ac_top_srcdir=$ac_top_builddir_sub
 
1653
    ac_abs_top_srcdir=$ac_pwd ;;
 
1654
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1655
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1656
    ac_top_srcdir=$srcdir
 
1657
    ac_abs_top_srcdir=$srcdir ;;
 
1658
  *) # Relative name.
 
1659
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1660
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1661
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1662
esac
 
1663
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1664
 
 
1665
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1666
    # Check for guested configure.
 
1667
    if test -f "$ac_srcdir/configure.gnu"; then
 
1668
      echo &&
 
1669
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1670
    elif test -f "$ac_srcdir/configure"; then
 
1671
      echo &&
 
1672
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1673
    else
 
1674
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1675
    fi || ac_status=$?
 
1676
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1677
  done
 
1678
fi
 
1679
 
 
1680
test -n "$ac_init_help" && exit $ac_status
 
1681
if $ac_init_version; then
 
1682
  cat <<\_ACEOF
 
1683
cheese configure 3.0.1
 
1684
generated by GNU Autoconf 2.67
 
1685
 
 
1686
Copyright (C) 2010 Free Software Foundation, Inc.
 
1687
This configure script is free software; the Free Software Foundation
 
1688
gives unlimited permission to copy, distribute and modify it.
 
1689
_ACEOF
 
1690
  exit
 
1691
fi
 
1692
 
 
1693
## ------------------------ ##
 
1694
## Autoconf initialization. ##
 
1695
## ------------------------ ##
 
1696
 
 
1697
# ac_fn_c_try_compile LINENO
 
1698
# --------------------------
 
1699
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1700
ac_fn_c_try_compile ()
 
1701
{
 
1702
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1703
  rm -f conftest.$ac_objext
 
1704
  if { { ac_try="$ac_compile"
 
1705
case "(($ac_try" in
 
1706
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1707
  *) ac_try_echo=$ac_try;;
 
1708
esac
 
1709
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1710
$as_echo "$ac_try_echo"; } >&5
 
1711
  (eval "$ac_compile") 2>conftest.err
 
1712
  ac_status=$?
 
1713
  if test -s conftest.err; then
 
1714
    grep -v '^ *+' conftest.err >conftest.er1
 
1715
    cat conftest.er1 >&5
 
1716
    mv -f conftest.er1 conftest.err
 
1717
  fi
 
1718
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1719
  test $ac_status = 0; } && {
 
1720
         test -z "$ac_c_werror_flag" ||
 
1721
         test ! -s conftest.err
 
1722
       } && test -s conftest.$ac_objext; then :
 
1723
  ac_retval=0
 
1724
else
 
1725
  $as_echo "$as_me: failed program was:" >&5
 
1726
sed 's/^/| /' conftest.$ac_ext >&5
 
1727
 
 
1728
        ac_retval=1
 
1729
fi
 
1730
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1731
  as_fn_set_status $ac_retval
 
1732
 
 
1733
} # ac_fn_c_try_compile
 
1734
 
 
1735
# ac_fn_c_try_cpp LINENO
 
1736
# ----------------------
 
1737
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1738
ac_fn_c_try_cpp ()
 
1739
{
 
1740
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1741
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1742
case "(($ac_try" in
 
1743
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1744
  *) ac_try_echo=$ac_try;;
 
1745
esac
 
1746
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1747
$as_echo "$ac_try_echo"; } >&5
 
1748
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1749
  ac_status=$?
 
1750
  if test -s conftest.err; then
 
1751
    grep -v '^ *+' conftest.err >conftest.er1
 
1752
    cat conftest.er1 >&5
 
1753
    mv -f conftest.er1 conftest.err
 
1754
  fi
 
1755
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1756
  test $ac_status = 0; } > conftest.i && {
 
1757
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1758
         test ! -s conftest.err
 
1759
       }; then :
 
1760
  ac_retval=0
 
1761
else
 
1762
  $as_echo "$as_me: failed program was:" >&5
 
1763
sed 's/^/| /' conftest.$ac_ext >&5
 
1764
 
 
1765
    ac_retval=1
 
1766
fi
 
1767
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1768
  as_fn_set_status $ac_retval
 
1769
 
 
1770
} # ac_fn_c_try_cpp
 
1771
 
 
1772
# ac_fn_c_try_run LINENO
 
1773
# ----------------------
 
1774
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1775
# that executables *can* be run.
 
1776
ac_fn_c_try_run ()
 
1777
{
 
1778
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1779
  if { { ac_try="$ac_link"
 
1780
case "(($ac_try" in
 
1781
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1782
  *) ac_try_echo=$ac_try;;
 
1783
esac
 
1784
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1785
$as_echo "$ac_try_echo"; } >&5
 
1786
  (eval "$ac_link") 2>&5
 
1787
  ac_status=$?
 
1788
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1789
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1790
  { { case "(($ac_try" in
 
1791
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1792
  *) ac_try_echo=$ac_try;;
 
1793
esac
 
1794
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1795
$as_echo "$ac_try_echo"; } >&5
 
1796
  (eval "$ac_try") 2>&5
 
1797
  ac_status=$?
 
1798
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1799
  test $ac_status = 0; }; }; then :
 
1800
  ac_retval=0
 
1801
else
 
1802
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1803
       $as_echo "$as_me: failed program was:" >&5
 
1804
sed 's/^/| /' conftest.$ac_ext >&5
 
1805
 
 
1806
       ac_retval=$ac_status
 
1807
fi
 
1808
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1809
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1810
  as_fn_set_status $ac_retval
 
1811
 
 
1812
} # ac_fn_c_try_run
 
1813
 
 
1814
# ac_fn_c_try_link LINENO
 
1815
# -----------------------
 
1816
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1817
ac_fn_c_try_link ()
 
1818
{
 
1819
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1820
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1821
  if { { ac_try="$ac_link"
 
1822
case "(($ac_try" in
 
1823
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1824
  *) ac_try_echo=$ac_try;;
 
1825
esac
 
1826
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1827
$as_echo "$ac_try_echo"; } >&5
 
1828
  (eval "$ac_link") 2>conftest.err
 
1829
  ac_status=$?
 
1830
  if test -s conftest.err; then
 
1831
    grep -v '^ *+' conftest.err >conftest.er1
 
1832
    cat conftest.er1 >&5
 
1833
    mv -f conftest.er1 conftest.err
 
1834
  fi
 
1835
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1836
  test $ac_status = 0; } && {
 
1837
         test -z "$ac_c_werror_flag" ||
 
1838
         test ! -s conftest.err
 
1839
       } && test -s conftest$ac_exeext && {
 
1840
         test "$cross_compiling" = yes ||
 
1841
         $as_test_x conftest$ac_exeext
 
1842
       }; then :
 
1843
  ac_retval=0
 
1844
else
 
1845
  $as_echo "$as_me: failed program was:" >&5
 
1846
sed 's/^/| /' conftest.$ac_ext >&5
 
1847
 
 
1848
        ac_retval=1
 
1849
fi
 
1850
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1851
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1852
  # interfere with the next link command; also delete a directory that is
 
1853
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1854
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1855
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1856
  as_fn_set_status $ac_retval
 
1857
 
 
1858
} # ac_fn_c_try_link
 
1859
 
 
1860
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1861
# -------------------------------------------------------
 
1862
# Tests whether HEADER exists and can be compiled using the include files in
 
1863
# INCLUDES, setting the cache variable VAR accordingly.
 
1864
ac_fn_c_check_header_compile ()
 
1865
{
 
1866
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1867
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1868
$as_echo_n "checking for $2... " >&6; }
 
1869
if eval "test \"\${$3+set}\"" = set; then :
 
1870
  $as_echo_n "(cached) " >&6
 
1871
else
 
1872
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1873
/* end confdefs.h.  */
 
1874
$4
 
1875
#include <$2>
 
1876
_ACEOF
 
1877
if ac_fn_c_try_compile "$LINENO"; then :
 
1878
  eval "$3=yes"
 
1879
else
 
1880
  eval "$3=no"
 
1881
fi
 
1882
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1883
fi
 
1884
eval ac_res=\$$3
 
1885
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1886
$as_echo "$ac_res" >&6; }
 
1887
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1888
 
 
1889
} # ac_fn_c_check_header_compile
 
1890
 
 
1891
# ac_fn_c_check_func LINENO FUNC VAR
 
1892
# ----------------------------------
 
1893
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1894
ac_fn_c_check_func ()
 
1895
{
 
1896
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1897
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1898
$as_echo_n "checking for $2... " >&6; }
 
1899
if eval "test \"\${$3+set}\"" = set; then :
 
1900
  $as_echo_n "(cached) " >&6
 
1901
else
 
1902
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1903
/* end confdefs.h.  */
 
1904
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1905
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1906
#define $2 innocuous_$2
 
1907
 
 
1908
/* System header to define __stub macros and hopefully few prototypes,
 
1909
    which can conflict with char $2 (); below.
 
1910
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1911
    <limits.h> exists even on freestanding compilers.  */
 
1912
 
 
1913
#ifdef __STDC__
 
1914
# include <limits.h>
 
1915
#else
 
1916
# include <assert.h>
 
1917
#endif
 
1918
 
 
1919
#undef $2
 
1920
 
 
1921
/* Override any GCC internal prototype to avoid an error.
 
1922
   Use char because int might match the return type of a GCC
 
1923
   builtin and then its argument prototype would still apply.  */
 
1924
#ifdef __cplusplus
 
1925
extern "C"
 
1926
#endif
 
1927
char $2 ();
 
1928
/* The GNU C library defines this for functions which it implements
 
1929
    to always fail with ENOSYS.  Some functions are actually named
 
1930
    something starting with __ and the normal name is an alias.  */
 
1931
#if defined __stub_$2 || defined __stub___$2
 
1932
choke me
 
1933
#endif
 
1934
 
 
1935
int
 
1936
main ()
 
1937
{
 
1938
return $2 ();
 
1939
  ;
 
1940
  return 0;
 
1941
}
 
1942
_ACEOF
 
1943
if ac_fn_c_try_link "$LINENO"; then :
 
1944
  eval "$3=yes"
 
1945
else
 
1946
  eval "$3=no"
 
1947
fi
 
1948
rm -f core conftest.err conftest.$ac_objext \
 
1949
    conftest$ac_exeext conftest.$ac_ext
 
1950
fi
 
1951
eval ac_res=\$$3
 
1952
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1953
$as_echo "$ac_res" >&6; }
 
1954
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1955
 
 
1956
} # ac_fn_c_check_func
 
1957
 
 
1958
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1959
# -------------------------------------------------------
 
1960
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1961
# the include files in INCLUDES and setting the cache variable VAR
 
1962
# accordingly.
 
1963
ac_fn_c_check_header_mongrel ()
 
1964
{
 
1965
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1966
  if eval "test \"\${$3+set}\"" = set; then :
 
1967
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1968
$as_echo_n "checking for $2... " >&6; }
 
1969
if eval "test \"\${$3+set}\"" = set; then :
 
1970
  $as_echo_n "(cached) " >&6
 
1971
fi
 
1972
eval ac_res=\$$3
 
1973
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1974
$as_echo "$ac_res" >&6; }
 
1975
else
 
1976
  # Is the header compilable?
 
1977
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1978
$as_echo_n "checking $2 usability... " >&6; }
 
1979
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1980
/* end confdefs.h.  */
 
1981
$4
 
1982
#include <$2>
 
1983
_ACEOF
 
1984
if ac_fn_c_try_compile "$LINENO"; then :
 
1985
  ac_header_compiler=yes
 
1986
else
 
1987
  ac_header_compiler=no
 
1988
fi
 
1989
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1990
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1991
$as_echo "$ac_header_compiler" >&6; }
 
1992
 
 
1993
# Is the header present?
 
1994
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1995
$as_echo_n "checking $2 presence... " >&6; }
 
1996
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1997
/* end confdefs.h.  */
 
1998
#include <$2>
 
1999
_ACEOF
 
2000
if ac_fn_c_try_cpp "$LINENO"; then :
 
2001
  ac_header_preproc=yes
 
2002
else
 
2003
  ac_header_preproc=no
 
2004
fi
 
2005
rm -f conftest.err conftest.i conftest.$ac_ext
 
2006
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
2007
$as_echo "$ac_header_preproc" >&6; }
 
2008
 
 
2009
# So?  What about this header?
 
2010
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
2011
  yes:no: )
 
2012
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
2013
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
2014
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
2015
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
2016
    ;;
 
2017
  no:yes:* )
 
2018
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
2019
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
2020
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
2021
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
2022
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
2023
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
2024
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
2025
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
2026
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
2027
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
2028
( $as_echo "## --------------------------------------------------------------------- ##
 
2029
## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=cheese ##
 
2030
## --------------------------------------------------------------------- ##"
 
2031
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
2032
    ;;
 
2033
esac
 
2034
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2035
$as_echo_n "checking for $2... " >&6; }
 
2036
if eval "test \"\${$3+set}\"" = set; then :
 
2037
  $as_echo_n "(cached) " >&6
 
2038
else
 
2039
  eval "$3=\$ac_header_compiler"
 
2040
fi
 
2041
eval ac_res=\$$3
 
2042
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2043
$as_echo "$ac_res" >&6; }
 
2044
fi
 
2045
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2046
 
 
2047
} # ac_fn_c_check_header_mongrel
 
2048
cat >config.log <<_ACEOF
 
2049
This file contains any messages produced by compilers while
 
2050
running configure, to aid debugging if configure makes a mistake.
 
2051
 
 
2052
It was created by cheese $as_me 3.0.1, which was
 
2053
generated by GNU Autoconf 2.67.  Invocation command line was
 
2054
 
 
2055
  $ $0 $@
 
2056
 
 
2057
_ACEOF
 
2058
exec 5>>config.log
 
2059
{
 
2060
cat <<_ASUNAME
 
2061
## --------- ##
 
2062
## Platform. ##
 
2063
## --------- ##
 
2064
 
 
2065
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
2066
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
2067
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
2068
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
2069
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
2070
 
 
2071
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
2072
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
2073
 
 
2074
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
2075
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
2076
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
2077
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
2078
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
2079
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
2080
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
2081
 
 
2082
_ASUNAME
 
2083
 
 
2084
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2085
for as_dir in $PATH
 
2086
do
 
2087
  IFS=$as_save_IFS
 
2088
  test -z "$as_dir" && as_dir=.
 
2089
    $as_echo "PATH: $as_dir"
 
2090
  done
 
2091
IFS=$as_save_IFS
 
2092
 
 
2093
} >&5
 
2094
 
 
2095
cat >&5 <<_ACEOF
 
2096
 
 
2097
 
 
2098
## ----------- ##
 
2099
## Core tests. ##
 
2100
## ----------- ##
 
2101
 
 
2102
_ACEOF
 
2103
 
 
2104
 
 
2105
# Keep a trace of the command line.
 
2106
# Strip out --no-create and --no-recursion so they do not pile up.
 
2107
# Strip out --silent because we don't want to record it for future runs.
 
2108
# Also quote any args containing shell meta-characters.
 
2109
# Make two passes to allow for proper duplicate-argument suppression.
 
2110
ac_configure_args=
 
2111
ac_configure_args0=
 
2112
ac_configure_args1=
 
2113
ac_must_keep_next=false
 
2114
for ac_pass in 1 2
 
2115
do
 
2116
  for ac_arg
 
2117
  do
 
2118
    case $ac_arg in
 
2119
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
2120
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
2121
    | -silent | --silent | --silen | --sile | --sil)
 
2122
      continue ;;
 
2123
    *\'*)
 
2124
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2125
    esac
 
2126
    case $ac_pass in
 
2127
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
2128
    2)
 
2129
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
2130
      if test $ac_must_keep_next = true; then
 
2131
        ac_must_keep_next=false # Got value, back to normal.
 
2132
      else
 
2133
        case $ac_arg in
 
2134
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
2135
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
2136
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
2137
          | -with-* | --with-* | -without-* | --without-* | --x)
 
2138
            case "$ac_configure_args0 " in
 
2139
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
2140
            esac
 
2141
            ;;
 
2142
          -* ) ac_must_keep_next=true ;;
 
2143
        esac
 
2144
      fi
 
2145
      as_fn_append ac_configure_args " '$ac_arg'"
 
2146
      ;;
 
2147
    esac
 
2148
  done
 
2149
done
 
2150
{ ac_configure_args0=; unset ac_configure_args0;}
 
2151
{ ac_configure_args1=; unset ac_configure_args1;}
 
2152
 
 
2153
# When interrupted or exit'd, cleanup temporary files, and complete
 
2154
# config.log.  We remove comments because anyway the quotes in there
 
2155
# would cause problems or look ugly.
 
2156
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
2157
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
2158
trap 'exit_status=$?
 
2159
  # Save into config.log some information that might help in debugging.
 
2160
  {
 
2161
    echo
 
2162
 
 
2163
    $as_echo "## ---------------- ##
 
2164
## Cache variables. ##
 
2165
## ---------------- ##"
 
2166
    echo
 
2167
    # The following way of writing the cache mishandles newlines in values,
 
2168
(
 
2169
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
2170
    eval ac_val=\$$ac_var
 
2171
    case $ac_val in #(
 
2172
    *${as_nl}*)
 
2173
      case $ac_var in #(
 
2174
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2175
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
2176
      esac
 
2177
      case $ac_var in #(
 
2178
      _ | IFS | as_nl) ;; #(
 
2179
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2180
      *) { eval $ac_var=; unset $ac_var;} ;;
 
2181
      esac ;;
 
2182
    esac
 
2183
  done
 
2184
  (set) 2>&1 |
 
2185
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2186
    *${as_nl}ac_space=\ *)
 
2187
      sed -n \
 
2188
        "s/'\''/'\''\\\\'\'''\''/g;
 
2189
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2190
      ;; #(
 
2191
    *)
 
2192
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
2193
      ;;
 
2194
    esac |
 
2195
    sort
 
2196
)
 
2197
    echo
 
2198
 
 
2199
    $as_echo "## ----------------- ##
 
2200
## Output variables. ##
 
2201
## ----------------- ##"
 
2202
    echo
 
2203
    for ac_var in $ac_subst_vars
 
2204
    do
 
2205
      eval ac_val=\$$ac_var
 
2206
      case $ac_val in
 
2207
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2208
      esac
 
2209
      $as_echo "$ac_var='\''$ac_val'\''"
 
2210
    done | sort
 
2211
    echo
 
2212
 
 
2213
    if test -n "$ac_subst_files"; then
 
2214
      $as_echo "## ------------------- ##
 
2215
## File substitutions. ##
 
2216
## ------------------- ##"
 
2217
      echo
 
2218
      for ac_var in $ac_subst_files
 
2219
      do
 
2220
        eval ac_val=\$$ac_var
 
2221
        case $ac_val in
 
2222
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2223
        esac
 
2224
        $as_echo "$ac_var='\''$ac_val'\''"
 
2225
      done | sort
 
2226
      echo
 
2227
    fi
 
2228
 
 
2229
    if test -s confdefs.h; then
 
2230
      $as_echo "## ----------- ##
 
2231
## confdefs.h. ##
 
2232
## ----------- ##"
 
2233
      echo
 
2234
      cat confdefs.h
 
2235
      echo
 
2236
    fi
 
2237
    test "$ac_signal" != 0 &&
 
2238
      $as_echo "$as_me: caught signal $ac_signal"
 
2239
    $as_echo "$as_me: exit $exit_status"
 
2240
  } >&5
 
2241
  rm -f core *.core core.conftest.* &&
 
2242
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2243
    exit $exit_status
 
2244
' 0
 
2245
for ac_signal in 1 2 13 15; do
 
2246
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
2247
done
 
2248
ac_signal=0
 
2249
 
 
2250
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2251
rm -f -r conftest* confdefs.h
 
2252
 
 
2253
$as_echo "/* confdefs.h */" > confdefs.h
 
2254
 
 
2255
# Predefined preprocessor variables.
 
2256
 
 
2257
cat >>confdefs.h <<_ACEOF
 
2258
#define PACKAGE_NAME "$PACKAGE_NAME"
 
2259
_ACEOF
 
2260
 
 
2261
cat >>confdefs.h <<_ACEOF
 
2262
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2263
_ACEOF
 
2264
 
 
2265
cat >>confdefs.h <<_ACEOF
 
2266
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2267
_ACEOF
 
2268
 
 
2269
cat >>confdefs.h <<_ACEOF
 
2270
#define PACKAGE_STRING "$PACKAGE_STRING"
 
2271
_ACEOF
 
2272
 
 
2273
cat >>confdefs.h <<_ACEOF
 
2274
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2275
_ACEOF
 
2276
 
 
2277
cat >>confdefs.h <<_ACEOF
 
2278
#define PACKAGE_URL "$PACKAGE_URL"
 
2279
_ACEOF
 
2280
 
 
2281
 
 
2282
# Let the site file select an alternate cache file if it wants to.
 
2283
# Prefer an explicitly selected file to automatically selected ones.
 
2284
ac_site_file1=NONE
 
2285
ac_site_file2=NONE
 
2286
if test -n "$CONFIG_SITE"; then
 
2287
  # We do not want a PATH search for config.site.
 
2288
  case $CONFIG_SITE in #((
 
2289
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2290
    */*) ac_site_file1=$CONFIG_SITE;;
 
2291
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2292
  esac
 
2293
elif test "x$prefix" != xNONE; then
 
2294
  ac_site_file1=$prefix/share/config.site
 
2295
  ac_site_file2=$prefix/etc/config.site
 
2296
else
 
2297
  ac_site_file1=$ac_default_prefix/share/config.site
 
2298
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2299
fi
 
2300
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2301
do
 
2302
  test "x$ac_site_file" = xNONE && continue
 
2303
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2304
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2305
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2306
    sed 's/^/| /' "$ac_site_file" >&5
 
2307
    . "$ac_site_file" \
 
2308
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2309
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2310
as_fn_error $? "failed to load site script $ac_site_file
 
2311
See \`config.log' for more details" "$LINENO" 5 ; }
 
2312
  fi
 
2313
done
 
2314
 
 
2315
if test -r "$cache_file"; then
 
2316
  # Some versions of bash will fail to source /dev/null (special files
 
2317
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2318
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2319
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2320
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2321
    case $cache_file in
 
2322
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2323
      *)                      . "./$cache_file";;
 
2324
    esac
 
2325
  fi
 
2326
else
 
2327
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2328
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2329
  >$cache_file
 
2330
fi
 
2331
 
 
2332
gt_needs="$gt_needs "
 
2333
# Check that the precious variables saved in the cache have kept the same
 
2334
# value.
 
2335
ac_cache_corrupted=false
 
2336
for ac_var in $ac_precious_vars; do
 
2337
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2338
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2339
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2340
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2341
  case $ac_old_set,$ac_new_set in
 
2342
    set,)
 
2343
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2344
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2345
      ac_cache_corrupted=: ;;
 
2346
    ,set)
 
2347
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2348
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2349
      ac_cache_corrupted=: ;;
 
2350
    ,);;
 
2351
    *)
 
2352
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2353
        # differences in whitespace do not lead to failure.
 
2354
        ac_old_val_w=`echo x $ac_old_val`
 
2355
        ac_new_val_w=`echo x $ac_new_val`
 
2356
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2357
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2358
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2359
          ac_cache_corrupted=:
 
2360
        else
 
2361
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2362
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2363
          eval $ac_var=\$ac_old_val
 
2364
        fi
 
2365
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2366
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2367
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2368
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2369
      fi;;
 
2370
  esac
 
2371
  # Pass precious variables to config.status.
 
2372
  if test "$ac_new_set" = set; then
 
2373
    case $ac_new_val in
 
2374
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2375
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2376
    esac
 
2377
    case " $ac_configure_args " in
 
2378
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2379
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2380
    esac
 
2381
  fi
 
2382
done
 
2383
if $ac_cache_corrupted; then
 
2384
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2385
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2386
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2387
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2388
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2389
fi
 
2390
## -------------------- ##
 
2391
## Main body of script. ##
 
2392
## -------------------- ##
 
2393
 
 
2394
ac_ext=c
 
2395
ac_cpp='$CPP $CPPFLAGS'
 
2396
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2397
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2398
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2399
 
 
2400
 
 
2401
 
 
2402
ac_config_headers="$ac_config_headers cheese-config.h"
 
2403
 
 
2404
 
 
2405
 
 
2406
 
 
2407
am__api_version='1.11'
 
2408
 
 
2409
ac_aux_dir=
 
2410
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
2411
  if test -f "$ac_dir/install-sh"; then
 
2412
    ac_aux_dir=$ac_dir
 
2413
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2414
    break
 
2415
  elif test -f "$ac_dir/install.sh"; then
 
2416
    ac_aux_dir=$ac_dir
 
2417
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2418
    break
 
2419
  elif test -f "$ac_dir/shtool"; then
 
2420
    ac_aux_dir=$ac_dir
 
2421
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2422
    break
 
2423
  fi
 
2424
done
 
2425
if test -z "$ac_aux_dir"; then
 
2426
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
 
2427
fi
 
2428
 
 
2429
# These three variables are undocumented and unsupported,
 
2430
# and are intended to be withdrawn in a future Autoconf release.
 
2431
# They can cause serious problems if a builder's source tree is in a directory
 
2432
# whose full name contains unusual characters.
 
2433
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2434
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2435
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2436
 
 
2437
 
 
2438
# Find a good install program.  We prefer a C program (faster),
 
2439
# so one script is as good as another.  But avoid the broken or
 
2440
# incompatible versions:
 
2441
# SysV /etc/install, /usr/sbin/install
 
2442
# SunOS /usr/etc/install
 
2443
# IRIX /sbin/install
 
2444
# AIX /bin/install
 
2445
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2446
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2447
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2448
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2449
# OS/2's system install, which has a completely different semantic
 
2450
# ./install, which can be erroneously created by make from ./install.sh.
 
2451
# Reject install programs that cannot install multiple files.
 
2452
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2453
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2454
if test -z "$INSTALL"; then
 
2455
if test "${ac_cv_path_install+set}" = set; then :
 
2456
  $as_echo_n "(cached) " >&6
 
2457
else
 
2458
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2459
for as_dir in $PATH
 
2460
do
 
2461
  IFS=$as_save_IFS
 
2462
  test -z "$as_dir" && as_dir=.
 
2463
    # Account for people who put trailing slashes in PATH elements.
 
2464
case $as_dir/ in #((
 
2465
  ./ | .// | /[cC]/* | \
 
2466
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2467
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
2468
  /usr/ucb/* ) ;;
 
2469
  *)
 
2470
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2471
    # Don't use installbsd from OSF since it installs stuff as root
 
2472
    # by default.
 
2473
    for ac_prog in ginstall scoinst install; do
 
2474
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2475
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2476
          if test $ac_prog = install &&
 
2477
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2478
            # AIX install.  It has an incompatible calling convention.
 
2479
            :
 
2480
          elif test $ac_prog = install &&
 
2481
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2482
            # program-specific install script used by HP pwplus--don't use.
 
2483
            :
 
2484
          else
 
2485
            rm -rf conftest.one conftest.two conftest.dir
 
2486
            echo one > conftest.one
 
2487
            echo two > conftest.two
 
2488
            mkdir conftest.dir
 
2489
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2490
              test -s conftest.one && test -s conftest.two &&
 
2491
              test -s conftest.dir/conftest.one &&
 
2492
              test -s conftest.dir/conftest.two
 
2493
            then
 
2494
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2495
              break 3
 
2496
            fi
 
2497
          fi
 
2498
        fi
 
2499
      done
 
2500
    done
 
2501
    ;;
 
2502
esac
 
2503
 
 
2504
  done
 
2505
IFS=$as_save_IFS
 
2506
 
 
2507
rm -rf conftest.one conftest.two conftest.dir
 
2508
 
 
2509
fi
 
2510
  if test "${ac_cv_path_install+set}" = set; then
 
2511
    INSTALL=$ac_cv_path_install
 
2512
  else
 
2513
    # As a last resort, use the slow shell script.  Don't cache a
 
2514
    # value for INSTALL within a source directory, because that will
 
2515
    # break other packages using the cache if that directory is
 
2516
    # removed, or if the value is a relative name.
 
2517
    INSTALL=$ac_install_sh
 
2518
  fi
 
2519
fi
 
2520
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
2521
$as_echo "$INSTALL" >&6; }
 
2522
 
 
2523
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2524
# It thinks the first close brace ends the variable substitution.
 
2525
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2526
 
 
2527
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2528
 
 
2529
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2530
 
 
2531
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
2532
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2533
# Just in case
 
2534
sleep 1
 
2535
echo timestamp > conftest.file
 
2536
# Reject unsafe characters in $srcdir or the absolute working directory
 
2537
# name.  Accept space and tab only in the latter.
 
2538
am_lf='
 
2539
'
 
2540
case `pwd` in
 
2541
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2542
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
 
2543
esac
 
2544
case $srcdir in
 
2545
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2546
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
 
2547
esac
 
2548
 
 
2549
# Do `set' in a subshell so we don't clobber the current shell's
 
2550
# arguments.  Must try -L first in case configure is actually a
 
2551
# symlink; some systems play weird games with the mod time of symlinks
 
2552
# (eg FreeBSD returns the mod time of the symlink's containing
 
2553
# directory).
 
2554
if (
 
2555
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
2556
   if test "$*" = "X"; then
 
2557
      # -L didn't work.
 
2558
      set X `ls -t "$srcdir/configure" conftest.file`
 
2559
   fi
 
2560
   rm -f conftest.file
 
2561
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2562
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2563
 
 
2564
      # If neither matched, then we have a broken ls.  This can happen
 
2565
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2566
      # broken ls alias from the environment.  This has actually
 
2567
      # happened.  Such a system could not be considered "sane".
 
2568
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 
2569
alias in your environment" "$LINENO" 5
 
2570
   fi
 
2571
 
 
2572
   test "$2" = conftest.file
 
2573
   )
 
2574
then
 
2575
   # Ok.
 
2576
   :
 
2577
else
 
2578
   as_fn_error $? "newly created file is older than distributed files!
 
2579
Check your system clock" "$LINENO" 5
 
2580
fi
 
2581
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2582
$as_echo "yes" >&6; }
 
2583
test "$program_prefix" != NONE &&
 
2584
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2585
# Use a double $ so make ignores it.
 
2586
test "$program_suffix" != NONE &&
 
2587
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2588
# Double any \ or $.
 
2589
# By default was `s,x,x', remove it if useless.
 
2590
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2591
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2592
 
 
2593
# expand $ac_aux_dir to an absolute path
 
2594
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2595
 
 
2596
if test x"${MISSING+set}" != xset; then
 
2597
  case $am_aux_dir in
 
2598
  *\ * | *\     *)
 
2599
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2600
  *)
 
2601
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2602
  esac
 
2603
fi
 
2604
# Use eval to expand $SHELL
 
2605
if eval "$MISSING --run true"; then
 
2606
  am_missing_run="$MISSING --run "
 
2607
else
 
2608
  am_missing_run=
 
2609
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
 
2610
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2611
fi
 
2612
 
 
2613
if test x"${install_sh}" != xset; then
 
2614
  case $am_aux_dir in
 
2615
  *\ * | *\     *)
 
2616
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2617
  *)
 
2618
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2619
  esac
 
2620
fi
 
2621
 
 
2622
# Installed binaries are usually stripped using `strip' when the user
 
2623
# run `make install-strip'.  However `strip' might not be the right
 
2624
# tool to use in cross-compilation environments, therefore Automake
 
2625
# will honor the `STRIP' environment variable to overrule this program.
 
2626
if test "$cross_compiling" != no; then
 
2627
  if test -n "$ac_tool_prefix"; then
 
2628
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2629
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2630
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2631
$as_echo_n "checking for $ac_word... " >&6; }
 
2632
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
2633
  $as_echo_n "(cached) " >&6
 
2634
else
 
2635
  if test -n "$STRIP"; then
 
2636
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2637
else
 
2638
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2639
for as_dir in $PATH
 
2640
do
 
2641
  IFS=$as_save_IFS
 
2642
  test -z "$as_dir" && as_dir=.
 
2643
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2644
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2645
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2646
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2647
    break 2
 
2648
  fi
 
2649
done
 
2650
  done
 
2651
IFS=$as_save_IFS
 
2652
 
 
2653
fi
 
2654
fi
 
2655
STRIP=$ac_cv_prog_STRIP
 
2656
if test -n "$STRIP"; then
 
2657
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
2658
$as_echo "$STRIP" >&6; }
 
2659
else
 
2660
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2661
$as_echo "no" >&6; }
 
2662
fi
 
2663
 
 
2664
 
 
2665
fi
 
2666
if test -z "$ac_cv_prog_STRIP"; then
 
2667
  ac_ct_STRIP=$STRIP
 
2668
  # Extract the first word of "strip", so it can be a program name with args.
 
2669
set dummy strip; ac_word=$2
 
2670
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2671
$as_echo_n "checking for $ac_word... " >&6; }
 
2672
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
2673
  $as_echo_n "(cached) " >&6
 
2674
else
 
2675
  if test -n "$ac_ct_STRIP"; then
 
2676
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2677
else
 
2678
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2679
for as_dir in $PATH
 
2680
do
 
2681
  IFS=$as_save_IFS
 
2682
  test -z "$as_dir" && as_dir=.
 
2683
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2684
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2685
    ac_cv_prog_ac_ct_STRIP="strip"
 
2686
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2687
    break 2
 
2688
  fi
 
2689
done
 
2690
  done
 
2691
IFS=$as_save_IFS
 
2692
 
 
2693
fi
 
2694
fi
 
2695
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2696
if test -n "$ac_ct_STRIP"; then
 
2697
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
2698
$as_echo "$ac_ct_STRIP" >&6; }
 
2699
else
 
2700
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2701
$as_echo "no" >&6; }
 
2702
fi
 
2703
 
 
2704
  if test "x$ac_ct_STRIP" = x; then
 
2705
    STRIP=":"
 
2706
  else
 
2707
    case $cross_compiling:$ac_tool_warned in
 
2708
yes:)
 
2709
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2710
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2711
ac_tool_warned=yes ;;
 
2712
esac
 
2713
    STRIP=$ac_ct_STRIP
 
2714
  fi
 
2715
else
 
2716
  STRIP="$ac_cv_prog_STRIP"
 
2717
fi
 
2718
 
 
2719
fi
 
2720
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2721
 
 
2722
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
2723
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2724
if test -z "$MKDIR_P"; then
 
2725
  if test "${ac_cv_path_mkdir+set}" = set; then :
 
2726
  $as_echo_n "(cached) " >&6
 
2727
else
 
2728
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2729
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2730
do
 
2731
  IFS=$as_save_IFS
 
2732
  test -z "$as_dir" && as_dir=.
 
2733
    for ac_prog in mkdir gmkdir; do
 
2734
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2735
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2736
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2737
             'mkdir (GNU coreutils) '* | \
 
2738
             'mkdir (coreutils) '* | \
 
2739
             'mkdir (fileutils) '4.1*)
 
2740
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2741
               break 3;;
 
2742
           esac
 
2743
         done
 
2744
       done
 
2745
  done
 
2746
IFS=$as_save_IFS
 
2747
 
 
2748
fi
 
2749
 
 
2750
  test -d ./--version && rmdir ./--version
 
2751
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2752
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2753
  else
 
2754
    # As a last resort, use the slow shell script.  Don't cache a
 
2755
    # value for MKDIR_P within a source directory, because that will
 
2756
    # break other packages using the cache if that directory is
 
2757
    # removed, or if the value is a relative name.
 
2758
    MKDIR_P="$ac_install_sh -d"
 
2759
  fi
 
2760
fi
 
2761
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
2762
$as_echo "$MKDIR_P" >&6; }
 
2763
 
 
2764
mkdir_p="$MKDIR_P"
 
2765
case $mkdir_p in
 
2766
  [\\/$]* | ?:[\\/]*) ;;
 
2767
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2768
esac
 
2769
 
 
2770
for ac_prog in gawk mawk nawk awk
 
2771
do
 
2772
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2773
set dummy $ac_prog; ac_word=$2
 
2774
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2775
$as_echo_n "checking for $ac_word... " >&6; }
 
2776
if test "${ac_cv_prog_AWK+set}" = set; then :
 
2777
  $as_echo_n "(cached) " >&6
 
2778
else
 
2779
  if test -n "$AWK"; then
 
2780
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2781
else
 
2782
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2783
for as_dir in $PATH
 
2784
do
 
2785
  IFS=$as_save_IFS
 
2786
  test -z "$as_dir" && as_dir=.
 
2787
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2788
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2789
    ac_cv_prog_AWK="$ac_prog"
 
2790
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2791
    break 2
 
2792
  fi
 
2793
done
 
2794
  done
 
2795
IFS=$as_save_IFS
 
2796
 
 
2797
fi
 
2798
fi
 
2799
AWK=$ac_cv_prog_AWK
 
2800
if test -n "$AWK"; then
 
2801
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
2802
$as_echo "$AWK" >&6; }
 
2803
else
 
2804
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2805
$as_echo "no" >&6; }
 
2806
fi
 
2807
 
 
2808
 
 
2809
  test -n "$AWK" && break
 
2810
done
 
2811
 
 
2812
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2813
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2814
set x ${MAKE-make}
 
2815
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2816
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
 
2817
  $as_echo_n "(cached) " >&6
 
2818
else
 
2819
  cat >conftest.make <<\_ACEOF
 
2820
SHELL = /bin/sh
 
2821
all:
 
2822
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2823
_ACEOF
 
2824
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
2825
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2826
  *@@@%%%=?*=@@@%%%*)
 
2827
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2828
  *)
 
2829
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2830
esac
 
2831
rm -f conftest.make
 
2832
fi
 
2833
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2834
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2835
$as_echo "yes" >&6; }
 
2836
  SET_MAKE=
 
2837
else
 
2838
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2839
$as_echo "no" >&6; }
 
2840
  SET_MAKE="MAKE=${MAKE-make}"
 
2841
fi
 
2842
 
 
2843
rm -rf .tst 2>/dev/null
 
2844
mkdir .tst 2>/dev/null
 
2845
if test -d .tst; then
 
2846
  am__leading_dot=.
 
2847
else
 
2848
  am__leading_dot=_
 
2849
fi
 
2850
rmdir .tst 2>/dev/null
 
2851
 
 
2852
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2853
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2854
  # is not polluted with repeated "-I."
 
2855
  am__isrc=' -I$(srcdir)'
 
2856
  # test to see if srcdir already configured
 
2857
  if test -f $srcdir/config.status; then
 
2858
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
2859
  fi
 
2860
fi
 
2861
 
 
2862
# test whether we have cygpath
 
2863
if test -z "$CYGPATH_W"; then
 
2864
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2865
    CYGPATH_W='cygpath -w'
 
2866
  else
 
2867
    CYGPATH_W=echo
 
2868
  fi
 
2869
fi
 
2870
 
 
2871
 
 
2872
# Define the identity of the package.
 
2873
 PACKAGE='cheese'
 
2874
 VERSION='3.0.1'
 
2875
 
 
2876
 
 
2877
cat >>confdefs.h <<_ACEOF
 
2878
#define PACKAGE "$PACKAGE"
 
2879
_ACEOF
 
2880
 
 
2881
 
 
2882
cat >>confdefs.h <<_ACEOF
 
2883
#define VERSION "$VERSION"
 
2884
_ACEOF
 
2885
 
 
2886
# Some tools Automake needs.
 
2887
 
 
2888
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2889
 
 
2890
 
 
2891
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2892
 
 
2893
 
 
2894
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2895
 
 
2896
 
 
2897
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2898
 
 
2899
 
 
2900
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2901
 
 
2902
# We need awk for the "check" target.  The system "awk" is bad on
 
2903
# some platforms.
 
2904
# Always define AMTAR for backward compatibility.
 
2905
 
 
2906
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2907
 
 
2908
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2909
 
 
2910
 
 
2911
 
 
2912
 
 
2913
 
 
2914
 
 
2915
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable maintainer-specific portions of Makefiles" >&5
 
2916
$as_echo_n "checking whether to disable maintainer-specific portions of Makefiles... " >&6; }
 
2917
    # Check whether --enable-maintainer-mode was given.
 
2918
if test "${enable_maintainer_mode+set}" = set; then :
 
2919
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
 
2920
else
 
2921
  USE_MAINTAINER_MODE=yes
 
2922
fi
 
2923
 
 
2924
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
 
2925
$as_echo "$USE_MAINTAINER_MODE" >&6; }
 
2926
   if test $USE_MAINTAINER_MODE = yes; then
 
2927
  MAINTAINER_MODE_TRUE=
 
2928
  MAINTAINER_MODE_FALSE='#'
 
2929
else
 
2930
  MAINTAINER_MODE_TRUE='#'
 
2931
  MAINTAINER_MODE_FALSE=
 
2932
fi
 
2933
 
 
2934
  MAINT=$MAINTAINER_MODE_TRUE
 
2935
 
 
2936
 
 
2937
 
 
2938
# Check for programs
 
2939
ac_ext=c
 
2940
ac_cpp='$CPP $CPPFLAGS'
 
2941
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2942
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2943
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2944
if test -n "$ac_tool_prefix"; then
 
2945
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2946
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2947
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2948
$as_echo_n "checking for $ac_word... " >&6; }
 
2949
if test "${ac_cv_prog_CC+set}" = set; then :
 
2950
  $as_echo_n "(cached) " >&6
 
2951
else
 
2952
  if test -n "$CC"; then
 
2953
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2954
else
 
2955
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2956
for as_dir in $PATH
 
2957
do
 
2958
  IFS=$as_save_IFS
 
2959
  test -z "$as_dir" && as_dir=.
 
2960
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2961
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2962
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2963
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2964
    break 2
 
2965
  fi
 
2966
done
 
2967
  done
 
2968
IFS=$as_save_IFS
 
2969
 
 
2970
fi
 
2971
fi
 
2972
CC=$ac_cv_prog_CC
 
2973
if test -n "$CC"; then
 
2974
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2975
$as_echo "$CC" >&6; }
 
2976
else
 
2977
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2978
$as_echo "no" >&6; }
 
2979
fi
 
2980
 
 
2981
 
 
2982
fi
 
2983
if test -z "$ac_cv_prog_CC"; then
 
2984
  ac_ct_CC=$CC
 
2985
  # Extract the first word of "gcc", so it can be a program name with args.
 
2986
set dummy gcc; ac_word=$2
 
2987
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2988
$as_echo_n "checking for $ac_word... " >&6; }
 
2989
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
2990
  $as_echo_n "(cached) " >&6
 
2991
else
 
2992
  if test -n "$ac_ct_CC"; then
 
2993
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2994
else
 
2995
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2996
for as_dir in $PATH
 
2997
do
 
2998
  IFS=$as_save_IFS
 
2999
  test -z "$as_dir" && as_dir=.
 
3000
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3001
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3002
    ac_cv_prog_ac_ct_CC="gcc"
 
3003
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3004
    break 2
 
3005
  fi
 
3006
done
 
3007
  done
 
3008
IFS=$as_save_IFS
 
3009
 
 
3010
fi
 
3011
fi
 
3012
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3013
if test -n "$ac_ct_CC"; then
 
3014
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3015
$as_echo "$ac_ct_CC" >&6; }
 
3016
else
 
3017
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3018
$as_echo "no" >&6; }
 
3019
fi
 
3020
 
 
3021
  if test "x$ac_ct_CC" = x; then
 
3022
    CC=""
 
3023
  else
 
3024
    case $cross_compiling:$ac_tool_warned in
 
3025
yes:)
 
3026
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3027
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3028
ac_tool_warned=yes ;;
 
3029
esac
 
3030
    CC=$ac_ct_CC
 
3031
  fi
 
3032
else
 
3033
  CC="$ac_cv_prog_CC"
 
3034
fi
 
3035
 
 
3036
if test -z "$CC"; then
 
3037
          if test -n "$ac_tool_prefix"; then
 
3038
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3039
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3040
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3041
$as_echo_n "checking for $ac_word... " >&6; }
 
3042
if test "${ac_cv_prog_CC+set}" = set; then :
 
3043
  $as_echo_n "(cached) " >&6
 
3044
else
 
3045
  if test -n "$CC"; then
 
3046
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3047
else
 
3048
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3049
for as_dir in $PATH
 
3050
do
 
3051
  IFS=$as_save_IFS
 
3052
  test -z "$as_dir" && as_dir=.
 
3053
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3054
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3055
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3056
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3057
    break 2
 
3058
  fi
 
3059
done
 
3060
  done
 
3061
IFS=$as_save_IFS
 
3062
 
 
3063
fi
 
3064
fi
 
3065
CC=$ac_cv_prog_CC
 
3066
if test -n "$CC"; then
 
3067
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3068
$as_echo "$CC" >&6; }
 
3069
else
 
3070
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3071
$as_echo "no" >&6; }
 
3072
fi
 
3073
 
 
3074
 
 
3075
  fi
 
3076
fi
 
3077
if test -z "$CC"; then
 
3078
  # Extract the first word of "cc", so it can be a program name with args.
 
3079
set dummy cc; ac_word=$2
 
3080
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3081
$as_echo_n "checking for $ac_word... " >&6; }
 
3082
if test "${ac_cv_prog_CC+set}" = set; then :
 
3083
  $as_echo_n "(cached) " >&6
 
3084
else
 
3085
  if test -n "$CC"; then
 
3086
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3087
else
 
3088
  ac_prog_rejected=no
 
3089
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3090
for as_dir in $PATH
 
3091
do
 
3092
  IFS=$as_save_IFS
 
3093
  test -z "$as_dir" && as_dir=.
 
3094
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3095
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3096
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3097
       ac_prog_rejected=yes
 
3098
       continue
 
3099
     fi
 
3100
    ac_cv_prog_CC="cc"
 
3101
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3102
    break 2
 
3103
  fi
 
3104
done
 
3105
  done
 
3106
IFS=$as_save_IFS
 
3107
 
 
3108
if test $ac_prog_rejected = yes; then
 
3109
  # We found a bogon in the path, so make sure we never use it.
 
3110
  set dummy $ac_cv_prog_CC
 
3111
  shift
 
3112
  if test $# != 0; then
 
3113
    # We chose a different compiler from the bogus one.
 
3114
    # However, it has the same basename, so the bogon will be chosen
 
3115
    # first if we set CC to just the basename; use the full file name.
 
3116
    shift
 
3117
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3118
  fi
 
3119
fi
 
3120
fi
 
3121
fi
 
3122
CC=$ac_cv_prog_CC
 
3123
if test -n "$CC"; then
 
3124
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3125
$as_echo "$CC" >&6; }
 
3126
else
 
3127
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3128
$as_echo "no" >&6; }
 
3129
fi
 
3130
 
 
3131
 
 
3132
fi
 
3133
if test -z "$CC"; then
 
3134
  if test -n "$ac_tool_prefix"; then
 
3135
  for ac_prog in cl.exe
 
3136
  do
 
3137
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3138
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3139
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3140
$as_echo_n "checking for $ac_word... " >&6; }
 
3141
if test "${ac_cv_prog_CC+set}" = set; then :
 
3142
  $as_echo_n "(cached) " >&6
 
3143
else
 
3144
  if test -n "$CC"; then
 
3145
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3146
else
 
3147
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3148
for as_dir in $PATH
 
3149
do
 
3150
  IFS=$as_save_IFS
 
3151
  test -z "$as_dir" && as_dir=.
 
3152
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3153
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3154
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3155
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3156
    break 2
 
3157
  fi
 
3158
done
 
3159
  done
 
3160
IFS=$as_save_IFS
 
3161
 
 
3162
fi
 
3163
fi
 
3164
CC=$ac_cv_prog_CC
 
3165
if test -n "$CC"; then
 
3166
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3167
$as_echo "$CC" >&6; }
 
3168
else
 
3169
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3170
$as_echo "no" >&6; }
 
3171
fi
 
3172
 
 
3173
 
 
3174
    test -n "$CC" && break
 
3175
  done
 
3176
fi
 
3177
if test -z "$CC"; then
 
3178
  ac_ct_CC=$CC
 
3179
  for ac_prog in cl.exe
 
3180
do
 
3181
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3182
set dummy $ac_prog; ac_word=$2
 
3183
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3184
$as_echo_n "checking for $ac_word... " >&6; }
 
3185
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
3186
  $as_echo_n "(cached) " >&6
 
3187
else
 
3188
  if test -n "$ac_ct_CC"; then
 
3189
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3190
else
 
3191
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3192
for as_dir in $PATH
 
3193
do
 
3194
  IFS=$as_save_IFS
 
3195
  test -z "$as_dir" && as_dir=.
 
3196
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3197
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3198
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3199
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3200
    break 2
 
3201
  fi
 
3202
done
 
3203
  done
 
3204
IFS=$as_save_IFS
 
3205
 
 
3206
fi
 
3207
fi
 
3208
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3209
if test -n "$ac_ct_CC"; then
 
3210
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3211
$as_echo "$ac_ct_CC" >&6; }
 
3212
else
 
3213
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3214
$as_echo "no" >&6; }
 
3215
fi
 
3216
 
 
3217
 
 
3218
  test -n "$ac_ct_CC" && break
 
3219
done
 
3220
 
 
3221
  if test "x$ac_ct_CC" = x; then
 
3222
    CC=""
 
3223
  else
 
3224
    case $cross_compiling:$ac_tool_warned in
 
3225
yes:)
 
3226
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3227
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3228
ac_tool_warned=yes ;;
 
3229
esac
 
3230
    CC=$ac_ct_CC
 
3231
  fi
 
3232
fi
 
3233
 
 
3234
fi
 
3235
 
 
3236
 
 
3237
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3238
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3239
as_fn_error $? "no acceptable C compiler found in \$PATH
 
3240
See \`config.log' for more details" "$LINENO" 5 ; }
 
3241
 
 
3242
# Provide some information about the compiler.
 
3243
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3244
set X $ac_compile
 
3245
ac_compiler=$2
 
3246
for ac_option in --version -v -V -qversion; do
 
3247
  { { ac_try="$ac_compiler $ac_option >&5"
 
3248
case "(($ac_try" in
 
3249
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3250
  *) ac_try_echo=$ac_try;;
 
3251
esac
 
3252
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3253
$as_echo "$ac_try_echo"; } >&5
 
3254
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3255
  ac_status=$?
 
3256
  if test -s conftest.err; then
 
3257
    sed '10a\
 
3258
... rest of stderr output deleted ...
 
3259
         10q' conftest.err >conftest.er1
 
3260
    cat conftest.er1 >&5
 
3261
  fi
 
3262
  rm -f conftest.er1 conftest.err
 
3263
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3264
  test $ac_status = 0; }
 
3265
done
 
3266
 
 
3267
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3268
/* end confdefs.h.  */
 
3269
 
 
3270
int
 
3271
main ()
 
3272
{
 
3273
 
 
3274
  ;
 
3275
  return 0;
 
3276
}
 
3277
_ACEOF
 
3278
ac_clean_files_save=$ac_clean_files
 
3279
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3280
# Try to create an executable without -o first, disregard a.out.
 
3281
# It will help us diagnose broken compilers, and finding out an intuition
 
3282
# of exeext.
 
3283
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3284
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3285
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3286
 
 
3287
# The possible output files:
 
3288
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3289
 
 
3290
ac_rmfiles=
 
3291
for ac_file in $ac_files
 
3292
do
 
3293
  case $ac_file in
 
3294
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3295
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3296
  esac
 
3297
done
 
3298
rm -f $ac_rmfiles
 
3299
 
 
3300
if { { ac_try="$ac_link_default"
 
3301
case "(($ac_try" in
 
3302
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3303
  *) ac_try_echo=$ac_try;;
 
3304
esac
 
3305
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3306
$as_echo "$ac_try_echo"; } >&5
 
3307
  (eval "$ac_link_default") 2>&5
 
3308
  ac_status=$?
 
3309
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3310
  test $ac_status = 0; }; then :
 
3311
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3312
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3313
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3314
# so that the user can short-circuit this test for compilers unknown to
 
3315
# Autoconf.
 
3316
for ac_file in $ac_files ''
 
3317
do
 
3318
  test -f "$ac_file" || continue
 
3319
  case $ac_file in
 
3320
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3321
        ;;
 
3322
    [ab].out )
 
3323
        # We found the default executable, but exeext='' is most
 
3324
        # certainly right.
 
3325
        break;;
 
3326
    *.* )
 
3327
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3328
        then :; else
 
3329
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3330
        fi
 
3331
        # We set ac_cv_exeext here because the later test for it is not
 
3332
        # safe: cross compilers may not add the suffix if given an `-o'
 
3333
        # argument, so we may need to know it at that point already.
 
3334
        # Even if this section looks crufty: it has the advantage of
 
3335
        # actually working.
 
3336
        break;;
 
3337
    * )
 
3338
        break;;
 
3339
  esac
 
3340
done
 
3341
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3342
 
 
3343
else
 
3344
  ac_file=''
 
3345
fi
 
3346
if test -z "$ac_file"; then :
 
3347
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3348
$as_echo "no" >&6; }
 
3349
$as_echo "$as_me: failed program was:" >&5
 
3350
sed 's/^/| /' conftest.$ac_ext >&5
 
3351
 
 
3352
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3353
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3354
as_fn_error 77 "C compiler cannot create executables
 
3355
See \`config.log' for more details" "$LINENO" 5 ; }
 
3356
else
 
3357
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3358
$as_echo "yes" >&6; }
 
3359
fi
 
3360
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3361
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3362
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3363
$as_echo "$ac_file" >&6; }
 
3364
ac_exeext=$ac_cv_exeext
 
3365
 
 
3366
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3367
ac_clean_files=$ac_clean_files_save
 
3368
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3369
$as_echo_n "checking for suffix of executables... " >&6; }
 
3370
if { { ac_try="$ac_link"
 
3371
case "(($ac_try" in
 
3372
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3373
  *) ac_try_echo=$ac_try;;
 
3374
esac
 
3375
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3376
$as_echo "$ac_try_echo"; } >&5
 
3377
  (eval "$ac_link") 2>&5
 
3378
  ac_status=$?
 
3379
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3380
  test $ac_status = 0; }; then :
 
3381
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3382
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3383
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3384
# `rm'.
 
3385
for ac_file in conftest.exe conftest conftest.*; do
 
3386
  test -f "$ac_file" || continue
 
3387
  case $ac_file in
 
3388
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3389
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3390
          break;;
 
3391
    * ) break;;
 
3392
  esac
 
3393
done
 
3394
else
 
3395
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3396
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3397
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
3398
See \`config.log' for more details" "$LINENO" 5 ; }
 
3399
fi
 
3400
rm -f conftest conftest$ac_cv_exeext
 
3401
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3402
$as_echo "$ac_cv_exeext" >&6; }
 
3403
 
 
3404
rm -f conftest.$ac_ext
 
3405
EXEEXT=$ac_cv_exeext
 
3406
ac_exeext=$EXEEXT
 
3407
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3408
/* end confdefs.h.  */
 
3409
#include <stdio.h>
 
3410
int
 
3411
main ()
 
3412
{
 
3413
FILE *f = fopen ("conftest.out", "w");
 
3414
 return ferror (f) || fclose (f) != 0;
 
3415
 
 
3416
  ;
 
3417
  return 0;
 
3418
}
 
3419
_ACEOF
 
3420
ac_clean_files="$ac_clean_files conftest.out"
 
3421
# Check that the compiler produces executables we can run.  If not, either
 
3422
# the compiler is broken, or we cross compile.
 
3423
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3424
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3425
if test "$cross_compiling" != yes; then
 
3426
  { { ac_try="$ac_link"
 
3427
case "(($ac_try" in
 
3428
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3429
  *) ac_try_echo=$ac_try;;
 
3430
esac
 
3431
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3432
$as_echo "$ac_try_echo"; } >&5
 
3433
  (eval "$ac_link") 2>&5
 
3434
  ac_status=$?
 
3435
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3436
  test $ac_status = 0; }
 
3437
  if { ac_try='./conftest$ac_cv_exeext'
 
3438
  { { case "(($ac_try" in
 
3439
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3440
  *) ac_try_echo=$ac_try;;
 
3441
esac
 
3442
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3443
$as_echo "$ac_try_echo"; } >&5
 
3444
  (eval "$ac_try") 2>&5
 
3445
  ac_status=$?
 
3446
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3447
  test $ac_status = 0; }; }; then
 
3448
    cross_compiling=no
 
3449
  else
 
3450
    if test "$cross_compiling" = maybe; then
 
3451
        cross_compiling=yes
 
3452
    else
 
3453
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3454
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3455
as_fn_error $? "cannot run C compiled programs.
 
3456
If you meant to cross compile, use \`--host'.
 
3457
See \`config.log' for more details" "$LINENO" 5 ; }
 
3458
    fi
 
3459
  fi
 
3460
fi
 
3461
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3462
$as_echo "$cross_compiling" >&6; }
 
3463
 
 
3464
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3465
ac_clean_files=$ac_clean_files_save
 
3466
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3467
$as_echo_n "checking for suffix of object files... " >&6; }
 
3468
if test "${ac_cv_objext+set}" = set; then :
 
3469
  $as_echo_n "(cached) " >&6
 
3470
else
 
3471
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3472
/* end confdefs.h.  */
 
3473
 
 
3474
int
 
3475
main ()
 
3476
{
 
3477
 
 
3478
  ;
 
3479
  return 0;
 
3480
}
 
3481
_ACEOF
 
3482
rm -f conftest.o conftest.obj
 
3483
if { { ac_try="$ac_compile"
 
3484
case "(($ac_try" in
 
3485
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3486
  *) ac_try_echo=$ac_try;;
 
3487
esac
 
3488
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3489
$as_echo "$ac_try_echo"; } >&5
 
3490
  (eval "$ac_compile") 2>&5
 
3491
  ac_status=$?
 
3492
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3493
  test $ac_status = 0; }; then :
 
3494
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3495
  test -f "$ac_file" || continue;
 
3496
  case $ac_file in
 
3497
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3498
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3499
       break;;
 
3500
  esac
 
3501
done
 
3502
else
 
3503
  $as_echo "$as_me: failed program was:" >&5
 
3504
sed 's/^/| /' conftest.$ac_ext >&5
 
3505
 
 
3506
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3507
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3508
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
3509
See \`config.log' for more details" "$LINENO" 5 ; }
 
3510
fi
 
3511
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3512
fi
 
3513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3514
$as_echo "$ac_cv_objext" >&6; }
 
3515
OBJEXT=$ac_cv_objext
 
3516
ac_objext=$OBJEXT
 
3517
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
3518
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3519
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
3520
  $as_echo_n "(cached) " >&6
 
3521
else
 
3522
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3523
/* end confdefs.h.  */
 
3524
 
 
3525
int
 
3526
main ()
 
3527
{
 
3528
#ifndef __GNUC__
 
3529
       choke me
 
3530
#endif
 
3531
 
 
3532
  ;
 
3533
  return 0;
 
3534
}
 
3535
_ACEOF
 
3536
if ac_fn_c_try_compile "$LINENO"; then :
 
3537
  ac_compiler_gnu=yes
 
3538
else
 
3539
  ac_compiler_gnu=no
 
3540
fi
 
3541
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3542
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3543
 
 
3544
fi
 
3545
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
3546
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3547
if test $ac_compiler_gnu = yes; then
 
3548
  GCC=yes
 
3549
else
 
3550
  GCC=
 
3551
fi
 
3552
ac_test_CFLAGS=${CFLAGS+set}
 
3553
ac_save_CFLAGS=$CFLAGS
 
3554
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
3555
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3556
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
3557
  $as_echo_n "(cached) " >&6
 
3558
else
 
3559
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3560
   ac_c_werror_flag=yes
 
3561
   ac_cv_prog_cc_g=no
 
3562
   CFLAGS="-g"
 
3563
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3564
/* end confdefs.h.  */
 
3565
 
 
3566
int
 
3567
main ()
 
3568
{
 
3569
 
 
3570
  ;
 
3571
  return 0;
 
3572
}
 
3573
_ACEOF
 
3574
if ac_fn_c_try_compile "$LINENO"; then :
 
3575
  ac_cv_prog_cc_g=yes
 
3576
else
 
3577
  CFLAGS=""
 
3578
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3579
/* end confdefs.h.  */
 
3580
 
 
3581
int
 
3582
main ()
 
3583
{
 
3584
 
 
3585
  ;
 
3586
  return 0;
 
3587
}
 
3588
_ACEOF
 
3589
if ac_fn_c_try_compile "$LINENO"; then :
 
3590
 
 
3591
else
 
3592
  ac_c_werror_flag=$ac_save_c_werror_flag
 
3593
         CFLAGS="-g"
 
3594
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3595
/* end confdefs.h.  */
 
3596
 
 
3597
int
 
3598
main ()
 
3599
{
 
3600
 
 
3601
  ;
 
3602
  return 0;
 
3603
}
 
3604
_ACEOF
 
3605
if ac_fn_c_try_compile "$LINENO"; then :
 
3606
  ac_cv_prog_cc_g=yes
 
3607
fi
 
3608
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3609
fi
 
3610
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3611
fi
 
3612
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3613
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3614
fi
 
3615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
3616
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
3617
if test "$ac_test_CFLAGS" = set; then
 
3618
  CFLAGS=$ac_save_CFLAGS
 
3619
elif test $ac_cv_prog_cc_g = yes; then
 
3620
  if test "$GCC" = yes; then
 
3621
    CFLAGS="-g -O2"
 
3622
  else
 
3623
    CFLAGS="-g"
 
3624
  fi
 
3625
else
 
3626
  if test "$GCC" = yes; then
 
3627
    CFLAGS="-O2"
 
3628
  else
 
3629
    CFLAGS=
 
3630
  fi
 
3631
fi
 
3632
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
3633
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3634
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
3635
  $as_echo_n "(cached) " >&6
 
3636
else
 
3637
  ac_cv_prog_cc_c89=no
 
3638
ac_save_CC=$CC
 
3639
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3640
/* end confdefs.h.  */
 
3641
#include <stdarg.h>
 
3642
#include <stdio.h>
 
3643
#include <sys/types.h>
 
3644
#include <sys/stat.h>
 
3645
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3646
struct buf { int x; };
 
3647
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3648
static char *e (p, i)
 
3649
     char **p;
 
3650
     int i;
 
3651
{
 
3652
  return p[i];
 
3653
}
 
3654
static char *f (char * (*g) (char **, int), char **p, ...)
 
3655
{
 
3656
  char *s;
 
3657
  va_list v;
 
3658
  va_start (v,p);
 
3659
  s = g (p, va_arg (v,int));
 
3660
  va_end (v);
 
3661
  return s;
 
3662
}
 
3663
 
 
3664
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3665
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3666
   These don't provoke an error unfortunately, instead are silently treated
 
3667
   as 'x'.  The following induces an error, until -std is added to get
 
3668
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3669
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3670
   that's true only with -std.  */
 
3671
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3672
 
 
3673
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3674
   inside strings and character constants.  */
 
3675
#define FOO(x) 'x'
 
3676
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3677
 
 
3678
int test (int i, double x);
 
3679
struct s1 {int (*f) (int a);};
 
3680
struct s2 {int (*f) (double a);};
 
3681
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3682
int argc;
 
3683
char **argv;
 
3684
int
 
3685
main ()
 
3686
{
 
3687
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3688
  ;
 
3689
  return 0;
 
3690
}
 
3691
_ACEOF
 
3692
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3693
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3694
do
 
3695
  CC="$ac_save_CC $ac_arg"
 
3696
  if ac_fn_c_try_compile "$LINENO"; then :
 
3697
  ac_cv_prog_cc_c89=$ac_arg
 
3698
fi
 
3699
rm -f core conftest.err conftest.$ac_objext
 
3700
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3701
done
 
3702
rm -f conftest.$ac_ext
 
3703
CC=$ac_save_CC
 
3704
 
 
3705
fi
 
3706
# AC_CACHE_VAL
 
3707
case "x$ac_cv_prog_cc_c89" in
 
3708
  x)
 
3709
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3710
$as_echo "none needed" >&6; } ;;
 
3711
  xno)
 
3712
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3713
$as_echo "unsupported" >&6; } ;;
 
3714
  *)
 
3715
    CC="$CC $ac_cv_prog_cc_c89"
 
3716
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
3717
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
3718
esac
 
3719
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
3720
 
 
3721
fi
 
3722
 
 
3723
ac_ext=c
 
3724
ac_cpp='$CPP $CPPFLAGS'
 
3725
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3726
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3727
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3728
DEPDIR="${am__leading_dot}deps"
 
3729
 
 
3730
ac_config_commands="$ac_config_commands depfiles"
 
3731
 
 
3732
 
 
3733
am_make=${MAKE-make}
 
3734
cat > confinc << 'END'
 
3735
am__doit:
 
3736
        @echo this is the am__doit target
 
3737
.PHONY: am__doit
 
3738
END
 
3739
# If we don't find an include directive, just comment out the code.
 
3740
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
3741
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
3742
am__include="#"
 
3743
am__quote=
 
3744
_am_result=none
 
3745
# First try GNU make style include.
 
3746
echo "include confinc" > confmf
 
3747
# Ignore all kinds of additional output from `make'.
 
3748
case `$am_make -s -f confmf 2> /dev/null` in #(
 
3749
*the\ am__doit\ target*)
 
3750
  am__include=include
 
3751
  am__quote=
 
3752
  _am_result=GNU
 
3753
  ;;
 
3754
esac
 
3755
# Now try BSD make style include.
 
3756
if test "$am__include" = "#"; then
 
3757
   echo '.include "confinc"' > confmf
 
3758
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
3759
   *the\ am__doit\ target*)
 
3760
     am__include=.include
 
3761
     am__quote="\""
 
3762
     _am_result=BSD
 
3763
     ;;
 
3764
   esac
 
3765
fi
 
3766
 
 
3767
 
 
3768
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
3769
$as_echo "$_am_result" >&6; }
 
3770
rm -f confinc confmf
 
3771
 
 
3772
# Check whether --enable-dependency-tracking was given.
 
3773
if test "${enable_dependency_tracking+set}" = set; then :
 
3774
  enableval=$enable_dependency_tracking;
 
3775
fi
 
3776
 
 
3777
if test "x$enable_dependency_tracking" != xno; then
 
3778
  am_depcomp="$ac_aux_dir/depcomp"
 
3779
  AMDEPBACKSLASH='\'
 
3780
fi
 
3781
 if test "x$enable_dependency_tracking" != xno; then
 
3782
  AMDEP_TRUE=
 
3783
  AMDEP_FALSE='#'
 
3784
else
 
3785
  AMDEP_TRUE='#'
 
3786
  AMDEP_FALSE=
 
3787
fi
 
3788
 
 
3789
 
 
3790
 
 
3791
depcc="$CC"   am_compiler_list=
 
3792
 
 
3793
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
3794
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3795
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
 
3796
  $as_echo_n "(cached) " >&6
 
3797
else
 
3798
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3799
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3800
  # making bogus files that we don't know about and never remove.  For
 
3801
  # instance it was reported that on HP-UX the gcc test will end up
 
3802
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3803
  # in D'.
 
3804
  mkdir conftest.dir
 
3805
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3806
  # using a relative directory.
 
3807
  cp "$am_depcomp" conftest.dir
 
3808
  cd conftest.dir
 
3809
  # We will build objects and dependencies in a subdirectory because
 
3810
  # it helps to detect inapplicable dependency modes.  For instance
 
3811
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3812
  # side effect of compilation, but ICC will put the dependencies in
 
3813
  # the current directory while Tru64 will put them in the object
 
3814
  # directory.
 
3815
  mkdir sub
 
3816
 
 
3817
  am_cv_CC_dependencies_compiler_type=none
 
3818
  if test "$am_compiler_list" = ""; then
 
3819
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3820
  fi
 
3821
  am__universal=false
 
3822
  case " $depcc " in #(
 
3823
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3824
     esac
 
3825
 
 
3826
  for depmode in $am_compiler_list; do
 
3827
    # Setup a source with many dependencies, because some compilers
 
3828
    # like to wrap large dependency lists on column 80 (with \), and
 
3829
    # we should not choose a depcomp mode which is confused by this.
 
3830
    #
 
3831
    # We need to recreate these files for each test, as the compiler may
 
3832
    # overwrite some of them when testing with obscure command lines.
 
3833
    # This happens at least with the AIX C compiler.
 
3834
    : > sub/conftest.c
 
3835
    for i in 1 2 3 4 5 6; do
 
3836
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3837
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3838
      # Solaris 8's {/usr,}/bin/sh.
 
3839
      touch sub/conftst$i.h
 
3840
    done
 
3841
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3842
 
 
3843
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3844
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3845
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
3846
    # versions had trouble with output in subdirs
 
3847
    am__obj=sub/conftest.${OBJEXT-o}
 
3848
    am__minus_obj="-o $am__obj"
 
3849
    case $depmode in
 
3850
    gcc)
 
3851
      # This depmode causes a compiler race in universal mode.
 
3852
      test "$am__universal" = false || continue
 
3853
      ;;
 
3854
    nosideeffect)
 
3855
      # after this tag, mechanisms are not by side-effect, so they'll
 
3856
      # only be used when explicitly requested
 
3857
      if test "x$enable_dependency_tracking" = xyes; then
 
3858
        continue
 
3859
      else
 
3860
        break
 
3861
      fi
 
3862
      ;;
 
3863
    msvisualcpp | msvcmsys)
 
3864
      # This compiler won't grok `-c -o', but also, the minuso test has
 
3865
      # not run yet.  These depmodes are late enough in the game, and
 
3866
      # so weak that their functioning should not be impacted.
 
3867
      am__obj=conftest.${OBJEXT-o}
 
3868
      am__minus_obj=
 
3869
      ;;
 
3870
    none) break ;;
 
3871
    esac
 
3872
    if depmode=$depmode \
 
3873
       source=sub/conftest.c object=$am__obj \
 
3874
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3875
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
3876
         >/dev/null 2>conftest.err &&
 
3877
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3878
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3879
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
3880
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3881
      # icc doesn't choke on unknown options, it will just issue warnings
 
3882
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3883
      # that says an option was ignored or not supported.
 
3884
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3885
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3886
      # The diagnosis changed in icc 8.0:
 
3887
      #   icc: Command line remark: option '-MP' not supported
 
3888
      if (grep 'ignoring option' conftest.err ||
 
3889
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3890
        am_cv_CC_dependencies_compiler_type=$depmode
 
3891
        break
 
3892
      fi
 
3893
    fi
 
3894
  done
 
3895
 
 
3896
  cd ..
 
3897
  rm -rf conftest.dir
 
3898
else
 
3899
  am_cv_CC_dependencies_compiler_type=none
 
3900
fi
 
3901
 
 
3902
fi
 
3903
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3904
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
3905
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3906
 
 
3907
 if
 
3908
  test "x$enable_dependency_tracking" != xno \
 
3909
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3910
  am__fastdepCC_TRUE=
 
3911
  am__fastdepCC_FALSE='#'
 
3912
else
 
3913
  am__fastdepCC_TRUE='#'
 
3914
  am__fastdepCC_FALSE=
 
3915
fi
 
3916
 
 
3917
 
 
3918
ac_ext=c
 
3919
ac_cpp='$CPP $CPPFLAGS'
 
3920
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3921
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3922
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3923
if test -n "$ac_tool_prefix"; then
 
3924
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3925
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3926
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3927
$as_echo_n "checking for $ac_word... " >&6; }
 
3928
if test "${ac_cv_prog_CC+set}" = set; then :
 
3929
  $as_echo_n "(cached) " >&6
 
3930
else
 
3931
  if test -n "$CC"; then
 
3932
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3933
else
 
3934
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3935
for as_dir in $PATH
 
3936
do
 
3937
  IFS=$as_save_IFS
 
3938
  test -z "$as_dir" && as_dir=.
 
3939
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3940
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3941
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3942
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3943
    break 2
 
3944
  fi
 
3945
done
 
3946
  done
 
3947
IFS=$as_save_IFS
 
3948
 
 
3949
fi
 
3950
fi
 
3951
CC=$ac_cv_prog_CC
 
3952
if test -n "$CC"; then
 
3953
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3954
$as_echo "$CC" >&6; }
 
3955
else
 
3956
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3957
$as_echo "no" >&6; }
 
3958
fi
 
3959
 
 
3960
 
 
3961
fi
 
3962
if test -z "$ac_cv_prog_CC"; then
 
3963
  ac_ct_CC=$CC
 
3964
  # Extract the first word of "gcc", so it can be a program name with args.
 
3965
set dummy gcc; ac_word=$2
 
3966
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3967
$as_echo_n "checking for $ac_word... " >&6; }
 
3968
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
3969
  $as_echo_n "(cached) " >&6
 
3970
else
 
3971
  if test -n "$ac_ct_CC"; then
 
3972
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3973
else
 
3974
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3975
for as_dir in $PATH
 
3976
do
 
3977
  IFS=$as_save_IFS
 
3978
  test -z "$as_dir" && as_dir=.
 
3979
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3980
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3981
    ac_cv_prog_ac_ct_CC="gcc"
 
3982
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3983
    break 2
 
3984
  fi
 
3985
done
 
3986
  done
 
3987
IFS=$as_save_IFS
 
3988
 
 
3989
fi
 
3990
fi
 
3991
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3992
if test -n "$ac_ct_CC"; then
 
3993
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3994
$as_echo "$ac_ct_CC" >&6; }
 
3995
else
 
3996
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3997
$as_echo "no" >&6; }
 
3998
fi
 
3999
 
 
4000
  if test "x$ac_ct_CC" = x; then
 
4001
    CC=""
 
4002
  else
 
4003
    case $cross_compiling:$ac_tool_warned in
 
4004
yes:)
 
4005
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4006
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4007
ac_tool_warned=yes ;;
 
4008
esac
 
4009
    CC=$ac_ct_CC
 
4010
  fi
 
4011
else
 
4012
  CC="$ac_cv_prog_CC"
 
4013
fi
 
4014
 
 
4015
if test -z "$CC"; then
 
4016
          if test -n "$ac_tool_prefix"; then
 
4017
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
4018
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
4019
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4020
$as_echo_n "checking for $ac_word... " >&6; }
 
4021
if test "${ac_cv_prog_CC+set}" = set; then :
 
4022
  $as_echo_n "(cached) " >&6
 
4023
else
 
4024
  if test -n "$CC"; then
 
4025
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4026
else
 
4027
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4028
for as_dir in $PATH
 
4029
do
 
4030
  IFS=$as_save_IFS
 
4031
  test -z "$as_dir" && as_dir=.
 
4032
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4033
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4034
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
4035
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4036
    break 2
 
4037
  fi
 
4038
done
 
4039
  done
 
4040
IFS=$as_save_IFS
 
4041
 
 
4042
fi
 
4043
fi
 
4044
CC=$ac_cv_prog_CC
 
4045
if test -n "$CC"; then
 
4046
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4047
$as_echo "$CC" >&6; }
 
4048
else
 
4049
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4050
$as_echo "no" >&6; }
 
4051
fi
 
4052
 
 
4053
 
 
4054
  fi
 
4055
fi
 
4056
if test -z "$CC"; then
 
4057
  # Extract the first word of "cc", so it can be a program name with args.
 
4058
set dummy cc; ac_word=$2
 
4059
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4060
$as_echo_n "checking for $ac_word... " >&6; }
 
4061
if test "${ac_cv_prog_CC+set}" = set; then :
 
4062
  $as_echo_n "(cached) " >&6
 
4063
else
 
4064
  if test -n "$CC"; then
 
4065
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4066
else
 
4067
  ac_prog_rejected=no
 
4068
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4069
for as_dir in $PATH
 
4070
do
 
4071
  IFS=$as_save_IFS
 
4072
  test -z "$as_dir" && as_dir=.
 
4073
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4074
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4075
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
4076
       ac_prog_rejected=yes
 
4077
       continue
 
4078
     fi
 
4079
    ac_cv_prog_CC="cc"
 
4080
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4081
    break 2
 
4082
  fi
 
4083
done
 
4084
  done
 
4085
IFS=$as_save_IFS
 
4086
 
 
4087
if test $ac_prog_rejected = yes; then
 
4088
  # We found a bogon in the path, so make sure we never use it.
 
4089
  set dummy $ac_cv_prog_CC
 
4090
  shift
 
4091
  if test $# != 0; then
 
4092
    # We chose a different compiler from the bogus one.
 
4093
    # However, it has the same basename, so the bogon will be chosen
 
4094
    # first if we set CC to just the basename; use the full file name.
 
4095
    shift
 
4096
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
4097
  fi
 
4098
fi
 
4099
fi
 
4100
fi
 
4101
CC=$ac_cv_prog_CC
 
4102
if test -n "$CC"; then
 
4103
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4104
$as_echo "$CC" >&6; }
 
4105
else
 
4106
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4107
$as_echo "no" >&6; }
 
4108
fi
 
4109
 
 
4110
 
 
4111
fi
 
4112
if test -z "$CC"; then
 
4113
  if test -n "$ac_tool_prefix"; then
 
4114
  for ac_prog in cl.exe
 
4115
  do
 
4116
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4117
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4118
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4119
$as_echo_n "checking for $ac_word... " >&6; }
 
4120
if test "${ac_cv_prog_CC+set}" = set; then :
 
4121
  $as_echo_n "(cached) " >&6
 
4122
else
 
4123
  if test -n "$CC"; then
 
4124
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4125
else
 
4126
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4127
for as_dir in $PATH
 
4128
do
 
4129
  IFS=$as_save_IFS
 
4130
  test -z "$as_dir" && as_dir=.
 
4131
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4132
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4133
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
4134
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4135
    break 2
 
4136
  fi
 
4137
done
 
4138
  done
 
4139
IFS=$as_save_IFS
 
4140
 
 
4141
fi
 
4142
fi
 
4143
CC=$ac_cv_prog_CC
 
4144
if test -n "$CC"; then
 
4145
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4146
$as_echo "$CC" >&6; }
 
4147
else
 
4148
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4149
$as_echo "no" >&6; }
 
4150
fi
 
4151
 
 
4152
 
 
4153
    test -n "$CC" && break
 
4154
  done
 
4155
fi
 
4156
if test -z "$CC"; then
 
4157
  ac_ct_CC=$CC
 
4158
  for ac_prog in cl.exe
 
4159
do
 
4160
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4161
set dummy $ac_prog; ac_word=$2
 
4162
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4163
$as_echo_n "checking for $ac_word... " >&6; }
 
4164
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
4165
  $as_echo_n "(cached) " >&6
 
4166
else
 
4167
  if test -n "$ac_ct_CC"; then
 
4168
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
4169
else
 
4170
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4171
for as_dir in $PATH
 
4172
do
 
4173
  IFS=$as_save_IFS
 
4174
  test -z "$as_dir" && as_dir=.
 
4175
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4176
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4177
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
4178
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4179
    break 2
 
4180
  fi
 
4181
done
 
4182
  done
 
4183
IFS=$as_save_IFS
 
4184
 
 
4185
fi
 
4186
fi
 
4187
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
4188
if test -n "$ac_ct_CC"; then
 
4189
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
4190
$as_echo "$ac_ct_CC" >&6; }
 
4191
else
 
4192
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4193
$as_echo "no" >&6; }
 
4194
fi
 
4195
 
 
4196
 
 
4197
  test -n "$ac_ct_CC" && break
 
4198
done
 
4199
 
 
4200
  if test "x$ac_ct_CC" = x; then
 
4201
    CC=""
 
4202
  else
 
4203
    case $cross_compiling:$ac_tool_warned in
 
4204
yes:)
 
4205
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4206
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4207
ac_tool_warned=yes ;;
 
4208
esac
 
4209
    CC=$ac_ct_CC
 
4210
  fi
 
4211
fi
 
4212
 
 
4213
fi
 
4214
 
 
4215
 
 
4216
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4217
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4218
as_fn_error $? "no acceptable C compiler found in \$PATH
 
4219
See \`config.log' for more details" "$LINENO" 5 ; }
 
4220
 
 
4221
# Provide some information about the compiler.
 
4222
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
4223
set X $ac_compile
 
4224
ac_compiler=$2
 
4225
for ac_option in --version -v -V -qversion; do
 
4226
  { { ac_try="$ac_compiler $ac_option >&5"
 
4227
case "(($ac_try" in
 
4228
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4229
  *) ac_try_echo=$ac_try;;
 
4230
esac
 
4231
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4232
$as_echo "$ac_try_echo"; } >&5
 
4233
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
4234
  ac_status=$?
 
4235
  if test -s conftest.err; then
 
4236
    sed '10a\
 
4237
... rest of stderr output deleted ...
 
4238
         10q' conftest.err >conftest.er1
 
4239
    cat conftest.er1 >&5
 
4240
  fi
 
4241
  rm -f conftest.er1 conftest.err
 
4242
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4243
  test $ac_status = 0; }
 
4244
done
 
4245
 
 
4246
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
4247
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
4248
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
4249
  $as_echo_n "(cached) " >&6
 
4250
else
 
4251
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4252
/* end confdefs.h.  */
 
4253
 
 
4254
int
 
4255
main ()
 
4256
{
 
4257
#ifndef __GNUC__
 
4258
       choke me
 
4259
#endif
 
4260
 
 
4261
  ;
 
4262
  return 0;
 
4263
}
 
4264
_ACEOF
 
4265
if ac_fn_c_try_compile "$LINENO"; then :
 
4266
  ac_compiler_gnu=yes
 
4267
else
 
4268
  ac_compiler_gnu=no
 
4269
fi
 
4270
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4271
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
4272
 
 
4273
fi
 
4274
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
4275
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
4276
if test $ac_compiler_gnu = yes; then
 
4277
  GCC=yes
 
4278
else
 
4279
  GCC=
 
4280
fi
 
4281
ac_test_CFLAGS=${CFLAGS+set}
 
4282
ac_save_CFLAGS=$CFLAGS
 
4283
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
4284
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
4285
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
4286
  $as_echo_n "(cached) " >&6
 
4287
else
 
4288
  ac_save_c_werror_flag=$ac_c_werror_flag
 
4289
   ac_c_werror_flag=yes
 
4290
   ac_cv_prog_cc_g=no
 
4291
   CFLAGS="-g"
 
4292
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4293
/* end confdefs.h.  */
 
4294
 
 
4295
int
 
4296
main ()
 
4297
{
 
4298
 
 
4299
  ;
 
4300
  return 0;
 
4301
}
 
4302
_ACEOF
 
4303
if ac_fn_c_try_compile "$LINENO"; then :
 
4304
  ac_cv_prog_cc_g=yes
 
4305
else
 
4306
  CFLAGS=""
 
4307
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4308
/* end confdefs.h.  */
 
4309
 
 
4310
int
 
4311
main ()
 
4312
{
 
4313
 
 
4314
  ;
 
4315
  return 0;
 
4316
}
 
4317
_ACEOF
 
4318
if ac_fn_c_try_compile "$LINENO"; then :
 
4319
 
 
4320
else
 
4321
  ac_c_werror_flag=$ac_save_c_werror_flag
 
4322
         CFLAGS="-g"
 
4323
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4324
/* end confdefs.h.  */
 
4325
 
 
4326
int
 
4327
main ()
 
4328
{
 
4329
 
 
4330
  ;
 
4331
  return 0;
 
4332
}
 
4333
_ACEOF
 
4334
if ac_fn_c_try_compile "$LINENO"; then :
 
4335
  ac_cv_prog_cc_g=yes
 
4336
fi
 
4337
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4338
fi
 
4339
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4340
fi
 
4341
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4342
   ac_c_werror_flag=$ac_save_c_werror_flag
 
4343
fi
 
4344
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
4345
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
4346
if test "$ac_test_CFLAGS" = set; then
 
4347
  CFLAGS=$ac_save_CFLAGS
 
4348
elif test $ac_cv_prog_cc_g = yes; then
 
4349
  if test "$GCC" = yes; then
 
4350
    CFLAGS="-g -O2"
 
4351
  else
 
4352
    CFLAGS="-g"
 
4353
  fi
 
4354
else
 
4355
  if test "$GCC" = yes; then
 
4356
    CFLAGS="-O2"
 
4357
  else
 
4358
    CFLAGS=
 
4359
  fi
 
4360
fi
 
4361
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
4362
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
4363
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
4364
  $as_echo_n "(cached) " >&6
 
4365
else
 
4366
  ac_cv_prog_cc_c89=no
 
4367
ac_save_CC=$CC
 
4368
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4369
/* end confdefs.h.  */
 
4370
#include <stdarg.h>
 
4371
#include <stdio.h>
 
4372
#include <sys/types.h>
 
4373
#include <sys/stat.h>
 
4374
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
4375
struct buf { int x; };
 
4376
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
4377
static char *e (p, i)
 
4378
     char **p;
 
4379
     int i;
 
4380
{
 
4381
  return p[i];
 
4382
}
 
4383
static char *f (char * (*g) (char **, int), char **p, ...)
 
4384
{
 
4385
  char *s;
 
4386
  va_list v;
 
4387
  va_start (v,p);
 
4388
  s = g (p, va_arg (v,int));
 
4389
  va_end (v);
 
4390
  return s;
 
4391
}
 
4392
 
 
4393
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
4394
   function prototypes and stuff, but not '\xHH' hex character constants.
 
4395
   These don't provoke an error unfortunately, instead are silently treated
 
4396
   as 'x'.  The following induces an error, until -std is added to get
 
4397
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
4398
   array size at least.  It's necessary to write '\x00'==0 to get something
 
4399
   that's true only with -std.  */
 
4400
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
4401
 
 
4402
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
4403
   inside strings and character constants.  */
 
4404
#define FOO(x) 'x'
 
4405
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
4406
 
 
4407
int test (int i, double x);
 
4408
struct s1 {int (*f) (int a);};
 
4409
struct s2 {int (*f) (double a);};
 
4410
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
4411
int argc;
 
4412
char **argv;
 
4413
int
 
4414
main ()
 
4415
{
 
4416
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
4417
  ;
 
4418
  return 0;
 
4419
}
 
4420
_ACEOF
 
4421
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
4422
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
4423
do
 
4424
  CC="$ac_save_CC $ac_arg"
 
4425
  if ac_fn_c_try_compile "$LINENO"; then :
 
4426
  ac_cv_prog_cc_c89=$ac_arg
 
4427
fi
 
4428
rm -f core conftest.err conftest.$ac_objext
 
4429
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
4430
done
 
4431
rm -f conftest.$ac_ext
 
4432
CC=$ac_save_CC
 
4433
 
 
4434
fi
 
4435
# AC_CACHE_VAL
 
4436
case "x$ac_cv_prog_cc_c89" in
 
4437
  x)
 
4438
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
4439
$as_echo "none needed" >&6; } ;;
 
4440
  xno)
 
4441
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
4442
$as_echo "unsupported" >&6; } ;;
 
4443
  *)
 
4444
    CC="$CC $ac_cv_prog_cc_c89"
 
4445
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
4446
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
4447
esac
 
4448
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
4449
 
 
4450
fi
 
4451
 
 
4452
ac_ext=c
 
4453
ac_cpp='$CPP $CPPFLAGS'
 
4454
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4455
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4456
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4457
 
 
4458
depcc="$CC"   am_compiler_list=
 
4459
 
 
4460
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
4461
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
4462
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
 
4463
  $as_echo_n "(cached) " >&6
 
4464
else
 
4465
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4466
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4467
  # making bogus files that we don't know about and never remove.  For
 
4468
  # instance it was reported that on HP-UX the gcc test will end up
 
4469
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4470
  # in D'.
 
4471
  mkdir conftest.dir
 
4472
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4473
  # using a relative directory.
 
4474
  cp "$am_depcomp" conftest.dir
 
4475
  cd conftest.dir
 
4476
  # We will build objects and dependencies in a subdirectory because
 
4477
  # it helps to detect inapplicable dependency modes.  For instance
 
4478
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4479
  # side effect of compilation, but ICC will put the dependencies in
 
4480
  # the current directory while Tru64 will put them in the object
 
4481
  # directory.
 
4482
  mkdir sub
 
4483
 
 
4484
  am_cv_CC_dependencies_compiler_type=none
 
4485
  if test "$am_compiler_list" = ""; then
 
4486
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4487
  fi
 
4488
  am__universal=false
 
4489
  case " $depcc " in #(
 
4490
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
4491
     esac
 
4492
 
 
4493
  for depmode in $am_compiler_list; do
 
4494
    # Setup a source with many dependencies, because some compilers
 
4495
    # like to wrap large dependency lists on column 80 (with \), and
 
4496
    # we should not choose a depcomp mode which is confused by this.
 
4497
    #
 
4498
    # We need to recreate these files for each test, as the compiler may
 
4499
    # overwrite some of them when testing with obscure command lines.
 
4500
    # This happens at least with the AIX C compiler.
 
4501
    : > sub/conftest.c
 
4502
    for i in 1 2 3 4 5 6; do
 
4503
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4504
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4505
      # Solaris 8's {/usr,}/bin/sh.
 
4506
      touch sub/conftst$i.h
 
4507
    done
 
4508
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4509
 
 
4510
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4511
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4512
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
4513
    # versions had trouble with output in subdirs
 
4514
    am__obj=sub/conftest.${OBJEXT-o}
 
4515
    am__minus_obj="-o $am__obj"
 
4516
    case $depmode in
 
4517
    gcc)
 
4518
      # This depmode causes a compiler race in universal mode.
 
4519
      test "$am__universal" = false || continue
 
4520
      ;;
 
4521
    nosideeffect)
 
4522
      # after this tag, mechanisms are not by side-effect, so they'll
 
4523
      # only be used when explicitly requested
 
4524
      if test "x$enable_dependency_tracking" = xyes; then
 
4525
        continue
 
4526
      else
 
4527
        break
 
4528
      fi
 
4529
      ;;
 
4530
    msvisualcpp | msvcmsys)
 
4531
      # This compiler won't grok `-c -o', but also, the minuso test has
 
4532
      # not run yet.  These depmodes are late enough in the game, and
 
4533
      # so weak that their functioning should not be impacted.
 
4534
      am__obj=conftest.${OBJEXT-o}
 
4535
      am__minus_obj=
 
4536
      ;;
 
4537
    none) break ;;
 
4538
    esac
 
4539
    if depmode=$depmode \
 
4540
       source=sub/conftest.c object=$am__obj \
 
4541
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4542
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
4543
         >/dev/null 2>conftest.err &&
 
4544
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
4545
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4546
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
4547
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4548
      # icc doesn't choke on unknown options, it will just issue warnings
 
4549
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4550
      # that says an option was ignored or not supported.
 
4551
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4552
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4553
      # The diagnosis changed in icc 8.0:
 
4554
      #   icc: Command line remark: option '-MP' not supported
 
4555
      if (grep 'ignoring option' conftest.err ||
 
4556
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4557
        am_cv_CC_dependencies_compiler_type=$depmode
 
4558
        break
 
4559
      fi
 
4560
    fi
 
4561
  done
 
4562
 
 
4563
  cd ..
 
4564
  rm -rf conftest.dir
 
4565
else
 
4566
  am_cv_CC_dependencies_compiler_type=none
 
4567
fi
 
4568
 
 
4569
fi
 
4570
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4571
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
4572
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4573
 
 
4574
 if
 
4575
  test "x$enable_dependency_tracking" != xno \
 
4576
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4577
  am__fastdepCC_TRUE=
 
4578
  am__fastdepCC_FALSE='#'
 
4579
else
 
4580
  am__fastdepCC_TRUE='#'
 
4581
  am__fastdepCC_FALSE=
 
4582
fi
 
4583
 
 
4584
 
 
4585
 
 
4586
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
 
4587
 
 
4588
 
 
4589
ac_ext=c
 
4590
ac_cpp='$CPP $CPPFLAGS'
 
4591
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4592
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4593
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4594
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
4595
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
4596
# On Suns, sometimes $CPP names a directory.
 
4597
if test -n "$CPP" && test -d "$CPP"; then
 
4598
  CPP=
 
4599
fi
 
4600
if test -z "$CPP"; then
 
4601
  if test "${ac_cv_prog_CPP+set}" = set; then :
 
4602
  $as_echo_n "(cached) " >&6
 
4603
else
 
4604
      # Double quotes because CPP needs to be expanded
 
4605
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4606
    do
 
4607
      ac_preproc_ok=false
 
4608
for ac_c_preproc_warn_flag in '' yes
 
4609
do
 
4610
  # Use a header file that comes with gcc, so configuring glibc
 
4611
  # with a fresh cross-compiler works.
 
4612
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4613
  # <limits.h> exists even on freestanding compilers.
 
4614
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4615
  # not just through cpp. "Syntax error" is here to catch this case.
 
4616
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4617
/* end confdefs.h.  */
 
4618
#ifdef __STDC__
 
4619
# include <limits.h>
 
4620
#else
 
4621
# include <assert.h>
 
4622
#endif
 
4623
                     Syntax error
 
4624
_ACEOF
 
4625
if ac_fn_c_try_cpp "$LINENO"; then :
 
4626
 
 
4627
else
 
4628
  # Broken: fails on valid input.
 
4629
continue
 
4630
fi
 
4631
rm -f conftest.err conftest.i conftest.$ac_ext
 
4632
 
 
4633
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4634
  # can be detected and how.
 
4635
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4636
/* end confdefs.h.  */
 
4637
#include <ac_nonexistent.h>
 
4638
_ACEOF
 
4639
if ac_fn_c_try_cpp "$LINENO"; then :
 
4640
  # Broken: success on invalid input.
 
4641
continue
 
4642
else
 
4643
  # Passes both tests.
 
4644
ac_preproc_ok=:
 
4645
break
 
4646
fi
 
4647
rm -f conftest.err conftest.i conftest.$ac_ext
 
4648
 
 
4649
done
 
4650
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4651
rm -f conftest.i conftest.err conftest.$ac_ext
 
4652
if $ac_preproc_ok; then :
 
4653
  break
 
4654
fi
 
4655
 
 
4656
    done
 
4657
    ac_cv_prog_CPP=$CPP
 
4658
 
 
4659
fi
 
4660
  CPP=$ac_cv_prog_CPP
 
4661
else
 
4662
  ac_cv_prog_CPP=$CPP
 
4663
fi
 
4664
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
4665
$as_echo "$CPP" >&6; }
 
4666
ac_preproc_ok=false
 
4667
for ac_c_preproc_warn_flag in '' yes
 
4668
do
 
4669
  # Use a header file that comes with gcc, so configuring glibc
 
4670
  # with a fresh cross-compiler works.
 
4671
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4672
  # <limits.h> exists even on freestanding compilers.
 
4673
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4674
  # not just through cpp. "Syntax error" is here to catch this case.
 
4675
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4676
/* end confdefs.h.  */
 
4677
#ifdef __STDC__
 
4678
# include <limits.h>
 
4679
#else
 
4680
# include <assert.h>
 
4681
#endif
 
4682
                     Syntax error
 
4683
_ACEOF
 
4684
if ac_fn_c_try_cpp "$LINENO"; then :
 
4685
 
 
4686
else
 
4687
  # Broken: fails on valid input.
 
4688
continue
 
4689
fi
 
4690
rm -f conftest.err conftest.i conftest.$ac_ext
 
4691
 
 
4692
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4693
  # can be detected and how.
 
4694
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4695
/* end confdefs.h.  */
 
4696
#include <ac_nonexistent.h>
 
4697
_ACEOF
 
4698
if ac_fn_c_try_cpp "$LINENO"; then :
 
4699
  # Broken: success on invalid input.
 
4700
continue
 
4701
else
 
4702
  # Passes both tests.
 
4703
ac_preproc_ok=:
 
4704
break
 
4705
fi
 
4706
rm -f conftest.err conftest.i conftest.$ac_ext
 
4707
 
 
4708
done
 
4709
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4710
rm -f conftest.i conftest.err conftest.$ac_ext
 
4711
if $ac_preproc_ok; then :
 
4712
 
 
4713
else
 
4714
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4715
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4716
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
4717
See \`config.log' for more details" "$LINENO" 5 ; }
 
4718
fi
 
4719
 
 
4720
ac_ext=c
 
4721
ac_cpp='$CPP $CPPFLAGS'
 
4722
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4723
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4724
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4725
 
 
4726
 
 
4727
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
4728
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4729
if test "${ac_cv_path_GREP+set}" = set; then :
 
4730
  $as_echo_n "(cached) " >&6
 
4731
else
 
4732
  if test -z "$GREP"; then
 
4733
  ac_path_GREP_found=false
 
4734
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4735
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4736
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4737
do
 
4738
  IFS=$as_save_IFS
 
4739
  test -z "$as_dir" && as_dir=.
 
4740
    for ac_prog in grep ggrep; do
 
4741
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4742
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4743
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4744
# Check for GNU ac_path_GREP and select it if it is found.
 
4745
  # Check for GNU $ac_path_GREP
 
4746
case `"$ac_path_GREP" --version 2>&1` in
 
4747
*GNU*)
 
4748
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4749
*)
 
4750
  ac_count=0
 
4751
  $as_echo_n 0123456789 >"conftest.in"
 
4752
  while :
 
4753
  do
 
4754
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4755
    mv "conftest.tmp" "conftest.in"
 
4756
    cp "conftest.in" "conftest.nl"
 
4757
    $as_echo 'GREP' >> "conftest.nl"
 
4758
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4759
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4760
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4761
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4762
      # Best one so far, save it but keep looking for a better one
 
4763
      ac_cv_path_GREP="$ac_path_GREP"
 
4764
      ac_path_GREP_max=$ac_count
 
4765
    fi
 
4766
    # 10*(2^10) chars as input seems more than enough
 
4767
    test $ac_count -gt 10 && break
 
4768
  done
 
4769
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4770
esac
 
4771
 
 
4772
      $ac_path_GREP_found && break 3
 
4773
    done
 
4774
  done
 
4775
  done
 
4776
IFS=$as_save_IFS
 
4777
  if test -z "$ac_cv_path_GREP"; then
 
4778
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4779
  fi
 
4780
else
 
4781
  ac_cv_path_GREP=$GREP
 
4782
fi
 
4783
 
 
4784
fi
 
4785
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
4786
$as_echo "$ac_cv_path_GREP" >&6; }
 
4787
 GREP="$ac_cv_path_GREP"
 
4788
 
 
4789
 
 
4790
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
4791
$as_echo_n "checking for egrep... " >&6; }
 
4792
if test "${ac_cv_path_EGREP+set}" = set; then :
 
4793
  $as_echo_n "(cached) " >&6
 
4794
else
 
4795
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4796
   then ac_cv_path_EGREP="$GREP -E"
 
4797
   else
 
4798
     if test -z "$EGREP"; then
 
4799
  ac_path_EGREP_found=false
 
4800
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4801
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4802
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4803
do
 
4804
  IFS=$as_save_IFS
 
4805
  test -z "$as_dir" && as_dir=.
 
4806
    for ac_prog in egrep; do
 
4807
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4808
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4809
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4810
# Check for GNU ac_path_EGREP and select it if it is found.
 
4811
  # Check for GNU $ac_path_EGREP
 
4812
case `"$ac_path_EGREP" --version 2>&1` in
 
4813
*GNU*)
 
4814
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4815
*)
 
4816
  ac_count=0
 
4817
  $as_echo_n 0123456789 >"conftest.in"
 
4818
  while :
 
4819
  do
 
4820
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4821
    mv "conftest.tmp" "conftest.in"
 
4822
    cp "conftest.in" "conftest.nl"
 
4823
    $as_echo 'EGREP' >> "conftest.nl"
 
4824
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4825
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4826
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4827
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4828
      # Best one so far, save it but keep looking for a better one
 
4829
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4830
      ac_path_EGREP_max=$ac_count
 
4831
    fi
 
4832
    # 10*(2^10) chars as input seems more than enough
 
4833
    test $ac_count -gt 10 && break
 
4834
  done
 
4835
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4836
esac
 
4837
 
 
4838
      $ac_path_EGREP_found && break 3
 
4839
    done
 
4840
  done
 
4841
  done
 
4842
IFS=$as_save_IFS
 
4843
  if test -z "$ac_cv_path_EGREP"; then
 
4844
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4845
  fi
 
4846
else
 
4847
  ac_cv_path_EGREP=$EGREP
 
4848
fi
 
4849
 
 
4850
   fi
 
4851
fi
 
4852
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
4853
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4854
 EGREP="$ac_cv_path_EGREP"
 
4855
 
 
4856
 
 
4857
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
4858
$as_echo_n "checking for ANSI C header files... " >&6; }
 
4859
if test "${ac_cv_header_stdc+set}" = set; then :
 
4860
  $as_echo_n "(cached) " >&6
 
4861
else
 
4862
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4863
/* end confdefs.h.  */
 
4864
#include <stdlib.h>
 
4865
#include <stdarg.h>
 
4866
#include <string.h>
 
4867
#include <float.h>
 
4868
 
 
4869
int
 
4870
main ()
 
4871
{
 
4872
 
 
4873
  ;
 
4874
  return 0;
 
4875
}
 
4876
_ACEOF
 
4877
if ac_fn_c_try_compile "$LINENO"; then :
 
4878
  ac_cv_header_stdc=yes
 
4879
else
 
4880
  ac_cv_header_stdc=no
 
4881
fi
 
4882
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4883
 
 
4884
if test $ac_cv_header_stdc = yes; then
 
4885
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4886
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4887
/* end confdefs.h.  */
 
4888
#include <string.h>
 
4889
 
 
4890
_ACEOF
 
4891
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4892
  $EGREP "memchr" >/dev/null 2>&1; then :
 
4893
 
 
4894
else
 
4895
  ac_cv_header_stdc=no
 
4896
fi
 
4897
rm -f conftest*
 
4898
 
 
4899
fi
 
4900
 
 
4901
if test $ac_cv_header_stdc = yes; then
 
4902
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4903
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4904
/* end confdefs.h.  */
 
4905
#include <stdlib.h>
 
4906
 
 
4907
_ACEOF
 
4908
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4909
  $EGREP "free" >/dev/null 2>&1; then :
 
4910
 
 
4911
else
 
4912
  ac_cv_header_stdc=no
 
4913
fi
 
4914
rm -f conftest*
 
4915
 
 
4916
fi
 
4917
 
 
4918
if test $ac_cv_header_stdc = yes; then
 
4919
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4920
  if test "$cross_compiling" = yes; then :
 
4921
  :
 
4922
else
 
4923
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4924
/* end confdefs.h.  */
 
4925
#include <ctype.h>
 
4926
#include <stdlib.h>
 
4927
#if ((' ' & 0x0FF) == 0x020)
 
4928
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4929
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4930
#else
 
4931
# define ISLOWER(c) \
 
4932
                   (('a' <= (c) && (c) <= 'i') \
 
4933
                     || ('j' <= (c) && (c) <= 'r') \
 
4934
                     || ('s' <= (c) && (c) <= 'z'))
 
4935
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4936
#endif
 
4937
 
 
4938
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4939
int
 
4940
main ()
 
4941
{
 
4942
  int i;
 
4943
  for (i = 0; i < 256; i++)
 
4944
    if (XOR (islower (i), ISLOWER (i))
 
4945
        || toupper (i) != TOUPPER (i))
 
4946
      return 2;
 
4947
  return 0;
 
4948
}
 
4949
_ACEOF
 
4950
if ac_fn_c_try_run "$LINENO"; then :
 
4951
 
 
4952
else
 
4953
  ac_cv_header_stdc=no
 
4954
fi
 
4955
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
4956
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
4957
fi
 
4958
 
 
4959
fi
 
4960
fi
 
4961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
4962
$as_echo "$ac_cv_header_stdc" >&6; }
 
4963
if test $ac_cv_header_stdc = yes; then
 
4964
 
 
4965
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
4966
 
 
4967
fi
 
4968
 
 
4969
# Extract the first word of "valac", so it can be a program name with args.
 
4970
set dummy valac; ac_word=$2
 
4971
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4972
$as_echo_n "checking for $ac_word... " >&6; }
 
4973
if test "${ac_cv_path_VALAC+set}" = set; then :
 
4974
  $as_echo_n "(cached) " >&6
 
4975
else
 
4976
  case $VALAC in
 
4977
  [\\/]* | ?:[\\/]*)
 
4978
  ac_cv_path_VALAC="$VALAC" # Let the user override the test with a path.
 
4979
  ;;
 
4980
  *)
 
4981
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4982
for as_dir in $PATH
 
4983
do
 
4984
  IFS=$as_save_IFS
 
4985
  test -z "$as_dir" && as_dir=.
 
4986
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4987
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4988
    ac_cv_path_VALAC="$as_dir/$ac_word$ac_exec_ext"
 
4989
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4990
    break 2
 
4991
  fi
 
4992
done
 
4993
  done
 
4994
IFS=$as_save_IFS
 
4995
 
 
4996
  ;;
 
4997
esac
 
4998
fi
 
4999
VALAC=$ac_cv_path_VALAC
 
5000
if test -n "$VALAC"; then
 
5001
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALAC" >&5
 
5002
$as_echo "$VALAC" >&6; }
 
5003
else
 
5004
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5005
$as_echo "no" >&6; }
 
5006
fi
 
5007
 
 
5008
 
 
5009
 if test -z "$VALAC"; then :
 
5010
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Vala compiler found.  You will not be able to compile .vala source files." >&5
 
5011
$as_echo "$as_me: WARNING: No Vala compiler found.  You will not be able to compile .vala source files." >&2;}
 
5012
else
 
5013
  if test -n "0.11.6"; then :
 
5014
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking $VALAC is at least version 0.11.6" >&5
 
5015
$as_echo_n "checking $VALAC is at least version 0.11.6... " >&6; }
 
5016
       am__vala_version=`$VALAC --version | sed 's/Vala  *//'`
 
5017
       as_arg_v1=0.11.6
 
5018
as_arg_v2="$am__vala_version"
 
5019
awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
 
5020
case $? in #(
 
5021
  1) :
 
5022
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5023
$as_echo "yes" >&6; } ;; #(
 
5024
  0) :
 
5025
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5026
$as_echo "yes" >&6; } ;; #(
 
5027
  2) :
 
5028
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5029
$as_echo "no" >&6; }
 
5030
          as_fn_error $? "Vala 0.11.6 not found." "$LINENO" 5  ;; #(
 
5031
  *) :
 
5032
     ;;
 
5033
esac
 
5034
fi
 
5035
fi
 
5036
 
 
5037
 
 
5038
# Initialize libtool
 
5039
 
 
5040
case `pwd` in
 
5041
  *\ * | *\     *)
 
5042
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
5043
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
5044
esac
 
5045
 
 
5046
 
 
5047
 
 
5048
macro_version='2.4'
 
5049
macro_revision='1.3293'
 
5050
 
 
5051
 
 
5052
 
 
5053
 
 
5054
 
 
5055
 
 
5056
 
 
5057
 
 
5058
 
 
5059
 
 
5060
 
 
5061
 
 
5062
 
 
5063
ltmain="$ac_aux_dir/ltmain.sh"
 
5064
 
 
5065
# Make sure we can run config.sub.
 
5066
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
5067
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
5068
 
 
5069
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
5070
$as_echo_n "checking build system type... " >&6; }
 
5071
if test "${ac_cv_build+set}" = set; then :
 
5072
  $as_echo_n "(cached) " >&6
 
5073
else
 
5074
  ac_build_alias=$build_alias
 
5075
test "x$ac_build_alias" = x &&
 
5076
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
5077
test "x$ac_build_alias" = x &&
 
5078
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 
5079
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
5080
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
5081
 
 
5082
fi
 
5083
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
5084
$as_echo "$ac_cv_build" >&6; }
 
5085
case $ac_cv_build in
 
5086
*-*-*) ;;
 
5087
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
 
5088
esac
 
5089
build=$ac_cv_build
 
5090
ac_save_IFS=$IFS; IFS='-'
 
5091
set x $ac_cv_build
 
5092
shift
 
5093
build_cpu=$1
 
5094
build_vendor=$2
 
5095
shift; shift
 
5096
# Remember, the first character of IFS is used to create $*,
 
5097
# except with old shells:
 
5098
build_os=$*
 
5099
IFS=$ac_save_IFS
 
5100
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
5101
 
 
5102
 
 
5103
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
5104
$as_echo_n "checking host system type... " >&6; }
 
5105
if test "${ac_cv_host+set}" = set; then :
 
5106
  $as_echo_n "(cached) " >&6
 
5107
else
 
5108
  if test "x$host_alias" = x; then
 
5109
  ac_cv_host=$ac_cv_build
 
5110
else
 
5111
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
5112
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
5113
fi
 
5114
 
 
5115
fi
 
5116
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
5117
$as_echo "$ac_cv_host" >&6; }
 
5118
case $ac_cv_host in
 
5119
*-*-*) ;;
 
5120
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
 
5121
esac
 
5122
host=$ac_cv_host
 
5123
ac_save_IFS=$IFS; IFS='-'
 
5124
set x $ac_cv_host
 
5125
shift
 
5126
host_cpu=$1
 
5127
host_vendor=$2
 
5128
shift; shift
 
5129
# Remember, the first character of IFS is used to create $*,
 
5130
# except with old shells:
 
5131
host_os=$*
 
5132
IFS=$ac_save_IFS
 
5133
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
5134
 
 
5135
 
 
5136
# Backslashify metacharacters that are still active within
 
5137
# double-quoted strings.
 
5138
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
5139
 
 
5140
# Same as above, but do not quote variable references.
 
5141
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
5142
 
 
5143
# Sed substitution to delay expansion of an escaped shell variable in a
 
5144
# double_quote_subst'ed string.
 
5145
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
5146
 
 
5147
# Sed substitution to delay expansion of an escaped single quote.
 
5148
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
5149
 
 
5150
# Sed substitution to avoid accidental globbing in evaled expressions
 
5151
no_glob_subst='s/\*/\\\*/g'
 
5152
 
 
5153
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
5154
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
5155
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
5156
 
 
5157
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
 
5158
$as_echo_n "checking how to print strings... " >&6; }
 
5159
# Test print first, because it will be a builtin if present.
 
5160
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
5161
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
5162
  ECHO='print -r --'
 
5163
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
5164
  ECHO='printf %s\n'
 
5165
else
 
5166
  # Use this function as a fallback that always works.
 
5167
  func_fallback_echo ()
 
5168
  {
 
5169
    eval 'cat <<_LTECHO_EOF
 
5170
$1
 
5171
_LTECHO_EOF'
 
5172
  }
 
5173
  ECHO='func_fallback_echo'
 
5174
fi
 
5175
 
 
5176
# func_echo_all arg...
 
5177
# Invoke $ECHO with all args, space-separated.
 
5178
func_echo_all ()
 
5179
{
 
5180
    $ECHO ""
 
5181
}
 
5182
 
 
5183
case "$ECHO" in
 
5184
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
 
5185
$as_echo "printf" >&6; } ;;
 
5186
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
 
5187
$as_echo "print -r" >&6; } ;;
 
5188
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
 
5189
$as_echo "cat" >&6; } ;;
 
5190
esac
 
5191
 
 
5192
 
 
5193
 
 
5194
 
 
5195
 
 
5196
 
 
5197
 
 
5198
 
 
5199
 
 
5200
 
 
5201
 
 
5202
 
 
5203
 
 
5204
 
 
5205
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
5206
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
5207
if test "${ac_cv_path_SED+set}" = set; then :
 
5208
  $as_echo_n "(cached) " >&6
 
5209
else
 
5210
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
5211
     for ac_i in 1 2 3 4 5 6 7; do
 
5212
       ac_script="$ac_script$as_nl$ac_script"
 
5213
     done
 
5214
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
5215
     { ac_script=; unset ac_script;}
 
5216
     if test -z "$SED"; then
 
5217
  ac_path_SED_found=false
 
5218
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5219
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5220
for as_dir in $PATH
 
5221
do
 
5222
  IFS=$as_save_IFS
 
5223
  test -z "$as_dir" && as_dir=.
 
5224
    for ac_prog in sed gsed; do
 
5225
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5226
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
5227
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
5228
# Check for GNU ac_path_SED and select it if it is found.
 
5229
  # Check for GNU $ac_path_SED
 
5230
case `"$ac_path_SED" --version 2>&1` in
 
5231
*GNU*)
 
5232
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
5233
*)
 
5234
  ac_count=0
 
5235
  $as_echo_n 0123456789 >"conftest.in"
 
5236
  while :
 
5237
  do
 
5238
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5239
    mv "conftest.tmp" "conftest.in"
 
5240
    cp "conftest.in" "conftest.nl"
 
5241
    $as_echo '' >> "conftest.nl"
 
5242
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5243
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5244
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5245
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
5246
      # Best one so far, save it but keep looking for a better one
 
5247
      ac_cv_path_SED="$ac_path_SED"
 
5248
      ac_path_SED_max=$ac_count
 
5249
    fi
 
5250
    # 10*(2^10) chars as input seems more than enough
 
5251
    test $ac_count -gt 10 && break
 
5252
  done
 
5253
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5254
esac
 
5255
 
 
5256
      $ac_path_SED_found && break 3
 
5257
    done
 
5258
  done
 
5259
  done
 
5260
IFS=$as_save_IFS
 
5261
  if test -z "$ac_cv_path_SED"; then
 
5262
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
5263
  fi
 
5264
else
 
5265
  ac_cv_path_SED=$SED
 
5266
fi
 
5267
 
 
5268
fi
 
5269
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
5270
$as_echo "$ac_cv_path_SED" >&6; }
 
5271
 SED="$ac_cv_path_SED"
 
5272
  rm -f conftest.sed
 
5273
 
 
5274
test -z "$SED" && SED=sed
 
5275
Xsed="$SED -e 1s/^X//"
 
5276
 
 
5277
 
 
5278
 
 
5279
 
 
5280
 
 
5281
 
 
5282
 
 
5283
 
 
5284
 
 
5285
 
 
5286
 
 
5287
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
5288
$as_echo_n "checking for fgrep... " >&6; }
 
5289
if test "${ac_cv_path_FGREP+set}" = set; then :
 
5290
  $as_echo_n "(cached) " >&6
 
5291
else
 
5292
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
5293
   then ac_cv_path_FGREP="$GREP -F"
 
5294
   else
 
5295
     if test -z "$FGREP"; then
 
5296
  ac_path_FGREP_found=false
 
5297
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5298
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5299
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
5300
do
 
5301
  IFS=$as_save_IFS
 
5302
  test -z "$as_dir" && as_dir=.
 
5303
    for ac_prog in fgrep; do
 
5304
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5305
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
5306
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
5307
# Check for GNU ac_path_FGREP and select it if it is found.
 
5308
  # Check for GNU $ac_path_FGREP
 
5309
case `"$ac_path_FGREP" --version 2>&1` in
 
5310
*GNU*)
 
5311
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
5312
*)
 
5313
  ac_count=0
 
5314
  $as_echo_n 0123456789 >"conftest.in"
 
5315
  while :
 
5316
  do
 
5317
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5318
    mv "conftest.tmp" "conftest.in"
 
5319
    cp "conftest.in" "conftest.nl"
 
5320
    $as_echo 'FGREP' >> "conftest.nl"
 
5321
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5322
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5323
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5324
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
5325
      # Best one so far, save it but keep looking for a better one
 
5326
      ac_cv_path_FGREP="$ac_path_FGREP"
 
5327
      ac_path_FGREP_max=$ac_count
 
5328
    fi
 
5329
    # 10*(2^10) chars as input seems more than enough
 
5330
    test $ac_count -gt 10 && break
 
5331
  done
 
5332
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5333
esac
 
5334
 
 
5335
      $ac_path_FGREP_found && break 3
 
5336
    done
 
5337
  done
 
5338
  done
 
5339
IFS=$as_save_IFS
 
5340
  if test -z "$ac_cv_path_FGREP"; then
 
5341
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
5342
  fi
 
5343
else
 
5344
  ac_cv_path_FGREP=$FGREP
 
5345
fi
 
5346
 
 
5347
   fi
 
5348
fi
 
5349
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
5350
$as_echo "$ac_cv_path_FGREP" >&6; }
 
5351
 FGREP="$ac_cv_path_FGREP"
 
5352
 
 
5353
 
 
5354
test -z "$GREP" && GREP=grep
 
5355
 
 
5356
 
 
5357
 
 
5358
 
 
5359
 
 
5360
 
 
5361
 
 
5362
 
 
5363
 
 
5364
 
 
5365
 
 
5366
 
 
5367
 
 
5368
 
 
5369
 
 
5370
 
 
5371
 
 
5372
 
 
5373
 
 
5374
# Check whether --with-gnu-ld was given.
 
5375
if test "${with_gnu_ld+set}" = set; then :
 
5376
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
5377
else
 
5378
  with_gnu_ld=no
 
5379
fi
 
5380
 
 
5381
ac_prog=ld
 
5382
if test "$GCC" = yes; then
 
5383
  # Check if gcc -print-prog-name=ld gives a path.
 
5384
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
5385
$as_echo_n "checking for ld used by $CC... " >&6; }
 
5386
  case $host in
 
5387
  *-*-mingw*)
 
5388
    # gcc leaves a trailing carriage return which upsets mingw
 
5389
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
5390
  *)
 
5391
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
5392
  esac
 
5393
  case $ac_prog in
 
5394
    # Accept absolute paths.
 
5395
    [\\/]* | ?:[\\/]*)
 
5396
      re_direlt='/[^/][^/]*/\.\./'
 
5397
      # Canonicalize the pathname of ld
 
5398
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
5399
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
5400
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
5401
      done
 
5402
      test -z "$LD" && LD="$ac_prog"
 
5403
      ;;
 
5404
  "")
 
5405
    # If it fails, then pretend we aren't using GCC.
 
5406
    ac_prog=ld
 
5407
    ;;
 
5408
  *)
 
5409
    # If it is relative, then search for the first ld in PATH.
 
5410
    with_gnu_ld=unknown
 
5411
    ;;
 
5412
  esac
 
5413
elif test "$with_gnu_ld" = yes; then
 
5414
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
5415
$as_echo_n "checking for GNU ld... " >&6; }
 
5416
else
 
5417
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
5418
$as_echo_n "checking for non-GNU ld... " >&6; }
 
5419
fi
 
5420
if test "${lt_cv_path_LD+set}" = set; then :
 
5421
  $as_echo_n "(cached) " >&6
 
5422
else
 
5423
  if test -z "$LD"; then
 
5424
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5425
  for ac_dir in $PATH; do
 
5426
    IFS="$lt_save_ifs"
 
5427
    test -z "$ac_dir" && ac_dir=.
 
5428
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
5429
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
5430
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
5431
      # but apparently some variants of GNU ld only accept -v.
 
5432
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
5433
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
5434
      *GNU* | *'with BFD'*)
 
5435
        test "$with_gnu_ld" != no && break
 
5436
        ;;
 
5437
      *)
 
5438
        test "$with_gnu_ld" != yes && break
 
5439
        ;;
 
5440
      esac
 
5441
    fi
 
5442
  done
 
5443
  IFS="$lt_save_ifs"
 
5444
else
 
5445
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
5446
fi
 
5447
fi
 
5448
 
 
5449
LD="$lt_cv_path_LD"
 
5450
if test -n "$LD"; then
 
5451
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
5452
$as_echo "$LD" >&6; }
 
5453
else
 
5454
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5455
$as_echo "no" >&6; }
 
5456
fi
 
5457
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
5458
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
5459
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
5460
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
 
5461
  $as_echo_n "(cached) " >&6
 
5462
else
 
5463
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
5464
case `$LD -v 2>&1 </dev/null` in
 
5465
*GNU* | *'with BFD'*)
 
5466
  lt_cv_prog_gnu_ld=yes
 
5467
  ;;
 
5468
*)
 
5469
  lt_cv_prog_gnu_ld=no
 
5470
  ;;
 
5471
esac
 
5472
fi
 
5473
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
5474
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
5475
with_gnu_ld=$lt_cv_prog_gnu_ld
 
5476
 
 
5477
 
 
5478
 
 
5479
 
 
5480
 
 
5481
 
 
5482
 
 
5483
 
 
5484
 
 
5485
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
5486
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
5487
if test "${lt_cv_path_NM+set}" = set; then :
 
5488
  $as_echo_n "(cached) " >&6
 
5489
else
 
5490
  if test -n "$NM"; then
 
5491
  # Let the user override the test.
 
5492
  lt_cv_path_NM="$NM"
 
5493
else
 
5494
  lt_nm_to_check="${ac_tool_prefix}nm"
 
5495
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
5496
    lt_nm_to_check="$lt_nm_to_check nm"
 
5497
  fi
 
5498
  for lt_tmp_nm in $lt_nm_to_check; do
 
5499
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5500
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
5501
      IFS="$lt_save_ifs"
 
5502
      test -z "$ac_dir" && ac_dir=.
 
5503
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
5504
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
5505
        # Check to see if the nm accepts a BSD-compat flag.
 
5506
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
5507
        #   nm: unknown option "B" ignored
 
5508
        # Tru64's nm complains that /dev/null is an invalid object file
 
5509
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
5510
        */dev/null* | *'Invalid file or object type'*)
 
5511
          lt_cv_path_NM="$tmp_nm -B"
 
5512
          break
 
5513
          ;;
 
5514
        *)
 
5515
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
5516
          */dev/null*)
 
5517
            lt_cv_path_NM="$tmp_nm -p"
 
5518
            break
 
5519
            ;;
 
5520
          *)
 
5521
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
5522
            continue # so that we can try to find one that supports BSD flags
 
5523
            ;;
 
5524
          esac
 
5525
          ;;
 
5526
        esac
 
5527
      fi
 
5528
    done
 
5529
    IFS="$lt_save_ifs"
 
5530
  done
 
5531
  : ${lt_cv_path_NM=no}
 
5532
fi
 
5533
fi
 
5534
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
5535
$as_echo "$lt_cv_path_NM" >&6; }
 
5536
if test "$lt_cv_path_NM" != "no"; then
 
5537
  NM="$lt_cv_path_NM"
 
5538
else
 
5539
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
5540
  if test -n "$DUMPBIN"; then :
 
5541
    # Let the user override the test.
 
5542
  else
 
5543
    if test -n "$ac_tool_prefix"; then
 
5544
  for ac_prog in dumpbin "link -dump"
 
5545
  do
 
5546
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5547
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5548
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5549
$as_echo_n "checking for $ac_word... " >&6; }
 
5550
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
 
5551
  $as_echo_n "(cached) " >&6
 
5552
else
 
5553
  if test -n "$DUMPBIN"; then
 
5554
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
5555
else
 
5556
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5557
for as_dir in $PATH
 
5558
do
 
5559
  IFS=$as_save_IFS
 
5560
  test -z "$as_dir" && as_dir=.
 
5561
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5562
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5563
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
5564
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5565
    break 2
 
5566
  fi
 
5567
done
 
5568
  done
 
5569
IFS=$as_save_IFS
 
5570
 
 
5571
fi
 
5572
fi
 
5573
DUMPBIN=$ac_cv_prog_DUMPBIN
 
5574
if test -n "$DUMPBIN"; then
 
5575
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
5576
$as_echo "$DUMPBIN" >&6; }
 
5577
else
 
5578
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5579
$as_echo "no" >&6; }
 
5580
fi
 
5581
 
 
5582
 
 
5583
    test -n "$DUMPBIN" && break
 
5584
  done
 
5585
fi
 
5586
if test -z "$DUMPBIN"; then
 
5587
  ac_ct_DUMPBIN=$DUMPBIN
 
5588
  for ac_prog in dumpbin "link -dump"
 
5589
do
 
5590
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5591
set dummy $ac_prog; ac_word=$2
 
5592
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5593
$as_echo_n "checking for $ac_word... " >&6; }
 
5594
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
 
5595
  $as_echo_n "(cached) " >&6
 
5596
else
 
5597
  if test -n "$ac_ct_DUMPBIN"; then
 
5598
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
5599
else
 
5600
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5601
for as_dir in $PATH
 
5602
do
 
5603
  IFS=$as_save_IFS
 
5604
  test -z "$as_dir" && as_dir=.
 
5605
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5606
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5607
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
5608
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5609
    break 2
 
5610
  fi
 
5611
done
 
5612
  done
 
5613
IFS=$as_save_IFS
 
5614
 
 
5615
fi
 
5616
fi
 
5617
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
5618
if test -n "$ac_ct_DUMPBIN"; then
 
5619
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
5620
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
5621
else
 
5622
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5623
$as_echo "no" >&6; }
 
5624
fi
 
5625
 
 
5626
 
 
5627
  test -n "$ac_ct_DUMPBIN" && break
 
5628
done
 
5629
 
 
5630
  if test "x$ac_ct_DUMPBIN" = x; then
 
5631
    DUMPBIN=":"
 
5632
  else
 
5633
    case $cross_compiling:$ac_tool_warned in
 
5634
yes:)
 
5635
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5636
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5637
ac_tool_warned=yes ;;
 
5638
esac
 
5639
    DUMPBIN=$ac_ct_DUMPBIN
 
5640
  fi
 
5641
fi
 
5642
 
 
5643
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
5644
    *COFF*)
 
5645
      DUMPBIN="$DUMPBIN -symbols"
 
5646
      ;;
 
5647
    *)
 
5648
      DUMPBIN=:
 
5649
      ;;
 
5650
    esac
 
5651
  fi
 
5652
 
 
5653
  if test "$DUMPBIN" != ":"; then
 
5654
    NM="$DUMPBIN"
 
5655
  fi
 
5656
fi
 
5657
test -z "$NM" && NM=nm
 
5658
 
 
5659
 
 
5660
 
 
5661
 
 
5662
 
 
5663
 
 
5664
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
5665
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
5666
if test "${lt_cv_nm_interface+set}" = set; then :
 
5667
  $as_echo_n "(cached) " >&6
 
5668
else
 
5669
  lt_cv_nm_interface="BSD nm"
 
5670
  echo "int some_variable = 0;" > conftest.$ac_ext
 
5671
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
 
5672
  (eval "$ac_compile" 2>conftest.err)
 
5673
  cat conftest.err >&5
 
5674
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
5675
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
5676
  cat conftest.err >&5
 
5677
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
 
5678
  cat conftest.out >&5
 
5679
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
5680
    lt_cv_nm_interface="MS dumpbin"
 
5681
  fi
 
5682
  rm -f conftest*
 
5683
fi
 
5684
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
5685
$as_echo "$lt_cv_nm_interface" >&6; }
 
5686
 
 
5687
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
5688
$as_echo_n "checking whether ln -s works... " >&6; }
 
5689
LN_S=$as_ln_s
 
5690
if test "$LN_S" = "ln -s"; then
 
5691
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5692
$as_echo "yes" >&6; }
 
5693
else
 
5694
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
5695
$as_echo "no, using $LN_S" >&6; }
 
5696
fi
 
5697
 
 
5698
# find the maximum length of command line arguments
 
5699
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
5700
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
5701
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
 
5702
  $as_echo_n "(cached) " >&6
 
5703
else
 
5704
    i=0
 
5705
  teststring="ABCD"
 
5706
 
 
5707
  case $build_os in
 
5708
  msdosdjgpp*)
 
5709
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5710
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5711
    # during glob expansion).  Even if it were fixed, the result of this
 
5712
    # check would be larger than it should be.
 
5713
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5714
    ;;
 
5715
 
 
5716
  gnu*)
 
5717
    # Under GNU Hurd, this test is not required because there is
 
5718
    # no limit to the length of command line arguments.
 
5719
    # Libtool will interpret -1 as no limit whatsoever
 
5720
    lt_cv_sys_max_cmd_len=-1;
 
5721
    ;;
 
5722
 
 
5723
  cygwin* | mingw* | cegcc*)
 
5724
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5725
    # about 5 minutes as the teststring grows exponentially.
 
5726
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5727
    # you end up with a "frozen" computer, even though with patience
 
5728
    # the test eventually succeeds (with a max line length of 256k).
 
5729
    # Instead, let's just punt: use the minimum linelength reported by
 
5730
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5731
    lt_cv_sys_max_cmd_len=8192;
 
5732
    ;;
 
5733
 
 
5734
  mint*)
 
5735
    # On MiNT this can take a long time and run out of memory.
 
5736
    lt_cv_sys_max_cmd_len=8192;
 
5737
    ;;
 
5738
 
 
5739
  amigaos*)
 
5740
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5741
    # So we just punt and use a minimum line length of 8192.
 
5742
    lt_cv_sys_max_cmd_len=8192;
 
5743
    ;;
 
5744
 
 
5745
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5746
    # This has been around since 386BSD, at least.  Likely further.
 
5747
    if test -x /sbin/sysctl; then
 
5748
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5749
    elif test -x /usr/sbin/sysctl; then
 
5750
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5751
    else
 
5752
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5753
    fi
 
5754
    # And add a safety zone
 
5755
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5756
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5757
    ;;
 
5758
 
 
5759
  interix*)
 
5760
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5761
    lt_cv_sys_max_cmd_len=196608
 
5762
    ;;
 
5763
 
 
5764
  osf*)
 
5765
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5766
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5767
    # nice to cause kernel panics so lets avoid the loop below.
 
5768
    # First set a reasonable default.
 
5769
    lt_cv_sys_max_cmd_len=16384
 
5770
    #
 
5771
    if test -x /sbin/sysconfig; then
 
5772
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5773
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5774
      esac
 
5775
    fi
 
5776
    ;;
 
5777
  sco3.2v5*)
 
5778
    lt_cv_sys_max_cmd_len=102400
 
5779
    ;;
 
5780
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5781
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5782
    if test -n "$kargmax"; then
 
5783
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
5784
    else
 
5785
      lt_cv_sys_max_cmd_len=32768
 
5786
    fi
 
5787
    ;;
 
5788
  *)
 
5789
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
5790
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
5791
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5792
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5793
    else
 
5794
      # Make teststring a little bigger before we do anything with it.
 
5795
      # a 1K string should be a reasonable start.
 
5796
      for i in 1 2 3 4 5 6 7 8 ; do
 
5797
        teststring=$teststring$teststring
 
5798
      done
 
5799
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5800
      # If test is not a shell built-in, we'll probably end up computing a
 
5801
      # maximum length that is only half of the actual maximum length, but
 
5802
      # we can't tell.
 
5803
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
 
5804
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 
5805
              test $i != 17 # 1/2 MB should be enough
 
5806
      do
 
5807
        i=`expr $i + 1`
 
5808
        teststring=$teststring$teststring
 
5809
      done
 
5810
      # Only check the string length outside the loop.
 
5811
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
5812
      teststring=
 
5813
      # Add a significant safety factor because C++ compilers can tack on
 
5814
      # massive amounts of additional arguments before passing them to the
 
5815
      # linker.  It appears as though 1/2 is a usable value.
 
5816
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5817
    fi
 
5818
    ;;
 
5819
  esac
 
5820
 
 
5821
fi
 
5822
 
 
5823
if test -n $lt_cv_sys_max_cmd_len ; then
 
5824
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
5825
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
5826
else
 
5827
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
5828
$as_echo "none" >&6; }
 
5829
fi
 
5830
max_cmd_len=$lt_cv_sys_max_cmd_len
 
5831
 
 
5832
 
 
5833
 
 
5834
 
 
5835
 
 
5836
 
 
5837
: ${CP="cp -f"}
 
5838
: ${MV="mv -f"}
 
5839
: ${RM="rm -f"}
 
5840
 
 
5841
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
5842
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
5843
# Try some XSI features
 
5844
xsi_shell=no
 
5845
( _lt_dummy="a/b/c"
 
5846
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
5847
      = c,a/b,b/c, \
 
5848
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
5849
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
5850
  && xsi_shell=yes
 
5851
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
5852
$as_echo "$xsi_shell" >&6; }
 
5853
 
 
5854
 
 
5855
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
5856
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
5857
lt_shell_append=no
 
5858
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
5859
    >/dev/null 2>&1 \
 
5860
  && lt_shell_append=yes
 
5861
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
5862
$as_echo "$lt_shell_append" >&6; }
 
5863
 
 
5864
 
 
5865
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
5866
  lt_unset=unset
 
5867
else
 
5868
  lt_unset=false
 
5869
fi
 
5870
 
 
5871
 
 
5872
 
 
5873
 
 
5874
 
 
5875
# test EBCDIC or ASCII
 
5876
case `echo X|tr X '\101'` in
 
5877
 A) # ASCII based system
 
5878
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
5879
  lt_SP2NL='tr \040 \012'
 
5880
  lt_NL2SP='tr \015\012 \040\040'
 
5881
  ;;
 
5882
 *) # EBCDIC based system
 
5883
  lt_SP2NL='tr \100 \n'
 
5884
  lt_NL2SP='tr \r\n \100\100'
 
5885
  ;;
 
5886
esac
 
5887
 
 
5888
 
 
5889
 
 
5890
 
 
5891
 
 
5892
 
 
5893
 
 
5894
 
 
5895
 
 
5896
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
 
5897
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
 
5898
if test "${lt_cv_to_host_file_cmd+set}" = set; then :
 
5899
  $as_echo_n "(cached) " >&6
 
5900
else
 
5901
  case $host in
 
5902
  *-*-mingw* )
 
5903
    case $build in
 
5904
      *-*-mingw* ) # actually msys
 
5905
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
5906
        ;;
 
5907
      *-*-cygwin* )
 
5908
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
5909
        ;;
 
5910
      * ) # otherwise, assume *nix
 
5911
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
5912
        ;;
 
5913
    esac
 
5914
    ;;
 
5915
  *-*-cygwin* )
 
5916
    case $build in
 
5917
      *-*-mingw* ) # actually msys
 
5918
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
5919
        ;;
 
5920
      *-*-cygwin* )
 
5921
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
5922
        ;;
 
5923
      * ) # otherwise, assume *nix
 
5924
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
5925
        ;;
 
5926
    esac
 
5927
    ;;
 
5928
  * ) # unhandled hosts (and "normal" native builds)
 
5929
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
5930
    ;;
 
5931
esac
 
5932
 
 
5933
fi
 
5934
 
 
5935
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
5936
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
 
5937
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
 
5938
 
 
5939
 
 
5940
 
 
5941
 
 
5942
 
 
5943
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
 
5944
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
 
5945
if test "${lt_cv_to_tool_file_cmd+set}" = set; then :
 
5946
  $as_echo_n "(cached) " >&6
 
5947
else
 
5948
  #assume ordinary cross tools, or native build.
 
5949
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
5950
case $host in
 
5951
  *-*-mingw* )
 
5952
    case $build in
 
5953
      *-*-mingw* ) # actually msys
 
5954
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
5955
        ;;
 
5956
    esac
 
5957
    ;;
 
5958
esac
 
5959
 
 
5960
fi
 
5961
 
 
5962
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
5963
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
 
5964
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
 
5965
 
 
5966
 
 
5967
 
 
5968
 
 
5969
 
 
5970
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
5971
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
5972
if test "${lt_cv_ld_reload_flag+set}" = set; then :
 
5973
  $as_echo_n "(cached) " >&6
 
5974
else
 
5975
  lt_cv_ld_reload_flag='-r'
 
5976
fi
 
5977
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
5978
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
5979
reload_flag=$lt_cv_ld_reload_flag
 
5980
case $reload_flag in
 
5981
"" | " "*) ;;
 
5982
*) reload_flag=" $reload_flag" ;;
 
5983
esac
 
5984
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5985
case $host_os in
 
5986
  cygwin* | mingw* | pw32* | cegcc*)
 
5987
    if test "$GCC" != yes; then
 
5988
      reload_cmds=false
 
5989
    fi
 
5990
    ;;
 
5991
  darwin*)
 
5992
    if test "$GCC" = yes; then
 
5993
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
5994
    else
 
5995
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5996
    fi
 
5997
    ;;
 
5998
esac
 
5999
 
 
6000
 
 
6001
 
 
6002
 
 
6003
 
 
6004
 
 
6005
 
 
6006
 
 
6007
 
 
6008
if test -n "$ac_tool_prefix"; then
 
6009
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
6010
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
6011
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6012
$as_echo_n "checking for $ac_word... " >&6; }
 
6013
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
 
6014
  $as_echo_n "(cached) " >&6
 
6015
else
 
6016
  if test -n "$OBJDUMP"; then
 
6017
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
6018
else
 
6019
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6020
for as_dir in $PATH
 
6021
do
 
6022
  IFS=$as_save_IFS
 
6023
  test -z "$as_dir" && as_dir=.
 
6024
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6025
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6026
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
6027
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6028
    break 2
 
6029
  fi
 
6030
done
 
6031
  done
 
6032
IFS=$as_save_IFS
 
6033
 
 
6034
fi
 
6035
fi
 
6036
OBJDUMP=$ac_cv_prog_OBJDUMP
 
6037
if test -n "$OBJDUMP"; then
 
6038
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
6039
$as_echo "$OBJDUMP" >&6; }
 
6040
else
 
6041
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6042
$as_echo "no" >&6; }
 
6043
fi
 
6044
 
 
6045
 
 
6046
fi
 
6047
if test -z "$ac_cv_prog_OBJDUMP"; then
 
6048
  ac_ct_OBJDUMP=$OBJDUMP
 
6049
  # Extract the first word of "objdump", so it can be a program name with args.
 
6050
set dummy objdump; ac_word=$2
 
6051
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6052
$as_echo_n "checking for $ac_word... " >&6; }
 
6053
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
 
6054
  $as_echo_n "(cached) " >&6
 
6055
else
 
6056
  if test -n "$ac_ct_OBJDUMP"; then
 
6057
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
6058
else
 
6059
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6060
for as_dir in $PATH
 
6061
do
 
6062
  IFS=$as_save_IFS
 
6063
  test -z "$as_dir" && as_dir=.
 
6064
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6065
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6066
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
6067
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6068
    break 2
 
6069
  fi
 
6070
done
 
6071
  done
 
6072
IFS=$as_save_IFS
 
6073
 
 
6074
fi
 
6075
fi
 
6076
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
6077
if test -n "$ac_ct_OBJDUMP"; then
 
6078
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
6079
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
6080
else
 
6081
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6082
$as_echo "no" >&6; }
 
6083
fi
 
6084
 
 
6085
  if test "x$ac_ct_OBJDUMP" = x; then
 
6086
    OBJDUMP="false"
 
6087
  else
 
6088
    case $cross_compiling:$ac_tool_warned in
 
6089
yes:)
 
6090
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6091
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6092
ac_tool_warned=yes ;;
 
6093
esac
 
6094
    OBJDUMP=$ac_ct_OBJDUMP
 
6095
  fi
 
6096
else
 
6097
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
6098
fi
 
6099
 
 
6100
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6101
 
 
6102
 
 
6103
 
 
6104
 
 
6105
 
 
6106
 
 
6107
 
 
6108
 
 
6109
 
 
6110
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
6111
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
6112
if test "${lt_cv_deplibs_check_method+set}" = set; then :
 
6113
  $as_echo_n "(cached) " >&6
 
6114
else
 
6115
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
6116
lt_cv_file_magic_test_file=
 
6117
lt_cv_deplibs_check_method='unknown'
 
6118
# Need to set the preceding variable on all platforms that support
 
6119
# interlibrary dependencies.
 
6120
# 'none' -- dependencies not supported.
 
6121
# `unknown' -- same as none, but documents that we really don't know.
 
6122
# 'pass_all' -- all dependencies passed with no checks.
 
6123
# 'test_compile' -- check by making test program.
 
6124
# 'file_magic [[regex]]' -- check by looking for files in library path
 
6125
# which responds to the $file_magic_cmd with a given extended regex.
 
6126
# If you have `file' or equivalent on your system and you're not sure
 
6127
# whether `pass_all' will *always* work, you probably want this one.
 
6128
 
 
6129
case $host_os in
 
6130
aix[4-9]*)
 
6131
  lt_cv_deplibs_check_method=pass_all
 
6132
  ;;
 
6133
 
 
6134
beos*)
 
6135
  lt_cv_deplibs_check_method=pass_all
 
6136
  ;;
 
6137
 
 
6138
bsdi[45]*)
 
6139
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
6140
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
6141
  lt_cv_file_magic_test_file=/shlib/libc.so
 
6142
  ;;
 
6143
 
 
6144
cygwin*)
 
6145
  # func_win32_libid is a shell function defined in ltmain.sh
 
6146
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
6147
  lt_cv_file_magic_cmd='func_win32_libid'
 
6148
  ;;
 
6149
 
 
6150
mingw* | pw32*)
 
6151
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
6152
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
6153
  # unless we find 'file', for example because we are cross-compiling.
 
6154
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
6155
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
 
6156
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
6157
    lt_cv_file_magic_cmd='func_win32_libid'
 
6158
  else
 
6159
    # Keep this pattern in sync with the one in func_win32_libid.
 
6160
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 
6161
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
6162
  fi
 
6163
  ;;
 
6164
 
 
6165
cegcc*)
 
6166
  # use the weaker test based on 'objdump'. See mingw*.
 
6167
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
6168
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
6169
  ;;
 
6170
 
 
6171
darwin* | rhapsody*)
 
6172
  lt_cv_deplibs_check_method=pass_all
 
6173
  ;;
 
6174
 
 
6175
freebsd* | dragonfly*)
 
6176
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
6177
    case $host_cpu in
 
6178
    i*86 )
 
6179
      # Not sure whether the presence of OpenBSD here was a mistake.
 
6180
      # Let's accept both of them until this is cleared up.
 
6181
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
6182
      lt_cv_file_magic_cmd=/usr/bin/file
 
6183
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
6184
      ;;
 
6185
    esac
 
6186
  else
 
6187
    lt_cv_deplibs_check_method=pass_all
 
6188
  fi
 
6189
  ;;
 
6190
 
 
6191
gnu*)
 
6192
  lt_cv_deplibs_check_method=pass_all
 
6193
  ;;
 
6194
 
 
6195
haiku*)
 
6196
  lt_cv_deplibs_check_method=pass_all
 
6197
  ;;
 
6198
 
 
6199
hpux10.20* | hpux11*)
 
6200
  lt_cv_file_magic_cmd=/usr/bin/file
 
6201
  case $host_cpu in
 
6202
  ia64*)
 
6203
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
6204
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
6205
    ;;
 
6206
  hppa*64*)
 
6207
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
 
6208
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
6209
    ;;
 
6210
  *)
 
6211
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
 
6212
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
6213
    ;;
 
6214
  esac
 
6215
  ;;
 
6216
 
 
6217
interix[3-9]*)
 
6218
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
6219
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
6220
  ;;
 
6221
 
 
6222
irix5* | irix6* | nonstopux*)
 
6223
  case $LD in
 
6224
  *-32|*"-32 ") libmagic=32-bit;;
 
6225
  *-n32|*"-n32 ") libmagic=N32;;
 
6226
  *-64|*"-64 ") libmagic=64-bit;;
 
6227
  *) libmagic=never-match;;
 
6228
  esac
 
6229
  lt_cv_deplibs_check_method=pass_all
 
6230
  ;;
 
6231
 
 
6232
# This must be Linux ELF.
 
6233
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
6234
  lt_cv_deplibs_check_method=pass_all
 
6235
  ;;
 
6236
 
 
6237
netbsd* | netbsdelf*-gnu)
 
6238
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
6239
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
6240
  else
 
6241
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
6242
  fi
 
6243
  ;;
 
6244
 
 
6245
newos6*)
 
6246
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
6247
  lt_cv_file_magic_cmd=/usr/bin/file
 
6248
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
6249
  ;;
 
6250
 
 
6251
*nto* | *qnx*)
 
6252
  lt_cv_deplibs_check_method=pass_all
 
6253
  ;;
 
6254
 
 
6255
openbsd*)
 
6256
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6257
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
6258
  else
 
6259
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
6260
  fi
 
6261
  ;;
 
6262
 
 
6263
osf3* | osf4* | osf5*)
 
6264
  lt_cv_deplibs_check_method=pass_all
 
6265
  ;;
 
6266
 
 
6267
rdos*)
 
6268
  lt_cv_deplibs_check_method=pass_all
 
6269
  ;;
 
6270
 
 
6271
solaris*)
 
6272
  lt_cv_deplibs_check_method=pass_all
 
6273
  ;;
 
6274
 
 
6275
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
6276
  lt_cv_deplibs_check_method=pass_all
 
6277
  ;;
 
6278
 
 
6279
sysv4 | sysv4.3*)
 
6280
  case $host_vendor in
 
6281
  motorola)
 
6282
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
 
6283
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
6284
    ;;
 
6285
  ncr)
 
6286
    lt_cv_deplibs_check_method=pass_all
 
6287
    ;;
 
6288
  sequent)
 
6289
    lt_cv_file_magic_cmd='/bin/file'
 
6290
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
6291
    ;;
 
6292
  sni)
 
6293
    lt_cv_file_magic_cmd='/bin/file'
 
6294
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
6295
    lt_cv_file_magic_test_file=/lib/libc.so
 
6296
    ;;
 
6297
  siemens)
 
6298
    lt_cv_deplibs_check_method=pass_all
 
6299
    ;;
 
6300
  pc)
 
6301
    lt_cv_deplibs_check_method=pass_all
 
6302
    ;;
 
6303
  esac
 
6304
  ;;
 
6305
 
 
6306
tpf*)
 
6307
  lt_cv_deplibs_check_method=pass_all
 
6308
  ;;
 
6309
esac
 
6310
 
 
6311
fi
 
6312
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
6313
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
6314
 
 
6315
file_magic_glob=
 
6316
want_nocaseglob=no
 
6317
if test "$build" = "$host"; then
 
6318
  case $host_os in
 
6319
  mingw* | pw32*)
 
6320
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
6321
      want_nocaseglob=yes
 
6322
    else
 
6323
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
 
6324
    fi
 
6325
    ;;
 
6326
  esac
 
6327
fi
 
6328
 
 
6329
file_magic_cmd=$lt_cv_file_magic_cmd
 
6330
deplibs_check_method=$lt_cv_deplibs_check_method
 
6331
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
6332
 
 
6333
 
 
6334
 
 
6335
 
 
6336
 
 
6337
 
 
6338
 
 
6339
 
 
6340
 
 
6341
 
 
6342
 
 
6343
 
 
6344
 
 
6345
 
 
6346
 
 
6347
 
 
6348
 
 
6349
 
 
6350
 
 
6351
 
 
6352
 
 
6353
 
 
6354
if test -n "$ac_tool_prefix"; then
 
6355
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
6356
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
6357
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6358
$as_echo_n "checking for $ac_word... " >&6; }
 
6359
if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
 
6360
  $as_echo_n "(cached) " >&6
 
6361
else
 
6362
  if test -n "$DLLTOOL"; then
 
6363
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
6364
else
 
6365
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6366
for as_dir in $PATH
 
6367
do
 
6368
  IFS=$as_save_IFS
 
6369
  test -z "$as_dir" && as_dir=.
 
6370
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6371
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6372
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
6373
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6374
    break 2
 
6375
  fi
 
6376
done
 
6377
  done
 
6378
IFS=$as_save_IFS
 
6379
 
 
6380
fi
 
6381
fi
 
6382
DLLTOOL=$ac_cv_prog_DLLTOOL
 
6383
if test -n "$DLLTOOL"; then
 
6384
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
6385
$as_echo "$DLLTOOL" >&6; }
 
6386
else
 
6387
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6388
$as_echo "no" >&6; }
 
6389
fi
 
6390
 
 
6391
 
 
6392
fi
 
6393
if test -z "$ac_cv_prog_DLLTOOL"; then
 
6394
  ac_ct_DLLTOOL=$DLLTOOL
 
6395
  # Extract the first word of "dlltool", so it can be a program name with args.
 
6396
set dummy dlltool; ac_word=$2
 
6397
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6398
$as_echo_n "checking for $ac_word... " >&6; }
 
6399
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
 
6400
  $as_echo_n "(cached) " >&6
 
6401
else
 
6402
  if test -n "$ac_ct_DLLTOOL"; then
 
6403
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
6404
else
 
6405
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6406
for as_dir in $PATH
 
6407
do
 
6408
  IFS=$as_save_IFS
 
6409
  test -z "$as_dir" && as_dir=.
 
6410
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6411
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6412
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
6413
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6414
    break 2
 
6415
  fi
 
6416
done
 
6417
  done
 
6418
IFS=$as_save_IFS
 
6419
 
 
6420
fi
 
6421
fi
 
6422
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
6423
if test -n "$ac_ct_DLLTOOL"; then
 
6424
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
6425
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
6426
else
 
6427
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6428
$as_echo "no" >&6; }
 
6429
fi
 
6430
 
 
6431
  if test "x$ac_ct_DLLTOOL" = x; then
 
6432
    DLLTOOL="false"
 
6433
  else
 
6434
    case $cross_compiling:$ac_tool_warned in
 
6435
yes:)
 
6436
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6437
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6438
ac_tool_warned=yes ;;
 
6439
esac
 
6440
    DLLTOOL=$ac_ct_DLLTOOL
 
6441
  fi
 
6442
else
 
6443
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
6444
fi
 
6445
 
 
6446
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6447
 
 
6448
 
 
6449
 
 
6450
 
 
6451
 
 
6452
 
 
6453
 
 
6454
 
 
6455
 
 
6456
 
 
6457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
 
6458
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
 
6459
if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then :
 
6460
  $as_echo_n "(cached) " >&6
 
6461
else
 
6462
  lt_cv_sharedlib_from_linklib_cmd='unknown'
 
6463
 
 
6464
case $host_os in
 
6465
cygwin* | mingw* | pw32* | cegcc*)
 
6466
  # two different shell functions defined in ltmain.sh
 
6467
  # decide which to use based on capabilities of $DLLTOOL
 
6468
  case `$DLLTOOL --help 2>&1` in
 
6469
  *--identify-strict*)
 
6470
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
6471
    ;;
 
6472
  *)
 
6473
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
6474
    ;;
 
6475
  esac
 
6476
  ;;
 
6477
*)
 
6478
  # fallback: assume linklib IS sharedlib
 
6479
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
6480
  ;;
 
6481
esac
 
6482
 
 
6483
fi
 
6484
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
 
6485
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
 
6486
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
6487
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
6488
 
 
6489
 
 
6490
 
 
6491
 
 
6492
 
 
6493
 
 
6494
 
 
6495
if test -n "$ac_tool_prefix"; then
 
6496
  for ac_prog in ar
 
6497
  do
 
6498
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6499
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6500
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6501
$as_echo_n "checking for $ac_word... " >&6; }
 
6502
if test "${ac_cv_prog_AR+set}" = set; then :
 
6503
  $as_echo_n "(cached) " >&6
 
6504
else
 
6505
  if test -n "$AR"; then
 
6506
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6507
else
 
6508
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6509
for as_dir in $PATH
 
6510
do
 
6511
  IFS=$as_save_IFS
 
6512
  test -z "$as_dir" && as_dir=.
 
6513
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6514
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6515
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
 
6516
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6517
    break 2
 
6518
  fi
 
6519
done
 
6520
  done
 
6521
IFS=$as_save_IFS
 
6522
 
 
6523
fi
 
6524
fi
 
6525
AR=$ac_cv_prog_AR
 
6526
if test -n "$AR"; then
 
6527
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
6528
$as_echo "$AR" >&6; }
 
6529
else
 
6530
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6531
$as_echo "no" >&6; }
 
6532
fi
 
6533
 
 
6534
 
 
6535
    test -n "$AR" && break
 
6536
  done
 
6537
fi
 
6538
if test -z "$AR"; then
 
6539
  ac_ct_AR=$AR
 
6540
  for ac_prog in ar
 
6541
do
 
6542
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6543
set dummy $ac_prog; ac_word=$2
 
6544
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6545
$as_echo_n "checking for $ac_word... " >&6; }
 
6546
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
 
6547
  $as_echo_n "(cached) " >&6
 
6548
else
 
6549
  if test -n "$ac_ct_AR"; then
 
6550
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6551
else
 
6552
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6553
for as_dir in $PATH
 
6554
do
 
6555
  IFS=$as_save_IFS
 
6556
  test -z "$as_dir" && as_dir=.
 
6557
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6558
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6559
    ac_cv_prog_ac_ct_AR="$ac_prog"
 
6560
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6561
    break 2
 
6562
  fi
 
6563
done
 
6564
  done
 
6565
IFS=$as_save_IFS
 
6566
 
 
6567
fi
 
6568
fi
 
6569
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6570
if test -n "$ac_ct_AR"; then
 
6571
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
6572
$as_echo "$ac_ct_AR" >&6; }
 
6573
else
 
6574
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6575
$as_echo "no" >&6; }
 
6576
fi
 
6577
 
 
6578
 
 
6579
  test -n "$ac_ct_AR" && break
 
6580
done
 
6581
 
 
6582
  if test "x$ac_ct_AR" = x; then
 
6583
    AR="false"
 
6584
  else
 
6585
    case $cross_compiling:$ac_tool_warned in
 
6586
yes:)
 
6587
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6588
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6589
ac_tool_warned=yes ;;
 
6590
esac
 
6591
    AR=$ac_ct_AR
 
6592
  fi
 
6593
fi
 
6594
 
 
6595
: ${AR=ar}
 
6596
: ${AR_FLAGS=cru}
 
6597
 
 
6598
 
 
6599
 
 
6600
 
 
6601
 
 
6602
 
 
6603
 
 
6604
 
 
6605
 
 
6606
 
 
6607
 
 
6608
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
 
6609
$as_echo_n "checking for archiver @FILE support... " >&6; }
 
6610
if test "${lt_cv_ar_at_file+set}" = set; then :
 
6611
  $as_echo_n "(cached) " >&6
 
6612
else
 
6613
  lt_cv_ar_at_file=no
 
6614
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6615
/* end confdefs.h.  */
 
6616
 
 
6617
int
 
6618
main ()
 
6619
{
 
6620
 
 
6621
  ;
 
6622
  return 0;
 
6623
}
 
6624
_ACEOF
 
6625
if ac_fn_c_try_compile "$LINENO"; then :
 
6626
  echo conftest.$ac_objext > conftest.lst
 
6627
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
 
6628
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
6629
  (eval $lt_ar_try) 2>&5
 
6630
  ac_status=$?
 
6631
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6632
  test $ac_status = 0; }
 
6633
      if test "$ac_status" -eq 0; then
 
6634
        # Ensure the archiver fails upon bogus file names.
 
6635
        rm -f conftest.$ac_objext libconftest.a
 
6636
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
6637
  (eval $lt_ar_try) 2>&5
 
6638
  ac_status=$?
 
6639
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6640
  test $ac_status = 0; }
 
6641
        if test "$ac_status" -ne 0; then
 
6642
          lt_cv_ar_at_file=@
 
6643
        fi
 
6644
      fi
 
6645
      rm -f conftest.* libconftest.a
 
6646
 
 
6647
fi
 
6648
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6649
 
 
6650
fi
 
6651
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
 
6652
$as_echo "$lt_cv_ar_at_file" >&6; }
 
6653
 
 
6654
if test "x$lt_cv_ar_at_file" = xno; then
 
6655
  archiver_list_spec=
 
6656
else
 
6657
  archiver_list_spec=$lt_cv_ar_at_file
 
6658
fi
 
6659
 
 
6660
 
 
6661
 
 
6662
 
 
6663
 
 
6664
 
 
6665
 
 
6666
if test -n "$ac_tool_prefix"; then
 
6667
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6668
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6669
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6670
$as_echo_n "checking for $ac_word... " >&6; }
 
6671
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
6672
  $as_echo_n "(cached) " >&6
 
6673
else
 
6674
  if test -n "$STRIP"; then
 
6675
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6676
else
 
6677
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6678
for as_dir in $PATH
 
6679
do
 
6680
  IFS=$as_save_IFS
 
6681
  test -z "$as_dir" && as_dir=.
 
6682
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6683
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6684
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6685
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6686
    break 2
 
6687
  fi
 
6688
done
 
6689
  done
 
6690
IFS=$as_save_IFS
 
6691
 
 
6692
fi
 
6693
fi
 
6694
STRIP=$ac_cv_prog_STRIP
 
6695
if test -n "$STRIP"; then
 
6696
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
6697
$as_echo "$STRIP" >&6; }
 
6698
else
 
6699
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6700
$as_echo "no" >&6; }
 
6701
fi
 
6702
 
 
6703
 
 
6704
fi
 
6705
if test -z "$ac_cv_prog_STRIP"; then
 
6706
  ac_ct_STRIP=$STRIP
 
6707
  # Extract the first word of "strip", so it can be a program name with args.
 
6708
set dummy strip; ac_word=$2
 
6709
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6710
$as_echo_n "checking for $ac_word... " >&6; }
 
6711
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
6712
  $as_echo_n "(cached) " >&6
 
6713
else
 
6714
  if test -n "$ac_ct_STRIP"; then
 
6715
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6716
else
 
6717
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6718
for as_dir in $PATH
 
6719
do
 
6720
  IFS=$as_save_IFS
 
6721
  test -z "$as_dir" && as_dir=.
 
6722
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6723
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6724
    ac_cv_prog_ac_ct_STRIP="strip"
 
6725
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6726
    break 2
 
6727
  fi
 
6728
done
 
6729
  done
 
6730
IFS=$as_save_IFS
 
6731
 
 
6732
fi
 
6733
fi
 
6734
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6735
if test -n "$ac_ct_STRIP"; then
 
6736
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
6737
$as_echo "$ac_ct_STRIP" >&6; }
 
6738
else
 
6739
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6740
$as_echo "no" >&6; }
 
6741
fi
 
6742
 
 
6743
  if test "x$ac_ct_STRIP" = x; then
 
6744
    STRIP=":"
 
6745
  else
 
6746
    case $cross_compiling:$ac_tool_warned in
 
6747
yes:)
 
6748
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6749
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6750
ac_tool_warned=yes ;;
 
6751
esac
 
6752
    STRIP=$ac_ct_STRIP
 
6753
  fi
 
6754
else
 
6755
  STRIP="$ac_cv_prog_STRIP"
 
6756
fi
 
6757
 
 
6758
test -z "$STRIP" && STRIP=:
 
6759
 
 
6760
 
 
6761
 
 
6762
 
 
6763
 
 
6764
 
 
6765
if test -n "$ac_tool_prefix"; then
 
6766
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6767
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6768
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6769
$as_echo_n "checking for $ac_word... " >&6; }
 
6770
if test "${ac_cv_prog_RANLIB+set}" = set; then :
 
6771
  $as_echo_n "(cached) " >&6
 
6772
else
 
6773
  if test -n "$RANLIB"; then
 
6774
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6775
else
 
6776
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6777
for as_dir in $PATH
 
6778
do
 
6779
  IFS=$as_save_IFS
 
6780
  test -z "$as_dir" && as_dir=.
 
6781
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6782
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6783
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6784
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6785
    break 2
 
6786
  fi
 
6787
done
 
6788
  done
 
6789
IFS=$as_save_IFS
 
6790
 
 
6791
fi
 
6792
fi
 
6793
RANLIB=$ac_cv_prog_RANLIB
 
6794
if test -n "$RANLIB"; then
 
6795
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
6796
$as_echo "$RANLIB" >&6; }
 
6797
else
 
6798
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6799
$as_echo "no" >&6; }
 
6800
fi
 
6801
 
 
6802
 
 
6803
fi
 
6804
if test -z "$ac_cv_prog_RANLIB"; then
 
6805
  ac_ct_RANLIB=$RANLIB
 
6806
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6807
set dummy ranlib; ac_word=$2
 
6808
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6809
$as_echo_n "checking for $ac_word... " >&6; }
 
6810
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
 
6811
  $as_echo_n "(cached) " >&6
 
6812
else
 
6813
  if test -n "$ac_ct_RANLIB"; then
 
6814
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6815
else
 
6816
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6817
for as_dir in $PATH
 
6818
do
 
6819
  IFS=$as_save_IFS
 
6820
  test -z "$as_dir" && as_dir=.
 
6821
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6822
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6823
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6824
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6825
    break 2
 
6826
  fi
 
6827
done
 
6828
  done
 
6829
IFS=$as_save_IFS
 
6830
 
 
6831
fi
 
6832
fi
 
6833
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6834
if test -n "$ac_ct_RANLIB"; then
 
6835
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
6836
$as_echo "$ac_ct_RANLIB" >&6; }
 
6837
else
 
6838
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6839
$as_echo "no" >&6; }
 
6840
fi
 
6841
 
 
6842
  if test "x$ac_ct_RANLIB" = x; then
 
6843
    RANLIB=":"
 
6844
  else
 
6845
    case $cross_compiling:$ac_tool_warned in
 
6846
yes:)
 
6847
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6848
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6849
ac_tool_warned=yes ;;
 
6850
esac
 
6851
    RANLIB=$ac_ct_RANLIB
 
6852
  fi
 
6853
else
 
6854
  RANLIB="$ac_cv_prog_RANLIB"
 
6855
fi
 
6856
 
 
6857
test -z "$RANLIB" && RANLIB=:
 
6858
 
 
6859
 
 
6860
 
 
6861
 
 
6862
 
 
6863
 
 
6864
# Determine commands to create old-style static archives.
 
6865
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
6866
old_postinstall_cmds='chmod 644 $oldlib'
 
6867
old_postuninstall_cmds=
 
6868
 
 
6869
if test -n "$RANLIB"; then
 
6870
  case $host_os in
 
6871
  openbsd*)
 
6872
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
6873
    ;;
 
6874
  *)
 
6875
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
6876
    ;;
 
6877
  esac
 
6878
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6879
fi
 
6880
 
 
6881
case $host_os in
 
6882
  darwin*)
 
6883
    lock_old_archive_extraction=yes ;;
 
6884
  *)
 
6885
    lock_old_archive_extraction=no ;;
 
6886
esac
 
6887
 
 
6888
 
 
6889
 
 
6890
 
 
6891
 
 
6892
 
 
6893
 
 
6894
 
 
6895
 
 
6896
 
 
6897
 
 
6898
 
 
6899
 
 
6900
 
 
6901
 
 
6902
 
 
6903
 
 
6904
 
 
6905
 
 
6906
 
 
6907
 
 
6908
 
 
6909
 
 
6910
 
 
6911
 
 
6912
 
 
6913
 
 
6914
 
 
6915
 
 
6916
 
 
6917
 
 
6918
 
 
6919
 
 
6920
 
 
6921
 
 
6922
 
 
6923
 
 
6924
 
 
6925
 
 
6926
# If no C compiler was specified, use CC.
 
6927
LTCC=${LTCC-"$CC"}
 
6928
 
 
6929
# If no C compiler flags were specified, use CFLAGS.
 
6930
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
6931
 
 
6932
# Allow CC to be a program name with arguments.
 
6933
compiler=$CC
 
6934
 
 
6935
 
 
6936
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6937
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
6938
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
6939
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
 
6940
  $as_echo_n "(cached) " >&6
 
6941
else
 
6942
 
 
6943
# These are sane defaults that work on at least a few old systems.
 
6944
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6945
 
 
6946
# Character class describing NM global symbol codes.
 
6947
symcode='[BCDEGRST]'
 
6948
 
 
6949
# Regexp to match symbols that can be accessed directly from C.
 
6950
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6951
 
 
6952
# Define system-specific variables.
 
6953
case $host_os in
 
6954
aix*)
 
6955
  symcode='[BCDT]'
 
6956
  ;;
 
6957
cygwin* | mingw* | pw32* | cegcc*)
 
6958
  symcode='[ABCDGISTW]'
 
6959
  ;;
 
6960
hpux*)
 
6961
  if test "$host_cpu" = ia64; then
 
6962
    symcode='[ABCDEGRST]'
 
6963
  fi
 
6964
  ;;
 
6965
irix* | nonstopux*)
 
6966
  symcode='[BCDEGRST]'
 
6967
  ;;
 
6968
osf*)
 
6969
  symcode='[BCDEGQRST]'
 
6970
  ;;
 
6971
solaris*)
 
6972
  symcode='[BDRT]'
 
6973
  ;;
 
6974
sco3.2v5*)
 
6975
  symcode='[DT]'
 
6976
  ;;
 
6977
sysv4.2uw2*)
 
6978
  symcode='[DT]'
 
6979
  ;;
 
6980
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6981
  symcode='[ABDT]'
 
6982
  ;;
 
6983
sysv4)
 
6984
  symcode='[DFNSTU]'
 
6985
  ;;
 
6986
esac
 
6987
 
 
6988
# If we're using GNU nm, then use its standard symbol codes.
 
6989
case `$NM -V 2>&1` in
 
6990
*GNU* | *'with BFD'*)
 
6991
  symcode='[ABCDGIRSTW]' ;;
 
6992
esac
 
6993
 
 
6994
# Transform an extracted symbol line into a proper C declaration.
 
6995
# Some systems (esp. on ia64) link data and code symbols differently,
 
6996
# so use this general approach.
 
6997
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6998
 
 
6999
# Transform an extracted symbol line into symbol name and symbol address
 
7000
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
7001
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
7002
 
 
7003
# Handle CRLF in mingw tool chain
 
7004
opt_cr=
 
7005
case $build_os in
 
7006
mingw*)
 
7007
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
7008
  ;;
 
7009
esac
 
7010
 
 
7011
# Try without a prefix underscore, then with it.
 
7012
for ac_symprfx in "" "_"; do
 
7013
 
 
7014
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
7015
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
7016
 
 
7017
  # Write the raw and C identifiers.
 
7018
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
7019
    # Fake it for dumpbin and say T for any non-static function
 
7020
    # and D for any global variable.
 
7021
    # Also find C++ and __fastcall symbols from MSVC++,
 
7022
    # which start with @ or ?.
 
7023
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
7024
"     {last_section=section; section=\$ 3};"\
 
7025
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
7026
"     \$ 0!~/External *\|/{next};"\
 
7027
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
7028
"     {if(hide[section]) next};"\
 
7029
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
7030
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
7031
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
7032
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
7033
"     ' prfx=^$ac_symprfx"
 
7034
  else
 
7035
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
7036
  fi
 
7037
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
 
7038
 
 
7039
  # Check to see that the pipe works correctly.
 
7040
  pipe_works=no
 
7041
 
 
7042
  rm -f conftest*
 
7043
  cat > conftest.$ac_ext <<_LT_EOF
 
7044
#ifdef __cplusplus
 
7045
extern "C" {
 
7046
#endif
 
7047
char nm_test_var;
 
7048
void nm_test_func(void);
 
7049
void nm_test_func(void){}
 
7050
#ifdef __cplusplus
 
7051
}
 
7052
#endif
 
7053
int main(){nm_test_var='a';nm_test_func();return(0);}
 
7054
_LT_EOF
 
7055
 
 
7056
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7057
  (eval $ac_compile) 2>&5
 
7058
  ac_status=$?
 
7059
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7060
  test $ac_status = 0; }; then
 
7061
    # Now try to grab the symbols.
 
7062
    nlist=conftest.nm
 
7063
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
 
7064
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
 
7065
  ac_status=$?
 
7066
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7067
  test $ac_status = 0; } && test -s "$nlist"; then
 
7068
      # Try sorting and uniquifying the output.
 
7069
      if sort "$nlist" | uniq > "$nlist"T; then
 
7070
        mv -f "$nlist"T "$nlist"
 
7071
      else
 
7072
        rm -f "$nlist"T
 
7073
      fi
 
7074
 
 
7075
      # Make sure that we snagged all the symbols we need.
 
7076
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
7077
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
7078
          cat <<_LT_EOF > conftest.$ac_ext
 
7079
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
7080
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
7081
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
7082
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
7083
# define LT_DLSYM_CONST
 
7084
#elif defined(__osf__)
 
7085
/* This system does not cope well with relocations in const data.  */
 
7086
# define LT_DLSYM_CONST
 
7087
#else
 
7088
# define LT_DLSYM_CONST const
 
7089
#endif
 
7090
 
 
7091
#ifdef __cplusplus
 
7092
extern "C" {
 
7093
#endif
 
7094
 
 
7095
_LT_EOF
 
7096
          # Now generate the symbol file.
 
7097
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
7098
 
 
7099
          cat <<_LT_EOF >> conftest.$ac_ext
 
7100
 
 
7101
/* The mapping between symbol names and symbols.  */
 
7102
LT_DLSYM_CONST struct {
 
7103
  const char *name;
 
7104
  void       *address;
 
7105
}
 
7106
lt__PROGRAM__LTX_preloaded_symbols[] =
 
7107
{
 
7108
  { "@PROGRAM@", (void *) 0 },
 
7109
_LT_EOF
 
7110
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
7111
          cat <<\_LT_EOF >> conftest.$ac_ext
 
7112
  {0, (void *) 0}
 
7113
};
 
7114
 
 
7115
/* This works around a problem in FreeBSD linker */
 
7116
#ifdef FREEBSD_WORKAROUND
 
7117
static const void *lt_preloaded_setup() {
 
7118
  return lt__PROGRAM__LTX_preloaded_symbols;
 
7119
}
 
7120
#endif
 
7121
 
 
7122
#ifdef __cplusplus
 
7123
}
 
7124
#endif
 
7125
_LT_EOF
 
7126
          # Now try linking the two files.
 
7127
          mv conftest.$ac_objext conftstm.$ac_objext
 
7128
          lt_globsym_save_LIBS=$LIBS
 
7129
          lt_globsym_save_CFLAGS=$CFLAGS
 
7130
          LIBS="conftstm.$ac_objext"
 
7131
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
7132
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
7133
  (eval $ac_link) 2>&5
 
7134
  ac_status=$?
 
7135
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7136
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 
7137
            pipe_works=yes
 
7138
          fi
 
7139
          LIBS=$lt_globsym_save_LIBS
 
7140
          CFLAGS=$lt_globsym_save_CFLAGS
 
7141
        else
 
7142
          echo "cannot find nm_test_func in $nlist" >&5
 
7143
        fi
 
7144
      else
 
7145
        echo "cannot find nm_test_var in $nlist" >&5
 
7146
      fi
 
7147
    else
 
7148
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
7149
    fi
 
7150
  else
 
7151
    echo "$progname: failed program was:" >&5
 
7152
    cat conftest.$ac_ext >&5
 
7153
  fi
 
7154
  rm -rf conftest* conftst*
 
7155
 
 
7156
  # Do not use the global_symbol_pipe unless it works.
 
7157
  if test "$pipe_works" = yes; then
 
7158
    break
 
7159
  else
 
7160
    lt_cv_sys_global_symbol_pipe=
 
7161
  fi
 
7162
done
 
7163
 
 
7164
fi
 
7165
 
 
7166
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
7167
  lt_cv_sys_global_symbol_to_cdecl=
 
7168
fi
 
7169
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
7170
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
7171
$as_echo "failed" >&6; }
 
7172
else
 
7173
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
7174
$as_echo "ok" >&6; }
 
7175
fi
 
7176
 
 
7177
# Response file support.
 
7178
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
7179
  nm_file_list_spec='@'
 
7180
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
 
7181
  nm_file_list_spec='@'
 
7182
fi
 
7183
 
 
7184
 
 
7185
 
 
7186
 
 
7187
 
 
7188
 
 
7189
 
 
7190
 
 
7191
 
 
7192
 
 
7193
 
 
7194
 
 
7195
 
 
7196
 
 
7197
 
 
7198
 
 
7199
 
 
7200
 
 
7201
 
 
7202
 
 
7203
 
 
7204
 
 
7205
 
 
7206
 
 
7207
 
 
7208
 
 
7209
 
 
7210
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
 
7211
$as_echo_n "checking for sysroot... " >&6; }
 
7212
 
 
7213
# Check whether --with-sysroot was given.
 
7214
if test "${with_sysroot+set}" = set; then :
 
7215
  withval=$with_sysroot;
 
7216
else
 
7217
  with_sysroot=no
 
7218
fi
 
7219
 
 
7220
 
 
7221
lt_sysroot=
 
7222
case ${with_sysroot} in #(
 
7223
 yes)
 
7224
   if test "$GCC" = yes; then
 
7225
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
7226
   fi
 
7227
   ;; #(
 
7228
 /*)
 
7229
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
7230
   ;; #(
 
7231
 no|'')
 
7232
   ;; #(
 
7233
 *)
 
7234
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
 
7235
$as_echo "${with_sysroot}" >&6; }
 
7236
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
 
7237
   ;;
 
7238
esac
 
7239
 
 
7240
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
 
7241
$as_echo "${lt_sysroot:-no}" >&6; }
 
7242
 
 
7243
 
 
7244
 
 
7245
 
 
7246
 
 
7247
# Check whether --enable-libtool-lock was given.
 
7248
if test "${enable_libtool_lock+set}" = set; then :
 
7249
  enableval=$enable_libtool_lock;
 
7250
fi
 
7251
 
 
7252
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7253
 
 
7254
# Some flags need to be propagated to the compiler or linker for good
 
7255
# libtool support.
 
7256
case $host in
 
7257
ia64-*-hpux*)
 
7258
  # Find out which ABI we are using.
 
7259
  echo 'int i;' > conftest.$ac_ext
 
7260
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7261
  (eval $ac_compile) 2>&5
 
7262
  ac_status=$?
 
7263
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7264
  test $ac_status = 0; }; then
 
7265
    case `/usr/bin/file conftest.$ac_objext` in
 
7266
      *ELF-32*)
 
7267
        HPUX_IA64_MODE="32"
 
7268
        ;;
 
7269
      *ELF-64*)
 
7270
        HPUX_IA64_MODE="64"
 
7271
        ;;
 
7272
    esac
 
7273
  fi
 
7274
  rm -rf conftest*
 
7275
  ;;
 
7276
*-*-irix6*)
 
7277
  # Find out which ABI we are using.
 
7278
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
 
7279
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7280
  (eval $ac_compile) 2>&5
 
7281
  ac_status=$?
 
7282
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7283
  test $ac_status = 0; }; then
 
7284
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
7285
      case `/usr/bin/file conftest.$ac_objext` in
 
7286
        *32-bit*)
 
7287
          LD="${LD-ld} -melf32bsmip"
 
7288
          ;;
 
7289
        *N32*)
 
7290
          LD="${LD-ld} -melf32bmipn32"
 
7291
          ;;
 
7292
        *64-bit*)
 
7293
          LD="${LD-ld} -melf64bmip"
 
7294
        ;;
 
7295
      esac
 
7296
    else
 
7297
      case `/usr/bin/file conftest.$ac_objext` in
 
7298
        *32-bit*)
 
7299
          LD="${LD-ld} -32"
 
7300
          ;;
 
7301
        *N32*)
 
7302
          LD="${LD-ld} -n32"
 
7303
          ;;
 
7304
        *64-bit*)
 
7305
          LD="${LD-ld} -64"
 
7306
          ;;
 
7307
      esac
 
7308
    fi
 
7309
  fi
 
7310
  rm -rf conftest*
 
7311
  ;;
 
7312
 
 
7313
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
7314
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
7315
  # Find out which ABI we are using.
 
7316
  echo 'int i;' > conftest.$ac_ext
 
7317
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7318
  (eval $ac_compile) 2>&5
 
7319
  ac_status=$?
 
7320
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7321
  test $ac_status = 0; }; then
 
7322
    case `/usr/bin/file conftest.o` in
 
7323
      *32-bit*)
 
7324
        case $host in
 
7325
          x86_64-*kfreebsd*-gnu)
 
7326
            LD="${LD-ld} -m elf_i386_fbsd"
 
7327
            ;;
 
7328
          x86_64-*linux*)
 
7329
            LD="${LD-ld} -m elf_i386"
 
7330
            ;;
 
7331
          ppc64-*linux*|powerpc64-*linux*)
 
7332
            LD="${LD-ld} -m elf32ppclinux"
 
7333
            ;;
 
7334
          s390x-*linux*)
 
7335
            LD="${LD-ld} -m elf_s390"
 
7336
            ;;
 
7337
          sparc64-*linux*)
 
7338
            LD="${LD-ld} -m elf32_sparc"
 
7339
            ;;
 
7340
        esac
 
7341
        ;;
 
7342
      *64-bit*)
 
7343
        case $host in
 
7344
          x86_64-*kfreebsd*-gnu)
 
7345
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
7346
            ;;
 
7347
          x86_64-*linux*)
 
7348
            LD="${LD-ld} -m elf_x86_64"
 
7349
            ;;
 
7350
          ppc*-*linux*|powerpc*-*linux*)
 
7351
            LD="${LD-ld} -m elf64ppc"
 
7352
            ;;
 
7353
          s390*-*linux*|s390*-*tpf*)
 
7354
            LD="${LD-ld} -m elf64_s390"
 
7355
            ;;
 
7356
          sparc*-*linux*)
 
7357
            LD="${LD-ld} -m elf64_sparc"
 
7358
            ;;
 
7359
        esac
 
7360
        ;;
 
7361
    esac
 
7362
  fi
 
7363
  rm -rf conftest*
 
7364
  ;;
 
7365
 
 
7366
*-*-sco3.2v5*)
 
7367
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
7368
  SAVE_CFLAGS="$CFLAGS"
 
7369
  CFLAGS="$CFLAGS -belf"
 
7370
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
7371
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
7372
if test "${lt_cv_cc_needs_belf+set}" = set; then :
 
7373
  $as_echo_n "(cached) " >&6
 
7374
else
 
7375
  ac_ext=c
 
7376
ac_cpp='$CPP $CPPFLAGS'
 
7377
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7378
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7379
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7380
 
 
7381
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7382
/* end confdefs.h.  */
 
7383
 
 
7384
int
 
7385
main ()
 
7386
{
 
7387
 
 
7388
  ;
 
7389
  return 0;
 
7390
}
 
7391
_ACEOF
 
7392
if ac_fn_c_try_link "$LINENO"; then :
 
7393
  lt_cv_cc_needs_belf=yes
 
7394
else
 
7395
  lt_cv_cc_needs_belf=no
 
7396
fi
 
7397
rm -f core conftest.err conftest.$ac_objext \
 
7398
    conftest$ac_exeext conftest.$ac_ext
 
7399
     ac_ext=c
 
7400
ac_cpp='$CPP $CPPFLAGS'
 
7401
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7402
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7403
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7404
 
 
7405
fi
 
7406
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
7407
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
7408
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
7409
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
7410
    CFLAGS="$SAVE_CFLAGS"
 
7411
  fi
 
7412
  ;;
 
7413
sparc*-*solaris*)
 
7414
  # Find out which ABI we are using.
 
7415
  echo 'int i;' > conftest.$ac_ext
 
7416
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7417
  (eval $ac_compile) 2>&5
 
7418
  ac_status=$?
 
7419
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7420
  test $ac_status = 0; }; then
 
7421
    case `/usr/bin/file conftest.o` in
 
7422
    *64-bit*)
 
7423
      case $lt_cv_prog_gnu_ld in
 
7424
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
7425
      *)
 
7426
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
7427
          LD="${LD-ld} -64"
 
7428
        fi
 
7429
        ;;
 
7430
      esac
 
7431
      ;;
 
7432
    esac
 
7433
  fi
 
7434
  rm -rf conftest*
 
7435
  ;;
 
7436
esac
 
7437
 
 
7438
need_locks="$enable_libtool_lock"
 
7439
 
 
7440
if test -n "$ac_tool_prefix"; then
 
7441
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
 
7442
set dummy ${ac_tool_prefix}mt; ac_word=$2
 
7443
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7444
$as_echo_n "checking for $ac_word... " >&6; }
 
7445
if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then :
 
7446
  $as_echo_n "(cached) " >&6
 
7447
else
 
7448
  if test -n "$MANIFEST_TOOL"; then
 
7449
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
 
7450
else
 
7451
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7452
for as_dir in $PATH
 
7453
do
 
7454
  IFS=$as_save_IFS
 
7455
  test -z "$as_dir" && as_dir=.
 
7456
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7457
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7458
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
 
7459
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7460
    break 2
 
7461
  fi
 
7462
done
 
7463
  done
 
7464
IFS=$as_save_IFS
 
7465
 
 
7466
fi
 
7467
fi
 
7468
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
 
7469
if test -n "$MANIFEST_TOOL"; then
 
7470
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
 
7471
$as_echo "$MANIFEST_TOOL" >&6; }
 
7472
else
 
7473
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7474
$as_echo "no" >&6; }
 
7475
fi
 
7476
 
 
7477
 
 
7478
fi
 
7479
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
 
7480
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
 
7481
  # Extract the first word of "mt", so it can be a program name with args.
 
7482
set dummy mt; ac_word=$2
 
7483
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7484
$as_echo_n "checking for $ac_word... " >&6; }
 
7485
if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then :
 
7486
  $as_echo_n "(cached) " >&6
 
7487
else
 
7488
  if test -n "$ac_ct_MANIFEST_TOOL"; then
 
7489
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
 
7490
else
 
7491
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7492
for as_dir in $PATH
 
7493
do
 
7494
  IFS=$as_save_IFS
 
7495
  test -z "$as_dir" && as_dir=.
 
7496
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7497
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7498
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
 
7499
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7500
    break 2
 
7501
  fi
 
7502
done
 
7503
  done
 
7504
IFS=$as_save_IFS
 
7505
 
 
7506
fi
 
7507
fi
 
7508
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
 
7509
if test -n "$ac_ct_MANIFEST_TOOL"; then
 
7510
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
 
7511
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
 
7512
else
 
7513
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7514
$as_echo "no" >&6; }
 
7515
fi
 
7516
 
 
7517
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
 
7518
    MANIFEST_TOOL=":"
 
7519
  else
 
7520
    case $cross_compiling:$ac_tool_warned in
 
7521
yes:)
 
7522
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7523
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7524
ac_tool_warned=yes ;;
 
7525
esac
 
7526
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
 
7527
  fi
 
7528
else
 
7529
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
 
7530
fi
 
7531
 
 
7532
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
7533
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
 
7534
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
 
7535
if test "${lt_cv_path_mainfest_tool+set}" = set; then :
 
7536
  $as_echo_n "(cached) " >&6
 
7537
else
 
7538
  lt_cv_path_mainfest_tool=no
 
7539
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
 
7540
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
7541
  cat conftest.err >&5
 
7542
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
7543
    lt_cv_path_mainfest_tool=yes
 
7544
  fi
 
7545
  rm -f conftest*
 
7546
fi
 
7547
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
 
7548
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
 
7549
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
7550
  MANIFEST_TOOL=:
 
7551
fi
 
7552
 
 
7553
 
 
7554
 
 
7555
 
 
7556
 
 
7557
 
 
7558
  case $host_os in
 
7559
    rhapsody* | darwin*)
 
7560
    if test -n "$ac_tool_prefix"; then
 
7561
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
7562
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
7563
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7564
$as_echo_n "checking for $ac_word... " >&6; }
 
7565
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
 
7566
  $as_echo_n "(cached) " >&6
 
7567
else
 
7568
  if test -n "$DSYMUTIL"; then
 
7569
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
7570
else
 
7571
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7572
for as_dir in $PATH
 
7573
do
 
7574
  IFS=$as_save_IFS
 
7575
  test -z "$as_dir" && as_dir=.
 
7576
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7577
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7578
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
7579
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7580
    break 2
 
7581
  fi
 
7582
done
 
7583
  done
 
7584
IFS=$as_save_IFS
 
7585
 
 
7586
fi
 
7587
fi
 
7588
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
7589
if test -n "$DSYMUTIL"; then
 
7590
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
7591
$as_echo "$DSYMUTIL" >&6; }
 
7592
else
 
7593
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7594
$as_echo "no" >&6; }
 
7595
fi
 
7596
 
 
7597
 
 
7598
fi
 
7599
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
7600
  ac_ct_DSYMUTIL=$DSYMUTIL
 
7601
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
7602
set dummy dsymutil; ac_word=$2
 
7603
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7604
$as_echo_n "checking for $ac_word... " >&6; }
 
7605
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
 
7606
  $as_echo_n "(cached) " >&6
 
7607
else
 
7608
  if test -n "$ac_ct_DSYMUTIL"; then
 
7609
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
7610
else
 
7611
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7612
for as_dir in $PATH
 
7613
do
 
7614
  IFS=$as_save_IFS
 
7615
  test -z "$as_dir" && as_dir=.
 
7616
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7617
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7618
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
7619
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7620
    break 2
 
7621
  fi
 
7622
done
 
7623
  done
 
7624
IFS=$as_save_IFS
 
7625
 
 
7626
fi
 
7627
fi
 
7628
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
7629
if test -n "$ac_ct_DSYMUTIL"; then
 
7630
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
7631
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
7632
else
 
7633
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7634
$as_echo "no" >&6; }
 
7635
fi
 
7636
 
 
7637
  if test "x$ac_ct_DSYMUTIL" = x; then
 
7638
    DSYMUTIL=":"
 
7639
  else
 
7640
    case $cross_compiling:$ac_tool_warned in
 
7641
yes:)
 
7642
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7643
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7644
ac_tool_warned=yes ;;
 
7645
esac
 
7646
    DSYMUTIL=$ac_ct_DSYMUTIL
 
7647
  fi
 
7648
else
 
7649
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
7650
fi
 
7651
 
 
7652
    if test -n "$ac_tool_prefix"; then
 
7653
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
7654
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
7655
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7656
$as_echo_n "checking for $ac_word... " >&6; }
 
7657
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
 
7658
  $as_echo_n "(cached) " >&6
 
7659
else
 
7660
  if test -n "$NMEDIT"; then
 
7661
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
7662
else
 
7663
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7664
for as_dir in $PATH
 
7665
do
 
7666
  IFS=$as_save_IFS
 
7667
  test -z "$as_dir" && as_dir=.
 
7668
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7669
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7670
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
7671
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7672
    break 2
 
7673
  fi
 
7674
done
 
7675
  done
 
7676
IFS=$as_save_IFS
 
7677
 
 
7678
fi
 
7679
fi
 
7680
NMEDIT=$ac_cv_prog_NMEDIT
 
7681
if test -n "$NMEDIT"; then
 
7682
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
7683
$as_echo "$NMEDIT" >&6; }
 
7684
else
 
7685
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7686
$as_echo "no" >&6; }
 
7687
fi
 
7688
 
 
7689
 
 
7690
fi
 
7691
if test -z "$ac_cv_prog_NMEDIT"; then
 
7692
  ac_ct_NMEDIT=$NMEDIT
 
7693
  # Extract the first word of "nmedit", so it can be a program name with args.
 
7694
set dummy nmedit; ac_word=$2
 
7695
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7696
$as_echo_n "checking for $ac_word... " >&6; }
 
7697
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
 
7698
  $as_echo_n "(cached) " >&6
 
7699
else
 
7700
  if test -n "$ac_ct_NMEDIT"; then
 
7701
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
7702
else
 
7703
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7704
for as_dir in $PATH
 
7705
do
 
7706
  IFS=$as_save_IFS
 
7707
  test -z "$as_dir" && as_dir=.
 
7708
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7709
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7710
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
7711
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7712
    break 2
 
7713
  fi
 
7714
done
 
7715
  done
 
7716
IFS=$as_save_IFS
 
7717
 
 
7718
fi
 
7719
fi
 
7720
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
7721
if test -n "$ac_ct_NMEDIT"; then
 
7722
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
7723
$as_echo "$ac_ct_NMEDIT" >&6; }
 
7724
else
 
7725
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7726
$as_echo "no" >&6; }
 
7727
fi
 
7728
 
 
7729
  if test "x$ac_ct_NMEDIT" = x; then
 
7730
    NMEDIT=":"
 
7731
  else
 
7732
    case $cross_compiling:$ac_tool_warned in
 
7733
yes:)
 
7734
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7735
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7736
ac_tool_warned=yes ;;
 
7737
esac
 
7738
    NMEDIT=$ac_ct_NMEDIT
 
7739
  fi
 
7740
else
 
7741
  NMEDIT="$ac_cv_prog_NMEDIT"
 
7742
fi
 
7743
 
 
7744
    if test -n "$ac_tool_prefix"; then
 
7745
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
7746
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
7747
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7748
$as_echo_n "checking for $ac_word... " >&6; }
 
7749
if test "${ac_cv_prog_LIPO+set}" = set; then :
 
7750
  $as_echo_n "(cached) " >&6
 
7751
else
 
7752
  if test -n "$LIPO"; then
 
7753
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
7754
else
 
7755
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7756
for as_dir in $PATH
 
7757
do
 
7758
  IFS=$as_save_IFS
 
7759
  test -z "$as_dir" && as_dir=.
 
7760
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7761
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7762
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
7763
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7764
    break 2
 
7765
  fi
 
7766
done
 
7767
  done
 
7768
IFS=$as_save_IFS
 
7769
 
 
7770
fi
 
7771
fi
 
7772
LIPO=$ac_cv_prog_LIPO
 
7773
if test -n "$LIPO"; then
 
7774
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
7775
$as_echo "$LIPO" >&6; }
 
7776
else
 
7777
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7778
$as_echo "no" >&6; }
 
7779
fi
 
7780
 
 
7781
 
 
7782
fi
 
7783
if test -z "$ac_cv_prog_LIPO"; then
 
7784
  ac_ct_LIPO=$LIPO
 
7785
  # Extract the first word of "lipo", so it can be a program name with args.
 
7786
set dummy lipo; ac_word=$2
 
7787
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7788
$as_echo_n "checking for $ac_word... " >&6; }
 
7789
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
 
7790
  $as_echo_n "(cached) " >&6
 
7791
else
 
7792
  if test -n "$ac_ct_LIPO"; then
 
7793
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
7794
else
 
7795
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7796
for as_dir in $PATH
 
7797
do
 
7798
  IFS=$as_save_IFS
 
7799
  test -z "$as_dir" && as_dir=.
 
7800
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7801
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7802
    ac_cv_prog_ac_ct_LIPO="lipo"
 
7803
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7804
    break 2
 
7805
  fi
 
7806
done
 
7807
  done
 
7808
IFS=$as_save_IFS
 
7809
 
 
7810
fi
 
7811
fi
 
7812
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
7813
if test -n "$ac_ct_LIPO"; then
 
7814
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
7815
$as_echo "$ac_ct_LIPO" >&6; }
 
7816
else
 
7817
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7818
$as_echo "no" >&6; }
 
7819
fi
 
7820
 
 
7821
  if test "x$ac_ct_LIPO" = x; then
 
7822
    LIPO=":"
 
7823
  else
 
7824
    case $cross_compiling:$ac_tool_warned in
 
7825
yes:)
 
7826
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7827
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7828
ac_tool_warned=yes ;;
 
7829
esac
 
7830
    LIPO=$ac_ct_LIPO
 
7831
  fi
 
7832
else
 
7833
  LIPO="$ac_cv_prog_LIPO"
 
7834
fi
 
7835
 
 
7836
    if test -n "$ac_tool_prefix"; then
 
7837
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
7838
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
7839
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7840
$as_echo_n "checking for $ac_word... " >&6; }
 
7841
if test "${ac_cv_prog_OTOOL+set}" = set; then :
 
7842
  $as_echo_n "(cached) " >&6
 
7843
else
 
7844
  if test -n "$OTOOL"; then
 
7845
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
7846
else
 
7847
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7848
for as_dir in $PATH
 
7849
do
 
7850
  IFS=$as_save_IFS
 
7851
  test -z "$as_dir" && as_dir=.
 
7852
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7853
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7854
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
7855
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7856
    break 2
 
7857
  fi
 
7858
done
 
7859
  done
 
7860
IFS=$as_save_IFS
 
7861
 
 
7862
fi
 
7863
fi
 
7864
OTOOL=$ac_cv_prog_OTOOL
 
7865
if test -n "$OTOOL"; then
 
7866
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
7867
$as_echo "$OTOOL" >&6; }
 
7868
else
 
7869
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7870
$as_echo "no" >&6; }
 
7871
fi
 
7872
 
 
7873
 
 
7874
fi
 
7875
if test -z "$ac_cv_prog_OTOOL"; then
 
7876
  ac_ct_OTOOL=$OTOOL
 
7877
  # Extract the first word of "otool", so it can be a program name with args.
 
7878
set dummy otool; ac_word=$2
 
7879
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7880
$as_echo_n "checking for $ac_word... " >&6; }
 
7881
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
 
7882
  $as_echo_n "(cached) " >&6
 
7883
else
 
7884
  if test -n "$ac_ct_OTOOL"; then
 
7885
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
7886
else
 
7887
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7888
for as_dir in $PATH
 
7889
do
 
7890
  IFS=$as_save_IFS
 
7891
  test -z "$as_dir" && as_dir=.
 
7892
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7893
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7894
    ac_cv_prog_ac_ct_OTOOL="otool"
 
7895
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7896
    break 2
 
7897
  fi
 
7898
done
 
7899
  done
 
7900
IFS=$as_save_IFS
 
7901
 
 
7902
fi
 
7903
fi
 
7904
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
7905
if test -n "$ac_ct_OTOOL"; then
 
7906
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
7907
$as_echo "$ac_ct_OTOOL" >&6; }
 
7908
else
 
7909
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7910
$as_echo "no" >&6; }
 
7911
fi
 
7912
 
 
7913
  if test "x$ac_ct_OTOOL" = x; then
 
7914
    OTOOL=":"
 
7915
  else
 
7916
    case $cross_compiling:$ac_tool_warned in
 
7917
yes:)
 
7918
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7919
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7920
ac_tool_warned=yes ;;
 
7921
esac
 
7922
    OTOOL=$ac_ct_OTOOL
 
7923
  fi
 
7924
else
 
7925
  OTOOL="$ac_cv_prog_OTOOL"
 
7926
fi
 
7927
 
 
7928
    if test -n "$ac_tool_prefix"; then
 
7929
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
7930
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
7931
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7932
$as_echo_n "checking for $ac_word... " >&6; }
 
7933
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
 
7934
  $as_echo_n "(cached) " >&6
 
7935
else
 
7936
  if test -n "$OTOOL64"; then
 
7937
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
7938
else
 
7939
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7940
for as_dir in $PATH
 
7941
do
 
7942
  IFS=$as_save_IFS
 
7943
  test -z "$as_dir" && as_dir=.
 
7944
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7945
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7946
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
7947
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7948
    break 2
 
7949
  fi
 
7950
done
 
7951
  done
 
7952
IFS=$as_save_IFS
 
7953
 
 
7954
fi
 
7955
fi
 
7956
OTOOL64=$ac_cv_prog_OTOOL64
 
7957
if test -n "$OTOOL64"; then
 
7958
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
7959
$as_echo "$OTOOL64" >&6; }
 
7960
else
 
7961
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7962
$as_echo "no" >&6; }
 
7963
fi
 
7964
 
 
7965
 
 
7966
fi
 
7967
if test -z "$ac_cv_prog_OTOOL64"; then
 
7968
  ac_ct_OTOOL64=$OTOOL64
 
7969
  # Extract the first word of "otool64", so it can be a program name with args.
 
7970
set dummy otool64; ac_word=$2
 
7971
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7972
$as_echo_n "checking for $ac_word... " >&6; }
 
7973
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
 
7974
  $as_echo_n "(cached) " >&6
 
7975
else
 
7976
  if test -n "$ac_ct_OTOOL64"; then
 
7977
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
7978
else
 
7979
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7980
for as_dir in $PATH
 
7981
do
 
7982
  IFS=$as_save_IFS
 
7983
  test -z "$as_dir" && as_dir=.
 
7984
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7985
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7986
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
7987
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7988
    break 2
 
7989
  fi
 
7990
done
 
7991
  done
 
7992
IFS=$as_save_IFS
 
7993
 
 
7994
fi
 
7995
fi
 
7996
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
7997
if test -n "$ac_ct_OTOOL64"; then
 
7998
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
7999
$as_echo "$ac_ct_OTOOL64" >&6; }
 
8000
else
 
8001
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8002
$as_echo "no" >&6; }
 
8003
fi
 
8004
 
 
8005
  if test "x$ac_ct_OTOOL64" = x; then
 
8006
    OTOOL64=":"
 
8007
  else
 
8008
    case $cross_compiling:$ac_tool_warned in
 
8009
yes:)
 
8010
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8011
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8012
ac_tool_warned=yes ;;
 
8013
esac
 
8014
    OTOOL64=$ac_ct_OTOOL64
 
8015
  fi
 
8016
else
 
8017
  OTOOL64="$ac_cv_prog_OTOOL64"
 
8018
fi
 
8019
 
 
8020
 
 
8021
 
 
8022
 
 
8023
 
 
8024
 
 
8025
 
 
8026
 
 
8027
 
 
8028
 
 
8029
 
 
8030
 
 
8031
 
 
8032
 
 
8033
 
 
8034
 
 
8035
 
 
8036
 
 
8037
 
 
8038
 
 
8039
 
 
8040
 
 
8041
 
 
8042
 
 
8043
 
 
8044
 
 
8045
 
 
8046
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
8047
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
8048
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
 
8049
  $as_echo_n "(cached) " >&6
 
8050
else
 
8051
  lt_cv_apple_cc_single_mod=no
 
8052
      if test -z "${LT_MULTI_MODULE}"; then
 
8053
        # By default we will add the -single_module flag. You can override
 
8054
        # by either setting the environment variable LT_MULTI_MODULE
 
8055
        # non-empty at configure time, or by adding -multi_module to the
 
8056
        # link flags.
 
8057
        rm -rf libconftest.dylib*
 
8058
        echo "int foo(void){return 1;}" > conftest.c
 
8059
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
8060
-dynamiclib -Wl,-single_module conftest.c" >&5
 
8061
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
8062
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
8063
        _lt_result=$?
 
8064
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
8065
          lt_cv_apple_cc_single_mod=yes
 
8066
        else
 
8067
          cat conftest.err >&5
 
8068
        fi
 
8069
        rm -rf libconftest.dylib*
 
8070
        rm -f conftest.*
 
8071
      fi
 
8072
fi
 
8073
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
8074
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
8075
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
8076
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
8077
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
 
8078
  $as_echo_n "(cached) " >&6
 
8079
else
 
8080
  lt_cv_ld_exported_symbols_list=no
 
8081
      save_LDFLAGS=$LDFLAGS
 
8082
      echo "_main" > conftest.sym
 
8083
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
8084
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8085
/* end confdefs.h.  */
 
8086
 
 
8087
int
 
8088
main ()
 
8089
{
 
8090
 
 
8091
  ;
 
8092
  return 0;
 
8093
}
 
8094
_ACEOF
 
8095
if ac_fn_c_try_link "$LINENO"; then :
 
8096
  lt_cv_ld_exported_symbols_list=yes
 
8097
else
 
8098
  lt_cv_ld_exported_symbols_list=no
 
8099
fi
 
8100
rm -f core conftest.err conftest.$ac_objext \
 
8101
    conftest$ac_exeext conftest.$ac_ext
 
8102
        LDFLAGS="$save_LDFLAGS"
 
8103
 
 
8104
fi
 
8105
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
8106
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
8107
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
 
8108
$as_echo_n "checking for -force_load linker flag... " >&6; }
 
8109
if test "${lt_cv_ld_force_load+set}" = set; then :
 
8110
  $as_echo_n "(cached) " >&6
 
8111
else
 
8112
  lt_cv_ld_force_load=no
 
8113
      cat > conftest.c << _LT_EOF
 
8114
int forced_loaded() { return 2;}
 
8115
_LT_EOF
 
8116
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
 
8117
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
 
8118
      echo "$AR cru libconftest.a conftest.o" >&5
 
8119
      $AR cru libconftest.a conftest.o 2>&5
 
8120
      echo "$RANLIB libconftest.a" >&5
 
8121
      $RANLIB libconftest.a 2>&5
 
8122
      cat > conftest.c << _LT_EOF
 
8123
int main() { return 0;}
 
8124
_LT_EOF
 
8125
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
 
8126
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
8127
      _lt_result=$?
 
8128
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
 
8129
        lt_cv_ld_force_load=yes
 
8130
      else
 
8131
        cat conftest.err >&5
 
8132
      fi
 
8133
        rm -f conftest.err libconftest.a conftest conftest.c
 
8134
        rm -rf conftest.dSYM
 
8135
 
 
8136
fi
 
8137
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
 
8138
$as_echo "$lt_cv_ld_force_load" >&6; }
 
8139
    case $host_os in
 
8140
    rhapsody* | darwin1.[012])
 
8141
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
8142
    darwin1.*)
 
8143
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
8144
    darwin*) # darwin 5.x on
 
8145
      # if running on 10.5 or later, the deployment target defaults
 
8146
      # to the OS version, if on x86, and 10.4, the deployment
 
8147
      # target defaults to 10.4. Don't you love it?
 
8148
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
8149
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
8150
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
8151
        10.[012]*)
 
8152
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
8153
        10.*)
 
8154
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
8155
      esac
 
8156
    ;;
 
8157
  esac
 
8158
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
8159
      _lt_dar_single_mod='$single_module'
 
8160
    fi
 
8161
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
8162
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
8163
    else
 
8164
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8165
    fi
 
8166
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
 
8167
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
8168
    else
 
8169
      _lt_dsymutil=
 
8170
    fi
 
8171
    ;;
 
8172
  esac
 
8173
 
 
8174
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
8175
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
8176
                  inttypes.h stdint.h unistd.h
 
8177
do :
 
8178
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8179
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
8180
"
 
8181
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
8182
  cat >>confdefs.h <<_ACEOF
 
8183
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8184
_ACEOF
 
8185
 
 
8186
fi
 
8187
 
 
8188
done
 
8189
 
 
8190
 
 
8191
for ac_header in dlfcn.h
 
8192
do :
 
8193
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
8194
"
 
8195
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
 
8196
  cat >>confdefs.h <<_ACEOF
 
8197
#define HAVE_DLFCN_H 1
 
8198
_ACEOF
 
8199
 
 
8200
fi
 
8201
 
 
8202
done
 
8203
 
 
8204
 
 
8205
 
 
8206
 
 
8207
 
 
8208
# Set options
 
8209
 
 
8210
 
 
8211
 
 
8212
        enable_dlopen=no
 
8213
 
 
8214
 
 
8215
  enable_win32_dll=no
 
8216
 
 
8217
 
 
8218
            # Check whether --enable-shared was given.
 
8219
if test "${enable_shared+set}" = set; then :
 
8220
  enableval=$enable_shared; p=${PACKAGE-default}
 
8221
    case $enableval in
 
8222
    yes) enable_shared=yes ;;
 
8223
    no) enable_shared=no ;;
 
8224
    *)
 
8225
      enable_shared=no
 
8226
      # Look at the argument we got.  We use all the common list separators.
 
8227
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8228
      for pkg in $enableval; do
 
8229
        IFS="$lt_save_ifs"
 
8230
        if test "X$pkg" = "X$p"; then
 
8231
          enable_shared=yes
 
8232
        fi
 
8233
      done
 
8234
      IFS="$lt_save_ifs"
 
8235
      ;;
 
8236
    esac
 
8237
else
 
8238
  enable_shared=yes
 
8239
fi
 
8240
 
 
8241
 
 
8242
 
 
8243
 
 
8244
 
 
8245
 
 
8246
 
 
8247
 
 
8248
 
 
8249
  # Check whether --enable-static was given.
 
8250
if test "${enable_static+set}" = set; then :
 
8251
  enableval=$enable_static; p=${PACKAGE-default}
 
8252
    case $enableval in
 
8253
    yes) enable_static=yes ;;
 
8254
    no) enable_static=no ;;
 
8255
    *)
 
8256
     enable_static=no
 
8257
      # Look at the argument we got.  We use all the common list separators.
 
8258
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8259
      for pkg in $enableval; do
 
8260
        IFS="$lt_save_ifs"
 
8261
        if test "X$pkg" = "X$p"; then
 
8262
          enable_static=yes
 
8263
        fi
 
8264
      done
 
8265
      IFS="$lt_save_ifs"
 
8266
      ;;
 
8267
    esac
 
8268
else
 
8269
  enable_static=yes
 
8270
fi
 
8271
 
 
8272
 
 
8273
 
 
8274
 
 
8275
 
 
8276
 
 
8277
 
 
8278
 
 
8279
 
 
8280
 
 
8281
# Check whether --with-pic was given.
 
8282
if test "${with_pic+set}" = set; then :
 
8283
  withval=$with_pic; pic_mode="$withval"
 
8284
else
 
8285
  pic_mode=default
 
8286
fi
 
8287
 
 
8288
 
 
8289
test -z "$pic_mode" && pic_mode=default
 
8290
 
 
8291
 
 
8292
 
 
8293
 
 
8294
 
 
8295
 
 
8296
 
 
8297
  # Check whether --enable-fast-install was given.
 
8298
if test "${enable_fast_install+set}" = set; then :
 
8299
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
8300
    case $enableval in
 
8301
    yes) enable_fast_install=yes ;;
 
8302
    no) enable_fast_install=no ;;
 
8303
    *)
 
8304
      enable_fast_install=no
 
8305
      # Look at the argument we got.  We use all the common list separators.
 
8306
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8307
      for pkg in $enableval; do
 
8308
        IFS="$lt_save_ifs"
 
8309
        if test "X$pkg" = "X$p"; then
 
8310
          enable_fast_install=yes
 
8311
        fi
 
8312
      done
 
8313
      IFS="$lt_save_ifs"
 
8314
      ;;
 
8315
    esac
 
8316
else
 
8317
  enable_fast_install=yes
 
8318
fi
 
8319
 
 
8320
 
 
8321
 
 
8322
 
 
8323
 
 
8324
 
 
8325
 
 
8326
 
 
8327
 
 
8328
 
 
8329
 
 
8330
# This can be used to rebuild libtool when needed
 
8331
LIBTOOL_DEPS="$ltmain"
 
8332
 
 
8333
# Always use our own libtool.
 
8334
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
8335
 
 
8336
 
 
8337
 
 
8338
 
 
8339
 
 
8340
 
 
8341
 
 
8342
 
 
8343
 
 
8344
 
 
8345
 
 
8346
 
 
8347
 
 
8348
 
 
8349
 
 
8350
 
 
8351
 
 
8352
 
 
8353
 
 
8354
 
 
8355
 
 
8356
 
 
8357
 
 
8358
 
 
8359
 
 
8360
 
 
8361
test -z "$LN_S" && LN_S="ln -s"
 
8362
 
 
8363
 
 
8364
 
 
8365
 
 
8366
 
 
8367
 
 
8368
 
 
8369
 
 
8370
 
 
8371
 
 
8372
 
 
8373
 
 
8374
 
 
8375
 
 
8376
if test -n "${ZSH_VERSION+set}" ; then
 
8377
   setopt NO_GLOB_SUBST
 
8378
fi
 
8379
 
 
8380
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
8381
$as_echo_n "checking for objdir... " >&6; }
 
8382
if test "${lt_cv_objdir+set}" = set; then :
 
8383
  $as_echo_n "(cached) " >&6
 
8384
else
 
8385
  rm -f .libs 2>/dev/null
 
8386
mkdir .libs 2>/dev/null
 
8387
if test -d .libs; then
 
8388
  lt_cv_objdir=.libs
 
8389
else
 
8390
  # MS-DOS does not allow filenames that begin with a dot.
 
8391
  lt_cv_objdir=_libs
 
8392
fi
 
8393
rmdir .libs 2>/dev/null
 
8394
fi
 
8395
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
8396
$as_echo "$lt_cv_objdir" >&6; }
 
8397
objdir=$lt_cv_objdir
 
8398
 
 
8399
 
 
8400
 
 
8401
 
 
8402
 
 
8403
cat >>confdefs.h <<_ACEOF
 
8404
#define LT_OBJDIR "$lt_cv_objdir/"
 
8405
_ACEOF
 
8406
 
 
8407
 
 
8408
 
 
8409
 
 
8410
case $host_os in
 
8411
aix3*)
 
8412
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
8413
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
8414
  # vanish in a puff of smoke.
 
8415
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
8416
    COLLECT_NAMES=
 
8417
    export COLLECT_NAMES
 
8418
  fi
 
8419
  ;;
 
8420
esac
 
8421
 
 
8422
# Global variables:
 
8423
ofile=libtool
 
8424
can_build_shared=yes
 
8425
 
 
8426
# All known linkers require a `.a' archive for static linking (except MSVC,
 
8427
# which needs '.lib').
 
8428
libext=a
 
8429
 
 
8430
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
8431
 
 
8432
old_CC="$CC"
 
8433
old_CFLAGS="$CFLAGS"
 
8434
 
 
8435
# Set sane defaults for various variables
 
8436
test -z "$CC" && CC=cc
 
8437
test -z "$LTCC" && LTCC=$CC
 
8438
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
8439
test -z "$LD" && LD=ld
 
8440
test -z "$ac_objext" && ac_objext=o
 
8441
 
 
8442
for cc_temp in $compiler""; do
 
8443
  case $cc_temp in
 
8444
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
8445
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
8446
    \-*) ;;
 
8447
    *) break;;
 
8448
  esac
 
8449
done
 
8450
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
8451
 
 
8452
 
 
8453
# Only perform the check for file, if the check method requires it
 
8454
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
8455
case $deplibs_check_method in
 
8456
file_magic*)
 
8457
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
8458
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
8459
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
8460
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
 
8461
  $as_echo_n "(cached) " >&6
 
8462
else
 
8463
  case $MAGIC_CMD in
 
8464
[\\/*] |  ?:[\\/]*)
 
8465
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8466
  ;;
 
8467
*)
 
8468
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8469
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8470
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8471
  for ac_dir in $ac_dummy; do
 
8472
    IFS="$lt_save_ifs"
 
8473
    test -z "$ac_dir" && ac_dir=.
 
8474
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
8475
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
8476
      if test -n "$file_magic_test_file"; then
 
8477
        case $deplibs_check_method in
 
8478
        "file_magic "*)
 
8479
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8480
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8481
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8482
            $EGREP "$file_magic_regex" > /dev/null; then
 
8483
            :
 
8484
          else
 
8485
            cat <<_LT_EOF 1>&2
 
8486
 
 
8487
*** Warning: the command libtool uses to detect shared libraries,
 
8488
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8489
*** The result is that libtool may fail to recognize shared libraries
 
8490
*** as such.  This will affect the creation of libtool libraries that
 
8491
*** depend on shared libraries, but programs linked with such libtool
 
8492
*** libraries will work regardless of this problem.  Nevertheless, you
 
8493
*** may want to report the problem to your system manager and/or to
 
8494
*** bug-libtool@gnu.org
 
8495
 
 
8496
_LT_EOF
 
8497
          fi ;;
 
8498
        esac
 
8499
      fi
 
8500
      break
 
8501
    fi
 
8502
  done
 
8503
  IFS="$lt_save_ifs"
 
8504
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8505
  ;;
 
8506
esac
 
8507
fi
 
8508
 
 
8509
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8510
if test -n "$MAGIC_CMD"; then
 
8511
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8512
$as_echo "$MAGIC_CMD" >&6; }
 
8513
else
 
8514
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8515
$as_echo "no" >&6; }
 
8516
fi
 
8517
 
 
8518
 
 
8519
 
 
8520
 
 
8521
 
 
8522
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
8523
  if test -n "$ac_tool_prefix"; then
 
8524
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
8525
$as_echo_n "checking for file... " >&6; }
 
8526
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
 
8527
  $as_echo_n "(cached) " >&6
 
8528
else
 
8529
  case $MAGIC_CMD in
 
8530
[\\/*] |  ?:[\\/]*)
 
8531
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8532
  ;;
 
8533
*)
 
8534
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8535
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8536
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8537
  for ac_dir in $ac_dummy; do
 
8538
    IFS="$lt_save_ifs"
 
8539
    test -z "$ac_dir" && ac_dir=.
 
8540
    if test -f $ac_dir/file; then
 
8541
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
8542
      if test -n "$file_magic_test_file"; then
 
8543
        case $deplibs_check_method in
 
8544
        "file_magic "*)
 
8545
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8546
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8547
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8548
            $EGREP "$file_magic_regex" > /dev/null; then
 
8549
            :
 
8550
          else
 
8551
            cat <<_LT_EOF 1>&2
 
8552
 
 
8553
*** Warning: the command libtool uses to detect shared libraries,
 
8554
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8555
*** The result is that libtool may fail to recognize shared libraries
 
8556
*** as such.  This will affect the creation of libtool libraries that
 
8557
*** depend on shared libraries, but programs linked with such libtool
 
8558
*** libraries will work regardless of this problem.  Nevertheless, you
 
8559
*** may want to report the problem to your system manager and/or to
 
8560
*** bug-libtool@gnu.org
 
8561
 
 
8562
_LT_EOF
 
8563
          fi ;;
 
8564
        esac
 
8565
      fi
 
8566
      break
 
8567
    fi
 
8568
  done
 
8569
  IFS="$lt_save_ifs"
 
8570
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8571
  ;;
 
8572
esac
 
8573
fi
 
8574
 
 
8575
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8576
if test -n "$MAGIC_CMD"; then
 
8577
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8578
$as_echo "$MAGIC_CMD" >&6; }
 
8579
else
 
8580
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8581
$as_echo "no" >&6; }
 
8582
fi
 
8583
 
 
8584
 
 
8585
  else
 
8586
    MAGIC_CMD=:
 
8587
  fi
 
8588
fi
 
8589
 
 
8590
  fi
 
8591
  ;;
 
8592
esac
 
8593
 
 
8594
# Use C for the default configuration in the libtool script
 
8595
 
 
8596
lt_save_CC="$CC"
 
8597
ac_ext=c
 
8598
ac_cpp='$CPP $CPPFLAGS'
 
8599
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8600
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8601
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8602
 
 
8603
 
 
8604
# Source file extension for C test sources.
 
8605
ac_ext=c
 
8606
 
 
8607
# Object file extension for compiled C test sources.
 
8608
objext=o
 
8609
objext=$objext
 
8610
 
 
8611
# Code to be used in simple compile tests
 
8612
lt_simple_compile_test_code="int some_variable = 0;"
 
8613
 
 
8614
# Code to be used in simple link tests
 
8615
lt_simple_link_test_code='int main(){return(0);}'
 
8616
 
 
8617
 
 
8618
 
 
8619
 
 
8620
 
 
8621
 
 
8622
 
 
8623
# If no C compiler was specified, use CC.
 
8624
LTCC=${LTCC-"$CC"}
 
8625
 
 
8626
# If no C compiler flags were specified, use CFLAGS.
 
8627
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
8628
 
 
8629
# Allow CC to be a program name with arguments.
 
8630
compiler=$CC
 
8631
 
 
8632
# Save the default compiler, since it gets overwritten when the other
 
8633
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
8634
compiler_DEFAULT=$CC
 
8635
 
 
8636
# save warnings/boilerplate of simple test code
 
8637
ac_outfile=conftest.$ac_objext
 
8638
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
8639
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
8640
_lt_compiler_boilerplate=`cat conftest.err`
 
8641
$RM conftest*
 
8642
 
 
8643
ac_outfile=conftest.$ac_objext
 
8644
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
8645
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
8646
_lt_linker_boilerplate=`cat conftest.err`
 
8647
$RM -r conftest*
 
8648
 
 
8649
 
 
8650
## CAVEAT EMPTOR:
 
8651
## There is no encapsulation within the following macros, do not change
 
8652
## the running order or otherwise move them around unless you know exactly
 
8653
## what you are doing...
 
8654
if test -n "$compiler"; then
 
8655
 
 
8656
lt_prog_compiler_no_builtin_flag=
 
8657
 
 
8658
if test "$GCC" = yes; then
 
8659
  case $cc_basename in
 
8660
  nvcc*)
 
8661
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
 
8662
  *)
 
8663
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
 
8664
  esac
 
8665
 
 
8666
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
8667
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
8668
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
 
8669
  $as_echo_n "(cached) " >&6
 
8670
else
 
8671
  lt_cv_prog_compiler_rtti_exceptions=no
 
8672
   ac_outfile=conftest.$ac_objext
 
8673
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8674
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
8675
   # Insert the option either (1) after the last *FLAGS variable, or
 
8676
   # (2) before a word containing "conftest.", or (3) at the end.
 
8677
   # Note that $ac_compile itself does not contain backslashes and begins
 
8678
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8679
   # The option is referenced via a variable to avoid confusing sed.
 
8680
   lt_compile=`echo "$ac_compile" | $SED \
 
8681
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8682
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8683
   -e 's:$: $lt_compiler_flag:'`
 
8684
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8685
   (eval "$lt_compile" 2>conftest.err)
 
8686
   ac_status=$?
 
8687
   cat conftest.err >&5
 
8688
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8689
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8690
     # The compiler can only warn and ignore the option if not recognized
 
8691
     # So say no if there are warnings other than the usual output.
 
8692
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
8693
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8694
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8695
       lt_cv_prog_compiler_rtti_exceptions=yes
 
8696
     fi
 
8697
   fi
 
8698
   $RM conftest*
 
8699
 
 
8700
fi
 
8701
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
8702
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
8703
 
 
8704
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
8705
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
8706
else
 
8707
    :
 
8708
fi
 
8709
 
 
8710
fi
 
8711
 
 
8712
 
 
8713
 
 
8714
 
 
8715
 
 
8716
 
 
8717
  lt_prog_compiler_wl=
 
8718
lt_prog_compiler_pic=
 
8719
lt_prog_compiler_static=
 
8720
 
 
8721
 
 
8722
  if test "$GCC" = yes; then
 
8723
    lt_prog_compiler_wl='-Wl,'
 
8724
    lt_prog_compiler_static='-static'
 
8725
 
 
8726
    case $host_os in
 
8727
      aix*)
 
8728
      # All AIX code is PIC.
 
8729
      if test "$host_cpu" = ia64; then
 
8730
        # AIX 5 now supports IA64 processor
 
8731
        lt_prog_compiler_static='-Bstatic'
 
8732
      fi
 
8733
      ;;
 
8734
 
 
8735
    amigaos*)
 
8736
      case $host_cpu in
 
8737
      powerpc)
 
8738
            # see comment about AmigaOS4 .so support
 
8739
            lt_prog_compiler_pic='-fPIC'
 
8740
        ;;
 
8741
      m68k)
 
8742
            # FIXME: we need at least 68020 code to build shared libraries, but
 
8743
            # adding the `-m68020' flag to GCC prevents building anything better,
 
8744
            # like `-m68040'.
 
8745
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
8746
        ;;
 
8747
      esac
 
8748
      ;;
 
8749
 
 
8750
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
8751
      # PIC is the default for these OSes.
 
8752
      ;;
 
8753
 
 
8754
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8755
      # This hack is so that the source file can tell whether it is being
 
8756
      # built for inclusion in a dll (and should export symbols for example).
 
8757
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
8758
      # (--disable-auto-import) libraries
 
8759
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8760
      ;;
 
8761
 
 
8762
    darwin* | rhapsody*)
 
8763
      # PIC is the default on this platform
 
8764
      # Common symbols not allowed in MH_DYLIB files
 
8765
      lt_prog_compiler_pic='-fno-common'
 
8766
      ;;
 
8767
 
 
8768
    haiku*)
 
8769
      # PIC is the default for Haiku.
 
8770
      # The "-static" flag exists, but is broken.
 
8771
      lt_prog_compiler_static=
 
8772
      ;;
 
8773
 
 
8774
    hpux*)
 
8775
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
8776
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
8777
      # sets the default TLS model and affects inlining.
 
8778
      case $host_cpu in
 
8779
      hppa*64*)
 
8780
        # +Z the default
 
8781
        ;;
 
8782
      *)
 
8783
        lt_prog_compiler_pic='-fPIC'
 
8784
        ;;
 
8785
      esac
 
8786
      ;;
 
8787
 
 
8788
    interix[3-9]*)
 
8789
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
8790
      # Instead, we relocate shared libraries at runtime.
 
8791
      ;;
 
8792
 
 
8793
    msdosdjgpp*)
 
8794
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
8795
      # on systems that don't support them.
 
8796
      lt_prog_compiler_can_build_shared=no
 
8797
      enable_shared=no
 
8798
      ;;
 
8799
 
 
8800
    *nto* | *qnx*)
 
8801
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8802
      # it will coredump.
 
8803
      lt_prog_compiler_pic='-fPIC -shared'
 
8804
      ;;
 
8805
 
 
8806
    sysv4*MP*)
 
8807
      if test -d /usr/nec; then
 
8808
        lt_prog_compiler_pic=-Kconform_pic
 
8809
      fi
 
8810
      ;;
 
8811
 
 
8812
    *)
 
8813
      lt_prog_compiler_pic='-fPIC'
 
8814
      ;;
 
8815
    esac
 
8816
 
 
8817
    case $cc_basename in
 
8818
    nvcc*) # Cuda Compiler Driver 2.2
 
8819
      lt_prog_compiler_wl='-Xlinker '
 
8820
      lt_prog_compiler_pic='-Xcompiler -fPIC'
 
8821
      ;;
 
8822
    esac
 
8823
  else
 
8824
    # PORTME Check for flag to pass linker flags through the system compiler.
 
8825
    case $host_os in
 
8826
    aix*)
 
8827
      lt_prog_compiler_wl='-Wl,'
 
8828
      if test "$host_cpu" = ia64; then
 
8829
        # AIX 5 now supports IA64 processor
 
8830
        lt_prog_compiler_static='-Bstatic'
 
8831
      else
 
8832
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
8833
      fi
 
8834
      ;;
 
8835
 
 
8836
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8837
      # This hack is so that the source file can tell whether it is being
 
8838
      # built for inclusion in a dll (and should export symbols for example).
 
8839
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8840
      ;;
 
8841
 
 
8842
    hpux9* | hpux10* | hpux11*)
 
8843
      lt_prog_compiler_wl='-Wl,'
 
8844
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8845
      # not for PA HP-UX.
 
8846
      case $host_cpu in
 
8847
      hppa*64*|ia64*)
 
8848
        # +Z the default
 
8849
        ;;
 
8850
      *)
 
8851
        lt_prog_compiler_pic='+Z'
 
8852
        ;;
 
8853
      esac
 
8854
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
8855
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
8856
      ;;
 
8857
 
 
8858
    irix5* | irix6* | nonstopux*)
 
8859
      lt_prog_compiler_wl='-Wl,'
 
8860
      # PIC (with -KPIC) is the default.
 
8861
      lt_prog_compiler_static='-non_shared'
 
8862
      ;;
 
8863
 
 
8864
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
8865
      case $cc_basename in
 
8866
      # old Intel for x86_64 which still supported -KPIC.
 
8867
      ecc*)
 
8868
        lt_prog_compiler_wl='-Wl,'
 
8869
        lt_prog_compiler_pic='-KPIC'
 
8870
        lt_prog_compiler_static='-static'
 
8871
        ;;
 
8872
      # icc used to be incompatible with GCC.
 
8873
      # ICC 10 doesn't accept -KPIC any more.
 
8874
      icc* | ifort*)
 
8875
        lt_prog_compiler_wl='-Wl,'
 
8876
        lt_prog_compiler_pic='-fPIC'
 
8877
        lt_prog_compiler_static='-static'
 
8878
        ;;
 
8879
      # Lahey Fortran 8.1.
 
8880
      lf95*)
 
8881
        lt_prog_compiler_wl='-Wl,'
 
8882
        lt_prog_compiler_pic='--shared'
 
8883
        lt_prog_compiler_static='--static'
 
8884
        ;;
 
8885
      nagfor*)
 
8886
        # NAG Fortran compiler
 
8887
        lt_prog_compiler_wl='-Wl,-Wl,,'
 
8888
        lt_prog_compiler_pic='-PIC'
 
8889
        lt_prog_compiler_static='-Bstatic'
 
8890
        ;;
 
8891
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
 
8892
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
8893
        # which looks to be a dead project)
 
8894
        lt_prog_compiler_wl='-Wl,'
 
8895
        lt_prog_compiler_pic='-fpic'
 
8896
        lt_prog_compiler_static='-Bstatic'
 
8897
        ;;
 
8898
      ccc*)
 
8899
        lt_prog_compiler_wl='-Wl,'
 
8900
        # All Alpha code is PIC.
 
8901
        lt_prog_compiler_static='-non_shared'
 
8902
        ;;
 
8903
      xl* | bgxl* | bgf* | mpixl*)
 
8904
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
 
8905
        lt_prog_compiler_wl='-Wl,'
 
8906
        lt_prog_compiler_pic='-qpic'
 
8907
        lt_prog_compiler_static='-qstaticlink'
 
8908
        ;;
 
8909
      *)
 
8910
        case `$CC -V 2>&1 | sed 5q` in
 
8911
        *Sun\ F* | *Sun*Fortran*)
 
8912
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
8913
          lt_prog_compiler_pic='-KPIC'
 
8914
          lt_prog_compiler_static='-Bstatic'
 
8915
          lt_prog_compiler_wl=''
 
8916
          ;;
 
8917
        *Sun\ C*)
 
8918
          # Sun C 5.9
 
8919
          lt_prog_compiler_pic='-KPIC'
 
8920
          lt_prog_compiler_static='-Bstatic'
 
8921
          lt_prog_compiler_wl='-Wl,'
 
8922
          ;;
 
8923
        esac
 
8924
        ;;
 
8925
      esac
 
8926
      ;;
 
8927
 
 
8928
    newsos6)
 
8929
      lt_prog_compiler_pic='-KPIC'
 
8930
      lt_prog_compiler_static='-Bstatic'
 
8931
      ;;
 
8932
 
 
8933
    *nto* | *qnx*)
 
8934
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8935
      # it will coredump.
 
8936
      lt_prog_compiler_pic='-fPIC -shared'
 
8937
      ;;
 
8938
 
 
8939
    osf3* | osf4* | osf5*)
 
8940
      lt_prog_compiler_wl='-Wl,'
 
8941
      # All OSF/1 code is PIC.
 
8942
      lt_prog_compiler_static='-non_shared'
 
8943
      ;;
 
8944
 
 
8945
    rdos*)
 
8946
      lt_prog_compiler_static='-non_shared'
 
8947
      ;;
 
8948
 
 
8949
    solaris*)
 
8950
      lt_prog_compiler_pic='-KPIC'
 
8951
      lt_prog_compiler_static='-Bstatic'
 
8952
      case $cc_basename in
 
8953
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
 
8954
        lt_prog_compiler_wl='-Qoption ld ';;
 
8955
      *)
 
8956
        lt_prog_compiler_wl='-Wl,';;
 
8957
      esac
 
8958
      ;;
 
8959
 
 
8960
    sunos4*)
 
8961
      lt_prog_compiler_wl='-Qoption ld '
 
8962
      lt_prog_compiler_pic='-PIC'
 
8963
      lt_prog_compiler_static='-Bstatic'
 
8964
      ;;
 
8965
 
 
8966
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
8967
      lt_prog_compiler_wl='-Wl,'
 
8968
      lt_prog_compiler_pic='-KPIC'
 
8969
      lt_prog_compiler_static='-Bstatic'
 
8970
      ;;
 
8971
 
 
8972
    sysv4*MP*)
 
8973
      if test -d /usr/nec ;then
 
8974
        lt_prog_compiler_pic='-Kconform_pic'
 
8975
        lt_prog_compiler_static='-Bstatic'
 
8976
      fi
 
8977
      ;;
 
8978
 
 
8979
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
8980
      lt_prog_compiler_wl='-Wl,'
 
8981
      lt_prog_compiler_pic='-KPIC'
 
8982
      lt_prog_compiler_static='-Bstatic'
 
8983
      ;;
 
8984
 
 
8985
    unicos*)
 
8986
      lt_prog_compiler_wl='-Wl,'
 
8987
      lt_prog_compiler_can_build_shared=no
 
8988
      ;;
 
8989
 
 
8990
    uts4*)
 
8991
      lt_prog_compiler_pic='-pic'
 
8992
      lt_prog_compiler_static='-Bstatic'
 
8993
      ;;
 
8994
 
 
8995
    *)
 
8996
      lt_prog_compiler_can_build_shared=no
 
8997
      ;;
 
8998
    esac
 
8999
  fi
 
9000
 
 
9001
case $host_os in
 
9002
  # For platforms which do not support PIC, -DPIC is meaningless:
 
9003
  *djgpp*)
 
9004
    lt_prog_compiler_pic=
 
9005
    ;;
 
9006
  *)
 
9007
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
9008
    ;;
 
9009
esac
 
9010
 
 
9011
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
9012
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
9013
if test "${lt_cv_prog_compiler_pic+set}" = set; then :
 
9014
  $as_echo_n "(cached) " >&6
 
9015
else
 
9016
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
 
9017
fi
 
9018
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
 
9019
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
 
9020
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
 
9021
 
 
9022
#
 
9023
# Check to make sure the PIC flag actually works.
 
9024
#
 
9025
if test -n "$lt_prog_compiler_pic"; then
 
9026
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
9027
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
9028
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
 
9029
  $as_echo_n "(cached) " >&6
 
9030
else
 
9031
  lt_cv_prog_compiler_pic_works=no
 
9032
   ac_outfile=conftest.$ac_objext
 
9033
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9034
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
9035
   # Insert the option either (1) after the last *FLAGS variable, or
 
9036
   # (2) before a word containing "conftest.", or (3) at the end.
 
9037
   # Note that $ac_compile itself does not contain backslashes and begins
 
9038
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9039
   # The option is referenced via a variable to avoid confusing sed.
 
9040
   lt_compile=`echo "$ac_compile" | $SED \
 
9041
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9042
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9043
   -e 's:$: $lt_compiler_flag:'`
 
9044
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9045
   (eval "$lt_compile" 2>conftest.err)
 
9046
   ac_status=$?
 
9047
   cat conftest.err >&5
 
9048
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9049
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
9050
     # The compiler can only warn and ignore the option if not recognized
 
9051
     # So say no if there are warnings other than the usual output.
 
9052
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
9053
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9054
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
9055
       lt_cv_prog_compiler_pic_works=yes
 
9056
     fi
 
9057
   fi
 
9058
   $RM conftest*
 
9059
 
 
9060
fi
 
9061
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
9062
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
9063
 
 
9064
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
9065
    case $lt_prog_compiler_pic in
 
9066
     "" | " "*) ;;
 
9067
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
9068
     esac
 
9069
else
 
9070
    lt_prog_compiler_pic=
 
9071
     lt_prog_compiler_can_build_shared=no
 
9072
fi
 
9073
 
 
9074
fi
 
9075
 
 
9076
 
 
9077
 
 
9078
 
 
9079
 
 
9080
 
 
9081
 
 
9082
 
 
9083
 
 
9084
 
 
9085
 
 
9086
#
 
9087
# Check to make sure the static flag actually works.
 
9088
#
 
9089
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
9090
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
9091
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
9092
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
 
9093
  $as_echo_n "(cached) " >&6
 
9094
else
 
9095
  lt_cv_prog_compiler_static_works=no
 
9096
   save_LDFLAGS="$LDFLAGS"
 
9097
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
9098
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
9099
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
9100
     # The linker can only warn and ignore the option if not recognized
 
9101
     # So say no if there are warnings
 
9102
     if test -s conftest.err; then
 
9103
       # Append any errors to the config.log.
 
9104
       cat conftest.err 1>&5
 
9105
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
9106
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9107
       if diff conftest.exp conftest.er2 >/dev/null; then
 
9108
         lt_cv_prog_compiler_static_works=yes
 
9109
       fi
 
9110
     else
 
9111
       lt_cv_prog_compiler_static_works=yes
 
9112
     fi
 
9113
   fi
 
9114
   $RM -r conftest*
 
9115
   LDFLAGS="$save_LDFLAGS"
 
9116
 
 
9117
fi
 
9118
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
9119
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
9120
 
 
9121
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
9122
    :
 
9123
else
 
9124
    lt_prog_compiler_static=
 
9125
fi
 
9126
 
 
9127
 
 
9128
 
 
9129
 
 
9130
 
 
9131
 
 
9132
 
 
9133
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9134
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
9135
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
 
9136
  $as_echo_n "(cached) " >&6
 
9137
else
 
9138
  lt_cv_prog_compiler_c_o=no
 
9139
   $RM -r conftest 2>/dev/null
 
9140
   mkdir conftest
 
9141
   cd conftest
 
9142
   mkdir out
 
9143
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9144
 
 
9145
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9146
   # Insert the option either (1) after the last *FLAGS variable, or
 
9147
   # (2) before a word containing "conftest.", or (3) at the end.
 
9148
   # Note that $ac_compile itself does not contain backslashes and begins
 
9149
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9150
   lt_compile=`echo "$ac_compile" | $SED \
 
9151
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9152
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9153
   -e 's:$: $lt_compiler_flag:'`
 
9154
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9155
   (eval "$lt_compile" 2>out/conftest.err)
 
9156
   ac_status=$?
 
9157
   cat out/conftest.err >&5
 
9158
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9159
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9160
   then
 
9161
     # The compiler can only warn and ignore the option if not recognized
 
9162
     # So say no if there are warnings
 
9163
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
9164
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9165
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
9166
       lt_cv_prog_compiler_c_o=yes
 
9167
     fi
 
9168
   fi
 
9169
   chmod u+w . 2>&5
 
9170
   $RM conftest*
 
9171
   # SGI C++ compiler will create directory out/ii_files/ for
 
9172
   # template instantiation
 
9173
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
9174
   $RM out/* && rmdir out
 
9175
   cd ..
 
9176
   $RM -r conftest
 
9177
   $RM conftest*
 
9178
 
 
9179
fi
 
9180
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
9181
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
9182
 
 
9183
 
 
9184
 
 
9185
 
 
9186
 
 
9187
 
 
9188
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9189
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
9190
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
 
9191
  $as_echo_n "(cached) " >&6
 
9192
else
 
9193
  lt_cv_prog_compiler_c_o=no
 
9194
   $RM -r conftest 2>/dev/null
 
9195
   mkdir conftest
 
9196
   cd conftest
 
9197
   mkdir out
 
9198
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9199
 
 
9200
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9201
   # Insert the option either (1) after the last *FLAGS variable, or
 
9202
   # (2) before a word containing "conftest.", or (3) at the end.
 
9203
   # Note that $ac_compile itself does not contain backslashes and begins
 
9204
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9205
   lt_compile=`echo "$ac_compile" | $SED \
 
9206
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9207
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9208
   -e 's:$: $lt_compiler_flag:'`
 
9209
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9210
   (eval "$lt_compile" 2>out/conftest.err)
 
9211
   ac_status=$?
 
9212
   cat out/conftest.err >&5
 
9213
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9214
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9215
   then
 
9216
     # The compiler can only warn and ignore the option if not recognized
 
9217
     # So say no if there are warnings
 
9218
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
9219
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9220
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
9221
       lt_cv_prog_compiler_c_o=yes
 
9222
     fi
 
9223
   fi
 
9224
   chmod u+w . 2>&5
 
9225
   $RM conftest*
 
9226
   # SGI C++ compiler will create directory out/ii_files/ for
 
9227
   # template instantiation
 
9228
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
9229
   $RM out/* && rmdir out
 
9230
   cd ..
 
9231
   $RM -r conftest
 
9232
   $RM conftest*
 
9233
 
 
9234
fi
 
9235
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
9236
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
9237
 
 
9238
 
 
9239
 
 
9240
 
 
9241
hard_links="nottested"
 
9242
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
9243
  # do not overwrite the value of need_locks provided by the user
 
9244
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
9245
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
9246
  hard_links=yes
 
9247
  $RM conftest*
 
9248
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9249
  touch conftest.a
 
9250
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
9251
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9252
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
9253
$as_echo "$hard_links" >&6; }
 
9254
  if test "$hard_links" = no; then
 
9255
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
9256
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
9257
    need_locks=warn
 
9258
  fi
 
9259
else
 
9260
  need_locks=no
 
9261
fi
 
9262
 
 
9263
 
 
9264
 
 
9265
 
 
9266
 
 
9267
 
 
9268
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9269
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
9270
 
 
9271
  runpath_var=
 
9272
  allow_undefined_flag=
 
9273
  always_export_symbols=no
 
9274
  archive_cmds=
 
9275
  archive_expsym_cmds=
 
9276
  compiler_needs_object=no
 
9277
  enable_shared_with_static_runtimes=no
 
9278
  export_dynamic_flag_spec=
 
9279
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
9280
  hardcode_automatic=no
 
9281
  hardcode_direct=no
 
9282
  hardcode_direct_absolute=no
 
9283
  hardcode_libdir_flag_spec=
 
9284
  hardcode_libdir_flag_spec_ld=
 
9285
  hardcode_libdir_separator=
 
9286
  hardcode_minus_L=no
 
9287
  hardcode_shlibpath_var=unsupported
 
9288
  inherit_rpath=no
 
9289
  link_all_deplibs=unknown
 
9290
  module_cmds=
 
9291
  module_expsym_cmds=
 
9292
  old_archive_from_new_cmds=
 
9293
  old_archive_from_expsyms_cmds=
 
9294
  thread_safe_flag_spec=
 
9295
  whole_archive_flag_spec=
 
9296
  # include_expsyms should be a list of space-separated symbols to be *always*
 
9297
  # included in the symbol list
 
9298
  include_expsyms=
 
9299
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
9300
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
9301
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
9302
  # as well as any symbol that contains `d'.
 
9303
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
9304
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
9305
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
9306
  # the symbol is explicitly referenced.  Since portable code cannot
 
9307
  # rely on this symbol name, it's probably fine to never include it in
 
9308
  # preloaded symbol tables.
 
9309
  # Exclude shared library initialization/finalization symbols.
 
9310
  extract_expsyms_cmds=
 
9311
 
 
9312
  case $host_os in
 
9313
  cygwin* | mingw* | pw32* | cegcc*)
 
9314
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
9315
    # When not using gcc, we currently assume that we are using
 
9316
    # Microsoft Visual C++.
 
9317
    if test "$GCC" != yes; then
 
9318
      with_gnu_ld=no
 
9319
    fi
 
9320
    ;;
 
9321
  interix*)
 
9322
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
9323
    with_gnu_ld=yes
 
9324
    ;;
 
9325
  openbsd*)
 
9326
    with_gnu_ld=no
 
9327
    ;;
 
9328
  linux* | k*bsd*-gnu | gnu*)
 
9329
    link_all_deplibs=no
 
9330
    ;;
 
9331
  esac
 
9332
 
 
9333
  ld_shlibs=yes
 
9334
 
 
9335
  # On some targets, GNU ld is compatible enough with the native linker
 
9336
  # that we're better off using the native interface for both.
 
9337
  lt_use_gnu_ld_interface=no
 
9338
  if test "$with_gnu_ld" = yes; then
 
9339
    case $host_os in
 
9340
      aix*)
 
9341
        # The AIX port of GNU ld has always aspired to compatibility
 
9342
        # with the native linker.  However, as the warning in the GNU ld
 
9343
        # block says, versions before 2.19.5* couldn't really create working
 
9344
        # shared libraries, regardless of the interface used.
 
9345
        case `$LD -v 2>&1` in
 
9346
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
9347
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
 
9348
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
 
9349
          *)
 
9350
            lt_use_gnu_ld_interface=yes
 
9351
            ;;
 
9352
        esac
 
9353
        ;;
 
9354
      *)
 
9355
        lt_use_gnu_ld_interface=yes
 
9356
        ;;
 
9357
    esac
 
9358
  fi
 
9359
 
 
9360
  if test "$lt_use_gnu_ld_interface" = yes; then
 
9361
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
9362
    wlarc='${wl}'
 
9363
 
 
9364
    # Set some defaults for GNU ld with shared library support. These
 
9365
    # are reset later if shared libraries are not supported. Putting them
 
9366
    # here allows them to be overridden if necessary.
 
9367
    runpath_var=LD_RUN_PATH
 
9368
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9369
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
9370
    # ancient GNU ld didn't support --whole-archive et. al.
 
9371
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
9372
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9373
    else
 
9374
      whole_archive_flag_spec=
 
9375
    fi
 
9376
    supports_anon_versioning=no
 
9377
    case `$LD -v 2>&1` in
 
9378
      *GNU\ gold*) supports_anon_versioning=yes ;;
 
9379
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
9380
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
9381
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
9382
      *\ 2.11.*) ;; # other 2.11 versions
 
9383
      *) supports_anon_versioning=yes ;;
 
9384
    esac
 
9385
 
 
9386
    # See if GNU ld supports shared libraries.
 
9387
    case $host_os in
 
9388
    aix[3-9]*)
 
9389
      # On AIX/PPC, the GNU linker is very broken
 
9390
      if test "$host_cpu" != ia64; then
 
9391
        ld_shlibs=no
 
9392
        cat <<_LT_EOF 1>&2
 
9393
 
 
9394
*** Warning: the GNU linker, at least up to release 2.19, is reported
 
9395
*** to be unable to reliably create shared libraries on AIX.
 
9396
*** Therefore, libtool is disabling shared libraries support.  If you
 
9397
*** really care for shared libraries, you may want to install binutils
 
9398
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
9399
*** You will then need to restart the configuration process.
 
9400
 
 
9401
_LT_EOF
 
9402
      fi
 
9403
      ;;
 
9404
 
 
9405
    amigaos*)
 
9406
      case $host_cpu in
 
9407
      powerpc)
 
9408
            # see comment about AmigaOS4 .so support
 
9409
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9410
            archive_expsym_cmds=''
 
9411
        ;;
 
9412
      m68k)
 
9413
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
9414
            hardcode_libdir_flag_spec='-L$libdir'
 
9415
            hardcode_minus_L=yes
 
9416
        ;;
 
9417
      esac
 
9418
      ;;
 
9419
 
 
9420
    beos*)
 
9421
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9422
        allow_undefined_flag=unsupported
 
9423
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
9424
        # support --undefined.  This deserves some investigation.  FIXME
 
9425
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9426
      else
 
9427
        ld_shlibs=no
 
9428
      fi
 
9429
      ;;
 
9430
 
 
9431
    cygwin* | mingw* | pw32* | cegcc*)
 
9432
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
9433
      # as there is no search path for DLLs.
 
9434
      hardcode_libdir_flag_spec='-L$libdir'
 
9435
      export_dynamic_flag_spec='${wl}--export-all-symbols'
 
9436
      allow_undefined_flag=unsupported
 
9437
      always_export_symbols=no
 
9438
      enable_shared_with_static_runtimes=yes
 
9439
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
 
9440
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
9441
 
 
9442
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
9443
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
9444
        # If the export-symbols file already is a .def file (1st line
 
9445
        # is EXPORTS), use it as is; otherwise, prepend...
 
9446
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9447
          cp $export_symbols $output_objdir/$soname.def;
 
9448
        else
 
9449
          echo EXPORTS > $output_objdir/$soname.def;
 
9450
          cat $export_symbols >> $output_objdir/$soname.def;
 
9451
        fi~
 
9452
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
9453
      else
 
9454
        ld_shlibs=no
 
9455
      fi
 
9456
      ;;
 
9457
 
 
9458
    haiku*)
 
9459
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9460
      link_all_deplibs=yes
 
9461
      ;;
 
9462
 
 
9463
    interix[3-9]*)
 
9464
      hardcode_direct=no
 
9465
      hardcode_shlibpath_var=no
 
9466
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9467
      export_dynamic_flag_spec='${wl}-E'
 
9468
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
9469
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
9470
      # default) and relocated if they conflict, which is a slow very memory
 
9471
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
9472
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
9473
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
9474
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
9475
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
9476
      ;;
 
9477
 
 
9478
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
9479
      tmp_diet=no
 
9480
      if test "$host_os" = linux-dietlibc; then
 
9481
        case $cc_basename in
 
9482
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
9483
        esac
 
9484
      fi
 
9485
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
9486
         && test "$tmp_diet" = no
 
9487
      then
 
9488
        tmp_addflag=' $pic_flag'
 
9489
        tmp_sharedflag='-shared'
 
9490
        case $cc_basename,$host_cpu in
 
9491
        pgcc*)                          # Portland Group C compiler
 
9492
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
9493
          tmp_addflag=' $pic_flag'
 
9494
          ;;
 
9495
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
9496
                                        # Portland Group f77 and f90 compilers
 
9497
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
9498
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
9499
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
9500
          tmp_addflag=' -i_dynamic' ;;
 
9501
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
9502
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
9503
        ifc* | ifort*)                  # Intel Fortran compiler
 
9504
          tmp_addflag=' -nofor_main' ;;
 
9505
        lf95*)                          # Lahey Fortran 8.1
 
9506
          whole_archive_flag_spec=
 
9507
          tmp_sharedflag='--shared' ;;
 
9508
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
 
9509
          tmp_sharedflag='-qmkshrobj'
 
9510
          tmp_addflag= ;;
 
9511
        nvcc*)  # Cuda Compiler Driver 2.2
 
9512
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
9513
          compiler_needs_object=yes
 
9514
          ;;
 
9515
        esac
 
9516
        case `$CC -V 2>&1 | sed 5q` in
 
9517
        *Sun\ C*)                       # Sun C 5.9
 
9518
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
9519
          compiler_needs_object=yes
 
9520
          tmp_sharedflag='-G' ;;
 
9521
        *Sun\ F*)                       # Sun Fortran 8.3
 
9522
          tmp_sharedflag='-G' ;;
 
9523
        esac
 
9524
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9525
 
 
9526
        if test "x$supports_anon_versioning" = xyes; then
 
9527
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9528
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9529
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
9530
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
9531
        fi
 
9532
 
 
9533
        case $cc_basename in
 
9534
        xlf* | bgf* | bgxlf* | mpixlf*)
 
9535
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
9536
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
9537
          hardcode_libdir_flag_spec=
 
9538
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
9539
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 
9540
          if test "x$supports_anon_versioning" = xyes; then
 
9541
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9542
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9543
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
9544
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
9545
          fi
 
9546
          ;;
 
9547
        esac
 
9548
      else
 
9549
        ld_shlibs=no
 
9550
      fi
 
9551
      ;;
 
9552
 
 
9553
    netbsd* | netbsdelf*-gnu)
 
9554
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9555
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
9556
        wlarc=
 
9557
      else
 
9558
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9559
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9560
      fi
 
9561
      ;;
 
9562
 
 
9563
    solaris*)
 
9564
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
9565
        ld_shlibs=no
 
9566
        cat <<_LT_EOF 1>&2
 
9567
 
 
9568
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
9569
*** create shared libraries on Solaris systems.  Therefore, libtool
 
9570
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
9571
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
9572
*** your PATH or compiler configuration so that the native linker is
 
9573
*** used, and then restart.
 
9574
 
 
9575
_LT_EOF
 
9576
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9577
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9578
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9579
      else
 
9580
        ld_shlibs=no
 
9581
      fi
 
9582
      ;;
 
9583
 
 
9584
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
9585
      case `$LD -v 2>&1` in
 
9586
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
9587
        ld_shlibs=no
 
9588
        cat <<_LT_EOF 1>&2
 
9589
 
 
9590
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
9591
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
9592
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
9593
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
9594
*** your PATH or compiler configuration so that the native linker is
 
9595
*** used, and then restart.
 
9596
 
 
9597
_LT_EOF
 
9598
        ;;
 
9599
        *)
 
9600
          # For security reasons, it is highly recommended that you always
 
9601
          # use absolute paths for naming shared libraries, and exclude the
 
9602
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
9603
          # requires that you compile everything twice, which is a pain.
 
9604
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9605
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9606
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9607
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9608
          else
 
9609
            ld_shlibs=no
 
9610
          fi
 
9611
        ;;
 
9612
      esac
 
9613
      ;;
 
9614
 
 
9615
    sunos4*)
 
9616
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9617
      wlarc=
 
9618
      hardcode_direct=yes
 
9619
      hardcode_shlibpath_var=no
 
9620
      ;;
 
9621
 
 
9622
    *)
 
9623
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9624
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9625
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9626
      else
 
9627
        ld_shlibs=no
 
9628
      fi
 
9629
      ;;
 
9630
    esac
 
9631
 
 
9632
    if test "$ld_shlibs" = no; then
 
9633
      runpath_var=
 
9634
      hardcode_libdir_flag_spec=
 
9635
      export_dynamic_flag_spec=
 
9636
      whole_archive_flag_spec=
 
9637
    fi
 
9638
  else
 
9639
    # PORTME fill in a description of your system's linker (not GNU ld)
 
9640
    case $host_os in
 
9641
    aix3*)
 
9642
      allow_undefined_flag=unsupported
 
9643
      always_export_symbols=yes
 
9644
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
9645
      # Note: this linker hardcodes the directories in LIBPATH if there
 
9646
      # are no directories specified by -L.
 
9647
      hardcode_minus_L=yes
 
9648
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
9649
        # Neither direct hardcoding nor static linking is supported with a
 
9650
        # broken collect2.
 
9651
        hardcode_direct=unsupported
 
9652
      fi
 
9653
      ;;
 
9654
 
 
9655
    aix[4-9]*)
 
9656
      if test "$host_cpu" = ia64; then
 
9657
        # On IA64, the linker does run time linking by default, so we don't
 
9658
        # have to do anything special.
 
9659
        aix_use_runtimelinking=no
 
9660
        exp_sym_flag='-Bexport'
 
9661
        no_entry_flag=""
 
9662
      else
 
9663
        # If we're using GNU nm, then we don't want the "-C" option.
 
9664
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
9665
        # Also, AIX nm treats weak defined symbols like other global
 
9666
        # defined symbols, whereas GNU nm marks them as "W".
 
9667
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
9668
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
9669
        else
 
9670
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
9671
        fi
 
9672
        aix_use_runtimelinking=no
 
9673
 
 
9674
        # Test if we are trying to use run time linking or normal
 
9675
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
9676
        # need to do runtime linking.
 
9677
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
9678
          for ld_flag in $LDFLAGS; do
 
9679
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
9680
            aix_use_runtimelinking=yes
 
9681
            break
 
9682
          fi
 
9683
          done
 
9684
          ;;
 
9685
        esac
 
9686
 
 
9687
        exp_sym_flag='-bexport'
 
9688
        no_entry_flag='-bnoentry'
 
9689
      fi
 
9690
 
 
9691
      # When large executables or shared objects are built, AIX ld can
 
9692
      # have problems creating the table of contents.  If linking a library
 
9693
      # or program results in "error TOC overflow" add -mminimal-toc to
 
9694
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
9695
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
9696
 
 
9697
      archive_cmds=''
 
9698
      hardcode_direct=yes
 
9699
      hardcode_direct_absolute=yes
 
9700
      hardcode_libdir_separator=':'
 
9701
      link_all_deplibs=yes
 
9702
      file_list_spec='${wl}-f,'
 
9703
 
 
9704
      if test "$GCC" = yes; then
 
9705
        case $host_os in aix4.[012]|aix4.[012].*)
 
9706
        # We only want to do this on AIX 4.2 and lower, the check
 
9707
        # below for broken collect2 doesn't work under 4.3+
 
9708
          collect2name=`${CC} -print-prog-name=collect2`
 
9709
          if test -f "$collect2name" &&
 
9710
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
9711
          then
 
9712
          # We have reworked collect2
 
9713
          :
 
9714
          else
 
9715
          # We have old collect2
 
9716
          hardcode_direct=unsupported
 
9717
          # It fails to find uninstalled libraries when the uninstalled
 
9718
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9719
          # to unsupported forces relinking
 
9720
          hardcode_minus_L=yes
 
9721
          hardcode_libdir_flag_spec='-L$libdir'
 
9722
          hardcode_libdir_separator=
 
9723
          fi
 
9724
          ;;
 
9725
        esac
 
9726
        shared_flag='-shared'
 
9727
        if test "$aix_use_runtimelinking" = yes; then
 
9728
          shared_flag="$shared_flag "'${wl}-G'
 
9729
        fi
 
9730
        link_all_deplibs=no
 
9731
      else
 
9732
        # not using gcc
 
9733
        if test "$host_cpu" = ia64; then
 
9734
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9735
        # chokes on -Wl,-G. The following line is correct:
 
9736
          shared_flag='-G'
 
9737
        else
 
9738
          if test "$aix_use_runtimelinking" = yes; then
 
9739
            shared_flag='${wl}-G'
 
9740
          else
 
9741
            shared_flag='${wl}-bM:SRE'
 
9742
          fi
 
9743
        fi
 
9744
      fi
 
9745
 
 
9746
      export_dynamic_flag_spec='${wl}-bexpall'
 
9747
      # It seems that -bexpall does not export symbols beginning with
 
9748
      # underscore (_), so it is better to generate a list of symbols to export.
 
9749
      always_export_symbols=yes
 
9750
      if test "$aix_use_runtimelinking" = yes; then
 
9751
        # Warning - without using the other runtime loading flags (-brtl),
 
9752
        # -berok will link without error, but may produce a broken library.
 
9753
        allow_undefined_flag='-berok'
 
9754
        # Determine the default libpath from the value encoded in an
 
9755
        # empty executable.
 
9756
        if test "${lt_cv_aix_libpath+set}" = set; then
 
9757
  aix_libpath=$lt_cv_aix_libpath
 
9758
else
 
9759
  if test "${lt_cv_aix_libpath_+set}" = set; then :
 
9760
  $as_echo_n "(cached) " >&6
 
9761
else
 
9762
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9763
/* end confdefs.h.  */
 
9764
 
 
9765
int
 
9766
main ()
 
9767
{
 
9768
 
 
9769
  ;
 
9770
  return 0;
 
9771
}
 
9772
_ACEOF
 
9773
if ac_fn_c_try_link "$LINENO"; then :
 
9774
 
 
9775
  lt_aix_libpath_sed='
 
9776
      /Import File Strings/,/^$/ {
 
9777
          /^0/ {
 
9778
              s/^0  *\([^ ]*\) *$/\1/
 
9779
              p
 
9780
          }
 
9781
      }'
 
9782
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9783
  # Check for a 64-bit object if we didn't find anything.
 
9784
  if test -z "$lt_cv_aix_libpath_"; then
 
9785
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9786
  fi
 
9787
fi
 
9788
rm -f core conftest.err conftest.$ac_objext \
 
9789
    conftest$ac_exeext conftest.$ac_ext
 
9790
  if test -z "$lt_cv_aix_libpath_"; then
 
9791
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
9792
  fi
 
9793
 
 
9794
fi
 
9795
 
 
9796
  aix_libpath=$lt_cv_aix_libpath_
 
9797
fi
 
9798
 
 
9799
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9800
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
9801
      else
 
9802
        if test "$host_cpu" = ia64; then
 
9803
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
9804
          allow_undefined_flag="-z nodefs"
 
9805
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
9806
        else
 
9807
         # Determine the default libpath from the value encoded in an
 
9808
         # empty executable.
 
9809
         if test "${lt_cv_aix_libpath+set}" = set; then
 
9810
  aix_libpath=$lt_cv_aix_libpath
 
9811
else
 
9812
  if test "${lt_cv_aix_libpath_+set}" = set; then :
 
9813
  $as_echo_n "(cached) " >&6
 
9814
else
 
9815
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9816
/* end confdefs.h.  */
 
9817
 
 
9818
int
 
9819
main ()
 
9820
{
 
9821
 
 
9822
  ;
 
9823
  return 0;
 
9824
}
 
9825
_ACEOF
 
9826
if ac_fn_c_try_link "$LINENO"; then :
 
9827
 
 
9828
  lt_aix_libpath_sed='
 
9829
      /Import File Strings/,/^$/ {
 
9830
          /^0/ {
 
9831
              s/^0  *\([^ ]*\) *$/\1/
 
9832
              p
 
9833
          }
 
9834
      }'
 
9835
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9836
  # Check for a 64-bit object if we didn't find anything.
 
9837
  if test -z "$lt_cv_aix_libpath_"; then
 
9838
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9839
  fi
 
9840
fi
 
9841
rm -f core conftest.err conftest.$ac_objext \
 
9842
    conftest$ac_exeext conftest.$ac_ext
 
9843
  if test -z "$lt_cv_aix_libpath_"; then
 
9844
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
9845
  fi
 
9846
 
 
9847
fi
 
9848
 
 
9849
  aix_libpath=$lt_cv_aix_libpath_
 
9850
fi
 
9851
 
 
9852
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9853
          # Warning - without using the other run time loading flags,
 
9854
          # -berok will link without error, but may produce a broken library.
 
9855
          no_undefined_flag=' ${wl}-bernotok'
 
9856
          allow_undefined_flag=' ${wl}-berok'
 
9857
          if test "$with_gnu_ld" = yes; then
 
9858
            # We only use this code for GNU lds that support --whole-archive.
 
9859
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
9860
          else
 
9861
            # Exported symbols can be pulled into shared objects from archives
 
9862
            whole_archive_flag_spec='$convenience'
 
9863
          fi
 
9864
          archive_cmds_need_lc=yes
 
9865
          # This is similar to how AIX traditionally builds its shared libraries.
 
9866
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
9867
        fi
 
9868
      fi
 
9869
      ;;
 
9870
 
 
9871
    amigaos*)
 
9872
      case $host_cpu in
 
9873
      powerpc)
 
9874
            # see comment about AmigaOS4 .so support
 
9875
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9876
            archive_expsym_cmds=''
 
9877
        ;;
 
9878
      m68k)
 
9879
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
9880
            hardcode_libdir_flag_spec='-L$libdir'
 
9881
            hardcode_minus_L=yes
 
9882
        ;;
 
9883
      esac
 
9884
      ;;
 
9885
 
 
9886
    bsdi[45]*)
 
9887
      export_dynamic_flag_spec=-rdynamic
 
9888
      ;;
 
9889
 
 
9890
    cygwin* | mingw* | pw32* | cegcc*)
 
9891
      # When not using gcc, we currently assume that we are using
 
9892
      # Microsoft Visual C++.
 
9893
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
9894
      # no search path for DLLs.
 
9895
      case $cc_basename in
 
9896
      cl*)
 
9897
        # Native MSVC
 
9898
        hardcode_libdir_flag_spec=' '
 
9899
        allow_undefined_flag=unsupported
 
9900
        always_export_symbols=yes
 
9901
        file_list_spec='@'
 
9902
        # Tell ltmain to make .lib files, not .a files.
 
9903
        libext=lib
 
9904
        # Tell ltmain to make .dll files, not .so files.
 
9905
        shrext_cmds=".dll"
 
9906
        # FIXME: Setting linknames here is a bad hack.
 
9907
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
9908
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9909
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
9910
          else
 
9911
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
9912
          fi~
 
9913
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
9914
          linknames='
 
9915
        # The linker will not automatically build a static lib if we build a DLL.
 
9916
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
 
9917
        enable_shared_with_static_runtimes=yes
 
9918
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
9919
        # Don't use ranlib
 
9920
        old_postinstall_cmds='chmod 644 $oldlib'
 
9921
        postlink_cmds='lt_outputfile="@OUTPUT@"~
 
9922
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
9923
          case $lt_outputfile in
 
9924
            *.exe|*.EXE) ;;
 
9925
            *)
 
9926
              lt_outputfile="$lt_outputfile.exe"
 
9927
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
9928
              ;;
 
9929
          esac~
 
9930
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
9931
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
9932
            $RM "$lt_outputfile.manifest";
 
9933
          fi'
 
9934
        ;;
 
9935
      *)
 
9936
        # Assume MSVC wrapper
 
9937
        hardcode_libdir_flag_spec=' '
 
9938
        allow_undefined_flag=unsupported
 
9939
        # Tell ltmain to make .lib files, not .a files.
 
9940
        libext=lib
 
9941
        # Tell ltmain to make .dll files, not .so files.
 
9942
        shrext_cmds=".dll"
 
9943
        # FIXME: Setting linknames here is a bad hack.
 
9944
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
9945
        # The linker will automatically build a .lib file if we build a DLL.
 
9946
        old_archive_from_new_cmds='true'
 
9947
        # FIXME: Should let the user specify the lib program.
 
9948
        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
9949
        enable_shared_with_static_runtimes=yes
 
9950
        ;;
 
9951
      esac
 
9952
      ;;
 
9953
 
 
9954
    darwin* | rhapsody*)
 
9955
 
 
9956
 
 
9957
  archive_cmds_need_lc=no
 
9958
  hardcode_direct=no
 
9959
  hardcode_automatic=yes
 
9960
  hardcode_shlibpath_var=unsupported
 
9961
  if test "$lt_cv_ld_force_load" = "yes"; then
 
9962
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
9963
  else
 
9964
    whole_archive_flag_spec=''
 
9965
  fi
 
9966
  link_all_deplibs=yes
 
9967
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
9968
  case $cc_basename in
 
9969
     ifort*) _lt_dar_can_shared=yes ;;
 
9970
     *) _lt_dar_can_shared=$GCC ;;
 
9971
  esac
 
9972
  if test "$_lt_dar_can_shared" = "yes"; then
 
9973
    output_verbose_link_cmd=func_echo_all
 
9974
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
9975
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
9976
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
9977
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
9978
 
 
9979
  else
 
9980
  ld_shlibs=no
 
9981
  fi
 
9982
 
 
9983
      ;;
 
9984
 
 
9985
    dgux*)
 
9986
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9987
      hardcode_libdir_flag_spec='-L$libdir'
 
9988
      hardcode_shlibpath_var=no
 
9989
      ;;
 
9990
 
 
9991
    freebsd1*)
 
9992
      ld_shlibs=no
 
9993
      ;;
 
9994
 
 
9995
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
9996
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
9997
    # does not break anything, and helps significantly (at the cost of a little
 
9998
    # extra space).
 
9999
    freebsd2.2*)
 
10000
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
10001
      hardcode_libdir_flag_spec='-R$libdir'
 
10002
      hardcode_direct=yes
 
10003
      hardcode_shlibpath_var=no
 
10004
      ;;
 
10005
 
 
10006
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
10007
    freebsd2*)
 
10008
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10009
      hardcode_direct=yes
 
10010
      hardcode_minus_L=yes
 
10011
      hardcode_shlibpath_var=no
 
10012
      ;;
 
10013
 
 
10014
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
10015
    freebsd* | dragonfly*)
 
10016
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10017
      hardcode_libdir_flag_spec='-R$libdir'
 
10018
      hardcode_direct=yes
 
10019
      hardcode_shlibpath_var=no
 
10020
      ;;
 
10021
 
 
10022
    hpux9*)
 
10023
      if test "$GCC" = yes; then
 
10024
        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
10025
      else
 
10026
        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
10027
      fi
 
10028
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10029
      hardcode_libdir_separator=:
 
10030
      hardcode_direct=yes
 
10031
 
 
10032
      # hardcode_minus_L: Not really in the search PATH,
 
10033
      # but as the default location of the library.
 
10034
      hardcode_minus_L=yes
 
10035
      export_dynamic_flag_spec='${wl}-E'
 
10036
      ;;
 
10037
 
 
10038
    hpux10*)
 
10039
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
10040
        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10041
      else
 
10042
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
10043
      fi
 
10044
      if test "$with_gnu_ld" = no; then
 
10045
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10046
        hardcode_libdir_flag_spec_ld='+b $libdir'
 
10047
        hardcode_libdir_separator=:
 
10048
        hardcode_direct=yes
 
10049
        hardcode_direct_absolute=yes
 
10050
        export_dynamic_flag_spec='${wl}-E'
 
10051
        # hardcode_minus_L: Not really in the search PATH,
 
10052
        # but as the default location of the library.
 
10053
        hardcode_minus_L=yes
 
10054
      fi
 
10055
      ;;
 
10056
 
 
10057
    hpux11*)
 
10058
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
10059
        case $host_cpu in
 
10060
        hppa*64*)
 
10061
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10062
          ;;
 
10063
        ia64*)
 
10064
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
10065
          ;;
 
10066
        *)
 
10067
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10068
          ;;
 
10069
        esac
 
10070
      else
 
10071
        case $host_cpu in
 
10072
        hppa*64*)
 
10073
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10074
          ;;
 
10075
        ia64*)
 
10076
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
10077
          ;;
 
10078
        *)
 
10079
 
 
10080
          # Older versions of the 11.00 compiler do not understand -b yet
 
10081
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
10082
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
 
10083
$as_echo_n "checking if $CC understands -b... " >&6; }
 
10084
if test "${lt_cv_prog_compiler__b+set}" = set; then :
 
10085
  $as_echo_n "(cached) " >&6
 
10086
else
 
10087
  lt_cv_prog_compiler__b=no
 
10088
   save_LDFLAGS="$LDFLAGS"
 
10089
   LDFLAGS="$LDFLAGS -b"
 
10090
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
10091
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
10092
     # The linker can only warn and ignore the option if not recognized
 
10093
     # So say no if there are warnings
 
10094
     if test -s conftest.err; then
 
10095
       # Append any errors to the config.log.
 
10096
       cat conftest.err 1>&5
 
10097
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
10098
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
10099
       if diff conftest.exp conftest.er2 >/dev/null; then
 
10100
         lt_cv_prog_compiler__b=yes
 
10101
       fi
 
10102
     else
 
10103
       lt_cv_prog_compiler__b=yes
 
10104
     fi
 
10105
   fi
 
10106
   $RM -r conftest*
 
10107
   LDFLAGS="$save_LDFLAGS"
 
10108
 
 
10109
fi
 
10110
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
 
10111
$as_echo "$lt_cv_prog_compiler__b" >&6; }
 
10112
 
 
10113
if test x"$lt_cv_prog_compiler__b" = xyes; then
 
10114
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10115
else
 
10116
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
10117
fi
 
10118
 
 
10119
          ;;
 
10120
        esac
 
10121
      fi
 
10122
      if test "$with_gnu_ld" = no; then
 
10123
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10124
        hardcode_libdir_separator=:
 
10125
 
 
10126
        case $host_cpu in
 
10127
        hppa*64*|ia64*)
 
10128
          hardcode_direct=no
 
10129
          hardcode_shlibpath_var=no
 
10130
          ;;
 
10131
        *)
 
10132
          hardcode_direct=yes
 
10133
          hardcode_direct_absolute=yes
 
10134
          export_dynamic_flag_spec='${wl}-E'
 
10135
 
 
10136
          # hardcode_minus_L: Not really in the search PATH,
 
10137
          # but as the default location of the library.
 
10138
          hardcode_minus_L=yes
 
10139
          ;;
 
10140
        esac
 
10141
      fi
 
10142
      ;;
 
10143
 
 
10144
    irix5* | irix6* | nonstopux*)
 
10145
      if test "$GCC" = yes; then
 
10146
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10147
        # Try to use the -exported_symbol ld option, if it does not
 
10148
        # work, assume that -exports_file does not work either and
 
10149
        # implicitly export all symbols.
 
10150
        # This should be the same for all languages, so no per-tag cache variable.
 
10151
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
 
10152
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
 
10153
if test "${lt_cv_irix_exported_symbol+set}" = set; then :
 
10154
  $as_echo_n "(cached) " >&6
 
10155
else
 
10156
  save_LDFLAGS="$LDFLAGS"
 
10157
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
10158
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10159
/* end confdefs.h.  */
 
10160
int foo (void) { return 0; }
 
10161
_ACEOF
 
10162
if ac_fn_c_try_link "$LINENO"; then :
 
10163
  lt_cv_irix_exported_symbol=yes
 
10164
else
 
10165
  lt_cv_irix_exported_symbol=no
 
10166
fi
 
10167
rm -f core conftest.err conftest.$ac_objext \
 
10168
    conftest$ac_exeext conftest.$ac_ext
 
10169
           LDFLAGS="$save_LDFLAGS"
 
10170
fi
 
10171
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
 
10172
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
 
10173
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
10174
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
10175
        fi
 
10176
      else
 
10177
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
10178
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
10179
      fi
 
10180
      archive_cmds_need_lc='no'
 
10181
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10182
      hardcode_libdir_separator=:
 
10183
      inherit_rpath=yes
 
10184
      link_all_deplibs=yes
 
10185
      ;;
 
10186
 
 
10187
    netbsd* | netbsdelf*-gnu)
 
10188
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10189
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
10190
      else
 
10191
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
10192
      fi
 
10193
      hardcode_libdir_flag_spec='-R$libdir'
 
10194
      hardcode_direct=yes
 
10195
      hardcode_shlibpath_var=no
 
10196
      ;;
 
10197
 
 
10198
    newsos6)
 
10199
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10200
      hardcode_direct=yes
 
10201
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10202
      hardcode_libdir_separator=:
 
10203
      hardcode_shlibpath_var=no
 
10204
      ;;
 
10205
 
 
10206
    *nto* | *qnx*)
 
10207
      ;;
 
10208
 
 
10209
    openbsd*)
 
10210
      if test -f /usr/libexec/ld.so; then
 
10211
        hardcode_direct=yes
 
10212
        hardcode_shlibpath_var=no
 
10213
        hardcode_direct_absolute=yes
 
10214
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10215
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10216
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
10217
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10218
          export_dynamic_flag_spec='${wl}-E'
 
10219
        else
 
10220
          case $host_os in
 
10221
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
10222
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10223
             hardcode_libdir_flag_spec='-R$libdir'
 
10224
             ;;
 
10225
           *)
 
10226
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10227
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10228
             ;;
 
10229
          esac
 
10230
        fi
 
10231
      else
 
10232
        ld_shlibs=no
 
10233
      fi
 
10234
      ;;
 
10235
 
 
10236
    os2*)
 
10237
      hardcode_libdir_flag_spec='-L$libdir'
 
10238
      hardcode_minus_L=yes
 
10239
      allow_undefined_flag=unsupported
 
10240
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
10241
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
10242
      ;;
 
10243
 
 
10244
    osf3*)
 
10245
      if test "$GCC" = yes; then
 
10246
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
10247
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10248
      else
 
10249
        allow_undefined_flag=' -expect_unresolved \*'
 
10250
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
10251
      fi
 
10252
      archive_cmds_need_lc='no'
 
10253
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10254
      hardcode_libdir_separator=:
 
10255
      ;;
 
10256
 
 
10257
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
10258
      if test "$GCC" = yes; then
 
10259
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
10260
        archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10261
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10262
      else
 
10263
        allow_undefined_flag=' -expect_unresolved \*'
 
10264
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
10265
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
 
10266
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
10267
 
 
10268
        # Both c and cxx compiler support -rpath directly
 
10269
        hardcode_libdir_flag_spec='-rpath $libdir'
 
10270
      fi
 
10271
      archive_cmds_need_lc='no'
 
10272
      hardcode_libdir_separator=:
 
10273
      ;;
 
10274
 
 
10275
    solaris*)
 
10276
      no_undefined_flag=' -z defs'
 
10277
      if test "$GCC" = yes; then
 
10278
        wlarc='${wl}'
 
10279
        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10280
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10281
          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
10282
      else
 
10283
        case `$CC -V 2>&1` in
 
10284
        *"Compilers 5.0"*)
 
10285
          wlarc=''
 
10286
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10287
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10288
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
10289
          ;;
 
10290
        *)
 
10291
          wlarc='${wl}'
 
10292
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
10293
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10294
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
10295
          ;;
 
10296
        esac
 
10297
      fi
 
10298
      hardcode_libdir_flag_spec='-R$libdir'
 
10299
      hardcode_shlibpath_var=no
 
10300
      case $host_os in
 
10301
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
10302
      *)
 
10303
        # The compiler driver will combine and reorder linker options,
 
10304
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
10305
        # but is careful enough not to reorder.
 
10306
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10307
        if test "$GCC" = yes; then
 
10308
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
10309
        else
 
10310
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
10311
        fi
 
10312
        ;;
 
10313
      esac
 
10314
      link_all_deplibs=yes
 
10315
      ;;
 
10316
 
 
10317
    sunos4*)
 
10318
      if test "x$host_vendor" = xsequent; then
 
10319
        # Use $CC to link under sequent, because it throws in some extra .o
 
10320
        # files that make .init and .fini sections work.
 
10321
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
10322
      else
 
10323
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
10324
      fi
 
10325
      hardcode_libdir_flag_spec='-L$libdir'
 
10326
      hardcode_direct=yes
 
10327
      hardcode_minus_L=yes
 
10328
      hardcode_shlibpath_var=no
 
10329
      ;;
 
10330
 
 
10331
    sysv4)
 
10332
      case $host_vendor in
 
10333
        sni)
 
10334
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10335
          hardcode_direct=yes # is this really true???
 
10336
        ;;
 
10337
        siemens)
 
10338
          ## LD is ld it makes a PLAMLIB
 
10339
          ## CC just makes a GrossModule.
 
10340
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
10341
          reload_cmds='$CC -r -o $output$reload_objs'
 
10342
          hardcode_direct=no
 
10343
        ;;
 
10344
        motorola)
 
10345
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10346
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
10347
        ;;
 
10348
      esac
 
10349
      runpath_var='LD_RUN_PATH'
 
10350
      hardcode_shlibpath_var=no
 
10351
      ;;
 
10352
 
 
10353
    sysv4.3*)
 
10354
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10355
      hardcode_shlibpath_var=no
 
10356
      export_dynamic_flag_spec='-Bexport'
 
10357
      ;;
 
10358
 
 
10359
    sysv4*MP*)
 
10360
      if test -d /usr/nec; then
 
10361
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10362
        hardcode_shlibpath_var=no
 
10363
        runpath_var=LD_RUN_PATH
 
10364
        hardcode_runpath_var=yes
 
10365
        ld_shlibs=yes
 
10366
      fi
 
10367
      ;;
 
10368
 
 
10369
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
10370
      no_undefined_flag='${wl}-z,text'
 
10371
      archive_cmds_need_lc=no
 
10372
      hardcode_shlibpath_var=no
 
10373
      runpath_var='LD_RUN_PATH'
 
10374
 
 
10375
      if test "$GCC" = yes; then
 
10376
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10377
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10378
      else
 
10379
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10380
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10381
      fi
 
10382
      ;;
 
10383
 
 
10384
    sysv5* | sco3.2v5* | sco5v6*)
 
10385
      # Note: We can NOT use -z defs as we might desire, because we do not
 
10386
      # link with -lc, and that would cause any symbols used from libc to
 
10387
      # always be unresolved, which means just about no library would
 
10388
      # ever link correctly.  If we're not using GNU ld we use -z text
 
10389
      # though, which does catch some bad symbols but isn't as heavy-handed
 
10390
      # as -z defs.
 
10391
      no_undefined_flag='${wl}-z,text'
 
10392
      allow_undefined_flag='${wl}-z,nodefs'
 
10393
      archive_cmds_need_lc=no
 
10394
      hardcode_shlibpath_var=no
 
10395
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
10396
      hardcode_libdir_separator=':'
 
10397
      link_all_deplibs=yes
 
10398
      export_dynamic_flag_spec='${wl}-Bexport'
 
10399
      runpath_var='LD_RUN_PATH'
 
10400
 
 
10401
      if test "$GCC" = yes; then
 
10402
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10403
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10404
      else
 
10405
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10406
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10407
      fi
 
10408
      ;;
 
10409
 
 
10410
    uts4*)
 
10411
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10412
      hardcode_libdir_flag_spec='-L$libdir'
 
10413
      hardcode_shlibpath_var=no
 
10414
      ;;
 
10415
 
 
10416
    *)
 
10417
      ld_shlibs=no
 
10418
      ;;
 
10419
    esac
 
10420
 
 
10421
    if test x$host_vendor = xsni; then
 
10422
      case $host in
 
10423
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
10424
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
10425
        ;;
 
10426
      esac
 
10427
    fi
 
10428
  fi
 
10429
 
 
10430
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
10431
$as_echo "$ld_shlibs" >&6; }
 
10432
test "$ld_shlibs" = no && can_build_shared=no
 
10433
 
 
10434
with_gnu_ld=$with_gnu_ld
 
10435
 
 
10436
 
 
10437
 
 
10438
 
 
10439
 
 
10440
 
 
10441
 
 
10442
 
 
10443
 
 
10444
 
 
10445
 
 
10446
 
 
10447
 
 
10448
 
 
10449
 
 
10450
#
 
10451
# Do we need to explicitly link libc?
 
10452
#
 
10453
case "x$archive_cmds_need_lc" in
 
10454
x|xyes)
 
10455
  # Assume -lc should be added
 
10456
  archive_cmds_need_lc=yes
 
10457
 
 
10458
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
10459
    case $archive_cmds in
 
10460
    *'~'*)
 
10461
      # FIXME: we may have to deal with multi-command sequences.
 
10462
      ;;
 
10463
    '$CC '*)
 
10464
      # Test whether the compiler implicitly links with -lc since on some
 
10465
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
10466
      # to ld, don't add -lc before -lgcc.
 
10467
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
10468
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
10469
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
 
10470
  $as_echo_n "(cached) " >&6
 
10471
else
 
10472
  $RM conftest*
 
10473
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10474
 
 
10475
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
10476
  (eval $ac_compile) 2>&5
 
10477
  ac_status=$?
 
10478
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10479
  test $ac_status = 0; } 2>conftest.err; then
 
10480
          soname=conftest
 
10481
          lib=conftest
 
10482
          libobjs=conftest.$ac_objext
 
10483
          deplibs=
 
10484
          wl=$lt_prog_compiler_wl
 
10485
          pic_flag=$lt_prog_compiler_pic
 
10486
          compiler_flags=-v
 
10487
          linker_flags=-v
 
10488
          verstring=
 
10489
          output_objdir=.
 
10490
          libname=conftest
 
10491
          lt_save_allow_undefined_flag=$allow_undefined_flag
 
10492
          allow_undefined_flag=
 
10493
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
10494
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
10495
  ac_status=$?
 
10496
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10497
  test $ac_status = 0; }
 
10498
          then
 
10499
            lt_cv_archive_cmds_need_lc=no
 
10500
          else
 
10501
            lt_cv_archive_cmds_need_lc=yes
 
10502
          fi
 
10503
          allow_undefined_flag=$lt_save_allow_undefined_flag
 
10504
        else
 
10505
          cat conftest.err 1>&5
 
10506
        fi
 
10507
        $RM conftest*
 
10508
 
 
10509
fi
 
10510
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
 
10511
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
 
10512
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
 
10513
      ;;
 
10514
    esac
 
10515
  fi
 
10516
  ;;
 
10517
esac
 
10518
 
 
10519
 
 
10520
 
 
10521
 
 
10522
 
 
10523
 
 
10524
 
 
10525
 
 
10526
 
 
10527
 
 
10528
 
 
10529
 
 
10530
 
 
10531
 
 
10532
 
 
10533
 
 
10534
 
 
10535
 
 
10536
 
 
10537
 
 
10538
 
 
10539
 
 
10540
 
 
10541
 
 
10542
 
 
10543
 
 
10544
 
 
10545
 
 
10546
 
 
10547
 
 
10548
 
 
10549
 
 
10550
 
 
10551
 
 
10552
 
 
10553
 
 
10554
 
 
10555
 
 
10556
 
 
10557
 
 
10558
 
 
10559
 
 
10560
 
 
10561
 
 
10562
 
 
10563
 
 
10564
 
 
10565
 
 
10566
 
 
10567
 
 
10568
 
 
10569
 
 
10570
 
 
10571
 
 
10572
 
 
10573
 
 
10574
 
 
10575
 
 
10576
 
 
10577
 
 
10578
 
 
10579
 
 
10580
 
 
10581
 
 
10582
 
 
10583
 
 
10584
 
 
10585
 
 
10586
 
 
10587
 
 
10588
 
 
10589
 
 
10590
 
 
10591
 
 
10592
 
 
10593
 
 
10594
 
 
10595
 
 
10596
 
 
10597
 
 
10598
 
 
10599
 
 
10600
 
 
10601
 
 
10602
 
 
10603
 
 
10604
 
 
10605
 
 
10606
 
 
10607
 
 
10608
 
 
10609
 
 
10610
 
 
10611
 
 
10612
 
 
10613
 
 
10614
 
 
10615
 
 
10616
 
 
10617
 
 
10618
 
 
10619
 
 
10620
 
 
10621
 
 
10622
 
 
10623
 
 
10624
 
 
10625
 
 
10626
 
 
10627
 
 
10628
 
 
10629
 
 
10630
 
 
10631
 
 
10632
 
 
10633
 
 
10634
 
 
10635
 
 
10636
 
 
10637
 
 
10638
 
 
10639
 
 
10640
 
 
10641
 
 
10642
 
 
10643
 
 
10644
 
 
10645
 
 
10646
 
 
10647
 
 
10648
 
 
10649
 
 
10650
 
 
10651
 
 
10652
 
 
10653
 
 
10654
 
 
10655
 
 
10656
 
 
10657
 
 
10658
 
 
10659
 
 
10660
 
 
10661
 
 
10662
 
 
10663
 
 
10664
 
 
10665
 
 
10666
 
 
10667
 
 
10668
 
 
10669
 
 
10670
 
 
10671
 
 
10672
 
 
10673
 
 
10674
 
 
10675
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
10676
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
10677
 
 
10678
if test "$GCC" = yes; then
 
10679
  case $host_os in
 
10680
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
10681
    *) lt_awk_arg="/^libraries:/" ;;
 
10682
  esac
 
10683
  case $host_os in
 
10684
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
 
10685
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
10686
  esac
 
10687
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
10688
  case $lt_search_path_spec in
 
10689
  *\;*)
 
10690
    # if the path contains ";" then we assume it to be the separator
 
10691
    # otherwise default to the standard path separator (i.e. ":") - it is
 
10692
    # assumed that no part of a normal pathname contains ";" but that should
 
10693
    # okay in the real world where ";" in dirpaths is itself problematic.
 
10694
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
10695
    ;;
 
10696
  *)
 
10697
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
10698
    ;;
 
10699
  esac
 
10700
  # Ok, now we have the path, separated by spaces, we can step through it
 
10701
  # and add multilib dir if necessary.
 
10702
  lt_tmp_lt_search_path_spec=
 
10703
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
10704
  for lt_sys_path in $lt_search_path_spec; do
 
10705
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
10706
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
10707
    else
 
10708
      test -d "$lt_sys_path" && \
 
10709
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
10710
    fi
 
10711
  done
 
10712
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
 
10713
BEGIN {RS=" "; FS="/|\n";} {
 
10714
  lt_foo="";
 
10715
  lt_count=0;
 
10716
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
10717
    if ($lt_i != "" && $lt_i != ".") {
 
10718
      if ($lt_i == "..") {
 
10719
        lt_count++;
 
10720
      } else {
 
10721
        if (lt_count == 0) {
 
10722
          lt_foo="/" $lt_i lt_foo;
 
10723
        } else {
 
10724
          lt_count--;
 
10725
        }
 
10726
      }
 
10727
    }
 
10728
  }
 
10729
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
10730
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
10731
}'`
 
10732
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
10733
  # for these hosts.
 
10734
  case $host_os in
 
10735
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
10736
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
 
10737
  esac
 
10738
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 
10739
else
 
10740
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
10741
fi
 
10742
library_names_spec=
 
10743
libname_spec='lib$name'
 
10744
soname_spec=
 
10745
shrext_cmds=".so"
 
10746
postinstall_cmds=
 
10747
postuninstall_cmds=
 
10748
finish_cmds=
 
10749
finish_eval=
 
10750
shlibpath_var=
 
10751
shlibpath_overrides_runpath=unknown
 
10752
version_type=none
 
10753
dynamic_linker="$host_os ld.so"
 
10754
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
10755
need_lib_prefix=unknown
 
10756
hardcode_into_libs=no
 
10757
 
 
10758
# when you set need_version to no, make sure it does not cause -set_version
 
10759
# flags to be left without arguments
 
10760
need_version=unknown
 
10761
 
 
10762
case $host_os in
 
10763
aix3*)
 
10764
  version_type=linux
 
10765
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
10766
  shlibpath_var=LIBPATH
 
10767
 
 
10768
  # AIX 3 has no versioning support, so we append a major version to the name.
 
10769
  soname_spec='${libname}${release}${shared_ext}$major'
 
10770
  ;;
 
10771
 
 
10772
aix[4-9]*)
 
10773
  version_type=linux
 
10774
  need_lib_prefix=no
 
10775
  need_version=no
 
10776
  hardcode_into_libs=yes
 
10777
  if test "$host_cpu" = ia64; then
 
10778
    # AIX 5 supports IA64
 
10779
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
10780
    shlibpath_var=LD_LIBRARY_PATH
 
10781
  else
 
10782
    # With GCC up to 2.95.x, collect2 would create an import file
 
10783
    # for dependence libraries.  The import file would start with
 
10784
    # the line `#! .'.  This would cause the generated library to
 
10785
    # depend on `.', always an invalid library.  This was fixed in
 
10786
    # development snapshots of GCC prior to 3.0.
 
10787
    case $host_os in
 
10788
      aix4 | aix4.[01] | aix4.[01].*)
 
10789
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
10790
           echo ' yes '
 
10791
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
10792
        :
 
10793
      else
 
10794
        can_build_shared=no
 
10795
      fi
 
10796
      ;;
 
10797
    esac
 
10798
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
10799
    # soname into executable. Probably we can add versioning support to
 
10800
    # collect2, so additional links can be useful in future.
 
10801
    if test "$aix_use_runtimelinking" = yes; then
 
10802
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
10803
      # instead of lib<name>.a to let people know that these are not
 
10804
      # typical AIX shared libraries.
 
10805
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10806
    else
 
10807
      # We preserve .a as extension for shared libraries through AIX4.2
 
10808
      # and later when we are not doing run time linking.
 
10809
      library_names_spec='${libname}${release}.a $libname.a'
 
10810
      soname_spec='${libname}${release}${shared_ext}$major'
 
10811
    fi
 
10812
    shlibpath_var=LIBPATH
 
10813
  fi
 
10814
  ;;
 
10815
 
 
10816
amigaos*)
 
10817
  case $host_cpu in
 
10818
  powerpc)
 
10819
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
10820
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
10821
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10822
    ;;
 
10823
  m68k)
 
10824
    library_names_spec='$libname.ixlibrary $libname.a'
 
10825
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10826
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
10827
    ;;
 
10828
  esac
 
10829
  ;;
 
10830
 
 
10831
beos*)
 
10832
  library_names_spec='${libname}${shared_ext}'
 
10833
  dynamic_linker="$host_os ld.so"
 
10834
  shlibpath_var=LIBRARY_PATH
 
10835
  ;;
 
10836
 
 
10837
bsdi[45]*)
 
10838
  version_type=linux
 
10839
  need_version=no
 
10840
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10841
  soname_spec='${libname}${release}${shared_ext}$major'
 
10842
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
10843
  shlibpath_var=LD_LIBRARY_PATH
 
10844
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
10845
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
10846
  # the default ld.so.conf also contains /usr/contrib/lib and
 
10847
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
10848
  # libtool to hard-code these into programs
 
10849
  ;;
 
10850
 
 
10851
cygwin* | mingw* | pw32* | cegcc*)
 
10852
  version_type=windows
 
10853
  shrext_cmds=".dll"
 
10854
  need_version=no
 
10855
  need_lib_prefix=no
 
10856
 
 
10857
  case $GCC,$cc_basename in
 
10858
  yes,*)
 
10859
    # gcc
 
10860
    library_names_spec='$libname.dll.a'
 
10861
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10862
    postinstall_cmds='base_file=`basename \${file}`~
 
10863
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
10864
      dldir=$destdir/`dirname \$dlpath`~
 
10865
      test -d \$dldir || mkdir -p \$dldir~
 
10866
      $install_prog $dir/$dlname \$dldir/$dlname~
 
10867
      chmod a+x \$dldir/$dlname~
 
10868
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
10869
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
10870
      fi'
 
10871
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10872
      dlpath=$dir/\$dldll~
 
10873
       $RM \$dlpath'
 
10874
    shlibpath_overrides_runpath=yes
 
10875
 
 
10876
    case $host_os in
 
10877
    cygwin*)
 
10878
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
10879
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10880
 
 
10881
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
 
10882
      ;;
 
10883
    mingw* | cegcc*)
 
10884
      # MinGW DLLs use traditional 'lib' prefix
 
10885
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10886
      ;;
 
10887
    pw32*)
 
10888
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
10889
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10890
      ;;
 
10891
    esac
 
10892
    dynamic_linker='Win32 ld.exe'
 
10893
    ;;
 
10894
 
 
10895
  *,cl*)
 
10896
    # Native MSVC
 
10897
    libname_spec='$name'
 
10898
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10899
    library_names_spec='${libname}.dll.lib'
 
10900
 
 
10901
    case $build_os in
 
10902
    mingw*)
 
10903
      sys_lib_search_path_spec=
 
10904
      lt_save_ifs=$IFS
 
10905
      IFS=';'
 
10906
      for lt_path in $LIB
 
10907
      do
 
10908
        IFS=$lt_save_ifs
 
10909
        # Let DOS variable expansion print the short 8.3 style file name.
 
10910
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
10911
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
10912
      done
 
10913
      IFS=$lt_save_ifs
 
10914
      # Convert to MSYS style.
 
10915
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
10916
      ;;
 
10917
    cygwin*)
 
10918
      # Convert to unix form, then to dos form, then back to unix form
 
10919
      # but this time dos style (no spaces!) so that the unix form looks
 
10920
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
10921
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
10922
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
10923
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
10924
      ;;
 
10925
    *)
 
10926
      sys_lib_search_path_spec="$LIB"
 
10927
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
10928
        # It is most probably a Windows format PATH.
 
10929
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10930
      else
 
10931
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
10932
      fi
 
10933
      # FIXME: find the short name or the path components, as spaces are
 
10934
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
10935
      ;;
 
10936
    esac
 
10937
 
 
10938
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10939
    postinstall_cmds='base_file=`basename \${file}`~
 
10940
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
10941
      dldir=$destdir/`dirname \$dlpath`~
 
10942
      test -d \$dldir || mkdir -p \$dldir~
 
10943
      $install_prog $dir/$dlname \$dldir/$dlname'
 
10944
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10945
      dlpath=$dir/\$dldll~
 
10946
       $RM \$dlpath'
 
10947
    shlibpath_overrides_runpath=yes
 
10948
    dynamic_linker='Win32 link.exe'
 
10949
    ;;
 
10950
 
 
10951
  *)
 
10952
    # Assume MSVC wrapper
 
10953
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
10954
    dynamic_linker='Win32 ld.exe'
 
10955
    ;;
 
10956
  esac
 
10957
  # FIXME: first we should search . and the directory the executable is in
 
10958
  shlibpath_var=PATH
 
10959
  ;;
 
10960
 
 
10961
darwin* | rhapsody*)
 
10962
  dynamic_linker="$host_os dyld"
 
10963
  version_type=darwin
 
10964
  need_lib_prefix=no
 
10965
  need_version=no
 
10966
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10967
  soname_spec='${libname}${release}${major}$shared_ext'
 
10968
  shlibpath_overrides_runpath=yes
 
10969
  shlibpath_var=DYLD_LIBRARY_PATH
 
10970
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
10971
 
 
10972
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
10973
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
10974
  ;;
 
10975
 
 
10976
dgux*)
 
10977
  version_type=linux
 
10978
  need_lib_prefix=no
 
10979
  need_version=no
 
10980
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
10981
  soname_spec='${libname}${release}${shared_ext}$major'
 
10982
  shlibpath_var=LD_LIBRARY_PATH
 
10983
  ;;
 
10984
 
 
10985
freebsd1*)
 
10986
  dynamic_linker=no
 
10987
  ;;
 
10988
 
 
10989
freebsd* | dragonfly*)
 
10990
  # DragonFly does not have aout.  When/if they implement a new
 
10991
  # versioning mechanism, adjust this.
 
10992
  if test -x /usr/bin/objformat; then
 
10993
    objformat=`/usr/bin/objformat`
 
10994
  else
 
10995
    case $host_os in
 
10996
    freebsd[123]*) objformat=aout ;;
 
10997
    *) objformat=elf ;;
 
10998
    esac
 
10999
  fi
 
11000
  version_type=freebsd-$objformat
 
11001
  case $version_type in
 
11002
    freebsd-elf*)
 
11003
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11004
      need_version=no
 
11005
      need_lib_prefix=no
 
11006
      ;;
 
11007
    freebsd-*)
 
11008
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
11009
      need_version=yes
 
11010
      ;;
 
11011
  esac
 
11012
  shlibpath_var=LD_LIBRARY_PATH
 
11013
  case $host_os in
 
11014
  freebsd2*)
 
11015
    shlibpath_overrides_runpath=yes
 
11016
    ;;
 
11017
  freebsd3.[01]* | freebsdelf3.[01]*)
 
11018
    shlibpath_overrides_runpath=yes
 
11019
    hardcode_into_libs=yes
 
11020
    ;;
 
11021
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
11022
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
11023
    shlibpath_overrides_runpath=no
 
11024
    hardcode_into_libs=yes
 
11025
    ;;
 
11026
  *) # from 4.6 on, and DragonFly
 
11027
    shlibpath_overrides_runpath=yes
 
11028
    hardcode_into_libs=yes
 
11029
    ;;
 
11030
  esac
 
11031
  ;;
 
11032
 
 
11033
gnu*)
 
11034
  version_type=linux
 
11035
  need_lib_prefix=no
 
11036
  need_version=no
 
11037
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
11038
  soname_spec='${libname}${release}${shared_ext}$major'
 
11039
  shlibpath_var=LD_LIBRARY_PATH
 
11040
  shlibpath_overrides_runpath=no
 
11041
  hardcode_into_libs=yes
 
11042
  ;;
 
11043
 
 
11044
haiku*)
 
11045
  version_type=linux
 
11046
  need_lib_prefix=no
 
11047
  need_version=no
 
11048
  dynamic_linker="$host_os runtime_loader"
 
11049
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
11050
  soname_spec='${libname}${release}${shared_ext}$major'
 
11051
  shlibpath_var=LIBRARY_PATH
 
11052
  shlibpath_overrides_runpath=yes
 
11053
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
11054
  hardcode_into_libs=yes
 
11055
  ;;
 
11056
 
 
11057
hpux9* | hpux10* | hpux11*)
 
11058
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
11059
  # link against other versions.
 
11060
  version_type=sunos
 
11061
  need_lib_prefix=no
 
11062
  need_version=no
 
11063
  case $host_cpu in
 
11064
  ia64*)
 
11065
    shrext_cmds='.so'
 
11066
    hardcode_into_libs=yes
 
11067
    dynamic_linker="$host_os dld.so"
 
11068
    shlibpath_var=LD_LIBRARY_PATH
 
11069
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11070
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11071
    soname_spec='${libname}${release}${shared_ext}$major'
 
11072
    if test "X$HPUX_IA64_MODE" = X32; then
 
11073
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
11074
    else
 
11075
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
11076
    fi
 
11077
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11078
    ;;
 
11079
  hppa*64*)
 
11080
    shrext_cmds='.sl'
 
11081
    hardcode_into_libs=yes
 
11082
    dynamic_linker="$host_os dld.sl"
 
11083
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
11084
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11085
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11086
    soname_spec='${libname}${release}${shared_ext}$major'
 
11087
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
11088
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11089
    ;;
 
11090
  *)
 
11091
    shrext_cmds='.sl'
 
11092
    dynamic_linker="$host_os dld.sl"
 
11093
    shlibpath_var=SHLIB_PATH
 
11094
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
11095
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11096
    soname_spec='${libname}${release}${shared_ext}$major'
 
11097
    ;;
 
11098
  esac
 
11099
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
11100
  postinstall_cmds='chmod 555 $lib'
 
11101
  # or fails outright, so override atomically:
 
11102
  install_override_mode=555
 
11103
  ;;
 
11104
 
 
11105
interix[3-9]*)
 
11106
  version_type=linux
 
11107
  need_lib_prefix=no
 
11108
  need_version=no
 
11109
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11110
  soname_spec='${libname}${release}${shared_ext}$major'
 
11111
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
11112
  shlibpath_var=LD_LIBRARY_PATH
 
11113
  shlibpath_overrides_runpath=no
 
11114
  hardcode_into_libs=yes
 
11115
  ;;
 
11116
 
 
11117
irix5* | irix6* | nonstopux*)
 
11118
  case $host_os in
 
11119
    nonstopux*) version_type=nonstopux ;;
 
11120
    *)
 
11121
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
11122
                version_type=linux
 
11123
        else
 
11124
                version_type=irix
 
11125
        fi ;;
 
11126
  esac
 
11127
  need_lib_prefix=no
 
11128
  need_version=no
 
11129
  soname_spec='${libname}${release}${shared_ext}$major'
 
11130
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11131
  case $host_os in
 
11132
  irix5* | nonstopux*)
 
11133
    libsuff= shlibsuff=
 
11134
    ;;
 
11135
  *)
 
11136
    case $LD in # libtool.m4 will add one of these switches to LD
 
11137
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
11138
      libsuff= shlibsuff= libmagic=32-bit;;
 
11139
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
11140
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
11141
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
11142
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
11143
    *) libsuff= shlibsuff= libmagic=never-match;;
 
11144
    esac
 
11145
    ;;
 
11146
  esac
 
11147
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
11148
  shlibpath_overrides_runpath=no
 
11149
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
11150
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
11151
  hardcode_into_libs=yes
 
11152
  ;;
 
11153
 
 
11154
# No shared lib support for Linux oldld, aout, or coff.
 
11155
linux*oldld* | linux*aout* | linux*coff*)
 
11156
  dynamic_linker=no
 
11157
  ;;
 
11158
 
 
11159
# This must be Linux ELF.
 
11160
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
11161
  version_type=linux
 
11162
  need_lib_prefix=no
 
11163
  need_version=no
 
11164
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11165
  soname_spec='${libname}${release}${shared_ext}$major'
 
11166
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
11167
  shlibpath_var=LD_LIBRARY_PATH
 
11168
  shlibpath_overrides_runpath=no
 
11169
 
 
11170
  # Some binutils ld are patched to set DT_RUNPATH
 
11171
  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
 
11172
  $as_echo_n "(cached) " >&6
 
11173
else
 
11174
  lt_cv_shlibpath_overrides_runpath=no
 
11175
    save_LDFLAGS=$LDFLAGS
 
11176
    save_libdir=$libdir
 
11177
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
11178
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
11179
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11180
/* end confdefs.h.  */
 
11181
 
 
11182
int
 
11183
main ()
 
11184
{
 
11185
 
 
11186
  ;
 
11187
  return 0;
 
11188
}
 
11189
_ACEOF
 
11190
if ac_fn_c_try_link "$LINENO"; then :
 
11191
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
11192
  lt_cv_shlibpath_overrides_runpath=yes
 
11193
fi
 
11194
fi
 
11195
rm -f core conftest.err conftest.$ac_objext \
 
11196
    conftest$ac_exeext conftest.$ac_ext
 
11197
    LDFLAGS=$save_LDFLAGS
 
11198
    libdir=$save_libdir
 
11199
 
 
11200
fi
 
11201
 
 
11202
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
11203
 
 
11204
  # This implies no fast_install, which is unacceptable.
 
11205
  # Some rework will be needed to allow for fast_install
 
11206
  # before this can be enabled.
 
11207
  hardcode_into_libs=yes
 
11208
 
 
11209
  # Append ld.so.conf contents to the search path
 
11210
  if test -f /etc/ld.so.conf; then
 
11211
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
 
11212
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
11213
  fi
 
11214
 
 
11215
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
11216
  # powerpc, because MkLinux only supported shared libraries with the
 
11217
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
11218
  # most powerpc-linux boxes support dynamic linking these days and
 
11219
  # people can always --disable-shared, the test was removed, and we
 
11220
  # assume the GNU/Linux dynamic linker is in use.
 
11221
  dynamic_linker='GNU/Linux ld.so'
 
11222
  ;;
 
11223
 
 
11224
netbsdelf*-gnu)
 
11225
  version_type=linux
 
11226
  need_lib_prefix=no
 
11227
  need_version=no
 
11228
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11229
  soname_spec='${libname}${release}${shared_ext}$major'
 
11230
  shlibpath_var=LD_LIBRARY_PATH
 
11231
  shlibpath_overrides_runpath=no
 
11232
  hardcode_into_libs=yes
 
11233
  dynamic_linker='NetBSD ld.elf_so'
 
11234
  ;;
 
11235
 
 
11236
netbsd*)
 
11237
  version_type=sunos
 
11238
  need_lib_prefix=no
 
11239
  need_version=no
 
11240
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
11241
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11242
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11243
    dynamic_linker='NetBSD (a.out) ld.so'
 
11244
  else
 
11245
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11246
    soname_spec='${libname}${release}${shared_ext}$major'
 
11247
    dynamic_linker='NetBSD ld.elf_so'
 
11248
  fi
 
11249
  shlibpath_var=LD_LIBRARY_PATH
 
11250
  shlibpath_overrides_runpath=yes
 
11251
  hardcode_into_libs=yes
 
11252
  ;;
 
11253
 
 
11254
newsos6)
 
11255
  version_type=linux
 
11256
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11257
  shlibpath_var=LD_LIBRARY_PATH
 
11258
  shlibpath_overrides_runpath=yes
 
11259
  ;;
 
11260
 
 
11261
*nto* | *qnx*)
 
11262
  version_type=qnx
 
11263
  need_lib_prefix=no
 
11264
  need_version=no
 
11265
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11266
  soname_spec='${libname}${release}${shared_ext}$major'
 
11267
  shlibpath_var=LD_LIBRARY_PATH
 
11268
  shlibpath_overrides_runpath=no
 
11269
  hardcode_into_libs=yes
 
11270
  dynamic_linker='ldqnx.so'
 
11271
  ;;
 
11272
 
 
11273
openbsd*)
 
11274
  version_type=sunos
 
11275
  sys_lib_dlsearch_path_spec="/usr/lib"
 
11276
  need_lib_prefix=no
 
11277
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
11278
  case $host_os in
 
11279
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
11280
    *)                          need_version=no  ;;
 
11281
  esac
 
11282
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11283
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11284
  shlibpath_var=LD_LIBRARY_PATH
 
11285
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11286
    case $host_os in
 
11287
      openbsd2.[89] | openbsd2.[89].*)
 
11288
        shlibpath_overrides_runpath=no
 
11289
        ;;
 
11290
      *)
 
11291
        shlibpath_overrides_runpath=yes
 
11292
        ;;
 
11293
      esac
 
11294
  else
 
11295
    shlibpath_overrides_runpath=yes
 
11296
  fi
 
11297
  ;;
 
11298
 
 
11299
os2*)
 
11300
  libname_spec='$name'
 
11301
  shrext_cmds=".dll"
 
11302
  need_lib_prefix=no
 
11303
  library_names_spec='$libname${shared_ext} $libname.a'
 
11304
  dynamic_linker='OS/2 ld.exe'
 
11305
  shlibpath_var=LIBPATH
 
11306
  ;;
 
11307
 
 
11308
osf3* | osf4* | osf5*)
 
11309
  version_type=osf
 
11310
  need_lib_prefix=no
 
11311
  need_version=no
 
11312
  soname_spec='${libname}${release}${shared_ext}$major'
 
11313
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11314
  shlibpath_var=LD_LIBRARY_PATH
 
11315
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
11316
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
11317
  ;;
 
11318
 
 
11319
rdos*)
 
11320
  dynamic_linker=no
 
11321
  ;;
 
11322
 
 
11323
solaris*)
 
11324
  version_type=linux
 
11325
  need_lib_prefix=no
 
11326
  need_version=no
 
11327
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11328
  soname_spec='${libname}${release}${shared_ext}$major'
 
11329
  shlibpath_var=LD_LIBRARY_PATH
 
11330
  shlibpath_overrides_runpath=yes
 
11331
  hardcode_into_libs=yes
 
11332
  # ldd complains unless libraries are executable
 
11333
  postinstall_cmds='chmod +x $lib'
 
11334
  ;;
 
11335
 
 
11336
sunos4*)
 
11337
  version_type=sunos
 
11338
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11339
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
11340
  shlibpath_var=LD_LIBRARY_PATH
 
11341
  shlibpath_overrides_runpath=yes
 
11342
  if test "$with_gnu_ld" = yes; then
 
11343
    need_lib_prefix=no
 
11344
  fi
 
11345
  need_version=yes
 
11346
  ;;
 
11347
 
 
11348
sysv4 | sysv4.3*)
 
11349
  version_type=linux
 
11350
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11351
  soname_spec='${libname}${release}${shared_ext}$major'
 
11352
  shlibpath_var=LD_LIBRARY_PATH
 
11353
  case $host_vendor in
 
11354
    sni)
 
11355
      shlibpath_overrides_runpath=no
 
11356
      need_lib_prefix=no
 
11357
      runpath_var=LD_RUN_PATH
 
11358
      ;;
 
11359
    siemens)
 
11360
      need_lib_prefix=no
 
11361
      ;;
 
11362
    motorola)
 
11363
      need_lib_prefix=no
 
11364
      need_version=no
 
11365
      shlibpath_overrides_runpath=no
 
11366
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
11367
      ;;
 
11368
  esac
 
11369
  ;;
 
11370
 
 
11371
sysv4*MP*)
 
11372
  if test -d /usr/nec ;then
 
11373
    version_type=linux
 
11374
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
11375
    soname_spec='$libname${shared_ext}.$major'
 
11376
    shlibpath_var=LD_LIBRARY_PATH
 
11377
  fi
 
11378
  ;;
 
11379
 
 
11380
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
11381
  version_type=freebsd-elf
 
11382
  need_lib_prefix=no
 
11383
  need_version=no
 
11384
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11385
  soname_spec='${libname}${release}${shared_ext}$major'
 
11386
  shlibpath_var=LD_LIBRARY_PATH
 
11387
  shlibpath_overrides_runpath=yes
 
11388
  hardcode_into_libs=yes
 
11389
  if test "$with_gnu_ld" = yes; then
 
11390
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
11391
  else
 
11392
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
11393
    case $host_os in
 
11394
      sco3.2v5*)
 
11395
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
11396
        ;;
 
11397
    esac
 
11398
  fi
 
11399
  sys_lib_dlsearch_path_spec='/usr/lib'
 
11400
  ;;
 
11401
 
 
11402
tpf*)
 
11403
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
11404
  version_type=linux
 
11405
  need_lib_prefix=no
 
11406
  need_version=no
 
11407
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11408
  shlibpath_var=LD_LIBRARY_PATH
 
11409
  shlibpath_overrides_runpath=no
 
11410
  hardcode_into_libs=yes
 
11411
  ;;
 
11412
 
 
11413
uts4*)
 
11414
  version_type=linux
 
11415
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11416
  soname_spec='${libname}${release}${shared_ext}$major'
 
11417
  shlibpath_var=LD_LIBRARY_PATH
 
11418
  ;;
 
11419
 
 
11420
*)
 
11421
  dynamic_linker=no
 
11422
  ;;
 
11423
esac
 
11424
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
11425
$as_echo "$dynamic_linker" >&6; }
 
11426
test "$dynamic_linker" = no && can_build_shared=no
 
11427
 
 
11428
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
11429
if test "$GCC" = yes; then
 
11430
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
11431
fi
 
11432
 
 
11433
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
11434
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
11435
fi
 
11436
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
11437
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
11438
fi
 
11439
 
 
11440
 
 
11441
 
 
11442
 
 
11443
 
 
11444
 
 
11445
 
 
11446
 
 
11447
 
 
11448
 
 
11449
 
 
11450
 
 
11451
 
 
11452
 
 
11453
 
 
11454
 
 
11455
 
 
11456
 
 
11457
 
 
11458
 
 
11459
 
 
11460
 
 
11461
 
 
11462
 
 
11463
 
 
11464
 
 
11465
 
 
11466
 
 
11467
 
 
11468
 
 
11469
 
 
11470
 
 
11471
 
 
11472
 
 
11473
 
 
11474
 
 
11475
 
 
11476
 
 
11477
 
 
11478
 
 
11479
 
 
11480
 
 
11481
 
 
11482
 
 
11483
 
 
11484
 
 
11485
 
 
11486
 
 
11487
 
 
11488
 
 
11489
 
 
11490
 
 
11491
 
 
11492
 
 
11493
 
 
11494
 
 
11495
 
 
11496
 
 
11497
 
 
11498
 
 
11499
 
 
11500
 
 
11501
 
 
11502
 
 
11503
 
 
11504
 
 
11505
 
 
11506
 
 
11507
 
 
11508
 
 
11509
 
 
11510
 
 
11511
 
 
11512
 
 
11513
 
 
11514
 
 
11515
 
 
11516
 
 
11517
 
 
11518
 
 
11519
 
 
11520
 
 
11521
 
 
11522
 
 
11523
 
 
11524
 
 
11525
 
 
11526
 
 
11527
 
 
11528
 
 
11529
 
 
11530
 
 
11531
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
11532
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
11533
hardcode_action=
 
11534
if test -n "$hardcode_libdir_flag_spec" ||
 
11535
   test -n "$runpath_var" ||
 
11536
   test "X$hardcode_automatic" = "Xyes" ; then
 
11537
 
 
11538
  # We can hardcode non-existent directories.
 
11539
  if test "$hardcode_direct" != no &&
 
11540
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
11541
     # have to relink, otherwise we might link with an installed library
 
11542
     # when we should be linking with a yet-to-be-installed one
 
11543
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
11544
     test "$hardcode_minus_L" != no; then
 
11545
    # Linking always hardcodes the temporary library directory.
 
11546
    hardcode_action=relink
 
11547
  else
 
11548
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
11549
    hardcode_action=immediate
 
11550
  fi
 
11551
else
 
11552
  # We cannot hardcode anything, or else we can only hardcode existing
 
11553
  # directories.
 
11554
  hardcode_action=unsupported
 
11555
fi
 
11556
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
11557
$as_echo "$hardcode_action" >&6; }
 
11558
 
 
11559
if test "$hardcode_action" = relink ||
 
11560
   test "$inherit_rpath" = yes; then
 
11561
  # Fast installation is not supported
 
11562
  enable_fast_install=no
 
11563
elif test "$shlibpath_overrides_runpath" = yes ||
 
11564
     test "$enable_shared" = no; then
 
11565
  # Fast installation is not necessary
 
11566
  enable_fast_install=needless
 
11567
fi
 
11568
 
 
11569
 
 
11570
 
 
11571
 
 
11572
 
 
11573
 
 
11574
  if test "x$enable_dlopen" != xyes; then
 
11575
  enable_dlopen=unknown
 
11576
  enable_dlopen_self=unknown
 
11577
  enable_dlopen_self_static=unknown
 
11578
else
 
11579
  lt_cv_dlopen=no
 
11580
  lt_cv_dlopen_libs=
 
11581
 
 
11582
  case $host_os in
 
11583
  beos*)
 
11584
    lt_cv_dlopen="load_add_on"
 
11585
    lt_cv_dlopen_libs=
 
11586
    lt_cv_dlopen_self=yes
 
11587
    ;;
 
11588
 
 
11589
  mingw* | pw32* | cegcc*)
 
11590
    lt_cv_dlopen="LoadLibrary"
 
11591
    lt_cv_dlopen_libs=
 
11592
    ;;
 
11593
 
 
11594
  cygwin*)
 
11595
    lt_cv_dlopen="dlopen"
 
11596
    lt_cv_dlopen_libs=
 
11597
    ;;
 
11598
 
 
11599
  darwin*)
 
11600
  # if libdl is installed we need to link against it
 
11601
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
11602
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
11603
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
11604
  $as_echo_n "(cached) " >&6
 
11605
else
 
11606
  ac_check_lib_save_LIBS=$LIBS
 
11607
LIBS="-ldl  $LIBS"
 
11608
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11609
/* end confdefs.h.  */
 
11610
 
 
11611
/* Override any GCC internal prototype to avoid an error.
 
11612
   Use char because int might match the return type of a GCC
 
11613
   builtin and then its argument prototype would still apply.  */
 
11614
#ifdef __cplusplus
 
11615
extern "C"
 
11616
#endif
 
11617
char dlopen ();
 
11618
int
 
11619
main ()
 
11620
{
 
11621
return dlopen ();
 
11622
  ;
 
11623
  return 0;
 
11624
}
 
11625
_ACEOF
 
11626
if ac_fn_c_try_link "$LINENO"; then :
 
11627
  ac_cv_lib_dl_dlopen=yes
 
11628
else
 
11629
  ac_cv_lib_dl_dlopen=no
 
11630
fi
 
11631
rm -f core conftest.err conftest.$ac_objext \
 
11632
    conftest$ac_exeext conftest.$ac_ext
 
11633
LIBS=$ac_check_lib_save_LIBS
 
11634
fi
 
11635
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
11636
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
11637
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 
11638
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11639
else
 
11640
 
 
11641
    lt_cv_dlopen="dyld"
 
11642
    lt_cv_dlopen_libs=
 
11643
    lt_cv_dlopen_self=yes
 
11644
 
 
11645
fi
 
11646
 
 
11647
    ;;
 
11648
 
 
11649
  *)
 
11650
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
11651
if test "x$ac_cv_func_shl_load" = x""yes; then :
 
11652
  lt_cv_dlopen="shl_load"
 
11653
else
 
11654
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
11655
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
11656
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
 
11657
  $as_echo_n "(cached) " >&6
 
11658
else
 
11659
  ac_check_lib_save_LIBS=$LIBS
 
11660
LIBS="-ldld  $LIBS"
 
11661
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11662
/* end confdefs.h.  */
 
11663
 
 
11664
/* Override any GCC internal prototype to avoid an error.
 
11665
   Use char because int might match the return type of a GCC
 
11666
   builtin and then its argument prototype would still apply.  */
 
11667
#ifdef __cplusplus
 
11668
extern "C"
 
11669
#endif
 
11670
char shl_load ();
 
11671
int
 
11672
main ()
 
11673
{
 
11674
return shl_load ();
 
11675
  ;
 
11676
  return 0;
 
11677
}
 
11678
_ACEOF
 
11679
if ac_fn_c_try_link "$LINENO"; then :
 
11680
  ac_cv_lib_dld_shl_load=yes
 
11681
else
 
11682
  ac_cv_lib_dld_shl_load=no
 
11683
fi
 
11684
rm -f core conftest.err conftest.$ac_objext \
 
11685
    conftest$ac_exeext conftest.$ac_ext
 
11686
LIBS=$ac_check_lib_save_LIBS
 
11687
fi
 
11688
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
11689
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
11690
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
 
11691
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
11692
else
 
11693
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
11694
if test "x$ac_cv_func_dlopen" = x""yes; then :
 
11695
  lt_cv_dlopen="dlopen"
 
11696
else
 
11697
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
11698
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
11699
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
11700
  $as_echo_n "(cached) " >&6
 
11701
else
 
11702
  ac_check_lib_save_LIBS=$LIBS
 
11703
LIBS="-ldl  $LIBS"
 
11704
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11705
/* end confdefs.h.  */
 
11706
 
 
11707
/* Override any GCC internal prototype to avoid an error.
 
11708
   Use char because int might match the return type of a GCC
 
11709
   builtin and then its argument prototype would still apply.  */
 
11710
#ifdef __cplusplus
 
11711
extern "C"
 
11712
#endif
 
11713
char dlopen ();
 
11714
int
 
11715
main ()
 
11716
{
 
11717
return dlopen ();
 
11718
  ;
 
11719
  return 0;
 
11720
}
 
11721
_ACEOF
 
11722
if ac_fn_c_try_link "$LINENO"; then :
 
11723
  ac_cv_lib_dl_dlopen=yes
 
11724
else
 
11725
  ac_cv_lib_dl_dlopen=no
 
11726
fi
 
11727
rm -f core conftest.err conftest.$ac_objext \
 
11728
    conftest$ac_exeext conftest.$ac_ext
 
11729
LIBS=$ac_check_lib_save_LIBS
 
11730
fi
 
11731
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
11732
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
11733
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 
11734
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11735
else
 
11736
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
11737
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
11738
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
 
11739
  $as_echo_n "(cached) " >&6
 
11740
else
 
11741
  ac_check_lib_save_LIBS=$LIBS
 
11742
LIBS="-lsvld  $LIBS"
 
11743
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11744
/* end confdefs.h.  */
 
11745
 
 
11746
/* Override any GCC internal prototype to avoid an error.
 
11747
   Use char because int might match the return type of a GCC
 
11748
   builtin and then its argument prototype would still apply.  */
 
11749
#ifdef __cplusplus
 
11750
extern "C"
 
11751
#endif
 
11752
char dlopen ();
 
11753
int
 
11754
main ()
 
11755
{
 
11756
return dlopen ();
 
11757
  ;
 
11758
  return 0;
 
11759
}
 
11760
_ACEOF
 
11761
if ac_fn_c_try_link "$LINENO"; then :
 
11762
  ac_cv_lib_svld_dlopen=yes
 
11763
else
 
11764
  ac_cv_lib_svld_dlopen=no
 
11765
fi
 
11766
rm -f core conftest.err conftest.$ac_objext \
 
11767
    conftest$ac_exeext conftest.$ac_ext
 
11768
LIBS=$ac_check_lib_save_LIBS
 
11769
fi
 
11770
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
11771
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
11772
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
 
11773
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
11774
else
 
11775
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
11776
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
11777
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
 
11778
  $as_echo_n "(cached) " >&6
 
11779
else
 
11780
  ac_check_lib_save_LIBS=$LIBS
 
11781
LIBS="-ldld  $LIBS"
 
11782
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11783
/* end confdefs.h.  */
 
11784
 
 
11785
/* Override any GCC internal prototype to avoid an error.
 
11786
   Use char because int might match the return type of a GCC
 
11787
   builtin and then its argument prototype would still apply.  */
 
11788
#ifdef __cplusplus
 
11789
extern "C"
 
11790
#endif
 
11791
char dld_link ();
 
11792
int
 
11793
main ()
 
11794
{
 
11795
return dld_link ();
 
11796
  ;
 
11797
  return 0;
 
11798
}
 
11799
_ACEOF
 
11800
if ac_fn_c_try_link "$LINENO"; then :
 
11801
  ac_cv_lib_dld_dld_link=yes
 
11802
else
 
11803
  ac_cv_lib_dld_dld_link=no
 
11804
fi
 
11805
rm -f core conftest.err conftest.$ac_objext \
 
11806
    conftest$ac_exeext conftest.$ac_ext
 
11807
LIBS=$ac_check_lib_save_LIBS
 
11808
fi
 
11809
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
11810
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
11811
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
 
11812
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
11813
fi
 
11814
 
 
11815
 
 
11816
fi
 
11817
 
 
11818
 
 
11819
fi
 
11820
 
 
11821
 
 
11822
fi
 
11823
 
 
11824
 
 
11825
fi
 
11826
 
 
11827
 
 
11828
fi
 
11829
 
 
11830
    ;;
 
11831
  esac
 
11832
 
 
11833
  if test "x$lt_cv_dlopen" != xno; then
 
11834
    enable_dlopen=yes
 
11835
  else
 
11836
    enable_dlopen=no
 
11837
  fi
 
11838
 
 
11839
  case $lt_cv_dlopen in
 
11840
  dlopen)
 
11841
    save_CPPFLAGS="$CPPFLAGS"
 
11842
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
11843
 
 
11844
    save_LDFLAGS="$LDFLAGS"
 
11845
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
11846
 
 
11847
    save_LIBS="$LIBS"
 
11848
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
11849
 
 
11850
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
11851
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
11852
if test "${lt_cv_dlopen_self+set}" = set; then :
 
11853
  $as_echo_n "(cached) " >&6
 
11854
else
 
11855
          if test "$cross_compiling" = yes; then :
 
11856
  lt_cv_dlopen_self=cross
 
11857
else
 
11858
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11859
  lt_status=$lt_dlunknown
 
11860
  cat > conftest.$ac_ext <<_LT_EOF
 
11861
#line $LINENO "configure"
 
11862
#include "confdefs.h"
 
11863
 
 
11864
#if HAVE_DLFCN_H
 
11865
#include <dlfcn.h>
 
11866
#endif
 
11867
 
 
11868
#include <stdio.h>
 
11869
 
 
11870
#ifdef RTLD_GLOBAL
 
11871
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11872
#else
 
11873
#  ifdef DL_GLOBAL
 
11874
#    define LT_DLGLOBAL         DL_GLOBAL
 
11875
#  else
 
11876
#    define LT_DLGLOBAL         0
 
11877
#  endif
 
11878
#endif
 
11879
 
 
11880
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11881
   find out it does not work in some platform. */
 
11882
#ifndef LT_DLLAZY_OR_NOW
 
11883
#  ifdef RTLD_LAZY
 
11884
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11885
#  else
 
11886
#    ifdef DL_LAZY
 
11887
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11888
#    else
 
11889
#      ifdef RTLD_NOW
 
11890
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11891
#      else
 
11892
#        ifdef DL_NOW
 
11893
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11894
#        else
 
11895
#          define LT_DLLAZY_OR_NOW      0
 
11896
#        endif
 
11897
#      endif
 
11898
#    endif
 
11899
#  endif
 
11900
#endif
 
11901
 
 
11902
/* When -fvisbility=hidden is used, assume the code has been annotated
 
11903
   correspondingly for the symbols needed.  */
 
11904
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
11905
int fnord () __attribute__((visibility("default")));
 
11906
#endif
 
11907
 
 
11908
int fnord () { return 42; }
 
11909
int main ()
 
11910
{
 
11911
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11912
  int status = $lt_dlunknown;
 
11913
 
 
11914
  if (self)
 
11915
    {
 
11916
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11917
      else
 
11918
        {
 
11919
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
11920
          else puts (dlerror ());
 
11921
        }
 
11922
      /* dlclose (self); */
 
11923
    }
 
11924
  else
 
11925
    puts (dlerror ());
 
11926
 
 
11927
  return status;
 
11928
}
 
11929
_LT_EOF
 
11930
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11931
  (eval $ac_link) 2>&5
 
11932
  ac_status=$?
 
11933
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11934
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11935
    (./conftest; exit; ) >&5 2>/dev/null
 
11936
    lt_status=$?
 
11937
    case x$lt_status in
 
11938
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
11939
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
11940
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
11941
    esac
 
11942
  else :
 
11943
    # compilation failed
 
11944
    lt_cv_dlopen_self=no
 
11945
  fi
 
11946
fi
 
11947
rm -fr conftest*
 
11948
 
 
11949
 
 
11950
fi
 
11951
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
11952
$as_echo "$lt_cv_dlopen_self" >&6; }
 
11953
 
 
11954
    if test "x$lt_cv_dlopen_self" = xyes; then
 
11955
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
11956
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
11957
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
11958
if test "${lt_cv_dlopen_self_static+set}" = set; then :
 
11959
  $as_echo_n "(cached) " >&6
 
11960
else
 
11961
          if test "$cross_compiling" = yes; then :
 
11962
  lt_cv_dlopen_self_static=cross
 
11963
else
 
11964
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11965
  lt_status=$lt_dlunknown
 
11966
  cat > conftest.$ac_ext <<_LT_EOF
 
11967
#line $LINENO "configure"
 
11968
#include "confdefs.h"
 
11969
 
 
11970
#if HAVE_DLFCN_H
 
11971
#include <dlfcn.h>
 
11972
#endif
 
11973
 
 
11974
#include <stdio.h>
 
11975
 
 
11976
#ifdef RTLD_GLOBAL
 
11977
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11978
#else
 
11979
#  ifdef DL_GLOBAL
 
11980
#    define LT_DLGLOBAL         DL_GLOBAL
 
11981
#  else
 
11982
#    define LT_DLGLOBAL         0
 
11983
#  endif
 
11984
#endif
 
11985
 
 
11986
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11987
   find out it does not work in some platform. */
 
11988
#ifndef LT_DLLAZY_OR_NOW
 
11989
#  ifdef RTLD_LAZY
 
11990
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11991
#  else
 
11992
#    ifdef DL_LAZY
 
11993
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11994
#    else
 
11995
#      ifdef RTLD_NOW
 
11996
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11997
#      else
 
11998
#        ifdef DL_NOW
 
11999
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12000
#        else
 
12001
#          define LT_DLLAZY_OR_NOW      0
 
12002
#        endif
 
12003
#      endif
 
12004
#    endif
 
12005
#  endif
 
12006
#endif
 
12007
 
 
12008
/* When -fvisbility=hidden is used, assume the code has been annotated
 
12009
   correspondingly for the symbols needed.  */
 
12010
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
12011
int fnord () __attribute__((visibility("default")));
 
12012
#endif
 
12013
 
 
12014
int fnord () { return 42; }
 
12015
int main ()
 
12016
{
 
12017
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12018
  int status = $lt_dlunknown;
 
12019
 
 
12020
  if (self)
 
12021
    {
 
12022
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12023
      else
 
12024
        {
 
12025
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
12026
          else puts (dlerror ());
 
12027
        }
 
12028
      /* dlclose (self); */
 
12029
    }
 
12030
  else
 
12031
    puts (dlerror ());
 
12032
 
 
12033
  return status;
 
12034
}
 
12035
_LT_EOF
 
12036
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
12037
  (eval $ac_link) 2>&5
 
12038
  ac_status=$?
 
12039
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12040
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12041
    (./conftest; exit; ) >&5 2>/dev/null
 
12042
    lt_status=$?
 
12043
    case x$lt_status in
 
12044
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
12045
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
12046
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
12047
    esac
 
12048
  else :
 
12049
    # compilation failed
 
12050
    lt_cv_dlopen_self_static=no
 
12051
  fi
 
12052
fi
 
12053
rm -fr conftest*
 
12054
 
 
12055
 
 
12056
fi
 
12057
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
12058
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
12059
    fi
 
12060
 
 
12061
    CPPFLAGS="$save_CPPFLAGS"
 
12062
    LDFLAGS="$save_LDFLAGS"
 
12063
    LIBS="$save_LIBS"
 
12064
    ;;
 
12065
  esac
 
12066
 
 
12067
  case $lt_cv_dlopen_self in
 
12068
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
12069
  *) enable_dlopen_self=unknown ;;
 
12070
  esac
 
12071
 
 
12072
  case $lt_cv_dlopen_self_static in
 
12073
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
12074
  *) enable_dlopen_self_static=unknown ;;
 
12075
  esac
 
12076
fi
 
12077
 
 
12078
 
 
12079
 
 
12080
 
 
12081
 
 
12082
 
 
12083
 
 
12084
 
 
12085
 
 
12086
 
 
12087
 
 
12088
 
 
12089
 
 
12090
 
 
12091
 
 
12092
 
 
12093
 
 
12094
striplib=
 
12095
old_striplib=
 
12096
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
12097
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
12098
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
12099
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
12100
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
12101
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12102
$as_echo "yes" >&6; }
 
12103
else
 
12104
# FIXME - insert some real tests, host_os isn't really good enough
 
12105
  case $host_os in
 
12106
  darwin*)
 
12107
    if test -n "$STRIP" ; then
 
12108
      striplib="$STRIP -x"
 
12109
      old_striplib="$STRIP -S"
 
12110
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12111
$as_echo "yes" >&6; }
 
12112
    else
 
12113
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12114
$as_echo "no" >&6; }
 
12115
    fi
 
12116
    ;;
 
12117
  *)
 
12118
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12119
$as_echo "no" >&6; }
 
12120
    ;;
 
12121
  esac
 
12122
fi
 
12123
 
 
12124
 
 
12125
 
 
12126
 
 
12127
 
 
12128
 
 
12129
 
 
12130
 
 
12131
 
 
12132
 
 
12133
 
 
12134
 
 
12135
  # Report which library types will actually be built
 
12136
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
12137
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
12138
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
12139
$as_echo "$can_build_shared" >&6; }
 
12140
 
 
12141
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
12142
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
12143
  test "$can_build_shared" = "no" && enable_shared=no
 
12144
 
 
12145
  # On AIX, shared libraries and static libraries use the same namespace, and
 
12146
  # are all built from PIC.
 
12147
  case $host_os in
 
12148
  aix3*)
 
12149
    test "$enable_shared" = yes && enable_static=no
 
12150
    if test -n "$RANLIB"; then
 
12151
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
12152
      postinstall_cmds='$RANLIB $lib'
 
12153
    fi
 
12154
    ;;
 
12155
 
 
12156
  aix[4-9]*)
 
12157
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
12158
      test "$enable_shared" = yes && enable_static=no
 
12159
    fi
 
12160
    ;;
 
12161
  esac
 
12162
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
12163
$as_echo "$enable_shared" >&6; }
 
12164
 
 
12165
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
12166
$as_echo_n "checking whether to build static libraries... " >&6; }
 
12167
  # Make sure either enable_shared or enable_static is yes.
 
12168
  test "$enable_shared" = yes || enable_static=yes
 
12169
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
12170
$as_echo "$enable_static" >&6; }
 
12171
 
 
12172
 
 
12173
 
 
12174
 
 
12175
fi
 
12176
ac_ext=c
 
12177
ac_cpp='$CPP $CPPFLAGS'
 
12178
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12179
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12180
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12181
 
 
12182
CC="$lt_save_CC"
 
12183
 
 
12184
 
 
12185
 
 
12186
 
 
12187
 
 
12188
 
 
12189
 
 
12190
 
 
12191
 
 
12192
 
 
12193
 
 
12194
 
 
12195
 
 
12196
        ac_config_commands="$ac_config_commands libtool"
 
12197
 
 
12198
 
 
12199
 
 
12200
 
 
12201
# Only expand once:
 
12202
 
 
12203
 
 
12204
 
 
12205
CFLAGS="${CFLAGS} -Wall"
 
12206
CFLAGS+=" -DGSEAL_ENABLE"
 
12207
 
 
12208
 
 
12209
 
 
12210
 
 
12211
        DISABLE_DEPRECATED=""
 
12212
        if test $USE_MAINTAINER_MODE = yes; then
 
12213
                DOMAINS="G ATK PANGO GDK GDK_PIXBUF GTK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE GNOME_VFS WNCK LIBSOUP"
 
12214
                for DOMAIN in $DOMAINS; do
 
12215
                       DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
 
12216
                done
 
12217
        fi
 
12218
 
 
12219
 
 
12220
 
 
12221
 
 
12222
 
 
12223
    # Check whether --enable-compile-warnings was given.
 
12224
if test "${enable_compile_warnings+set}" = set; then :
 
12225
  enableval=$enable_compile_warnings;
 
12226
else
 
12227
  enable_compile_warnings="maximum"
 
12228
fi
 
12229
 
 
12230
 
 
12231
    warnCFLAGS=
 
12232
    if test "x$GCC" != xyes; then
 
12233
        enable_compile_warnings=no
 
12234
    fi
 
12235
 
 
12236
    warning_flags=
 
12237
    realsave_CFLAGS="$CFLAGS"
 
12238
 
 
12239
    case "$enable_compile_warnings" in
 
12240
    no)
 
12241
        warning_flags=
 
12242
        ;;
 
12243
    minimum)
 
12244
        warning_flags="-Wall"
 
12245
        ;;
 
12246
    yes)
 
12247
        warning_flags="-Wall -Wmissing-prototypes"
 
12248
        ;;
 
12249
    maximum|error)
 
12250
        warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
 
12251
        CFLAGS="$warning_flags $CFLAGS"
 
12252
        for option in -Wno-sign-compare; do
 
12253
                SAVE_CFLAGS="$CFLAGS"
 
12254
                CFLAGS="$CFLAGS $option"
 
12255
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands $option" >&5
 
12256
$as_echo_n "checking whether gcc understands $option... " >&6; }
 
12257
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12258
/* end confdefs.h.  */
 
12259
 
 
12260
int
 
12261
main ()
 
12262
{
 
12263
 
 
12264
  ;
 
12265
  return 0;
 
12266
}
 
12267
_ACEOF
 
12268
if ac_fn_c_try_compile "$LINENO"; then :
 
12269
  has_option=yes
 
12270
else
 
12271
  has_option=no
 
12272
fi
 
12273
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12274
                CFLAGS="$SAVE_CFLAGS"
 
12275
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
 
12276
$as_echo "$has_option" >&6; }
 
12277
                if test $has_option = yes; then
 
12278
                  warning_flags="$warning_flags $option"
 
12279
                fi
 
12280
                unset has_option
 
12281
                unset SAVE_CFLAGS
 
12282
        done
 
12283
        unset option
 
12284
        if test "$enable_compile_warnings" = "error" ; then
 
12285
            warning_flags="$warning_flags -Werror"
 
12286
        fi
 
12287
        ;;
 
12288
    *)
 
12289
        as_fn_error $? "Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" "$LINENO" 5
 
12290
        ;;
 
12291
    esac
 
12292
    CFLAGS="$realsave_CFLAGS"
 
12293
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
 
12294
$as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
 
12295
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $warning_flags" >&5
 
12296
$as_echo "$warning_flags" >&6; }
 
12297
 
 
12298
    # Check whether --enable-iso-c was given.
 
12299
if test "${enable_iso_c+set}" = set; then :
 
12300
  enableval=$enable_iso_c;
 
12301
else
 
12302
  enable_iso_c=no
 
12303
fi
 
12304
 
 
12305
 
 
12306
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking what language compliance flags to pass to the C compiler" >&5
 
12307
$as_echo_n "checking what language compliance flags to pass to the C compiler... " >&6; }
 
12308
    complCFLAGS=
 
12309
    if test "x$enable_iso_c" != "xno"; then
 
12310
        if test "x$GCC" = "xyes"; then
 
12311
        case " $CFLAGS " in
 
12312
            *\ \        -ansi\ \        *) ;;
 
12313
            *) complCFLAGS="$complCFLAGS -ansi" ;;
 
12314
        esac
 
12315
        case " $CFLAGS " in
 
12316
            *\ \        -pedantic\ \    *) ;;
 
12317
            *) complCFLAGS="$complCFLAGS -pedantic" ;;
 
12318
        esac
 
12319
        fi
 
12320
    fi
 
12321
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $complCFLAGS" >&5
 
12322
$as_echo "$complCFLAGS" >&6; }
 
12323
 
 
12324
    WARN_CFLAGS="$warning_flags $complCFLAGS"
 
12325
 
 
12326
 
 
12327
 
 
12328
#*******************************************************************************
 
12329
# Libraries
 
12330
#*******************************************************************************
 
12331
# Before making a release, the CHEESE_LT_VERSION string should be modified.
 
12332
# The string is of the form C:R:A.
 
12333
# - If interfaces have been changed or added, but binary compatibility has
 
12334
#   been preserved, change to C+1:0:A+1
 
12335
# - If binary compatibility has been broken (eg removed or changed interfaces)
 
12336
#   change to C+1:0:0
 
12337
# - If the interface is the same as the previous version, change to C:R+1:A
 
12338
LIBCHEESE_LT_VERSION=1:0:0
 
12339
LIBCHEESE_GTK_LT_VERSION=20:0:0
 
12340
 
 
12341
 
 
12342
 
 
12343
#*******************************************************************************
 
12344
# Expanded dirs
 
12345
#*******************************************************************************
 
12346
# This macro expands DIR and assigns it to RET.
 
12347
# If DIR is NONE, then it's replaced by DEFAULT.
 
12348
# Based on AC_DEFINE_DIR
 
12349
 
 
12350
 
 
12351
# FULL_LIBEXECDIR is used for X-GNOME-Bugzilla-ExtraInfoScript expansion
 
12352
# in data/cheese.desktop.in.in
 
12353
 
 
12354
  test "x$prefix" = xNONE && prefix="$ac_default_prefix"
 
12355
  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
12356
  ac_expand=$libexecdir
 
12357
  test "x$ac_expand" = xNONE && ac_expand="$NONE"
 
12358
  ac_expand=`eval echo $ac_expand`
 
12359
  FULL_LIBEXECDIR=`eval echo $ac_expand`
 
12360
 
 
12361
 
 
12362
 
 
12363
#*******************************************************************************
 
12364
# Internationalization
 
12365
#*******************************************************************************
 
12366
 
 
12367
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
 
12368
$as_echo_n "checking whether NLS is requested... " >&6; }
 
12369
    # Check whether --enable-nls was given.
 
12370
if test "${enable_nls+set}" = set; then :
 
12371
  enableval=$enable_nls; USE_NLS=$enableval
 
12372
else
 
12373
  USE_NLS=yes
 
12374
fi
 
12375
 
 
12376
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
 
12377
$as_echo "$USE_NLS" >&6; }
 
12378
 
 
12379
 
 
12380
 
 
12381
 
 
12382
      GETTEXT_MACRO_VERSION=0.17
 
12383
 
 
12384
 
 
12385
 
 
12386
 
 
12387
# Prepare PATH_SEPARATOR.
 
12388
# The user is always right.
 
12389
if test "${PATH_SEPARATOR+set}" != set; then
 
12390
  echo "#! /bin/sh" >conf$$.sh
 
12391
  echo  "exit 0"   >>conf$$.sh
 
12392
  chmod +x conf$$.sh
 
12393
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
12394
    PATH_SEPARATOR=';'
 
12395
  else
 
12396
    PATH_SEPARATOR=:
 
12397
  fi
 
12398
  rm -f conf$$.sh
 
12399
fi
 
12400
 
 
12401
# Find out how to test for executable files. Don't use a zero-byte file,
 
12402
# as systems may use methods other than mode bits to determine executability.
 
12403
cat >conf$$.file <<_ASEOF
 
12404
#! /bin/sh
 
12405
exit 0
 
12406
_ASEOF
 
12407
chmod +x conf$$.file
 
12408
if test -x conf$$.file >/dev/null 2>&1; then
 
12409
  ac_executable_p="test -x"
 
12410
else
 
12411
  ac_executable_p="test -f"
 
12412
fi
 
12413
rm -f conf$$.file
 
12414
 
 
12415
# Extract the first word of "msgfmt", so it can be a program name with args.
 
12416
set dummy msgfmt; ac_word=$2
 
12417
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12418
$as_echo_n "checking for $ac_word... " >&6; }
 
12419
if test "${ac_cv_path_MSGFMT+set}" = set; then :
 
12420
  $as_echo_n "(cached) " >&6
 
12421
else
 
12422
  case "$MSGFMT" in
 
12423
  [\\/]* | ?:[\\/]*)
 
12424
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
12425
    ;;
 
12426
  *)
 
12427
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
12428
    for ac_dir in $PATH; do
 
12429
      IFS="$ac_save_IFS"
 
12430
      test -z "$ac_dir" && ac_dir=.
 
12431
      for ac_exec_ext in '' $ac_executable_extensions; do
 
12432
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
12433
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
 
12434
          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
 
12435
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
12436
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
 
12437
            break 2
 
12438
          fi
 
12439
        fi
 
12440
      done
 
12441
    done
 
12442
    IFS="$ac_save_IFS"
 
12443
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
 
12444
    ;;
 
12445
esac
 
12446
fi
 
12447
MSGFMT="$ac_cv_path_MSGFMT"
 
12448
if test "$MSGFMT" != ":"; then
 
12449
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
 
12450
$as_echo "$MSGFMT" >&6; }
 
12451
else
 
12452
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12453
$as_echo "no" >&6; }
 
12454
fi
 
12455
 
 
12456
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
12457
set dummy gmsgfmt; ac_word=$2
 
12458
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12459
$as_echo_n "checking for $ac_word... " >&6; }
 
12460
if test "${ac_cv_path_GMSGFMT+set}" = set; then :
 
12461
  $as_echo_n "(cached) " >&6
 
12462
else
 
12463
  case $GMSGFMT in
 
12464
  [\\/]* | ?:[\\/]*)
 
12465
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
12466
  ;;
 
12467
  *)
 
12468
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12469
for as_dir in $PATH
 
12470
do
 
12471
  IFS=$as_save_IFS
 
12472
  test -z "$as_dir" && as_dir=.
 
12473
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12474
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12475
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
12476
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12477
    break 2
 
12478
  fi
 
12479
done
 
12480
  done
 
12481
IFS=$as_save_IFS
 
12482
 
 
12483
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
12484
  ;;
 
12485
esac
 
12486
fi
 
12487
GMSGFMT=$ac_cv_path_GMSGFMT
 
12488
if test -n "$GMSGFMT"; then
 
12489
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
 
12490
$as_echo "$GMSGFMT" >&6; }
 
12491
else
 
12492
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12493
$as_echo "no" >&6; }
 
12494
fi
 
12495
 
 
12496
 
 
12497
 
 
12498
    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
12499
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
 
12500
    *) MSGFMT_015=$MSGFMT ;;
 
12501
  esac
 
12502
 
 
12503
  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
12504
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
 
12505
    *) GMSGFMT_015=$GMSGFMT ;;
 
12506
  esac
 
12507
 
 
12508
 
 
12509
 
 
12510
# Prepare PATH_SEPARATOR.
 
12511
# The user is always right.
 
12512
if test "${PATH_SEPARATOR+set}" != set; then
 
12513
  echo "#! /bin/sh" >conf$$.sh
 
12514
  echo  "exit 0"   >>conf$$.sh
 
12515
  chmod +x conf$$.sh
 
12516
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
12517
    PATH_SEPARATOR=';'
 
12518
  else
 
12519
    PATH_SEPARATOR=:
 
12520
  fi
 
12521
  rm -f conf$$.sh
 
12522
fi
 
12523
 
 
12524
# Find out how to test for executable files. Don't use a zero-byte file,
 
12525
# as systems may use methods other than mode bits to determine executability.
 
12526
cat >conf$$.file <<_ASEOF
 
12527
#! /bin/sh
 
12528
exit 0
 
12529
_ASEOF
 
12530
chmod +x conf$$.file
 
12531
if test -x conf$$.file >/dev/null 2>&1; then
 
12532
  ac_executable_p="test -x"
 
12533
else
 
12534
  ac_executable_p="test -f"
 
12535
fi
 
12536
rm -f conf$$.file
 
12537
 
 
12538
# Extract the first word of "xgettext", so it can be a program name with args.
 
12539
set dummy xgettext; ac_word=$2
 
12540
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12541
$as_echo_n "checking for $ac_word... " >&6; }
 
12542
if test "${ac_cv_path_XGETTEXT+set}" = set; then :
 
12543
  $as_echo_n "(cached) " >&6
 
12544
else
 
12545
  case "$XGETTEXT" in
 
12546
  [\\/]* | ?:[\\/]*)
 
12547
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
12548
    ;;
 
12549
  *)
 
12550
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
12551
    for ac_dir in $PATH; do
 
12552
      IFS="$ac_save_IFS"
 
12553
      test -z "$ac_dir" && ac_dir=.
 
12554
      for ac_exec_ext in '' $ac_executable_extensions; do
 
12555
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
12556
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
 
12557
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
 
12558
     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
12559
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
 
12560
            break 2
 
12561
          fi
 
12562
        fi
 
12563
      done
 
12564
    done
 
12565
    IFS="$ac_save_IFS"
 
12566
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
12567
    ;;
 
12568
esac
 
12569
fi
 
12570
XGETTEXT="$ac_cv_path_XGETTEXT"
 
12571
if test "$XGETTEXT" != ":"; then
 
12572
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
 
12573
$as_echo "$XGETTEXT" >&6; }
 
12574
else
 
12575
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12576
$as_echo "no" >&6; }
 
12577
fi
 
12578
 
 
12579
    rm -f messages.po
 
12580
 
 
12581
    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
12582
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
 
12583
    *) XGETTEXT_015=$XGETTEXT ;;
 
12584
  esac
 
12585
 
 
12586
 
 
12587
 
 
12588
# Prepare PATH_SEPARATOR.
 
12589
# The user is always right.
 
12590
if test "${PATH_SEPARATOR+set}" != set; then
 
12591
  echo "#! /bin/sh" >conf$$.sh
 
12592
  echo  "exit 0"   >>conf$$.sh
 
12593
  chmod +x conf$$.sh
 
12594
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
12595
    PATH_SEPARATOR=';'
 
12596
  else
 
12597
    PATH_SEPARATOR=:
 
12598
  fi
 
12599
  rm -f conf$$.sh
 
12600
fi
 
12601
 
 
12602
# Find out how to test for executable files. Don't use a zero-byte file,
 
12603
# as systems may use methods other than mode bits to determine executability.
 
12604
cat >conf$$.file <<_ASEOF
 
12605
#! /bin/sh
 
12606
exit 0
 
12607
_ASEOF
 
12608
chmod +x conf$$.file
 
12609
if test -x conf$$.file >/dev/null 2>&1; then
 
12610
  ac_executable_p="test -x"
 
12611
else
 
12612
  ac_executable_p="test -f"
 
12613
fi
 
12614
rm -f conf$$.file
 
12615
 
 
12616
# Extract the first word of "msgmerge", so it can be a program name with args.
 
12617
set dummy msgmerge; ac_word=$2
 
12618
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12619
$as_echo_n "checking for $ac_word... " >&6; }
 
12620
if test "${ac_cv_path_MSGMERGE+set}" = set; then :
 
12621
  $as_echo_n "(cached) " >&6
 
12622
else
 
12623
  case "$MSGMERGE" in
 
12624
  [\\/]* | ?:[\\/]*)
 
12625
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
 
12626
    ;;
 
12627
  *)
 
12628
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
12629
    for ac_dir in $PATH; do
 
12630
      IFS="$ac_save_IFS"
 
12631
      test -z "$ac_dir" && ac_dir=.
 
12632
      for ac_exec_ext in '' $ac_executable_extensions; do
 
12633
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
12634
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
 
12635
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
 
12636
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
 
12637
            break 2
 
12638
          fi
 
12639
        fi
 
12640
      done
 
12641
    done
 
12642
    IFS="$ac_save_IFS"
 
12643
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
 
12644
    ;;
 
12645
esac
 
12646
fi
 
12647
MSGMERGE="$ac_cv_path_MSGMERGE"
 
12648
if test "$MSGMERGE" != ":"; then
 
12649
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
 
12650
$as_echo "$MSGMERGE" >&6; }
 
12651
else
 
12652
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12653
$as_echo "no" >&6; }
 
12654
fi
 
12655
 
 
12656
 
 
12657
        test -n "$localedir" || localedir='${datadir}/locale'
 
12658
 
 
12659
 
 
12660
    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
 
12661
 
 
12662
 
 
12663
  ac_config_commands="$ac_config_commands po-directories"
 
12664
 
 
12665
 
 
12666
 
 
12667
      if test "X$prefix" = "XNONE"; then
 
12668
    acl_final_prefix="$ac_default_prefix"
 
12669
  else
 
12670
    acl_final_prefix="$prefix"
 
12671
  fi
 
12672
  if test "X$exec_prefix" = "XNONE"; then
 
12673
    acl_final_exec_prefix='${prefix}'
 
12674
  else
 
12675
    acl_final_exec_prefix="$exec_prefix"
 
12676
  fi
 
12677
  acl_save_prefix="$prefix"
 
12678
  prefix="$acl_final_prefix"
 
12679
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
 
12680
  prefix="$acl_save_prefix"
 
12681
 
 
12682
 
 
12683
# Check whether --with-gnu-ld was given.
 
12684
if test "${with_gnu_ld+set}" = set; then :
 
12685
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
12686
else
 
12687
  with_gnu_ld=no
 
12688
fi
 
12689
 
 
12690
# Prepare PATH_SEPARATOR.
 
12691
# The user is always right.
 
12692
if test "${PATH_SEPARATOR+set}" != set; then
 
12693
  echo "#! /bin/sh" >conf$$.sh
 
12694
  echo  "exit 0"   >>conf$$.sh
 
12695
  chmod +x conf$$.sh
 
12696
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
12697
    PATH_SEPARATOR=';'
 
12698
  else
 
12699
    PATH_SEPARATOR=:
 
12700
  fi
 
12701
  rm -f conf$$.sh
 
12702
fi
 
12703
ac_prog=ld
 
12704
if test "$GCC" = yes; then
 
12705
  # Check if gcc -print-prog-name=ld gives a path.
 
12706
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
 
12707
$as_echo_n "checking for ld used by GCC... " >&6; }
 
12708
  case $host in
 
12709
  *-*-mingw*)
 
12710
    # gcc leaves a trailing carriage return which upsets mingw
 
12711
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
12712
  *)
 
12713
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
12714
  esac
 
12715
  case $ac_prog in
 
12716
    # Accept absolute paths.
 
12717
    [\\/]* | [A-Za-z]:[\\/]*)
 
12718
      re_direlt='/[^/][^/]*/\.\./'
 
12719
      # Canonicalize the path of ld
 
12720
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
12721
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
12722
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
12723
      done
 
12724
      test -z "$LD" && LD="$ac_prog"
 
12725
      ;;
 
12726
  "")
 
12727
    # If it fails, then pretend we aren't using GCC.
 
12728
    ac_prog=ld
 
12729
    ;;
 
12730
  *)
 
12731
    # If it is relative, then search for the first ld in PATH.
 
12732
    with_gnu_ld=unknown
 
12733
    ;;
 
12734
  esac
 
12735
elif test "$with_gnu_ld" = yes; then
 
12736
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
12737
$as_echo_n "checking for GNU ld... " >&6; }
 
12738
else
 
12739
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
12740
$as_echo_n "checking for non-GNU ld... " >&6; }
 
12741
fi
 
12742
if test "${acl_cv_path_LD+set}" = set; then :
 
12743
  $as_echo_n "(cached) " >&6
 
12744
else
 
12745
  if test -z "$LD"; then
 
12746
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
12747
  for ac_dir in $PATH; do
 
12748
    test -z "$ac_dir" && ac_dir=.
 
12749
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
12750
      acl_cv_path_LD="$ac_dir/$ac_prog"
 
12751
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
12752
      # but apparently some GNU ld's only accept -v.
 
12753
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
12754
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
 
12755
      *GNU* | *'with BFD'*)
 
12756
        test "$with_gnu_ld" != no && break ;;
 
12757
      *)
 
12758
        test "$with_gnu_ld" != yes && break ;;
 
12759
      esac
 
12760
    fi
 
12761
  done
 
12762
  IFS="$ac_save_ifs"
 
12763
else
 
12764
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
 
12765
fi
 
12766
fi
 
12767
 
 
12768
LD="$acl_cv_path_LD"
 
12769
if test -n "$LD"; then
 
12770
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
12771
$as_echo "$LD" >&6; }
 
12772
else
 
12773
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12774
$as_echo "no" >&6; }
 
12775
fi
 
12776
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
12777
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
12778
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
12779
if test "${acl_cv_prog_gnu_ld+set}" = set; then :
 
12780
  $as_echo_n "(cached) " >&6
 
12781
else
 
12782
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
12783
case `$LD -v 2>&1 </dev/null` in
 
12784
*GNU* | *'with BFD'*)
 
12785
  acl_cv_prog_gnu_ld=yes ;;
 
12786
*)
 
12787
  acl_cv_prog_gnu_ld=no ;;
 
12788
esac
 
12789
fi
 
12790
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
 
12791
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
 
12792
with_gnu_ld=$acl_cv_prog_gnu_ld
 
12793
 
 
12794
 
 
12795
 
 
12796
 
 
12797
                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
 
12798
$as_echo_n "checking for shared library run path origin... " >&6; }
 
12799
if test "${acl_cv_rpath+set}" = set; then :
 
12800
  $as_echo_n "(cached) " >&6
 
12801
else
 
12802
 
 
12803
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
 
12804
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
 
12805
    . ./conftest.sh
 
12806
    rm -f ./conftest.sh
 
12807
    acl_cv_rpath=done
 
12808
 
 
12809
fi
 
12810
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
 
12811
$as_echo "$acl_cv_rpath" >&6; }
 
12812
  wl="$acl_cv_wl"
 
12813
  acl_libext="$acl_cv_libext"
 
12814
  acl_shlibext="$acl_cv_shlibext"
 
12815
  acl_libname_spec="$acl_cv_libname_spec"
 
12816
  acl_library_names_spec="$acl_cv_library_names_spec"
 
12817
  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 
12818
  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 
12819
  acl_hardcode_direct="$acl_cv_hardcode_direct"
 
12820
  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
 
12821
    # Check whether --enable-rpath was given.
 
12822
if test "${enable_rpath+set}" = set; then :
 
12823
  enableval=$enable_rpath; :
 
12824
else
 
12825
  enable_rpath=yes
 
12826
fi
 
12827
 
 
12828
 
 
12829
 
 
12830
                  acl_libdirstem=lib
 
12831
  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
 
12832
  if test -n "$searchpath"; then
 
12833
    acl_save_IFS="${IFS=        }"; IFS=":"
 
12834
    for searchdir in $searchpath; do
 
12835
      if test -d "$searchdir"; then
 
12836
        case "$searchdir" in
 
12837
          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
 
12838
          *) searchdir=`cd "$searchdir" && pwd`
 
12839
             case "$searchdir" in
 
12840
               */lib64 ) acl_libdirstem=lib64 ;;
 
12841
             esac ;;
 
12842
        esac
 
12843
      fi
 
12844
    done
 
12845
    IFS="$acl_save_IFS"
 
12846
  fi
 
12847
 
 
12848
 
 
12849
 
 
12850
 
 
12851
 
 
12852
 
 
12853
 
 
12854
 
 
12855
 
 
12856
    use_additional=yes
 
12857
 
 
12858
  acl_save_prefix="$prefix"
 
12859
  prefix="$acl_final_prefix"
 
12860
  acl_save_exec_prefix="$exec_prefix"
 
12861
  exec_prefix="$acl_final_exec_prefix"
 
12862
 
 
12863
    eval additional_includedir=\"$includedir\"
 
12864
    eval additional_libdir=\"$libdir\"
 
12865
 
 
12866
  exec_prefix="$acl_save_exec_prefix"
 
12867
  prefix="$acl_save_prefix"
 
12868
 
 
12869
 
 
12870
# Check whether --with-libiconv-prefix was given.
 
12871
if test "${with_libiconv_prefix+set}" = set; then :
 
12872
  withval=$with_libiconv_prefix;
 
12873
    if test "X$withval" = "Xno"; then
 
12874
      use_additional=no
 
12875
    else
 
12876
      if test "X$withval" = "X"; then
 
12877
 
 
12878
  acl_save_prefix="$prefix"
 
12879
  prefix="$acl_final_prefix"
 
12880
  acl_save_exec_prefix="$exec_prefix"
 
12881
  exec_prefix="$acl_final_exec_prefix"
 
12882
 
 
12883
          eval additional_includedir=\"$includedir\"
 
12884
          eval additional_libdir=\"$libdir\"
 
12885
 
 
12886
  exec_prefix="$acl_save_exec_prefix"
 
12887
  prefix="$acl_save_prefix"
 
12888
 
 
12889
      else
 
12890
        additional_includedir="$withval/include"
 
12891
        additional_libdir="$withval/$acl_libdirstem"
 
12892
      fi
 
12893
    fi
 
12894
 
 
12895
fi
 
12896
 
 
12897
      LIBICONV=
 
12898
  LTLIBICONV=
 
12899
  INCICONV=
 
12900
  LIBICONV_PREFIX=
 
12901
  rpathdirs=
 
12902
  ltrpathdirs=
 
12903
  names_already_handled=
 
12904
  names_next_round='iconv '
 
12905
  while test -n "$names_next_round"; do
 
12906
    names_this_round="$names_next_round"
 
12907
    names_next_round=
 
12908
    for name in $names_this_round; do
 
12909
      already_handled=
 
12910
      for n in $names_already_handled; do
 
12911
        if test "$n" = "$name"; then
 
12912
          already_handled=yes
 
12913
          break
 
12914
        fi
 
12915
      done
 
12916
      if test -z "$already_handled"; then
 
12917
        names_already_handled="$names_already_handled $name"
 
12918
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
12919
        eval value=\"\$HAVE_LIB$uppername\"
 
12920
        if test -n "$value"; then
 
12921
          if test "$value" = yes; then
 
12922
            eval value=\"\$LIB$uppername\"
 
12923
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
 
12924
            eval value=\"\$LTLIB$uppername\"
 
12925
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
 
12926
          else
 
12927
                                    :
 
12928
          fi
 
12929
        else
 
12930
                              found_dir=
 
12931
          found_la=
 
12932
          found_so=
 
12933
          found_a=
 
12934
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
12935
          if test -n "$acl_shlibext"; then
 
12936
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
12937
          else
 
12938
            shrext=
 
12939
          fi
 
12940
          if test $use_additional = yes; then
 
12941
            dir="$additional_libdir"
 
12942
                                    if test -n "$acl_shlibext"; then
 
12943
              if test -f "$dir/$libname$shrext"; then
 
12944
                found_dir="$dir"
 
12945
                found_so="$dir/$libname$shrext"
 
12946
              else
 
12947
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
12948
                  ver=`(cd "$dir" && \
 
12949
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
12950
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
12951
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
12952
                        | sed 1q ) 2>/dev/null`
 
12953
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
12954
                    found_dir="$dir"
 
12955
                    found_so="$dir/$libname$shrext.$ver"
 
12956
                  fi
 
12957
                else
 
12958
                  eval library_names=\"$acl_library_names_spec\"
 
12959
                  for f in $library_names; do
 
12960
                    if test -f "$dir/$f"; then
 
12961
                      found_dir="$dir"
 
12962
                      found_so="$dir/$f"
 
12963
                      break
 
12964
                    fi
 
12965
                  done
 
12966
                fi
 
12967
              fi
 
12968
            fi
 
12969
                        if test "X$found_dir" = "X"; then
 
12970
              if test -f "$dir/$libname.$acl_libext"; then
 
12971
                found_dir="$dir"
 
12972
                found_a="$dir/$libname.$acl_libext"
 
12973
              fi
 
12974
            fi
 
12975
            if test "X$found_dir" != "X"; then
 
12976
              if test -f "$dir/$libname.la"; then
 
12977
                found_la="$dir/$libname.la"
 
12978
              fi
 
12979
            fi
 
12980
          fi
 
12981
          if test "X$found_dir" = "X"; then
 
12982
            for x in $LDFLAGS $LTLIBICONV; do
 
12983
 
 
12984
  acl_save_prefix="$prefix"
 
12985
  prefix="$acl_final_prefix"
 
12986
  acl_save_exec_prefix="$exec_prefix"
 
12987
  exec_prefix="$acl_final_exec_prefix"
 
12988
  eval x=\"$x\"
 
12989
  exec_prefix="$acl_save_exec_prefix"
 
12990
  prefix="$acl_save_prefix"
 
12991
 
 
12992
              case "$x" in
 
12993
                -L*)
 
12994
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
12995
                                    if test -n "$acl_shlibext"; then
 
12996
                    if test -f "$dir/$libname$shrext"; then
 
12997
                      found_dir="$dir"
 
12998
                      found_so="$dir/$libname$shrext"
 
12999
                    else
 
13000
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
13001
                        ver=`(cd "$dir" && \
 
13002
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
13003
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
13004
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
13005
                              | sed 1q ) 2>/dev/null`
 
13006
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
13007
                          found_dir="$dir"
 
13008
                          found_so="$dir/$libname$shrext.$ver"
 
13009
                        fi
 
13010
                      else
 
13011
                        eval library_names=\"$acl_library_names_spec\"
 
13012
                        for f in $library_names; do
 
13013
                          if test -f "$dir/$f"; then
 
13014
                            found_dir="$dir"
 
13015
                            found_so="$dir/$f"
 
13016
                            break
 
13017
                          fi
 
13018
                        done
 
13019
                      fi
 
13020
                    fi
 
13021
                  fi
 
13022
                                    if test "X$found_dir" = "X"; then
 
13023
                    if test -f "$dir/$libname.$acl_libext"; then
 
13024
                      found_dir="$dir"
 
13025
                      found_a="$dir/$libname.$acl_libext"
 
13026
                    fi
 
13027
                  fi
 
13028
                  if test "X$found_dir" != "X"; then
 
13029
                    if test -f "$dir/$libname.la"; then
 
13030
                      found_la="$dir/$libname.la"
 
13031
                    fi
 
13032
                  fi
 
13033
                  ;;
 
13034
              esac
 
13035
              if test "X$found_dir" != "X"; then
 
13036
                break
 
13037
              fi
 
13038
            done
 
13039
          fi
 
13040
          if test "X$found_dir" != "X"; then
 
13041
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
 
13042
            if test "X$found_so" != "X"; then
 
13043
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
 
13044
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
13045
              else
 
13046
                                                                                haveit=
 
13047
                for x in $ltrpathdirs; do
 
13048
                  if test "X$x" = "X$found_dir"; then
 
13049
                    haveit=yes
 
13050
                    break
 
13051
                  fi
 
13052
                done
 
13053
                if test -z "$haveit"; then
 
13054
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
13055
                fi
 
13056
                                if test "$acl_hardcode_direct" = yes; then
 
13057
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
13058
                else
 
13059
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 
13060
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
13061
                                                            haveit=
 
13062
                    for x in $rpathdirs; do
 
13063
                      if test "X$x" = "X$found_dir"; then
 
13064
                        haveit=yes
 
13065
                        break
 
13066
                      fi
 
13067
                    done
 
13068
                    if test -z "$haveit"; then
 
13069
                      rpathdirs="$rpathdirs $found_dir"
 
13070
                    fi
 
13071
                  else
 
13072
                                                                                haveit=
 
13073
                    for x in $LDFLAGS $LIBICONV; do
 
13074
 
 
13075
  acl_save_prefix="$prefix"
 
13076
  prefix="$acl_final_prefix"
 
13077
  acl_save_exec_prefix="$exec_prefix"
 
13078
  exec_prefix="$acl_final_exec_prefix"
 
13079
  eval x=\"$x\"
 
13080
  exec_prefix="$acl_save_exec_prefix"
 
13081
  prefix="$acl_save_prefix"
 
13082
 
 
13083
                      if test "X$x" = "X-L$found_dir"; then
 
13084
                        haveit=yes
 
13085
                        break
 
13086
                      fi
 
13087
                    done
 
13088
                    if test -z "$haveit"; then
 
13089
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
 
13090
                    fi
 
13091
                    if test "$acl_hardcode_minus_L" != no; then
 
13092
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
13093
                    else
 
13094
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
13095
                    fi
 
13096
                  fi
 
13097
                fi
 
13098
              fi
 
13099
            else
 
13100
              if test "X$found_a" != "X"; then
 
13101
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
 
13102
              else
 
13103
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
 
13104
              fi
 
13105
            fi
 
13106
                        additional_includedir=
 
13107
            case "$found_dir" in
 
13108
              */$acl_libdirstem | */$acl_libdirstem/)
 
13109
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
13110
                LIBICONV_PREFIX="$basedir"
 
13111
                additional_includedir="$basedir/include"
 
13112
                ;;
 
13113
            esac
 
13114
            if test "X$additional_includedir" != "X"; then
 
13115
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
13116
                haveit=
 
13117
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
13118
                  if test -n "$GCC"; then
 
13119
                    case $host_os in
 
13120
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
13121
                    esac
 
13122
                  fi
 
13123
                fi
 
13124
                if test -z "$haveit"; then
 
13125
                  for x in $CPPFLAGS $INCICONV; do
 
13126
 
 
13127
  acl_save_prefix="$prefix"
 
13128
  prefix="$acl_final_prefix"
 
13129
  acl_save_exec_prefix="$exec_prefix"
 
13130
  exec_prefix="$acl_final_exec_prefix"
 
13131
  eval x=\"$x\"
 
13132
  exec_prefix="$acl_save_exec_prefix"
 
13133
  prefix="$acl_save_prefix"
 
13134
 
 
13135
                    if test "X$x" = "X-I$additional_includedir"; then
 
13136
                      haveit=yes
 
13137
                      break
 
13138
                    fi
 
13139
                  done
 
13140
                  if test -z "$haveit"; then
 
13141
                    if test -d "$additional_includedir"; then
 
13142
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
 
13143
                    fi
 
13144
                  fi
 
13145
                fi
 
13146
              fi
 
13147
            fi
 
13148
                        if test -n "$found_la"; then
 
13149
                                                        save_libdir="$libdir"
 
13150
              case "$found_la" in
 
13151
                */* | *\\*) . "$found_la" ;;
 
13152
                *) . "./$found_la" ;;
 
13153
              esac
 
13154
              libdir="$save_libdir"
 
13155
                            for dep in $dependency_libs; do
 
13156
                case "$dep" in
 
13157
                  -L*)
 
13158
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
13159
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
 
13160
                      haveit=
 
13161
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
 
13162
                        if test -n "$GCC"; then
 
13163
                          case $host_os in
 
13164
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
13165
                          esac
 
13166
                        fi
 
13167
                      fi
 
13168
                      if test -z "$haveit"; then
 
13169
                        haveit=
 
13170
                        for x in $LDFLAGS $LIBICONV; do
 
13171
 
 
13172
  acl_save_prefix="$prefix"
 
13173
  prefix="$acl_final_prefix"
 
13174
  acl_save_exec_prefix="$exec_prefix"
 
13175
  exec_prefix="$acl_final_exec_prefix"
 
13176
  eval x=\"$x\"
 
13177
  exec_prefix="$acl_save_exec_prefix"
 
13178
  prefix="$acl_save_prefix"
 
13179
 
 
13180
                          if test "X$x" = "X-L$additional_libdir"; then
 
13181
                            haveit=yes
 
13182
                            break
 
13183
                          fi
 
13184
                        done
 
13185
                        if test -z "$haveit"; then
 
13186
                          if test -d "$additional_libdir"; then
 
13187
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
 
13188
                          fi
 
13189
                        fi
 
13190
                        haveit=
 
13191
                        for x in $LDFLAGS $LTLIBICONV; do
 
13192
 
 
13193
  acl_save_prefix="$prefix"
 
13194
  prefix="$acl_final_prefix"
 
13195
  acl_save_exec_prefix="$exec_prefix"
 
13196
  exec_prefix="$acl_final_exec_prefix"
 
13197
  eval x=\"$x\"
 
13198
  exec_prefix="$acl_save_exec_prefix"
 
13199
  prefix="$acl_save_prefix"
 
13200
 
 
13201
                          if test "X$x" = "X-L$additional_libdir"; then
 
13202
                            haveit=yes
 
13203
                            break
 
13204
                          fi
 
13205
                        done
 
13206
                        if test -z "$haveit"; then
 
13207
                          if test -d "$additional_libdir"; then
 
13208
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
 
13209
                          fi
 
13210
                        fi
 
13211
                      fi
 
13212
                    fi
 
13213
                    ;;
 
13214
                  -R*)
 
13215
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
13216
                    if test "$enable_rpath" != no; then
 
13217
                                                                  haveit=
 
13218
                      for x in $rpathdirs; do
 
13219
                        if test "X$x" = "X$dir"; then
 
13220
                          haveit=yes
 
13221
                          break
 
13222
                        fi
 
13223
                      done
 
13224
                      if test -z "$haveit"; then
 
13225
                        rpathdirs="$rpathdirs $dir"
 
13226
                      fi
 
13227
                                                                  haveit=
 
13228
                      for x in $ltrpathdirs; do
 
13229
                        if test "X$x" = "X$dir"; then
 
13230
                          haveit=yes
 
13231
                          break
 
13232
                        fi
 
13233
                      done
 
13234
                      if test -z "$haveit"; then
 
13235
                        ltrpathdirs="$ltrpathdirs $dir"
 
13236
                      fi
 
13237
                    fi
 
13238
                    ;;
 
13239
                  -l*)
 
13240
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
13241
                    ;;
 
13242
                  *.la)
 
13243
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
13244
                    ;;
 
13245
                  *)
 
13246
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
 
13247
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
 
13248
                    ;;
 
13249
                esac
 
13250
              done
 
13251
            fi
 
13252
          else
 
13253
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
13254
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
 
13255
          fi
 
13256
        fi
 
13257
      fi
 
13258
    done
 
13259
  done
 
13260
  if test "X$rpathdirs" != "X"; then
 
13261
    if test -n "$acl_hardcode_libdir_separator"; then
 
13262
                        alldirs=
 
13263
      for found_dir in $rpathdirs; do
 
13264
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
 
13265
      done
 
13266
            acl_save_libdir="$libdir"
 
13267
      libdir="$alldirs"
 
13268
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
13269
      libdir="$acl_save_libdir"
 
13270
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
13271
    else
 
13272
            for found_dir in $rpathdirs; do
 
13273
        acl_save_libdir="$libdir"
 
13274
        libdir="$found_dir"
 
13275
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
13276
        libdir="$acl_save_libdir"
 
13277
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
13278
      done
 
13279
    fi
 
13280
  fi
 
13281
  if test "X$ltrpathdirs" != "X"; then
 
13282
            for found_dir in $ltrpathdirs; do
 
13283
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
 
13284
    done
 
13285
  fi
 
13286
 
 
13287
 
 
13288
 
 
13289
 
 
13290
 
 
13291
 
 
13292
 
 
13293
 
 
13294
 
 
13295
 
 
13296
 
 
13297
 
 
13298
 
 
13299
 
 
13300
 
 
13301
 
 
13302
 
 
13303
 
 
13304
 
 
13305
 
 
13306
 
 
13307
 
 
13308
 
 
13309
 
 
13310
 
 
13311
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
 
13312
$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
 
13313
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
 
13314
  $as_echo_n "(cached) " >&6
 
13315
else
 
13316
  gt_save_LIBS="$LIBS"
 
13317
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
13318
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13319
/* end confdefs.h.  */
 
13320
#include <CoreFoundation/CFPreferences.h>
 
13321
int
 
13322
main ()
 
13323
{
 
13324
CFPreferencesCopyAppValue(NULL, NULL)
 
13325
  ;
 
13326
  return 0;
 
13327
}
 
13328
_ACEOF
 
13329
if ac_fn_c_try_link "$LINENO"; then :
 
13330
  gt_cv_func_CFPreferencesCopyAppValue=yes
 
13331
else
 
13332
  gt_cv_func_CFPreferencesCopyAppValue=no
 
13333
fi
 
13334
rm -f core conftest.err conftest.$ac_objext \
 
13335
    conftest$ac_exeext conftest.$ac_ext
 
13336
     LIBS="$gt_save_LIBS"
 
13337
fi
 
13338
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
 
13339
$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
 
13340
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
 
13341
 
 
13342
$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
 
13343
 
 
13344
  fi
 
13345
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
 
13346
$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
 
13347
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
 
13348
  $as_echo_n "(cached) " >&6
 
13349
else
 
13350
  gt_save_LIBS="$LIBS"
 
13351
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
13352
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13353
/* end confdefs.h.  */
 
13354
#include <CoreFoundation/CFLocale.h>
 
13355
int
 
13356
main ()
 
13357
{
 
13358
CFLocaleCopyCurrent();
 
13359
  ;
 
13360
  return 0;
 
13361
}
 
13362
_ACEOF
 
13363
if ac_fn_c_try_link "$LINENO"; then :
 
13364
  gt_cv_func_CFLocaleCopyCurrent=yes
 
13365
else
 
13366
  gt_cv_func_CFLocaleCopyCurrent=no
 
13367
fi
 
13368
rm -f core conftest.err conftest.$ac_objext \
 
13369
    conftest$ac_exeext conftest.$ac_ext
 
13370
     LIBS="$gt_save_LIBS"
 
13371
fi
 
13372
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
 
13373
$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
 
13374
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
13375
 
 
13376
$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
 
13377
 
 
13378
  fi
 
13379
  INTL_MACOSX_LIBS=
 
13380
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
13381
    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
 
13382
  fi
 
13383
 
 
13384
 
 
13385
 
 
13386
 
 
13387
 
 
13388
 
 
13389
  LIBINTL=
 
13390
  LTLIBINTL=
 
13391
  POSUB=
 
13392
 
 
13393
    case " $gt_needs " in
 
13394
    *" need-formatstring-macros "*) gt_api_version=3 ;;
 
13395
    *" need-ngettext "*) gt_api_version=2 ;;
 
13396
    *) gt_api_version=1 ;;
 
13397
  esac
 
13398
  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
 
13399
  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
 
13400
 
 
13401
    if test "$USE_NLS" = "yes"; then
 
13402
    gt_use_preinstalled_gnugettext=no
 
13403
 
 
13404
 
 
13405
        if test $gt_api_version -ge 3; then
 
13406
          gt_revision_test_code='
 
13407
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
 
13408
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
 
13409
#endif
 
13410
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
 
13411
'
 
13412
        else
 
13413
          gt_revision_test_code=
 
13414
        fi
 
13415
        if test $gt_api_version -ge 2; then
 
13416
          gt_expression_test_code=' + * ngettext ("", "", 0)'
 
13417
        else
 
13418
          gt_expression_test_code=
 
13419
        fi
 
13420
 
 
13421
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
 
13422
$as_echo_n "checking for GNU gettext in libc... " >&6; }
 
13423
if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then :
 
13424
  $as_echo_n "(cached) " >&6
 
13425
else
 
13426
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13427
/* end confdefs.h.  */
 
13428
#include <libintl.h>
 
13429
$gt_revision_test_code
 
13430
extern int _nl_msg_cat_cntr;
 
13431
extern int *_nl_domain_bindings;
 
13432
int
 
13433
main ()
 
13434
{
 
13435
bindtextdomain ("", "");
 
13436
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
 
13437
  ;
 
13438
  return 0;
 
13439
}
 
13440
_ACEOF
 
13441
if ac_fn_c_try_link "$LINENO"; then :
 
13442
  eval "$gt_func_gnugettext_libc=yes"
 
13443
else
 
13444
  eval "$gt_func_gnugettext_libc=no"
 
13445
fi
 
13446
rm -f core conftest.err conftest.$ac_objext \
 
13447
    conftest$ac_exeext conftest.$ac_ext
 
13448
fi
 
13449
eval ac_res=\$$gt_func_gnugettext_libc
 
13450
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
13451
$as_echo "$ac_res" >&6; }
 
13452
 
 
13453
        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
 
13454
 
 
13455
 
 
13456
 
 
13457
 
 
13458
 
 
13459
          am_save_CPPFLAGS="$CPPFLAGS"
 
13460
 
 
13461
  for element in $INCICONV; do
 
13462
    haveit=
 
13463
    for x in $CPPFLAGS; do
 
13464
 
 
13465
  acl_save_prefix="$prefix"
 
13466
  prefix="$acl_final_prefix"
 
13467
  acl_save_exec_prefix="$exec_prefix"
 
13468
  exec_prefix="$acl_final_exec_prefix"
 
13469
  eval x=\"$x\"
 
13470
  exec_prefix="$acl_save_exec_prefix"
 
13471
  prefix="$acl_save_prefix"
 
13472
 
 
13473
      if test "X$x" = "X$element"; then
 
13474
        haveit=yes
 
13475
        break
 
13476
      fi
 
13477
    done
 
13478
    if test -z "$haveit"; then
 
13479
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
13480
    fi
 
13481
  done
 
13482
 
 
13483
 
 
13484
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
 
13485
$as_echo_n "checking for iconv... " >&6; }
 
13486
if test "${am_cv_func_iconv+set}" = set; then :
 
13487
  $as_echo_n "(cached) " >&6
 
13488
else
 
13489
 
 
13490
    am_cv_func_iconv="no, consider installing GNU libiconv"
 
13491
    am_cv_lib_iconv=no
 
13492
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13493
/* end confdefs.h.  */
 
13494
#include <stdlib.h>
 
13495
#include <iconv.h>
 
13496
int
 
13497
main ()
 
13498
{
 
13499
iconv_t cd = iconv_open("","");
 
13500
       iconv(cd,NULL,NULL,NULL,NULL);
 
13501
       iconv_close(cd);
 
13502
  ;
 
13503
  return 0;
 
13504
}
 
13505
_ACEOF
 
13506
if ac_fn_c_try_link "$LINENO"; then :
 
13507
  am_cv_func_iconv=yes
 
13508
fi
 
13509
rm -f core conftest.err conftest.$ac_objext \
 
13510
    conftest$ac_exeext conftest.$ac_ext
 
13511
    if test "$am_cv_func_iconv" != yes; then
 
13512
      am_save_LIBS="$LIBS"
 
13513
      LIBS="$LIBS $LIBICONV"
 
13514
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13515
/* end confdefs.h.  */
 
13516
#include <stdlib.h>
 
13517
#include <iconv.h>
 
13518
int
 
13519
main ()
 
13520
{
 
13521
iconv_t cd = iconv_open("","");
 
13522
         iconv(cd,NULL,NULL,NULL,NULL);
 
13523
         iconv_close(cd);
 
13524
  ;
 
13525
  return 0;
 
13526
}
 
13527
_ACEOF
 
13528
if ac_fn_c_try_link "$LINENO"; then :
 
13529
  am_cv_lib_iconv=yes
 
13530
        am_cv_func_iconv=yes
 
13531
fi
 
13532
rm -f core conftest.err conftest.$ac_objext \
 
13533
    conftest$ac_exeext conftest.$ac_ext
 
13534
      LIBS="$am_save_LIBS"
 
13535
    fi
 
13536
 
 
13537
fi
 
13538
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
 
13539
$as_echo "$am_cv_func_iconv" >&6; }
 
13540
  if test "$am_cv_func_iconv" = yes; then
 
13541
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
 
13542
$as_echo_n "checking for working iconv... " >&6; }
 
13543
if test "${am_cv_func_iconv_works+set}" = set; then :
 
13544
  $as_echo_n "(cached) " >&6
 
13545
else
 
13546
 
 
13547
            am_save_LIBS="$LIBS"
 
13548
      if test $am_cv_lib_iconv = yes; then
 
13549
        LIBS="$LIBS $LIBICONV"
 
13550
      fi
 
13551
      if test "$cross_compiling" = yes; then :
 
13552
  case "$host_os" in
 
13553
           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
 
13554
           *)            am_cv_func_iconv_works="guessing yes" ;;
 
13555
         esac
 
13556
else
 
13557
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13558
/* end confdefs.h.  */
 
13559
 
 
13560
#include <iconv.h>
 
13561
#include <string.h>
 
13562
int main ()
 
13563
{
 
13564
  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
 
13565
     returns.  */
 
13566
  {
 
13567
    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
 
13568
    if (cd_utf8_to_88591 != (iconv_t)(-1))
 
13569
      {
 
13570
        static const char input[] = "\342\202\254"; /* EURO SIGN */
 
13571
        char buf[10];
 
13572
        const char *inptr = input;
 
13573
        size_t inbytesleft = strlen (input);
 
13574
        char *outptr = buf;
 
13575
        size_t outbytesleft = sizeof (buf);
 
13576
        size_t res = iconv (cd_utf8_to_88591,
 
13577
                            (char **) &inptr, &inbytesleft,
 
13578
                            &outptr, &outbytesleft);
 
13579
        if (res == 0)
 
13580
          return 1;
 
13581
      }
 
13582
  }
 
13583
#if 0 /* This bug could be worked around by the caller.  */
 
13584
  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
 
13585
  {
 
13586
    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
 
13587
    if (cd_88591_to_utf8 != (iconv_t)(-1))
 
13588
      {
 
13589
        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
 
13590
        char buf[50];
 
13591
        const char *inptr = input;
 
13592
        size_t inbytesleft = strlen (input);
 
13593
        char *outptr = buf;
 
13594
        size_t outbytesleft = sizeof (buf);
 
13595
        size_t res = iconv (cd_88591_to_utf8,
 
13596
                            (char **) &inptr, &inbytesleft,
 
13597
                            &outptr, &outbytesleft);
 
13598
        if ((int)res > 0)
 
13599
          return 1;
 
13600
      }
 
13601
  }
 
13602
#endif
 
13603
  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
 
13604
     provided.  */
 
13605
  if (/* Try standardized names.  */
 
13606
      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
 
13607
      /* Try IRIX, OSF/1 names.  */
 
13608
      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
 
13609
      /* Try AIX names.  */
 
13610
      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
 
13611
      /* Try HP-UX names.  */
 
13612
      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
 
13613
    return 1;
 
13614
  return 0;
 
13615
}
 
13616
_ACEOF
 
13617
if ac_fn_c_try_run "$LINENO"; then :
 
13618
  am_cv_func_iconv_works=yes
 
13619
else
 
13620
  am_cv_func_iconv_works=no
 
13621
fi
 
13622
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
13623
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
13624
fi
 
13625
 
 
13626
      LIBS="$am_save_LIBS"
 
13627
 
 
13628
fi
 
13629
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
 
13630
$as_echo "$am_cv_func_iconv_works" >&6; }
 
13631
    case "$am_cv_func_iconv_works" in
 
13632
      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
 
13633
      *)   am_func_iconv=yes ;;
 
13634
    esac
 
13635
  else
 
13636
    am_func_iconv=no am_cv_lib_iconv=no
 
13637
  fi
 
13638
  if test "$am_func_iconv" = yes; then
 
13639
 
 
13640
$as_echo "#define HAVE_ICONV 1" >>confdefs.h
 
13641
 
 
13642
  fi
 
13643
  if test "$am_cv_lib_iconv" = yes; then
 
13644
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
 
13645
$as_echo_n "checking how to link with libiconv... " >&6; }
 
13646
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
 
13647
$as_echo "$LIBICONV" >&6; }
 
13648
  else
 
13649
            CPPFLAGS="$am_save_CPPFLAGS"
 
13650
    LIBICONV=
 
13651
    LTLIBICONV=
 
13652
  fi
 
13653
 
 
13654
 
 
13655
 
 
13656
 
 
13657
 
 
13658
 
 
13659
 
 
13660
 
 
13661
    use_additional=yes
 
13662
 
 
13663
  acl_save_prefix="$prefix"
 
13664
  prefix="$acl_final_prefix"
 
13665
  acl_save_exec_prefix="$exec_prefix"
 
13666
  exec_prefix="$acl_final_exec_prefix"
 
13667
 
 
13668
    eval additional_includedir=\"$includedir\"
 
13669
    eval additional_libdir=\"$libdir\"
 
13670
 
 
13671
  exec_prefix="$acl_save_exec_prefix"
 
13672
  prefix="$acl_save_prefix"
 
13673
 
 
13674
 
 
13675
# Check whether --with-libintl-prefix was given.
 
13676
if test "${with_libintl_prefix+set}" = set; then :
 
13677
  withval=$with_libintl_prefix;
 
13678
    if test "X$withval" = "Xno"; then
 
13679
      use_additional=no
 
13680
    else
 
13681
      if test "X$withval" = "X"; then
 
13682
 
 
13683
  acl_save_prefix="$prefix"
 
13684
  prefix="$acl_final_prefix"
 
13685
  acl_save_exec_prefix="$exec_prefix"
 
13686
  exec_prefix="$acl_final_exec_prefix"
 
13687
 
 
13688
          eval additional_includedir=\"$includedir\"
 
13689
          eval additional_libdir=\"$libdir\"
 
13690
 
 
13691
  exec_prefix="$acl_save_exec_prefix"
 
13692
  prefix="$acl_save_prefix"
 
13693
 
 
13694
      else
 
13695
        additional_includedir="$withval/include"
 
13696
        additional_libdir="$withval/$acl_libdirstem"
 
13697
      fi
 
13698
    fi
 
13699
 
 
13700
fi
 
13701
 
 
13702
      LIBINTL=
 
13703
  LTLIBINTL=
 
13704
  INCINTL=
 
13705
  LIBINTL_PREFIX=
 
13706
  rpathdirs=
 
13707
  ltrpathdirs=
 
13708
  names_already_handled=
 
13709
  names_next_round='intl '
 
13710
  while test -n "$names_next_round"; do
 
13711
    names_this_round="$names_next_round"
 
13712
    names_next_round=
 
13713
    for name in $names_this_round; do
 
13714
      already_handled=
 
13715
      for n in $names_already_handled; do
 
13716
        if test "$n" = "$name"; then
 
13717
          already_handled=yes
 
13718
          break
 
13719
        fi
 
13720
      done
 
13721
      if test -z "$already_handled"; then
 
13722
        names_already_handled="$names_already_handled $name"
 
13723
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
13724
        eval value=\"\$HAVE_LIB$uppername\"
 
13725
        if test -n "$value"; then
 
13726
          if test "$value" = yes; then
 
13727
            eval value=\"\$LIB$uppername\"
 
13728
            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
 
13729
            eval value=\"\$LTLIB$uppername\"
 
13730
            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
 
13731
          else
 
13732
                                    :
 
13733
          fi
 
13734
        else
 
13735
                              found_dir=
 
13736
          found_la=
 
13737
          found_so=
 
13738
          found_a=
 
13739
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
13740
          if test -n "$acl_shlibext"; then
 
13741
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
13742
          else
 
13743
            shrext=
 
13744
          fi
 
13745
          if test $use_additional = yes; then
 
13746
            dir="$additional_libdir"
 
13747
                                    if test -n "$acl_shlibext"; then
 
13748
              if test -f "$dir/$libname$shrext"; then
 
13749
                found_dir="$dir"
 
13750
                found_so="$dir/$libname$shrext"
 
13751
              else
 
13752
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
13753
                  ver=`(cd "$dir" && \
 
13754
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
13755
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
13756
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
13757
                        | sed 1q ) 2>/dev/null`
 
13758
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
13759
                    found_dir="$dir"
 
13760
                    found_so="$dir/$libname$shrext.$ver"
 
13761
                  fi
 
13762
                else
 
13763
                  eval library_names=\"$acl_library_names_spec\"
 
13764
                  for f in $library_names; do
 
13765
                    if test -f "$dir/$f"; then
 
13766
                      found_dir="$dir"
 
13767
                      found_so="$dir/$f"
 
13768
                      break
 
13769
                    fi
 
13770
                  done
 
13771
                fi
 
13772
              fi
 
13773
            fi
 
13774
                        if test "X$found_dir" = "X"; then
 
13775
              if test -f "$dir/$libname.$acl_libext"; then
 
13776
                found_dir="$dir"
 
13777
                found_a="$dir/$libname.$acl_libext"
 
13778
              fi
 
13779
            fi
 
13780
            if test "X$found_dir" != "X"; then
 
13781
              if test -f "$dir/$libname.la"; then
 
13782
                found_la="$dir/$libname.la"
 
13783
              fi
 
13784
            fi
 
13785
          fi
 
13786
          if test "X$found_dir" = "X"; then
 
13787
            for x in $LDFLAGS $LTLIBINTL; do
 
13788
 
 
13789
  acl_save_prefix="$prefix"
 
13790
  prefix="$acl_final_prefix"
 
13791
  acl_save_exec_prefix="$exec_prefix"
 
13792
  exec_prefix="$acl_final_exec_prefix"
 
13793
  eval x=\"$x\"
 
13794
  exec_prefix="$acl_save_exec_prefix"
 
13795
  prefix="$acl_save_prefix"
 
13796
 
 
13797
              case "$x" in
 
13798
                -L*)
 
13799
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
13800
                                    if test -n "$acl_shlibext"; then
 
13801
                    if test -f "$dir/$libname$shrext"; then
 
13802
                      found_dir="$dir"
 
13803
                      found_so="$dir/$libname$shrext"
 
13804
                    else
 
13805
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
13806
                        ver=`(cd "$dir" && \
 
13807
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
13808
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
13809
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
13810
                              | sed 1q ) 2>/dev/null`
 
13811
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
13812
                          found_dir="$dir"
 
13813
                          found_so="$dir/$libname$shrext.$ver"
 
13814
                        fi
 
13815
                      else
 
13816
                        eval library_names=\"$acl_library_names_spec\"
 
13817
                        for f in $library_names; do
 
13818
                          if test -f "$dir/$f"; then
 
13819
                            found_dir="$dir"
 
13820
                            found_so="$dir/$f"
 
13821
                            break
 
13822
                          fi
 
13823
                        done
 
13824
                      fi
 
13825
                    fi
 
13826
                  fi
 
13827
                                    if test "X$found_dir" = "X"; then
 
13828
                    if test -f "$dir/$libname.$acl_libext"; then
 
13829
                      found_dir="$dir"
 
13830
                      found_a="$dir/$libname.$acl_libext"
 
13831
                    fi
 
13832
                  fi
 
13833
                  if test "X$found_dir" != "X"; then
 
13834
                    if test -f "$dir/$libname.la"; then
 
13835
                      found_la="$dir/$libname.la"
 
13836
                    fi
 
13837
                  fi
 
13838
                  ;;
 
13839
              esac
 
13840
              if test "X$found_dir" != "X"; then
 
13841
                break
 
13842
              fi
 
13843
            done
 
13844
          fi
 
13845
          if test "X$found_dir" != "X"; then
 
13846
                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
 
13847
            if test "X$found_so" != "X"; then
 
13848
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
 
13849
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
13850
              else
 
13851
                                                                                haveit=
 
13852
                for x in $ltrpathdirs; do
 
13853
                  if test "X$x" = "X$found_dir"; then
 
13854
                    haveit=yes
 
13855
                    break
 
13856
                  fi
 
13857
                done
 
13858
                if test -z "$haveit"; then
 
13859
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
13860
                fi
 
13861
                                if test "$acl_hardcode_direct" = yes; then
 
13862
                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
13863
                else
 
13864
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 
13865
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
13866
                                                            haveit=
 
13867
                    for x in $rpathdirs; do
 
13868
                      if test "X$x" = "X$found_dir"; then
 
13869
                        haveit=yes
 
13870
                        break
 
13871
                      fi
 
13872
                    done
 
13873
                    if test -z "$haveit"; then
 
13874
                      rpathdirs="$rpathdirs $found_dir"
 
13875
                    fi
 
13876
                  else
 
13877
                                                                                haveit=
 
13878
                    for x in $LDFLAGS $LIBINTL; do
 
13879
 
 
13880
  acl_save_prefix="$prefix"
 
13881
  prefix="$acl_final_prefix"
 
13882
  acl_save_exec_prefix="$exec_prefix"
 
13883
  exec_prefix="$acl_final_exec_prefix"
 
13884
  eval x=\"$x\"
 
13885
  exec_prefix="$acl_save_exec_prefix"
 
13886
  prefix="$acl_save_prefix"
 
13887
 
 
13888
                      if test "X$x" = "X-L$found_dir"; then
 
13889
                        haveit=yes
 
13890
                        break
 
13891
                      fi
 
13892
                    done
 
13893
                    if test -z "$haveit"; then
 
13894
                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
 
13895
                    fi
 
13896
                    if test "$acl_hardcode_minus_L" != no; then
 
13897
                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
13898
                    else
 
13899
                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
13900
                    fi
 
13901
                  fi
 
13902
                fi
 
13903
              fi
 
13904
            else
 
13905
              if test "X$found_a" != "X"; then
 
13906
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
 
13907
              else
 
13908
                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
 
13909
              fi
 
13910
            fi
 
13911
                        additional_includedir=
 
13912
            case "$found_dir" in
 
13913
              */$acl_libdirstem | */$acl_libdirstem/)
 
13914
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
13915
                LIBINTL_PREFIX="$basedir"
 
13916
                additional_includedir="$basedir/include"
 
13917
                ;;
 
13918
            esac
 
13919
            if test "X$additional_includedir" != "X"; then
 
13920
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
13921
                haveit=
 
13922
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
13923
                  if test -n "$GCC"; then
 
13924
                    case $host_os in
 
13925
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
13926
                    esac
 
13927
                  fi
 
13928
                fi
 
13929
                if test -z "$haveit"; then
 
13930
                  for x in $CPPFLAGS $INCINTL; do
 
13931
 
 
13932
  acl_save_prefix="$prefix"
 
13933
  prefix="$acl_final_prefix"
 
13934
  acl_save_exec_prefix="$exec_prefix"
 
13935
  exec_prefix="$acl_final_exec_prefix"
 
13936
  eval x=\"$x\"
 
13937
  exec_prefix="$acl_save_exec_prefix"
 
13938
  prefix="$acl_save_prefix"
 
13939
 
 
13940
                    if test "X$x" = "X-I$additional_includedir"; then
 
13941
                      haveit=yes
 
13942
                      break
 
13943
                    fi
 
13944
                  done
 
13945
                  if test -z "$haveit"; then
 
13946
                    if test -d "$additional_includedir"; then
 
13947
                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
 
13948
                    fi
 
13949
                  fi
 
13950
                fi
 
13951
              fi
 
13952
            fi
 
13953
                        if test -n "$found_la"; then
 
13954
                                                        save_libdir="$libdir"
 
13955
              case "$found_la" in
 
13956
                */* | *\\*) . "$found_la" ;;
 
13957
                *) . "./$found_la" ;;
 
13958
              esac
 
13959
              libdir="$save_libdir"
 
13960
                            for dep in $dependency_libs; do
 
13961
                case "$dep" in
 
13962
                  -L*)
 
13963
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
13964
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
 
13965
                      haveit=
 
13966
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
 
13967
                        if test -n "$GCC"; then
 
13968
                          case $host_os in
 
13969
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
13970
                          esac
 
13971
                        fi
 
13972
                      fi
 
13973
                      if test -z "$haveit"; then
 
13974
                        haveit=
 
13975
                        for x in $LDFLAGS $LIBINTL; do
 
13976
 
 
13977
  acl_save_prefix="$prefix"
 
13978
  prefix="$acl_final_prefix"
 
13979
  acl_save_exec_prefix="$exec_prefix"
 
13980
  exec_prefix="$acl_final_exec_prefix"
 
13981
  eval x=\"$x\"
 
13982
  exec_prefix="$acl_save_exec_prefix"
 
13983
  prefix="$acl_save_prefix"
 
13984
 
 
13985
                          if test "X$x" = "X-L$additional_libdir"; then
 
13986
                            haveit=yes
 
13987
                            break
 
13988
                          fi
 
13989
                        done
 
13990
                        if test -z "$haveit"; then
 
13991
                          if test -d "$additional_libdir"; then
 
13992
                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
 
13993
                          fi
 
13994
                        fi
 
13995
                        haveit=
 
13996
                        for x in $LDFLAGS $LTLIBINTL; do
 
13997
 
 
13998
  acl_save_prefix="$prefix"
 
13999
  prefix="$acl_final_prefix"
 
14000
  acl_save_exec_prefix="$exec_prefix"
 
14001
  exec_prefix="$acl_final_exec_prefix"
 
14002
  eval x=\"$x\"
 
14003
  exec_prefix="$acl_save_exec_prefix"
 
14004
  prefix="$acl_save_prefix"
 
14005
 
 
14006
                          if test "X$x" = "X-L$additional_libdir"; then
 
14007
                            haveit=yes
 
14008
                            break
 
14009
                          fi
 
14010
                        done
 
14011
                        if test -z "$haveit"; then
 
14012
                          if test -d "$additional_libdir"; then
 
14013
                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
 
14014
                          fi
 
14015
                        fi
 
14016
                      fi
 
14017
                    fi
 
14018
                    ;;
 
14019
                  -R*)
 
14020
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
14021
                    if test "$enable_rpath" != no; then
 
14022
                                                                  haveit=
 
14023
                      for x in $rpathdirs; do
 
14024
                        if test "X$x" = "X$dir"; then
 
14025
                          haveit=yes
 
14026
                          break
 
14027
                        fi
 
14028
                      done
 
14029
                      if test -z "$haveit"; then
 
14030
                        rpathdirs="$rpathdirs $dir"
 
14031
                      fi
 
14032
                                                                  haveit=
 
14033
                      for x in $ltrpathdirs; do
 
14034
                        if test "X$x" = "X$dir"; then
 
14035
                          haveit=yes
 
14036
                          break
 
14037
                        fi
 
14038
                      done
 
14039
                      if test -z "$haveit"; then
 
14040
                        ltrpathdirs="$ltrpathdirs $dir"
 
14041
                      fi
 
14042
                    fi
 
14043
                    ;;
 
14044
                  -l*)
 
14045
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
14046
                    ;;
 
14047
                  *.la)
 
14048
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
14049
                    ;;
 
14050
                  *)
 
14051
                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
 
14052
                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
 
14053
                    ;;
 
14054
                esac
 
14055
              done
 
14056
            fi
 
14057
          else
 
14058
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
14059
            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
 
14060
          fi
 
14061
        fi
 
14062
      fi
 
14063
    done
 
14064
  done
 
14065
  if test "X$rpathdirs" != "X"; then
 
14066
    if test -n "$acl_hardcode_libdir_separator"; then
 
14067
                        alldirs=
 
14068
      for found_dir in $rpathdirs; do
 
14069
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
 
14070
      done
 
14071
            acl_save_libdir="$libdir"
 
14072
      libdir="$alldirs"
 
14073
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
14074
      libdir="$acl_save_libdir"
 
14075
      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
14076
    else
 
14077
            for found_dir in $rpathdirs; do
 
14078
        acl_save_libdir="$libdir"
 
14079
        libdir="$found_dir"
 
14080
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
14081
        libdir="$acl_save_libdir"
 
14082
        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
14083
      done
 
14084
    fi
 
14085
  fi
 
14086
  if test "X$ltrpathdirs" != "X"; then
 
14087
            for found_dir in $ltrpathdirs; do
 
14088
      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
 
14089
    done
 
14090
  fi
 
14091
 
 
14092
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
 
14093
$as_echo_n "checking for GNU gettext in libintl... " >&6; }
 
14094
if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then :
 
14095
  $as_echo_n "(cached) " >&6
 
14096
else
 
14097
  gt_save_CPPFLAGS="$CPPFLAGS"
 
14098
            CPPFLAGS="$CPPFLAGS $INCINTL"
 
14099
            gt_save_LIBS="$LIBS"
 
14100
            LIBS="$LIBS $LIBINTL"
 
14101
                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14102
/* end confdefs.h.  */
 
14103
#include <libintl.h>
 
14104
$gt_revision_test_code
 
14105
extern int _nl_msg_cat_cntr;
 
14106
extern
 
14107
#ifdef __cplusplus
 
14108
"C"
 
14109
#endif
 
14110
const char *_nl_expand_alias (const char *);
 
14111
int
 
14112
main ()
 
14113
{
 
14114
bindtextdomain ("", "");
 
14115
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
 
14116
  ;
 
14117
  return 0;
 
14118
}
 
14119
_ACEOF
 
14120
if ac_fn_c_try_link "$LINENO"; then :
 
14121
  eval "$gt_func_gnugettext_libintl=yes"
 
14122
else
 
14123
  eval "$gt_func_gnugettext_libintl=no"
 
14124
fi
 
14125
rm -f core conftest.err conftest.$ac_objext \
 
14126
    conftest$ac_exeext conftest.$ac_ext
 
14127
                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
 
14128
              LIBS="$LIBS $LIBICONV"
 
14129
              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14130
/* end confdefs.h.  */
 
14131
#include <libintl.h>
 
14132
$gt_revision_test_code
 
14133
extern int _nl_msg_cat_cntr;
 
14134
extern
 
14135
#ifdef __cplusplus
 
14136
"C"
 
14137
#endif
 
14138
const char *_nl_expand_alias (const char *);
 
14139
int
 
14140
main ()
 
14141
{
 
14142
bindtextdomain ("", "");
 
14143
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
 
14144
  ;
 
14145
  return 0;
 
14146
}
 
14147
_ACEOF
 
14148
if ac_fn_c_try_link "$LINENO"; then :
 
14149
  LIBINTL="$LIBINTL $LIBICONV"
 
14150
                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
 
14151
                eval "$gt_func_gnugettext_libintl=yes"
 
14152
 
 
14153
fi
 
14154
rm -f core conftest.err conftest.$ac_objext \
 
14155
    conftest$ac_exeext conftest.$ac_ext
 
14156
            fi
 
14157
            CPPFLAGS="$gt_save_CPPFLAGS"
 
14158
            LIBS="$gt_save_LIBS"
 
14159
fi
 
14160
eval ac_res=\$$gt_func_gnugettext_libintl
 
14161
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
14162
$as_echo "$ac_res" >&6; }
 
14163
        fi
 
14164
 
 
14165
                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
 
14166
           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
 
14167
                && test "$PACKAGE" != gettext-runtime \
 
14168
                && test "$PACKAGE" != gettext-tools; }; then
 
14169
          gt_use_preinstalled_gnugettext=yes
 
14170
        else
 
14171
                    LIBINTL=
 
14172
          LTLIBINTL=
 
14173
          INCINTL=
 
14174
        fi
 
14175
 
 
14176
 
 
14177
 
 
14178
    if test -n "$INTL_MACOSX_LIBS"; then
 
14179
      if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
14180
         || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
14181
                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
 
14182
        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
 
14183
      fi
 
14184
    fi
 
14185
 
 
14186
    if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
14187
       || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
14188
 
 
14189
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
 
14190
 
 
14191
    else
 
14192
      USE_NLS=no
 
14193
    fi
 
14194
  fi
 
14195
 
 
14196
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
 
14197
$as_echo_n "checking whether to use NLS... " >&6; }
 
14198
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
 
14199
$as_echo "$USE_NLS" >&6; }
 
14200
  if test "$USE_NLS" = "yes"; then
 
14201
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
 
14202
$as_echo_n "checking where the gettext function comes from... " >&6; }
 
14203
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
14204
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
 
14205
        gt_source="external libintl"
 
14206
      else
 
14207
        gt_source="libc"
 
14208
      fi
 
14209
    else
 
14210
      gt_source="included intl directory"
 
14211
    fi
 
14212
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
 
14213
$as_echo "$gt_source" >&6; }
 
14214
  fi
 
14215
 
 
14216
  if test "$USE_NLS" = "yes"; then
 
14217
 
 
14218
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
14219
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
 
14220
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
 
14221
$as_echo_n "checking how to link with libintl... " >&6; }
 
14222
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
 
14223
$as_echo "$LIBINTL" >&6; }
 
14224
 
 
14225
  for element in $INCINTL; do
 
14226
    haveit=
 
14227
    for x in $CPPFLAGS; do
 
14228
 
 
14229
  acl_save_prefix="$prefix"
 
14230
  prefix="$acl_final_prefix"
 
14231
  acl_save_exec_prefix="$exec_prefix"
 
14232
  exec_prefix="$acl_final_exec_prefix"
 
14233
  eval x=\"$x\"
 
14234
  exec_prefix="$acl_save_exec_prefix"
 
14235
  prefix="$acl_save_prefix"
 
14236
 
 
14237
      if test "X$x" = "X$element"; then
 
14238
        haveit=yes
 
14239
        break
 
14240
      fi
 
14241
    done
 
14242
    if test -z "$haveit"; then
 
14243
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
14244
    fi
 
14245
  done
 
14246
 
 
14247
      fi
 
14248
 
 
14249
 
 
14250
$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
 
14251
 
 
14252
 
 
14253
$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
 
14254
 
 
14255
    fi
 
14256
 
 
14257
        POSUB=po
 
14258
  fi
 
14259
 
 
14260
 
 
14261
 
 
14262
    INTLLIBS="$LIBINTL"
 
14263
 
 
14264
 
 
14265
 
 
14266
 
 
14267
 
 
14268
 
 
14269
 
 
14270
 
 
14271
GETTEXT_PACKAGE=cheese
 
14272
 
 
14273
 
 
14274
cat >>confdefs.h <<_ACEOF
 
14275
#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
 
14276
_ACEOF
 
14277
 
 
14278
 
 
14279
 
 
14280
 
 
14281
case "$am__api_version" in
 
14282
    1.01234)
 
14283
        as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
 
14284
    ;;
 
14285
    *)
 
14286
    ;;
 
14287
esac
 
14288
 
 
14289
if test -n "0.40.0"; then
 
14290
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.40.0" >&5
 
14291
$as_echo_n "checking for intltool >= 0.40.0... " >&6; }
 
14292
 
 
14293
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.40.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
14294
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
 
14295
    INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
14296
 
 
14297
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
 
14298
$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
 
14299
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
 
14300
        as_fn_error $? "Your intltool is too old.  You need intltool 0.40.0 or later." "$LINENO" 5
 
14301
fi
 
14302
 
 
14303
# Extract the first word of "intltool-update", so it can be a program name with args.
 
14304
set dummy intltool-update; ac_word=$2
 
14305
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
14306
$as_echo_n "checking for $ac_word... " >&6; }
 
14307
if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then :
 
14308
  $as_echo_n "(cached) " >&6
 
14309
else
 
14310
  case $INTLTOOL_UPDATE in
 
14311
  [\\/]* | ?:[\\/]*)
 
14312
  ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
 
14313
  ;;
 
14314
  *)
 
14315
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14316
for as_dir in $PATH
 
14317
do
 
14318
  IFS=$as_save_IFS
 
14319
  test -z "$as_dir" && as_dir=.
 
14320
    for ac_exec_ext in '' $ac_executable_extensions; do
 
14321
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
14322
    ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
 
14323
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14324
    break 2
 
14325
  fi
 
14326
done
 
14327
  done
 
14328
IFS=$as_save_IFS
 
14329
 
 
14330
  ;;
 
14331
esac
 
14332
fi
 
14333
INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
 
14334
if test -n "$INTLTOOL_UPDATE"; then
 
14335
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
 
14336
$as_echo "$INTLTOOL_UPDATE" >&6; }
 
14337
else
 
14338
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14339
$as_echo "no" >&6; }
 
14340
fi
 
14341
 
 
14342
 
 
14343
# Extract the first word of "intltool-merge", so it can be a program name with args.
 
14344
set dummy intltool-merge; ac_word=$2
 
14345
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
14346
$as_echo_n "checking for $ac_word... " >&6; }
 
14347
if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then :
 
14348
  $as_echo_n "(cached) " >&6
 
14349
else
 
14350
  case $INTLTOOL_MERGE in
 
14351
  [\\/]* | ?:[\\/]*)
 
14352
  ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
 
14353
  ;;
 
14354
  *)
 
14355
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14356
for as_dir in $PATH
 
14357
do
 
14358
  IFS=$as_save_IFS
 
14359
  test -z "$as_dir" && as_dir=.
 
14360
    for ac_exec_ext in '' $ac_executable_extensions; do
 
14361
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
14362
    ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
 
14363
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14364
    break 2
 
14365
  fi
 
14366
done
 
14367
  done
 
14368
IFS=$as_save_IFS
 
14369
 
 
14370
  ;;
 
14371
esac
 
14372
fi
 
14373
INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
 
14374
if test -n "$INTLTOOL_MERGE"; then
 
14375
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
 
14376
$as_echo "$INTLTOOL_MERGE" >&6; }
 
14377
else
 
14378
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14379
$as_echo "no" >&6; }
 
14380
fi
 
14381
 
 
14382
 
 
14383
# Extract the first word of "intltool-extract", so it can be a program name with args.
 
14384
set dummy intltool-extract; ac_word=$2
 
14385
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
14386
$as_echo_n "checking for $ac_word... " >&6; }
 
14387
if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then :
 
14388
  $as_echo_n "(cached) " >&6
 
14389
else
 
14390
  case $INTLTOOL_EXTRACT in
 
14391
  [\\/]* | ?:[\\/]*)
 
14392
  ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
 
14393
  ;;
 
14394
  *)
 
14395
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14396
for as_dir in $PATH
 
14397
do
 
14398
  IFS=$as_save_IFS
 
14399
  test -z "$as_dir" && as_dir=.
 
14400
    for ac_exec_ext in '' $ac_executable_extensions; do
 
14401
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
14402
    ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
 
14403
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14404
    break 2
 
14405
  fi
 
14406
done
 
14407
  done
 
14408
IFS=$as_save_IFS
 
14409
 
 
14410
  ;;
 
14411
esac
 
14412
fi
 
14413
INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
 
14414
if test -n "$INTLTOOL_EXTRACT"; then
 
14415
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
 
14416
$as_echo "$INTLTOOL_EXTRACT" >&6; }
 
14417
else
 
14418
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14419
$as_echo "no" >&6; }
 
14420
fi
 
14421
 
 
14422
 
 
14423
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
 
14424
    as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
 
14425
fi
 
14426
 
 
14427
  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 $< $@'
 
14428
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 $< $@'
 
14429
     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 $< $@'
 
14430
     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 $< $@'
 
14431
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
 
14432
     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 $< $@'
 
14433
   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 $< $@'
 
14434
    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 $< $@'
 
14435
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 $< $@'
 
14436
       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 $< $@'
 
14437
      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 $< $@'
 
14438
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
 
14439
      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 $< $@'
 
14440
      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 $< $@'
 
14441
    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 $< $@'
 
14442
  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 $< $@'
 
14443
    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 $< $@'
 
14444
    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 $< $@'
 
14445
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.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 $< $@'
 
14446
 
 
14447
 
 
14448
 
 
14449
 
 
14450
 
 
14451
 
 
14452
 
 
14453
 
 
14454
 
 
14455
 
 
14456
 
 
14457
 
 
14458
 
 
14459
 
 
14460
 
 
14461
 
 
14462
 
 
14463
 
 
14464
 
 
14465
 
 
14466
 
 
14467
 
 
14468
 
 
14469
 
 
14470
 
 
14471
 
 
14472
 
 
14473
 
 
14474
 
 
14475
 
 
14476
 
 
14477
 
 
14478
 
 
14479
 
 
14480
 
 
14481
 
 
14482
 
 
14483
 
 
14484
 
 
14485
 
 
14486
 
 
14487
 
 
14488
 
 
14489
 
 
14490
 
 
14491
 
 
14492
 
 
14493
 
 
14494
 
 
14495
 
 
14496
 
 
14497
 
 
14498
 
 
14499
 
 
14500
 
 
14501
 
 
14502
 
 
14503
 
 
14504
 
 
14505
 
 
14506
 
 
14507
 
 
14508
 
 
14509
 
 
14510
 
 
14511
 
 
14512
 
 
14513
 
 
14514
 
 
14515
 
 
14516
 
 
14517
 
 
14518
 
 
14519
 
 
14520
 
 
14521
 
 
14522
 
 
14523
 
 
14524
 
 
14525
 
 
14526
 
 
14527
 
 
14528
 
 
14529
 
 
14530
 
 
14531
 
 
14532
 
 
14533
 
 
14534
 
 
14535
 
 
14536
 
 
14537
 
 
14538
 
 
14539
 
 
14540
 
 
14541
 
 
14542
 
 
14543
# Check the gettext tools to make sure they are GNU
 
14544
# Extract the first word of "xgettext", so it can be a program name with args.
 
14545
set dummy xgettext; ac_word=$2
 
14546
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
14547
$as_echo_n "checking for $ac_word... " >&6; }
 
14548
if test "${ac_cv_path_XGETTEXT+set}" = set; then :
 
14549
  $as_echo_n "(cached) " >&6
 
14550
else
 
14551
  case $XGETTEXT in
 
14552
  [\\/]* | ?:[\\/]*)
 
14553
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
14554
  ;;
 
14555
  *)
 
14556
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14557
for as_dir in $PATH
 
14558
do
 
14559
  IFS=$as_save_IFS
 
14560
  test -z "$as_dir" && as_dir=.
 
14561
    for ac_exec_ext in '' $ac_executable_extensions; do
 
14562
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
14563
    ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
 
14564
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14565
    break 2
 
14566
  fi
 
14567
done
 
14568
  done
 
14569
IFS=$as_save_IFS
 
14570
 
 
14571
  ;;
 
14572
esac
 
14573
fi
 
14574
XGETTEXT=$ac_cv_path_XGETTEXT
 
14575
if test -n "$XGETTEXT"; then
 
14576
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
 
14577
$as_echo "$XGETTEXT" >&6; }
 
14578
else
 
14579
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14580
$as_echo "no" >&6; }
 
14581
fi
 
14582
 
 
14583
 
 
14584
# Extract the first word of "msgmerge", so it can be a program name with args.
 
14585
set dummy msgmerge; ac_word=$2
 
14586
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
14587
$as_echo_n "checking for $ac_word... " >&6; }
 
14588
if test "${ac_cv_path_MSGMERGE+set}" = set; then :
 
14589
  $as_echo_n "(cached) " >&6
 
14590
else
 
14591
  case $MSGMERGE in
 
14592
  [\\/]* | ?:[\\/]*)
 
14593
  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
 
14594
  ;;
 
14595
  *)
 
14596
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14597
for as_dir in $PATH
 
14598
do
 
14599
  IFS=$as_save_IFS
 
14600
  test -z "$as_dir" && as_dir=.
 
14601
    for ac_exec_ext in '' $ac_executable_extensions; do
 
14602
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
14603
    ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
 
14604
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14605
    break 2
 
14606
  fi
 
14607
done
 
14608
  done
 
14609
IFS=$as_save_IFS
 
14610
 
 
14611
  ;;
 
14612
esac
 
14613
fi
 
14614
MSGMERGE=$ac_cv_path_MSGMERGE
 
14615
if test -n "$MSGMERGE"; then
 
14616
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
 
14617
$as_echo "$MSGMERGE" >&6; }
 
14618
else
 
14619
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14620
$as_echo "no" >&6; }
 
14621
fi
 
14622
 
 
14623
 
 
14624
# Extract the first word of "msgfmt", so it can be a program name with args.
 
14625
set dummy msgfmt; ac_word=$2
 
14626
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
14627
$as_echo_n "checking for $ac_word... " >&6; }
 
14628
if test "${ac_cv_path_MSGFMT+set}" = set; then :
 
14629
  $as_echo_n "(cached) " >&6
 
14630
else
 
14631
  case $MSGFMT in
 
14632
  [\\/]* | ?:[\\/]*)
 
14633
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
14634
  ;;
 
14635
  *)
 
14636
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14637
for as_dir in $PATH
 
14638
do
 
14639
  IFS=$as_save_IFS
 
14640
  test -z "$as_dir" && as_dir=.
 
14641
    for ac_exec_ext in '' $ac_executable_extensions; do
 
14642
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
14643
    ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
14644
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14645
    break 2
 
14646
  fi
 
14647
done
 
14648
  done
 
14649
IFS=$as_save_IFS
 
14650
 
 
14651
  ;;
 
14652
esac
 
14653
fi
 
14654
MSGFMT=$ac_cv_path_MSGFMT
 
14655
if test -n "$MSGFMT"; then
 
14656
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
 
14657
$as_echo "$MSGFMT" >&6; }
 
14658
else
 
14659
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14660
$as_echo "no" >&6; }
 
14661
fi
 
14662
 
 
14663
 
 
14664
# Extract the first word of "gmsgfmt", so it can be a program name with args.
 
14665
set dummy gmsgfmt; ac_word=$2
 
14666
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
14667
$as_echo_n "checking for $ac_word... " >&6; }
 
14668
if test "${ac_cv_path_GMSGFMT+set}" = set; then :
 
14669
  $as_echo_n "(cached) " >&6
 
14670
else
 
14671
  case $GMSGFMT in
 
14672
  [\\/]* | ?:[\\/]*)
 
14673
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
14674
  ;;
 
14675
  *)
 
14676
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14677
for as_dir in $PATH
 
14678
do
 
14679
  IFS=$as_save_IFS
 
14680
  test -z "$as_dir" && as_dir=.
 
14681
    for ac_exec_ext in '' $ac_executable_extensions; do
 
14682
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
14683
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
14684
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14685
    break 2
 
14686
  fi
 
14687
done
 
14688
  done
 
14689
IFS=$as_save_IFS
 
14690
 
 
14691
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
14692
  ;;
 
14693
esac
 
14694
fi
 
14695
GMSGFMT=$ac_cv_path_GMSGFMT
 
14696
if test -n "$GMSGFMT"; then
 
14697
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
 
14698
$as_echo "$GMSGFMT" >&6; }
 
14699
else
 
14700
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14701
$as_echo "no" >&6; }
 
14702
fi
 
14703
 
 
14704
 
 
14705
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
 
14706
    as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
 
14707
fi
 
14708
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
 
14709
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
 
14710
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
 
14711
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
 
14712
    as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
 
14713
fi
 
14714
 
 
14715
# Extract the first word of "perl", so it can be a program name with args.
 
14716
set dummy perl; ac_word=$2
 
14717
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
14718
$as_echo_n "checking for $ac_word... " >&6; }
 
14719
if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then :
 
14720
  $as_echo_n "(cached) " >&6
 
14721
else
 
14722
  case $INTLTOOL_PERL in
 
14723
  [\\/]* | ?:[\\/]*)
 
14724
  ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
 
14725
  ;;
 
14726
  *)
 
14727
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14728
for as_dir in $PATH
 
14729
do
 
14730
  IFS=$as_save_IFS
 
14731
  test -z "$as_dir" && as_dir=.
 
14732
    for ac_exec_ext in '' $ac_executable_extensions; do
 
14733
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
14734
    ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
 
14735
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14736
    break 2
 
14737
  fi
 
14738
done
 
14739
  done
 
14740
IFS=$as_save_IFS
 
14741
 
 
14742
  ;;
 
14743
esac
 
14744
fi
 
14745
INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
 
14746
if test -n "$INTLTOOL_PERL"; then
 
14747
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
 
14748
$as_echo "$INTLTOOL_PERL" >&6; }
 
14749
else
 
14750
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14751
$as_echo "no" >&6; }
 
14752
fi
 
14753
 
 
14754
 
 
14755
if test -z "$INTLTOOL_PERL"; then
 
14756
   as_fn_error $? "perl not found" "$LINENO" 5
 
14757
fi
 
14758
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
 
14759
$as_echo_n "checking for perl >= 5.8.1... " >&6; }
 
14760
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
 
14761
if test $? -ne 0; then
 
14762
   as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
 
14763
else
 
14764
   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
 
14765
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
 
14766
$as_echo "$IT_PERL_VERSION" >&6; }
 
14767
fi
 
14768
if test "x" != "xno-xml"; then
 
14769
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
 
14770
$as_echo_n "checking for XML::Parser... " >&6; }
 
14771
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
 
14772
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
14773
$as_echo "ok" >&6; }
 
14774
   else
 
14775
       as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
 
14776
   fi
 
14777
fi
 
14778
 
 
14779
# Substitute ALL_LINGUAS so we can use it in po/Makefile
 
14780
 
 
14781
 
 
14782
# Set DATADIRNAME correctly if it is not set yet
 
14783
# (copied from glib-gettext.m4)
 
14784
if test -z "$DATADIRNAME"; then
 
14785
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14786
/* end confdefs.h.  */
 
14787
 
 
14788
int
 
14789
main ()
 
14790
{
 
14791
extern int _nl_msg_cat_cntr;
 
14792
                       return _nl_msg_cat_cntr
 
14793
  ;
 
14794
  return 0;
 
14795
}
 
14796
_ACEOF
 
14797
if ac_fn_c_try_link "$LINENO"; then :
 
14798
  DATADIRNAME=share
 
14799
else
 
14800
  case $host in
 
14801
    *-*-solaris*)
 
14802
                        ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
 
14803
if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
 
14804
  DATADIRNAME=share
 
14805
else
 
14806
  DATADIRNAME=lib
 
14807
fi
 
14808
 
 
14809
    ;;
 
14810
    *)
 
14811
    DATADIRNAME=lib
 
14812
    ;;
 
14813
    esac
 
14814
fi
 
14815
rm -f core conftest.err conftest.$ac_objext \
 
14816
    conftest$ac_exeext conftest.$ac_ext
 
14817
fi
 
14818
 
 
14819
 
 
14820
 
 
14821
 
 
14822
 
 
14823
 
 
14824
#*******************************************************************************
 
14825
# Check required libraries
 
14826
#*******************************************************************************
 
14827
 
 
14828
 
 
14829
GLIB_REQUIRED=2.28.0
 
14830
GOBJECT_REQUIRED=2.28.0
 
14831
GIO_REQUIRED=2.28.0
 
14832
GTK_REQUIRED=2.99.4
 
14833
GDK_REQUIRED=2.99.4
 
14834
LIBGNOMEDESKTOP_REQUIRED=2.91.6
 
14835
GSTREAMER_REQUIRED=0.10.32
 
14836
CAIRO_REQUIRED=1.10.0
 
14837
PANGOCAIRO_REQUIRED=1.28.0
 
14838
LIBRSVG_REQUIRED=2.32.0
 
14839
CLUTTER_REQUIRED=1.6.1
 
14840
CLUTTERGTK_REQUIRED=0.91.8
 
14841
CLUTTERGST_REQUIRED=1.0.0
 
14842
GEE_REQUIRED=0.6.0
 
14843
LIBCANBERRA_REQUIRED=0.26
 
14844
 
 
14845
#*******************************************************************************
 
14846
# Check for udev
 
14847
#*******************************************************************************
 
14848
 
 
14849
UDEV_PKG=
 
14850
 
 
14851
 
 
14852
 
 
14853
 
 
14854
 
 
14855
 
 
14856
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
14857
        if test -n "$ac_tool_prefix"; then
 
14858
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
14859
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
14860
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
14861
$as_echo_n "checking for $ac_word... " >&6; }
 
14862
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
 
14863
  $as_echo_n "(cached) " >&6
 
14864
else
 
14865
  case $PKG_CONFIG in
 
14866
  [\\/]* | ?:[\\/]*)
 
14867
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
14868
  ;;
 
14869
  *)
 
14870
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14871
for as_dir in $PATH
 
14872
do
 
14873
  IFS=$as_save_IFS
 
14874
  test -z "$as_dir" && as_dir=.
 
14875
    for ac_exec_ext in '' $ac_executable_extensions; do
 
14876
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
14877
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
14878
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14879
    break 2
 
14880
  fi
 
14881
done
 
14882
  done
 
14883
IFS=$as_save_IFS
 
14884
 
 
14885
  ;;
 
14886
esac
 
14887
fi
 
14888
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
14889
if test -n "$PKG_CONFIG"; then
 
14890
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 
14891
$as_echo "$PKG_CONFIG" >&6; }
 
14892
else
 
14893
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14894
$as_echo "no" >&6; }
 
14895
fi
 
14896
 
 
14897
 
 
14898
fi
 
14899
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
14900
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
14901
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
14902
set dummy pkg-config; ac_word=$2
 
14903
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
14904
$as_echo_n "checking for $ac_word... " >&6; }
 
14905
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
 
14906
  $as_echo_n "(cached) " >&6
 
14907
else
 
14908
  case $ac_pt_PKG_CONFIG in
 
14909
  [\\/]* | ?:[\\/]*)
 
14910
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
14911
  ;;
 
14912
  *)
 
14913
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14914
for as_dir in $PATH
 
14915
do
 
14916
  IFS=$as_save_IFS
 
14917
  test -z "$as_dir" && as_dir=.
 
14918
    for ac_exec_ext in '' $ac_executable_extensions; do
 
14919
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
14920
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
14921
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14922
    break 2
 
14923
  fi
 
14924
done
 
14925
  done
 
14926
IFS=$as_save_IFS
 
14927
 
 
14928
  ;;
 
14929
esac
 
14930
fi
 
14931
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
14932
if test -n "$ac_pt_PKG_CONFIG"; then
 
14933
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
 
14934
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
 
14935
else
 
14936
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14937
$as_echo "no" >&6; }
 
14938
fi
 
14939
 
 
14940
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
14941
    PKG_CONFIG=""
 
14942
  else
 
14943
    case $cross_compiling:$ac_tool_warned in
 
14944
yes:)
 
14945
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
14946
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
14947
ac_tool_warned=yes ;;
 
14948
esac
 
14949
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
14950
  fi
 
14951
else
 
14952
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
14953
fi
 
14954
 
 
14955
fi
 
14956
if test -n "$PKG_CONFIG"; then
 
14957
        _pkg_min_version=0.9.0
 
14958
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
 
14959
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
 
14960
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
14961
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
14962
$as_echo "yes" >&6; }
 
14963
        else
 
14964
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14965
$as_echo "no" >&6; }
 
14966
                PKG_CONFIG=""
 
14967
        fi
 
14968
fi
 
14969
 
 
14970
pkg_failed=no
 
14971
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
 
14972
$as_echo_n "checking for UDEV... " >&6; }
 
14973
 
 
14974
if test -n "$UDEV_CFLAGS"; then
 
14975
    pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
 
14976
 elif test -n "$PKG_CONFIG"; then
 
14977
    if test -n "$PKG_CONFIG" && \
 
14978
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gudev-1.0\""; } >&5
 
14979
  ($PKG_CONFIG --exists --print-errors "gudev-1.0") 2>&5
 
14980
  ac_status=$?
 
14981
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14982
  test $ac_status = 0; }; then
 
14983
  pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "gudev-1.0" 2>/dev/null`
 
14984
else
 
14985
  pkg_failed=yes
 
14986
fi
 
14987
 else
 
14988
    pkg_failed=untried
 
14989
fi
 
14990
if test -n "$UDEV_LIBS"; then
 
14991
    pkg_cv_UDEV_LIBS="$UDEV_LIBS"
 
14992
 elif test -n "$PKG_CONFIG"; then
 
14993
    if test -n "$PKG_CONFIG" && \
 
14994
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gudev-1.0\""; } >&5
 
14995
  ($PKG_CONFIG --exists --print-errors "gudev-1.0") 2>&5
 
14996
  ac_status=$?
 
14997
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14998
  test $ac_status = 0; }; then
 
14999
  pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "gudev-1.0" 2>/dev/null`
 
15000
else
 
15001
  pkg_failed=yes
 
15002
fi
 
15003
 else
 
15004
    pkg_failed=untried
 
15005
fi
 
15006
 
 
15007
 
 
15008
 
 
15009
if test $pkg_failed = yes; then
 
15010
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15011
$as_echo "no" >&6; }
 
15012
 
 
15013
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
15014
        _pkg_short_errors_supported=yes
 
15015
else
 
15016
        _pkg_short_errors_supported=no
 
15017
fi
 
15018
        if test $_pkg_short_errors_supported = yes; then
 
15019
                UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gudev-1.0" 2>&1`
 
15020
        else
 
15021
                UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "gudev-1.0" 2>&1`
 
15022
        fi
 
15023
        # Put the nasty error message in config.log where it belongs
 
15024
        echo "$UDEV_PKG_ERRORS" >&5
 
15025
 
 
15026
        UDEV_PKG=
 
15027
elif test $pkg_failed = untried; then
 
15028
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15029
$as_echo "no" >&6; }
 
15030
        UDEV_PKG=
 
15031
else
 
15032
        UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
 
15033
        UDEV_LIBS=$pkg_cv_UDEV_LIBS
 
15034
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
15035
$as_echo "yes" >&6; }
 
15036
 
 
15037
$as_echo "#define HAVE_UDEV 1" >>confdefs.h
 
15038
 
 
15039
                  UDEV_PKG=gudev-1.0
 
15040
fi
 
15041
 
 
15042
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking operating system" >&5
 
15043
$as_echo_n "checking operating system... " >&6; }
 
15044
case $host in
 
15045
  *-linux*)
 
15046
 
 
15047
$as_echo "#define OS_LINUX /**/" >>confdefs.h
 
15048
 
 
15049
 
 
15050
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
 
15051
$as_echo "Linux" >&6; }
 
15052
    if test x$UDEV_PKG = "x" ; then
 
15053
            as_fn_error $? "libgudev is required under Linux and not installed" "$LINENO" 5
 
15054
    fi
 
15055
    ;;
 
15056
  *)
 
15057
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported operating system" >&5
 
15058
$as_echo "unsupported operating system" >&6; }
 
15059
esac
 
15060
 
 
15061
 
 
15062
ac_fn_c_check_header_mongrel "$LINENO" "sys/videoio.h" "ac_cv_header_sys_videoio_h" "$ac_includes_default"
 
15063
if test "x$ac_cv_header_sys_videoio_h" = x""yes; then :
 
15064
 
 
15065
$as_echo "#define USE_SYS_VIDEOIO_H 1" >>confdefs.h
 
15066
 
 
15067
else
 
15068
 
 
15069
$as_echo "#define USE_SYS_VIDEOIO_H 0" >>confdefs.h
 
15070
 
 
15071
fi
 
15072
 
 
15073
 
 
15074
 
 
15075
XTEST_LIBS=
 
15076
ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/XTest.h" "ac_cv_header_X11_extensions_XTest_h" "$ac_includes_default"
 
15077
if test "x$ac_cv_header_X11_extensions_XTest_h" = x""yes; then :
 
15078
 
 
15079
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestFakeKeyEvent in -lXtst" >&5
 
15080
$as_echo_n "checking for XTestFakeKeyEvent in -lXtst... " >&6; }
 
15081
if test "${ac_cv_lib_Xtst_XTestFakeKeyEvent+set}" = set; then :
 
15082
  $as_echo_n "(cached) " >&6
 
15083
else
 
15084
  ac_check_lib_save_LIBS=$LIBS
 
15085
LIBS="-lXtst  $LIBS"
 
15086
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15087
/* end confdefs.h.  */
 
15088
 
 
15089
/* Override any GCC internal prototype to avoid an error.
 
15090
   Use char because int might match the return type of a GCC
 
15091
   builtin and then its argument prototype would still apply.  */
 
15092
#ifdef __cplusplus
 
15093
extern "C"
 
15094
#endif
 
15095
char XTestFakeKeyEvent ();
 
15096
int
 
15097
main ()
 
15098
{
 
15099
return XTestFakeKeyEvent ();
 
15100
  ;
 
15101
  return 0;
 
15102
}
 
15103
_ACEOF
 
15104
if ac_fn_c_try_link "$LINENO"; then :
 
15105
  ac_cv_lib_Xtst_XTestFakeKeyEvent=yes
 
15106
else
 
15107
  ac_cv_lib_Xtst_XTestFakeKeyEvent=no
 
15108
fi
 
15109
rm -f core conftest.err conftest.$ac_objext \
 
15110
    conftest$ac_exeext conftest.$ac_ext
 
15111
LIBS=$ac_check_lib_save_LIBS
 
15112
fi
 
15113
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestFakeKeyEvent" >&5
 
15114
$as_echo "$ac_cv_lib_Xtst_XTestFakeKeyEvent" >&6; }
 
15115
if test "x$ac_cv_lib_Xtst_XTestFakeKeyEvent" = x""yes; then :
 
15116
 
 
15117
 
 
15118
$as_echo "#define HAVE_XTEST 1" >>confdefs.h
 
15119
 
 
15120
    XTEST_LIBS="-lX11 -lXtst"
 
15121
fi
 
15122
 
 
15123
 
 
15124
fi
 
15125
 
 
15126
 
 
15127
 
 
15128
 if test "x$HAVE_TEST" = "xyes"; then
 
15129
  HAVE_XTEST_TRUE=
 
15130
  HAVE_XTEST_FALSE='#'
 
15131
else
 
15132
  HAVE_XTEST_TRUE='#'
 
15133
  HAVE_XTEST_FALSE=
 
15134
fi
 
15135
 
 
15136
 
 
15137
 
 
15138
pkg_failed=no
 
15139
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHEESE" >&5
 
15140
$as_echo_n "checking for CHEESE... " >&6; }
 
15141
 
 
15142
if test -n "$CHEESE_CFLAGS"; then
 
15143
    pkg_cv_CHEESE_CFLAGS="$CHEESE_CFLAGS"
 
15144
 elif test -n "$PKG_CONFIG"; then
 
15145
    if test -n "$PKG_CONFIG" && \
 
15146
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\\
 
15147
  glib-2.0 >= \$GLIB_REQUIRED \\
 
15148
  gobject-2.0 >= \$GOBJECT_REQUIRED \\
 
15149
  gdk-pixbuf-2.0 \\
 
15150
  gstreamer-0.10 >= \$GSTREAMER_REQUIRED \\
 
15151
  gstreamer-plugins-base-0.10 >= \$GSTREAMER_REQUIRED \\
 
15152
  cairo >= \$CAIRO_REQUIRED \\
 
15153
  pangocairo >= \$PANGOCAIRO_REQUIRED \\
 
15154
  clutter-1.0 >= \$CLUTTER_REQUIRED \\
 
15155
  clutter-gst-1.0 >= \$CLUTTERGST_REQUIRED \\
 
15156
  mx-1.0 \\
 
15157
  \$UDEV_PKG
 
15158
  \""; } >&5
 
15159
  ($PKG_CONFIG --exists --print-errors "\
 
15160
  glib-2.0 >= $GLIB_REQUIRED \
 
15161
  gobject-2.0 >= $GOBJECT_REQUIRED \
 
15162
  gdk-pixbuf-2.0 \
 
15163
  gstreamer-0.10 >= $GSTREAMER_REQUIRED \
 
15164
  gstreamer-plugins-base-0.10 >= $GSTREAMER_REQUIRED \
 
15165
  cairo >= $CAIRO_REQUIRED \
 
15166
  pangocairo >= $PANGOCAIRO_REQUIRED \
 
15167
  clutter-1.0 >= $CLUTTER_REQUIRED \
 
15168
  clutter-gst-1.0 >= $CLUTTERGST_REQUIRED \
 
15169
  mx-1.0 \
 
15170
  $UDEV_PKG
 
15171
  ") 2>&5
 
15172
  ac_status=$?
 
15173
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15174
  test $ac_status = 0; }; then
 
15175
  pkg_cv_CHEESE_CFLAGS=`$PKG_CONFIG --cflags "\
 
15176
  glib-2.0 >= $GLIB_REQUIRED \
 
15177
  gobject-2.0 >= $GOBJECT_REQUIRED \
 
15178
  gdk-pixbuf-2.0 \
 
15179
  gstreamer-0.10 >= $GSTREAMER_REQUIRED \
 
15180
  gstreamer-plugins-base-0.10 >= $GSTREAMER_REQUIRED \
 
15181
  cairo >= $CAIRO_REQUIRED \
 
15182
  pangocairo >= $PANGOCAIRO_REQUIRED \
 
15183
  clutter-1.0 >= $CLUTTER_REQUIRED \
 
15184
  clutter-gst-1.0 >= $CLUTTERGST_REQUIRED \
 
15185
  mx-1.0 \
 
15186
  $UDEV_PKG
 
15187
  " 2>/dev/null`
 
15188
else
 
15189
  pkg_failed=yes
 
15190
fi
 
15191
 else
 
15192
    pkg_failed=untried
 
15193
fi
 
15194
if test -n "$CHEESE_LIBS"; then
 
15195
    pkg_cv_CHEESE_LIBS="$CHEESE_LIBS"
 
15196
 elif test -n "$PKG_CONFIG"; then
 
15197
    if test -n "$PKG_CONFIG" && \
 
15198
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\\
 
15199
  glib-2.0 >= \$GLIB_REQUIRED \\
 
15200
  gobject-2.0 >= \$GOBJECT_REQUIRED \\
 
15201
  gdk-pixbuf-2.0 \\
 
15202
  gstreamer-0.10 >= \$GSTREAMER_REQUIRED \\
 
15203
  gstreamer-plugins-base-0.10 >= \$GSTREAMER_REQUIRED \\
 
15204
  cairo >= \$CAIRO_REQUIRED \\
 
15205
  pangocairo >= \$PANGOCAIRO_REQUIRED \\
 
15206
  clutter-1.0 >= \$CLUTTER_REQUIRED \\
 
15207
  clutter-gst-1.0 >= \$CLUTTERGST_REQUIRED \\
 
15208
  mx-1.0 \\
 
15209
  \$UDEV_PKG
 
15210
  \""; } >&5
 
15211
  ($PKG_CONFIG --exists --print-errors "\
 
15212
  glib-2.0 >= $GLIB_REQUIRED \
 
15213
  gobject-2.0 >= $GOBJECT_REQUIRED \
 
15214
  gdk-pixbuf-2.0 \
 
15215
  gstreamer-0.10 >= $GSTREAMER_REQUIRED \
 
15216
  gstreamer-plugins-base-0.10 >= $GSTREAMER_REQUIRED \
 
15217
  cairo >= $CAIRO_REQUIRED \
 
15218
  pangocairo >= $PANGOCAIRO_REQUIRED \
 
15219
  clutter-1.0 >= $CLUTTER_REQUIRED \
 
15220
  clutter-gst-1.0 >= $CLUTTERGST_REQUIRED \
 
15221
  mx-1.0 \
 
15222
  $UDEV_PKG
 
15223
  ") 2>&5
 
15224
  ac_status=$?
 
15225
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15226
  test $ac_status = 0; }; then
 
15227
  pkg_cv_CHEESE_LIBS=`$PKG_CONFIG --libs "\
 
15228
  glib-2.0 >= $GLIB_REQUIRED \
 
15229
  gobject-2.0 >= $GOBJECT_REQUIRED \
 
15230
  gdk-pixbuf-2.0 \
 
15231
  gstreamer-0.10 >= $GSTREAMER_REQUIRED \
 
15232
  gstreamer-plugins-base-0.10 >= $GSTREAMER_REQUIRED \
 
15233
  cairo >= $CAIRO_REQUIRED \
 
15234
  pangocairo >= $PANGOCAIRO_REQUIRED \
 
15235
  clutter-1.0 >= $CLUTTER_REQUIRED \
 
15236
  clutter-gst-1.0 >= $CLUTTERGST_REQUIRED \
 
15237
  mx-1.0 \
 
15238
  $UDEV_PKG
 
15239
  " 2>/dev/null`
 
15240
else
 
15241
  pkg_failed=yes
 
15242
fi
 
15243
 else
 
15244
    pkg_failed=untried
 
15245
fi
 
15246
 
 
15247
 
 
15248
 
 
15249
if test $pkg_failed = yes; then
 
15250
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15251
$as_echo "no" >&6; }
 
15252
 
 
15253
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
15254
        _pkg_short_errors_supported=yes
 
15255
else
 
15256
        _pkg_short_errors_supported=no
 
15257
fi
 
15258
        if test $_pkg_short_errors_supported = yes; then
 
15259
                CHEESE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "\
 
15260
  glib-2.0 >= $GLIB_REQUIRED \
 
15261
  gobject-2.0 >= $GOBJECT_REQUIRED \
 
15262
  gdk-pixbuf-2.0 \
 
15263
  gstreamer-0.10 >= $GSTREAMER_REQUIRED \
 
15264
  gstreamer-plugins-base-0.10 >= $GSTREAMER_REQUIRED \
 
15265
  cairo >= $CAIRO_REQUIRED \
 
15266
  pangocairo >= $PANGOCAIRO_REQUIRED \
 
15267
  clutter-1.0 >= $CLUTTER_REQUIRED \
 
15268
  clutter-gst-1.0 >= $CLUTTERGST_REQUIRED \
 
15269
  mx-1.0 \
 
15270
  $UDEV_PKG
 
15271
  " 2>&1`
 
15272
        else
 
15273
                CHEESE_PKG_ERRORS=`$PKG_CONFIG --print-errors "\
 
15274
  glib-2.0 >= $GLIB_REQUIRED \
 
15275
  gobject-2.0 >= $GOBJECT_REQUIRED \
 
15276
  gdk-pixbuf-2.0 \
 
15277
  gstreamer-0.10 >= $GSTREAMER_REQUIRED \
 
15278
  gstreamer-plugins-base-0.10 >= $GSTREAMER_REQUIRED \
 
15279
  cairo >= $CAIRO_REQUIRED \
 
15280
  pangocairo >= $PANGOCAIRO_REQUIRED \
 
15281
  clutter-1.0 >= $CLUTTER_REQUIRED \
 
15282
  clutter-gst-1.0 >= $CLUTTERGST_REQUIRED \
 
15283
  mx-1.0 \
 
15284
  $UDEV_PKG
 
15285
  " 2>&1`
 
15286
        fi
 
15287
        # Put the nasty error message in config.log where it belongs
 
15288
        echo "$CHEESE_PKG_ERRORS" >&5
 
15289
 
 
15290
        as_fn_error $? "Package requirements (\
 
15291
  glib-2.0 >= $GLIB_REQUIRED \
 
15292
  gobject-2.0 >= $GOBJECT_REQUIRED \
 
15293
  gdk-pixbuf-2.0 \
 
15294
  gstreamer-0.10 >= $GSTREAMER_REQUIRED \
 
15295
  gstreamer-plugins-base-0.10 >= $GSTREAMER_REQUIRED \
 
15296
  cairo >= $CAIRO_REQUIRED \
 
15297
  pangocairo >= $PANGOCAIRO_REQUIRED \
 
15298
  clutter-1.0 >= $CLUTTER_REQUIRED \
 
15299
  clutter-gst-1.0 >= $CLUTTERGST_REQUIRED \
 
15300
  mx-1.0 \
 
15301
  $UDEV_PKG
 
15302
  ) were not met:
 
15303
 
 
15304
$CHEESE_PKG_ERRORS
 
15305
 
 
15306
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
15307
installed software in a non-standard prefix.
 
15308
 
 
15309
Alternatively, you may set the environment variables CHEESE_CFLAGS
 
15310
and CHEESE_LIBS to avoid the need to call pkg-config.
 
15311
See the pkg-config man page for more details." "$LINENO" 5
 
15312
elif test $pkg_failed = untried; then
 
15313
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15314
$as_echo "no" >&6; }
 
15315
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
15316
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
15317
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
15318
is in your PATH or set the PKG_CONFIG environment variable to the full
 
15319
path to pkg-config.
 
15320
 
 
15321
Alternatively, you may set the environment variables CHEESE_CFLAGS
 
15322
and CHEESE_LIBS to avoid the need to call pkg-config.
 
15323
See the pkg-config man page for more details.
 
15324
 
 
15325
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
15326
See \`config.log' for more details" "$LINENO" 5 ; }
 
15327
else
 
15328
        CHEESE_CFLAGS=$pkg_cv_CHEESE_CFLAGS
 
15329
        CHEESE_LIBS=$pkg_cv_CHEESE_LIBS
 
15330
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
15331
$as_echo "yes" >&6; }
 
15332
 
 
15333
fi
 
15334
 
 
15335
 
 
15336
CHEESE_LIBS="$CHEESE_LIBS -lgstinterfaces-0.10"
 
15337
 
 
15338
 
 
15339
pkg_failed=no
 
15340
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHEESE_GTK" >&5
 
15341
$as_echo_n "checking for CHEESE_GTK... " >&6; }
 
15342
 
 
15343
if test -n "$CHEESE_GTK_CFLAGS"; then
 
15344
    pkg_cv_CHEESE_GTK_CFLAGS="$CHEESE_GTK_CFLAGS"
 
15345
 elif test -n "$PKG_CONFIG"; then
 
15346
    if test -n "$PKG_CONFIG" && \
 
15347
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\\
 
15348
  gio-2.0 >= \$GIO_REQUIRED \\
 
15349
  gtk+-3.0 >= \$GTK_REQUIRED \\
 
15350
  gdk-3.0 >= \$GDK_REQUIRED \\
 
15351
  gnome-desktop-3.0 >= \$LIBGNOMEDESKTOP_REQUIRED \\
 
15352
  librsvg-2.0 >= \$LIBRSVG_REQUIRED \\
 
15353
  clutter-gtk-1.0 >= \$CLUTTERGTK_REQUIRED \\
 
15354
  gee-1.0 >= \$GEE_REQUIRED \\
 
15355
  libcanberra-gtk3 >= \$LIBCANBERRA_REQUIRED \\
 
15356
  \$UDEV_PKG \\
 
15357
  gnome-video-effects
 
15358
  \""; } >&5
 
15359
  ($PKG_CONFIG --exists --print-errors "\
 
15360
  gio-2.0 >= $GIO_REQUIRED \
 
15361
  gtk+-3.0 >= $GTK_REQUIRED \
 
15362
  gdk-3.0 >= $GDK_REQUIRED \
 
15363
  gnome-desktop-3.0 >= $LIBGNOMEDESKTOP_REQUIRED \
 
15364
  librsvg-2.0 >= $LIBRSVG_REQUIRED \
 
15365
  clutter-gtk-1.0 >= $CLUTTERGTK_REQUIRED \
 
15366
  gee-1.0 >= $GEE_REQUIRED \
 
15367
  libcanberra-gtk3 >= $LIBCANBERRA_REQUIRED \
 
15368
  $UDEV_PKG \
 
15369
  gnome-video-effects
 
15370
  ") 2>&5
 
15371
  ac_status=$?
 
15372
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15373
  test $ac_status = 0; }; then
 
15374
  pkg_cv_CHEESE_GTK_CFLAGS=`$PKG_CONFIG --cflags "\
 
15375
  gio-2.0 >= $GIO_REQUIRED \
 
15376
  gtk+-3.0 >= $GTK_REQUIRED \
 
15377
  gdk-3.0 >= $GDK_REQUIRED \
 
15378
  gnome-desktop-3.0 >= $LIBGNOMEDESKTOP_REQUIRED \
 
15379
  librsvg-2.0 >= $LIBRSVG_REQUIRED \
 
15380
  clutter-gtk-1.0 >= $CLUTTERGTK_REQUIRED \
 
15381
  gee-1.0 >= $GEE_REQUIRED \
 
15382
  libcanberra-gtk3 >= $LIBCANBERRA_REQUIRED \
 
15383
  $UDEV_PKG \
 
15384
  gnome-video-effects
 
15385
  " 2>/dev/null`
 
15386
else
 
15387
  pkg_failed=yes
 
15388
fi
 
15389
 else
 
15390
    pkg_failed=untried
 
15391
fi
 
15392
if test -n "$CHEESE_GTK_LIBS"; then
 
15393
    pkg_cv_CHEESE_GTK_LIBS="$CHEESE_GTK_LIBS"
 
15394
 elif test -n "$PKG_CONFIG"; then
 
15395
    if test -n "$PKG_CONFIG" && \
 
15396
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\\
 
15397
  gio-2.0 >= \$GIO_REQUIRED \\
 
15398
  gtk+-3.0 >= \$GTK_REQUIRED \\
 
15399
  gdk-3.0 >= \$GDK_REQUIRED \\
 
15400
  gnome-desktop-3.0 >= \$LIBGNOMEDESKTOP_REQUIRED \\
 
15401
  librsvg-2.0 >= \$LIBRSVG_REQUIRED \\
 
15402
  clutter-gtk-1.0 >= \$CLUTTERGTK_REQUIRED \\
 
15403
  gee-1.0 >= \$GEE_REQUIRED \\
 
15404
  libcanberra-gtk3 >= \$LIBCANBERRA_REQUIRED \\
 
15405
  \$UDEV_PKG \\
 
15406
  gnome-video-effects
 
15407
  \""; } >&5
 
15408
  ($PKG_CONFIG --exists --print-errors "\
 
15409
  gio-2.0 >= $GIO_REQUIRED \
 
15410
  gtk+-3.0 >= $GTK_REQUIRED \
 
15411
  gdk-3.0 >= $GDK_REQUIRED \
 
15412
  gnome-desktop-3.0 >= $LIBGNOMEDESKTOP_REQUIRED \
 
15413
  librsvg-2.0 >= $LIBRSVG_REQUIRED \
 
15414
  clutter-gtk-1.0 >= $CLUTTERGTK_REQUIRED \
 
15415
  gee-1.0 >= $GEE_REQUIRED \
 
15416
  libcanberra-gtk3 >= $LIBCANBERRA_REQUIRED \
 
15417
  $UDEV_PKG \
 
15418
  gnome-video-effects
 
15419
  ") 2>&5
 
15420
  ac_status=$?
 
15421
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15422
  test $ac_status = 0; }; then
 
15423
  pkg_cv_CHEESE_GTK_LIBS=`$PKG_CONFIG --libs "\
 
15424
  gio-2.0 >= $GIO_REQUIRED \
 
15425
  gtk+-3.0 >= $GTK_REQUIRED \
 
15426
  gdk-3.0 >= $GDK_REQUIRED \
 
15427
  gnome-desktop-3.0 >= $LIBGNOMEDESKTOP_REQUIRED \
 
15428
  librsvg-2.0 >= $LIBRSVG_REQUIRED \
 
15429
  clutter-gtk-1.0 >= $CLUTTERGTK_REQUIRED \
 
15430
  gee-1.0 >= $GEE_REQUIRED \
 
15431
  libcanberra-gtk3 >= $LIBCANBERRA_REQUIRED \
 
15432
  $UDEV_PKG \
 
15433
  gnome-video-effects
 
15434
  " 2>/dev/null`
 
15435
else
 
15436
  pkg_failed=yes
 
15437
fi
 
15438
 else
 
15439
    pkg_failed=untried
 
15440
fi
 
15441
 
 
15442
 
 
15443
 
 
15444
if test $pkg_failed = yes; then
 
15445
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15446
$as_echo "no" >&6; }
 
15447
 
 
15448
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
15449
        _pkg_short_errors_supported=yes
 
15450
else
 
15451
        _pkg_short_errors_supported=no
 
15452
fi
 
15453
        if test $_pkg_short_errors_supported = yes; then
 
15454
                CHEESE_GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "\
 
15455
  gio-2.0 >= $GIO_REQUIRED \
 
15456
  gtk+-3.0 >= $GTK_REQUIRED \
 
15457
  gdk-3.0 >= $GDK_REQUIRED \
 
15458
  gnome-desktop-3.0 >= $LIBGNOMEDESKTOP_REQUIRED \
 
15459
  librsvg-2.0 >= $LIBRSVG_REQUIRED \
 
15460
  clutter-gtk-1.0 >= $CLUTTERGTK_REQUIRED \
 
15461
  gee-1.0 >= $GEE_REQUIRED \
 
15462
  libcanberra-gtk3 >= $LIBCANBERRA_REQUIRED \
 
15463
  $UDEV_PKG \
 
15464
  gnome-video-effects
 
15465
  " 2>&1`
 
15466
        else
 
15467
                CHEESE_GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "\
 
15468
  gio-2.0 >= $GIO_REQUIRED \
 
15469
  gtk+-3.0 >= $GTK_REQUIRED \
 
15470
  gdk-3.0 >= $GDK_REQUIRED \
 
15471
  gnome-desktop-3.0 >= $LIBGNOMEDESKTOP_REQUIRED \
 
15472
  librsvg-2.0 >= $LIBRSVG_REQUIRED \
 
15473
  clutter-gtk-1.0 >= $CLUTTERGTK_REQUIRED \
 
15474
  gee-1.0 >= $GEE_REQUIRED \
 
15475
  libcanberra-gtk3 >= $LIBCANBERRA_REQUIRED \
 
15476
  $UDEV_PKG \
 
15477
  gnome-video-effects
 
15478
  " 2>&1`
 
15479
        fi
 
15480
        # Put the nasty error message in config.log where it belongs
 
15481
        echo "$CHEESE_GTK_PKG_ERRORS" >&5
 
15482
 
 
15483
        as_fn_error $? "Package requirements (\
 
15484
  gio-2.0 >= $GIO_REQUIRED \
 
15485
  gtk+-3.0 >= $GTK_REQUIRED \
 
15486
  gdk-3.0 >= $GDK_REQUIRED \
 
15487
  gnome-desktop-3.0 >= $LIBGNOMEDESKTOP_REQUIRED \
 
15488
  librsvg-2.0 >= $LIBRSVG_REQUIRED \
 
15489
  clutter-gtk-1.0 >= $CLUTTERGTK_REQUIRED \
 
15490
  gee-1.0 >= $GEE_REQUIRED \
 
15491
  libcanberra-gtk3 >= $LIBCANBERRA_REQUIRED \
 
15492
  $UDEV_PKG \
 
15493
  gnome-video-effects
 
15494
  ) were not met:
 
15495
 
 
15496
$CHEESE_GTK_PKG_ERRORS
 
15497
 
 
15498
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
15499
installed software in a non-standard prefix.
 
15500
 
 
15501
Alternatively, you may set the environment variables CHEESE_GTK_CFLAGS
 
15502
and CHEESE_GTK_LIBS to avoid the need to call pkg-config.
 
15503
See the pkg-config man page for more details." "$LINENO" 5
 
15504
elif test $pkg_failed = untried; then
 
15505
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15506
$as_echo "no" >&6; }
 
15507
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
15508
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
15509
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
15510
is in your PATH or set the PKG_CONFIG environment variable to the full
 
15511
path to pkg-config.
 
15512
 
 
15513
Alternatively, you may set the environment variables CHEESE_GTK_CFLAGS
 
15514
and CHEESE_GTK_LIBS to avoid the need to call pkg-config.
 
15515
See the pkg-config man page for more details.
 
15516
 
 
15517
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
15518
See \`config.log' for more details" "$LINENO" 5 ; }
 
15519
else
 
15520
        CHEESE_GTK_CFLAGS=$pkg_cv_CHEESE_GTK_CFLAGS
 
15521
        CHEESE_GTK_LIBS=$pkg_cv_CHEESE_GTK_LIBS
 
15522
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
15523
$as_echo "yes" >&6; }
 
15524
 
 
15525
fi
 
15526
 
 
15527
 
 
15528
 
 
15529
GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
 
15530
GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
 
15531
 
 
15532
 
 
15533
 
 
15534
 
 
15535
 
 
15536
 
 
15537
                # Check whether --enable-introspection was given.
 
15538
if test "${enable_introspection+set}" = set; then :
 
15539
  enableval=$enable_introspection;
 
15540
else
 
15541
  enable_introspection=auto
 
15542
fi
 
15543
 
 
15544
 
 
15545
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
 
15546
$as_echo_n "checking for gobject-introspection... " >&6; }
 
15547
 
 
15548
        case $enable_introspection in #(
 
15549
  no) :
 
15550
            found_introspection="no (disabled, use --enable-introspection to enable)"
 
15551
     ;; #(
 
15552
      yes) :
 
15553
            if test -n "$PKG_CONFIG" && \
 
15554
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
 
15555
  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
 
15556
  ac_status=$?
 
15557
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15558
  test $ac_status = 0; }; then
 
15559
  :
 
15560
else
 
15561
  as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
 
15562
fi
 
15563
        if test -n "$PKG_CONFIG" && \
 
15564
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.7\""; } >&5
 
15565
  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.7") 2>&5
 
15566
  ac_status=$?
 
15567
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15568
  test $ac_status = 0; }; then
 
15569
  found_introspection=yes
 
15570
else
 
15571
  as_fn_error $? "You need to have gobject-introspection >= 0.6.7 installed to build cheese" "$LINENO" 5
 
15572
fi
 
15573
     ;; #(
 
15574
      auto) :
 
15575
            if test -n "$PKG_CONFIG" && \
 
15576
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.7\""; } >&5
 
15577
  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.7") 2>&5
 
15578
  ac_status=$?
 
15579
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15580
  test $ac_status = 0; }; then
 
15581
  found_introspection=yes
 
15582
else
 
15583
  found_introspection=no
 
15584
fi
 
15585
     ;; #(
 
15586
  *) :
 
15587
                as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
 
15588
     ;;
 
15589
esac
 
15590
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
 
15591
$as_echo "$found_introspection" >&6; }
 
15592
 
 
15593
    INTROSPECTION_SCANNER=
 
15594
    INTROSPECTION_COMPILER=
 
15595
    INTROSPECTION_GENERATE=
 
15596
    INTROSPECTION_GIRDIR=
 
15597
    INTROSPECTION_TYPELIBDIR=
 
15598
    if test "x$found_introspection" = "xyes"; then
 
15599
       INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
 
15600
       INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
 
15601
       INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
 
15602
       INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
 
15603
       INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
 
15604
       INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
 
15605
       INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
 
15606
       INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
 
15607
    fi
 
15608
 
 
15609
 
 
15610
 
 
15611
 
 
15612
 
 
15613
 
 
15614
 
 
15615
 
 
15616
 
 
15617
     if test "x$found_introspection" = "xyes"; then
 
15618
  HAVE_INTROSPECTION_TRUE=
 
15619
  HAVE_INTROSPECTION_FALSE='#'
 
15620
else
 
15621
  HAVE_INTROSPECTION_TRUE='#'
 
15622
  HAVE_INTROSPECTION_FALSE=
 
15623
fi
 
15624
 
 
15625
 
 
15626
 
 
15627
 
 
15628
# API documentation
 
15629
 
 
15630
 
 
15631
    # Extract the first word of "gtkdoc-check", so it can be a program name with args.
 
15632
set dummy gtkdoc-check; ac_word=$2
 
15633
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
15634
$as_echo_n "checking for $ac_word... " >&6; }
 
15635
if test "${ac_cv_path_GTKDOC_CHECK+set}" = set; then :
 
15636
  $as_echo_n "(cached) " >&6
 
15637
else
 
15638
  case $GTKDOC_CHECK in
 
15639
  [\\/]* | ?:[\\/]*)
 
15640
  ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
 
15641
  ;;
 
15642
  *)
 
15643
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15644
for as_dir in $PATH
 
15645
do
 
15646
  IFS=$as_save_IFS
 
15647
  test -z "$as_dir" && as_dir=.
 
15648
    for ac_exec_ext in '' $ac_executable_extensions; do
 
15649
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
15650
    ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
 
15651
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15652
    break 2
 
15653
  fi
 
15654
done
 
15655
  done
 
15656
IFS=$as_save_IFS
 
15657
 
 
15658
  ;;
 
15659
esac
 
15660
fi
 
15661
GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
 
15662
if test -n "$GTKDOC_CHECK"; then
 
15663
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
 
15664
$as_echo "$GTKDOC_CHECK" >&6; }
 
15665
else
 
15666
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15667
$as_echo "no" >&6; }
 
15668
fi
 
15669
 
 
15670
 
 
15671
  for ac_prog in gtkdoc-rebase
 
15672
do
 
15673
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
15674
set dummy $ac_prog; ac_word=$2
 
15675
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
15676
$as_echo_n "checking for $ac_word... " >&6; }
 
15677
if test "${ac_cv_path_GTKDOC_REBASE+set}" = set; then :
 
15678
  $as_echo_n "(cached) " >&6
 
15679
else
 
15680
  case $GTKDOC_REBASE in
 
15681
  [\\/]* | ?:[\\/]*)
 
15682
  ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
 
15683
  ;;
 
15684
  *)
 
15685
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15686
for as_dir in $PATH
 
15687
do
 
15688
  IFS=$as_save_IFS
 
15689
  test -z "$as_dir" && as_dir=.
 
15690
    for ac_exec_ext in '' $ac_executable_extensions; do
 
15691
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
15692
    ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
 
15693
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15694
    break 2
 
15695
  fi
 
15696
done
 
15697
  done
 
15698
IFS=$as_save_IFS
 
15699
 
 
15700
  ;;
 
15701
esac
 
15702
fi
 
15703
GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
 
15704
if test -n "$GTKDOC_REBASE"; then
 
15705
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
 
15706
$as_echo "$GTKDOC_REBASE" >&6; }
 
15707
else
 
15708
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15709
$as_echo "no" >&6; }
 
15710
fi
 
15711
 
 
15712
 
 
15713
  test -n "$GTKDOC_REBASE" && break
 
15714
done
 
15715
test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
 
15716
 
 
15717
  # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
 
15718
set dummy gtkdoc-mkpdf; ac_word=$2
 
15719
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
15720
$as_echo_n "checking for $ac_word... " >&6; }
 
15721
if test "${ac_cv_path_GTKDOC_MKPDF+set}" = set; then :
 
15722
  $as_echo_n "(cached) " >&6
 
15723
else
 
15724
  case $GTKDOC_MKPDF in
 
15725
  [\\/]* | ?:[\\/]*)
 
15726
  ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
 
15727
  ;;
 
15728
  *)
 
15729
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15730
for as_dir in $PATH
 
15731
do
 
15732
  IFS=$as_save_IFS
 
15733
  test -z "$as_dir" && as_dir=.
 
15734
    for ac_exec_ext in '' $ac_executable_extensions; do
 
15735
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
15736
    ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
 
15737
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15738
    break 2
 
15739
  fi
 
15740
done
 
15741
  done
 
15742
IFS=$as_save_IFS
 
15743
 
 
15744
  ;;
 
15745
esac
 
15746
fi
 
15747
GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
 
15748
if test -n "$GTKDOC_MKPDF"; then
 
15749
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
 
15750
$as_echo "$GTKDOC_MKPDF" >&6; }
 
15751
else
 
15752
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15753
$as_echo "no" >&6; }
 
15754
fi
 
15755
 
 
15756
 
 
15757
 
 
15758
 
 
15759
# Check whether --with-html-dir was given.
 
15760
if test "${with_html_dir+set}" = set; then :
 
15761
  withval=$with_html_dir;
 
15762
else
 
15763
  with_html_dir='${datadir}/gtk-doc/html'
 
15764
fi
 
15765
 
 
15766
  HTML_DIR="$with_html_dir"
 
15767
 
 
15768
 
 
15769
    # Check whether --enable-gtk-doc was given.
 
15770
if test "${enable_gtk_doc+set}" = set; then :
 
15771
  enableval=$enable_gtk_doc;
 
15772
else
 
15773
  enable_gtk_doc=no
 
15774
fi
 
15775
 
 
15776
 
 
15777
  if test x$enable_gtk_doc = xyes; then
 
15778
    if test -n "$PKG_CONFIG" && \
 
15779
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.14\""; } >&5
 
15780
  ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.14") 2>&5
 
15781
  ac_status=$?
 
15782
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15783
  test $ac_status = 0; }; then
 
15784
  :
 
15785
else
 
15786
  as_fn_error $? "You need to have gtk-doc >= 1.14 installed to build $PACKAGE_NAME" "$LINENO" 5
 
15787
fi
 
15788
  fi
 
15789
 
 
15790
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
 
15791
$as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
 
15792
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
 
15793
$as_echo "$enable_gtk_doc" >&6; }
 
15794
 
 
15795
    # Check whether --enable-gtk-doc-html was given.
 
15796
if test "${enable_gtk_doc_html+set}" = set; then :
 
15797
  enableval=$enable_gtk_doc_html;
 
15798
else
 
15799
  enable_gtk_doc_html=yes
 
15800
fi
 
15801
 
 
15802
    # Check whether --enable-gtk-doc-pdf was given.
 
15803
if test "${enable_gtk_doc_pdf+set}" = set; then :
 
15804
  enableval=$enable_gtk_doc_pdf;
 
15805
else
 
15806
  enable_gtk_doc_pdf=no
 
15807
fi
 
15808
 
 
15809
 
 
15810
  if test -z "$GTKDOC_MKPDF"; then
 
15811
    enable_gtk_doc_pdf=no
 
15812
  fi
 
15813
 
 
15814
 
 
15815
   if test x$enable_gtk_doc = xyes; then
 
15816
  ENABLE_GTK_DOC_TRUE=
 
15817
  ENABLE_GTK_DOC_FALSE='#'
 
15818
else
 
15819
  ENABLE_GTK_DOC_TRUE='#'
 
15820
  ENABLE_GTK_DOC_FALSE=
 
15821
fi
 
15822
 
 
15823
   if test x$enable_gtk_doc_html = xyes; then
 
15824
  GTK_DOC_BUILD_HTML_TRUE=
 
15825
  GTK_DOC_BUILD_HTML_FALSE='#'
 
15826
else
 
15827
  GTK_DOC_BUILD_HTML_TRUE='#'
 
15828
  GTK_DOC_BUILD_HTML_FALSE=
 
15829
fi
 
15830
 
 
15831
   if test x$enable_gtk_doc_pdf = xyes; then
 
15832
  GTK_DOC_BUILD_PDF_TRUE=
 
15833
  GTK_DOC_BUILD_PDF_FALSE='#'
 
15834
else
 
15835
  GTK_DOC_BUILD_PDF_TRUE='#'
 
15836
  GTK_DOC_BUILD_PDF_FALSE=
 
15837
fi
 
15838
 
 
15839
   if test -n "$LIBTOOL"; then
 
15840
  GTK_DOC_USE_LIBTOOL_TRUE=
 
15841
  GTK_DOC_USE_LIBTOOL_FALSE='#'
 
15842
else
 
15843
  GTK_DOC_USE_LIBTOOL_TRUE='#'
 
15844
  GTK_DOC_USE_LIBTOOL_FALSE=
 
15845
fi
 
15846
 
 
15847
   if test -n "$GTKDOC_REBASE"; then
 
15848
  GTK_DOC_USE_REBASE_TRUE=
 
15849
  GTK_DOC_USE_REBASE_FALSE='#'
 
15850
else
 
15851
  GTK_DOC_USE_REBASE_TRUE='#'
 
15852
  GTK_DOC_USE_REBASE_FALSE=
 
15853
fi
 
15854
 
 
15855
 
 
15856
 
 
15857
# User manual
 
15858
 
 
15859
gdu_cv_version_required=0.20
 
15860
 
 
15861
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gnome-doc-utils >= $gdu_cv_version_required" >&5
 
15862
$as_echo_n "checking gnome-doc-utils >= $gdu_cv_version_required... " >&6; }
 
15863
if test -n "$PKG_CONFIG" && \
 
15864
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-doc-utils >= \$gdu_cv_version_required\""; } >&5
 
15865
  ($PKG_CONFIG --exists --print-errors "gnome-doc-utils >= $gdu_cv_version_required") 2>&5
 
15866
  ac_status=$?
 
15867
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15868
  test $ac_status = 0; }; then
 
15869
  gdu_cv_have_gdu=yes
 
15870
else
 
15871
  gdu_cv_have_gdu=no
 
15872
fi
 
15873
 
 
15874
if test "$gdu_cv_have_gdu" = "yes"; then
 
15875
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
15876
$as_echo "yes" >&6; }
 
15877
        :
 
15878
else
 
15879
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15880
$as_echo "no" >&6; }
 
15881
        as_fn_error $? "gnome-doc-utils >= $gdu_cv_version_required not found" "$LINENO" 5
 
15882
fi
 
15883
 
 
15884
 
 
15885
 
 
15886
# Check whether --with-help-dir was given.
 
15887
if test "${with_help_dir+set}" = set; then :
 
15888
  withval=$with_help_dir;
 
15889
else
 
15890
  with_help_dir='${datadir}/gnome/help'
 
15891
fi
 
15892
 
 
15893
HELP_DIR="$with_help_dir"
 
15894
 
 
15895
 
 
15896
 
 
15897
# Check whether --with-omf-dir was given.
 
15898
if test "${with_omf_dir+set}" = set; then :
 
15899
  withval=$with_omf_dir;
 
15900
else
 
15901
  with_omf_dir='${datadir}/omf'
 
15902
fi
 
15903
 
 
15904
OMF_DIR="$with_omf_dir"
 
15905
 
 
15906
 
 
15907
 
 
15908
# Check whether --with-help-formats was given.
 
15909
if test "${with_help_formats+set}" = set; then :
 
15910
  withval=$with_help_formats;
 
15911
else
 
15912
  with_help_formats=''
 
15913
fi
 
15914
 
 
15915
DOC_USER_FORMATS="$with_help_formats"
 
15916
 
 
15917
 
 
15918
# Check whether --enable-scrollkeeper was given.
 
15919
if test "${enable_scrollkeeper+set}" = set; then :
 
15920
  enableval=$enable_scrollkeeper;
 
15921
else
 
15922
  enable_scrollkeeper=yes
 
15923
fi
 
15924
 
 
15925
 if test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"; then
 
15926
  ENABLE_SK_TRUE=
 
15927
  ENABLE_SK_FALSE='#'
 
15928
else
 
15929
  ENABLE_SK_TRUE='#'
 
15930
  ENABLE_SK_FALSE=
 
15931
fi
 
15932
 
 
15933
 
 
15934
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
 
15935
 
 
15936
 
 
15937
 if test "$gdu_cv_have_gdu" = "yes"; then
 
15938
  HAVE_GNOME_DOC_UTILS_TRUE=
 
15939
  HAVE_GNOME_DOC_UTILS_FALSE='#'
 
15940
else
 
15941
  HAVE_GNOME_DOC_UTILS_TRUE='#'
 
15942
  HAVE_GNOME_DOC_UTILS_FALSE=
 
15943
fi
 
15944
 
 
15945
 
 
15946
 
 
15947
 
 
15948
 
 
15949
 
 
15950
  # Check whether --enable-schemas-compile was given.
 
15951
if test "${enable_schemas_compile+set}" = set; then :
 
15952
  enableval=$enable_schemas_compile; case ${enableval} in
 
15953
                  yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE=""  ;;
 
15954
                  no)  GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
 
15955
                  *) as_fn_error $? "bad value ${enableval} for --enable-schemas-compile" "$LINENO" 5  ;;
 
15956
                 esac
 
15957
fi
 
15958
 
 
15959
 
 
15960
 
 
15961
 
 
15962
 
 
15963
 
 
15964
 
 
15965
 
 
15966
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
15967
        if test -n "$ac_tool_prefix"; then
 
15968
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
15969
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
15970
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
15971
$as_echo_n "checking for $ac_word... " >&6; }
 
15972
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
 
15973
  $as_echo_n "(cached) " >&6
 
15974
else
 
15975
  case $PKG_CONFIG in
 
15976
  [\\/]* | ?:[\\/]*)
 
15977
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
15978
  ;;
 
15979
  *)
 
15980
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15981
for as_dir in $PATH
 
15982
do
 
15983
  IFS=$as_save_IFS
 
15984
  test -z "$as_dir" && as_dir=.
 
15985
    for ac_exec_ext in '' $ac_executable_extensions; do
 
15986
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
15987
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
15988
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15989
    break 2
 
15990
  fi
 
15991
done
 
15992
  done
 
15993
IFS=$as_save_IFS
 
15994
 
 
15995
  ;;
 
15996
esac
 
15997
fi
 
15998
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
15999
if test -n "$PKG_CONFIG"; then
 
16000
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 
16001
$as_echo "$PKG_CONFIG" >&6; }
 
16002
else
 
16003
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16004
$as_echo "no" >&6; }
 
16005
fi
 
16006
 
 
16007
 
 
16008
fi
 
16009
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
16010
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
16011
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
16012
set dummy pkg-config; ac_word=$2
 
16013
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
16014
$as_echo_n "checking for $ac_word... " >&6; }
 
16015
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
 
16016
  $as_echo_n "(cached) " >&6
 
16017
else
 
16018
  case $ac_pt_PKG_CONFIG in
 
16019
  [\\/]* | ?:[\\/]*)
 
16020
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
16021
  ;;
 
16022
  *)
 
16023
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16024
for as_dir in $PATH
 
16025
do
 
16026
  IFS=$as_save_IFS
 
16027
  test -z "$as_dir" && as_dir=.
 
16028
    for ac_exec_ext in '' $ac_executable_extensions; do
 
16029
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
16030
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
16031
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16032
    break 2
 
16033
  fi
 
16034
done
 
16035
  done
 
16036
IFS=$as_save_IFS
 
16037
 
 
16038
  ;;
 
16039
esac
 
16040
fi
 
16041
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
16042
if test -n "$ac_pt_PKG_CONFIG"; then
 
16043
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
 
16044
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
 
16045
else
 
16046
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16047
$as_echo "no" >&6; }
 
16048
fi
 
16049
 
 
16050
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
16051
    PKG_CONFIG=""
 
16052
  else
 
16053
    case $cross_compiling:$ac_tool_warned in
 
16054
yes:)
 
16055
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
16056
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
16057
ac_tool_warned=yes ;;
 
16058
esac
 
16059
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
16060
  fi
 
16061
else
 
16062
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
16063
fi
 
16064
 
 
16065
fi
 
16066
if test -n "$PKG_CONFIG"; then
 
16067
        _pkg_min_version=0.16
 
16068
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
 
16069
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
 
16070
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
16071
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16072
$as_echo "yes" >&6; }
 
16073
        else
 
16074
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16075
$as_echo "no" >&6; }
 
16076
                PKG_CONFIG=""
 
16077
        fi
 
16078
fi
 
16079
  gsettingsschemadir=${datadir}/glib-2.0/schemas
 
16080
 
 
16081
  if test x$cross_compiling != xyes; then
 
16082
    GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
 
16083
  else
 
16084
    # Extract the first word of "glib-compile-schemas", so it can be a program name with args.
 
16085
set dummy glib-compile-schemas; ac_word=$2
 
16086
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
16087
$as_echo_n "checking for $ac_word... " >&6; }
 
16088
if test "${ac_cv_path_GLIB_COMPILE_SCHEMAS+set}" = set; then :
 
16089
  $as_echo_n "(cached) " >&6
 
16090
else
 
16091
  case $GLIB_COMPILE_SCHEMAS in
 
16092
  [\\/]* | ?:[\\/]*)
 
16093
  ac_cv_path_GLIB_COMPILE_SCHEMAS="$GLIB_COMPILE_SCHEMAS" # Let the user override the test with a path.
 
16094
  ;;
 
16095
  *)
 
16096
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16097
for as_dir in $PATH
 
16098
do
 
16099
  IFS=$as_save_IFS
 
16100
  test -z "$as_dir" && as_dir=.
 
16101
    for ac_exec_ext in '' $ac_executable_extensions; do
 
16102
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
16103
    ac_cv_path_GLIB_COMPILE_SCHEMAS="$as_dir/$ac_word$ac_exec_ext"
 
16104
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16105
    break 2
 
16106
  fi
 
16107
done
 
16108
  done
 
16109
IFS=$as_save_IFS
 
16110
 
 
16111
  ;;
 
16112
esac
 
16113
fi
 
16114
GLIB_COMPILE_SCHEMAS=$ac_cv_path_GLIB_COMPILE_SCHEMAS
 
16115
if test -n "$GLIB_COMPILE_SCHEMAS"; then
 
16116
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_SCHEMAS" >&5
 
16117
$as_echo "$GLIB_COMPILE_SCHEMAS" >&6; }
 
16118
else
 
16119
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16120
$as_echo "no" >&6; }
 
16121
fi
 
16122
 
 
16123
 
 
16124
  fi
 
16125
 
 
16126
  if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
 
16127
    as_fn_error $? "glib-compile-schemas not found." "$LINENO" 5
 
16128
  else
 
16129
    :
 
16130
  fi
 
16131
 
 
16132
  GSETTINGS_RULES='
 
16133
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
 
16134
 
 
16135
mostlyclean-am: clean-gsettings-schemas
 
16136
 
 
16137
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
 
16138
 
 
16139
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
 
16140
        $(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch $@
 
16141
 
 
16142
all-am: $(gsettings_SCHEMAS:.xml=.valid)
 
16143
uninstall-am: uninstall-gsettings-schemas
 
16144
install-data-am: install-gsettings-schemas
 
16145
 
 
16146
.SECONDARY: $(gsettings_SCHEMAS)
 
16147
 
 
16148
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
 
16149
        @$(NORMAL_INSTALL)
 
16150
        if test -n "$^"; then \
 
16151
                test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
 
16152
                $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
 
16153
                test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
 
16154
        fi
 
16155
 
 
16156
uninstall-gsettings-schemas:
 
16157
        @$(NORMAL_UNINSTALL)
 
16158
        @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
 
16159
        files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
 
16160
        test -n "$$files" || exit 0; \
 
16161
        echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
 
16162
        cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
 
16163
        test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
 
16164
 
 
16165
clean-gsettings-schemas:
 
16166
        rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
 
16167
 
 
16168
ifdef gsettings_ENUM_NAMESPACE
 
16169
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
 
16170
        $(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead "  <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod "    <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail "  </@type@>" --ftail "</schemalist>" $^ > $@.tmp && mv $@.tmp $@
 
16171
endif
 
16172
'
 
16173
 
 
16174
 
 
16175
 
 
16176
 
 
16177
 
 
16178
 
 
16179
#*******************************************************************************
 
16180
 
 
16181
ac_config_files="$ac_config_files Makefile docs/Makefile docs/reference/Makefile docs/reference/version.xml data/Makefile data/cheese.pc data/cheese-gtk.pc data/cheese.desktop.in data/icons/Makefile data/icons/16x16/Makefile data/icons/22x22/Makefile data/icons/24x24/Makefile data/icons/32x32/Makefile data/icons/48x48/Makefile data/icons/256x256/Makefile data/icons/scalable/Makefile data/icons/16x16/actions/Makefile data/icons/22x22/actions/Makefile data/icons/24x24/actions/Makefile data/icons/32x32/actions/Makefile data/icons/48x48/actions/Makefile data/icons/scalable/actions/Makefile data/pixmaps/Makefile help/Makefile libcheese/Makefile src/Makefile tests/Makefile po/Makefile.in"
 
16182
 
 
16183
cat >confcache <<\_ACEOF
 
16184
# This file is a shell script that caches the results of configure
 
16185
# tests run on this system so they can be shared between configure
 
16186
# scripts and configure runs, see configure's option --config-cache.
 
16187
# It is not useful on other systems.  If it contains results you don't
 
16188
# want to keep, you may remove or edit it.
 
16189
#
 
16190
# config.status only pays attention to the cache file if you give it
 
16191
# the --recheck option to rerun configure.
 
16192
#
 
16193
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
16194
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
16195
# following values.
 
16196
 
 
16197
_ACEOF
 
16198
 
 
16199
# The following way of writing the cache mishandles newlines in values,
 
16200
# but we know of no workaround that is simple, portable, and efficient.
 
16201
# So, we kill variables containing newlines.
 
16202
# Ultrix sh set writes to stderr and can't be redirected directly,
 
16203
# and sets the high bit in the cache file unless we assign to the vars.
 
16204
(
 
16205
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
16206
    eval ac_val=\$$ac_var
 
16207
    case $ac_val in #(
 
16208
    *${as_nl}*)
 
16209
      case $ac_var in #(
 
16210
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
16211
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
16212
      esac
 
16213
      case $ac_var in #(
 
16214
      _ | IFS | as_nl) ;; #(
 
16215
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
16216
      *) { eval $ac_var=; unset $ac_var;} ;;
 
16217
      esac ;;
 
16218
    esac
 
16219
  done
 
16220
 
 
16221
  (set) 2>&1 |
 
16222
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
16223
    *${as_nl}ac_space=\ *)
 
16224
      # `set' does not quote correctly, so add quotes: double-quote
 
16225
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
16226
      sed -n \
 
16227
        "s/'/'\\\\''/g;
 
16228
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
16229
      ;; #(
 
16230
    *)
 
16231
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
16232
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
16233
      ;;
 
16234
    esac |
 
16235
    sort
 
16236
) |
 
16237
  sed '
 
16238
     /^ac_cv_env_/b end
 
16239
     t clear
 
16240
     :clear
 
16241
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
16242
     t end
 
16243
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
16244
     :end' >>confcache
 
16245
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
16246
  if test -w "$cache_file"; then
 
16247
    test "x$cache_file" != "x/dev/null" &&
 
16248
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
16249
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
16250
    cat confcache >$cache_file
 
16251
  else
 
16252
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
16253
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
16254
  fi
 
16255
fi
 
16256
rm -f confcache
 
16257
 
 
16258
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
16259
# Let make expand exec_prefix.
 
16260
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
16261
 
 
16262
DEFS=-DHAVE_CONFIG_H
 
16263
 
 
16264
ac_libobjs=
 
16265
ac_ltlibobjs=
 
16266
U=
 
16267
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
16268
  # 1. Remove the extension, and $U if already installed.
 
16269
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
16270
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
16271
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
16272
  #    will be set to the directory where LIBOBJS objects are built.
 
16273
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
16274
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
16275
done
 
16276
LIBOBJS=$ac_libobjs
 
16277
 
 
16278
LTLIBOBJS=$ac_ltlibobjs
 
16279
 
 
16280
 
 
16281
 if test -n "$EXEEXT"; then
 
16282
  am__EXEEXT_TRUE=
 
16283
  am__EXEEXT_FALSE='#'
 
16284
else
 
16285
  am__EXEEXT_TRUE='#'
 
16286
  am__EXEEXT_FALSE=
 
16287
fi
 
16288
 
 
16289
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
16290
  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
 
16291
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
16292
fi
 
16293
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
16294
  as_fn_error $? "conditional \"AMDEP\" was never defined.
 
16295
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
16296
fi
 
16297
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
16298
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
16299
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
16300
fi
 
16301
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
16302
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
16303
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
16304
fi
 
16305
 
 
16306
  ac_config_commands="$ac_config_commands po/stamp-it"
 
16307
 
 
16308
 
 
16309
if test -z "${HAVE_XTEST_TRUE}" && test -z "${HAVE_XTEST_FALSE}"; then
 
16310
  as_fn_error $? "conditional \"HAVE_XTEST\" was never defined.
 
16311
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
16312
fi
 
16313
if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
 
16314
  as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
 
16315
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
16316
fi
 
16317
if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
 
16318
  as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
 
16319
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
16320
fi
 
16321
if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
 
16322
  as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
 
16323
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
16324
fi
 
16325
if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
 
16326
  as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
 
16327
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
16328
fi
 
16329
if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
 
16330
  as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
 
16331
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
16332
fi
 
16333
if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
 
16334
  as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
 
16335
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
16336
fi
 
16337
if test -z "${ENABLE_SK_TRUE}" && test -z "${ENABLE_SK_FALSE}"; then
 
16338
  as_fn_error $? "conditional \"ENABLE_SK\" was never defined.
 
16339
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
16340
fi
 
16341
if test -z "${HAVE_GNOME_DOC_UTILS_TRUE}" && test -z "${HAVE_GNOME_DOC_UTILS_FALSE}"; then
 
16342
  as_fn_error $? "conditional \"HAVE_GNOME_DOC_UTILS\" was never defined.
 
16343
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
16344
fi
 
16345
 
 
16346
: ${CONFIG_STATUS=./config.status}
 
16347
ac_write_fail=0
 
16348
ac_clean_files_save=$ac_clean_files
 
16349
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
16350
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
16351
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
16352
as_write_fail=0
 
16353
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
16354
#! $SHELL
 
16355
# Generated by $as_me.
 
16356
# Run this file to recreate the current configuration.
 
16357
# Compiler output produced by configure, useful for debugging
 
16358
# configure, is in config.log if it exists.
 
16359
 
 
16360
debug=false
 
16361
ac_cs_recheck=false
 
16362
ac_cs_silent=false
 
16363
 
 
16364
SHELL=\${CONFIG_SHELL-$SHELL}
 
16365
export SHELL
 
16366
_ASEOF
 
16367
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
16368
## -------------------- ##
 
16369
## M4sh Initialization. ##
 
16370
## -------------------- ##
 
16371
 
 
16372
# Be more Bourne compatible
 
16373
DUALCASE=1; export DUALCASE # for MKS sh
 
16374
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
16375
  emulate sh
 
16376
  NULLCMD=:
 
16377
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
16378
  # is contrary to our usage.  Disable this feature.
 
16379
  alias -g '${1+"$@"}'='"$@"'
 
16380
  setopt NO_GLOB_SUBST
 
16381
else
 
16382
  case `(set -o) 2>/dev/null` in #(
 
16383
  *posix*) :
 
16384
    set -o posix ;; #(
 
16385
  *) :
 
16386
     ;;
 
16387
esac
 
16388
fi
 
16389
 
 
16390
 
 
16391
as_nl='
 
16392
'
 
16393
export as_nl
 
16394
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
16395
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
16396
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
16397
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
16398
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
16399
# but without wasting forks for bash or zsh.
 
16400
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
16401
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
16402
  as_echo='print -r --'
 
16403
  as_echo_n='print -rn --'
 
16404
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
16405
  as_echo='printf %s\n'
 
16406
  as_echo_n='printf %s'
 
16407
else
 
16408
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
16409
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
16410
    as_echo_n='/usr/ucb/echo -n'
 
16411
  else
 
16412
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
16413
    as_echo_n_body='eval
 
16414
      arg=$1;
 
16415
      case $arg in #(
 
16416
      *"$as_nl"*)
 
16417
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
16418
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
16419
      esac;
 
16420
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
16421
    '
 
16422
    export as_echo_n_body
 
16423
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
16424
  fi
 
16425
  export as_echo_body
 
16426
  as_echo='sh -c $as_echo_body as_echo'
 
16427
fi
 
16428
 
 
16429
# The user is always right.
 
16430
if test "${PATH_SEPARATOR+set}" != set; then
 
16431
  PATH_SEPARATOR=:
 
16432
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
16433
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
16434
      PATH_SEPARATOR=';'
 
16435
  }
 
16436
fi
 
16437
 
 
16438
 
 
16439
# IFS
 
16440
# We need space, tab and new line, in precisely that order.  Quoting is
 
16441
# there to prevent editors from complaining about space-tab.
 
16442
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
16443
# splitting by setting IFS to empty value.)
 
16444
IFS=" ""        $as_nl"
 
16445
 
 
16446
# Find who we are.  Look in the path if we contain no directory separator.
 
16447
case $0 in #((
 
16448
  *[\\/]* ) as_myself=$0 ;;
 
16449
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16450
for as_dir in $PATH
 
16451
do
 
16452
  IFS=$as_save_IFS
 
16453
  test -z "$as_dir" && as_dir=.
 
16454
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
16455
  done
 
16456
IFS=$as_save_IFS
 
16457
 
 
16458
     ;;
 
16459
esac
 
16460
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
16461
# in which case we are not to be found in the path.
 
16462
if test "x$as_myself" = x; then
 
16463
  as_myself=$0
 
16464
fi
 
16465
if test ! -f "$as_myself"; then
 
16466
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
16467
  exit 1
 
16468
fi
 
16469
 
 
16470
# Unset variables that we do not need and which cause bugs (e.g. in
 
16471
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
16472
# suppresses any "Segmentation fault" message there.  '((' could
 
16473
# trigger a bug in pdksh 5.2.14.
 
16474
for as_var in BASH_ENV ENV MAIL MAILPATH
 
16475
do eval test x\${$as_var+set} = xset \
 
16476
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
16477
done
 
16478
PS1='$ '
 
16479
PS2='> '
 
16480
PS4='+ '
 
16481
 
 
16482
# NLS nuisances.
 
16483
LC_ALL=C
 
16484
export LC_ALL
 
16485
LANGUAGE=C
 
16486
export LANGUAGE
 
16487
 
 
16488
# CDPATH.
 
16489
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
16490
 
 
16491
 
 
16492
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
16493
# ----------------------------------------
 
16494
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
16495
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
16496
# script with STATUS, using 1 if that was 0.
 
16497
as_fn_error ()
 
16498
{
 
16499
  as_status=$1; test $as_status -eq 0 && as_status=1
 
16500
  if test "$4"; then
 
16501
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
16502
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
16503
  fi
 
16504
  $as_echo "$as_me: error: $2" >&2
 
16505
  as_fn_exit $as_status
 
16506
} # as_fn_error
 
16507
 
 
16508
 
 
16509
# as_fn_set_status STATUS
 
16510
# -----------------------
 
16511
# Set $? to STATUS, without forking.
 
16512
as_fn_set_status ()
 
16513
{
 
16514
  return $1
 
16515
} # as_fn_set_status
 
16516
 
 
16517
# as_fn_exit STATUS
 
16518
# -----------------
 
16519
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
16520
as_fn_exit ()
 
16521
{
 
16522
  set +e
 
16523
  as_fn_set_status $1
 
16524
  exit $1
 
16525
} # as_fn_exit
 
16526
 
 
16527
# as_fn_unset VAR
 
16528
# ---------------
 
16529
# Portably unset VAR.
 
16530
as_fn_unset ()
 
16531
{
 
16532
  { eval $1=; unset $1;}
 
16533
}
 
16534
as_unset=as_fn_unset
 
16535
# as_fn_append VAR VALUE
 
16536
# ----------------------
 
16537
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
16538
# advantage of any shell optimizations that allow amortized linear growth over
 
16539
# repeated appends, instead of the typical quadratic growth present in naive
 
16540
# implementations.
 
16541
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
16542
  eval 'as_fn_append ()
 
16543
  {
 
16544
    eval $1+=\$2
 
16545
  }'
 
16546
else
 
16547
  as_fn_append ()
 
16548
  {
 
16549
    eval $1=\$$1\$2
 
16550
  }
 
16551
fi # as_fn_append
 
16552
 
 
16553
# as_fn_arith ARG...
 
16554
# ------------------
 
16555
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
16556
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
16557
# must be portable across $(()) and expr.
 
16558
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
16559
  eval 'as_fn_arith ()
 
16560
  {
 
16561
    as_val=$(( $* ))
 
16562
  }'
 
16563
else
 
16564
  as_fn_arith ()
 
16565
  {
 
16566
    as_val=`expr "$@" || test $? -eq 1`
 
16567
  }
 
16568
fi # as_fn_arith
 
16569
 
 
16570
 
 
16571
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
16572
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
16573
  as_expr=expr
 
16574
else
 
16575
  as_expr=false
 
16576
fi
 
16577
 
 
16578
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
16579
  as_basename=basename
 
16580
else
 
16581
  as_basename=false
 
16582
fi
 
16583
 
 
16584
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
16585
  as_dirname=dirname
 
16586
else
 
16587
  as_dirname=false
 
16588
fi
 
16589
 
 
16590
as_me=`$as_basename -- "$0" ||
 
16591
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
16592
         X"$0" : 'X\(//\)$' \| \
 
16593
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
16594
$as_echo X/"$0" |
 
16595
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
16596
            s//\1/
 
16597
            q
 
16598
          }
 
16599
          /^X\/\(\/\/\)$/{
 
16600
            s//\1/
 
16601
            q
 
16602
          }
 
16603
          /^X\/\(\/\).*/{
 
16604
            s//\1/
 
16605
            q
 
16606
          }
 
16607
          s/.*/./; q'`
 
16608
 
 
16609
# Avoid depending upon Character Ranges.
 
16610
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
16611
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
16612
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
16613
as_cr_digits='0123456789'
 
16614
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
16615
 
 
16616
ECHO_C= ECHO_N= ECHO_T=
 
16617
case `echo -n x` in #(((((
 
16618
-n*)
 
16619
  case `echo 'xy\c'` in
 
16620
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
16621
  xy)  ECHO_C='\c';;
 
16622
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
16623
       ECHO_T=' ';;
 
16624
  esac;;
 
16625
*)
 
16626
  ECHO_N='-n';;
 
16627
esac
 
16628
 
 
16629
rm -f conf$$ conf$$.exe conf$$.file
 
16630
if test -d conf$$.dir; then
 
16631
  rm -f conf$$.dir/conf$$.file
 
16632
else
 
16633
  rm -f conf$$.dir
 
16634
  mkdir conf$$.dir 2>/dev/null
 
16635
fi
 
16636
if (echo >conf$$.file) 2>/dev/null; then
 
16637
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
16638
    as_ln_s='ln -s'
 
16639
    # ... but there are two gotchas:
 
16640
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
16641
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
16642
    # In both cases, we have to default to `cp -p'.
 
16643
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
16644
      as_ln_s='cp -p'
 
16645
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
16646
    as_ln_s=ln
 
16647
  else
 
16648
    as_ln_s='cp -p'
 
16649
  fi
 
16650
else
 
16651
  as_ln_s='cp -p'
 
16652
fi
 
16653
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
16654
rmdir conf$$.dir 2>/dev/null
 
16655
 
 
16656
 
 
16657
# as_fn_mkdir_p
 
16658
# -------------
 
16659
# Create "$as_dir" as a directory, including parents if necessary.
 
16660
as_fn_mkdir_p ()
 
16661
{
 
16662
 
 
16663
  case $as_dir in #(
 
16664
  -*) as_dir=./$as_dir;;
 
16665
  esac
 
16666
  test -d "$as_dir" || eval $as_mkdir_p || {
 
16667
    as_dirs=
 
16668
    while :; do
 
16669
      case $as_dir in #(
 
16670
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
16671
      *) as_qdir=$as_dir;;
 
16672
      esac
 
16673
      as_dirs="'$as_qdir' $as_dirs"
 
16674
      as_dir=`$as_dirname -- "$as_dir" ||
 
16675
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
16676
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
16677
         X"$as_dir" : 'X\(//\)$' \| \
 
16678
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
16679
$as_echo X"$as_dir" |
 
16680
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
16681
            s//\1/
 
16682
            q
 
16683
          }
 
16684
          /^X\(\/\/\)[^/].*/{
 
16685
            s//\1/
 
16686
            q
 
16687
          }
 
16688
          /^X\(\/\/\)$/{
 
16689
            s//\1/
 
16690
            q
 
16691
          }
 
16692
          /^X\(\/\).*/{
 
16693
            s//\1/
 
16694
            q
 
16695
          }
 
16696
          s/.*/./; q'`
 
16697
      test -d "$as_dir" && break
 
16698
    done
 
16699
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
16700
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
16701
 
 
16702
 
 
16703
} # as_fn_mkdir_p
 
16704
if mkdir -p . 2>/dev/null; then
 
16705
  as_mkdir_p='mkdir -p "$as_dir"'
 
16706
else
 
16707
  test -d ./-p && rmdir ./-p
 
16708
  as_mkdir_p=false
 
16709
fi
 
16710
 
 
16711
if test -x / >/dev/null 2>&1; then
 
16712
  as_test_x='test -x'
 
16713
else
 
16714
  if ls -dL / >/dev/null 2>&1; then
 
16715
    as_ls_L_option=L
 
16716
  else
 
16717
    as_ls_L_option=
 
16718
  fi
 
16719
  as_test_x='
 
16720
    eval sh -c '\''
 
16721
      if test -d "$1"; then
 
16722
        test -d "$1/.";
 
16723
      else
 
16724
        case $1 in #(
 
16725
        -*)set "./$1";;
 
16726
        esac;
 
16727
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
16728
        ???[sx]*):;;*)false;;esac;fi
 
16729
    '\'' sh
 
16730
  '
 
16731
fi
 
16732
as_executable_p=$as_test_x
 
16733
 
 
16734
# Sed expression to map a string onto a valid CPP name.
 
16735
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
16736
 
 
16737
# Sed expression to map a string onto a valid variable name.
 
16738
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
16739
 
 
16740
 
 
16741
exec 6>&1
 
16742
## ----------------------------------- ##
 
16743
## Main body of $CONFIG_STATUS script. ##
 
16744
## ----------------------------------- ##
 
16745
_ASEOF
 
16746
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
16747
 
 
16748
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16749
# Save the log message, to keep $0 and so on meaningful, and to
 
16750
# report actual input values of CONFIG_FILES etc. instead of their
 
16751
# values after options handling.
 
16752
ac_log="
 
16753
This file was extended by cheese $as_me 3.0.1, which was
 
16754
generated by GNU Autoconf 2.67.  Invocation command line was
 
16755
 
 
16756
  CONFIG_FILES    = $CONFIG_FILES
 
16757
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
16758
  CONFIG_LINKS    = $CONFIG_LINKS
 
16759
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
16760
  $ $0 $@
 
16761
 
 
16762
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
16763
"
 
16764
 
 
16765
_ACEOF
 
16766
 
 
16767
case $ac_config_files in *"
 
16768
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
16769
esac
 
16770
 
 
16771
case $ac_config_headers in *"
 
16772
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
16773
esac
 
16774
 
 
16775
 
 
16776
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16777
# Files that config.status was made for.
 
16778
config_files="$ac_config_files"
 
16779
config_headers="$ac_config_headers"
 
16780
config_commands="$ac_config_commands"
 
16781
 
 
16782
_ACEOF
 
16783
 
 
16784
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16785
ac_cs_usage="\
 
16786
\`$as_me' instantiates files and other configuration actions
 
16787
from templates according to the current configuration.  Unless the files
 
16788
and actions are specified as TAGs, all are instantiated by default.
 
16789
 
 
16790
Usage: $0 [OPTION]... [TAG]...
 
16791
 
 
16792
  -h, --help       print this help, then exit
 
16793
  -V, --version    print version number and configuration settings, then exit
 
16794
      --config     print configuration, then exit
 
16795
  -q, --quiet, --silent
 
16796
                   do not print progress messages
 
16797
  -d, --debug      don't remove temporary files
 
16798
      --recheck    update $as_me by reconfiguring in the same conditions
 
16799
      --file=FILE[:TEMPLATE]
 
16800
                   instantiate the configuration file FILE
 
16801
      --header=FILE[:TEMPLATE]
 
16802
                   instantiate the configuration header FILE
 
16803
 
 
16804
Configuration files:
 
16805
$config_files
 
16806
 
 
16807
Configuration headers:
 
16808
$config_headers
 
16809
 
 
16810
Configuration commands:
 
16811
$config_commands
 
16812
 
 
16813
Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=cheese>.
 
16814
cheese home page: <http://projects.gnome.org/cheese/>."
 
16815
 
 
16816
_ACEOF
 
16817
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16818
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
16819
ac_cs_version="\\
 
16820
cheese config.status 3.0.1
 
16821
configured by $0, generated by GNU Autoconf 2.67,
 
16822
  with options \\"\$ac_cs_config\\"
 
16823
 
 
16824
Copyright (C) 2010 Free Software Foundation, Inc.
 
16825
This config.status script is free software; the Free Software Foundation
 
16826
gives unlimited permission to copy, distribute and modify it."
 
16827
 
 
16828
ac_pwd='$ac_pwd'
 
16829
srcdir='$srcdir'
 
16830
INSTALL='$INSTALL'
 
16831
MKDIR_P='$MKDIR_P'
 
16832
AWK='$AWK'
 
16833
test -n "\$AWK" || AWK=awk
 
16834
_ACEOF
 
16835
 
 
16836
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16837
# The default lists apply if the user does not specify any file.
 
16838
ac_need_defaults=:
 
16839
while test $# != 0
 
16840
do
 
16841
  case $1 in
 
16842
  --*=?*)
 
16843
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
16844
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
16845
    ac_shift=:
 
16846
    ;;
 
16847
  --*=)
 
16848
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
16849
    ac_optarg=
 
16850
    ac_shift=:
 
16851
    ;;
 
16852
  *)
 
16853
    ac_option=$1
 
16854
    ac_optarg=$2
 
16855
    ac_shift=shift
 
16856
    ;;
 
16857
  esac
 
16858
 
 
16859
  case $ac_option in
 
16860
  # Handling of the options.
 
16861
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
16862
    ac_cs_recheck=: ;;
 
16863
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
16864
    $as_echo "$ac_cs_version"; exit ;;
 
16865
  --config | --confi | --conf | --con | --co | --c )
 
16866
    $as_echo "$ac_cs_config"; exit ;;
 
16867
  --debug | --debu | --deb | --de | --d | -d )
 
16868
    debug=: ;;
 
16869
  --file | --fil | --fi | --f )
 
16870
    $ac_shift
 
16871
    case $ac_optarg in
 
16872
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
16873
    '') as_fn_error $? "missing file argument" ;;
 
16874
    esac
 
16875
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
16876
    ac_need_defaults=false;;
 
16877
  --header | --heade | --head | --hea )
 
16878
    $ac_shift
 
16879
    case $ac_optarg in
 
16880
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
16881
    esac
 
16882
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
16883
    ac_need_defaults=false;;
 
16884
  --he | --h)
 
16885
    # Conflict between --help and --header
 
16886
    as_fn_error $? "ambiguous option: \`$1'
 
16887
Try \`$0 --help' for more information.";;
 
16888
  --help | --hel | -h )
 
16889
    $as_echo "$ac_cs_usage"; exit ;;
 
16890
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
16891
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
16892
    ac_cs_silent=: ;;
 
16893
 
 
16894
  # This is an error.
 
16895
  -*) as_fn_error $? "unrecognized option: \`$1'
 
16896
Try \`$0 --help' for more information." ;;
 
16897
 
 
16898
  *) as_fn_append ac_config_targets " $1"
 
16899
     ac_need_defaults=false ;;
 
16900
 
 
16901
  esac
 
16902
  shift
 
16903
done
 
16904
 
 
16905
ac_configure_extra_args=
 
16906
 
 
16907
if $ac_cs_silent; then
 
16908
  exec 6>/dev/null
 
16909
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
16910
fi
 
16911
 
 
16912
_ACEOF
 
16913
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16914
if \$ac_cs_recheck; then
 
16915
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
16916
  shift
 
16917
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
16918
  CONFIG_SHELL='$SHELL'
 
16919
  export CONFIG_SHELL
 
16920
  exec "\$@"
 
16921
fi
 
16922
 
 
16923
_ACEOF
 
16924
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16925
exec 5>>config.log
 
16926
{
 
16927
  echo
 
16928
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
16929
## Running $as_me. ##
 
16930
_ASBOX
 
16931
  $as_echo "$ac_log"
 
16932
} >&5
 
16933
 
 
16934
_ACEOF
 
16935
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16936
#
 
16937
# INIT-COMMANDS
 
16938
#
 
16939
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
16940
 
 
16941
 
 
16942
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
16943
# if CDPATH is set.
 
16944
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
16945
 
 
16946
sed_quote_subst='$sed_quote_subst'
 
16947
double_quote_subst='$double_quote_subst'
 
16948
delay_variable_subst='$delay_variable_subst'
 
16949
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
 
16950
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
 
16951
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
 
16952
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
 
16953
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
 
16954
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
 
16955
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
 
16956
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
 
16957
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
 
16958
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
 
16959
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
 
16960
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
 
16961
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
 
16962
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
 
16963
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
 
16964
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
 
16965
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
 
16966
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
 
16967
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
 
16968
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
 
16969
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
 
16970
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
 
16971
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
 
16972
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
 
16973
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
 
16974
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
 
16975
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
 
16976
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
 
16977
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
 
16978
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
 
16979
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
 
16980
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
 
16981
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
 
16982
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
 
16983
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
 
16984
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
 
16985
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
 
16986
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
 
16987
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
 
16988
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
 
16989
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
 
16990
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
 
16991
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
 
16992
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
 
16993
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
16994
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
16995
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
 
16996
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
 
16997
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
 
16998
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
 
16999
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
 
17000
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
 
17001
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
 
17002
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
 
17003
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
 
17004
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
17005
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
 
17006
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
 
17007
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
 
17008
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
 
17009
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
 
17010
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
 
17011
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
 
17012
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
 
17013
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
 
17014
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
 
17015
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
 
17016
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
 
17017
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
 
17018
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
 
17019
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
 
17020
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
 
17021
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
 
17022
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
 
17023
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
17024
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
 
17025
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
 
17026
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
 
17027
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
 
17028
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
 
17029
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
 
17030
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
17031
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
 
17032
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
17033
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
 
17034
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
17035
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
 
17036
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
17037
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
17038
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
 
17039
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
 
17040
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
 
17041
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
 
17042
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
 
17043
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
 
17044
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
17045
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
 
17046
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
 
17047
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
 
17048
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
 
17049
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
 
17050
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
 
17051
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
 
17052
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
 
17053
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
 
17054
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
 
17055
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
 
17056
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
17057
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
 
17058
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
 
17059
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
 
17060
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
17061
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
 
17062
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
 
17063
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
 
17064
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
 
17065
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
 
17066
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
17067
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
17068
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
 
17069
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
 
17070
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
 
17071
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
 
17072
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
 
17073
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
 
17074
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
 
17075
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
 
17076
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
 
17077
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
 
17078
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
 
17079
 
 
17080
LTCC='$LTCC'
 
17081
LTCFLAGS='$LTCFLAGS'
 
17082
compiler='$compiler_DEFAULT'
 
17083
 
 
17084
# A function that is used when there is no print builtin or printf.
 
17085
func_fallback_echo ()
 
17086
{
 
17087
  eval 'cat <<_LTECHO_EOF
 
17088
\$1
 
17089
_LTECHO_EOF'
 
17090
}
 
17091
 
 
17092
# Quote evaled strings.
 
17093
for var in SHELL \
 
17094
ECHO \
 
17095
SED \
 
17096
GREP \
 
17097
EGREP \
 
17098
FGREP \
 
17099
LD \
 
17100
NM \
 
17101
LN_S \
 
17102
lt_SP2NL \
 
17103
lt_NL2SP \
 
17104
reload_flag \
 
17105
OBJDUMP \
 
17106
deplibs_check_method \
 
17107
file_magic_cmd \
 
17108
file_magic_glob \
 
17109
want_nocaseglob \
 
17110
DLLTOOL \
 
17111
sharedlib_from_linklib_cmd \
 
17112
AR \
 
17113
AR_FLAGS \
 
17114
archiver_list_spec \
 
17115
STRIP \
 
17116
RANLIB \
 
17117
CC \
 
17118
CFLAGS \
 
17119
compiler \
 
17120
lt_cv_sys_global_symbol_pipe \
 
17121
lt_cv_sys_global_symbol_to_cdecl \
 
17122
lt_cv_sys_global_symbol_to_c_name_address \
 
17123
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
17124
nm_file_list_spec \
 
17125
lt_prog_compiler_no_builtin_flag \
 
17126
lt_prog_compiler_pic \
 
17127
lt_prog_compiler_wl \
 
17128
lt_prog_compiler_static \
 
17129
lt_cv_prog_compiler_c_o \
 
17130
need_locks \
 
17131
MANIFEST_TOOL \
 
17132
DSYMUTIL \
 
17133
NMEDIT \
 
17134
LIPO \
 
17135
OTOOL \
 
17136
OTOOL64 \
 
17137
shrext_cmds \
 
17138
export_dynamic_flag_spec \
 
17139
whole_archive_flag_spec \
 
17140
compiler_needs_object \
 
17141
with_gnu_ld \
 
17142
allow_undefined_flag \
 
17143
no_undefined_flag \
 
17144
hardcode_libdir_flag_spec \
 
17145
hardcode_libdir_flag_spec_ld \
 
17146
hardcode_libdir_separator \
 
17147
exclude_expsyms \
 
17148
include_expsyms \
 
17149
file_list_spec \
 
17150
variables_saved_for_relink \
 
17151
libname_spec \
 
17152
library_names_spec \
 
17153
soname_spec \
 
17154
install_override_mode \
 
17155
finish_eval \
 
17156
old_striplib \
 
17157
striplib; do
 
17158
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
17159
    *[\\\\\\\`\\"\\\$]*)
 
17160
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
17161
      ;;
 
17162
    *)
 
17163
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
17164
      ;;
 
17165
    esac
 
17166
done
 
17167
 
 
17168
# Double-quote double-evaled strings.
 
17169
for var in reload_cmds \
 
17170
old_postinstall_cmds \
 
17171
old_postuninstall_cmds \
 
17172
old_archive_cmds \
 
17173
extract_expsyms_cmds \
 
17174
old_archive_from_new_cmds \
 
17175
old_archive_from_expsyms_cmds \
 
17176
archive_cmds \
 
17177
archive_expsym_cmds \
 
17178
module_cmds \
 
17179
module_expsym_cmds \
 
17180
export_symbols_cmds \
 
17181
prelink_cmds \
 
17182
postlink_cmds \
 
17183
postinstall_cmds \
 
17184
postuninstall_cmds \
 
17185
finish_cmds \
 
17186
sys_lib_search_path_spec \
 
17187
sys_lib_dlsearch_path_spec; do
 
17188
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
17189
    *[\\\\\\\`\\"\\\$]*)
 
17190
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
17191
      ;;
 
17192
    *)
 
17193
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
17194
      ;;
 
17195
    esac
 
17196
done
 
17197
 
 
17198
ac_aux_dir='$ac_aux_dir'
 
17199
xsi_shell='$xsi_shell'
 
17200
lt_shell_append='$lt_shell_append'
 
17201
 
 
17202
# See if we are running on zsh, and set the options which allow our
 
17203
# commands through without removal of \ escapes INIT.
 
17204
if test -n "\${ZSH_VERSION+set}" ; then
 
17205
   setopt NO_GLOB_SUBST
 
17206
fi
 
17207
 
 
17208
 
 
17209
    PACKAGE='$PACKAGE'
 
17210
    VERSION='$VERSION'
 
17211
    TIMESTAMP='$TIMESTAMP'
 
17212
    RM='$RM'
 
17213
    ofile='$ofile'
 
17214
 
 
17215
 
 
17216
 
 
17217
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
 
17218
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
 
17219
    # from automake < 1.5.
 
17220
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
 
17221
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
 
17222
    LINGUAS="${LINGUAS-%UNSET%}"
 
17223
 
 
17224
 
 
17225
_ACEOF
 
17226
 
 
17227
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
17228
 
 
17229
# Handling of arguments.
 
17230
for ac_config_target in $ac_config_targets
 
17231
do
 
17232
  case $ac_config_target in
 
17233
    "cheese-config.h") CONFIG_HEADERS="$CONFIG_HEADERS cheese-config.h" ;;
 
17234
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
17235
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
17236
    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
 
17237
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
17238
    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
 
17239
    "docs/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
 
17240
    "docs/reference/version.xml") CONFIG_FILES="$CONFIG_FILES docs/reference/version.xml" ;;
 
17241
    "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
 
17242
    "data/cheese.pc") CONFIG_FILES="$CONFIG_FILES data/cheese.pc" ;;
 
17243
    "data/cheese-gtk.pc") CONFIG_FILES="$CONFIG_FILES data/cheese-gtk.pc" ;;
 
17244
    "data/cheese.desktop.in") CONFIG_FILES="$CONFIG_FILES data/cheese.desktop.in" ;;
 
17245
    "data/icons/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/Makefile" ;;
 
17246
    "data/icons/16x16/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/16x16/Makefile" ;;
 
17247
    "data/icons/22x22/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/22x22/Makefile" ;;
 
17248
    "data/icons/24x24/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/24x24/Makefile" ;;
 
17249
    "data/icons/32x32/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/32x32/Makefile" ;;
 
17250
    "data/icons/48x48/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/48x48/Makefile" ;;
 
17251
    "data/icons/256x256/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/256x256/Makefile" ;;
 
17252
    "data/icons/scalable/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/scalable/Makefile" ;;
 
17253
    "data/icons/16x16/actions/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/16x16/actions/Makefile" ;;
 
17254
    "data/icons/22x22/actions/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/22x22/actions/Makefile" ;;
 
17255
    "data/icons/24x24/actions/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/24x24/actions/Makefile" ;;
 
17256
    "data/icons/32x32/actions/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/32x32/actions/Makefile" ;;
 
17257
    "data/icons/48x48/actions/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/48x48/actions/Makefile" ;;
 
17258
    "data/icons/scalable/actions/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/scalable/actions/Makefile" ;;
 
17259
    "data/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES data/pixmaps/Makefile" ;;
 
17260
    "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
 
17261
    "libcheese/Makefile") CONFIG_FILES="$CONFIG_FILES libcheese/Makefile" ;;
 
17262
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
17263
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
 
17264
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 
17265
    "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
 
17266
 
 
17267
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
 
17268
  esac
 
17269
done
 
17270
 
 
17271
 
 
17272
# If the user did not use the arguments to specify the items to instantiate,
 
17273
# then the envvar interface is used.  Set only those that are not.
 
17274
# We use the long form for the default assignment because of an extremely
 
17275
# bizarre bug on SunOS 4.1.3.
 
17276
if $ac_need_defaults; then
 
17277
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
17278
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
17279
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
17280
fi
 
17281
 
 
17282
# Have a temporary directory for convenience.  Make it in the build tree
 
17283
# simply because there is no reason against having it here, and in addition,
 
17284
# creating and moving files from /tmp can sometimes cause problems.
 
17285
# Hook for its removal unless debugging.
 
17286
# Note that there is a small window in which the directory will not be cleaned:
 
17287
# after its creation but before its name has been assigned to `$tmp'.
 
17288
$debug ||
 
17289
{
 
17290
  tmp=
 
17291
  trap 'exit_status=$?
 
17292
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
17293
' 0
 
17294
  trap 'as_fn_exit 1' 1 2 13 15
 
17295
}
 
17296
# Create a (secure) tmp directory for tmp files.
 
17297
 
 
17298
{
 
17299
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
17300
  test -n "$tmp" && test -d "$tmp"
 
17301
}  ||
 
17302
{
 
17303
  tmp=./conf$$-$RANDOM
 
17304
  (umask 077 && mkdir "$tmp")
 
17305
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
17306
 
 
17307
# Set up the scripts for CONFIG_FILES section.
 
17308
# No need to generate them if there are no CONFIG_FILES.
 
17309
# This happens for instance with `./config.status config.h'.
 
17310
if test -n "$CONFIG_FILES"; then
 
17311
 
 
17312
 
 
17313
ac_cr=`echo X | tr X '\015'`
 
17314
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
17315
# But we know of no other shell where ac_cr would be empty at this
 
17316
# point, so we can use a bashism as a fallback.
 
17317
if test "x$ac_cr" = x; then
 
17318
  eval ac_cr=\$\'\\r\'
 
17319
fi
 
17320
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
17321
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
17322
  ac_cs_awk_cr='\\r'
 
17323
else
 
17324
  ac_cs_awk_cr=$ac_cr
 
17325
fi
 
17326
 
 
17327
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
17328
_ACEOF
 
17329
 
 
17330
 
 
17331
{
 
17332
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
17333
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
17334
  echo "_ACEOF"
 
17335
} >conf$$subs.sh ||
 
17336
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
17337
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 
17338
ac_delim='%!_!# '
 
17339
for ac_last_try in false false false false false :; do
 
17340
  . ./conf$$subs.sh ||
 
17341
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
17342
 
 
17343
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
17344
  if test $ac_delim_n = $ac_delim_num; then
 
17345
    break
 
17346
  elif $ac_last_try; then
 
17347
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
17348
  else
 
17349
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
17350
  fi
 
17351
done
 
17352
rm -f conf$$subs.sh
 
17353
 
 
17354
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
17355
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
17356
_ACEOF
 
17357
sed -n '
 
17358
h
 
17359
s/^/S["/; s/!.*/"]=/
 
17360
p
 
17361
g
 
17362
s/^[^!]*!//
 
17363
:repl
 
17364
t repl
 
17365
s/'"$ac_delim"'$//
 
17366
t delim
 
17367
:nl
 
17368
h
 
17369
s/\(.\{148\}\)..*/\1/
 
17370
t more1
 
17371
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
17372
p
 
17373
n
 
17374
b repl
 
17375
:more1
 
17376
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
17377
p
 
17378
g
 
17379
s/.\{148\}//
 
17380
t nl
 
17381
:delim
 
17382
h
 
17383
s/\(.\{148\}\)..*/\1/
 
17384
t more2
 
17385
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
17386
p
 
17387
b
 
17388
:more2
 
17389
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
17390
p
 
17391
g
 
17392
s/.\{148\}//
 
17393
t delim
 
17394
' <conf$$subs.awk | sed '
 
17395
/^[^""]/{
 
17396
  N
 
17397
  s/\n//
 
17398
}
 
17399
' >>$CONFIG_STATUS || ac_write_fail=1
 
17400
rm -f conf$$subs.awk
 
17401
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
17402
_ACAWK
 
17403
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
17404
  for (key in S) S_is_set[key] = 1
 
17405
  FS = ""
 
17406
 
 
17407
}
 
17408
{
 
17409
  line = $ 0
 
17410
  nfields = split(line, field, "@")
 
17411
  substed = 0
 
17412
  len = length(field[1])
 
17413
  for (i = 2; i < nfields; i++) {
 
17414
    key = field[i]
 
17415
    keylen = length(key)
 
17416
    if (S_is_set[key]) {
 
17417
      value = S[key]
 
17418
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
17419
      len += length(value) + length(field[++i])
 
17420
      substed = 1
 
17421
    } else
 
17422
      len += 1 + keylen
 
17423
  }
 
17424
 
 
17425
  print line
 
17426
}
 
17427
 
 
17428
_ACAWK
 
17429
_ACEOF
 
17430
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
17431
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
17432
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
17433
else
 
17434
  cat
 
17435
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
17436
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 
17437
_ACEOF
 
17438
 
 
17439
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
17440
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 
17441
# trailing colons and then remove the whole line if VPATH becomes empty
 
17442
# (actually we leave an empty line to preserve line numbers).
 
17443
if test "x$srcdir" = x.; then
 
17444
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
17445
h
 
17446
s///
 
17447
s/^/:/
 
17448
s/[      ]*$/:/
 
17449
s/:\$(srcdir):/:/g
 
17450
s/:\${srcdir}:/:/g
 
17451
s/:@srcdir@:/:/g
 
17452
s/^:*//
 
17453
s/:*$//
 
17454
x
 
17455
s/\(=[   ]*\).*/\1/
 
17456
G
 
17457
s/\n//
 
17458
s/^[^=]*=[       ]*$//
 
17459
}'
 
17460
fi
 
17461
 
 
17462
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
17463
fi # test -n "$CONFIG_FILES"
 
17464
 
 
17465
# Set up the scripts for CONFIG_HEADERS section.
 
17466
# No need to generate them if there are no CONFIG_HEADERS.
 
17467
# This happens for instance with `./config.status Makefile'.
 
17468
if test -n "$CONFIG_HEADERS"; then
 
17469
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
17470
BEGIN {
 
17471
_ACEOF
 
17472
 
 
17473
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
17474
# here-document in config.status, that substitutes the proper values into
 
17475
# config.h.in to produce config.h.
 
17476
 
 
17477
# Create a delimiter string that does not exist in confdefs.h, to ease
 
17478
# handling of long lines.
 
17479
ac_delim='%!_!# '
 
17480
for ac_last_try in false false :; do
 
17481
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
17482
  if test -z "$ac_t"; then
 
17483
    break
 
17484
  elif $ac_last_try; then
 
17485
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 
17486
  else
 
17487
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
17488
  fi
 
17489
done
 
17490
 
 
17491
# For the awk script, D is an array of macro values keyed by name,
 
17492
# likewise P contains macro parameters if any.  Preserve backslash
 
17493
# newline sequences.
 
17494
 
 
17495
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
17496
sed -n '
 
17497
s/.\{148\}/&'"$ac_delim"'/g
 
17498
t rset
 
17499
:rset
 
17500
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
17501
t def
 
17502
d
 
17503
:def
 
17504
s/\\$//
 
17505
t bsnl
 
17506
s/["\\]/\\&/g
 
17507
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
17508
D["\1"]=" \3"/p
 
17509
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
17510
d
 
17511
:bsnl
 
17512
s/["\\]/\\&/g
 
17513
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
17514
D["\1"]=" \3\\\\\\n"\\/p
 
17515
t cont
 
17516
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
17517
t cont
 
17518
d
 
17519
:cont
 
17520
n
 
17521
s/.\{148\}/&'"$ac_delim"'/g
 
17522
t clear
 
17523
:clear
 
17524
s/\\$//
 
17525
t bsnlc
 
17526
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
17527
d
 
17528
:bsnlc
 
17529
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
17530
b cont
 
17531
' <confdefs.h | sed '
 
17532
s/'"$ac_delim"'/"\\\
 
17533
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
17534
 
 
17535
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
17536
  for (key in D) D_is_set[key] = 1
 
17537
  FS = ""
 
17538
}
 
17539
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
17540
  line = \$ 0
 
17541
  split(line, arg, " ")
 
17542
  if (arg[1] == "#") {
 
17543
    defundef = arg[2]
 
17544
    mac1 = arg[3]
 
17545
  } else {
 
17546
    defundef = substr(arg[1], 2)
 
17547
    mac1 = arg[2]
 
17548
  }
 
17549
  split(mac1, mac2, "(") #)
 
17550
  macro = mac2[1]
 
17551
  prefix = substr(line, 1, index(line, defundef) - 1)
 
17552
  if (D_is_set[macro]) {
 
17553
    # Preserve the white space surrounding the "#".
 
17554
    print prefix "define", macro P[macro] D[macro]
 
17555
    next
 
17556
  } else {
 
17557
    # Replace #undef with comments.  This is necessary, for example,
 
17558
    # in the case of _POSIX_SOURCE, which is predefined and required
 
17559
    # on some systems where configure will not decide to define it.
 
17560
    if (defundef == "undef") {
 
17561
      print "/*", prefix defundef, macro, "*/"
 
17562
      next
 
17563
    }
 
17564
  }
 
17565
}
 
17566
{ print }
 
17567
_ACAWK
 
17568
_ACEOF
 
17569
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
17570
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 
17571
fi # test -n "$CONFIG_HEADERS"
 
17572
 
 
17573
 
 
17574
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
17575
shift
 
17576
for ac_tag
 
17577
do
 
17578
  case $ac_tag in
 
17579
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
17580
  esac
 
17581
  case $ac_mode$ac_tag in
 
17582
  :[FHL]*:*);;
 
17583
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
 
17584
  :[FH]-) ac_tag=-:-;;
 
17585
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
17586
  esac
 
17587
  ac_save_IFS=$IFS
 
17588
  IFS=:
 
17589
  set x $ac_tag
 
17590
  IFS=$ac_save_IFS
 
17591
  shift
 
17592
  ac_file=$1
 
17593
  shift
 
17594
 
 
17595
  case $ac_mode in
 
17596
  :L) ac_source=$1;;
 
17597
  :[FH])
 
17598
    ac_file_inputs=
 
17599
    for ac_f
 
17600
    do
 
17601
      case $ac_f in
 
17602
      -) ac_f="$tmp/stdin";;
 
17603
      *) # Look for the file first in the build tree, then in the source tree
 
17604
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
17605
         # because $ac_f cannot contain `:'.
 
17606
         test -f "$ac_f" ||
 
17607
           case $ac_f in
 
17608
           [\\/$]*) false;;
 
17609
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
17610
           esac ||
 
17611
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
 
17612
      esac
 
17613
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
17614
      as_fn_append ac_file_inputs " '$ac_f'"
 
17615
    done
 
17616
 
 
17617
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
17618
    # use $as_me), people would be surprised to read:
 
17619
    #    /* config.h.  Generated by config.status.  */
 
17620
    configure_input='Generated from '`
 
17621
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
17622
        `' by configure.'
 
17623
    if test x"$ac_file" != x-; then
 
17624
      configure_input="$ac_file.  $configure_input"
 
17625
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
17626
$as_echo "$as_me: creating $ac_file" >&6;}
 
17627
    fi
 
17628
    # Neutralize special characters interpreted by sed in replacement strings.
 
17629
    case $configure_input in #(
 
17630
    *\&* | *\|* | *\\* )
 
17631
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
17632
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
17633
    *) ac_sed_conf_input=$configure_input;;
 
17634
    esac
 
17635
 
 
17636
    case $ac_tag in
 
17637
    *:-:* | *:-) cat >"$tmp/stdin" \
 
17638
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
 
17639
    esac
 
17640
    ;;
 
17641
  esac
 
17642
 
 
17643
  ac_dir=`$as_dirname -- "$ac_file" ||
 
17644
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
17645
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
17646
         X"$ac_file" : 'X\(//\)$' \| \
 
17647
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
17648
$as_echo X"$ac_file" |
 
17649
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
17650
            s//\1/
 
17651
            q
 
17652
          }
 
17653
          /^X\(\/\/\)[^/].*/{
 
17654
            s//\1/
 
17655
            q
 
17656
          }
 
17657
          /^X\(\/\/\)$/{
 
17658
            s//\1/
 
17659
            q
 
17660
          }
 
17661
          /^X\(\/\).*/{
 
17662
            s//\1/
 
17663
            q
 
17664
          }
 
17665
          s/.*/./; q'`
 
17666
  as_dir="$ac_dir"; as_fn_mkdir_p
 
17667
  ac_builddir=.
 
17668
 
 
17669
case "$ac_dir" in
 
17670
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
17671
*)
 
17672
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
17673
  # A ".." for each directory in $ac_dir_suffix.
 
17674
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
17675
  case $ac_top_builddir_sub in
 
17676
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
17677
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
17678
  esac ;;
 
17679
esac
 
17680
ac_abs_top_builddir=$ac_pwd
 
17681
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
17682
# for backward compatibility:
 
17683
ac_top_builddir=$ac_top_build_prefix
 
17684
 
 
17685
case $srcdir in
 
17686
  .)  # We are building in place.
 
17687
    ac_srcdir=.
 
17688
    ac_top_srcdir=$ac_top_builddir_sub
 
17689
    ac_abs_top_srcdir=$ac_pwd ;;
 
17690
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
17691
    ac_srcdir=$srcdir$ac_dir_suffix;
 
17692
    ac_top_srcdir=$srcdir
 
17693
    ac_abs_top_srcdir=$srcdir ;;
 
17694
  *) # Relative name.
 
17695
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
17696
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
17697
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
17698
esac
 
17699
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
17700
 
 
17701
 
 
17702
  case $ac_mode in
 
17703
  :F)
 
17704
  #
 
17705
  # CONFIG_FILE
 
17706
  #
 
17707
 
 
17708
  case $INSTALL in
 
17709
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
17710
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
17711
  esac
 
17712
  ac_MKDIR_P=$MKDIR_P
 
17713
  case $MKDIR_P in
 
17714
  [\\/$]* | ?:[\\/]* ) ;;
 
17715
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
17716
  esac
 
17717
_ACEOF
 
17718
 
 
17719
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
17720
# If the template does not know about datarootdir, expand it.
 
17721
# FIXME: This hack should be removed a few years after 2.60.
 
17722
ac_datarootdir_hack=; ac_datarootdir_seen=
 
17723
ac_sed_dataroot='
 
17724
/datarootdir/ {
 
17725
  p
 
17726
  q
 
17727
}
 
17728
/@datadir@/p
 
17729
/@docdir@/p
 
17730
/@infodir@/p
 
17731
/@localedir@/p
 
17732
/@mandir@/p'
 
17733
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
17734
*datarootdir*) ac_datarootdir_seen=yes;;
 
17735
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
17736
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
17737
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
17738
_ACEOF
 
17739
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
17740
  ac_datarootdir_hack='
 
17741
  s&@datadir@&$datadir&g
 
17742
  s&@docdir@&$docdir&g
 
17743
  s&@infodir@&$infodir&g
 
17744
  s&@localedir@&$localedir&g
 
17745
  s&@mandir@&$mandir&g
 
17746
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
17747
esac
 
17748
_ACEOF
 
17749
 
 
17750
# Neutralize VPATH when `$srcdir' = `.'.
 
17751
# Shell code in configure.ac might set extrasub.
 
17752
# FIXME: do we really want to maintain this feature?
 
17753
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
17754
ac_sed_extra="$ac_vpsub
 
17755
$extrasub
 
17756
_ACEOF
 
17757
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
17758
:t
 
17759
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
17760
s|@configure_input@|$ac_sed_conf_input|;t t
 
17761
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
17762
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
17763
s&@srcdir@&$ac_srcdir&;t t
 
17764
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
17765
s&@top_srcdir@&$ac_top_srcdir&;t t
 
17766
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
17767
s&@builddir@&$ac_builddir&;t t
 
17768
s&@abs_builddir@&$ac_abs_builddir&;t t
 
17769
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
17770
s&@INSTALL@&$ac_INSTALL&;t t
 
17771
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
17772
$ac_datarootdir_hack
 
17773
"
 
17774
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
17775
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
17776
 
 
17777
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
17778
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
17779
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
17780
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
17781
which seems to be undefined.  Please make sure it is defined" >&5
 
17782
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
17783
which seems to be undefined.  Please make sure it is defined" >&2;}
 
17784
 
 
17785
  rm -f "$tmp/stdin"
 
17786
  case $ac_file in
 
17787
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
17788
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
17789
  esac \
 
17790
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
17791
 ;;
 
17792
  :H)
 
17793
  #
 
17794
  # CONFIG_HEADER
 
17795
  #
 
17796
  if test x"$ac_file" != x-; then
 
17797
    {
 
17798
      $as_echo "/* $configure_input  */" \
 
17799
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
17800
    } >"$tmp/config.h" \
 
17801
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
17802
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
17803
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
17804
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
17805
    else
 
17806
      rm -f "$ac_file"
 
17807
      mv "$tmp/config.h" "$ac_file" \
 
17808
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
17809
    fi
 
17810
  else
 
17811
    $as_echo "/* $configure_input  */" \
 
17812
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
17813
      || as_fn_error $? "could not create -" "$LINENO" 5
 
17814
  fi
 
17815
# Compute "$ac_file"'s index in $config_headers.
 
17816
_am_arg="$ac_file"
 
17817
_am_stamp_count=1
 
17818
for _am_header in $config_headers :; do
 
17819
  case $_am_header in
 
17820
    $_am_arg | $_am_arg:* )
 
17821
      break ;;
 
17822
    * )
 
17823
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
17824
  esac
 
17825
done
 
17826
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
17827
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
17828
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
17829
         X"$_am_arg" : 'X\(//\)$' \| \
 
17830
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
17831
$as_echo X"$_am_arg" |
 
17832
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
17833
            s//\1/
 
17834
            q
 
17835
          }
 
17836
          /^X\(\/\/\)[^/].*/{
 
17837
            s//\1/
 
17838
            q
 
17839
          }
 
17840
          /^X\(\/\/\)$/{
 
17841
            s//\1/
 
17842
            q
 
17843
          }
 
17844
          /^X\(\/\).*/{
 
17845
            s//\1/
 
17846
            q
 
17847
          }
 
17848
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
17849
 ;;
 
17850
 
 
17851
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
17852
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
17853
 ;;
 
17854
  esac
 
17855
 
 
17856
 
 
17857
  case $ac_file$ac_mode in
 
17858
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
17859
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
17860
  # are listed without --file.  Let's play safe and only enable the eval
 
17861
  # if we detect the quoting.
 
17862
  case $CONFIG_FILES in
 
17863
  *\'*) eval set x "$CONFIG_FILES" ;;
 
17864
  *)   set x $CONFIG_FILES ;;
 
17865
  esac
 
17866
  shift
 
17867
  for mf
 
17868
  do
 
17869
    # Strip MF so we end up with the name of the file.
 
17870
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
17871
    # Check whether this is an Automake generated Makefile or not.
 
17872
    # We used to match only the files named `Makefile.in', but
 
17873
    # some people rename them; so instead we look at the file content.
 
17874
    # Grep'ing the first line is not enough: some people post-process
 
17875
    # each Makefile.in and add a new line on top of each file to say so.
 
17876
    # Grep'ing the whole file is not good either: AIX grep has a line
 
17877
    # limit of 2048, but all sed's we know have understand at least 4000.
 
17878
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
17879
      dirpart=`$as_dirname -- "$mf" ||
 
17880
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
17881
         X"$mf" : 'X\(//\)[^/]' \| \
 
17882
         X"$mf" : 'X\(//\)$' \| \
 
17883
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
17884
$as_echo X"$mf" |
 
17885
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
17886
            s//\1/
 
17887
            q
 
17888
          }
 
17889
          /^X\(\/\/\)[^/].*/{
 
17890
            s//\1/
 
17891
            q
 
17892
          }
 
17893
          /^X\(\/\/\)$/{
 
17894
            s//\1/
 
17895
            q
 
17896
          }
 
17897
          /^X\(\/\).*/{
 
17898
            s//\1/
 
17899
            q
 
17900
          }
 
17901
          s/.*/./; q'`
 
17902
    else
 
17903
      continue
 
17904
    fi
 
17905
    # Extract the definition of DEPDIR, am__include, and am__quote
 
17906
    # from the Makefile without running `make'.
 
17907
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
17908
    test -z "$DEPDIR" && continue
 
17909
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
17910
    test -z "am__include" && continue
 
17911
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
17912
    # When using ansi2knr, U may be empty or an underscore; expand it
 
17913
    U=`sed -n 's/^U = //p' < "$mf"`
 
17914
    # Find all dependency output files, they are included files with
 
17915
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
17916
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
17917
    # expansion.
 
17918
    for file in `sed -n "
 
17919
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
17920
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
17921
      # Make sure the directory exists.
 
17922
      test -f "$dirpart/$file" && continue
 
17923
      fdir=`$as_dirname -- "$file" ||
 
17924
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
17925
         X"$file" : 'X\(//\)[^/]' \| \
 
17926
         X"$file" : 'X\(//\)$' \| \
 
17927
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
17928
$as_echo X"$file" |
 
17929
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
17930
            s//\1/
 
17931
            q
 
17932
          }
 
17933
          /^X\(\/\/\)[^/].*/{
 
17934
            s//\1/
 
17935
            q
 
17936
          }
 
17937
          /^X\(\/\/\)$/{
 
17938
            s//\1/
 
17939
            q
 
17940
          }
 
17941
          /^X\(\/\).*/{
 
17942
            s//\1/
 
17943
            q
 
17944
          }
 
17945
          s/.*/./; q'`
 
17946
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
17947
      # echo "creating $dirpart/$file"
 
17948
      echo '# dummy' > "$dirpart/$file"
 
17949
    done
 
17950
  done
 
17951
}
 
17952
 ;;
 
17953
    "libtool":C)
 
17954
 
 
17955
    # See if we are running on zsh, and set the options which allow our
 
17956
    # commands through without removal of \ escapes.
 
17957
    if test -n "${ZSH_VERSION+set}" ; then
 
17958
      setopt NO_GLOB_SUBST
 
17959
    fi
 
17960
 
 
17961
    cfgfile="${ofile}T"
 
17962
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
17963
    $RM "$cfgfile"
 
17964
 
 
17965
    cat <<_LT_EOF >> "$cfgfile"
 
17966
#! $SHELL
 
17967
 
 
17968
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
17969
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
17970
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
17971
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
17972
#
 
17973
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
17974
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
 
17975
#                 Inc.
 
17976
#   Written by Gordon Matzigkeit, 1996
 
17977
#
 
17978
#   This file is part of GNU Libtool.
 
17979
#
 
17980
# GNU Libtool is free software; you can redistribute it and/or
 
17981
# modify it under the terms of the GNU General Public License as
 
17982
# published by the Free Software Foundation; either version 2 of
 
17983
# the License, or (at your option) any later version.
 
17984
#
 
17985
# As a special exception to the GNU General Public License,
 
17986
# if you distribute this file as part of a program or library that
 
17987
# is built using GNU Libtool, you may include this file under the
 
17988
# same distribution terms that you use for the rest of that program.
 
17989
#
 
17990
# GNU Libtool is distributed in the hope that it will be useful,
 
17991
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17992
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17993
# GNU General Public License for more details.
 
17994
#
 
17995
# You should have received a copy of the GNU General Public License
 
17996
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
17997
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
17998
# obtained by writing to the Free Software Foundation, Inc.,
 
17999
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
18000
 
 
18001
 
 
18002
# The names of the tagged configurations supported by this script.
 
18003
available_tags=""
 
18004
 
 
18005
# ### BEGIN LIBTOOL CONFIG
 
18006
 
 
18007
# Which release of libtool.m4 was used?
 
18008
macro_version=$macro_version
 
18009
macro_revision=$macro_revision
 
18010
 
 
18011
# Whether or not to build shared libraries.
 
18012
build_libtool_libs=$enable_shared
 
18013
 
 
18014
# Whether or not to build static libraries.
 
18015
build_old_libs=$enable_static
 
18016
 
 
18017
# What type of objects to build.
 
18018
pic_mode=$pic_mode
 
18019
 
 
18020
# Whether or not to optimize for fast installation.
 
18021
fast_install=$enable_fast_install
 
18022
 
 
18023
# Shell to use when invoking shell scripts.
 
18024
SHELL=$lt_SHELL
 
18025
 
 
18026
# An echo program that protects backslashes.
 
18027
ECHO=$lt_ECHO
 
18028
 
 
18029
# The host system.
 
18030
host_alias=$host_alias
 
18031
host=$host
 
18032
host_os=$host_os
 
18033
 
 
18034
# The build system.
 
18035
build_alias=$build_alias
 
18036
build=$build
 
18037
build_os=$build_os
 
18038
 
 
18039
# A sed program that does not truncate output.
 
18040
SED=$lt_SED
 
18041
 
 
18042
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
18043
Xsed="\$SED -e 1s/^X//"
 
18044
 
 
18045
# A grep program that handles long lines.
 
18046
GREP=$lt_GREP
 
18047
 
 
18048
# An ERE matcher.
 
18049
EGREP=$lt_EGREP
 
18050
 
 
18051
# A literal string matcher.
 
18052
FGREP=$lt_FGREP
 
18053
 
 
18054
# A BSD- or MS-compatible name lister.
 
18055
NM=$lt_NM
 
18056
 
 
18057
# Whether we need soft or hard links.
 
18058
LN_S=$lt_LN_S
 
18059
 
 
18060
# What is the maximum length of a command?
 
18061
max_cmd_len=$max_cmd_len
 
18062
 
 
18063
# Object file suffix (normally "o").
 
18064
objext=$ac_objext
 
18065
 
 
18066
# Executable file suffix (normally "").
 
18067
exeext=$exeext
 
18068
 
 
18069
# whether the shell understands "unset".
 
18070
lt_unset=$lt_unset
 
18071
 
 
18072
# turn spaces into newlines.
 
18073
SP2NL=$lt_lt_SP2NL
 
18074
 
 
18075
# turn newlines into spaces.
 
18076
NL2SP=$lt_lt_NL2SP
 
18077
 
 
18078
# convert \$build file names to \$host format.
 
18079
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
18080
 
 
18081
# convert \$build files to toolchain format.
 
18082
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
18083
 
 
18084
# An object symbol dumper.
 
18085
OBJDUMP=$lt_OBJDUMP
 
18086
 
 
18087
# Method to check whether dependent libraries are shared objects.
 
18088
deplibs_check_method=$lt_deplibs_check_method
 
18089
 
 
18090
# Command to use when deplibs_check_method = "file_magic".
 
18091
file_magic_cmd=$lt_file_magic_cmd
 
18092
 
 
18093
# How to find potential files when deplibs_check_method = "file_magic".
 
18094
file_magic_glob=$lt_file_magic_glob
 
18095
 
 
18096
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
 
18097
want_nocaseglob=$lt_want_nocaseglob
 
18098
 
 
18099
# DLL creation program.
 
18100
DLLTOOL=$lt_DLLTOOL
 
18101
 
 
18102
# Command to associate shared and link libraries.
 
18103
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
 
18104
 
 
18105
# The archiver.
 
18106
AR=$lt_AR
 
18107
 
 
18108
# Flags to create an archive.
 
18109
AR_FLAGS=$lt_AR_FLAGS
 
18110
 
 
18111
# How to feed a file listing to the archiver.
 
18112
archiver_list_spec=$lt_archiver_list_spec
 
18113
 
 
18114
# A symbol stripping program.
 
18115
STRIP=$lt_STRIP
 
18116
 
 
18117
# Commands used to install an old-style archive.
 
18118
RANLIB=$lt_RANLIB
 
18119
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18120
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18121
 
 
18122
# Whether to use a lock for old archive extraction.
 
18123
lock_old_archive_extraction=$lock_old_archive_extraction
 
18124
 
 
18125
# A C compiler.
 
18126
LTCC=$lt_CC
 
18127
 
 
18128
# LTCC compiler flags.
 
18129
LTCFLAGS=$lt_CFLAGS
 
18130
 
 
18131
# Take the output of nm and produce a listing of raw symbols and C names.
 
18132
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18133
 
 
18134
# Transform the output of nm in a proper C declaration.
 
18135
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18136
 
 
18137
# Transform the output of nm in a C name address pair.
 
18138
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18139
 
 
18140
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
18141
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
18142
 
 
18143
# Specify filename containing input files for \$NM.
 
18144
nm_file_list_spec=$lt_nm_file_list_spec
 
18145
 
 
18146
# The root where to search for dependent libraries,and in which our libraries should be installed.
 
18147
lt_sysroot=$lt_sysroot
 
18148
 
 
18149
# The name of the directory that contains temporary libtool files.
 
18150
objdir=$objdir
 
18151
 
 
18152
# Used to examine libraries when file_magic_cmd begins with "file".
 
18153
MAGIC_CMD=$MAGIC_CMD
 
18154
 
 
18155
# Must we lock files when doing compilation?
 
18156
need_locks=$lt_need_locks
 
18157
 
 
18158
# Manifest tool.
 
18159
MANIFEST_TOOL=$lt_MANIFEST_TOOL
 
18160
 
 
18161
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
18162
DSYMUTIL=$lt_DSYMUTIL
 
18163
 
 
18164
# Tool to change global to local symbols on Mac OS X.
 
18165
NMEDIT=$lt_NMEDIT
 
18166
 
 
18167
# Tool to manipulate fat objects and archives on Mac OS X.
 
18168
LIPO=$lt_LIPO
 
18169
 
 
18170
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
18171
OTOOL=$lt_OTOOL
 
18172
 
 
18173
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
18174
OTOOL64=$lt_OTOOL64
 
18175
 
 
18176
# Old archive suffix (normally "a").
 
18177
libext=$libext
 
18178
 
 
18179
# Shared library suffix (normally ".so").
 
18180
shrext_cmds=$lt_shrext_cmds
 
18181
 
 
18182
# The commands to extract the exported symbol list from a shared archive.
 
18183
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18184
 
 
18185
# Variables whose values should be saved in libtool wrapper scripts and
 
18186
# restored at link time.
 
18187
variables_saved_for_relink=$lt_variables_saved_for_relink
 
18188
 
 
18189
# Do we need the "lib" prefix for modules?
 
18190
need_lib_prefix=$need_lib_prefix
 
18191
 
 
18192
# Do we need a version for libraries?
 
18193
need_version=$need_version
 
18194
 
 
18195
# Library versioning type.
 
18196
version_type=$version_type
 
18197
 
 
18198
# Shared library runtime path variable.
 
18199
runpath_var=$runpath_var
 
18200
 
 
18201
# Shared library path variable.
 
18202
shlibpath_var=$shlibpath_var
 
18203
 
 
18204
# Is shlibpath searched before the hard-coded library search path?
 
18205
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18206
 
 
18207
# Format of library name prefix.
 
18208
libname_spec=$lt_libname_spec
 
18209
 
 
18210
# List of archive names.  First name is the real one, the rest are links.
 
18211
# The last name is the one that the linker finds with -lNAME
 
18212
library_names_spec=$lt_library_names_spec
 
18213
 
 
18214
# The coded name of the library, if different from the real name.
 
18215
soname_spec=$lt_soname_spec
 
18216
 
 
18217
# Permission mode override for installation of shared libraries.
 
18218
install_override_mode=$lt_install_override_mode
 
18219
 
 
18220
# Command to use after installation of a shared archive.
 
18221
postinstall_cmds=$lt_postinstall_cmds
 
18222
 
 
18223
# Command to use after uninstallation of a shared archive.
 
18224
postuninstall_cmds=$lt_postuninstall_cmds
 
18225
 
 
18226
# Commands used to finish a libtool library installation in a directory.
 
18227
finish_cmds=$lt_finish_cmds
 
18228
 
 
18229
# As "finish_cmds", except a single script fragment to be evaled but
 
18230
# not shown.
 
18231
finish_eval=$lt_finish_eval
 
18232
 
 
18233
# Whether we should hardcode library paths into libraries.
 
18234
hardcode_into_libs=$hardcode_into_libs
 
18235
 
 
18236
# Compile-time system search path for libraries.
 
18237
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18238
 
 
18239
# Run-time system search path for libraries.
 
18240
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18241
 
 
18242
# Whether dlopen is supported.
 
18243
dlopen_support=$enable_dlopen
 
18244
 
 
18245
# Whether dlopen of programs is supported.
 
18246
dlopen_self=$enable_dlopen_self
 
18247
 
 
18248
# Whether dlopen of statically linked programs is supported.
 
18249
dlopen_self_static=$enable_dlopen_self_static
 
18250
 
 
18251
# Commands to strip libraries.
 
18252
old_striplib=$lt_old_striplib
 
18253
striplib=$lt_striplib
 
18254
 
 
18255
 
 
18256
# The linker used to build libraries.
 
18257
LD=$lt_LD
 
18258
 
 
18259
# How to create reloadable object files.
 
18260
reload_flag=$lt_reload_flag
 
18261
reload_cmds=$lt_reload_cmds
 
18262
 
 
18263
# Commands used to build an old-style archive.
 
18264
old_archive_cmds=$lt_old_archive_cmds
 
18265
 
 
18266
# A language specific compiler.
 
18267
CC=$lt_compiler
 
18268
 
 
18269
# Is the compiler the GNU compiler?
 
18270
with_gcc=$GCC
 
18271
 
 
18272
# Compiler flag to turn off builtin functions.
 
18273
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
18274
 
 
18275
# Additional compiler flags for building library objects.
 
18276
pic_flag=$lt_lt_prog_compiler_pic
 
18277
 
 
18278
# How to pass a linker flag through the compiler.
 
18279
wl=$lt_lt_prog_compiler_wl
 
18280
 
 
18281
# Compiler flag to prevent dynamic linking.
 
18282
link_static_flag=$lt_lt_prog_compiler_static
 
18283
 
 
18284
# Does compiler simultaneously support -c and -o options?
 
18285
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
18286
 
 
18287
# Whether or not to add -lc for building shared libraries.
 
18288
build_libtool_need_lc=$archive_cmds_need_lc
 
18289
 
 
18290
# Whether or not to disallow shared libs when runtime libs are static.
 
18291
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
18292
 
 
18293
# Compiler flag to allow reflexive dlopens.
 
18294
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
18295
 
 
18296
# Compiler flag to generate shared objects directly from archives.
 
18297
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
18298
 
 
18299
# Whether the compiler copes with passing no objects directly.
 
18300
compiler_needs_object=$lt_compiler_needs_object
 
18301
 
 
18302
# Create an old-style archive from a shared archive.
 
18303
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
18304
 
 
18305
# Create a temporary old-style archive to link instead of a shared archive.
 
18306
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
18307
 
 
18308
# Commands used to build a shared archive.
 
18309
archive_cmds=$lt_archive_cmds
 
18310
archive_expsym_cmds=$lt_archive_expsym_cmds
 
18311
 
 
18312
# Commands used to build a loadable module if different from building
 
18313
# a shared archive.
 
18314
module_cmds=$lt_module_cmds
 
18315
module_expsym_cmds=$lt_module_expsym_cmds
 
18316
 
 
18317
# Whether we are building with GNU ld or not.
 
18318
with_gnu_ld=$lt_with_gnu_ld
 
18319
 
 
18320
# Flag that allows shared libraries with undefined symbols to be built.
 
18321
allow_undefined_flag=$lt_allow_undefined_flag
 
18322
 
 
18323
# Flag that enforces no undefined symbols.
 
18324
no_undefined_flag=$lt_no_undefined_flag
 
18325
 
 
18326
# Flag to hardcode \$libdir into a binary during linking.
 
18327
# This must work even if \$libdir does not exist
 
18328
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
18329
 
 
18330
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
18331
# during linking.  This must work even if \$libdir does not exist.
 
18332
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
18333
 
 
18334
# Whether we need a single "-rpath" flag with a separated argument.
 
18335
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
18336
 
 
18337
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
18338
# DIR into the resulting binary.
 
18339
hardcode_direct=$hardcode_direct
 
18340
 
 
18341
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
18342
# DIR into the resulting binary and the resulting library dependency is
 
18343
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
18344
# library is relocated.
 
18345
hardcode_direct_absolute=$hardcode_direct_absolute
 
18346
 
 
18347
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
18348
# into the resulting binary.
 
18349
hardcode_minus_L=$hardcode_minus_L
 
18350
 
 
18351
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
18352
# into the resulting binary.
 
18353
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
18354
 
 
18355
# Set to "yes" if building a shared library automatically hardcodes DIR
 
18356
# into the library and all subsequent libraries and executables linked
 
18357
# against it.
 
18358
hardcode_automatic=$hardcode_automatic
 
18359
 
 
18360
# Set to yes if linker adds runtime paths of dependent libraries
 
18361
# to runtime path list.
 
18362
inherit_rpath=$inherit_rpath
 
18363
 
 
18364
# Whether libtool must link a program against all its dependency libraries.
 
18365
link_all_deplibs=$link_all_deplibs
 
18366
 
 
18367
# Set to "yes" if exported symbols are required.
 
18368
always_export_symbols=$always_export_symbols
 
18369
 
 
18370
# The commands to list exported symbols.
 
18371
export_symbols_cmds=$lt_export_symbols_cmds
 
18372
 
 
18373
# Symbols that should not be listed in the preloaded symbols.
 
18374
exclude_expsyms=$lt_exclude_expsyms
 
18375
 
 
18376
# Symbols that must always be exported.
 
18377
include_expsyms=$lt_include_expsyms
 
18378
 
 
18379
# Commands necessary for linking programs (against libraries) with templates.
 
18380
prelink_cmds=$lt_prelink_cmds
 
18381
 
 
18382
# Commands necessary for finishing linking programs.
 
18383
postlink_cmds=$lt_postlink_cmds
 
18384
 
 
18385
# Specify filename containing input files.
 
18386
file_list_spec=$lt_file_list_spec
 
18387
 
 
18388
# How to hardcode a shared library path into an executable.
 
18389
hardcode_action=$hardcode_action
 
18390
 
 
18391
# ### END LIBTOOL CONFIG
 
18392
 
 
18393
_LT_EOF
 
18394
 
 
18395
  case $host_os in
 
18396
  aix3*)
 
18397
    cat <<\_LT_EOF >> "$cfgfile"
 
18398
# AIX sometimes has problems with the GCC collect2 program.  For some
 
18399
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
18400
# vanish in a puff of smoke.
 
18401
if test "X${COLLECT_NAMES+set}" != Xset; then
 
18402
  COLLECT_NAMES=
 
18403
  export COLLECT_NAMES
 
18404
fi
 
18405
_LT_EOF
 
18406
    ;;
 
18407
  esac
 
18408
 
 
18409
 
 
18410
ltmain="$ac_aux_dir/ltmain.sh"
 
18411
 
 
18412
 
 
18413
  # We use sed instead of cat because bash on DJGPP gets confused if
 
18414
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
18415
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
18416
  # is reportedly fixed, but why not run on old versions too?
 
18417
  sed '$q' "$ltmain" >> "$cfgfile" \
 
18418
     || (rm -f "$cfgfile"; exit 1)
 
18419
 
 
18420
  if test x"$xsi_shell" = xyes; then
 
18421
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
 
18422
func_dirname ()\
 
18423
{\
 
18424
\    case ${1} in\
 
18425
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
18426
\      *  ) func_dirname_result="${3}" ;;\
 
18427
\    esac\
 
18428
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
 
18429
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18430
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18431
test 0 -eq $? || _lt_function_replace_fail=:
 
18432
 
 
18433
 
 
18434
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
 
18435
func_basename ()\
 
18436
{\
 
18437
\    func_basename_result="${1##*/}"\
 
18438
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
18439
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18440
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18441
test 0 -eq $? || _lt_function_replace_fail=:
 
18442
 
 
18443
 
 
18444
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
 
18445
func_dirname_and_basename ()\
 
18446
{\
 
18447
\    case ${1} in\
 
18448
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
18449
\      *  ) func_dirname_result="${3}" ;;\
 
18450
\    esac\
 
18451
\    func_basename_result="${1##*/}"\
 
18452
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
18453
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18454
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18455
test 0 -eq $? || _lt_function_replace_fail=:
 
18456
 
 
18457
 
 
18458
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
 
18459
func_stripname ()\
 
18460
{\
 
18461
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
 
18462
\    # positional parameters, so assign one to ordinary parameter first.\
 
18463
\    func_stripname_result=${3}\
 
18464
\    func_stripname_result=${func_stripname_result#"${1}"}\
 
18465
\    func_stripname_result=${func_stripname_result%"${2}"}\
 
18466
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
 
18467
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18468
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18469
test 0 -eq $? || _lt_function_replace_fail=:
 
18470
 
 
18471
 
 
18472
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
 
18473
func_split_long_opt ()\
 
18474
{\
 
18475
\    func_split_long_opt_name=${1%%=*}\
 
18476
\    func_split_long_opt_arg=${1#*=}\
 
18477
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
18478
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18479
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18480
test 0 -eq $? || _lt_function_replace_fail=:
 
18481
 
 
18482
 
 
18483
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
 
18484
func_split_short_opt ()\
 
18485
{\
 
18486
\    func_split_short_opt_arg=${1#??}\
 
18487
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
 
18488
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
18489
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18490
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18491
test 0 -eq $? || _lt_function_replace_fail=:
 
18492
 
 
18493
 
 
18494
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
 
18495
func_lo2o ()\
 
18496
{\
 
18497
\    case ${1} in\
 
18498
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
 
18499
\      *)    func_lo2o_result=${1} ;;\
 
18500
\    esac\
 
18501
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
 
18502
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18503
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18504
test 0 -eq $? || _lt_function_replace_fail=:
 
18505
 
 
18506
 
 
18507
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
 
18508
func_xform ()\
 
18509
{\
 
18510
    func_xform_result=${1%.*}.lo\
 
18511
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
 
18512
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18513
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18514
test 0 -eq $? || _lt_function_replace_fail=:
 
18515
 
 
18516
 
 
18517
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
 
18518
func_arith ()\
 
18519
{\
 
18520
    func_arith_result=$(( $* ))\
 
18521
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
 
18522
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18523
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18524
test 0 -eq $? || _lt_function_replace_fail=:
 
18525
 
 
18526
 
 
18527
  sed -e '/^func_len ()$/,/^} # func_len /c\
 
18528
func_len ()\
 
18529
{\
 
18530
    func_len_result=${#1}\
 
18531
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
 
18532
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18533
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18534
test 0 -eq $? || _lt_function_replace_fail=:
 
18535
 
 
18536
fi
 
18537
 
 
18538
if test x"$lt_shell_append" = xyes; then
 
18539
  sed -e '/^func_append ()$/,/^} # func_append /c\
 
18540
func_append ()\
 
18541
{\
 
18542
    eval "${1}+=\\${2}"\
 
18543
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
 
18544
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18545
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18546
test 0 -eq $? || _lt_function_replace_fail=:
 
18547
 
 
18548
 
 
18549
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
 
18550
func_append_quoted ()\
 
18551
{\
 
18552
\    func_quote_for_eval "${2}"\
 
18553
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
 
18554
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
 
18555
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18556
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18557
test 0 -eq $? || _lt_function_replace_fail=:
 
18558
 
 
18559
 
 
18560
  # Save a `func_append' function call where possible by direct use of '+='
 
18561
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
18562
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18563
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18564
  test 0 -eq $? || _lt_function_replace_fail=:
 
18565
else
 
18566
  # Save a `func_append' function call even when '+=' is not available
 
18567
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
18568
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
18569
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
18570
  test 0 -eq $? || _lt_function_replace_fail=:
 
18571
fi
 
18572
 
 
18573
if test x"$_lt_function_replace_fail" = x":"; then
 
18574
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
 
18575
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
 
18576
fi
 
18577
 
 
18578
 
 
18579
   mv -f "$cfgfile" "$ofile" ||
 
18580
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
18581
  chmod +x "$ofile"
 
18582
 
 
18583
 ;;
 
18584
    "po-directories":C)
 
18585
    for ac_file in $CONFIG_FILES; do
 
18586
      # Support "outfile[:infile[:infile...]]"
 
18587
      case "$ac_file" in
 
18588
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
18589
      esac
 
18590
      # PO directories have a Makefile.in generated from Makefile.in.in.
 
18591
      case "$ac_file" in */Makefile.in)
 
18592
        # Adjust a relative srcdir.
 
18593
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
 
18594
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
 
18595
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
 
18596
        # In autoconf-2.13 it is called $ac_given_srcdir.
 
18597
        # In autoconf-2.50 it is called $srcdir.
 
18598
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
 
18599
        case "$ac_given_srcdir" in
 
18600
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
 
18601
          /*) top_srcdir="$ac_given_srcdir" ;;
 
18602
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
18603
        esac
 
18604
        # Treat a directory as a PO directory if and only if it has a
 
18605
        # POTFILES.in file. This allows packages to have multiple PO
 
18606
        # directories under different names or in different locations.
 
18607
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
 
18608
          rm -f "$ac_dir/POTFILES"
 
18609
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
 
18610
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
 
18611
          POMAKEFILEDEPS="POTFILES.in"
 
18612
          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
 
18613
          # on $ac_dir but don't depend on user-specified configuration
 
18614
          # parameters.
 
18615
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
 
18616
            # The LINGUAS file contains the set of available languages.
 
18617
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
 
18618
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
 
18619
            fi
 
18620
            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
 
18621
            # Hide the ALL_LINGUAS assigment from automake < 1.5.
 
18622
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
 
18623
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
 
18624
          else
 
18625
            # The set of available languages was given in configure.in.
 
18626
            # Hide the ALL_LINGUAS assigment from automake < 1.5.
 
18627
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
 
18628
          fi
 
18629
          # Compute POFILES
 
18630
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
 
18631
          # Compute UPDATEPOFILES
 
18632
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
 
18633
          # Compute DUMMYPOFILES
 
18634
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
 
18635
          # Compute GMOFILES
 
18636
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
 
18637
          case "$ac_given_srcdir" in
 
18638
            .) srcdirpre= ;;
 
18639
            *) srcdirpre='$(srcdir)/' ;;
 
18640
          esac
 
18641
          POFILES=
 
18642
          UPDATEPOFILES=
 
18643
          DUMMYPOFILES=
 
18644
          GMOFILES=
 
18645
          for lang in $ALL_LINGUAS; do
 
18646
            POFILES="$POFILES $srcdirpre$lang.po"
 
18647
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
 
18648
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
 
18649
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
 
18650
          done
 
18651
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
 
18652
          # environment variable.
 
18653
          INST_LINGUAS=
 
18654
          if test -n "$ALL_LINGUAS"; then
 
18655
            for presentlang in $ALL_LINGUAS; do
 
18656
              useit=no
 
18657
              if test "%UNSET%" != "$LINGUAS"; then
 
18658
                desiredlanguages="$LINGUAS"
 
18659
              else
 
18660
                desiredlanguages="$ALL_LINGUAS"
 
18661
              fi
 
18662
              for desiredlang in $desiredlanguages; do
 
18663
                # Use the presentlang catalog if desiredlang is
 
18664
                #   a. equal to presentlang, or
 
18665
                #   b. a variant of presentlang (because in this case,
 
18666
                #      presentlang can be used as a fallback for messages
 
18667
                #      which are not translated in the desiredlang catalog).
 
18668
                case "$desiredlang" in
 
18669
                  "$presentlang"*) useit=yes;;
 
18670
                esac
 
18671
              done
 
18672
              if test $useit = yes; then
 
18673
                INST_LINGUAS="$INST_LINGUAS $presentlang"
 
18674
              fi
 
18675
            done
 
18676
          fi
 
18677
          CATALOGS=
 
18678
          if test -n "$INST_LINGUAS"; then
 
18679
            for lang in $INST_LINGUAS; do
 
18680
              CATALOGS="$CATALOGS $lang.gmo"
 
18681
            done
 
18682
          fi
 
18683
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
 
18684
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
 
18685
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
 
18686
            if test -f "$f"; then
 
18687
              case "$f" in
 
18688
                *.orig | *.bak | *~) ;;
 
18689
                *) cat "$f" >> "$ac_dir/Makefile" ;;
 
18690
              esac
 
18691
            fi
 
18692
          done
 
18693
        fi
 
18694
        ;;
 
18695
      esac
 
18696
    done ;;
 
18697
    "po/stamp-it":C)
 
18698
    if  ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
 
18699
       as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
 
18700
    fi
 
18701
    rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
 
18702
    >"po/stamp-it.tmp"
 
18703
    sed '/^#/d
 
18704
         s/^[[].*] *//
 
18705
         /^[    ]*$/d
 
18706
        '"s|^|  $ac_top_srcdir/|" \
 
18707
      "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
 
18708
 
 
18709
    sed '/^POTFILES =/,/[^\\]$/ {
 
18710
                /^POTFILES =/!d
 
18711
                r po/POTFILES
 
18712
          }
 
18713
         ' "po/Makefile.in" >"po/Makefile"
 
18714
    rm -f "po/Makefile.tmp"
 
18715
    mv "po/stamp-it.tmp" "po/stamp-it"
 
18716
   ;;
 
18717
 
 
18718
  esac
 
18719
done # for ac_tag
 
18720
 
 
18721
 
 
18722
as_fn_exit 0
 
18723
_ACEOF
 
18724
ac_clean_files=$ac_clean_files_save
 
18725
 
 
18726
test $ac_write_fail = 0 ||
 
18727
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
18728
 
 
18729
 
 
18730
# configure is writing to config.log, and then calls config.status.
 
18731
# config.status does its own redirection, appending to config.log.
 
18732
# Unfortunately, on DOS this fails, as config.log is still kept open
 
18733
# by configure, so config.status won't be able to write to it; its
 
18734
# output is simply discarded.  So we exec the FD to /dev/null,
 
18735
# effectively closing config.log, so it can be properly (re)opened and
 
18736
# appended to by config.status.  When coming back to configure, we
 
18737
# need to make the FD available again.
 
18738
if test "$no_create" != yes; then
 
18739
  ac_cs_success=:
 
18740
  ac_config_status_args=
 
18741
  test "$silent" = yes &&
 
18742
    ac_config_status_args="$ac_config_status_args --quiet"
 
18743
  exec 5>/dev/null
 
18744
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
18745
  exec 5>>config.log
 
18746
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
18747
  # would make configure fail if this is the last instruction.
 
18748
  $ac_cs_success || as_fn_exit 1
 
18749
fi
 
18750
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
18751
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
18752
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
18753
fi
 
18754
 
 
18755
 
 
18756
#**************************************************************************