~indicator-applet-developers/indicator-power/trunk.13.04

« back to all changes in this revision

Viewing changes to configure

ImportĀ upstreamĀ versionĀ 0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.68 for indicator-power 0.1.
 
4
#
 
5
# Report bugs to <http://bugs.launchpad.net/indicator-power>.
 
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
as_myself=
 
95
case $0 in #((
 
96
  *[\\/]* ) as_myself=$0 ;;
 
97
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
98
for as_dir in $PATH
 
99
do
 
100
  IFS=$as_save_IFS
 
101
  test -z "$as_dir" && as_dir=.
 
102
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
103
  done
 
104
IFS=$as_save_IFS
 
105
 
 
106
     ;;
 
107
esac
 
108
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
109
# in which case we are not to be found in the path.
 
110
if test "x$as_myself" = x; then
 
111
  as_myself=$0
 
112
fi
 
113
if test ! -f "$as_myself"; then
 
114
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
115
  exit 1
 
116
fi
 
117
 
 
118
# Unset variables that we do not need and which cause bugs (e.g. in
 
119
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
120
# suppresses any "Segmentation fault" message there.  '((' could
 
121
# trigger a bug in pdksh 5.2.14.
 
122
for as_var in BASH_ENV ENV MAIL MAILPATH
 
123
do eval test x\${$as_var+set} = xset \
 
124
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
125
done
 
126
PS1='$ '
 
127
PS2='> '
 
128
PS4='+ '
 
129
 
 
130
# NLS nuisances.
 
131
LC_ALL=C
 
132
export LC_ALL
 
133
LANGUAGE=C
 
134
export LANGUAGE
 
135
 
 
136
# CDPATH.
 
137
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
138
 
 
139
if test "x$CONFIG_SHELL" = x; then
 
140
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
141
  emulate sh
 
142
  NULLCMD=:
 
143
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
144
  # is contrary to our usage.  Disable this feature.
 
145
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
146
  setopt NO_GLOB_SUBST
 
147
else
 
148
  case \`(set -o) 2>/dev/null\` in #(
 
149
  *posix*) :
 
150
    set -o posix ;; #(
 
151
  *) :
 
152
     ;;
 
153
esac
 
154
fi
 
155
"
 
156
  as_required="as_fn_return () { (exit \$1); }
 
157
as_fn_success () { as_fn_return 0; }
 
158
as_fn_failure () { as_fn_return 1; }
 
159
as_fn_ret_success () { return 0; }
 
160
as_fn_ret_failure () { return 1; }
 
161
 
 
162
exitcode=0
 
163
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
164
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
165
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
166
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
167
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
168
 
 
169
else
 
170
  exitcode=1; echo positional parameters were not saved.
 
171
fi
 
172
test x\$exitcode = x0 || exit 1"
 
173
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
174
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
175
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
176
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || 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
test \$(( 1 + 1 )) = 2 || exit 1"
 
186
  if (eval "$as_required") 2>/dev/null; then :
 
187
  as_have_required=yes
 
188
else
 
189
  as_have_required=no
 
190
fi
 
191
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
192
 
 
193
else
 
194
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
195
as_found=false
 
196
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
197
do
 
198
  IFS=$as_save_IFS
 
199
  test -z "$as_dir" && as_dir=.
 
200
  as_found=:
 
201
  case $as_dir in #(
 
202
         /*)
 
203
           for as_base in sh bash ksh sh5; do
 
204
             # Try only shells that exist, to save several forks.
 
205
             as_shell=$as_dir/$as_base
 
206
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
207
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
208
  CONFIG_SHELL=$as_shell as_have_required=yes
 
209
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
210
  break 2
 
211
fi
 
212
fi
 
213
           done;;
 
214
       esac
 
215
  as_found=false
 
216
done
 
217
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
218
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
219
  CONFIG_SHELL=$SHELL as_have_required=yes
 
220
fi; }
 
221
IFS=$as_save_IFS
 
222
 
 
223
 
 
224
      if test "x$CONFIG_SHELL" != x; then :
 
225
  # We cannot yet assume a decent shell, so we have to provide a
 
226
        # neutralization value for shells without unset; and this also
 
227
        # works around shells that cannot unset nonexistent variables.
 
228
        # Preserve -v and -x to the replacement shell.
 
229
        BASH_ENV=/dev/null
 
230
        ENV=/dev/null
 
231
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
232
        export CONFIG_SHELL
 
233
        case $- in # ((((
 
234
          *v*x* | *x*v* ) as_opts=-vx ;;
 
235
          *v* ) as_opts=-v ;;
 
236
          *x* ) as_opts=-x ;;
 
237
          * ) as_opts= ;;
 
238
        esac
 
239
        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
 
240
fi
 
241
 
 
242
    if test x$as_have_required = xno; then :
 
243
  $as_echo "$0: This script requires a shell more modern than all"
 
244
  $as_echo "$0: the shells that I found on your system."
 
245
  if test x${ZSH_VERSION+set} = xset ; then
 
246
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
247
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
248
  else
 
249
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
 
250
$0: http://bugs.launchpad.net/indicator-power about your
 
251
$0: system, including any error possibly output before this
 
252
$0: message. Then install a modern shell, or manually run
 
253
$0: the script under such a shell if you do have one."
 
254
  fi
 
255
  exit 1
 
256
fi
 
257
fi
 
258
fi
 
259
SHELL=${CONFIG_SHELL-/bin/sh}
 
260
export SHELL
 
261
# Unset more variables known to interfere with behavior of common tools.
 
262
CLICOLOR_FORCE= GREP_OPTIONS=
 
263
unset CLICOLOR_FORCE GREP_OPTIONS
 
264
 
 
265
## --------------------- ##
 
266
## M4sh Shell Functions. ##
 
267
## --------------------- ##
 
268
# as_fn_unset VAR
 
269
# ---------------
 
270
# Portably unset VAR.
 
271
as_fn_unset ()
 
272
{
 
273
  { eval $1=; unset $1;}
 
274
}
 
275
as_unset=as_fn_unset
 
276
 
 
277
# as_fn_set_status STATUS
 
278
# -----------------------
 
279
# Set $? to STATUS, without forking.
 
280
as_fn_set_status ()
 
281
{
 
282
  return $1
 
283
} # as_fn_set_status
 
284
 
 
285
# as_fn_exit STATUS
 
286
# -----------------
 
287
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
288
as_fn_exit ()
 
289
{
 
290
  set +e
 
291
  as_fn_set_status $1
 
292
  exit $1
 
293
} # as_fn_exit
 
294
 
 
295
# as_fn_mkdir_p
 
296
# -------------
 
297
# Create "$as_dir" as a directory, including parents if necessary.
 
298
as_fn_mkdir_p ()
 
299
{
 
300
 
 
301
  case $as_dir in #(
 
302
  -*) as_dir=./$as_dir;;
 
303
  esac
 
304
  test -d "$as_dir" || eval $as_mkdir_p || {
 
305
    as_dirs=
 
306
    while :; do
 
307
      case $as_dir in #(
 
308
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
309
      *) as_qdir=$as_dir;;
 
310
      esac
 
311
      as_dirs="'$as_qdir' $as_dirs"
 
312
      as_dir=`$as_dirname -- "$as_dir" ||
 
313
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
314
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
315
         X"$as_dir" : 'X\(//\)$' \| \
 
316
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
317
$as_echo X"$as_dir" |
 
318
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
319
            s//\1/
 
320
            q
 
321
          }
 
322
          /^X\(\/\/\)[^/].*/{
 
323
            s//\1/
 
324
            q
 
325
          }
 
326
          /^X\(\/\/\)$/{
 
327
            s//\1/
 
328
            q
 
329
          }
 
330
          /^X\(\/\).*/{
 
331
            s//\1/
 
332
            q
 
333
          }
 
334
          s/.*/./; q'`
 
335
      test -d "$as_dir" && break
 
336
    done
 
337
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
338
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
339
 
 
340
 
 
341
} # as_fn_mkdir_p
 
342
# as_fn_append VAR VALUE
 
343
# ----------------------
 
344
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
345
# advantage of any shell optimizations that allow amortized linear growth over
 
346
# repeated appends, instead of the typical quadratic growth present in naive
 
347
# implementations.
 
348
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
349
  eval 'as_fn_append ()
 
350
  {
 
351
    eval $1+=\$2
 
352
  }'
 
353
else
 
354
  as_fn_append ()
 
355
  {
 
356
    eval $1=\$$1\$2
 
357
  }
 
358
fi # as_fn_append
 
359
 
 
360
# as_fn_arith ARG...
 
361
# ------------------
 
362
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
363
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
364
# must be portable across $(()) and expr.
 
365
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
366
  eval 'as_fn_arith ()
 
367
  {
 
368
    as_val=$(( $* ))
 
369
  }'
 
370
else
 
371
  as_fn_arith ()
 
372
  {
 
373
    as_val=`expr "$@" || test $? -eq 1`
 
374
  }
 
375
fi # as_fn_arith
 
376
 
 
377
 
 
378
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
379
# ----------------------------------------
 
380
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
381
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
382
# script with STATUS, using 1 if that was 0.
 
383
as_fn_error ()
 
384
{
 
385
  as_status=$1; test $as_status -eq 0 && as_status=1
 
386
  if test "$4"; then
 
387
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
388
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
389
  fi
 
390
  $as_echo "$as_me: error: $2" >&2
 
391
  as_fn_exit $as_status
 
392
} # as_fn_error
 
393
 
 
394
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
395
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
396
  as_expr=expr
 
397
else
 
398
  as_expr=false
 
399
fi
 
400
 
 
401
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
402
  as_basename=basename
 
403
else
 
404
  as_basename=false
 
405
fi
 
406
 
 
407
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
408
  as_dirname=dirname
 
409
else
 
410
  as_dirname=false
 
411
fi
 
412
 
 
413
as_me=`$as_basename -- "$0" ||
 
414
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
415
         X"$0" : 'X\(//\)$' \| \
 
416
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
417
$as_echo X/"$0" |
 
418
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
419
            s//\1/
 
420
            q
 
421
          }
 
422
          /^X\/\(\/\/\)$/{
 
423
            s//\1/
 
424
            q
 
425
          }
 
426
          /^X\/\(\/\).*/{
 
427
            s//\1/
 
428
            q
 
429
          }
 
430
          s/.*/./; q'`
 
431
 
 
432
# Avoid depending upon Character Ranges.
 
433
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
434
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
435
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
436
as_cr_digits='0123456789'
 
437
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
438
 
 
439
 
 
440
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
441
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
442
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
443
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
444
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
445
  sed -n '
 
446
    p
 
447
    /[$]LINENO/=
 
448
  ' <$as_myself |
 
449
    sed '
 
450
      s/[$]LINENO.*/&-/
 
451
      t lineno
 
452
      b
 
453
      :lineno
 
454
      N
 
455
      :loop
 
456
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
457
      t loop
 
458
      s/-\n.*//
 
459
    ' >$as_me.lineno &&
 
460
  chmod +x "$as_me.lineno" ||
 
461
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
462
 
 
463
  # Don't try to exec as it changes $[0], causing all sort of problems
 
464
  # (the dirname of $[0] is not the place where we might find the
 
465
  # original and so on.  Autoconf is especially sensitive to this).
 
466
  . "./$as_me.lineno"
 
467
  # Exit status is that of the last command.
 
468
  exit
 
469
}
 
470
 
 
471
ECHO_C= ECHO_N= ECHO_T=
 
472
case `echo -n x` in #(((((
 
473
-n*)
 
474
  case `echo 'xy\c'` in
 
475
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
476
  xy)  ECHO_C='\c';;
 
477
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
478
       ECHO_T=' ';;
 
479
  esac;;
 
480
*)
 
481
  ECHO_N='-n';;
 
482
esac
 
483
 
 
484
rm -f conf$$ conf$$.exe conf$$.file
 
485
if test -d conf$$.dir; then
 
486
  rm -f conf$$.dir/conf$$.file
 
487
else
 
488
  rm -f conf$$.dir
 
489
  mkdir conf$$.dir 2>/dev/null
 
490
fi
 
491
if (echo >conf$$.file) 2>/dev/null; then
 
492
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
493
    as_ln_s='ln -s'
 
494
    # ... but there are two gotchas:
 
495
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
496
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
497
    # In both cases, we have to default to `cp -p'.
 
498
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
499
      as_ln_s='cp -p'
 
500
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
501
    as_ln_s=ln
 
502
  else
 
503
    as_ln_s='cp -p'
 
504
  fi
 
505
else
 
506
  as_ln_s='cp -p'
 
507
fi
 
508
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
509
rmdir conf$$.dir 2>/dev/null
 
510
 
 
511
if mkdir -p . 2>/dev/null; then
 
512
  as_mkdir_p='mkdir -p "$as_dir"'
 
513
else
 
514
  test -d ./-p && rmdir ./-p
 
515
  as_mkdir_p=false
 
516
fi
 
517
 
 
518
if test -x / >/dev/null 2>&1; then
 
519
  as_test_x='test -x'
 
520
else
 
521
  if ls -dL / >/dev/null 2>&1; then
 
522
    as_ls_L_option=L
 
523
  else
 
524
    as_ls_L_option=
 
525
  fi
 
526
  as_test_x='
 
527
    eval sh -c '\''
 
528
      if test -d "$1"; then
 
529
        test -d "$1/.";
 
530
      else
 
531
        case $1 in #(
 
532
        -*)set "./$1";;
 
533
        esac;
 
534
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
535
        ???[sx]*):;;*)false;;esac;fi
 
536
    '\'' sh
 
537
  '
 
538
fi
 
539
as_executable_p=$as_test_x
 
540
 
 
541
# Sed expression to map a string onto a valid CPP name.
 
542
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
543
 
 
544
# Sed expression to map a string onto a valid variable name.
 
545
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
546
 
 
547
SHELL=${CONFIG_SHELL-/bin/sh}
 
548
 
 
549
 
 
550
test -n "$DJDIR" || exec 7<&0 </dev/null
 
551
exec 6>&1
 
552
 
 
553
# Name of the host.
 
554
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 
555
# so uname gets run too.
 
556
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
557
 
 
558
#
 
559
# Initializations.
 
560
#
 
561
ac_default_prefix=/usr/local
 
562
ac_clean_files=
 
563
ac_config_libobj_dir=.
 
564
LIBOBJS=
 
565
cross_compiling=no
 
566
subdirs=
 
567
MFLAGS=
 
568
MAKEFLAGS=
 
569
 
 
570
# Identity of this package.
 
571
PACKAGE_NAME='indicator-power'
 
572
PACKAGE_TARNAME='indicator-power'
 
573
PACKAGE_VERSION='0.1'
 
574
PACKAGE_STRING='indicator-power 0.1'
 
575
PACKAGE_BUGREPORT='http://bugs.launchpad.net/indicator-power'
 
576
PACKAGE_URL='http://launchpad.net/indicator-power'
 
577
 
 
578
ac_unique_file="configure.ac"
 
579
# Factoring default headers for most tests.
 
580
ac_includes_default="\
 
581
#include <stdio.h>
 
582
#ifdef HAVE_SYS_TYPES_H
 
583
# include <sys/types.h>
 
584
#endif
 
585
#ifdef HAVE_SYS_STAT_H
 
586
# include <sys/stat.h>
 
587
#endif
 
588
#ifdef STDC_HEADERS
 
589
# include <stdlib.h>
 
590
# include <stddef.h>
 
591
#else
 
592
# ifdef HAVE_STDLIB_H
 
593
#  include <stdlib.h>
 
594
# endif
 
595
#endif
 
596
#ifdef HAVE_STRING_H
 
597
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
598
#  include <memory.h>
 
599
# endif
 
600
# include <string.h>
 
601
#endif
 
602
#ifdef HAVE_STRINGS_H
 
603
# include <strings.h>
 
604
#endif
 
605
#ifdef HAVE_INTTYPES_H
 
606
# include <inttypes.h>
 
607
#endif
 
608
#ifdef HAVE_STDINT_H
 
609
# include <stdint.h>
 
610
#endif
 
611
#ifdef HAVE_UNISTD_H
 
612
# include <unistd.h>
 
613
#endif"
 
614
 
 
615
gt_needs=
 
616
ac_subst_vars='am__EXEEXT_FALSE
 
617
am__EXEEXT_TRUE
 
618
LTLIBOBJS
 
619
LIBOBJS
 
620
GETTEXT_PACKAGE
 
621
POSUB
 
622
LTLIBINTL
 
623
LIBINTL
 
624
INTLLIBS
 
625
LTLIBICONV
 
626
LIBICONV
 
627
INTL_MACOSX_LIBS
 
628
XGETTEXT_EXTRA_OPTIONS
 
629
XGETTEXT_015
 
630
GMSGFMT_015
 
631
MSGFMT_015
 
632
GETTEXT_MACRO_VERSION
 
633
DATADIRNAME
 
634
ALL_LINGUAS
 
635
INTLTOOL_PERL
 
636
GMSGFMT
 
637
MSGFMT
 
638
MSGMERGE
 
639
XGETTEXT
 
640
INTLTOOL_POLICY_RULE
 
641
INTLTOOL_SERVICE_RULE
 
642
INTLTOOL_THEME_RULE
 
643
INTLTOOL_SCHEMAS_RULE
 
644
INTLTOOL_CAVES_RULE
 
645
INTLTOOL_XML_NOMERGE_RULE
 
646
INTLTOOL_XML_RULE
 
647
INTLTOOL_KBD_RULE
 
648
INTLTOOL_XAM_RULE
 
649
INTLTOOL_UI_RULE
 
650
INTLTOOL_SOUNDLIST_RULE
 
651
INTLTOOL_SHEET_RULE
 
652
INTLTOOL_SERVER_RULE
 
653
INTLTOOL_PONG_RULE
 
654
INTLTOOL_OAF_RULE
 
655
INTLTOOL_PROP_RULE
 
656
INTLTOOL_KEYS_RULE
 
657
INTLTOOL_DIRECTORY_RULE
 
658
INTLTOOL_DESKTOP_RULE
 
659
INTLTOOL_EXTRACT
 
660
INTLTOOL_MERGE
 
661
INTLTOOL_UPDATE
 
662
USE_NLS
 
663
DBUSSERVICEDIR
 
664
INDICATORICONSDIR
 
665
INDICATORDIR
 
666
INDICATOR_LIBS
 
667
INDICATOR_CFLAGS
 
668
UPOWER_LIBS
 
669
UPOWER_CFLAGS
 
670
PKG_CONFIG_LIBDIR
 
671
PKG_CONFIG_PATH
 
672
PKG_CONFIG
 
673
CPP
 
674
OTOOL64
 
675
OTOOL
 
676
LIPO
 
677
NMEDIT
 
678
DSYMUTIL
 
679
MANIFEST_TOOL
 
680
RANLIB
 
681
ac_ct_AR
 
682
AR
 
683
DLLTOOL
 
684
OBJDUMP
 
685
LN_S
 
686
NM
 
687
ac_ct_DUMPBIN
 
688
DUMPBIN
 
689
LD
 
690
FGREP
 
691
EGREP
 
692
GREP
 
693
SED
 
694
host_os
 
695
host_vendor
 
696
host_cpu
 
697
host
 
698
build_os
 
699
build_vendor
 
700
build_cpu
 
701
build
 
702
LIBTOOL
 
703
am__fastdepCC_FALSE
 
704
am__fastdepCC_TRUE
 
705
CCDEPMODE
 
706
AMDEPBACKSLASH
 
707
AMDEP_FALSE
 
708
AMDEP_TRUE
 
709
am__quote
 
710
am__include
 
711
DEPDIR
 
712
OBJEXT
 
713
EXEEXT
 
714
ac_ct_CC
 
715
CPPFLAGS
 
716
LDFLAGS
 
717
CFLAGS
 
718
CC
 
719
AM_BACKSLASH
 
720
AM_DEFAULT_VERBOSITY
 
721
MAINT
 
722
MAINTAINER_MODE_FALSE
 
723
MAINTAINER_MODE_TRUE
 
724
am__untar
 
725
am__tar
 
726
AMTAR
 
727
am__leading_dot
 
728
SET_MAKE
 
729
AWK
 
730
mkdir_p
 
731
MKDIR_P
 
732
INSTALL_STRIP_PROGRAM
 
733
STRIP
 
734
install_sh
 
735
MAKEINFO
 
736
AUTOHEADER
 
737
AUTOMAKE
 
738
AUTOCONF
 
739
ACLOCAL
 
740
VERSION
 
741
PACKAGE
 
742
CYGPATH_W
 
743
am__isrc
 
744
INSTALL_DATA
 
745
INSTALL_SCRIPT
 
746
INSTALL_PROGRAM
 
747
target_alias
 
748
host_alias
 
749
build_alias
 
750
LIBS
 
751
ECHO_T
 
752
ECHO_N
 
753
ECHO_C
 
754
DEFS
 
755
mandir
 
756
localedir
 
757
libdir
 
758
psdir
 
759
pdfdir
 
760
dvidir
 
761
htmldir
 
762
infodir
 
763
docdir
 
764
oldincludedir
 
765
includedir
 
766
localstatedir
 
767
sharedstatedir
 
768
sysconfdir
 
769
datadir
 
770
datarootdir
 
771
libexecdir
 
772
sbindir
 
773
bindir
 
774
program_transform_name
 
775
prefix
 
776
exec_prefix
 
777
PACKAGE_URL
 
778
PACKAGE_BUGREPORT
 
779
PACKAGE_STRING
 
780
PACKAGE_VERSION
 
781
PACKAGE_TARNAME
 
782
PACKAGE_NAME
 
783
PATH_SEPARATOR
 
784
SHELL'
 
785
ac_subst_files=''
 
786
ac_user_opts='
 
787
enable_option_checking
 
788
enable_maintainer_mode
 
789
enable_silent_rules
 
790
enable_dependency_tracking
 
791
enable_shared
 
792
enable_static
 
793
with_pic
 
794
enable_fast_install
 
795
with_gnu_ld
 
796
with_sysroot
 
797
enable_libtool_lock
 
798
enable_localinstall
 
799
enable_nls
 
800
enable_rpath
 
801
with_libiconv_prefix
 
802
with_libintl_prefix
 
803
'
 
804
      ac_precious_vars='build_alias
 
805
host_alias
 
806
target_alias
 
807
CC
 
808
CFLAGS
 
809
LDFLAGS
 
810
LIBS
 
811
CPPFLAGS
 
812
CPP
 
813
PKG_CONFIG
 
814
PKG_CONFIG_PATH
 
815
PKG_CONFIG_LIBDIR
 
816
UPOWER_CFLAGS
 
817
UPOWER_LIBS
 
818
INDICATOR_CFLAGS
 
819
INDICATOR_LIBS'
 
820
 
 
821
 
 
822
# Initialize some variables set by options.
 
823
ac_init_help=
 
824
ac_init_version=false
 
825
ac_unrecognized_opts=
 
826
ac_unrecognized_sep=
 
827
# The variables have the same names as the options, with
 
828
# dashes changed to underlines.
 
829
cache_file=/dev/null
 
830
exec_prefix=NONE
 
831
no_create=
 
832
no_recursion=
 
833
prefix=NONE
 
834
program_prefix=NONE
 
835
program_suffix=NONE
 
836
program_transform_name=s,x,x,
 
837
silent=
 
838
site=
 
839
srcdir=
 
840
verbose=
 
841
x_includes=NONE
 
842
x_libraries=NONE
 
843
 
 
844
# Installation directory options.
 
845
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
846
# and all the variables that are supposed to be based on exec_prefix
 
847
# by default will actually change.
 
848
# Use braces instead of parens because sh, perl, etc. also accept them.
 
849
# (The list follows the same order as the GNU Coding Standards.)
 
850
bindir='${exec_prefix}/bin'
 
851
sbindir='${exec_prefix}/sbin'
 
852
libexecdir='${exec_prefix}/libexec'
 
853
datarootdir='${prefix}/share'
 
854
datadir='${datarootdir}'
 
855
sysconfdir='${prefix}/etc'
 
856
sharedstatedir='${prefix}/com'
 
857
localstatedir='${prefix}/var'
 
858
includedir='${prefix}/include'
 
859
oldincludedir='/usr/include'
 
860
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
861
infodir='${datarootdir}/info'
 
862
htmldir='${docdir}'
 
863
dvidir='${docdir}'
 
864
pdfdir='${docdir}'
 
865
psdir='${docdir}'
 
866
libdir='${exec_prefix}/lib'
 
867
localedir='${datarootdir}/locale'
 
868
mandir='${datarootdir}/man'
 
869
 
 
870
ac_prev=
 
871
ac_dashdash=
 
872
for ac_option
 
873
do
 
874
  # If the previous option needs an argument, assign it.
 
875
  if test -n "$ac_prev"; then
 
876
    eval $ac_prev=\$ac_option
 
877
    ac_prev=
 
878
    continue
 
879
  fi
 
880
 
 
881
  case $ac_option in
 
882
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
883
  *=)   ac_optarg= ;;
 
884
  *)    ac_optarg=yes ;;
 
885
  esac
 
886
 
 
887
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
888
 
 
889
  case $ac_dashdash$ac_option in
 
890
  --)
 
891
    ac_dashdash=yes ;;
 
892
 
 
893
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
894
    ac_prev=bindir ;;
 
895
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
896
    bindir=$ac_optarg ;;
 
897
 
 
898
  -build | --build | --buil | --bui | --bu)
 
899
    ac_prev=build_alias ;;
 
900
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
901
    build_alias=$ac_optarg ;;
 
902
 
 
903
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
904
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
905
    ac_prev=cache_file ;;
 
906
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
907
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
908
    cache_file=$ac_optarg ;;
 
909
 
 
910
  --config-cache | -C)
 
911
    cache_file=config.cache ;;
 
912
 
 
913
  -datadir | --datadir | --datadi | --datad)
 
914
    ac_prev=datadir ;;
 
915
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
916
    datadir=$ac_optarg ;;
 
917
 
 
918
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
919
  | --dataroo | --dataro | --datar)
 
920
    ac_prev=datarootdir ;;
 
921
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
922
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
923
    datarootdir=$ac_optarg ;;
 
924
 
 
925
  -disable-* | --disable-*)
 
926
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
927
    # Reject names that are not valid shell variable names.
 
928
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
929
      as_fn_error $? "invalid feature name: $ac_useropt"
 
930
    ac_useropt_orig=$ac_useropt
 
931
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
932
    case $ac_user_opts in
 
933
      *"
 
934
"enable_$ac_useropt"
 
935
"*) ;;
 
936
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
937
         ac_unrecognized_sep=', ';;
 
938
    esac
 
939
    eval enable_$ac_useropt=no ;;
 
940
 
 
941
  -docdir | --docdir | --docdi | --doc | --do)
 
942
    ac_prev=docdir ;;
 
943
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
944
    docdir=$ac_optarg ;;
 
945
 
 
946
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
947
    ac_prev=dvidir ;;
 
948
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
949
    dvidir=$ac_optarg ;;
 
950
 
 
951
  -enable-* | --enable-*)
 
952
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
953
    # Reject names that are not valid shell variable names.
 
954
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
955
      as_fn_error $? "invalid feature name: $ac_useropt"
 
956
    ac_useropt_orig=$ac_useropt
 
957
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
958
    case $ac_user_opts in
 
959
      *"
 
960
"enable_$ac_useropt"
 
961
"*) ;;
 
962
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
963
         ac_unrecognized_sep=', ';;
 
964
    esac
 
965
    eval enable_$ac_useropt=\$ac_optarg ;;
 
966
 
 
967
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
968
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
969
  | --exec | --exe | --ex)
 
970
    ac_prev=exec_prefix ;;
 
971
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
972
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
973
  | --exec=* | --exe=* | --ex=*)
 
974
    exec_prefix=$ac_optarg ;;
 
975
 
 
976
  -gas | --gas | --ga | --g)
 
977
    # Obsolete; use --with-gas.
 
978
    with_gas=yes ;;
 
979
 
 
980
  -help | --help | --hel | --he | -h)
 
981
    ac_init_help=long ;;
 
982
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
983
    ac_init_help=recursive ;;
 
984
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
985
    ac_init_help=short ;;
 
986
 
 
987
  -host | --host | --hos | --ho)
 
988
    ac_prev=host_alias ;;
 
989
  -host=* | --host=* | --hos=* | --ho=*)
 
990
    host_alias=$ac_optarg ;;
 
991
 
 
992
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
993
    ac_prev=htmldir ;;
 
994
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
995
  | --ht=*)
 
996
    htmldir=$ac_optarg ;;
 
997
 
 
998
  -includedir | --includedir | --includedi | --included | --include \
 
999
  | --includ | --inclu | --incl | --inc)
 
1000
    ac_prev=includedir ;;
 
1001
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1002
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1003
    includedir=$ac_optarg ;;
 
1004
 
 
1005
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1006
    ac_prev=infodir ;;
 
1007
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1008
    infodir=$ac_optarg ;;
 
1009
 
 
1010
  -libdir | --libdir | --libdi | --libd)
 
1011
    ac_prev=libdir ;;
 
1012
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1013
    libdir=$ac_optarg ;;
 
1014
 
 
1015
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1016
  | --libexe | --libex | --libe)
 
1017
    ac_prev=libexecdir ;;
 
1018
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1019
  | --libexe=* | --libex=* | --libe=*)
 
1020
    libexecdir=$ac_optarg ;;
 
1021
 
 
1022
  -localedir | --localedir | --localedi | --localed | --locale)
 
1023
    ac_prev=localedir ;;
 
1024
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1025
    localedir=$ac_optarg ;;
 
1026
 
 
1027
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1028
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1029
    ac_prev=localstatedir ;;
 
1030
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1031
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1032
    localstatedir=$ac_optarg ;;
 
1033
 
 
1034
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1035
    ac_prev=mandir ;;
 
1036
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1037
    mandir=$ac_optarg ;;
 
1038
 
 
1039
  -nfp | --nfp | --nf)
 
1040
    # Obsolete; use --without-fp.
 
1041
    with_fp=no ;;
 
1042
 
 
1043
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1044
  | --no-cr | --no-c | -n)
 
1045
    no_create=yes ;;
 
1046
 
 
1047
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1048
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1049
    no_recursion=yes ;;
 
1050
 
 
1051
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1052
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1053
  | --oldin | --oldi | --old | --ol | --o)
 
1054
    ac_prev=oldincludedir ;;
 
1055
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1056
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1057
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1058
    oldincludedir=$ac_optarg ;;
 
1059
 
 
1060
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1061
    ac_prev=prefix ;;
 
1062
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1063
    prefix=$ac_optarg ;;
 
1064
 
 
1065
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1066
  | --program-pre | --program-pr | --program-p)
 
1067
    ac_prev=program_prefix ;;
 
1068
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1069
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1070
    program_prefix=$ac_optarg ;;
 
1071
 
 
1072
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1073
  | --program-suf | --program-su | --program-s)
 
1074
    ac_prev=program_suffix ;;
 
1075
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1076
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1077
    program_suffix=$ac_optarg ;;
 
1078
 
 
1079
  -program-transform-name | --program-transform-name \
 
1080
  | --program-transform-nam | --program-transform-na \
 
1081
  | --program-transform-n | --program-transform- \
 
1082
  | --program-transform | --program-transfor \
 
1083
  | --program-transfo | --program-transf \
 
1084
  | --program-trans | --program-tran \
 
1085
  | --progr-tra | --program-tr | --program-t)
 
1086
    ac_prev=program_transform_name ;;
 
1087
  -program-transform-name=* | --program-transform-name=* \
 
1088
  | --program-transform-nam=* | --program-transform-na=* \
 
1089
  | --program-transform-n=* | --program-transform-=* \
 
1090
  | --program-transform=* | --program-transfor=* \
 
1091
  | --program-transfo=* | --program-transf=* \
 
1092
  | --program-trans=* | --program-tran=* \
 
1093
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1094
    program_transform_name=$ac_optarg ;;
 
1095
 
 
1096
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1097
    ac_prev=pdfdir ;;
 
1098
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1099
    pdfdir=$ac_optarg ;;
 
1100
 
 
1101
  -psdir | --psdir | --psdi | --psd | --ps)
 
1102
    ac_prev=psdir ;;
 
1103
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1104
    psdir=$ac_optarg ;;
 
1105
 
 
1106
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1107
  | -silent | --silent | --silen | --sile | --sil)
 
1108
    silent=yes ;;
 
1109
 
 
1110
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1111
    ac_prev=sbindir ;;
 
1112
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1113
  | --sbi=* | --sb=*)
 
1114
    sbindir=$ac_optarg ;;
 
1115
 
 
1116
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1117
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1118
  | --sharedst | --shareds | --shared | --share | --shar \
 
1119
  | --sha | --sh)
 
1120
    ac_prev=sharedstatedir ;;
 
1121
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1122
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1123
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1124
  | --sha=* | --sh=*)
 
1125
    sharedstatedir=$ac_optarg ;;
 
1126
 
 
1127
  -site | --site | --sit)
 
1128
    ac_prev=site ;;
 
1129
  -site=* | --site=* | --sit=*)
 
1130
    site=$ac_optarg ;;
 
1131
 
 
1132
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1133
    ac_prev=srcdir ;;
 
1134
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1135
    srcdir=$ac_optarg ;;
 
1136
 
 
1137
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1138
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1139
    ac_prev=sysconfdir ;;
 
1140
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1141
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1142
    sysconfdir=$ac_optarg ;;
 
1143
 
 
1144
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1145
    ac_prev=target_alias ;;
 
1146
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1147
    target_alias=$ac_optarg ;;
 
1148
 
 
1149
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1150
    verbose=yes ;;
 
1151
 
 
1152
  -version | --version | --versio | --versi | --vers | -V)
 
1153
    ac_init_version=: ;;
 
1154
 
 
1155
  -with-* | --with-*)
 
1156
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1157
    # Reject names that are not valid shell variable names.
 
1158
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1159
      as_fn_error $? "invalid package name: $ac_useropt"
 
1160
    ac_useropt_orig=$ac_useropt
 
1161
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1162
    case $ac_user_opts in
 
1163
      *"
 
1164
"with_$ac_useropt"
 
1165
"*) ;;
 
1166
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1167
         ac_unrecognized_sep=', ';;
 
1168
    esac
 
1169
    eval with_$ac_useropt=\$ac_optarg ;;
 
1170
 
 
1171
  -without-* | --without-*)
 
1172
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1173
    # Reject names that are not valid shell variable names.
 
1174
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1175
      as_fn_error $? "invalid package name: $ac_useropt"
 
1176
    ac_useropt_orig=$ac_useropt
 
1177
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1178
    case $ac_user_opts in
 
1179
      *"
 
1180
"with_$ac_useropt"
 
1181
"*) ;;
 
1182
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1183
         ac_unrecognized_sep=', ';;
 
1184
    esac
 
1185
    eval with_$ac_useropt=no ;;
 
1186
 
 
1187
  --x)
 
1188
    # Obsolete; use --with-x.
 
1189
    with_x=yes ;;
 
1190
 
 
1191
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1192
  | --x-incl | --x-inc | --x-in | --x-i)
 
1193
    ac_prev=x_includes ;;
 
1194
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1195
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1196
    x_includes=$ac_optarg ;;
 
1197
 
 
1198
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1199
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1200
    ac_prev=x_libraries ;;
 
1201
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1202
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1203
    x_libraries=$ac_optarg ;;
 
1204
 
 
1205
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1206
Try \`$0 --help' for more information"
 
1207
    ;;
 
1208
 
 
1209
  *=*)
 
1210
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1211
    # Reject names that are not valid shell variable names.
 
1212
    case $ac_envvar in #(
 
1213
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1214
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1215
    esac
 
1216
    eval $ac_envvar=\$ac_optarg
 
1217
    export $ac_envvar ;;
 
1218
 
 
1219
  *)
 
1220
    # FIXME: should be removed in autoconf 3.0.
 
1221
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1222
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1223
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1224
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 
1225
    ;;
 
1226
 
 
1227
  esac
 
1228
done
 
1229
 
 
1230
if test -n "$ac_prev"; then
 
1231
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1232
  as_fn_error $? "missing argument to $ac_option"
 
1233
fi
 
1234
 
 
1235
if test -n "$ac_unrecognized_opts"; then
 
1236
  case $enable_option_checking in
 
1237
    no) ;;
 
1238
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1239
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1240
  esac
 
1241
fi
 
1242
 
 
1243
# Check all directory arguments for consistency.
 
1244
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1245
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1246
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1247
                libdir localedir mandir
 
1248
do
 
1249
  eval ac_val=\$$ac_var
 
1250
  # Remove trailing slashes.
 
1251
  case $ac_val in
 
1252
    */ )
 
1253
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1254
      eval $ac_var=\$ac_val;;
 
1255
  esac
 
1256
  # Be sure to have absolute directory names.
 
1257
  case $ac_val in
 
1258
    [\\/$]* | ?:[\\/]* )  continue;;
 
1259
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1260
  esac
 
1261
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 
1262
done
 
1263
 
 
1264
# There might be people who depend on the old broken behavior: `$host'
 
1265
# used to hold the argument of --host etc.
 
1266
# FIXME: To remove some day.
 
1267
build=$build_alias
 
1268
host=$host_alias
 
1269
target=$target_alias
 
1270
 
 
1271
# FIXME: To remove some day.
 
1272
if test "x$host_alias" != x; then
 
1273
  if test "x$build_alias" = x; then
 
1274
    cross_compiling=maybe
 
1275
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
 
1276
    If a cross compiler is detected then cross compile mode will be used" >&2
 
1277
  elif test "x$build_alias" != "x$host_alias"; then
 
1278
    cross_compiling=yes
 
1279
  fi
 
1280
fi
 
1281
 
 
1282
ac_tool_prefix=
 
1283
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1284
 
 
1285
test "$silent" = yes && exec 6>/dev/null
 
1286
 
 
1287
 
 
1288
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1289
ac_ls_di=`ls -di .` &&
 
1290
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1291
  as_fn_error $? "working directory cannot be determined"
 
1292
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1293
  as_fn_error $? "pwd does not report name of working directory"
 
1294
 
 
1295
 
 
1296
# Find the source files, if location was not specified.
 
1297
if test -z "$srcdir"; then
 
1298
  ac_srcdir_defaulted=yes
 
1299
  # Try the directory containing this script, then the parent directory.
 
1300
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1301
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1302
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1303
         X"$as_myself" : 'X\(//\)$' \| \
 
1304
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1305
$as_echo X"$as_myself" |
 
1306
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1307
            s//\1/
 
1308
            q
 
1309
          }
 
1310
          /^X\(\/\/\)[^/].*/{
 
1311
            s//\1/
 
1312
            q
 
1313
          }
 
1314
          /^X\(\/\/\)$/{
 
1315
            s//\1/
 
1316
            q
 
1317
          }
 
1318
          /^X\(\/\).*/{
 
1319
            s//\1/
 
1320
            q
 
1321
          }
 
1322
          s/.*/./; q'`
 
1323
  srcdir=$ac_confdir
 
1324
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1325
    srcdir=..
 
1326
  fi
 
1327
else
 
1328
  ac_srcdir_defaulted=no
 
1329
fi
 
1330
if test ! -r "$srcdir/$ac_unique_file"; then
 
1331
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1332
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 
1333
fi
 
1334
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1335
ac_abs_confdir=`(
 
1336
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 
1337
        pwd)`
 
1338
# When building in place, set srcdir=.
 
1339
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1340
  srcdir=.
 
1341
fi
 
1342
# Remove unnecessary trailing slashes from srcdir.
 
1343
# Double slashes in file names in object file debugging info
 
1344
# mess up M-x gdb in Emacs.
 
1345
case $srcdir in
 
1346
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1347
esac
 
1348
for ac_var in $ac_precious_vars; do
 
1349
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1350
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1351
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1352
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1353
done
 
1354
 
 
1355
#
 
1356
# Report the --help message.
 
1357
#
 
1358
if test "$ac_init_help" = "long"; then
 
1359
  # Omit some internal or obsolete options to make the list less imposing.
 
1360
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1361
  cat <<_ACEOF
 
1362
\`configure' configures indicator-power 0.1 to adapt to many kinds of systems.
 
1363
 
 
1364
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1365
 
 
1366
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1367
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1368
 
 
1369
Defaults for the options are specified in brackets.
 
1370
 
 
1371
Configuration:
 
1372
  -h, --help              display this help and exit
 
1373
      --help=short        display options specific to this package
 
1374
      --help=recursive    display the short help of all the included packages
 
1375
  -V, --version           display version information and exit
 
1376
  -q, --quiet, --silent   do not print \`checking ...' messages
 
1377
      --cache-file=FILE   cache test results in FILE [disabled]
 
1378
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1379
  -n, --no-create         do not create output files
 
1380
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1381
 
 
1382
Installation directories:
 
1383
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1384
                          [$ac_default_prefix]
 
1385
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1386
                          [PREFIX]
 
1387
 
 
1388
By default, \`make install' will install all the files in
 
1389
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1390
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1391
for instance \`--prefix=\$HOME'.
 
1392
 
 
1393
For better control, use the options below.
 
1394
 
 
1395
Fine tuning of the installation directories:
 
1396
  --bindir=DIR            user executables [EPREFIX/bin]
 
1397
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1398
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1399
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1400
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1401
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1402
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1403
  --includedir=DIR        C header files [PREFIX/include]
 
1404
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1405
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1406
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1407
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1408
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1409
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1410
  --docdir=DIR            documentation root [DATAROOTDIR/doc/indicator-power]
 
1411
  --htmldir=DIR           html documentation [DOCDIR]
 
1412
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1413
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1414
  --psdir=DIR             ps documentation [DOCDIR]
 
1415
_ACEOF
 
1416
 
 
1417
  cat <<\_ACEOF
 
1418
 
 
1419
Program names:
 
1420
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1421
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1422
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1423
 
 
1424
System types:
 
1425
  --build=BUILD     configure for building on BUILD [guessed]
 
1426
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1427
_ACEOF
 
1428
fi
 
1429
 
 
1430
if test -n "$ac_init_help"; then
 
1431
  case $ac_init_help in
 
1432
     short | recursive ) echo "Configuration of indicator-power 0.1:";;
 
1433
   esac
 
1434
  cat <<\_ACEOF
 
1435
 
 
1436
Optional Features:
 
1437
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1438
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1439
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1440
  --disable-maintainer-mode  disable make rules and dependencies not useful
 
1441
                          (and sometimes confusing) to the casual installer
 
1442
  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
1443
  --disable-silent-rules         verbose build output (undo: `make V=0')
 
1444
  --disable-dependency-tracking  speeds up one-time build
 
1445
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1446
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1447
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1448
  --enable-fast-install[=PKGS]
 
1449
                          optimize for fast installation [default=yes]
 
1450
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1451
  --enable-localinstall   install all of the files localy instead of system
 
1452
                          directories (for distcheck)
 
1453
  --disable-nls           do not use Native Language Support
 
1454
  --disable-rpath         do not hardcode runtime library paths
 
1455
 
 
1456
Optional Packages:
 
1457
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1458
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1459
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1460
                          both]
 
1461
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1462
  --with-sysroot=DIR Search for dependent libraries within DIR
 
1463
                        (or the compiler's sysroot if not specified).
 
1464
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
1465
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
 
1466
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
 
1467
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
 
1468
  --without-libintl-prefix     don't search for libintl in includedir and libdir
 
1469
 
 
1470
Some influential environment variables:
 
1471
  CC          C compiler command
 
1472
  CFLAGS      C compiler flags
 
1473
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1474
              nonstandard directory <lib dir>
 
1475
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1476
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1477
              you have headers in a nonstandard directory <include dir>
 
1478
  CPP         C preprocessor
 
1479
  PKG_CONFIG  path to pkg-config utility
 
1480
  PKG_CONFIG_PATH
 
1481
              directories to add to pkg-config's search path
 
1482
  PKG_CONFIG_LIBDIR
 
1483
              path overriding pkg-config's built-in search path
 
1484
  UPOWER_CFLAGS
 
1485
              C compiler flags for UPOWER, overriding pkg-config
 
1486
  UPOWER_LIBS linker flags for UPOWER, overriding pkg-config
 
1487
  INDICATOR_CFLAGS
 
1488
              C compiler flags for INDICATOR, overriding pkg-config
 
1489
  INDICATOR_LIBS
 
1490
              linker flags for INDICATOR, overriding pkg-config
 
1491
 
 
1492
Use these variables to override the choices made by `configure' or to help
 
1493
it to find libraries and programs with nonstandard names/locations.
 
1494
 
 
1495
Report bugs to <http://bugs.launchpad.net/indicator-power>.
 
1496
indicator-power home page: <http://launchpad.net/indicator-power>.
 
1497
_ACEOF
 
1498
ac_status=$?
 
1499
fi
 
1500
 
 
1501
if test "$ac_init_help" = "recursive"; then
 
1502
  # If there are subdirs, report their specific --help.
 
1503
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1504
    test -d "$ac_dir" ||
 
1505
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1506
      continue
 
1507
    ac_builddir=.
 
1508
 
 
1509
case "$ac_dir" in
 
1510
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1511
*)
 
1512
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1513
  # A ".." for each directory in $ac_dir_suffix.
 
1514
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1515
  case $ac_top_builddir_sub in
 
1516
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1517
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1518
  esac ;;
 
1519
esac
 
1520
ac_abs_top_builddir=$ac_pwd
 
1521
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1522
# for backward compatibility:
 
1523
ac_top_builddir=$ac_top_build_prefix
 
1524
 
 
1525
case $srcdir in
 
1526
  .)  # We are building in place.
 
1527
    ac_srcdir=.
 
1528
    ac_top_srcdir=$ac_top_builddir_sub
 
1529
    ac_abs_top_srcdir=$ac_pwd ;;
 
1530
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1531
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1532
    ac_top_srcdir=$srcdir
 
1533
    ac_abs_top_srcdir=$srcdir ;;
 
1534
  *) # Relative name.
 
1535
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1536
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1537
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1538
esac
 
1539
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1540
 
 
1541
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1542
    # Check for guested configure.
 
1543
    if test -f "$ac_srcdir/configure.gnu"; then
 
1544
      echo &&
 
1545
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1546
    elif test -f "$ac_srcdir/configure"; then
 
1547
      echo &&
 
1548
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1549
    else
 
1550
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1551
    fi || ac_status=$?
 
1552
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1553
  done
 
1554
fi
 
1555
 
 
1556
test -n "$ac_init_help" && exit $ac_status
 
1557
if $ac_init_version; then
 
1558
  cat <<\_ACEOF
 
1559
indicator-power configure 0.1
 
1560
generated by GNU Autoconf 2.68
 
1561
 
 
1562
Copyright (C) 2010 Free Software Foundation, Inc.
 
1563
This configure script is free software; the Free Software Foundation
 
1564
gives unlimited permission to copy, distribute and modify it.
 
1565
_ACEOF
 
1566
  exit
 
1567
fi
 
1568
 
 
1569
## ------------------------ ##
 
1570
## Autoconf initialization. ##
 
1571
## ------------------------ ##
 
1572
 
 
1573
# ac_fn_c_try_compile LINENO
 
1574
# --------------------------
 
1575
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1576
ac_fn_c_try_compile ()
 
1577
{
 
1578
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1579
  rm -f conftest.$ac_objext
 
1580
  if { { ac_try="$ac_compile"
 
1581
case "(($ac_try" in
 
1582
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1583
  *) ac_try_echo=$ac_try;;
 
1584
esac
 
1585
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1586
$as_echo "$ac_try_echo"; } >&5
 
1587
  (eval "$ac_compile") 2>conftest.err
 
1588
  ac_status=$?
 
1589
  if test -s conftest.err; then
 
1590
    grep -v '^ *+' conftest.err >conftest.er1
 
1591
    cat conftest.er1 >&5
 
1592
    mv -f conftest.er1 conftest.err
 
1593
  fi
 
1594
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1595
  test $ac_status = 0; } && {
 
1596
         test -z "$ac_c_werror_flag" ||
 
1597
         test ! -s conftest.err
 
1598
       } && test -s conftest.$ac_objext; then :
 
1599
  ac_retval=0
 
1600
else
 
1601
  $as_echo "$as_me: failed program was:" >&5
 
1602
sed 's/^/| /' conftest.$ac_ext >&5
 
1603
 
 
1604
        ac_retval=1
 
1605
fi
 
1606
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1607
  as_fn_set_status $ac_retval
 
1608
 
 
1609
} # ac_fn_c_try_compile
 
1610
 
 
1611
# ac_fn_c_try_link LINENO
 
1612
# -----------------------
 
1613
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1614
ac_fn_c_try_link ()
 
1615
{
 
1616
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1617
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1618
  if { { ac_try="$ac_link"
 
1619
case "(($ac_try" in
 
1620
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1621
  *) ac_try_echo=$ac_try;;
 
1622
esac
 
1623
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1624
$as_echo "$ac_try_echo"; } >&5
 
1625
  (eval "$ac_link") 2>conftest.err
 
1626
  ac_status=$?
 
1627
  if test -s conftest.err; then
 
1628
    grep -v '^ *+' conftest.err >conftest.er1
 
1629
    cat conftest.er1 >&5
 
1630
    mv -f conftest.er1 conftest.err
 
1631
  fi
 
1632
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1633
  test $ac_status = 0; } && {
 
1634
         test -z "$ac_c_werror_flag" ||
 
1635
         test ! -s conftest.err
 
1636
       } && test -s conftest$ac_exeext && {
 
1637
         test "$cross_compiling" = yes ||
 
1638
         $as_test_x conftest$ac_exeext
 
1639
       }; then :
 
1640
  ac_retval=0
 
1641
else
 
1642
  $as_echo "$as_me: failed program was:" >&5
 
1643
sed 's/^/| /' conftest.$ac_ext >&5
 
1644
 
 
1645
        ac_retval=1
 
1646
fi
 
1647
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1648
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1649
  # interfere with the next link command; also delete a directory that is
 
1650
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1651
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1652
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1653
  as_fn_set_status $ac_retval
 
1654
 
 
1655
} # ac_fn_c_try_link
 
1656
 
 
1657
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1658
# -------------------------------------------------------
 
1659
# Tests whether HEADER exists and can be compiled using the include files in
 
1660
# INCLUDES, setting the cache variable VAR accordingly.
 
1661
ac_fn_c_check_header_compile ()
 
1662
{
 
1663
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1664
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1665
$as_echo_n "checking for $2... " >&6; }
 
1666
if eval \${$3+:} false; then :
 
1667
  $as_echo_n "(cached) " >&6
 
1668
else
 
1669
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1670
/* end confdefs.h.  */
 
1671
$4
 
1672
#include <$2>
 
1673
_ACEOF
 
1674
if ac_fn_c_try_compile "$LINENO"; then :
 
1675
  eval "$3=yes"
 
1676
else
 
1677
  eval "$3=no"
 
1678
fi
 
1679
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1680
fi
 
1681
eval ac_res=\$$3
 
1682
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1683
$as_echo "$ac_res" >&6; }
 
1684
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1685
 
 
1686
} # ac_fn_c_check_header_compile
 
1687
 
 
1688
# ac_fn_c_try_cpp LINENO
 
1689
# ----------------------
 
1690
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1691
ac_fn_c_try_cpp ()
 
1692
{
 
1693
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1694
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1695
case "(($ac_try" in
 
1696
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1697
  *) ac_try_echo=$ac_try;;
 
1698
esac
 
1699
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1700
$as_echo "$ac_try_echo"; } >&5
 
1701
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1702
  ac_status=$?
 
1703
  if test -s conftest.err; then
 
1704
    grep -v '^ *+' conftest.err >conftest.er1
 
1705
    cat conftest.er1 >&5
 
1706
    mv -f conftest.er1 conftest.err
 
1707
  fi
 
1708
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1709
  test $ac_status = 0; } > conftest.i && {
 
1710
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1711
         test ! -s conftest.err
 
1712
       }; then :
 
1713
  ac_retval=0
 
1714
else
 
1715
  $as_echo "$as_me: failed program was:" >&5
 
1716
sed 's/^/| /' conftest.$ac_ext >&5
 
1717
 
 
1718
    ac_retval=1
 
1719
fi
 
1720
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1721
  as_fn_set_status $ac_retval
 
1722
 
 
1723
} # ac_fn_c_try_cpp
 
1724
 
 
1725
# ac_fn_c_try_run LINENO
 
1726
# ----------------------
 
1727
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1728
# that executables *can* be run.
 
1729
ac_fn_c_try_run ()
 
1730
{
 
1731
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1732
  if { { ac_try="$ac_link"
 
1733
case "(($ac_try" in
 
1734
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1735
  *) ac_try_echo=$ac_try;;
 
1736
esac
 
1737
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1738
$as_echo "$ac_try_echo"; } >&5
 
1739
  (eval "$ac_link") 2>&5
 
1740
  ac_status=$?
 
1741
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1742
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1743
  { { case "(($ac_try" in
 
1744
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1745
  *) ac_try_echo=$ac_try;;
 
1746
esac
 
1747
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1748
$as_echo "$ac_try_echo"; } >&5
 
1749
  (eval "$ac_try") 2>&5
 
1750
  ac_status=$?
 
1751
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1752
  test $ac_status = 0; }; }; then :
 
1753
  ac_retval=0
 
1754
else
 
1755
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1756
       $as_echo "$as_me: failed program was:" >&5
 
1757
sed 's/^/| /' conftest.$ac_ext >&5
 
1758
 
 
1759
       ac_retval=$ac_status
 
1760
fi
 
1761
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1762
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1763
  as_fn_set_status $ac_retval
 
1764
 
 
1765
} # ac_fn_c_try_run
 
1766
 
 
1767
# ac_fn_c_check_func LINENO FUNC VAR
 
1768
# ----------------------------------
 
1769
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1770
ac_fn_c_check_func ()
 
1771
{
 
1772
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1773
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1774
$as_echo_n "checking for $2... " >&6; }
 
1775
if eval \${$3+:} false; then :
 
1776
  $as_echo_n "(cached) " >&6
 
1777
else
 
1778
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1779
/* end confdefs.h.  */
 
1780
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1781
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1782
#define $2 innocuous_$2
 
1783
 
 
1784
/* System header to define __stub macros and hopefully few prototypes,
 
1785
    which can conflict with char $2 (); below.
 
1786
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1787
    <limits.h> exists even on freestanding compilers.  */
 
1788
 
 
1789
#ifdef __STDC__
 
1790
# include <limits.h>
 
1791
#else
 
1792
# include <assert.h>
 
1793
#endif
 
1794
 
 
1795
#undef $2
 
1796
 
 
1797
/* Override any GCC internal prototype to avoid an error.
 
1798
   Use char because int might match the return type of a GCC
 
1799
   builtin and then its argument prototype would still apply.  */
 
1800
#ifdef __cplusplus
 
1801
extern "C"
 
1802
#endif
 
1803
char $2 ();
 
1804
/* The GNU C library defines this for functions which it implements
 
1805
    to always fail with ENOSYS.  Some functions are actually named
 
1806
    something starting with __ and the normal name is an alias.  */
 
1807
#if defined __stub_$2 || defined __stub___$2
 
1808
choke me
 
1809
#endif
 
1810
 
 
1811
int
 
1812
main ()
 
1813
{
 
1814
return $2 ();
 
1815
  ;
 
1816
  return 0;
 
1817
}
 
1818
_ACEOF
 
1819
if ac_fn_c_try_link "$LINENO"; then :
 
1820
  eval "$3=yes"
 
1821
else
 
1822
  eval "$3=no"
 
1823
fi
 
1824
rm -f core conftest.err conftest.$ac_objext \
 
1825
    conftest$ac_exeext conftest.$ac_ext
 
1826
fi
 
1827
eval ac_res=\$$3
 
1828
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1829
$as_echo "$ac_res" >&6; }
 
1830
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1831
 
 
1832
} # ac_fn_c_check_func
 
1833
cat >config.log <<_ACEOF
 
1834
This file contains any messages produced by compilers while
 
1835
running configure, to aid debugging if configure makes a mistake.
 
1836
 
 
1837
It was created by indicator-power $as_me 0.1, which was
 
1838
generated by GNU Autoconf 2.68.  Invocation command line was
 
1839
 
 
1840
  $ $0 $@
 
1841
 
 
1842
_ACEOF
 
1843
exec 5>>config.log
 
1844
{
 
1845
cat <<_ASUNAME
 
1846
## --------- ##
 
1847
## Platform. ##
 
1848
## --------- ##
 
1849
 
 
1850
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1851
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1852
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1853
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1854
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1855
 
 
1856
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1857
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1858
 
 
1859
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1860
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1861
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1862
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1863
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1864
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1865
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1866
 
 
1867
_ASUNAME
 
1868
 
 
1869
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1870
for as_dir in $PATH
 
1871
do
 
1872
  IFS=$as_save_IFS
 
1873
  test -z "$as_dir" && as_dir=.
 
1874
    $as_echo "PATH: $as_dir"
 
1875
  done
 
1876
IFS=$as_save_IFS
 
1877
 
 
1878
} >&5
 
1879
 
 
1880
cat >&5 <<_ACEOF
 
1881
 
 
1882
 
 
1883
## ----------- ##
 
1884
## Core tests. ##
 
1885
## ----------- ##
 
1886
 
 
1887
_ACEOF
 
1888
 
 
1889
 
 
1890
# Keep a trace of the command line.
 
1891
# Strip out --no-create and --no-recursion so they do not pile up.
 
1892
# Strip out --silent because we don't want to record it for future runs.
 
1893
# Also quote any args containing shell meta-characters.
 
1894
# Make two passes to allow for proper duplicate-argument suppression.
 
1895
ac_configure_args=
 
1896
ac_configure_args0=
 
1897
ac_configure_args1=
 
1898
ac_must_keep_next=false
 
1899
for ac_pass in 1 2
 
1900
do
 
1901
  for ac_arg
 
1902
  do
 
1903
    case $ac_arg in
 
1904
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1905
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1906
    | -silent | --silent | --silen | --sile | --sil)
 
1907
      continue ;;
 
1908
    *\'*)
 
1909
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1910
    esac
 
1911
    case $ac_pass in
 
1912
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
1913
    2)
 
1914
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
1915
      if test $ac_must_keep_next = true; then
 
1916
        ac_must_keep_next=false # Got value, back to normal.
 
1917
      else
 
1918
        case $ac_arg in
 
1919
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1920
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1921
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1922
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1923
            case "$ac_configure_args0 " in
 
1924
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1925
            esac
 
1926
            ;;
 
1927
          -* ) ac_must_keep_next=true ;;
 
1928
        esac
 
1929
      fi
 
1930
      as_fn_append ac_configure_args " '$ac_arg'"
 
1931
      ;;
 
1932
    esac
 
1933
  done
 
1934
done
 
1935
{ ac_configure_args0=; unset ac_configure_args0;}
 
1936
{ ac_configure_args1=; unset ac_configure_args1;}
 
1937
 
 
1938
# When interrupted or exit'd, cleanup temporary files, and complete
 
1939
# config.log.  We remove comments because anyway the quotes in there
 
1940
# would cause problems or look ugly.
 
1941
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1942
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1943
trap 'exit_status=$?
 
1944
  # Save into config.log some information that might help in debugging.
 
1945
  {
 
1946
    echo
 
1947
 
 
1948
    $as_echo "## ---------------- ##
 
1949
## Cache variables. ##
 
1950
## ---------------- ##"
 
1951
    echo
 
1952
    # The following way of writing the cache mishandles newlines in values,
 
1953
(
 
1954
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1955
    eval ac_val=\$$ac_var
 
1956
    case $ac_val in #(
 
1957
    *${as_nl}*)
 
1958
      case $ac_var in #(
 
1959
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
1960
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
1961
      esac
 
1962
      case $ac_var in #(
 
1963
      _ | IFS | as_nl) ;; #(
 
1964
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
1965
      *) { eval $ac_var=; unset $ac_var;} ;;
 
1966
      esac ;;
 
1967
    esac
 
1968
  done
 
1969
  (set) 2>&1 |
 
1970
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1971
    *${as_nl}ac_space=\ *)
 
1972
      sed -n \
 
1973
        "s/'\''/'\''\\\\'\'''\''/g;
 
1974
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1975
      ;; #(
 
1976
    *)
 
1977
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1978
      ;;
 
1979
    esac |
 
1980
    sort
 
1981
)
 
1982
    echo
 
1983
 
 
1984
    $as_echo "## ----------------- ##
 
1985
## Output variables. ##
 
1986
## ----------------- ##"
 
1987
    echo
 
1988
    for ac_var in $ac_subst_vars
 
1989
    do
 
1990
      eval ac_val=\$$ac_var
 
1991
      case $ac_val in
 
1992
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1993
      esac
 
1994
      $as_echo "$ac_var='\''$ac_val'\''"
 
1995
    done | sort
 
1996
    echo
 
1997
 
 
1998
    if test -n "$ac_subst_files"; then
 
1999
      $as_echo "## ------------------- ##
 
2000
## File substitutions. ##
 
2001
## ------------------- ##"
 
2002
      echo
 
2003
      for ac_var in $ac_subst_files
 
2004
      do
 
2005
        eval ac_val=\$$ac_var
 
2006
        case $ac_val in
 
2007
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2008
        esac
 
2009
        $as_echo "$ac_var='\''$ac_val'\''"
 
2010
      done | sort
 
2011
      echo
 
2012
    fi
 
2013
 
 
2014
    if test -s confdefs.h; then
 
2015
      $as_echo "## ----------- ##
 
2016
## confdefs.h. ##
 
2017
## ----------- ##"
 
2018
      echo
 
2019
      cat confdefs.h
 
2020
      echo
 
2021
    fi
 
2022
    test "$ac_signal" != 0 &&
 
2023
      $as_echo "$as_me: caught signal $ac_signal"
 
2024
    $as_echo "$as_me: exit $exit_status"
 
2025
  } >&5
 
2026
  rm -f core *.core core.conftest.* &&
 
2027
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2028
    exit $exit_status
 
2029
' 0
 
2030
for ac_signal in 1 2 13 15; do
 
2031
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
2032
done
 
2033
ac_signal=0
 
2034
 
 
2035
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2036
rm -f -r conftest* confdefs.h
 
2037
 
 
2038
$as_echo "/* confdefs.h */" > confdefs.h
 
2039
 
 
2040
# Predefined preprocessor variables.
 
2041
 
 
2042
cat >>confdefs.h <<_ACEOF
 
2043
#define PACKAGE_NAME "$PACKAGE_NAME"
 
2044
_ACEOF
 
2045
 
 
2046
cat >>confdefs.h <<_ACEOF
 
2047
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2048
_ACEOF
 
2049
 
 
2050
cat >>confdefs.h <<_ACEOF
 
2051
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2052
_ACEOF
 
2053
 
 
2054
cat >>confdefs.h <<_ACEOF
 
2055
#define PACKAGE_STRING "$PACKAGE_STRING"
 
2056
_ACEOF
 
2057
 
 
2058
cat >>confdefs.h <<_ACEOF
 
2059
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2060
_ACEOF
 
2061
 
 
2062
cat >>confdefs.h <<_ACEOF
 
2063
#define PACKAGE_URL "$PACKAGE_URL"
 
2064
_ACEOF
 
2065
 
 
2066
 
 
2067
# Let the site file select an alternate cache file if it wants to.
 
2068
# Prefer an explicitly selected file to automatically selected ones.
 
2069
ac_site_file1=NONE
 
2070
ac_site_file2=NONE
 
2071
if test -n "$CONFIG_SITE"; then
 
2072
  # We do not want a PATH search for config.site.
 
2073
  case $CONFIG_SITE in #((
 
2074
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2075
    */*) ac_site_file1=$CONFIG_SITE;;
 
2076
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2077
  esac
 
2078
elif test "x$prefix" != xNONE; then
 
2079
  ac_site_file1=$prefix/share/config.site
 
2080
  ac_site_file2=$prefix/etc/config.site
 
2081
else
 
2082
  ac_site_file1=$ac_default_prefix/share/config.site
 
2083
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2084
fi
 
2085
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2086
do
 
2087
  test "x$ac_site_file" = xNONE && continue
 
2088
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2089
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2090
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2091
    sed 's/^/| /' "$ac_site_file" >&5
 
2092
    . "$ac_site_file" \
 
2093
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2094
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2095
as_fn_error $? "failed to load site script $ac_site_file
 
2096
See \`config.log' for more details" "$LINENO" 5; }
 
2097
  fi
 
2098
done
 
2099
 
 
2100
if test -r "$cache_file"; then
 
2101
  # Some versions of bash will fail to source /dev/null (special files
 
2102
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2103
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2104
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2105
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2106
    case $cache_file in
 
2107
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2108
      *)                      . "./$cache_file";;
 
2109
    esac
 
2110
  fi
 
2111
else
 
2112
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2113
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2114
  >$cache_file
 
2115
fi
 
2116
 
 
2117
gt_needs="$gt_needs "
 
2118
# Check that the precious variables saved in the cache have kept the same
 
2119
# value.
 
2120
ac_cache_corrupted=false
 
2121
for ac_var in $ac_precious_vars; do
 
2122
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2123
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2124
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2125
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2126
  case $ac_old_set,$ac_new_set in
 
2127
    set,)
 
2128
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2129
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2130
      ac_cache_corrupted=: ;;
 
2131
    ,set)
 
2132
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2133
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2134
      ac_cache_corrupted=: ;;
 
2135
    ,);;
 
2136
    *)
 
2137
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2138
        # differences in whitespace do not lead to failure.
 
2139
        ac_old_val_w=`echo x $ac_old_val`
 
2140
        ac_new_val_w=`echo x $ac_new_val`
 
2141
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2142
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2143
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2144
          ac_cache_corrupted=:
 
2145
        else
 
2146
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2147
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2148
          eval $ac_var=\$ac_old_val
 
2149
        fi
 
2150
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2151
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2152
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2153
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2154
      fi;;
 
2155
  esac
 
2156
  # Pass precious variables to config.status.
 
2157
  if test "$ac_new_set" = set; then
 
2158
    case $ac_new_val in
 
2159
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2160
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2161
    esac
 
2162
    case " $ac_configure_args " in
 
2163
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2164
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2165
    esac
 
2166
  fi
 
2167
done
 
2168
if $ac_cache_corrupted; then
 
2169
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2170
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2171
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2172
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2173
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2174
fi
 
2175
## -------------------- ##
 
2176
## Main body of script. ##
 
2177
## -------------------- ##
 
2178
 
 
2179
ac_ext=c
 
2180
ac_cpp='$CPP $CPPFLAGS'
 
2181
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2182
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2183
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2184
 
 
2185
 
 
2186
 
 
2187
 
 
2188
 
 
2189
ac_config_headers="$ac_config_headers config.h"
 
2190
 
 
2191
 
 
2192
 
 
2193
ac_aux_dir=
 
2194
for ac_dir in build-aux "$srcdir"/build-aux; do
 
2195
  if test -f "$ac_dir/install-sh"; then
 
2196
    ac_aux_dir=$ac_dir
 
2197
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2198
    break
 
2199
  elif test -f "$ac_dir/install.sh"; then
 
2200
    ac_aux_dir=$ac_dir
 
2201
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2202
    break
 
2203
  elif test -f "$ac_dir/shtool"; then
 
2204
    ac_aux_dir=$ac_dir
 
2205
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2206
    break
 
2207
  fi
 
2208
done
 
2209
if test -z "$ac_aux_dir"; then
 
2210
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
 
2211
fi
 
2212
 
 
2213
# These three variables are undocumented and unsupported,
 
2214
# and are intended to be withdrawn in a future Autoconf release.
 
2215
# They can cause serious problems if a builder's source tree is in a directory
 
2216
# whose full name contains unusual characters.
 
2217
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2218
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2219
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2220
 
 
2221
 
 
2222
 
 
2223
am__api_version='1.11'
 
2224
 
 
2225
# Find a good install program.  We prefer a C program (faster),
 
2226
# so one script is as good as another.  But avoid the broken or
 
2227
# incompatible versions:
 
2228
# SysV /etc/install, /usr/sbin/install
 
2229
# SunOS /usr/etc/install
 
2230
# IRIX /sbin/install
 
2231
# AIX /bin/install
 
2232
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2233
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2234
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2235
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2236
# OS/2's system install, which has a completely different semantic
 
2237
# ./install, which can be erroneously created by make from ./install.sh.
 
2238
# Reject install programs that cannot install multiple files.
 
2239
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2240
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2241
if test -z "$INSTALL"; then
 
2242
if ${ac_cv_path_install+:} false; then :
 
2243
  $as_echo_n "(cached) " >&6
 
2244
else
 
2245
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2246
for as_dir in $PATH
 
2247
do
 
2248
  IFS=$as_save_IFS
 
2249
  test -z "$as_dir" && as_dir=.
 
2250
    # Account for people who put trailing slashes in PATH elements.
 
2251
case $as_dir/ in #((
 
2252
  ./ | .// | /[cC]/* | \
 
2253
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2254
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
2255
  /usr/ucb/* ) ;;
 
2256
  *)
 
2257
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2258
    # Don't use installbsd from OSF since it installs stuff as root
 
2259
    # by default.
 
2260
    for ac_prog in ginstall scoinst install; do
 
2261
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2262
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2263
          if test $ac_prog = install &&
 
2264
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2265
            # AIX install.  It has an incompatible calling convention.
 
2266
            :
 
2267
          elif test $ac_prog = install &&
 
2268
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2269
            # program-specific install script used by HP pwplus--don't use.
 
2270
            :
 
2271
          else
 
2272
            rm -rf conftest.one conftest.two conftest.dir
 
2273
            echo one > conftest.one
 
2274
            echo two > conftest.two
 
2275
            mkdir conftest.dir
 
2276
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2277
              test -s conftest.one && test -s conftest.two &&
 
2278
              test -s conftest.dir/conftest.one &&
 
2279
              test -s conftest.dir/conftest.two
 
2280
            then
 
2281
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2282
              break 3
 
2283
            fi
 
2284
          fi
 
2285
        fi
 
2286
      done
 
2287
    done
 
2288
    ;;
 
2289
esac
 
2290
 
 
2291
  done
 
2292
IFS=$as_save_IFS
 
2293
 
 
2294
rm -rf conftest.one conftest.two conftest.dir
 
2295
 
 
2296
fi
 
2297
  if test "${ac_cv_path_install+set}" = set; then
 
2298
    INSTALL=$ac_cv_path_install
 
2299
  else
 
2300
    # As a last resort, use the slow shell script.  Don't cache a
 
2301
    # value for INSTALL within a source directory, because that will
 
2302
    # break other packages using the cache if that directory is
 
2303
    # removed, or if the value is a relative name.
 
2304
    INSTALL=$ac_install_sh
 
2305
  fi
 
2306
fi
 
2307
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
2308
$as_echo "$INSTALL" >&6; }
 
2309
 
 
2310
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2311
# It thinks the first close brace ends the variable substitution.
 
2312
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2313
 
 
2314
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2315
 
 
2316
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2317
 
 
2318
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
2319
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2320
# Just in case
 
2321
sleep 1
 
2322
echo timestamp > conftest.file
 
2323
# Reject unsafe characters in $srcdir or the absolute working directory
 
2324
# name.  Accept space and tab only in the latter.
 
2325
am_lf='
 
2326
'
 
2327
case `pwd` in
 
2328
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2329
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
 
2330
esac
 
2331
case $srcdir in
 
2332
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2333
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
2334
esac
 
2335
 
 
2336
# Do `set' in a subshell so we don't clobber the current shell's
 
2337
# arguments.  Must try -L first in case configure is actually a
 
2338
# symlink; some systems play weird games with the mod time of symlinks
 
2339
# (eg FreeBSD returns the mod time of the symlink's containing
 
2340
# directory).
 
2341
if (
 
2342
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
2343
   if test "$*" = "X"; then
 
2344
      # -L didn't work.
 
2345
      set X `ls -t "$srcdir/configure" conftest.file`
 
2346
   fi
 
2347
   rm -f conftest.file
 
2348
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2349
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2350
 
 
2351
      # If neither matched, then we have a broken ls.  This can happen
 
2352
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2353
      # broken ls alias from the environment.  This has actually
 
2354
      # happened.  Such a system could not be considered "sane".
 
2355
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 
2356
alias in your environment" "$LINENO" 5
 
2357
   fi
 
2358
 
 
2359
   test "$2" = conftest.file
 
2360
   )
 
2361
then
 
2362
   # Ok.
 
2363
   :
 
2364
else
 
2365
   as_fn_error $? "newly created file is older than distributed files!
 
2366
Check your system clock" "$LINENO" 5
 
2367
fi
 
2368
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2369
$as_echo "yes" >&6; }
 
2370
test "$program_prefix" != NONE &&
 
2371
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2372
# Use a double $ so make ignores it.
 
2373
test "$program_suffix" != NONE &&
 
2374
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2375
# Double any \ or $.
 
2376
# By default was `s,x,x', remove it if useless.
 
2377
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2378
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2379
 
 
2380
# expand $ac_aux_dir to an absolute path
 
2381
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2382
 
 
2383
if test x"${MISSING+set}" != xset; then
 
2384
  case $am_aux_dir in
 
2385
  *\ * | *\     *)
 
2386
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2387
  *)
 
2388
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2389
  esac
 
2390
fi
 
2391
# Use eval to expand $SHELL
 
2392
if eval "$MISSING --run true"; then
 
2393
  am_missing_run="$MISSING --run "
 
2394
else
 
2395
  am_missing_run=
 
2396
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
 
2397
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2398
fi
 
2399
 
 
2400
if test x"${install_sh}" != xset; then
 
2401
  case $am_aux_dir in
 
2402
  *\ * | *\     *)
 
2403
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2404
  *)
 
2405
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2406
  esac
 
2407
fi
 
2408
 
 
2409
# Installed binaries are usually stripped using `strip' when the user
 
2410
# run `make install-strip'.  However `strip' might not be the right
 
2411
# tool to use in cross-compilation environments, therefore Automake
 
2412
# will honor the `STRIP' environment variable to overrule this program.
 
2413
if test "$cross_compiling" != no; then
 
2414
  if test -n "$ac_tool_prefix"; then
 
2415
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2416
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2417
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2418
$as_echo_n "checking for $ac_word... " >&6; }
 
2419
if ${ac_cv_prog_STRIP+:} false; then :
 
2420
  $as_echo_n "(cached) " >&6
 
2421
else
 
2422
  if test -n "$STRIP"; then
 
2423
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2424
else
 
2425
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2426
for as_dir in $PATH
 
2427
do
 
2428
  IFS=$as_save_IFS
 
2429
  test -z "$as_dir" && as_dir=.
 
2430
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2431
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2432
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2433
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2434
    break 2
 
2435
  fi
 
2436
done
 
2437
  done
 
2438
IFS=$as_save_IFS
 
2439
 
 
2440
fi
 
2441
fi
 
2442
STRIP=$ac_cv_prog_STRIP
 
2443
if test -n "$STRIP"; then
 
2444
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
2445
$as_echo "$STRIP" >&6; }
 
2446
else
 
2447
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2448
$as_echo "no" >&6; }
 
2449
fi
 
2450
 
 
2451
 
 
2452
fi
 
2453
if test -z "$ac_cv_prog_STRIP"; then
 
2454
  ac_ct_STRIP=$STRIP
 
2455
  # Extract the first word of "strip", so it can be a program name with args.
 
2456
set dummy strip; ac_word=$2
 
2457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2458
$as_echo_n "checking for $ac_word... " >&6; }
 
2459
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
2460
  $as_echo_n "(cached) " >&6
 
2461
else
 
2462
  if test -n "$ac_ct_STRIP"; then
 
2463
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2464
else
 
2465
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2466
for as_dir in $PATH
 
2467
do
 
2468
  IFS=$as_save_IFS
 
2469
  test -z "$as_dir" && as_dir=.
 
2470
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2471
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2472
    ac_cv_prog_ac_ct_STRIP="strip"
 
2473
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2474
    break 2
 
2475
  fi
 
2476
done
 
2477
  done
 
2478
IFS=$as_save_IFS
 
2479
 
 
2480
fi
 
2481
fi
 
2482
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2483
if test -n "$ac_ct_STRIP"; then
 
2484
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
2485
$as_echo "$ac_ct_STRIP" >&6; }
 
2486
else
 
2487
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2488
$as_echo "no" >&6; }
 
2489
fi
 
2490
 
 
2491
  if test "x$ac_ct_STRIP" = x; then
 
2492
    STRIP=":"
 
2493
  else
 
2494
    case $cross_compiling:$ac_tool_warned in
 
2495
yes:)
 
2496
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2497
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2498
ac_tool_warned=yes ;;
 
2499
esac
 
2500
    STRIP=$ac_ct_STRIP
 
2501
  fi
 
2502
else
 
2503
  STRIP="$ac_cv_prog_STRIP"
 
2504
fi
 
2505
 
 
2506
fi
 
2507
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2508
 
 
2509
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
2510
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2511
if test -z "$MKDIR_P"; then
 
2512
  if ${ac_cv_path_mkdir+:} false; then :
 
2513
  $as_echo_n "(cached) " >&6
 
2514
else
 
2515
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2516
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2517
do
 
2518
  IFS=$as_save_IFS
 
2519
  test -z "$as_dir" && as_dir=.
 
2520
    for ac_prog in mkdir gmkdir; do
 
2521
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2522
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2523
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2524
             'mkdir (GNU coreutils) '* | \
 
2525
             'mkdir (coreutils) '* | \
 
2526
             'mkdir (fileutils) '4.1*)
 
2527
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2528
               break 3;;
 
2529
           esac
 
2530
         done
 
2531
       done
 
2532
  done
 
2533
IFS=$as_save_IFS
 
2534
 
 
2535
fi
 
2536
 
 
2537
  test -d ./--version && rmdir ./--version
 
2538
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2539
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2540
  else
 
2541
    # As a last resort, use the slow shell script.  Don't cache a
 
2542
    # value for MKDIR_P within a source directory, because that will
 
2543
    # break other packages using the cache if that directory is
 
2544
    # removed, or if the value is a relative name.
 
2545
    MKDIR_P="$ac_install_sh -d"
 
2546
  fi
 
2547
fi
 
2548
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
2549
$as_echo "$MKDIR_P" >&6; }
 
2550
 
 
2551
mkdir_p="$MKDIR_P"
 
2552
case $mkdir_p in
 
2553
  [\\/$]* | ?:[\\/]*) ;;
 
2554
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2555
esac
 
2556
 
 
2557
for ac_prog in gawk mawk nawk awk
 
2558
do
 
2559
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2560
set dummy $ac_prog; ac_word=$2
 
2561
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2562
$as_echo_n "checking for $ac_word... " >&6; }
 
2563
if ${ac_cv_prog_AWK+:} false; then :
 
2564
  $as_echo_n "(cached) " >&6
 
2565
else
 
2566
  if test -n "$AWK"; then
 
2567
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2568
else
 
2569
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2570
for as_dir in $PATH
 
2571
do
 
2572
  IFS=$as_save_IFS
 
2573
  test -z "$as_dir" && as_dir=.
 
2574
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2575
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2576
    ac_cv_prog_AWK="$ac_prog"
 
2577
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2578
    break 2
 
2579
  fi
 
2580
done
 
2581
  done
 
2582
IFS=$as_save_IFS
 
2583
 
 
2584
fi
 
2585
fi
 
2586
AWK=$ac_cv_prog_AWK
 
2587
if test -n "$AWK"; then
 
2588
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
2589
$as_echo "$AWK" >&6; }
 
2590
else
 
2591
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2592
$as_echo "no" >&6; }
 
2593
fi
 
2594
 
 
2595
 
 
2596
  test -n "$AWK" && break
 
2597
done
 
2598
 
 
2599
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2600
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2601
set x ${MAKE-make}
 
2602
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2603
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
 
2604
  $as_echo_n "(cached) " >&6
 
2605
else
 
2606
  cat >conftest.make <<\_ACEOF
 
2607
SHELL = /bin/sh
 
2608
all:
 
2609
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2610
_ACEOF
 
2611
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
2612
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2613
  *@@@%%%=?*=@@@%%%*)
 
2614
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2615
  *)
 
2616
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2617
esac
 
2618
rm -f conftest.make
 
2619
fi
 
2620
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2621
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2622
$as_echo "yes" >&6; }
 
2623
  SET_MAKE=
 
2624
else
 
2625
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2626
$as_echo "no" >&6; }
 
2627
  SET_MAKE="MAKE=${MAKE-make}"
 
2628
fi
 
2629
 
 
2630
rm -rf .tst 2>/dev/null
 
2631
mkdir .tst 2>/dev/null
 
2632
if test -d .tst; then
 
2633
  am__leading_dot=.
 
2634
else
 
2635
  am__leading_dot=_
 
2636
fi
 
2637
rmdir .tst 2>/dev/null
 
2638
 
 
2639
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2640
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2641
  # is not polluted with repeated "-I."
 
2642
  am__isrc=' -I$(srcdir)'
 
2643
  # test to see if srcdir already configured
 
2644
  if test -f $srcdir/config.status; then
 
2645
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
2646
  fi
 
2647
fi
 
2648
 
 
2649
# test whether we have cygpath
 
2650
if test -z "$CYGPATH_W"; then
 
2651
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2652
    CYGPATH_W='cygpath -w'
 
2653
  else
 
2654
    CYGPATH_W=echo
 
2655
  fi
 
2656
fi
 
2657
 
 
2658
 
 
2659
# Define the identity of the package.
 
2660
 PACKAGE='indicator-power'
 
2661
 VERSION='0.1'
 
2662
 
 
2663
 
 
2664
cat >>confdefs.h <<_ACEOF
 
2665
#define PACKAGE "$PACKAGE"
 
2666
_ACEOF
 
2667
 
 
2668
 
 
2669
cat >>confdefs.h <<_ACEOF
 
2670
#define VERSION "$VERSION"
 
2671
_ACEOF
 
2672
 
 
2673
# Some tools Automake needs.
 
2674
 
 
2675
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2676
 
 
2677
 
 
2678
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2679
 
 
2680
 
 
2681
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2682
 
 
2683
 
 
2684
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2685
 
 
2686
 
 
2687
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2688
 
 
2689
# We need awk for the "check" target.  The system "awk" is bad on
 
2690
# some platforms.
 
2691
# Always define AMTAR for backward compatibility.
 
2692
 
 
2693
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2694
 
 
2695
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2696
 
 
2697
 
 
2698
 
 
2699
 
 
2700
 
 
2701
 
 
2702
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable maintainer-specific portions of Makefiles" >&5
 
2703
$as_echo_n "checking whether to disable maintainer-specific portions of Makefiles... " >&6; }
 
2704
    # Check whether --enable-maintainer-mode was given.
 
2705
if test "${enable_maintainer_mode+set}" = set; then :
 
2706
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
 
2707
else
 
2708
  USE_MAINTAINER_MODE=yes
 
2709
fi
 
2710
 
 
2711
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
 
2712
$as_echo "$USE_MAINTAINER_MODE" >&6; }
 
2713
   if test $USE_MAINTAINER_MODE = yes; then
 
2714
  MAINTAINER_MODE_TRUE=
 
2715
  MAINTAINER_MODE_FALSE='#'
 
2716
else
 
2717
  MAINTAINER_MODE_TRUE='#'
 
2718
  MAINTAINER_MODE_FALSE=
 
2719
fi
 
2720
 
 
2721
  MAINT=$MAINTAINER_MODE_TRUE
 
2722
 
 
2723
 
 
2724
 
 
2725
# Check whether --enable-silent-rules was given.
 
2726
if test "${enable_silent_rules+set}" = set; then :
 
2727
  enableval=$enable_silent_rules;
 
2728
fi
 
2729
 
 
2730
case $enable_silent_rules in
 
2731
yes) AM_DEFAULT_VERBOSITY=0;;
 
2732
no)  AM_DEFAULT_VERBOSITY=1;;
 
2733
*)   AM_DEFAULT_VERBOSITY=0;;
 
2734
esac
 
2735
AM_BACKSLASH='\'
 
2736
 
 
2737
 
 
2738
# Check for programs
 
2739
ac_ext=c
 
2740
ac_cpp='$CPP $CPPFLAGS'
 
2741
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2742
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2743
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2744
if test -n "$ac_tool_prefix"; then
 
2745
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2746
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2747
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2748
$as_echo_n "checking for $ac_word... " >&6; }
 
2749
if ${ac_cv_prog_CC+:} false; then :
 
2750
  $as_echo_n "(cached) " >&6
 
2751
else
 
2752
  if test -n "$CC"; then
 
2753
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2754
else
 
2755
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2756
for as_dir in $PATH
 
2757
do
 
2758
  IFS=$as_save_IFS
 
2759
  test -z "$as_dir" && as_dir=.
 
2760
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2761
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2762
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2763
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2764
    break 2
 
2765
  fi
 
2766
done
 
2767
  done
 
2768
IFS=$as_save_IFS
 
2769
 
 
2770
fi
 
2771
fi
 
2772
CC=$ac_cv_prog_CC
 
2773
if test -n "$CC"; then
 
2774
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2775
$as_echo "$CC" >&6; }
 
2776
else
 
2777
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2778
$as_echo "no" >&6; }
 
2779
fi
 
2780
 
 
2781
 
 
2782
fi
 
2783
if test -z "$ac_cv_prog_CC"; then
 
2784
  ac_ct_CC=$CC
 
2785
  # Extract the first word of "gcc", so it can be a program name with args.
 
2786
set dummy gcc; ac_word=$2
 
2787
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2788
$as_echo_n "checking for $ac_word... " >&6; }
 
2789
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
2790
  $as_echo_n "(cached) " >&6
 
2791
else
 
2792
  if test -n "$ac_ct_CC"; then
 
2793
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2794
else
 
2795
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2796
for as_dir in $PATH
 
2797
do
 
2798
  IFS=$as_save_IFS
 
2799
  test -z "$as_dir" && as_dir=.
 
2800
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2801
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2802
    ac_cv_prog_ac_ct_CC="gcc"
 
2803
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2804
    break 2
 
2805
  fi
 
2806
done
 
2807
  done
 
2808
IFS=$as_save_IFS
 
2809
 
 
2810
fi
 
2811
fi
 
2812
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2813
if test -n "$ac_ct_CC"; then
 
2814
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
2815
$as_echo "$ac_ct_CC" >&6; }
 
2816
else
 
2817
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2818
$as_echo "no" >&6; }
 
2819
fi
 
2820
 
 
2821
  if test "x$ac_ct_CC" = x; then
 
2822
    CC=""
 
2823
  else
 
2824
    case $cross_compiling:$ac_tool_warned in
 
2825
yes:)
 
2826
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2827
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2828
ac_tool_warned=yes ;;
 
2829
esac
 
2830
    CC=$ac_ct_CC
 
2831
  fi
 
2832
else
 
2833
  CC="$ac_cv_prog_CC"
 
2834
fi
 
2835
 
 
2836
if test -z "$CC"; then
 
2837
          if test -n "$ac_tool_prefix"; then
 
2838
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2839
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2840
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2841
$as_echo_n "checking for $ac_word... " >&6; }
 
2842
if ${ac_cv_prog_CC+:} false; then :
 
2843
  $as_echo_n "(cached) " >&6
 
2844
else
 
2845
  if test -n "$CC"; then
 
2846
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2847
else
 
2848
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2849
for as_dir in $PATH
 
2850
do
 
2851
  IFS=$as_save_IFS
 
2852
  test -z "$as_dir" && as_dir=.
 
2853
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2854
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2855
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2856
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2857
    break 2
 
2858
  fi
 
2859
done
 
2860
  done
 
2861
IFS=$as_save_IFS
 
2862
 
 
2863
fi
 
2864
fi
 
2865
CC=$ac_cv_prog_CC
 
2866
if test -n "$CC"; then
 
2867
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2868
$as_echo "$CC" >&6; }
 
2869
else
 
2870
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2871
$as_echo "no" >&6; }
 
2872
fi
 
2873
 
 
2874
 
 
2875
  fi
 
2876
fi
 
2877
if test -z "$CC"; then
 
2878
  # Extract the first word of "cc", so it can be a program name with args.
 
2879
set dummy cc; ac_word=$2
 
2880
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2881
$as_echo_n "checking for $ac_word... " >&6; }
 
2882
if ${ac_cv_prog_CC+:} false; then :
 
2883
  $as_echo_n "(cached) " >&6
 
2884
else
 
2885
  if test -n "$CC"; then
 
2886
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2887
else
 
2888
  ac_prog_rejected=no
 
2889
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2890
for as_dir in $PATH
 
2891
do
 
2892
  IFS=$as_save_IFS
 
2893
  test -z "$as_dir" && as_dir=.
 
2894
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2895
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2896
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2897
       ac_prog_rejected=yes
 
2898
       continue
 
2899
     fi
 
2900
    ac_cv_prog_CC="cc"
 
2901
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2902
    break 2
 
2903
  fi
 
2904
done
 
2905
  done
 
2906
IFS=$as_save_IFS
 
2907
 
 
2908
if test $ac_prog_rejected = yes; then
 
2909
  # We found a bogon in the path, so make sure we never use it.
 
2910
  set dummy $ac_cv_prog_CC
 
2911
  shift
 
2912
  if test $# != 0; then
 
2913
    # We chose a different compiler from the bogus one.
 
2914
    # However, it has the same basename, so the bogon will be chosen
 
2915
    # first if we set CC to just the basename; use the full file name.
 
2916
    shift
 
2917
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2918
  fi
 
2919
fi
 
2920
fi
 
2921
fi
 
2922
CC=$ac_cv_prog_CC
 
2923
if test -n "$CC"; then
 
2924
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2925
$as_echo "$CC" >&6; }
 
2926
else
 
2927
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2928
$as_echo "no" >&6; }
 
2929
fi
 
2930
 
 
2931
 
 
2932
fi
 
2933
if test -z "$CC"; then
 
2934
  if test -n "$ac_tool_prefix"; then
 
2935
  for ac_prog in cl.exe
 
2936
  do
 
2937
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2938
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2939
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2940
$as_echo_n "checking for $ac_word... " >&6; }
 
2941
if ${ac_cv_prog_CC+:} false; then :
 
2942
  $as_echo_n "(cached) " >&6
 
2943
else
 
2944
  if test -n "$CC"; then
 
2945
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2946
else
 
2947
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2948
for as_dir in $PATH
 
2949
do
 
2950
  IFS=$as_save_IFS
 
2951
  test -z "$as_dir" && as_dir=.
 
2952
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2953
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2954
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2955
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2956
    break 2
 
2957
  fi
 
2958
done
 
2959
  done
 
2960
IFS=$as_save_IFS
 
2961
 
 
2962
fi
 
2963
fi
 
2964
CC=$ac_cv_prog_CC
 
2965
if test -n "$CC"; then
 
2966
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2967
$as_echo "$CC" >&6; }
 
2968
else
 
2969
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2970
$as_echo "no" >&6; }
 
2971
fi
 
2972
 
 
2973
 
 
2974
    test -n "$CC" && break
 
2975
  done
 
2976
fi
 
2977
if test -z "$CC"; then
 
2978
  ac_ct_CC=$CC
 
2979
  for ac_prog in cl.exe
 
2980
do
 
2981
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2982
set dummy $ac_prog; ac_word=$2
 
2983
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2984
$as_echo_n "checking for $ac_word... " >&6; }
 
2985
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
2986
  $as_echo_n "(cached) " >&6
 
2987
else
 
2988
  if test -n "$ac_ct_CC"; then
 
2989
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2990
else
 
2991
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2992
for as_dir in $PATH
 
2993
do
 
2994
  IFS=$as_save_IFS
 
2995
  test -z "$as_dir" && as_dir=.
 
2996
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2997
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2998
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2999
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3000
    break 2
 
3001
  fi
 
3002
done
 
3003
  done
 
3004
IFS=$as_save_IFS
 
3005
 
 
3006
fi
 
3007
fi
 
3008
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3009
if test -n "$ac_ct_CC"; then
 
3010
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3011
$as_echo "$ac_ct_CC" >&6; }
 
3012
else
 
3013
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3014
$as_echo "no" >&6; }
 
3015
fi
 
3016
 
 
3017
 
 
3018
  test -n "$ac_ct_CC" && break
 
3019
done
 
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
fi
 
3033
 
 
3034
fi
 
3035
 
 
3036
 
 
3037
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3038
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3039
as_fn_error $? "no acceptable C compiler found in \$PATH
 
3040
See \`config.log' for more details" "$LINENO" 5; }
 
3041
 
 
3042
# Provide some information about the compiler.
 
3043
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3044
set X $ac_compile
 
3045
ac_compiler=$2
 
3046
for ac_option in --version -v -V -qversion; do
 
3047
  { { ac_try="$ac_compiler $ac_option >&5"
 
3048
case "(($ac_try" in
 
3049
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3050
  *) ac_try_echo=$ac_try;;
 
3051
esac
 
3052
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3053
$as_echo "$ac_try_echo"; } >&5
 
3054
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3055
  ac_status=$?
 
3056
  if test -s conftest.err; then
 
3057
    sed '10a\
 
3058
... rest of stderr output deleted ...
 
3059
         10q' conftest.err >conftest.er1
 
3060
    cat conftest.er1 >&5
 
3061
  fi
 
3062
  rm -f conftest.er1 conftest.err
 
3063
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3064
  test $ac_status = 0; }
 
3065
done
 
3066
 
 
3067
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3068
/* end confdefs.h.  */
 
3069
 
 
3070
int
 
3071
main ()
 
3072
{
 
3073
 
 
3074
  ;
 
3075
  return 0;
 
3076
}
 
3077
_ACEOF
 
3078
ac_clean_files_save=$ac_clean_files
 
3079
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3080
# Try to create an executable without -o first, disregard a.out.
 
3081
# It will help us diagnose broken compilers, and finding out an intuition
 
3082
# of exeext.
 
3083
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3084
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3085
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3086
 
 
3087
# The possible output files:
 
3088
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3089
 
 
3090
ac_rmfiles=
 
3091
for ac_file in $ac_files
 
3092
do
 
3093
  case $ac_file in
 
3094
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3095
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3096
  esac
 
3097
done
 
3098
rm -f $ac_rmfiles
 
3099
 
 
3100
if { { ac_try="$ac_link_default"
 
3101
case "(($ac_try" in
 
3102
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3103
  *) ac_try_echo=$ac_try;;
 
3104
esac
 
3105
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3106
$as_echo "$ac_try_echo"; } >&5
 
3107
  (eval "$ac_link_default") 2>&5
 
3108
  ac_status=$?
 
3109
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3110
  test $ac_status = 0; }; then :
 
3111
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3112
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3113
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3114
# so that the user can short-circuit this test for compilers unknown to
 
3115
# Autoconf.
 
3116
for ac_file in $ac_files ''
 
3117
do
 
3118
  test -f "$ac_file" || continue
 
3119
  case $ac_file in
 
3120
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3121
        ;;
 
3122
    [ab].out )
 
3123
        # We found the default executable, but exeext='' is most
 
3124
        # certainly right.
 
3125
        break;;
 
3126
    *.* )
 
3127
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3128
        then :; else
 
3129
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3130
        fi
 
3131
        # We set ac_cv_exeext here because the later test for it is not
 
3132
        # safe: cross compilers may not add the suffix if given an `-o'
 
3133
        # argument, so we may need to know it at that point already.
 
3134
        # Even if this section looks crufty: it has the advantage of
 
3135
        # actually working.
 
3136
        break;;
 
3137
    * )
 
3138
        break;;
 
3139
  esac
 
3140
done
 
3141
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3142
 
 
3143
else
 
3144
  ac_file=''
 
3145
fi
 
3146
if test -z "$ac_file"; then :
 
3147
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3148
$as_echo "no" >&6; }
 
3149
$as_echo "$as_me: failed program was:" >&5
 
3150
sed 's/^/| /' conftest.$ac_ext >&5
 
3151
 
 
3152
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3153
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3154
as_fn_error 77 "C compiler cannot create executables
 
3155
See \`config.log' for more details" "$LINENO" 5; }
 
3156
else
 
3157
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3158
$as_echo "yes" >&6; }
 
3159
fi
 
3160
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3161
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3162
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3163
$as_echo "$ac_file" >&6; }
 
3164
ac_exeext=$ac_cv_exeext
 
3165
 
 
3166
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3167
ac_clean_files=$ac_clean_files_save
 
3168
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3169
$as_echo_n "checking for suffix of executables... " >&6; }
 
3170
if { { ac_try="$ac_link"
 
3171
case "(($ac_try" in
 
3172
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3173
  *) ac_try_echo=$ac_try;;
 
3174
esac
 
3175
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3176
$as_echo "$ac_try_echo"; } >&5
 
3177
  (eval "$ac_link") 2>&5
 
3178
  ac_status=$?
 
3179
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3180
  test $ac_status = 0; }; then :
 
3181
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3182
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3183
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3184
# `rm'.
 
3185
for ac_file in conftest.exe conftest conftest.*; do
 
3186
  test -f "$ac_file" || continue
 
3187
  case $ac_file in
 
3188
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3189
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3190
          break;;
 
3191
    * ) break;;
 
3192
  esac
 
3193
done
 
3194
else
 
3195
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3196
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3197
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
3198
See \`config.log' for more details" "$LINENO" 5; }
 
3199
fi
 
3200
rm -f conftest conftest$ac_cv_exeext
 
3201
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3202
$as_echo "$ac_cv_exeext" >&6; }
 
3203
 
 
3204
rm -f conftest.$ac_ext
 
3205
EXEEXT=$ac_cv_exeext
 
3206
ac_exeext=$EXEEXT
 
3207
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3208
/* end confdefs.h.  */
 
3209
#include <stdio.h>
 
3210
int
 
3211
main ()
 
3212
{
 
3213
FILE *f = fopen ("conftest.out", "w");
 
3214
 return ferror (f) || fclose (f) != 0;
 
3215
 
 
3216
  ;
 
3217
  return 0;
 
3218
}
 
3219
_ACEOF
 
3220
ac_clean_files="$ac_clean_files conftest.out"
 
3221
# Check that the compiler produces executables we can run.  If not, either
 
3222
# the compiler is broken, or we cross compile.
 
3223
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3224
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3225
if test "$cross_compiling" != yes; then
 
3226
  { { ac_try="$ac_link"
 
3227
case "(($ac_try" in
 
3228
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3229
  *) ac_try_echo=$ac_try;;
 
3230
esac
 
3231
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3232
$as_echo "$ac_try_echo"; } >&5
 
3233
  (eval "$ac_link") 2>&5
 
3234
  ac_status=$?
 
3235
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3236
  test $ac_status = 0; }
 
3237
  if { ac_try='./conftest$ac_cv_exeext'
 
3238
  { { case "(($ac_try" in
 
3239
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3240
  *) ac_try_echo=$ac_try;;
 
3241
esac
 
3242
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3243
$as_echo "$ac_try_echo"; } >&5
 
3244
  (eval "$ac_try") 2>&5
 
3245
  ac_status=$?
 
3246
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3247
  test $ac_status = 0; }; }; then
 
3248
    cross_compiling=no
 
3249
  else
 
3250
    if test "$cross_compiling" = maybe; then
 
3251
        cross_compiling=yes
 
3252
    else
 
3253
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3254
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3255
as_fn_error $? "cannot run C compiled programs.
 
3256
If you meant to cross compile, use \`--host'.
 
3257
See \`config.log' for more details" "$LINENO" 5; }
 
3258
    fi
 
3259
  fi
 
3260
fi
 
3261
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3262
$as_echo "$cross_compiling" >&6; }
 
3263
 
 
3264
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3265
ac_clean_files=$ac_clean_files_save
 
3266
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3267
$as_echo_n "checking for suffix of object files... " >&6; }
 
3268
if ${ac_cv_objext+:} false; then :
 
3269
  $as_echo_n "(cached) " >&6
 
3270
else
 
3271
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3272
/* end confdefs.h.  */
 
3273
 
 
3274
int
 
3275
main ()
 
3276
{
 
3277
 
 
3278
  ;
 
3279
  return 0;
 
3280
}
 
3281
_ACEOF
 
3282
rm -f conftest.o conftest.obj
 
3283
if { { ac_try="$ac_compile"
 
3284
case "(($ac_try" in
 
3285
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3286
  *) ac_try_echo=$ac_try;;
 
3287
esac
 
3288
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3289
$as_echo "$ac_try_echo"; } >&5
 
3290
  (eval "$ac_compile") 2>&5
 
3291
  ac_status=$?
 
3292
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3293
  test $ac_status = 0; }; then :
 
3294
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3295
  test -f "$ac_file" || continue;
 
3296
  case $ac_file in
 
3297
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3298
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3299
       break;;
 
3300
  esac
 
3301
done
 
3302
else
 
3303
  $as_echo "$as_me: failed program was:" >&5
 
3304
sed 's/^/| /' conftest.$ac_ext >&5
 
3305
 
 
3306
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3307
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3308
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
3309
See \`config.log' for more details" "$LINENO" 5; }
 
3310
fi
 
3311
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3312
fi
 
3313
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3314
$as_echo "$ac_cv_objext" >&6; }
 
3315
OBJEXT=$ac_cv_objext
 
3316
ac_objext=$OBJEXT
 
3317
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
3318
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3319
if ${ac_cv_c_compiler_gnu+:} false; then :
 
3320
  $as_echo_n "(cached) " >&6
 
3321
else
 
3322
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3323
/* end confdefs.h.  */
 
3324
 
 
3325
int
 
3326
main ()
 
3327
{
 
3328
#ifndef __GNUC__
 
3329
       choke me
 
3330
#endif
 
3331
 
 
3332
  ;
 
3333
  return 0;
 
3334
}
 
3335
_ACEOF
 
3336
if ac_fn_c_try_compile "$LINENO"; then :
 
3337
  ac_compiler_gnu=yes
 
3338
else
 
3339
  ac_compiler_gnu=no
 
3340
fi
 
3341
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3342
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3343
 
 
3344
fi
 
3345
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
3346
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3347
if test $ac_compiler_gnu = yes; then
 
3348
  GCC=yes
 
3349
else
 
3350
  GCC=
 
3351
fi
 
3352
ac_test_CFLAGS=${CFLAGS+set}
 
3353
ac_save_CFLAGS=$CFLAGS
 
3354
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
3355
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3356
if ${ac_cv_prog_cc_g+:} false; then :
 
3357
  $as_echo_n "(cached) " >&6
 
3358
else
 
3359
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3360
   ac_c_werror_flag=yes
 
3361
   ac_cv_prog_cc_g=no
 
3362
   CFLAGS="-g"
 
3363
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3364
/* end confdefs.h.  */
 
3365
 
 
3366
int
 
3367
main ()
 
3368
{
 
3369
 
 
3370
  ;
 
3371
  return 0;
 
3372
}
 
3373
_ACEOF
 
3374
if ac_fn_c_try_compile "$LINENO"; then :
 
3375
  ac_cv_prog_cc_g=yes
 
3376
else
 
3377
  CFLAGS=""
 
3378
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3379
/* end confdefs.h.  */
 
3380
 
 
3381
int
 
3382
main ()
 
3383
{
 
3384
 
 
3385
  ;
 
3386
  return 0;
 
3387
}
 
3388
_ACEOF
 
3389
if ac_fn_c_try_compile "$LINENO"; then :
 
3390
 
 
3391
else
 
3392
  ac_c_werror_flag=$ac_save_c_werror_flag
 
3393
         CFLAGS="-g"
 
3394
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3395
/* end confdefs.h.  */
 
3396
 
 
3397
int
 
3398
main ()
 
3399
{
 
3400
 
 
3401
  ;
 
3402
  return 0;
 
3403
}
 
3404
_ACEOF
 
3405
if ac_fn_c_try_compile "$LINENO"; then :
 
3406
  ac_cv_prog_cc_g=yes
 
3407
fi
 
3408
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3409
fi
 
3410
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3411
fi
 
3412
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3413
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3414
fi
 
3415
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
3416
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
3417
if test "$ac_test_CFLAGS" = set; then
 
3418
  CFLAGS=$ac_save_CFLAGS
 
3419
elif test $ac_cv_prog_cc_g = yes; then
 
3420
  if test "$GCC" = yes; then
 
3421
    CFLAGS="-g -O2"
 
3422
  else
 
3423
    CFLAGS="-g"
 
3424
  fi
 
3425
else
 
3426
  if test "$GCC" = yes; then
 
3427
    CFLAGS="-O2"
 
3428
  else
 
3429
    CFLAGS=
 
3430
  fi
 
3431
fi
 
3432
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
3433
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3434
if ${ac_cv_prog_cc_c89+:} false; then :
 
3435
  $as_echo_n "(cached) " >&6
 
3436
else
 
3437
  ac_cv_prog_cc_c89=no
 
3438
ac_save_CC=$CC
 
3439
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3440
/* end confdefs.h.  */
 
3441
#include <stdarg.h>
 
3442
#include <stdio.h>
 
3443
#include <sys/types.h>
 
3444
#include <sys/stat.h>
 
3445
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3446
struct buf { int x; };
 
3447
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3448
static char *e (p, i)
 
3449
     char **p;
 
3450
     int i;
 
3451
{
 
3452
  return p[i];
 
3453
}
 
3454
static char *f (char * (*g) (char **, int), char **p, ...)
 
3455
{
 
3456
  char *s;
 
3457
  va_list v;
 
3458
  va_start (v,p);
 
3459
  s = g (p, va_arg (v,int));
 
3460
  va_end (v);
 
3461
  return s;
 
3462
}
 
3463
 
 
3464
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3465
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3466
   These don't provoke an error unfortunately, instead are silently treated
 
3467
   as 'x'.  The following induces an error, until -std is added to get
 
3468
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3469
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3470
   that's true only with -std.  */
 
3471
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3472
 
 
3473
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3474
   inside strings and character constants.  */
 
3475
#define FOO(x) 'x'
 
3476
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3477
 
 
3478
int test (int i, double x);
 
3479
struct s1 {int (*f) (int a);};
 
3480
struct s2 {int (*f) (double a);};
 
3481
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3482
int argc;
 
3483
char **argv;
 
3484
int
 
3485
main ()
 
3486
{
 
3487
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3488
  ;
 
3489
  return 0;
 
3490
}
 
3491
_ACEOF
 
3492
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3493
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3494
do
 
3495
  CC="$ac_save_CC $ac_arg"
 
3496
  if ac_fn_c_try_compile "$LINENO"; then :
 
3497
  ac_cv_prog_cc_c89=$ac_arg
 
3498
fi
 
3499
rm -f core conftest.err conftest.$ac_objext
 
3500
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3501
done
 
3502
rm -f conftest.$ac_ext
 
3503
CC=$ac_save_CC
 
3504
 
 
3505
fi
 
3506
# AC_CACHE_VAL
 
3507
case "x$ac_cv_prog_cc_c89" in
 
3508
  x)
 
3509
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3510
$as_echo "none needed" >&6; } ;;
 
3511
  xno)
 
3512
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3513
$as_echo "unsupported" >&6; } ;;
 
3514
  *)
 
3515
    CC="$CC $ac_cv_prog_cc_c89"
 
3516
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
3517
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
3518
esac
 
3519
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
3520
 
 
3521
fi
 
3522
 
 
3523
ac_ext=c
 
3524
ac_cpp='$CPP $CPPFLAGS'
 
3525
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3526
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3527
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3528
DEPDIR="${am__leading_dot}deps"
 
3529
 
 
3530
ac_config_commands="$ac_config_commands depfiles"
 
3531
 
 
3532
 
 
3533
am_make=${MAKE-make}
 
3534
cat > confinc << 'END'
 
3535
am__doit:
 
3536
        @echo this is the am__doit target
 
3537
.PHONY: am__doit
 
3538
END
 
3539
# If we don't find an include directive, just comment out the code.
 
3540
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
3541
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
3542
am__include="#"
 
3543
am__quote=
 
3544
_am_result=none
 
3545
# First try GNU make style include.
 
3546
echo "include confinc" > confmf
 
3547
# Ignore all kinds of additional output from `make'.
 
3548
case `$am_make -s -f confmf 2> /dev/null` in #(
 
3549
*the\ am__doit\ target*)
 
3550
  am__include=include
 
3551
  am__quote=
 
3552
  _am_result=GNU
 
3553
  ;;
 
3554
esac
 
3555
# Now try BSD make style include.
 
3556
if test "$am__include" = "#"; then
 
3557
   echo '.include "confinc"' > confmf
 
3558
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
3559
   *the\ am__doit\ target*)
 
3560
     am__include=.include
 
3561
     am__quote="\""
 
3562
     _am_result=BSD
 
3563
     ;;
 
3564
   esac
 
3565
fi
 
3566
 
 
3567
 
 
3568
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
3569
$as_echo "$_am_result" >&6; }
 
3570
rm -f confinc confmf
 
3571
 
 
3572
# Check whether --enable-dependency-tracking was given.
 
3573
if test "${enable_dependency_tracking+set}" = set; then :
 
3574
  enableval=$enable_dependency_tracking;
 
3575
fi
 
3576
 
 
3577
if test "x$enable_dependency_tracking" != xno; then
 
3578
  am_depcomp="$ac_aux_dir/depcomp"
 
3579
  AMDEPBACKSLASH='\'
 
3580
fi
 
3581
 if test "x$enable_dependency_tracking" != xno; then
 
3582
  AMDEP_TRUE=
 
3583
  AMDEP_FALSE='#'
 
3584
else
 
3585
  AMDEP_TRUE='#'
 
3586
  AMDEP_FALSE=
 
3587
fi
 
3588
 
 
3589
 
 
3590
 
 
3591
depcc="$CC"   am_compiler_list=
 
3592
 
 
3593
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
3594
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3595
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 
3596
  $as_echo_n "(cached) " >&6
 
3597
else
 
3598
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3599
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3600
  # making bogus files that we don't know about and never remove.  For
 
3601
  # instance it was reported that on HP-UX the gcc test will end up
 
3602
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3603
  # in D'.
 
3604
  mkdir conftest.dir
 
3605
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3606
  # using a relative directory.
 
3607
  cp "$am_depcomp" conftest.dir
 
3608
  cd conftest.dir
 
3609
  # We will build objects and dependencies in a subdirectory because
 
3610
  # it helps to detect inapplicable dependency modes.  For instance
 
3611
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3612
  # side effect of compilation, but ICC will put the dependencies in
 
3613
  # the current directory while Tru64 will put them in the object
 
3614
  # directory.
 
3615
  mkdir sub
 
3616
 
 
3617
  am_cv_CC_dependencies_compiler_type=none
 
3618
  if test "$am_compiler_list" = ""; then
 
3619
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3620
  fi
 
3621
  am__universal=false
 
3622
  case " $depcc " in #(
 
3623
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3624
     esac
 
3625
 
 
3626
  for depmode in $am_compiler_list; do
 
3627
    # Setup a source with many dependencies, because some compilers
 
3628
    # like to wrap large dependency lists on column 80 (with \), and
 
3629
    # we should not choose a depcomp mode which is confused by this.
 
3630
    #
 
3631
    # We need to recreate these files for each test, as the compiler may
 
3632
    # overwrite some of them when testing with obscure command lines.
 
3633
    # This happens at least with the AIX C compiler.
 
3634
    : > sub/conftest.c
 
3635
    for i in 1 2 3 4 5 6; do
 
3636
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3637
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3638
      # Solaris 8's {/usr,}/bin/sh.
 
3639
      touch sub/conftst$i.h
 
3640
    done
 
3641
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3642
 
 
3643
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3644
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3645
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
3646
    # versions had trouble with output in subdirs
 
3647
    am__obj=sub/conftest.${OBJEXT-o}
 
3648
    am__minus_obj="-o $am__obj"
 
3649
    case $depmode in
 
3650
    gcc)
 
3651
      # This depmode causes a compiler race in universal mode.
 
3652
      test "$am__universal" = false || continue
 
3653
      ;;
 
3654
    nosideeffect)
 
3655
      # after this tag, mechanisms are not by side-effect, so they'll
 
3656
      # only be used when explicitly requested
 
3657
      if test "x$enable_dependency_tracking" = xyes; then
 
3658
        continue
 
3659
      else
 
3660
        break
 
3661
      fi
 
3662
      ;;
 
3663
    msvisualcpp | msvcmsys)
 
3664
      # This compiler won't grok `-c -o', but also, the minuso test has
 
3665
      # not run yet.  These depmodes are late enough in the game, and
 
3666
      # so weak that their functioning should not be impacted.
 
3667
      am__obj=conftest.${OBJEXT-o}
 
3668
      am__minus_obj=
 
3669
      ;;
 
3670
    none) break ;;
 
3671
    esac
 
3672
    if depmode=$depmode \
 
3673
       source=sub/conftest.c object=$am__obj \
 
3674
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3675
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
3676
         >/dev/null 2>conftest.err &&
 
3677
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3678
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3679
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
3680
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3681
      # icc doesn't choke on unknown options, it will just issue warnings
 
3682
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3683
      # that says an option was ignored or not supported.
 
3684
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3685
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3686
      # The diagnosis changed in icc 8.0:
 
3687
      #   icc: Command line remark: option '-MP' not supported
 
3688
      if (grep 'ignoring option' conftest.err ||
 
3689
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3690
        am_cv_CC_dependencies_compiler_type=$depmode
 
3691
        break
 
3692
      fi
 
3693
    fi
 
3694
  done
 
3695
 
 
3696
  cd ..
 
3697
  rm -rf conftest.dir
 
3698
else
 
3699
  am_cv_CC_dependencies_compiler_type=none
 
3700
fi
 
3701
 
 
3702
fi
 
3703
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3704
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
3705
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3706
 
 
3707
 if
 
3708
  test "x$enable_dependency_tracking" != xno \
 
3709
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3710
  am__fastdepCC_TRUE=
 
3711
  am__fastdepCC_FALSE='#'
 
3712
else
 
3713
  am__fastdepCC_TRUE='#'
 
3714
  am__fastdepCC_FALSE=
 
3715
fi
 
3716
 
 
3717
 
 
3718
if test "x$CC" != xcc; then
 
3719
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
 
3720
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
 
3721
else
 
3722
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
 
3723
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
 
3724
fi
 
3725
set dummy $CC; ac_cc=`$as_echo "$2" |
 
3726
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
3727
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
 
3728
  $as_echo_n "(cached) " >&6
 
3729
else
 
3730
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3731
/* end confdefs.h.  */
 
3732
 
 
3733
int
 
3734
main ()
 
3735
{
 
3736
 
 
3737
  ;
 
3738
  return 0;
 
3739
}
 
3740
_ACEOF
 
3741
# Make sure it works both with $CC and with simple cc.
 
3742
# We do the test twice because some compilers refuse to overwrite an
 
3743
# existing .o file with -o, though they will create one.
 
3744
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
3745
rm -f conftest2.*
 
3746
if { { case "(($ac_try" in
 
3747
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3748
  *) ac_try_echo=$ac_try;;
 
3749
esac
 
3750
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3751
$as_echo "$ac_try_echo"; } >&5
 
3752
  (eval "$ac_try") 2>&5
 
3753
  ac_status=$?
 
3754
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3755
  test $ac_status = 0; } &&
 
3756
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
 
3757
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3758
  *) ac_try_echo=$ac_try;;
 
3759
esac
 
3760
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3761
$as_echo "$ac_try_echo"; } >&5
 
3762
  (eval "$ac_try") 2>&5
 
3763
  ac_status=$?
 
3764
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3765
  test $ac_status = 0; };
 
3766
then
 
3767
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
 
3768
  if test "x$CC" != xcc; then
 
3769
    # Test first that cc exists at all.
 
3770
    if { ac_try='cc -c conftest.$ac_ext >&5'
 
3771
  { { case "(($ac_try" in
 
3772
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3773
  *) ac_try_echo=$ac_try;;
 
3774
esac
 
3775
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3776
$as_echo "$ac_try_echo"; } >&5
 
3777
  (eval "$ac_try") 2>&5
 
3778
  ac_status=$?
 
3779
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3780
  test $ac_status = 0; }; }; then
 
3781
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
3782
      rm -f conftest2.*
 
3783
      if { { case "(($ac_try" in
 
3784
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3785
  *) ac_try_echo=$ac_try;;
 
3786
esac
 
3787
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3788
$as_echo "$ac_try_echo"; } >&5
 
3789
  (eval "$ac_try") 2>&5
 
3790
  ac_status=$?
 
3791
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3792
  test $ac_status = 0; } &&
 
3793
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
 
3794
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3795
  *) ac_try_echo=$ac_try;;
 
3796
esac
 
3797
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3798
$as_echo "$ac_try_echo"; } >&5
 
3799
  (eval "$ac_try") 2>&5
 
3800
  ac_status=$?
 
3801
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3802
  test $ac_status = 0; };
 
3803
      then
 
3804
        # cc works too.
 
3805
        :
 
3806
      else
 
3807
        # cc exists but doesn't like -o.
 
3808
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
3809
      fi
 
3810
    fi
 
3811
  fi
 
3812
else
 
3813
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
3814
fi
 
3815
rm -f core conftest*
 
3816
 
 
3817
fi
 
3818
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
 
3819
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3820
$as_echo "yes" >&6; }
 
3821
else
 
3822
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3823
$as_echo "no" >&6; }
 
3824
 
 
3825
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
 
3826
 
 
3827
fi
 
3828
 
 
3829
# FIXME: we rely on the cache variable name because
 
3830
# there is no other way.
 
3831
set dummy $CC
 
3832
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
3833
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
 
3834
if test "$am_t" != yes; then
 
3835
   # Losing compiler, so override with the script.
 
3836
   # FIXME: It is wrong to rewrite CC.
 
3837
   # But if we don't then we get into trouble of one sort or another.
 
3838
   # A longer-term fix would be to have automake use am__CC in this case,
 
3839
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
3840
   CC="$am_aux_dir/compile $CC"
 
3841
fi
 
3842
 
 
3843
 
 
3844
 
 
3845
# Initialize libtool
 
3846
 
 
3847
case `pwd` in
 
3848
  *\ * | *\     *)
 
3849
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
3850
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
3851
esac
 
3852
 
 
3853
 
 
3854
 
 
3855
macro_version='2.4'
 
3856
macro_revision='1.3293'
 
3857
 
 
3858
 
 
3859
 
 
3860
 
 
3861
 
 
3862
 
 
3863
 
 
3864
 
 
3865
 
 
3866
 
 
3867
 
 
3868
 
 
3869
 
 
3870
ltmain="$ac_aux_dir/ltmain.sh"
 
3871
 
 
3872
# Make sure we can run config.sub.
 
3873
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
3874
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
3875
 
 
3876
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
3877
$as_echo_n "checking build system type... " >&6; }
 
3878
if ${ac_cv_build+:} false; then :
 
3879
  $as_echo_n "(cached) " >&6
 
3880
else
 
3881
  ac_build_alias=$build_alias
 
3882
test "x$ac_build_alias" = x &&
 
3883
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
3884
test "x$ac_build_alias" = x &&
 
3885
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 
3886
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
3887
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
3888
 
 
3889
fi
 
3890
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
3891
$as_echo "$ac_cv_build" >&6; }
 
3892
case $ac_cv_build in
 
3893
*-*-*) ;;
 
3894
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 
3895
esac
 
3896
build=$ac_cv_build
 
3897
ac_save_IFS=$IFS; IFS='-'
 
3898
set x $ac_cv_build
 
3899
shift
 
3900
build_cpu=$1
 
3901
build_vendor=$2
 
3902
shift; shift
 
3903
# Remember, the first character of IFS is used to create $*,
 
3904
# except with old shells:
 
3905
build_os=$*
 
3906
IFS=$ac_save_IFS
 
3907
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
3908
 
 
3909
 
 
3910
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
3911
$as_echo_n "checking host system type... " >&6; }
 
3912
if ${ac_cv_host+:} false; then :
 
3913
  $as_echo_n "(cached) " >&6
 
3914
else
 
3915
  if test "x$host_alias" = x; then
 
3916
  ac_cv_host=$ac_cv_build
 
3917
else
 
3918
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
3919
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
3920
fi
 
3921
 
 
3922
fi
 
3923
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
3924
$as_echo "$ac_cv_host" >&6; }
 
3925
case $ac_cv_host in
 
3926
*-*-*) ;;
 
3927
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 
3928
esac
 
3929
host=$ac_cv_host
 
3930
ac_save_IFS=$IFS; IFS='-'
 
3931
set x $ac_cv_host
 
3932
shift
 
3933
host_cpu=$1
 
3934
host_vendor=$2
 
3935
shift; shift
 
3936
# Remember, the first character of IFS is used to create $*,
 
3937
# except with old shells:
 
3938
host_os=$*
 
3939
IFS=$ac_save_IFS
 
3940
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
3941
 
 
3942
 
 
3943
# Backslashify metacharacters that are still active within
 
3944
# double-quoted strings.
 
3945
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
3946
 
 
3947
# Same as above, but do not quote variable references.
 
3948
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
3949
 
 
3950
# Sed substitution to delay expansion of an escaped shell variable in a
 
3951
# double_quote_subst'ed string.
 
3952
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
3953
 
 
3954
# Sed substitution to delay expansion of an escaped single quote.
 
3955
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
3956
 
 
3957
# Sed substitution to avoid accidental globbing in evaled expressions
 
3958
no_glob_subst='s/\*/\\\*/g'
 
3959
 
 
3960
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
3961
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
3962
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
3963
 
 
3964
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
 
3965
$as_echo_n "checking how to print strings... " >&6; }
 
3966
# Test print first, because it will be a builtin if present.
 
3967
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
3968
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
3969
  ECHO='print -r --'
 
3970
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
3971
  ECHO='printf %s\n'
 
3972
else
 
3973
  # Use this function as a fallback that always works.
 
3974
  func_fallback_echo ()
 
3975
  {
 
3976
    eval 'cat <<_LTECHO_EOF
 
3977
$1
 
3978
_LTECHO_EOF'
 
3979
  }
 
3980
  ECHO='func_fallback_echo'
 
3981
fi
 
3982
 
 
3983
# func_echo_all arg...
 
3984
# Invoke $ECHO with all args, space-separated.
 
3985
func_echo_all ()
 
3986
{
 
3987
    $ECHO ""
 
3988
}
 
3989
 
 
3990
case "$ECHO" in
 
3991
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
 
3992
$as_echo "printf" >&6; } ;;
 
3993
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
 
3994
$as_echo "print -r" >&6; } ;;
 
3995
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
 
3996
$as_echo "cat" >&6; } ;;
 
3997
esac
 
3998
 
 
3999
 
 
4000
 
 
4001
 
 
4002
 
 
4003
 
 
4004
 
 
4005
 
 
4006
 
 
4007
 
 
4008
 
 
4009
 
 
4010
 
 
4011
 
 
4012
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
4013
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
4014
if ${ac_cv_path_SED+:} false; then :
 
4015
  $as_echo_n "(cached) " >&6
 
4016
else
 
4017
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
4018
     for ac_i in 1 2 3 4 5 6 7; do
 
4019
       ac_script="$ac_script$as_nl$ac_script"
 
4020
     done
 
4021
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
4022
     { ac_script=; unset ac_script;}
 
4023
     if test -z "$SED"; then
 
4024
  ac_path_SED_found=false
 
4025
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4026
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4027
for as_dir in $PATH
 
4028
do
 
4029
  IFS=$as_save_IFS
 
4030
  test -z "$as_dir" && as_dir=.
 
4031
    for ac_prog in sed gsed; do
 
4032
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4033
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
4034
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
4035
# Check for GNU ac_path_SED and select it if it is found.
 
4036
  # Check for GNU $ac_path_SED
 
4037
case `"$ac_path_SED" --version 2>&1` in
 
4038
*GNU*)
 
4039
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
4040
*)
 
4041
  ac_count=0
 
4042
  $as_echo_n 0123456789 >"conftest.in"
 
4043
  while :
 
4044
  do
 
4045
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4046
    mv "conftest.tmp" "conftest.in"
 
4047
    cp "conftest.in" "conftest.nl"
 
4048
    $as_echo '' >> "conftest.nl"
 
4049
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4050
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4051
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4052
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
4053
      # Best one so far, save it but keep looking for a better one
 
4054
      ac_cv_path_SED="$ac_path_SED"
 
4055
      ac_path_SED_max=$ac_count
 
4056
    fi
 
4057
    # 10*(2^10) chars as input seems more than enough
 
4058
    test $ac_count -gt 10 && break
 
4059
  done
 
4060
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4061
esac
 
4062
 
 
4063
      $ac_path_SED_found && break 3
 
4064
    done
 
4065
  done
 
4066
  done
 
4067
IFS=$as_save_IFS
 
4068
  if test -z "$ac_cv_path_SED"; then
 
4069
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
4070
  fi
 
4071
else
 
4072
  ac_cv_path_SED=$SED
 
4073
fi
 
4074
 
 
4075
fi
 
4076
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
4077
$as_echo "$ac_cv_path_SED" >&6; }
 
4078
 SED="$ac_cv_path_SED"
 
4079
  rm -f conftest.sed
 
4080
 
 
4081
test -z "$SED" && SED=sed
 
4082
Xsed="$SED -e 1s/^X//"
 
4083
 
 
4084
 
 
4085
 
 
4086
 
 
4087
 
 
4088
 
 
4089
 
 
4090
 
 
4091
 
 
4092
 
 
4093
 
 
4094
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
4095
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4096
if ${ac_cv_path_GREP+:} false; then :
 
4097
  $as_echo_n "(cached) " >&6
 
4098
else
 
4099
  if test -z "$GREP"; then
 
4100
  ac_path_GREP_found=false
 
4101
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4102
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4103
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4104
do
 
4105
  IFS=$as_save_IFS
 
4106
  test -z "$as_dir" && as_dir=.
 
4107
    for ac_prog in grep ggrep; do
 
4108
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4109
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4110
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4111
# Check for GNU ac_path_GREP and select it if it is found.
 
4112
  # Check for GNU $ac_path_GREP
 
4113
case `"$ac_path_GREP" --version 2>&1` in
 
4114
*GNU*)
 
4115
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4116
*)
 
4117
  ac_count=0
 
4118
  $as_echo_n 0123456789 >"conftest.in"
 
4119
  while :
 
4120
  do
 
4121
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4122
    mv "conftest.tmp" "conftest.in"
 
4123
    cp "conftest.in" "conftest.nl"
 
4124
    $as_echo 'GREP' >> "conftest.nl"
 
4125
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4126
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4127
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4128
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4129
      # Best one so far, save it but keep looking for a better one
 
4130
      ac_cv_path_GREP="$ac_path_GREP"
 
4131
      ac_path_GREP_max=$ac_count
 
4132
    fi
 
4133
    # 10*(2^10) chars as input seems more than enough
 
4134
    test $ac_count -gt 10 && break
 
4135
  done
 
4136
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4137
esac
 
4138
 
 
4139
      $ac_path_GREP_found && break 3
 
4140
    done
 
4141
  done
 
4142
  done
 
4143
IFS=$as_save_IFS
 
4144
  if test -z "$ac_cv_path_GREP"; then
 
4145
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4146
  fi
 
4147
else
 
4148
  ac_cv_path_GREP=$GREP
 
4149
fi
 
4150
 
 
4151
fi
 
4152
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
4153
$as_echo "$ac_cv_path_GREP" >&6; }
 
4154
 GREP="$ac_cv_path_GREP"
 
4155
 
 
4156
 
 
4157
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
4158
$as_echo_n "checking for egrep... " >&6; }
 
4159
if ${ac_cv_path_EGREP+:} false; then :
 
4160
  $as_echo_n "(cached) " >&6
 
4161
else
 
4162
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4163
   then ac_cv_path_EGREP="$GREP -E"
 
4164
   else
 
4165
     if test -z "$EGREP"; then
 
4166
  ac_path_EGREP_found=false
 
4167
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4168
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4169
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4170
do
 
4171
  IFS=$as_save_IFS
 
4172
  test -z "$as_dir" && as_dir=.
 
4173
    for ac_prog in egrep; do
 
4174
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4175
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4176
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4177
# Check for GNU ac_path_EGREP and select it if it is found.
 
4178
  # Check for GNU $ac_path_EGREP
 
4179
case `"$ac_path_EGREP" --version 2>&1` in
 
4180
*GNU*)
 
4181
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4182
*)
 
4183
  ac_count=0
 
4184
  $as_echo_n 0123456789 >"conftest.in"
 
4185
  while :
 
4186
  do
 
4187
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4188
    mv "conftest.tmp" "conftest.in"
 
4189
    cp "conftest.in" "conftest.nl"
 
4190
    $as_echo 'EGREP' >> "conftest.nl"
 
4191
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4192
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4193
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4194
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4195
      # Best one so far, save it but keep looking for a better one
 
4196
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4197
      ac_path_EGREP_max=$ac_count
 
4198
    fi
 
4199
    # 10*(2^10) chars as input seems more than enough
 
4200
    test $ac_count -gt 10 && break
 
4201
  done
 
4202
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4203
esac
 
4204
 
 
4205
      $ac_path_EGREP_found && break 3
 
4206
    done
 
4207
  done
 
4208
  done
 
4209
IFS=$as_save_IFS
 
4210
  if test -z "$ac_cv_path_EGREP"; then
 
4211
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4212
  fi
 
4213
else
 
4214
  ac_cv_path_EGREP=$EGREP
 
4215
fi
 
4216
 
 
4217
   fi
 
4218
fi
 
4219
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
4220
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4221
 EGREP="$ac_cv_path_EGREP"
 
4222
 
 
4223
 
 
4224
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
4225
$as_echo_n "checking for fgrep... " >&6; }
 
4226
if ${ac_cv_path_FGREP+:} false; then :
 
4227
  $as_echo_n "(cached) " >&6
 
4228
else
 
4229
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
4230
   then ac_cv_path_FGREP="$GREP -F"
 
4231
   else
 
4232
     if test -z "$FGREP"; then
 
4233
  ac_path_FGREP_found=false
 
4234
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4235
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4236
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4237
do
 
4238
  IFS=$as_save_IFS
 
4239
  test -z "$as_dir" && as_dir=.
 
4240
    for ac_prog in fgrep; do
 
4241
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4242
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4243
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
4244
# Check for GNU ac_path_FGREP and select it if it is found.
 
4245
  # Check for GNU $ac_path_FGREP
 
4246
case `"$ac_path_FGREP" --version 2>&1` in
 
4247
*GNU*)
 
4248
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
4249
*)
 
4250
  ac_count=0
 
4251
  $as_echo_n 0123456789 >"conftest.in"
 
4252
  while :
 
4253
  do
 
4254
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4255
    mv "conftest.tmp" "conftest.in"
 
4256
    cp "conftest.in" "conftest.nl"
 
4257
    $as_echo 'FGREP' >> "conftest.nl"
 
4258
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4259
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4260
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4261
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
4262
      # Best one so far, save it but keep looking for a better one
 
4263
      ac_cv_path_FGREP="$ac_path_FGREP"
 
4264
      ac_path_FGREP_max=$ac_count
 
4265
    fi
 
4266
    # 10*(2^10) chars as input seems more than enough
 
4267
    test $ac_count -gt 10 && break
 
4268
  done
 
4269
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4270
esac
 
4271
 
 
4272
      $ac_path_FGREP_found && break 3
 
4273
    done
 
4274
  done
 
4275
  done
 
4276
IFS=$as_save_IFS
 
4277
  if test -z "$ac_cv_path_FGREP"; then
 
4278
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4279
  fi
 
4280
else
 
4281
  ac_cv_path_FGREP=$FGREP
 
4282
fi
 
4283
 
 
4284
   fi
 
4285
fi
 
4286
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
4287
$as_echo "$ac_cv_path_FGREP" >&6; }
 
4288
 FGREP="$ac_cv_path_FGREP"
 
4289
 
 
4290
 
 
4291
test -z "$GREP" && GREP=grep
 
4292
 
 
4293
 
 
4294
 
 
4295
 
 
4296
 
 
4297
 
 
4298
 
 
4299
 
 
4300
 
 
4301
 
 
4302
 
 
4303
 
 
4304
 
 
4305
 
 
4306
 
 
4307
 
 
4308
 
 
4309
 
 
4310
 
 
4311
# Check whether --with-gnu-ld was given.
 
4312
if test "${with_gnu_ld+set}" = set; then :
 
4313
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4314
else
 
4315
  with_gnu_ld=no
 
4316
fi
 
4317
 
 
4318
ac_prog=ld
 
4319
if test "$GCC" = yes; then
 
4320
  # Check if gcc -print-prog-name=ld gives a path.
 
4321
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
4322
$as_echo_n "checking for ld used by $CC... " >&6; }
 
4323
  case $host in
 
4324
  *-*-mingw*)
 
4325
    # gcc leaves a trailing carriage return which upsets mingw
 
4326
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4327
  *)
 
4328
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4329
  esac
 
4330
  case $ac_prog in
 
4331
    # Accept absolute paths.
 
4332
    [\\/]* | ?:[\\/]*)
 
4333
      re_direlt='/[^/][^/]*/\.\./'
 
4334
      # Canonicalize the pathname of ld
 
4335
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
4336
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
4337
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
4338
      done
 
4339
      test -z "$LD" && LD="$ac_prog"
 
4340
      ;;
 
4341
  "")
 
4342
    # If it fails, then pretend we aren't using GCC.
 
4343
    ac_prog=ld
 
4344
    ;;
 
4345
  *)
 
4346
    # If it is relative, then search for the first ld in PATH.
 
4347
    with_gnu_ld=unknown
 
4348
    ;;
 
4349
  esac
 
4350
elif test "$with_gnu_ld" = yes; then
 
4351
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
4352
$as_echo_n "checking for GNU ld... " >&6; }
 
4353
else
 
4354
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
4355
$as_echo_n "checking for non-GNU ld... " >&6; }
 
4356
fi
 
4357
if ${lt_cv_path_LD+:} false; then :
 
4358
  $as_echo_n "(cached) " >&6
 
4359
else
 
4360
  if test -z "$LD"; then
 
4361
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4362
  for ac_dir in $PATH; do
 
4363
    IFS="$lt_save_ifs"
 
4364
    test -z "$ac_dir" && ac_dir=.
 
4365
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4366
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4367
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4368
      # but apparently some variants of GNU ld only accept -v.
 
4369
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4370
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4371
      *GNU* | *'with BFD'*)
 
4372
        test "$with_gnu_ld" != no && break
 
4373
        ;;
 
4374
      *)
 
4375
        test "$with_gnu_ld" != yes && break
 
4376
        ;;
 
4377
      esac
 
4378
    fi
 
4379
  done
 
4380
  IFS="$lt_save_ifs"
 
4381
else
 
4382
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4383
fi
 
4384
fi
 
4385
 
 
4386
LD="$lt_cv_path_LD"
 
4387
if test -n "$LD"; then
 
4388
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
4389
$as_echo "$LD" >&6; }
 
4390
else
 
4391
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4392
$as_echo "no" >&6; }
 
4393
fi
 
4394
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
4395
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
4396
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
4397
if ${lt_cv_prog_gnu_ld+:} false; then :
 
4398
  $as_echo_n "(cached) " >&6
 
4399
else
 
4400
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4401
case `$LD -v 2>&1 </dev/null` in
 
4402
*GNU* | *'with BFD'*)
 
4403
  lt_cv_prog_gnu_ld=yes
 
4404
  ;;
 
4405
*)
 
4406
  lt_cv_prog_gnu_ld=no
 
4407
  ;;
 
4408
esac
 
4409
fi
 
4410
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
4411
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
4412
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4413
 
 
4414
 
 
4415
 
 
4416
 
 
4417
 
 
4418
 
 
4419
 
 
4420
 
 
4421
 
 
4422
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
4423
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
4424
if ${lt_cv_path_NM+:} false; then :
 
4425
  $as_echo_n "(cached) " >&6
 
4426
else
 
4427
  if test -n "$NM"; then
 
4428
  # Let the user override the test.
 
4429
  lt_cv_path_NM="$NM"
 
4430
else
 
4431
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4432
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4433
    lt_nm_to_check="$lt_nm_to_check nm"
 
4434
  fi
 
4435
  for lt_tmp_nm in $lt_nm_to_check; do
 
4436
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4437
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4438
      IFS="$lt_save_ifs"
 
4439
      test -z "$ac_dir" && ac_dir=.
 
4440
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4441
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4442
        # Check to see if the nm accepts a BSD-compat flag.
 
4443
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4444
        #   nm: unknown option "B" ignored
 
4445
        # Tru64's nm complains that /dev/null is an invalid object file
 
4446
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4447
        */dev/null* | *'Invalid file or object type'*)
 
4448
          lt_cv_path_NM="$tmp_nm -B"
 
4449
          break
 
4450
          ;;
 
4451
        *)
 
4452
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4453
          */dev/null*)
 
4454
            lt_cv_path_NM="$tmp_nm -p"
 
4455
            break
 
4456
            ;;
 
4457
          *)
 
4458
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4459
            continue # so that we can try to find one that supports BSD flags
 
4460
            ;;
 
4461
          esac
 
4462
          ;;
 
4463
        esac
 
4464
      fi
 
4465
    done
 
4466
    IFS="$lt_save_ifs"
 
4467
  done
 
4468
  : ${lt_cv_path_NM=no}
 
4469
fi
 
4470
fi
 
4471
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
4472
$as_echo "$lt_cv_path_NM" >&6; }
 
4473
if test "$lt_cv_path_NM" != "no"; then
 
4474
  NM="$lt_cv_path_NM"
 
4475
else
 
4476
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
4477
  if test -n "$DUMPBIN"; then :
 
4478
    # Let the user override the test.
 
4479
  else
 
4480
    if test -n "$ac_tool_prefix"; then
 
4481
  for ac_prog in dumpbin "link -dump"
 
4482
  do
 
4483
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4484
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4485
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4486
$as_echo_n "checking for $ac_word... " >&6; }
 
4487
if ${ac_cv_prog_DUMPBIN+:} false; then :
 
4488
  $as_echo_n "(cached) " >&6
 
4489
else
 
4490
  if test -n "$DUMPBIN"; then
 
4491
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
4492
else
 
4493
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4494
for as_dir in $PATH
 
4495
do
 
4496
  IFS=$as_save_IFS
 
4497
  test -z "$as_dir" && as_dir=.
 
4498
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4499
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4500
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
4501
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4502
    break 2
 
4503
  fi
 
4504
done
 
4505
  done
 
4506
IFS=$as_save_IFS
 
4507
 
 
4508
fi
 
4509
fi
 
4510
DUMPBIN=$ac_cv_prog_DUMPBIN
 
4511
if test -n "$DUMPBIN"; then
 
4512
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
4513
$as_echo "$DUMPBIN" >&6; }
 
4514
else
 
4515
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4516
$as_echo "no" >&6; }
 
4517
fi
 
4518
 
 
4519
 
 
4520
    test -n "$DUMPBIN" && break
 
4521
  done
 
4522
fi
 
4523
if test -z "$DUMPBIN"; then
 
4524
  ac_ct_DUMPBIN=$DUMPBIN
 
4525
  for ac_prog in dumpbin "link -dump"
 
4526
do
 
4527
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4528
set dummy $ac_prog; ac_word=$2
 
4529
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4530
$as_echo_n "checking for $ac_word... " >&6; }
 
4531
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
 
4532
  $as_echo_n "(cached) " >&6
 
4533
else
 
4534
  if test -n "$ac_ct_DUMPBIN"; then
 
4535
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
4536
else
 
4537
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4538
for as_dir in $PATH
 
4539
do
 
4540
  IFS=$as_save_IFS
 
4541
  test -z "$as_dir" && as_dir=.
 
4542
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4543
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4544
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
4545
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4546
    break 2
 
4547
  fi
 
4548
done
 
4549
  done
 
4550
IFS=$as_save_IFS
 
4551
 
 
4552
fi
 
4553
fi
 
4554
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
4555
if test -n "$ac_ct_DUMPBIN"; then
 
4556
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
4557
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
4558
else
 
4559
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4560
$as_echo "no" >&6; }
 
4561
fi
 
4562
 
 
4563
 
 
4564
  test -n "$ac_ct_DUMPBIN" && break
 
4565
done
 
4566
 
 
4567
  if test "x$ac_ct_DUMPBIN" = x; then
 
4568
    DUMPBIN=":"
 
4569
  else
 
4570
    case $cross_compiling:$ac_tool_warned in
 
4571
yes:)
 
4572
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4573
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4574
ac_tool_warned=yes ;;
 
4575
esac
 
4576
    DUMPBIN=$ac_ct_DUMPBIN
 
4577
  fi
 
4578
fi
 
4579
 
 
4580
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
4581
    *COFF*)
 
4582
      DUMPBIN="$DUMPBIN -symbols"
 
4583
      ;;
 
4584
    *)
 
4585
      DUMPBIN=:
 
4586
      ;;
 
4587
    esac
 
4588
  fi
 
4589
 
 
4590
  if test "$DUMPBIN" != ":"; then
 
4591
    NM="$DUMPBIN"
 
4592
  fi
 
4593
fi
 
4594
test -z "$NM" && NM=nm
 
4595
 
 
4596
 
 
4597
 
 
4598
 
 
4599
 
 
4600
 
 
4601
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
4602
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
4603
if ${lt_cv_nm_interface+:} false; then :
 
4604
  $as_echo_n "(cached) " >&6
 
4605
else
 
4606
  lt_cv_nm_interface="BSD nm"
 
4607
  echo "int some_variable = 0;" > conftest.$ac_ext
 
4608
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
 
4609
  (eval "$ac_compile" 2>conftest.err)
 
4610
  cat conftest.err >&5
 
4611
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
4612
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
4613
  cat conftest.err >&5
 
4614
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
 
4615
  cat conftest.out >&5
 
4616
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
4617
    lt_cv_nm_interface="MS dumpbin"
 
4618
  fi
 
4619
  rm -f conftest*
 
4620
fi
 
4621
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
4622
$as_echo "$lt_cv_nm_interface" >&6; }
 
4623
 
 
4624
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
4625
$as_echo_n "checking whether ln -s works... " >&6; }
 
4626
LN_S=$as_ln_s
 
4627
if test "$LN_S" = "ln -s"; then
 
4628
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4629
$as_echo "yes" >&6; }
 
4630
else
 
4631
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
4632
$as_echo "no, using $LN_S" >&6; }
 
4633
fi
 
4634
 
 
4635
# find the maximum length of command line arguments
 
4636
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
4637
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
4638
if ${lt_cv_sys_max_cmd_len+:} false; then :
 
4639
  $as_echo_n "(cached) " >&6
 
4640
else
 
4641
    i=0
 
4642
  teststring="ABCD"
 
4643
 
 
4644
  case $build_os in
 
4645
  msdosdjgpp*)
 
4646
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
4647
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
4648
    # during glob expansion).  Even if it were fixed, the result of this
 
4649
    # check would be larger than it should be.
 
4650
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
4651
    ;;
 
4652
 
 
4653
  gnu*)
 
4654
    # Under GNU Hurd, this test is not required because there is
 
4655
    # no limit to the length of command line arguments.
 
4656
    # Libtool will interpret -1 as no limit whatsoever
 
4657
    lt_cv_sys_max_cmd_len=-1;
 
4658
    ;;
 
4659
 
 
4660
  cygwin* | mingw* | cegcc*)
 
4661
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
4662
    # about 5 minutes as the teststring grows exponentially.
 
4663
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
4664
    # you end up with a "frozen" computer, even though with patience
 
4665
    # the test eventually succeeds (with a max line length of 256k).
 
4666
    # Instead, let's just punt: use the minimum linelength reported by
 
4667
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
4668
    lt_cv_sys_max_cmd_len=8192;
 
4669
    ;;
 
4670
 
 
4671
  mint*)
 
4672
    # On MiNT this can take a long time and run out of memory.
 
4673
    lt_cv_sys_max_cmd_len=8192;
 
4674
    ;;
 
4675
 
 
4676
  amigaos*)
 
4677
    # On AmigaOS with pdksh, this test takes hours, literally.
 
4678
    # So we just punt and use a minimum line length of 8192.
 
4679
    lt_cv_sys_max_cmd_len=8192;
 
4680
    ;;
 
4681
 
 
4682
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
4683
    # This has been around since 386BSD, at least.  Likely further.
 
4684
    if test -x /sbin/sysctl; then
 
4685
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
4686
    elif test -x /usr/sbin/sysctl; then
 
4687
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
4688
    else
 
4689
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
4690
    fi
 
4691
    # And add a safety zone
 
4692
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4693
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4694
    ;;
 
4695
 
 
4696
  interix*)
 
4697
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
4698
    lt_cv_sys_max_cmd_len=196608
 
4699
    ;;
 
4700
 
 
4701
  osf*)
 
4702
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
4703
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
4704
    # nice to cause kernel panics so lets avoid the loop below.
 
4705
    # First set a reasonable default.
 
4706
    lt_cv_sys_max_cmd_len=16384
 
4707
    #
 
4708
    if test -x /sbin/sysconfig; then
 
4709
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
4710
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
4711
      esac
 
4712
    fi
 
4713
    ;;
 
4714
  sco3.2v5*)
 
4715
    lt_cv_sys_max_cmd_len=102400
 
4716
    ;;
 
4717
  sysv5* | sco5v6* | sysv4.2uw2*)
 
4718
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
4719
    if test -n "$kargmax"; then
 
4720
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
4721
    else
 
4722
      lt_cv_sys_max_cmd_len=32768
 
4723
    fi
 
4724
    ;;
 
4725
  *)
 
4726
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
4727
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
4728
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4729
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4730
    else
 
4731
      # Make teststring a little bigger before we do anything with it.
 
4732
      # a 1K string should be a reasonable start.
 
4733
      for i in 1 2 3 4 5 6 7 8 ; do
 
4734
        teststring=$teststring$teststring
 
4735
      done
 
4736
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
4737
      # If test is not a shell built-in, we'll probably end up computing a
 
4738
      # maximum length that is only half of the actual maximum length, but
 
4739
      # we can't tell.
 
4740
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
 
4741
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 
4742
              test $i != 17 # 1/2 MB should be enough
 
4743
      do
 
4744
        i=`expr $i + 1`
 
4745
        teststring=$teststring$teststring
 
4746
      done
 
4747
      # Only check the string length outside the loop.
 
4748
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
4749
      teststring=
 
4750
      # Add a significant safety factor because C++ compilers can tack on
 
4751
      # massive amounts of additional arguments before passing them to the
 
4752
      # linker.  It appears as though 1/2 is a usable value.
 
4753
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
4754
    fi
 
4755
    ;;
 
4756
  esac
 
4757
 
 
4758
fi
 
4759
 
 
4760
if test -n $lt_cv_sys_max_cmd_len ; then
 
4761
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
4762
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
4763
else
 
4764
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
4765
$as_echo "none" >&6; }
 
4766
fi
 
4767
max_cmd_len=$lt_cv_sys_max_cmd_len
 
4768
 
 
4769
 
 
4770
 
 
4771
 
 
4772
 
 
4773
 
 
4774
: ${CP="cp -f"}
 
4775
: ${MV="mv -f"}
 
4776
: ${RM="rm -f"}
 
4777
 
 
4778
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
4779
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
4780
# Try some XSI features
 
4781
xsi_shell=no
 
4782
( _lt_dummy="a/b/c"
 
4783
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
4784
      = c,a/b,b/c, \
 
4785
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
4786
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
4787
  && xsi_shell=yes
 
4788
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
4789
$as_echo "$xsi_shell" >&6; }
 
4790
 
 
4791
 
 
4792
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
4793
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
4794
lt_shell_append=no
 
4795
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
4796
    >/dev/null 2>&1 \
 
4797
  && lt_shell_append=yes
 
4798
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
4799
$as_echo "$lt_shell_append" >&6; }
 
4800
 
 
4801
 
 
4802
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
4803
  lt_unset=unset
 
4804
else
 
4805
  lt_unset=false
 
4806
fi
 
4807
 
 
4808
 
 
4809
 
 
4810
 
 
4811
 
 
4812
# test EBCDIC or ASCII
 
4813
case `echo X|tr X '\101'` in
 
4814
 A) # ASCII based system
 
4815
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
4816
  lt_SP2NL='tr \040 \012'
 
4817
  lt_NL2SP='tr \015\012 \040\040'
 
4818
  ;;
 
4819
 *) # EBCDIC based system
 
4820
  lt_SP2NL='tr \100 \n'
 
4821
  lt_NL2SP='tr \r\n \100\100'
 
4822
  ;;
 
4823
esac
 
4824
 
 
4825
 
 
4826
 
 
4827
 
 
4828
 
 
4829
 
 
4830
 
 
4831
 
 
4832
 
 
4833
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
 
4834
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
 
4835
if ${lt_cv_to_host_file_cmd+:} false; then :
 
4836
  $as_echo_n "(cached) " >&6
 
4837
else
 
4838
  case $host in
 
4839
  *-*-mingw* )
 
4840
    case $build in
 
4841
      *-*-mingw* ) # actually msys
 
4842
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
4843
        ;;
 
4844
      *-*-cygwin* )
 
4845
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
4846
        ;;
 
4847
      * ) # otherwise, assume *nix
 
4848
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
4849
        ;;
 
4850
    esac
 
4851
    ;;
 
4852
  *-*-cygwin* )
 
4853
    case $build in
 
4854
      *-*-mingw* ) # actually msys
 
4855
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
4856
        ;;
 
4857
      *-*-cygwin* )
 
4858
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
4859
        ;;
 
4860
      * ) # otherwise, assume *nix
 
4861
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
4862
        ;;
 
4863
    esac
 
4864
    ;;
 
4865
  * ) # unhandled hosts (and "normal" native builds)
 
4866
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
4867
    ;;
 
4868
esac
 
4869
 
 
4870
fi
 
4871
 
 
4872
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
4873
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
 
4874
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
 
4875
 
 
4876
 
 
4877
 
 
4878
 
 
4879
 
 
4880
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
 
4881
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
 
4882
if ${lt_cv_to_tool_file_cmd+:} false; then :
 
4883
  $as_echo_n "(cached) " >&6
 
4884
else
 
4885
  #assume ordinary cross tools, or native build.
 
4886
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
4887
case $host in
 
4888
  *-*-mingw* )
 
4889
    case $build in
 
4890
      *-*-mingw* ) # actually msys
 
4891
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
4892
        ;;
 
4893
    esac
 
4894
    ;;
 
4895
esac
 
4896
 
 
4897
fi
 
4898
 
 
4899
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
4900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
 
4901
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
 
4902
 
 
4903
 
 
4904
 
 
4905
 
 
4906
 
 
4907
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
4908
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
4909
if ${lt_cv_ld_reload_flag+:} false; then :
 
4910
  $as_echo_n "(cached) " >&6
 
4911
else
 
4912
  lt_cv_ld_reload_flag='-r'
 
4913
fi
 
4914
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
4915
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
4916
reload_flag=$lt_cv_ld_reload_flag
 
4917
case $reload_flag in
 
4918
"" | " "*) ;;
 
4919
*) reload_flag=" $reload_flag" ;;
 
4920
esac
 
4921
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4922
case $host_os in
 
4923
  cygwin* | mingw* | pw32* | cegcc*)
 
4924
    if test "$GCC" != yes; then
 
4925
      reload_cmds=false
 
4926
    fi
 
4927
    ;;
 
4928
  darwin*)
 
4929
    if test "$GCC" = yes; then
 
4930
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4931
    else
 
4932
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4933
    fi
 
4934
    ;;
 
4935
esac
 
4936
 
 
4937
 
 
4938
 
 
4939
 
 
4940
 
 
4941
 
 
4942
 
 
4943
 
 
4944
 
 
4945
if test -n "$ac_tool_prefix"; then
 
4946
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
4947
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
4948
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4949
$as_echo_n "checking for $ac_word... " >&6; }
 
4950
if ${ac_cv_prog_OBJDUMP+:} false; then :
 
4951
  $as_echo_n "(cached) " >&6
 
4952
else
 
4953
  if test -n "$OBJDUMP"; then
 
4954
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
4955
else
 
4956
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4957
for as_dir in $PATH
 
4958
do
 
4959
  IFS=$as_save_IFS
 
4960
  test -z "$as_dir" && as_dir=.
 
4961
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4962
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4963
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
4964
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4965
    break 2
 
4966
  fi
 
4967
done
 
4968
  done
 
4969
IFS=$as_save_IFS
 
4970
 
 
4971
fi
 
4972
fi
 
4973
OBJDUMP=$ac_cv_prog_OBJDUMP
 
4974
if test -n "$OBJDUMP"; then
 
4975
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
4976
$as_echo "$OBJDUMP" >&6; }
 
4977
else
 
4978
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4979
$as_echo "no" >&6; }
 
4980
fi
 
4981
 
 
4982
 
 
4983
fi
 
4984
if test -z "$ac_cv_prog_OBJDUMP"; then
 
4985
  ac_ct_OBJDUMP=$OBJDUMP
 
4986
  # Extract the first word of "objdump", so it can be a program name with args.
 
4987
set dummy objdump; ac_word=$2
 
4988
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4989
$as_echo_n "checking for $ac_word... " >&6; }
 
4990
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
 
4991
  $as_echo_n "(cached) " >&6
 
4992
else
 
4993
  if test -n "$ac_ct_OBJDUMP"; then
 
4994
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
4995
else
 
4996
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4997
for as_dir in $PATH
 
4998
do
 
4999
  IFS=$as_save_IFS
 
5000
  test -z "$as_dir" && as_dir=.
 
5001
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5002
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5003
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
5004
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5005
    break 2
 
5006
  fi
 
5007
done
 
5008
  done
 
5009
IFS=$as_save_IFS
 
5010
 
 
5011
fi
 
5012
fi
 
5013
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
5014
if test -n "$ac_ct_OBJDUMP"; then
 
5015
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
5016
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
5017
else
 
5018
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5019
$as_echo "no" >&6; }
 
5020
fi
 
5021
 
 
5022
  if test "x$ac_ct_OBJDUMP" = x; then
 
5023
    OBJDUMP="false"
 
5024
  else
 
5025
    case $cross_compiling:$ac_tool_warned in
 
5026
yes:)
 
5027
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5028
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5029
ac_tool_warned=yes ;;
 
5030
esac
 
5031
    OBJDUMP=$ac_ct_OBJDUMP
 
5032
  fi
 
5033
else
 
5034
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
5035
fi
 
5036
 
 
5037
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5038
 
 
5039
 
 
5040
 
 
5041
 
 
5042
 
 
5043
 
 
5044
 
 
5045
 
 
5046
 
 
5047
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
5048
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
5049
if ${lt_cv_deplibs_check_method+:} false; then :
 
5050
  $as_echo_n "(cached) " >&6
 
5051
else
 
5052
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
5053
lt_cv_file_magic_test_file=
 
5054
lt_cv_deplibs_check_method='unknown'
 
5055
# Need to set the preceding variable on all platforms that support
 
5056
# interlibrary dependencies.
 
5057
# 'none' -- dependencies not supported.
 
5058
# `unknown' -- same as none, but documents that we really don't know.
 
5059
# 'pass_all' -- all dependencies passed with no checks.
 
5060
# 'test_compile' -- check by making test program.
 
5061
# 'file_magic [[regex]]' -- check by looking for files in library path
 
5062
# which responds to the $file_magic_cmd with a given extended regex.
 
5063
# If you have `file' or equivalent on your system and you're not sure
 
5064
# whether `pass_all' will *always* work, you probably want this one.
 
5065
 
 
5066
case $host_os in
 
5067
aix[4-9]*)
 
5068
  lt_cv_deplibs_check_method=pass_all
 
5069
  ;;
 
5070
 
 
5071
beos*)
 
5072
  lt_cv_deplibs_check_method=pass_all
 
5073
  ;;
 
5074
 
 
5075
bsdi[45]*)
 
5076
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
5077
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
5078
  lt_cv_file_magic_test_file=/shlib/libc.so
 
5079
  ;;
 
5080
 
 
5081
cygwin*)
 
5082
  # func_win32_libid is a shell function defined in ltmain.sh
 
5083
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5084
  lt_cv_file_magic_cmd='func_win32_libid'
 
5085
  ;;
 
5086
 
 
5087
mingw* | pw32*)
 
5088
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
5089
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
5090
  # unless we find 'file', for example because we are cross-compiling.
 
5091
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
5092
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
 
5093
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5094
    lt_cv_file_magic_cmd='func_win32_libid'
 
5095
  else
 
5096
    # Keep this pattern in sync with the one in func_win32_libid.
 
5097
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 
5098
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5099
  fi
 
5100
  ;;
 
5101
 
 
5102
cegcc*)
 
5103
  # use the weaker test based on 'objdump'. See mingw*.
 
5104
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
5105
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5106
  ;;
 
5107
 
 
5108
darwin* | rhapsody*)
 
5109
  lt_cv_deplibs_check_method=pass_all
 
5110
  ;;
 
5111
 
 
5112
freebsd* | dragonfly*)
 
5113
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5114
    case $host_cpu in
 
5115
    i*86 )
 
5116
      # Not sure whether the presence of OpenBSD here was a mistake.
 
5117
      # Let's accept both of them until this is cleared up.
 
5118
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
5119
      lt_cv_file_magic_cmd=/usr/bin/file
 
5120
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
5121
      ;;
 
5122
    esac
 
5123
  else
 
5124
    lt_cv_deplibs_check_method=pass_all
 
5125
  fi
 
5126
  ;;
 
5127
 
 
5128
gnu*)
 
5129
  lt_cv_deplibs_check_method=pass_all
 
5130
  ;;
 
5131
 
 
5132
haiku*)
 
5133
  lt_cv_deplibs_check_method=pass_all
 
5134
  ;;
 
5135
 
 
5136
hpux10.20* | hpux11*)
 
5137
  lt_cv_file_magic_cmd=/usr/bin/file
 
5138
  case $host_cpu in
 
5139
  ia64*)
 
5140
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
5141
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
5142
    ;;
 
5143
  hppa*64*)
 
5144
    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]'
 
5145
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
5146
    ;;
 
5147
  *)
 
5148
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
 
5149
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
5150
    ;;
 
5151
  esac
 
5152
  ;;
 
5153
 
 
5154
interix[3-9]*)
 
5155
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
5156
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
5157
  ;;
 
5158
 
 
5159
irix5* | irix6* | nonstopux*)
 
5160
  case $LD in
 
5161
  *-32|*"-32 ") libmagic=32-bit;;
 
5162
  *-n32|*"-n32 ") libmagic=N32;;
 
5163
  *-64|*"-64 ") libmagic=64-bit;;
 
5164
  *) libmagic=never-match;;
 
5165
  esac
 
5166
  lt_cv_deplibs_check_method=pass_all
 
5167
  ;;
 
5168
 
 
5169
# This must be Linux ELF.
 
5170
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
5171
  lt_cv_deplibs_check_method=pass_all
 
5172
  ;;
 
5173
 
 
5174
netbsd* | netbsdelf*-gnu)
 
5175
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5176
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5177
  else
 
5178
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
5179
  fi
 
5180
  ;;
 
5181
 
 
5182
newos6*)
 
5183
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
5184
  lt_cv_file_magic_cmd=/usr/bin/file
 
5185
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
5186
  ;;
 
5187
 
 
5188
*nto* | *qnx*)
 
5189
  lt_cv_deplibs_check_method=pass_all
 
5190
  ;;
 
5191
 
 
5192
openbsd*)
 
5193
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5194
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
5195
  else
 
5196
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5197
  fi
 
5198
  ;;
 
5199
 
 
5200
osf3* | osf4* | osf5*)
 
5201
  lt_cv_deplibs_check_method=pass_all
 
5202
  ;;
 
5203
 
 
5204
rdos*)
 
5205
  lt_cv_deplibs_check_method=pass_all
 
5206
  ;;
 
5207
 
 
5208
solaris*)
 
5209
  lt_cv_deplibs_check_method=pass_all
 
5210
  ;;
 
5211
 
 
5212
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5213
  lt_cv_deplibs_check_method=pass_all
 
5214
  ;;
 
5215
 
 
5216
sysv4 | sysv4.3*)
 
5217
  case $host_vendor in
 
5218
  motorola)
 
5219
    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]'
 
5220
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
5221
    ;;
 
5222
  ncr)
 
5223
    lt_cv_deplibs_check_method=pass_all
 
5224
    ;;
 
5225
  sequent)
 
5226
    lt_cv_file_magic_cmd='/bin/file'
 
5227
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
5228
    ;;
 
5229
  sni)
 
5230
    lt_cv_file_magic_cmd='/bin/file'
 
5231
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
5232
    lt_cv_file_magic_test_file=/lib/libc.so
 
5233
    ;;
 
5234
  siemens)
 
5235
    lt_cv_deplibs_check_method=pass_all
 
5236
    ;;
 
5237
  pc)
 
5238
    lt_cv_deplibs_check_method=pass_all
 
5239
    ;;
 
5240
  esac
 
5241
  ;;
 
5242
 
 
5243
tpf*)
 
5244
  lt_cv_deplibs_check_method=pass_all
 
5245
  ;;
 
5246
esac
 
5247
 
 
5248
fi
 
5249
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
5250
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
5251
 
 
5252
file_magic_glob=
 
5253
want_nocaseglob=no
 
5254
if test "$build" = "$host"; then
 
5255
  case $host_os in
 
5256
  mingw* | pw32*)
 
5257
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
5258
      want_nocaseglob=yes
 
5259
    else
 
5260
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
 
5261
    fi
 
5262
    ;;
 
5263
  esac
 
5264
fi
 
5265
 
 
5266
file_magic_cmd=$lt_cv_file_magic_cmd
 
5267
deplibs_check_method=$lt_cv_deplibs_check_method
 
5268
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5269
 
 
5270
 
 
5271
 
 
5272
 
 
5273
 
 
5274
 
 
5275
 
 
5276
 
 
5277
 
 
5278
 
 
5279
 
 
5280
 
 
5281
 
 
5282
 
 
5283
 
 
5284
 
 
5285
 
 
5286
 
 
5287
 
 
5288
 
 
5289
 
 
5290
 
 
5291
if test -n "$ac_tool_prefix"; then
 
5292
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
5293
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
5294
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5295
$as_echo_n "checking for $ac_word... " >&6; }
 
5296
if ${ac_cv_prog_DLLTOOL+:} false; then :
 
5297
  $as_echo_n "(cached) " >&6
 
5298
else
 
5299
  if test -n "$DLLTOOL"; then
 
5300
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
5301
else
 
5302
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5303
for as_dir in $PATH
 
5304
do
 
5305
  IFS=$as_save_IFS
 
5306
  test -z "$as_dir" && as_dir=.
 
5307
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5308
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5309
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
5310
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5311
    break 2
 
5312
  fi
 
5313
done
 
5314
  done
 
5315
IFS=$as_save_IFS
 
5316
 
 
5317
fi
 
5318
fi
 
5319
DLLTOOL=$ac_cv_prog_DLLTOOL
 
5320
if test -n "$DLLTOOL"; then
 
5321
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
5322
$as_echo "$DLLTOOL" >&6; }
 
5323
else
 
5324
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5325
$as_echo "no" >&6; }
 
5326
fi
 
5327
 
 
5328
 
 
5329
fi
 
5330
if test -z "$ac_cv_prog_DLLTOOL"; then
 
5331
  ac_ct_DLLTOOL=$DLLTOOL
 
5332
  # Extract the first word of "dlltool", so it can be a program name with args.
 
5333
set dummy dlltool; ac_word=$2
 
5334
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5335
$as_echo_n "checking for $ac_word... " >&6; }
 
5336
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
 
5337
  $as_echo_n "(cached) " >&6
 
5338
else
 
5339
  if test -n "$ac_ct_DLLTOOL"; then
 
5340
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
5341
else
 
5342
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5343
for as_dir in $PATH
 
5344
do
 
5345
  IFS=$as_save_IFS
 
5346
  test -z "$as_dir" && as_dir=.
 
5347
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5348
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5349
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
5350
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5351
    break 2
 
5352
  fi
 
5353
done
 
5354
  done
 
5355
IFS=$as_save_IFS
 
5356
 
 
5357
fi
 
5358
fi
 
5359
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
5360
if test -n "$ac_ct_DLLTOOL"; then
 
5361
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
5362
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
5363
else
 
5364
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5365
$as_echo "no" >&6; }
 
5366
fi
 
5367
 
 
5368
  if test "x$ac_ct_DLLTOOL" = x; then
 
5369
    DLLTOOL="false"
 
5370
  else
 
5371
    case $cross_compiling:$ac_tool_warned in
 
5372
yes:)
 
5373
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5374
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5375
ac_tool_warned=yes ;;
 
5376
esac
 
5377
    DLLTOOL=$ac_ct_DLLTOOL
 
5378
  fi
 
5379
else
 
5380
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
5381
fi
 
5382
 
 
5383
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
5384
 
 
5385
 
 
5386
 
 
5387
 
 
5388
 
 
5389
 
 
5390
 
 
5391
 
 
5392
 
 
5393
 
 
5394
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
 
5395
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
 
5396
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
 
5397
  $as_echo_n "(cached) " >&6
 
5398
else
 
5399
  lt_cv_sharedlib_from_linklib_cmd='unknown'
 
5400
 
 
5401
case $host_os in
 
5402
cygwin* | mingw* | pw32* | cegcc*)
 
5403
  # two different shell functions defined in ltmain.sh
 
5404
  # decide which to use based on capabilities of $DLLTOOL
 
5405
  case `$DLLTOOL --help 2>&1` in
 
5406
  *--identify-strict*)
 
5407
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
5408
    ;;
 
5409
  *)
 
5410
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
5411
    ;;
 
5412
  esac
 
5413
  ;;
 
5414
*)
 
5415
  # fallback: assume linklib IS sharedlib
 
5416
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
5417
  ;;
 
5418
esac
 
5419
 
 
5420
fi
 
5421
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
 
5422
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
 
5423
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
5424
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
5425
 
 
5426
 
 
5427
 
 
5428
 
 
5429
 
 
5430
 
 
5431
 
 
5432
 
 
5433
if test -n "$ac_tool_prefix"; then
 
5434
  for ac_prog in ar
 
5435
  do
 
5436
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5437
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5438
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5439
$as_echo_n "checking for $ac_word... " >&6; }
 
5440
if ${ac_cv_prog_AR+:} false; then :
 
5441
  $as_echo_n "(cached) " >&6
 
5442
else
 
5443
  if test -n "$AR"; then
 
5444
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5445
else
 
5446
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5447
for as_dir in $PATH
 
5448
do
 
5449
  IFS=$as_save_IFS
 
5450
  test -z "$as_dir" && as_dir=.
 
5451
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5452
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5453
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
 
5454
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5455
    break 2
 
5456
  fi
 
5457
done
 
5458
  done
 
5459
IFS=$as_save_IFS
 
5460
 
 
5461
fi
 
5462
fi
 
5463
AR=$ac_cv_prog_AR
 
5464
if test -n "$AR"; then
 
5465
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
5466
$as_echo "$AR" >&6; }
 
5467
else
 
5468
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5469
$as_echo "no" >&6; }
 
5470
fi
 
5471
 
 
5472
 
 
5473
    test -n "$AR" && break
 
5474
  done
 
5475
fi
 
5476
if test -z "$AR"; then
 
5477
  ac_ct_AR=$AR
 
5478
  for ac_prog in ar
 
5479
do
 
5480
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5481
set dummy $ac_prog; ac_word=$2
 
5482
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5483
$as_echo_n "checking for $ac_word... " >&6; }
 
5484
if ${ac_cv_prog_ac_ct_AR+:} false; then :
 
5485
  $as_echo_n "(cached) " >&6
 
5486
else
 
5487
  if test -n "$ac_ct_AR"; then
 
5488
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5489
else
 
5490
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5491
for as_dir in $PATH
 
5492
do
 
5493
  IFS=$as_save_IFS
 
5494
  test -z "$as_dir" && as_dir=.
 
5495
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5496
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5497
    ac_cv_prog_ac_ct_AR="$ac_prog"
 
5498
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5499
    break 2
 
5500
  fi
 
5501
done
 
5502
  done
 
5503
IFS=$as_save_IFS
 
5504
 
 
5505
fi
 
5506
fi
 
5507
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5508
if test -n "$ac_ct_AR"; then
 
5509
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
5510
$as_echo "$ac_ct_AR" >&6; }
 
5511
else
 
5512
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5513
$as_echo "no" >&6; }
 
5514
fi
 
5515
 
 
5516
 
 
5517
  test -n "$ac_ct_AR" && break
 
5518
done
 
5519
 
 
5520
  if test "x$ac_ct_AR" = x; then
 
5521
    AR="false"
 
5522
  else
 
5523
    case $cross_compiling:$ac_tool_warned in
 
5524
yes:)
 
5525
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5526
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5527
ac_tool_warned=yes ;;
 
5528
esac
 
5529
    AR=$ac_ct_AR
 
5530
  fi
 
5531
fi
 
5532
 
 
5533
: ${AR=ar}
 
5534
: ${AR_FLAGS=cru}
 
5535
 
 
5536
 
 
5537
 
 
5538
 
 
5539
 
 
5540
 
 
5541
 
 
5542
 
 
5543
 
 
5544
 
 
5545
 
 
5546
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
 
5547
$as_echo_n "checking for archiver @FILE support... " >&6; }
 
5548
if ${lt_cv_ar_at_file+:} false; then :
 
5549
  $as_echo_n "(cached) " >&6
 
5550
else
 
5551
  lt_cv_ar_at_file=no
 
5552
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5553
/* end confdefs.h.  */
 
5554
 
 
5555
int
 
5556
main ()
 
5557
{
 
5558
 
 
5559
  ;
 
5560
  return 0;
 
5561
}
 
5562
_ACEOF
 
5563
if ac_fn_c_try_compile "$LINENO"; then :
 
5564
  echo conftest.$ac_objext > conftest.lst
 
5565
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
 
5566
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
5567
  (eval $lt_ar_try) 2>&5
 
5568
  ac_status=$?
 
5569
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5570
  test $ac_status = 0; }
 
5571
      if test "$ac_status" -eq 0; then
 
5572
        # Ensure the archiver fails upon bogus file names.
 
5573
        rm -f conftest.$ac_objext libconftest.a
 
5574
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
5575
  (eval $lt_ar_try) 2>&5
 
5576
  ac_status=$?
 
5577
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5578
  test $ac_status = 0; }
 
5579
        if test "$ac_status" -ne 0; then
 
5580
          lt_cv_ar_at_file=@
 
5581
        fi
 
5582
      fi
 
5583
      rm -f conftest.* libconftest.a
 
5584
 
 
5585
fi
 
5586
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5587
 
 
5588
fi
 
5589
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
 
5590
$as_echo "$lt_cv_ar_at_file" >&6; }
 
5591
 
 
5592
if test "x$lt_cv_ar_at_file" = xno; then
 
5593
  archiver_list_spec=
 
5594
else
 
5595
  archiver_list_spec=$lt_cv_ar_at_file
 
5596
fi
 
5597
 
 
5598
 
 
5599
 
 
5600
 
 
5601
 
 
5602
 
 
5603
 
 
5604
if test -n "$ac_tool_prefix"; then
 
5605
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5606
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5607
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5608
$as_echo_n "checking for $ac_word... " >&6; }
 
5609
if ${ac_cv_prog_STRIP+:} false; then :
 
5610
  $as_echo_n "(cached) " >&6
 
5611
else
 
5612
  if test -n "$STRIP"; then
 
5613
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5614
else
 
5615
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5616
for as_dir in $PATH
 
5617
do
 
5618
  IFS=$as_save_IFS
 
5619
  test -z "$as_dir" && as_dir=.
 
5620
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5621
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5622
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5623
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5624
    break 2
 
5625
  fi
 
5626
done
 
5627
  done
 
5628
IFS=$as_save_IFS
 
5629
 
 
5630
fi
 
5631
fi
 
5632
STRIP=$ac_cv_prog_STRIP
 
5633
if test -n "$STRIP"; then
 
5634
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
5635
$as_echo "$STRIP" >&6; }
 
5636
else
 
5637
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5638
$as_echo "no" >&6; }
 
5639
fi
 
5640
 
 
5641
 
 
5642
fi
 
5643
if test -z "$ac_cv_prog_STRIP"; then
 
5644
  ac_ct_STRIP=$STRIP
 
5645
  # Extract the first word of "strip", so it can be a program name with args.
 
5646
set dummy strip; ac_word=$2
 
5647
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5648
$as_echo_n "checking for $ac_word... " >&6; }
 
5649
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
5650
  $as_echo_n "(cached) " >&6
 
5651
else
 
5652
  if test -n "$ac_ct_STRIP"; then
 
5653
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5654
else
 
5655
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5656
for as_dir in $PATH
 
5657
do
 
5658
  IFS=$as_save_IFS
 
5659
  test -z "$as_dir" && as_dir=.
 
5660
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5661
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5662
    ac_cv_prog_ac_ct_STRIP="strip"
 
5663
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5664
    break 2
 
5665
  fi
 
5666
done
 
5667
  done
 
5668
IFS=$as_save_IFS
 
5669
 
 
5670
fi
 
5671
fi
 
5672
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5673
if test -n "$ac_ct_STRIP"; then
 
5674
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
5675
$as_echo "$ac_ct_STRIP" >&6; }
 
5676
else
 
5677
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5678
$as_echo "no" >&6; }
 
5679
fi
 
5680
 
 
5681
  if test "x$ac_ct_STRIP" = x; then
 
5682
    STRIP=":"
 
5683
  else
 
5684
    case $cross_compiling:$ac_tool_warned in
 
5685
yes:)
 
5686
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5687
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5688
ac_tool_warned=yes ;;
 
5689
esac
 
5690
    STRIP=$ac_ct_STRIP
 
5691
  fi
 
5692
else
 
5693
  STRIP="$ac_cv_prog_STRIP"
 
5694
fi
 
5695
 
 
5696
test -z "$STRIP" && STRIP=:
 
5697
 
 
5698
 
 
5699
 
 
5700
 
 
5701
 
 
5702
 
 
5703
if test -n "$ac_tool_prefix"; then
 
5704
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5705
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5706
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5707
$as_echo_n "checking for $ac_word... " >&6; }
 
5708
if ${ac_cv_prog_RANLIB+:} false; then :
 
5709
  $as_echo_n "(cached) " >&6
 
5710
else
 
5711
  if test -n "$RANLIB"; then
 
5712
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5713
else
 
5714
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5715
for as_dir in $PATH
 
5716
do
 
5717
  IFS=$as_save_IFS
 
5718
  test -z "$as_dir" && as_dir=.
 
5719
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5720
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5721
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5722
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5723
    break 2
 
5724
  fi
 
5725
done
 
5726
  done
 
5727
IFS=$as_save_IFS
 
5728
 
 
5729
fi
 
5730
fi
 
5731
RANLIB=$ac_cv_prog_RANLIB
 
5732
if test -n "$RANLIB"; then
 
5733
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
5734
$as_echo "$RANLIB" >&6; }
 
5735
else
 
5736
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5737
$as_echo "no" >&6; }
 
5738
fi
 
5739
 
 
5740
 
 
5741
fi
 
5742
if test -z "$ac_cv_prog_RANLIB"; then
 
5743
  ac_ct_RANLIB=$RANLIB
 
5744
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5745
set dummy ranlib; ac_word=$2
 
5746
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5747
$as_echo_n "checking for $ac_word... " >&6; }
 
5748
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 
5749
  $as_echo_n "(cached) " >&6
 
5750
else
 
5751
  if test -n "$ac_ct_RANLIB"; then
 
5752
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5753
else
 
5754
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5755
for as_dir in $PATH
 
5756
do
 
5757
  IFS=$as_save_IFS
 
5758
  test -z "$as_dir" && as_dir=.
 
5759
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5760
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5761
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5762
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5763
    break 2
 
5764
  fi
 
5765
done
 
5766
  done
 
5767
IFS=$as_save_IFS
 
5768
 
 
5769
fi
 
5770
fi
 
5771
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5772
if test -n "$ac_ct_RANLIB"; then
 
5773
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
5774
$as_echo "$ac_ct_RANLIB" >&6; }
 
5775
else
 
5776
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5777
$as_echo "no" >&6; }
 
5778
fi
 
5779
 
 
5780
  if test "x$ac_ct_RANLIB" = x; then
 
5781
    RANLIB=":"
 
5782
  else
 
5783
    case $cross_compiling:$ac_tool_warned in
 
5784
yes:)
 
5785
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5786
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5787
ac_tool_warned=yes ;;
 
5788
esac
 
5789
    RANLIB=$ac_ct_RANLIB
 
5790
  fi
 
5791
else
 
5792
  RANLIB="$ac_cv_prog_RANLIB"
 
5793
fi
 
5794
 
 
5795
test -z "$RANLIB" && RANLIB=:
 
5796
 
 
5797
 
 
5798
 
 
5799
 
 
5800
 
 
5801
 
 
5802
# Determine commands to create old-style static archives.
 
5803
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
5804
old_postinstall_cmds='chmod 644 $oldlib'
 
5805
old_postuninstall_cmds=
 
5806
 
 
5807
if test -n "$RANLIB"; then
 
5808
  case $host_os in
 
5809
  openbsd*)
 
5810
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
5811
    ;;
 
5812
  *)
 
5813
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
5814
    ;;
 
5815
  esac
 
5816
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
5817
fi
 
5818
 
 
5819
case $host_os in
 
5820
  darwin*)
 
5821
    lock_old_archive_extraction=yes ;;
 
5822
  *)
 
5823
    lock_old_archive_extraction=no ;;
 
5824
esac
 
5825
 
 
5826
 
 
5827
 
 
5828
 
 
5829
 
 
5830
 
 
5831
 
 
5832
 
 
5833
 
 
5834
 
 
5835
 
 
5836
 
 
5837
 
 
5838
 
 
5839
 
 
5840
 
 
5841
 
 
5842
 
 
5843
 
 
5844
 
 
5845
 
 
5846
 
 
5847
 
 
5848
 
 
5849
 
 
5850
 
 
5851
 
 
5852
 
 
5853
 
 
5854
 
 
5855
 
 
5856
 
 
5857
 
 
5858
 
 
5859
 
 
5860
 
 
5861
 
 
5862
 
 
5863
 
 
5864
# If no C compiler was specified, use CC.
 
5865
LTCC=${LTCC-"$CC"}
 
5866
 
 
5867
# If no C compiler flags were specified, use CFLAGS.
 
5868
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
5869
 
 
5870
# Allow CC to be a program name with arguments.
 
5871
compiler=$CC
 
5872
 
 
5873
 
 
5874
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
5875
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
5876
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
5877
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
 
5878
  $as_echo_n "(cached) " >&6
 
5879
else
 
5880
 
 
5881
# These are sane defaults that work on at least a few old systems.
 
5882
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5883
 
 
5884
# Character class describing NM global symbol codes.
 
5885
symcode='[BCDEGRST]'
 
5886
 
 
5887
# Regexp to match symbols that can be accessed directly from C.
 
5888
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
5889
 
 
5890
# Define system-specific variables.
 
5891
case $host_os in
 
5892
aix*)
 
5893
  symcode='[BCDT]'
 
5894
  ;;
 
5895
cygwin* | mingw* | pw32* | cegcc*)
 
5896
  symcode='[ABCDGISTW]'
 
5897
  ;;
 
5898
hpux*)
 
5899
  if test "$host_cpu" = ia64; then
 
5900
    symcode='[ABCDEGRST]'
 
5901
  fi
 
5902
  ;;
 
5903
irix* | nonstopux*)
 
5904
  symcode='[BCDEGRST]'
 
5905
  ;;
 
5906
osf*)
 
5907
  symcode='[BCDEGQRST]'
 
5908
  ;;
 
5909
solaris*)
 
5910
  symcode='[BDRT]'
 
5911
  ;;
 
5912
sco3.2v5*)
 
5913
  symcode='[DT]'
 
5914
  ;;
 
5915
sysv4.2uw2*)
 
5916
  symcode='[DT]'
 
5917
  ;;
 
5918
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
5919
  symcode='[ABDT]'
 
5920
  ;;
 
5921
sysv4)
 
5922
  symcode='[DFNSTU]'
 
5923
  ;;
 
5924
esac
 
5925
 
 
5926
# If we're using GNU nm, then use its standard symbol codes.
 
5927
case `$NM -V 2>&1` in
 
5928
*GNU* | *'with BFD'*)
 
5929
  symcode='[ABCDGIRSTW]' ;;
 
5930
esac
 
5931
 
 
5932
# Transform an extracted symbol line into a proper C declaration.
 
5933
# Some systems (esp. on ia64) link data and code symbols differently,
 
5934
# so use this general approach.
 
5935
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5936
 
 
5937
# Transform an extracted symbol line into symbol name and symbol address
 
5938
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
5939
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'"
 
5940
 
 
5941
# Handle CRLF in mingw tool chain
 
5942
opt_cr=
 
5943
case $build_os in
 
5944
mingw*)
 
5945
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5946
  ;;
 
5947
esac
 
5948
 
 
5949
# Try without a prefix underscore, then with it.
 
5950
for ac_symprfx in "" "_"; do
 
5951
 
 
5952
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
5953
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
5954
 
 
5955
  # Write the raw and C identifiers.
 
5956
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
5957
    # Fake it for dumpbin and say T for any non-static function
 
5958
    # and D for any global variable.
 
5959
    # Also find C++ and __fastcall symbols from MSVC++,
 
5960
    # which start with @ or ?.
 
5961
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
5962
"     {last_section=section; section=\$ 3};"\
 
5963
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
5964
"     \$ 0!~/External *\|/{next};"\
 
5965
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
5966
"     {if(hide[section]) next};"\
 
5967
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
5968
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
5969
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
5970
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
5971
"     ' prfx=^$ac_symprfx"
 
5972
  else
 
5973
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
5974
  fi
 
5975
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
 
5976
 
 
5977
  # Check to see that the pipe works correctly.
 
5978
  pipe_works=no
 
5979
 
 
5980
  rm -f conftest*
 
5981
  cat > conftest.$ac_ext <<_LT_EOF
 
5982
#ifdef __cplusplus
 
5983
extern "C" {
 
5984
#endif
 
5985
char nm_test_var;
 
5986
void nm_test_func(void);
 
5987
void nm_test_func(void){}
 
5988
#ifdef __cplusplus
 
5989
}
 
5990
#endif
 
5991
int main(){nm_test_var='a';nm_test_func();return(0);}
 
5992
_LT_EOF
 
5993
 
 
5994
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
5995
  (eval $ac_compile) 2>&5
 
5996
  ac_status=$?
 
5997
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5998
  test $ac_status = 0; }; then
 
5999
    # Now try to grab the symbols.
 
6000
    nlist=conftest.nm
 
6001
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
 
6002
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
 
6003
  ac_status=$?
 
6004
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6005
  test $ac_status = 0; } && test -s "$nlist"; then
 
6006
      # Try sorting and uniquifying the output.
 
6007
      if sort "$nlist" | uniq > "$nlist"T; then
 
6008
        mv -f "$nlist"T "$nlist"
 
6009
      else
 
6010
        rm -f "$nlist"T
 
6011
      fi
 
6012
 
 
6013
      # Make sure that we snagged all the symbols we need.
 
6014
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
6015
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
6016
          cat <<_LT_EOF > conftest.$ac_ext
 
6017
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
6018
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
6019
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
6020
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
6021
# define LT_DLSYM_CONST
 
6022
#elif defined(__osf__)
 
6023
/* This system does not cope well with relocations in const data.  */
 
6024
# define LT_DLSYM_CONST
 
6025
#else
 
6026
# define LT_DLSYM_CONST const
 
6027
#endif
 
6028
 
 
6029
#ifdef __cplusplus
 
6030
extern "C" {
 
6031
#endif
 
6032
 
 
6033
_LT_EOF
 
6034
          # Now generate the symbol file.
 
6035
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
6036
 
 
6037
          cat <<_LT_EOF >> conftest.$ac_ext
 
6038
 
 
6039
/* The mapping between symbol names and symbols.  */
 
6040
LT_DLSYM_CONST struct {
 
6041
  const char *name;
 
6042
  void       *address;
 
6043
}
 
6044
lt__PROGRAM__LTX_preloaded_symbols[] =
 
6045
{
 
6046
  { "@PROGRAM@", (void *) 0 },
 
6047
_LT_EOF
 
6048
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
6049
          cat <<\_LT_EOF >> conftest.$ac_ext
 
6050
  {0, (void *) 0}
 
6051
};
 
6052
 
 
6053
/* This works around a problem in FreeBSD linker */
 
6054
#ifdef FREEBSD_WORKAROUND
 
6055
static const void *lt_preloaded_setup() {
 
6056
  return lt__PROGRAM__LTX_preloaded_symbols;
 
6057
}
 
6058
#endif
 
6059
 
 
6060
#ifdef __cplusplus
 
6061
}
 
6062
#endif
 
6063
_LT_EOF
 
6064
          # Now try linking the two files.
 
6065
          mv conftest.$ac_objext conftstm.$ac_objext
 
6066
          lt_globsym_save_LIBS=$LIBS
 
6067
          lt_globsym_save_CFLAGS=$CFLAGS
 
6068
          LIBS="conftstm.$ac_objext"
 
6069
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6070
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
6071
  (eval $ac_link) 2>&5
 
6072
  ac_status=$?
 
6073
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6074
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 
6075
            pipe_works=yes
 
6076
          fi
 
6077
          LIBS=$lt_globsym_save_LIBS
 
6078
          CFLAGS=$lt_globsym_save_CFLAGS
 
6079
        else
 
6080
          echo "cannot find nm_test_func in $nlist" >&5
 
6081
        fi
 
6082
      else
 
6083
        echo "cannot find nm_test_var in $nlist" >&5
 
6084
      fi
 
6085
    else
 
6086
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6087
    fi
 
6088
  else
 
6089
    echo "$progname: failed program was:" >&5
 
6090
    cat conftest.$ac_ext >&5
 
6091
  fi
 
6092
  rm -rf conftest* conftst*
 
6093
 
 
6094
  # Do not use the global_symbol_pipe unless it works.
 
6095
  if test "$pipe_works" = yes; then
 
6096
    break
 
6097
  else
 
6098
    lt_cv_sys_global_symbol_pipe=
 
6099
  fi
 
6100
done
 
6101
 
 
6102
fi
 
6103
 
 
6104
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6105
  lt_cv_sys_global_symbol_to_cdecl=
 
6106
fi
 
6107
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6108
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
6109
$as_echo "failed" >&6; }
 
6110
else
 
6111
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
6112
$as_echo "ok" >&6; }
 
6113
fi
 
6114
 
 
6115
# Response file support.
 
6116
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
6117
  nm_file_list_spec='@'
 
6118
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
 
6119
  nm_file_list_spec='@'
 
6120
fi
 
6121
 
 
6122
 
 
6123
 
 
6124
 
 
6125
 
 
6126
 
 
6127
 
 
6128
 
 
6129
 
 
6130
 
 
6131
 
 
6132
 
 
6133
 
 
6134
 
 
6135
 
 
6136
 
 
6137
 
 
6138
 
 
6139
 
 
6140
 
 
6141
 
 
6142
 
 
6143
 
 
6144
 
 
6145
 
 
6146
 
 
6147
 
 
6148
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
 
6149
$as_echo_n "checking for sysroot... " >&6; }
 
6150
 
 
6151
# Check whether --with-sysroot was given.
 
6152
if test "${with_sysroot+set}" = set; then :
 
6153
  withval=$with_sysroot;
 
6154
else
 
6155
  with_sysroot=no
 
6156
fi
 
6157
 
 
6158
 
 
6159
lt_sysroot=
 
6160
case ${with_sysroot} in #(
 
6161
 yes)
 
6162
   if test "$GCC" = yes; then
 
6163
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
6164
   fi
 
6165
   ;; #(
 
6166
 /*)
 
6167
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
6168
   ;; #(
 
6169
 no|'')
 
6170
   ;; #(
 
6171
 *)
 
6172
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
 
6173
$as_echo "${with_sysroot}" >&6; }
 
6174
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
 
6175
   ;;
 
6176
esac
 
6177
 
 
6178
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
 
6179
$as_echo "${lt_sysroot:-no}" >&6; }
 
6180
 
 
6181
 
 
6182
 
 
6183
 
 
6184
 
 
6185
# Check whether --enable-libtool-lock was given.
 
6186
if test "${enable_libtool_lock+set}" = set; then :
 
6187
  enableval=$enable_libtool_lock;
 
6188
fi
 
6189
 
 
6190
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6191
 
 
6192
# Some flags need to be propagated to the compiler or linker for good
 
6193
# libtool support.
 
6194
case $host in
 
6195
ia64-*-hpux*)
 
6196
  # Find out which ABI we are using.
 
6197
  echo 'int i;' > conftest.$ac_ext
 
6198
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6199
  (eval $ac_compile) 2>&5
 
6200
  ac_status=$?
 
6201
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6202
  test $ac_status = 0; }; then
 
6203
    case `/usr/bin/file conftest.$ac_objext` in
 
6204
      *ELF-32*)
 
6205
        HPUX_IA64_MODE="32"
 
6206
        ;;
 
6207
      *ELF-64*)
 
6208
        HPUX_IA64_MODE="64"
 
6209
        ;;
 
6210
    esac
 
6211
  fi
 
6212
  rm -rf conftest*
 
6213
  ;;
 
6214
*-*-irix6*)
 
6215
  # Find out which ABI we are using.
 
6216
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
 
6217
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6218
  (eval $ac_compile) 2>&5
 
6219
  ac_status=$?
 
6220
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6221
  test $ac_status = 0; }; then
 
6222
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
6223
      case `/usr/bin/file conftest.$ac_objext` in
 
6224
        *32-bit*)
 
6225
          LD="${LD-ld} -melf32bsmip"
 
6226
          ;;
 
6227
        *N32*)
 
6228
          LD="${LD-ld} -melf32bmipn32"
 
6229
          ;;
 
6230
        *64-bit*)
 
6231
          LD="${LD-ld} -melf64bmip"
 
6232
        ;;
 
6233
      esac
 
6234
    else
 
6235
      case `/usr/bin/file conftest.$ac_objext` in
 
6236
        *32-bit*)
 
6237
          LD="${LD-ld} -32"
 
6238
          ;;
 
6239
        *N32*)
 
6240
          LD="${LD-ld} -n32"
 
6241
          ;;
 
6242
        *64-bit*)
 
6243
          LD="${LD-ld} -64"
 
6244
          ;;
 
6245
      esac
 
6246
    fi
 
6247
  fi
 
6248
  rm -rf conftest*
 
6249
  ;;
 
6250
 
 
6251
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
6252
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
6253
  # Find out which ABI we are using.
 
6254
  echo 'int i;' > conftest.$ac_ext
 
6255
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6256
  (eval $ac_compile) 2>&5
 
6257
  ac_status=$?
 
6258
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6259
  test $ac_status = 0; }; then
 
6260
    case `/usr/bin/file conftest.o` in
 
6261
      *32-bit*)
 
6262
        case $host in
 
6263
          x86_64-*kfreebsd*-gnu)
 
6264
            LD="${LD-ld} -m elf_i386_fbsd"
 
6265
            ;;
 
6266
          x86_64-*linux*)
 
6267
            LD="${LD-ld} -m elf_i386"
 
6268
            ;;
 
6269
          ppc64-*linux*|powerpc64-*linux*)
 
6270
            LD="${LD-ld} -m elf32ppclinux"
 
6271
            ;;
 
6272
          s390x-*linux*)
 
6273
            LD="${LD-ld} -m elf_s390"
 
6274
            ;;
 
6275
          sparc64-*linux*)
 
6276
            LD="${LD-ld} -m elf32_sparc"
 
6277
            ;;
 
6278
        esac
 
6279
        ;;
 
6280
      *64-bit*)
 
6281
        case $host in
 
6282
          x86_64-*kfreebsd*-gnu)
 
6283
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
6284
            ;;
 
6285
          x86_64-*linux*)
 
6286
            LD="${LD-ld} -m elf_x86_64"
 
6287
            ;;
 
6288
          ppc*-*linux*|powerpc*-*linux*)
 
6289
            LD="${LD-ld} -m elf64ppc"
 
6290
            ;;
 
6291
          s390*-*linux*|s390*-*tpf*)
 
6292
            LD="${LD-ld} -m elf64_s390"
 
6293
            ;;
 
6294
          sparc*-*linux*)
 
6295
            LD="${LD-ld} -m elf64_sparc"
 
6296
            ;;
 
6297
        esac
 
6298
        ;;
 
6299
    esac
 
6300
  fi
 
6301
  rm -rf conftest*
 
6302
  ;;
 
6303
 
 
6304
*-*-sco3.2v5*)
 
6305
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
6306
  SAVE_CFLAGS="$CFLAGS"
 
6307
  CFLAGS="$CFLAGS -belf"
 
6308
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
6309
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
6310
if ${lt_cv_cc_needs_belf+:} false; then :
 
6311
  $as_echo_n "(cached) " >&6
 
6312
else
 
6313
  ac_ext=c
 
6314
ac_cpp='$CPP $CPPFLAGS'
 
6315
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6316
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6317
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6318
 
 
6319
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6320
/* end confdefs.h.  */
 
6321
 
 
6322
int
 
6323
main ()
 
6324
{
 
6325
 
 
6326
  ;
 
6327
  return 0;
 
6328
}
 
6329
_ACEOF
 
6330
if ac_fn_c_try_link "$LINENO"; then :
 
6331
  lt_cv_cc_needs_belf=yes
 
6332
else
 
6333
  lt_cv_cc_needs_belf=no
 
6334
fi
 
6335
rm -f core conftest.err conftest.$ac_objext \
 
6336
    conftest$ac_exeext conftest.$ac_ext
 
6337
     ac_ext=c
 
6338
ac_cpp='$CPP $CPPFLAGS'
 
6339
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6340
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6341
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6342
 
 
6343
fi
 
6344
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
6345
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
6346
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
6347
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
6348
    CFLAGS="$SAVE_CFLAGS"
 
6349
  fi
 
6350
  ;;
 
6351
sparc*-*solaris*)
 
6352
  # Find out which ABI we are using.
 
6353
  echo 'int i;' > conftest.$ac_ext
 
6354
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6355
  (eval $ac_compile) 2>&5
 
6356
  ac_status=$?
 
6357
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6358
  test $ac_status = 0; }; then
 
6359
    case `/usr/bin/file conftest.o` in
 
6360
    *64-bit*)
 
6361
      case $lt_cv_prog_gnu_ld in
 
6362
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
6363
      *)
 
6364
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
6365
          LD="${LD-ld} -64"
 
6366
        fi
 
6367
        ;;
 
6368
      esac
 
6369
      ;;
 
6370
    esac
 
6371
  fi
 
6372
  rm -rf conftest*
 
6373
  ;;
 
6374
esac
 
6375
 
 
6376
need_locks="$enable_libtool_lock"
 
6377
 
 
6378
if test -n "$ac_tool_prefix"; then
 
6379
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
 
6380
set dummy ${ac_tool_prefix}mt; ac_word=$2
 
6381
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6382
$as_echo_n "checking for $ac_word... " >&6; }
 
6383
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
 
6384
  $as_echo_n "(cached) " >&6
 
6385
else
 
6386
  if test -n "$MANIFEST_TOOL"; then
 
6387
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
 
6388
else
 
6389
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6390
for as_dir in $PATH
 
6391
do
 
6392
  IFS=$as_save_IFS
 
6393
  test -z "$as_dir" && as_dir=.
 
6394
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6395
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6396
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
 
6397
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6398
    break 2
 
6399
  fi
 
6400
done
 
6401
  done
 
6402
IFS=$as_save_IFS
 
6403
 
 
6404
fi
 
6405
fi
 
6406
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
 
6407
if test -n "$MANIFEST_TOOL"; then
 
6408
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
 
6409
$as_echo "$MANIFEST_TOOL" >&6; }
 
6410
else
 
6411
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6412
$as_echo "no" >&6; }
 
6413
fi
 
6414
 
 
6415
 
 
6416
fi
 
6417
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
 
6418
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
 
6419
  # Extract the first word of "mt", so it can be a program name with args.
 
6420
set dummy mt; ac_word=$2
 
6421
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6422
$as_echo_n "checking for $ac_word... " >&6; }
 
6423
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
 
6424
  $as_echo_n "(cached) " >&6
 
6425
else
 
6426
  if test -n "$ac_ct_MANIFEST_TOOL"; then
 
6427
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
 
6428
else
 
6429
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6430
for as_dir in $PATH
 
6431
do
 
6432
  IFS=$as_save_IFS
 
6433
  test -z "$as_dir" && as_dir=.
 
6434
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6435
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6436
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
 
6437
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6438
    break 2
 
6439
  fi
 
6440
done
 
6441
  done
 
6442
IFS=$as_save_IFS
 
6443
 
 
6444
fi
 
6445
fi
 
6446
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
 
6447
if test -n "$ac_ct_MANIFEST_TOOL"; then
 
6448
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
 
6449
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
 
6450
else
 
6451
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6452
$as_echo "no" >&6; }
 
6453
fi
 
6454
 
 
6455
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
 
6456
    MANIFEST_TOOL=":"
 
6457
  else
 
6458
    case $cross_compiling:$ac_tool_warned in
 
6459
yes:)
 
6460
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6461
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6462
ac_tool_warned=yes ;;
 
6463
esac
 
6464
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
 
6465
  fi
 
6466
else
 
6467
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
 
6468
fi
 
6469
 
 
6470
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
6471
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
 
6472
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
 
6473
if ${lt_cv_path_mainfest_tool+:} false; then :
 
6474
  $as_echo_n "(cached) " >&6
 
6475
else
 
6476
  lt_cv_path_mainfest_tool=no
 
6477
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
 
6478
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
6479
  cat conftest.err >&5
 
6480
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
6481
    lt_cv_path_mainfest_tool=yes
 
6482
  fi
 
6483
  rm -f conftest*
 
6484
fi
 
6485
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
 
6486
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
 
6487
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
6488
  MANIFEST_TOOL=:
 
6489
fi
 
6490
 
 
6491
 
 
6492
 
 
6493
 
 
6494
 
 
6495
 
 
6496
  case $host_os in
 
6497
    rhapsody* | darwin*)
 
6498
    if test -n "$ac_tool_prefix"; then
 
6499
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
6500
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
6501
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6502
$as_echo_n "checking for $ac_word... " >&6; }
 
6503
if ${ac_cv_prog_DSYMUTIL+:} false; then :
 
6504
  $as_echo_n "(cached) " >&6
 
6505
else
 
6506
  if test -n "$DSYMUTIL"; then
 
6507
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
6508
else
 
6509
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6510
for as_dir in $PATH
 
6511
do
 
6512
  IFS=$as_save_IFS
 
6513
  test -z "$as_dir" && as_dir=.
 
6514
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6515
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6516
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
6517
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6518
    break 2
 
6519
  fi
 
6520
done
 
6521
  done
 
6522
IFS=$as_save_IFS
 
6523
 
 
6524
fi
 
6525
fi
 
6526
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
6527
if test -n "$DSYMUTIL"; then
 
6528
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
6529
$as_echo "$DSYMUTIL" >&6; }
 
6530
else
 
6531
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6532
$as_echo "no" >&6; }
 
6533
fi
 
6534
 
 
6535
 
 
6536
fi
 
6537
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
6538
  ac_ct_DSYMUTIL=$DSYMUTIL
 
6539
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
6540
set dummy dsymutil; ac_word=$2
 
6541
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6542
$as_echo_n "checking for $ac_word... " >&6; }
 
6543
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
 
6544
  $as_echo_n "(cached) " >&6
 
6545
else
 
6546
  if test -n "$ac_ct_DSYMUTIL"; then
 
6547
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
6548
else
 
6549
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6550
for as_dir in $PATH
 
6551
do
 
6552
  IFS=$as_save_IFS
 
6553
  test -z "$as_dir" && as_dir=.
 
6554
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6555
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6556
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
6557
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6558
    break 2
 
6559
  fi
 
6560
done
 
6561
  done
 
6562
IFS=$as_save_IFS
 
6563
 
 
6564
fi
 
6565
fi
 
6566
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
6567
if test -n "$ac_ct_DSYMUTIL"; then
 
6568
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
6569
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
6570
else
 
6571
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6572
$as_echo "no" >&6; }
 
6573
fi
 
6574
 
 
6575
  if test "x$ac_ct_DSYMUTIL" = x; then
 
6576
    DSYMUTIL=":"
 
6577
  else
 
6578
    case $cross_compiling:$ac_tool_warned in
 
6579
yes:)
 
6580
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6581
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6582
ac_tool_warned=yes ;;
 
6583
esac
 
6584
    DSYMUTIL=$ac_ct_DSYMUTIL
 
6585
  fi
 
6586
else
 
6587
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
6588
fi
 
6589
 
 
6590
    if test -n "$ac_tool_prefix"; then
 
6591
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
6592
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
6593
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6594
$as_echo_n "checking for $ac_word... " >&6; }
 
6595
if ${ac_cv_prog_NMEDIT+:} false; then :
 
6596
  $as_echo_n "(cached) " >&6
 
6597
else
 
6598
  if test -n "$NMEDIT"; then
 
6599
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
6600
else
 
6601
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6602
for as_dir in $PATH
 
6603
do
 
6604
  IFS=$as_save_IFS
 
6605
  test -z "$as_dir" && as_dir=.
 
6606
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6607
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6608
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
6609
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6610
    break 2
 
6611
  fi
 
6612
done
 
6613
  done
 
6614
IFS=$as_save_IFS
 
6615
 
 
6616
fi
 
6617
fi
 
6618
NMEDIT=$ac_cv_prog_NMEDIT
 
6619
if test -n "$NMEDIT"; then
 
6620
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
6621
$as_echo "$NMEDIT" >&6; }
 
6622
else
 
6623
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6624
$as_echo "no" >&6; }
 
6625
fi
 
6626
 
 
6627
 
 
6628
fi
 
6629
if test -z "$ac_cv_prog_NMEDIT"; then
 
6630
  ac_ct_NMEDIT=$NMEDIT
 
6631
  # Extract the first word of "nmedit", so it can be a program name with args.
 
6632
set dummy nmedit; ac_word=$2
 
6633
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6634
$as_echo_n "checking for $ac_word... " >&6; }
 
6635
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
 
6636
  $as_echo_n "(cached) " >&6
 
6637
else
 
6638
  if test -n "$ac_ct_NMEDIT"; then
 
6639
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
6640
else
 
6641
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6642
for as_dir in $PATH
 
6643
do
 
6644
  IFS=$as_save_IFS
 
6645
  test -z "$as_dir" && as_dir=.
 
6646
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6647
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6648
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
6649
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6650
    break 2
 
6651
  fi
 
6652
done
 
6653
  done
 
6654
IFS=$as_save_IFS
 
6655
 
 
6656
fi
 
6657
fi
 
6658
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
6659
if test -n "$ac_ct_NMEDIT"; then
 
6660
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
6661
$as_echo "$ac_ct_NMEDIT" >&6; }
 
6662
else
 
6663
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6664
$as_echo "no" >&6; }
 
6665
fi
 
6666
 
 
6667
  if test "x$ac_ct_NMEDIT" = x; then
 
6668
    NMEDIT=":"
 
6669
  else
 
6670
    case $cross_compiling:$ac_tool_warned in
 
6671
yes:)
 
6672
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6673
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6674
ac_tool_warned=yes ;;
 
6675
esac
 
6676
    NMEDIT=$ac_ct_NMEDIT
 
6677
  fi
 
6678
else
 
6679
  NMEDIT="$ac_cv_prog_NMEDIT"
 
6680
fi
 
6681
 
 
6682
    if test -n "$ac_tool_prefix"; then
 
6683
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
6684
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
6685
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6686
$as_echo_n "checking for $ac_word... " >&6; }
 
6687
if ${ac_cv_prog_LIPO+:} false; then :
 
6688
  $as_echo_n "(cached) " >&6
 
6689
else
 
6690
  if test -n "$LIPO"; then
 
6691
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
6692
else
 
6693
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6694
for as_dir in $PATH
 
6695
do
 
6696
  IFS=$as_save_IFS
 
6697
  test -z "$as_dir" && as_dir=.
 
6698
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6699
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6700
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
6701
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6702
    break 2
 
6703
  fi
 
6704
done
 
6705
  done
 
6706
IFS=$as_save_IFS
 
6707
 
 
6708
fi
 
6709
fi
 
6710
LIPO=$ac_cv_prog_LIPO
 
6711
if test -n "$LIPO"; then
 
6712
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
6713
$as_echo "$LIPO" >&6; }
 
6714
else
 
6715
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6716
$as_echo "no" >&6; }
 
6717
fi
 
6718
 
 
6719
 
 
6720
fi
 
6721
if test -z "$ac_cv_prog_LIPO"; then
 
6722
  ac_ct_LIPO=$LIPO
 
6723
  # Extract the first word of "lipo", so it can be a program name with args.
 
6724
set dummy lipo; ac_word=$2
 
6725
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6726
$as_echo_n "checking for $ac_word... " >&6; }
 
6727
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
 
6728
  $as_echo_n "(cached) " >&6
 
6729
else
 
6730
  if test -n "$ac_ct_LIPO"; then
 
6731
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
6732
else
 
6733
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6734
for as_dir in $PATH
 
6735
do
 
6736
  IFS=$as_save_IFS
 
6737
  test -z "$as_dir" && as_dir=.
 
6738
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6739
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6740
    ac_cv_prog_ac_ct_LIPO="lipo"
 
6741
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6742
    break 2
 
6743
  fi
 
6744
done
 
6745
  done
 
6746
IFS=$as_save_IFS
 
6747
 
 
6748
fi
 
6749
fi
 
6750
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
6751
if test -n "$ac_ct_LIPO"; then
 
6752
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
6753
$as_echo "$ac_ct_LIPO" >&6; }
 
6754
else
 
6755
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6756
$as_echo "no" >&6; }
 
6757
fi
 
6758
 
 
6759
  if test "x$ac_ct_LIPO" = x; then
 
6760
    LIPO=":"
 
6761
  else
 
6762
    case $cross_compiling:$ac_tool_warned in
 
6763
yes:)
 
6764
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6765
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6766
ac_tool_warned=yes ;;
 
6767
esac
 
6768
    LIPO=$ac_ct_LIPO
 
6769
  fi
 
6770
else
 
6771
  LIPO="$ac_cv_prog_LIPO"
 
6772
fi
 
6773
 
 
6774
    if test -n "$ac_tool_prefix"; then
 
6775
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
6776
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
6777
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6778
$as_echo_n "checking for $ac_word... " >&6; }
 
6779
if ${ac_cv_prog_OTOOL+:} false; then :
 
6780
  $as_echo_n "(cached) " >&6
 
6781
else
 
6782
  if test -n "$OTOOL"; then
 
6783
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
6784
else
 
6785
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6786
for as_dir in $PATH
 
6787
do
 
6788
  IFS=$as_save_IFS
 
6789
  test -z "$as_dir" && as_dir=.
 
6790
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6791
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6792
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
6793
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6794
    break 2
 
6795
  fi
 
6796
done
 
6797
  done
 
6798
IFS=$as_save_IFS
 
6799
 
 
6800
fi
 
6801
fi
 
6802
OTOOL=$ac_cv_prog_OTOOL
 
6803
if test -n "$OTOOL"; then
 
6804
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
6805
$as_echo "$OTOOL" >&6; }
 
6806
else
 
6807
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6808
$as_echo "no" >&6; }
 
6809
fi
 
6810
 
 
6811
 
 
6812
fi
 
6813
if test -z "$ac_cv_prog_OTOOL"; then
 
6814
  ac_ct_OTOOL=$OTOOL
 
6815
  # Extract the first word of "otool", so it can be a program name with args.
 
6816
set dummy otool; ac_word=$2
 
6817
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6818
$as_echo_n "checking for $ac_word... " >&6; }
 
6819
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
 
6820
  $as_echo_n "(cached) " >&6
 
6821
else
 
6822
  if test -n "$ac_ct_OTOOL"; then
 
6823
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
6824
else
 
6825
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6826
for as_dir in $PATH
 
6827
do
 
6828
  IFS=$as_save_IFS
 
6829
  test -z "$as_dir" && as_dir=.
 
6830
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6831
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6832
    ac_cv_prog_ac_ct_OTOOL="otool"
 
6833
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6834
    break 2
 
6835
  fi
 
6836
done
 
6837
  done
 
6838
IFS=$as_save_IFS
 
6839
 
 
6840
fi
 
6841
fi
 
6842
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
6843
if test -n "$ac_ct_OTOOL"; then
 
6844
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
6845
$as_echo "$ac_ct_OTOOL" >&6; }
 
6846
else
 
6847
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6848
$as_echo "no" >&6; }
 
6849
fi
 
6850
 
 
6851
  if test "x$ac_ct_OTOOL" = x; then
 
6852
    OTOOL=":"
 
6853
  else
 
6854
    case $cross_compiling:$ac_tool_warned in
 
6855
yes:)
 
6856
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6857
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6858
ac_tool_warned=yes ;;
 
6859
esac
 
6860
    OTOOL=$ac_ct_OTOOL
 
6861
  fi
 
6862
else
 
6863
  OTOOL="$ac_cv_prog_OTOOL"
 
6864
fi
 
6865
 
 
6866
    if test -n "$ac_tool_prefix"; then
 
6867
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
6868
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
6869
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6870
$as_echo_n "checking for $ac_word... " >&6; }
 
6871
if ${ac_cv_prog_OTOOL64+:} false; then :
 
6872
  $as_echo_n "(cached) " >&6
 
6873
else
 
6874
  if test -n "$OTOOL64"; then
 
6875
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
6876
else
 
6877
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6878
for as_dir in $PATH
 
6879
do
 
6880
  IFS=$as_save_IFS
 
6881
  test -z "$as_dir" && as_dir=.
 
6882
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6883
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6884
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
6885
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6886
    break 2
 
6887
  fi
 
6888
done
 
6889
  done
 
6890
IFS=$as_save_IFS
 
6891
 
 
6892
fi
 
6893
fi
 
6894
OTOOL64=$ac_cv_prog_OTOOL64
 
6895
if test -n "$OTOOL64"; then
 
6896
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
6897
$as_echo "$OTOOL64" >&6; }
 
6898
else
 
6899
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6900
$as_echo "no" >&6; }
 
6901
fi
 
6902
 
 
6903
 
 
6904
fi
 
6905
if test -z "$ac_cv_prog_OTOOL64"; then
 
6906
  ac_ct_OTOOL64=$OTOOL64
 
6907
  # Extract the first word of "otool64", so it can be a program name with args.
 
6908
set dummy otool64; ac_word=$2
 
6909
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6910
$as_echo_n "checking for $ac_word... " >&6; }
 
6911
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
 
6912
  $as_echo_n "(cached) " >&6
 
6913
else
 
6914
  if test -n "$ac_ct_OTOOL64"; then
 
6915
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
6916
else
 
6917
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6918
for as_dir in $PATH
 
6919
do
 
6920
  IFS=$as_save_IFS
 
6921
  test -z "$as_dir" && as_dir=.
 
6922
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6923
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6924
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
6925
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6926
    break 2
 
6927
  fi
 
6928
done
 
6929
  done
 
6930
IFS=$as_save_IFS
 
6931
 
 
6932
fi
 
6933
fi
 
6934
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
6935
if test -n "$ac_ct_OTOOL64"; then
 
6936
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
6937
$as_echo "$ac_ct_OTOOL64" >&6; }
 
6938
else
 
6939
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6940
$as_echo "no" >&6; }
 
6941
fi
 
6942
 
 
6943
  if test "x$ac_ct_OTOOL64" = x; then
 
6944
    OTOOL64=":"
 
6945
  else
 
6946
    case $cross_compiling:$ac_tool_warned in
 
6947
yes:)
 
6948
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6949
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6950
ac_tool_warned=yes ;;
 
6951
esac
 
6952
    OTOOL64=$ac_ct_OTOOL64
 
6953
  fi
 
6954
else
 
6955
  OTOOL64="$ac_cv_prog_OTOOL64"
 
6956
fi
 
6957
 
 
6958
 
 
6959
 
 
6960
 
 
6961
 
 
6962
 
 
6963
 
 
6964
 
 
6965
 
 
6966
 
 
6967
 
 
6968
 
 
6969
 
 
6970
 
 
6971
 
 
6972
 
 
6973
 
 
6974
 
 
6975
 
 
6976
 
 
6977
 
 
6978
 
 
6979
 
 
6980
 
 
6981
 
 
6982
 
 
6983
 
 
6984
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
6985
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
6986
if ${lt_cv_apple_cc_single_mod+:} false; then :
 
6987
  $as_echo_n "(cached) " >&6
 
6988
else
 
6989
  lt_cv_apple_cc_single_mod=no
 
6990
      if test -z "${LT_MULTI_MODULE}"; then
 
6991
        # By default we will add the -single_module flag. You can override
 
6992
        # by either setting the environment variable LT_MULTI_MODULE
 
6993
        # non-empty at configure time, or by adding -multi_module to the
 
6994
        # link flags.
 
6995
        rm -rf libconftest.dylib*
 
6996
        echo "int foo(void){return 1;}" > conftest.c
 
6997
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6998
-dynamiclib -Wl,-single_module conftest.c" >&5
 
6999
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7000
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
7001
        _lt_result=$?
 
7002
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
7003
          lt_cv_apple_cc_single_mod=yes
 
7004
        else
 
7005
          cat conftest.err >&5
 
7006
        fi
 
7007
        rm -rf libconftest.dylib*
 
7008
        rm -f conftest.*
 
7009
      fi
 
7010
fi
 
7011
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
7012
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
7013
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
7014
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
7015
if ${lt_cv_ld_exported_symbols_list+:} false; then :
 
7016
  $as_echo_n "(cached) " >&6
 
7017
else
 
7018
  lt_cv_ld_exported_symbols_list=no
 
7019
      save_LDFLAGS=$LDFLAGS
 
7020
      echo "_main" > conftest.sym
 
7021
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7022
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7023
/* end confdefs.h.  */
 
7024
 
 
7025
int
 
7026
main ()
 
7027
{
 
7028
 
 
7029
  ;
 
7030
  return 0;
 
7031
}
 
7032
_ACEOF
 
7033
if ac_fn_c_try_link "$LINENO"; then :
 
7034
  lt_cv_ld_exported_symbols_list=yes
 
7035
else
 
7036
  lt_cv_ld_exported_symbols_list=no
 
7037
fi
 
7038
rm -f core conftest.err conftest.$ac_objext \
 
7039
    conftest$ac_exeext conftest.$ac_ext
 
7040
        LDFLAGS="$save_LDFLAGS"
 
7041
 
 
7042
fi
 
7043
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
7044
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
7045
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
 
7046
$as_echo_n "checking for -force_load linker flag... " >&6; }
 
7047
if ${lt_cv_ld_force_load+:} false; then :
 
7048
  $as_echo_n "(cached) " >&6
 
7049
else
 
7050
  lt_cv_ld_force_load=no
 
7051
      cat > conftest.c << _LT_EOF
 
7052
int forced_loaded() { return 2;}
 
7053
_LT_EOF
 
7054
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
 
7055
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
 
7056
      echo "$AR cru libconftest.a conftest.o" >&5
 
7057
      $AR cru libconftest.a conftest.o 2>&5
 
7058
      echo "$RANLIB libconftest.a" >&5
 
7059
      $RANLIB libconftest.a 2>&5
 
7060
      cat > conftest.c << _LT_EOF
 
7061
int main() { return 0;}
 
7062
_LT_EOF
 
7063
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
 
7064
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
7065
      _lt_result=$?
 
7066
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
 
7067
        lt_cv_ld_force_load=yes
 
7068
      else
 
7069
        cat conftest.err >&5
 
7070
      fi
 
7071
        rm -f conftest.err libconftest.a conftest conftest.c
 
7072
        rm -rf conftest.dSYM
 
7073
 
 
7074
fi
 
7075
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
 
7076
$as_echo "$lt_cv_ld_force_load" >&6; }
 
7077
    case $host_os in
 
7078
    rhapsody* | darwin1.[012])
 
7079
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7080
    darwin1.*)
 
7081
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7082
    darwin*) # darwin 5.x on
 
7083
      # if running on 10.5 or later, the deployment target defaults
 
7084
      # to the OS version, if on x86, and 10.4, the deployment
 
7085
      # target defaults to 10.4. Don't you love it?
 
7086
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7087
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7088
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7089
        10.[012]*)
 
7090
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7091
        10.*)
 
7092
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7093
      esac
 
7094
    ;;
 
7095
  esac
 
7096
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
7097
      _lt_dar_single_mod='$single_module'
 
7098
    fi
 
7099
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7100
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
7101
    else
 
7102
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7103
    fi
 
7104
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
 
7105
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
7106
    else
 
7107
      _lt_dsymutil=
 
7108
    fi
 
7109
    ;;
 
7110
  esac
 
7111
 
 
7112
ac_ext=c
 
7113
ac_cpp='$CPP $CPPFLAGS'
 
7114
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7115
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7116
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7117
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
7118
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
7119
# On Suns, sometimes $CPP names a directory.
 
7120
if test -n "$CPP" && test -d "$CPP"; then
 
7121
  CPP=
 
7122
fi
 
7123
if test -z "$CPP"; then
 
7124
  if ${ac_cv_prog_CPP+:} false; then :
 
7125
  $as_echo_n "(cached) " >&6
 
7126
else
 
7127
      # Double quotes because CPP needs to be expanded
 
7128
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
7129
    do
 
7130
      ac_preproc_ok=false
 
7131
for ac_c_preproc_warn_flag in '' yes
 
7132
do
 
7133
  # Use a header file that comes with gcc, so configuring glibc
 
7134
  # with a fresh cross-compiler works.
 
7135
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7136
  # <limits.h> exists even on freestanding compilers.
 
7137
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7138
  # not just through cpp. "Syntax error" is here to catch this case.
 
7139
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7140
/* end confdefs.h.  */
 
7141
#ifdef __STDC__
 
7142
# include <limits.h>
 
7143
#else
 
7144
# include <assert.h>
 
7145
#endif
 
7146
                     Syntax error
 
7147
_ACEOF
 
7148
if ac_fn_c_try_cpp "$LINENO"; then :
 
7149
 
 
7150
else
 
7151
  # Broken: fails on valid input.
 
7152
continue
 
7153
fi
 
7154
rm -f conftest.err conftest.i conftest.$ac_ext
 
7155
 
 
7156
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7157
  # can be detected and how.
 
7158
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7159
/* end confdefs.h.  */
 
7160
#include <ac_nonexistent.h>
 
7161
_ACEOF
 
7162
if ac_fn_c_try_cpp "$LINENO"; then :
 
7163
  # Broken: success on invalid input.
 
7164
continue
 
7165
else
 
7166
  # Passes both tests.
 
7167
ac_preproc_ok=:
 
7168
break
 
7169
fi
 
7170
rm -f conftest.err conftest.i conftest.$ac_ext
 
7171
 
 
7172
done
 
7173
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7174
rm -f conftest.i conftest.err conftest.$ac_ext
 
7175
if $ac_preproc_ok; then :
 
7176
  break
 
7177
fi
 
7178
 
 
7179
    done
 
7180
    ac_cv_prog_CPP=$CPP
 
7181
 
 
7182
fi
 
7183
  CPP=$ac_cv_prog_CPP
 
7184
else
 
7185
  ac_cv_prog_CPP=$CPP
 
7186
fi
 
7187
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
7188
$as_echo "$CPP" >&6; }
 
7189
ac_preproc_ok=false
 
7190
for ac_c_preproc_warn_flag in '' yes
 
7191
do
 
7192
  # Use a header file that comes with gcc, so configuring glibc
 
7193
  # with a fresh cross-compiler works.
 
7194
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7195
  # <limits.h> exists even on freestanding compilers.
 
7196
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7197
  # not just through cpp. "Syntax error" is here to catch this case.
 
7198
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7199
/* end confdefs.h.  */
 
7200
#ifdef __STDC__
 
7201
# include <limits.h>
 
7202
#else
 
7203
# include <assert.h>
 
7204
#endif
 
7205
                     Syntax error
 
7206
_ACEOF
 
7207
if ac_fn_c_try_cpp "$LINENO"; then :
 
7208
 
 
7209
else
 
7210
  # Broken: fails on valid input.
 
7211
continue
 
7212
fi
 
7213
rm -f conftest.err conftest.i conftest.$ac_ext
 
7214
 
 
7215
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7216
  # can be detected and how.
 
7217
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7218
/* end confdefs.h.  */
 
7219
#include <ac_nonexistent.h>
 
7220
_ACEOF
 
7221
if ac_fn_c_try_cpp "$LINENO"; then :
 
7222
  # Broken: success on invalid input.
 
7223
continue
 
7224
else
 
7225
  # Passes both tests.
 
7226
ac_preproc_ok=:
 
7227
break
 
7228
fi
 
7229
rm -f conftest.err conftest.i conftest.$ac_ext
 
7230
 
 
7231
done
 
7232
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7233
rm -f conftest.i conftest.err conftest.$ac_ext
 
7234
if $ac_preproc_ok; then :
 
7235
 
 
7236
else
 
7237
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
7238
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
7239
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
7240
See \`config.log' for more details" "$LINENO" 5; }
 
7241
fi
 
7242
 
 
7243
ac_ext=c
 
7244
ac_cpp='$CPP $CPPFLAGS'
 
7245
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7246
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7247
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7248
 
 
7249
 
 
7250
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
7251
$as_echo_n "checking for ANSI C header files... " >&6; }
 
7252
if ${ac_cv_header_stdc+:} false; then :
 
7253
  $as_echo_n "(cached) " >&6
 
7254
else
 
7255
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7256
/* end confdefs.h.  */
 
7257
#include <stdlib.h>
 
7258
#include <stdarg.h>
 
7259
#include <string.h>
 
7260
#include <float.h>
 
7261
 
 
7262
int
 
7263
main ()
 
7264
{
 
7265
 
 
7266
  ;
 
7267
  return 0;
 
7268
}
 
7269
_ACEOF
 
7270
if ac_fn_c_try_compile "$LINENO"; then :
 
7271
  ac_cv_header_stdc=yes
 
7272
else
 
7273
  ac_cv_header_stdc=no
 
7274
fi
 
7275
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7276
 
 
7277
if test $ac_cv_header_stdc = yes; then
 
7278
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
7279
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7280
/* end confdefs.h.  */
 
7281
#include <string.h>
 
7282
 
 
7283
_ACEOF
 
7284
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7285
  $EGREP "memchr" >/dev/null 2>&1; then :
 
7286
 
 
7287
else
 
7288
  ac_cv_header_stdc=no
 
7289
fi
 
7290
rm -f conftest*
 
7291
 
 
7292
fi
 
7293
 
 
7294
if test $ac_cv_header_stdc = yes; then
 
7295
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
7296
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7297
/* end confdefs.h.  */
 
7298
#include <stdlib.h>
 
7299
 
 
7300
_ACEOF
 
7301
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7302
  $EGREP "free" >/dev/null 2>&1; then :
 
7303
 
 
7304
else
 
7305
  ac_cv_header_stdc=no
 
7306
fi
 
7307
rm -f conftest*
 
7308
 
 
7309
fi
 
7310
 
 
7311
if test $ac_cv_header_stdc = yes; then
 
7312
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
7313
  if test "$cross_compiling" = yes; then :
 
7314
  :
 
7315
else
 
7316
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7317
/* end confdefs.h.  */
 
7318
#include <ctype.h>
 
7319
#include <stdlib.h>
 
7320
#if ((' ' & 0x0FF) == 0x020)
 
7321
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
7322
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
7323
#else
 
7324
# define ISLOWER(c) \
 
7325
                   (('a' <= (c) && (c) <= 'i') \
 
7326
                     || ('j' <= (c) && (c) <= 'r') \
 
7327
                     || ('s' <= (c) && (c) <= 'z'))
 
7328
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
7329
#endif
 
7330
 
 
7331
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
7332
int
 
7333
main ()
 
7334
{
 
7335
  int i;
 
7336
  for (i = 0; i < 256; i++)
 
7337
    if (XOR (islower (i), ISLOWER (i))
 
7338
        || toupper (i) != TOUPPER (i))
 
7339
      return 2;
 
7340
  return 0;
 
7341
}
 
7342
_ACEOF
 
7343
if ac_fn_c_try_run "$LINENO"; then :
 
7344
 
 
7345
else
 
7346
  ac_cv_header_stdc=no
 
7347
fi
 
7348
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
7349
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
7350
fi
 
7351
 
 
7352
fi
 
7353
fi
 
7354
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
7355
$as_echo "$ac_cv_header_stdc" >&6; }
 
7356
if test $ac_cv_header_stdc = yes; then
 
7357
 
 
7358
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
7359
 
 
7360
fi
 
7361
 
 
7362
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
7363
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
7364
                  inttypes.h stdint.h unistd.h
 
7365
do :
 
7366
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7367
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
7368
"
 
7369
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
7370
  cat >>confdefs.h <<_ACEOF
 
7371
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7372
_ACEOF
 
7373
 
 
7374
fi
 
7375
 
 
7376
done
 
7377
 
 
7378
 
 
7379
for ac_header in dlfcn.h
 
7380
do :
 
7381
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
7382
"
 
7383
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
 
7384
  cat >>confdefs.h <<_ACEOF
 
7385
#define HAVE_DLFCN_H 1
 
7386
_ACEOF
 
7387
 
 
7388
fi
 
7389
 
 
7390
done
 
7391
 
 
7392
 
 
7393
 
 
7394
 
 
7395
 
 
7396
# Set options
 
7397
 
 
7398
 
 
7399
 
 
7400
        enable_dlopen=no
 
7401
 
 
7402
 
 
7403
  enable_win32_dll=no
 
7404
 
 
7405
 
 
7406
            # Check whether --enable-shared was given.
 
7407
if test "${enable_shared+set}" = set; then :
 
7408
  enableval=$enable_shared; p=${PACKAGE-default}
 
7409
    case $enableval in
 
7410
    yes) enable_shared=yes ;;
 
7411
    no) enable_shared=no ;;
 
7412
    *)
 
7413
      enable_shared=no
 
7414
      # Look at the argument we got.  We use all the common list separators.
 
7415
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7416
      for pkg in $enableval; do
 
7417
        IFS="$lt_save_ifs"
 
7418
        if test "X$pkg" = "X$p"; then
 
7419
          enable_shared=yes
 
7420
        fi
 
7421
      done
 
7422
      IFS="$lt_save_ifs"
 
7423
      ;;
 
7424
    esac
 
7425
else
 
7426
  enable_shared=yes
 
7427
fi
 
7428
 
 
7429
 
 
7430
 
 
7431
 
 
7432
 
 
7433
 
 
7434
 
 
7435
 
 
7436
 
 
7437
  # Check whether --enable-static was given.
 
7438
if test "${enable_static+set}" = set; then :
 
7439
  enableval=$enable_static; p=${PACKAGE-default}
 
7440
    case $enableval in
 
7441
    yes) enable_static=yes ;;
 
7442
    no) enable_static=no ;;
 
7443
    *)
 
7444
     enable_static=no
 
7445
      # Look at the argument we got.  We use all the common list separators.
 
7446
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7447
      for pkg in $enableval; do
 
7448
        IFS="$lt_save_ifs"
 
7449
        if test "X$pkg" = "X$p"; then
 
7450
          enable_static=yes
 
7451
        fi
 
7452
      done
 
7453
      IFS="$lt_save_ifs"
 
7454
      ;;
 
7455
    esac
 
7456
else
 
7457
  enable_static=yes
 
7458
fi
 
7459
 
 
7460
 
 
7461
 
 
7462
 
 
7463
 
 
7464
 
 
7465
 
 
7466
 
 
7467
 
 
7468
 
 
7469
# Check whether --with-pic was given.
 
7470
if test "${with_pic+set}" = set; then :
 
7471
  withval=$with_pic; pic_mode="$withval"
 
7472
else
 
7473
  pic_mode=default
 
7474
fi
 
7475
 
 
7476
 
 
7477
test -z "$pic_mode" && pic_mode=default
 
7478
 
 
7479
 
 
7480
 
 
7481
 
 
7482
 
 
7483
 
 
7484
 
 
7485
  # Check whether --enable-fast-install was given.
 
7486
if test "${enable_fast_install+set}" = set; then :
 
7487
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
7488
    case $enableval in
 
7489
    yes) enable_fast_install=yes ;;
 
7490
    no) enable_fast_install=no ;;
 
7491
    *)
 
7492
      enable_fast_install=no
 
7493
      # Look at the argument we got.  We use all the common list separators.
 
7494
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7495
      for pkg in $enableval; do
 
7496
        IFS="$lt_save_ifs"
 
7497
        if test "X$pkg" = "X$p"; then
 
7498
          enable_fast_install=yes
 
7499
        fi
 
7500
      done
 
7501
      IFS="$lt_save_ifs"
 
7502
      ;;
 
7503
    esac
 
7504
else
 
7505
  enable_fast_install=yes
 
7506
fi
 
7507
 
 
7508
 
 
7509
 
 
7510
 
 
7511
 
 
7512
 
 
7513
 
 
7514
 
 
7515
 
 
7516
 
 
7517
 
 
7518
# This can be used to rebuild libtool when needed
 
7519
LIBTOOL_DEPS="$ltmain"
 
7520
 
 
7521
# Always use our own libtool.
 
7522
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
7523
 
 
7524
 
 
7525
 
 
7526
 
 
7527
 
 
7528
 
 
7529
 
 
7530
 
 
7531
 
 
7532
 
 
7533
 
 
7534
 
 
7535
 
 
7536
 
 
7537
 
 
7538
 
 
7539
 
 
7540
 
 
7541
 
 
7542
 
 
7543
 
 
7544
 
 
7545
 
 
7546
 
 
7547
 
 
7548
 
 
7549
test -z "$LN_S" && LN_S="ln -s"
 
7550
 
 
7551
 
 
7552
 
 
7553
 
 
7554
 
 
7555
 
 
7556
 
 
7557
 
 
7558
 
 
7559
 
 
7560
 
 
7561
 
 
7562
 
 
7563
 
 
7564
if test -n "${ZSH_VERSION+set}" ; then
 
7565
   setopt NO_GLOB_SUBST
 
7566
fi
 
7567
 
 
7568
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
7569
$as_echo_n "checking for objdir... " >&6; }
 
7570
if ${lt_cv_objdir+:} false; then :
 
7571
  $as_echo_n "(cached) " >&6
 
7572
else
 
7573
  rm -f .libs 2>/dev/null
 
7574
mkdir .libs 2>/dev/null
 
7575
if test -d .libs; then
 
7576
  lt_cv_objdir=.libs
 
7577
else
 
7578
  # MS-DOS does not allow filenames that begin with a dot.
 
7579
  lt_cv_objdir=_libs
 
7580
fi
 
7581
rmdir .libs 2>/dev/null
 
7582
fi
 
7583
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
7584
$as_echo "$lt_cv_objdir" >&6; }
 
7585
objdir=$lt_cv_objdir
 
7586
 
 
7587
 
 
7588
 
 
7589
 
 
7590
 
 
7591
cat >>confdefs.h <<_ACEOF
 
7592
#define LT_OBJDIR "$lt_cv_objdir/"
 
7593
_ACEOF
 
7594
 
 
7595
 
 
7596
 
 
7597
 
 
7598
case $host_os in
 
7599
aix3*)
 
7600
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
7601
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
7602
  # vanish in a puff of smoke.
 
7603
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
7604
    COLLECT_NAMES=
 
7605
    export COLLECT_NAMES
 
7606
  fi
 
7607
  ;;
 
7608
esac
 
7609
 
 
7610
# Global variables:
 
7611
ofile=libtool
 
7612
can_build_shared=yes
 
7613
 
 
7614
# All known linkers require a `.a' archive for static linking (except MSVC,
 
7615
# which needs '.lib').
 
7616
libext=a
 
7617
 
 
7618
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
7619
 
 
7620
old_CC="$CC"
 
7621
old_CFLAGS="$CFLAGS"
 
7622
 
 
7623
# Set sane defaults for various variables
 
7624
test -z "$CC" && CC=cc
 
7625
test -z "$LTCC" && LTCC=$CC
 
7626
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7627
test -z "$LD" && LD=ld
 
7628
test -z "$ac_objext" && ac_objext=o
 
7629
 
 
7630
for cc_temp in $compiler""; do
 
7631
  case $cc_temp in
 
7632
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7633
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7634
    \-*) ;;
 
7635
    *) break;;
 
7636
  esac
 
7637
done
 
7638
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
7639
 
 
7640
 
 
7641
# Only perform the check for file, if the check method requires it
 
7642
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7643
case $deplibs_check_method in
 
7644
file_magic*)
 
7645
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7646
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
7647
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
7648
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
7649
  $as_echo_n "(cached) " >&6
 
7650
else
 
7651
  case $MAGIC_CMD in
 
7652
[\\/*] |  ?:[\\/]*)
 
7653
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7654
  ;;
 
7655
*)
 
7656
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7657
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7658
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7659
  for ac_dir in $ac_dummy; do
 
7660
    IFS="$lt_save_ifs"
 
7661
    test -z "$ac_dir" && ac_dir=.
 
7662
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7663
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7664
      if test -n "$file_magic_test_file"; then
 
7665
        case $deplibs_check_method in
 
7666
        "file_magic "*)
 
7667
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7668
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7669
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7670
            $EGREP "$file_magic_regex" > /dev/null; then
 
7671
            :
 
7672
          else
 
7673
            cat <<_LT_EOF 1>&2
 
7674
 
 
7675
*** Warning: the command libtool uses to detect shared libraries,
 
7676
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7677
*** The result is that libtool may fail to recognize shared libraries
 
7678
*** as such.  This will affect the creation of libtool libraries that
 
7679
*** depend on shared libraries, but programs linked with such libtool
 
7680
*** libraries will work regardless of this problem.  Nevertheless, you
 
7681
*** may want to report the problem to your system manager and/or to
 
7682
*** bug-libtool@gnu.org
 
7683
 
 
7684
_LT_EOF
 
7685
          fi ;;
 
7686
        esac
 
7687
      fi
 
7688
      break
 
7689
    fi
 
7690
  done
 
7691
  IFS="$lt_save_ifs"
 
7692
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7693
  ;;
 
7694
esac
 
7695
fi
 
7696
 
 
7697
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7698
if test -n "$MAGIC_CMD"; then
 
7699
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
7700
$as_echo "$MAGIC_CMD" >&6; }
 
7701
else
 
7702
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7703
$as_echo "no" >&6; }
 
7704
fi
 
7705
 
 
7706
 
 
7707
 
 
7708
 
 
7709
 
 
7710
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7711
  if test -n "$ac_tool_prefix"; then
 
7712
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
7713
$as_echo_n "checking for file... " >&6; }
 
7714
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
7715
  $as_echo_n "(cached) " >&6
 
7716
else
 
7717
  case $MAGIC_CMD in
 
7718
[\\/*] |  ?:[\\/]*)
 
7719
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7720
  ;;
 
7721
*)
 
7722
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7723
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7724
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7725
  for ac_dir in $ac_dummy; do
 
7726
    IFS="$lt_save_ifs"
 
7727
    test -z "$ac_dir" && ac_dir=.
 
7728
    if test -f $ac_dir/file; then
 
7729
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7730
      if test -n "$file_magic_test_file"; then
 
7731
        case $deplibs_check_method in
 
7732
        "file_magic "*)
 
7733
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7734
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7735
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7736
            $EGREP "$file_magic_regex" > /dev/null; then
 
7737
            :
 
7738
          else
 
7739
            cat <<_LT_EOF 1>&2
 
7740
 
 
7741
*** Warning: the command libtool uses to detect shared libraries,
 
7742
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7743
*** The result is that libtool may fail to recognize shared libraries
 
7744
*** as such.  This will affect the creation of libtool libraries that
 
7745
*** depend on shared libraries, but programs linked with such libtool
 
7746
*** libraries will work regardless of this problem.  Nevertheless, you
 
7747
*** may want to report the problem to your system manager and/or to
 
7748
*** bug-libtool@gnu.org
 
7749
 
 
7750
_LT_EOF
 
7751
          fi ;;
 
7752
        esac
 
7753
      fi
 
7754
      break
 
7755
    fi
 
7756
  done
 
7757
  IFS="$lt_save_ifs"
 
7758
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7759
  ;;
 
7760
esac
 
7761
fi
 
7762
 
 
7763
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7764
if test -n "$MAGIC_CMD"; then
 
7765
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
7766
$as_echo "$MAGIC_CMD" >&6; }
 
7767
else
 
7768
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7769
$as_echo "no" >&6; }
 
7770
fi
 
7771
 
 
7772
 
 
7773
  else
 
7774
    MAGIC_CMD=:
 
7775
  fi
 
7776
fi
 
7777
 
 
7778
  fi
 
7779
  ;;
 
7780
esac
 
7781
 
 
7782
# Use C for the default configuration in the libtool script
 
7783
 
 
7784
lt_save_CC="$CC"
 
7785
ac_ext=c
 
7786
ac_cpp='$CPP $CPPFLAGS'
 
7787
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7788
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7789
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7790
 
 
7791
 
 
7792
# Source file extension for C test sources.
 
7793
ac_ext=c
 
7794
 
 
7795
# Object file extension for compiled C test sources.
 
7796
objext=o
 
7797
objext=$objext
 
7798
 
 
7799
# Code to be used in simple compile tests
 
7800
lt_simple_compile_test_code="int some_variable = 0;"
 
7801
 
 
7802
# Code to be used in simple link tests
 
7803
lt_simple_link_test_code='int main(){return(0);}'
 
7804
 
 
7805
 
 
7806
 
 
7807
 
 
7808
 
 
7809
 
 
7810
 
 
7811
# If no C compiler was specified, use CC.
 
7812
LTCC=${LTCC-"$CC"}
 
7813
 
 
7814
# If no C compiler flags were specified, use CFLAGS.
 
7815
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7816
 
 
7817
# Allow CC to be a program name with arguments.
 
7818
compiler=$CC
 
7819
 
 
7820
# Save the default compiler, since it gets overwritten when the other
 
7821
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
7822
compiler_DEFAULT=$CC
 
7823
 
 
7824
# save warnings/boilerplate of simple test code
 
7825
ac_outfile=conftest.$ac_objext
 
7826
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7827
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7828
_lt_compiler_boilerplate=`cat conftest.err`
 
7829
$RM conftest*
 
7830
 
 
7831
ac_outfile=conftest.$ac_objext
 
7832
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
7833
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7834
_lt_linker_boilerplate=`cat conftest.err`
 
7835
$RM -r conftest*
 
7836
 
 
7837
 
 
7838
## CAVEAT EMPTOR:
 
7839
## There is no encapsulation within the following macros, do not change
 
7840
## the running order or otherwise move them around unless you know exactly
 
7841
## what you are doing...
 
7842
if test -n "$compiler"; then
 
7843
 
 
7844
lt_prog_compiler_no_builtin_flag=
 
7845
 
 
7846
if test "$GCC" = yes; then
 
7847
  case $cc_basename in
 
7848
  nvcc*)
 
7849
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
 
7850
  *)
 
7851
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
 
7852
  esac
 
7853
 
 
7854
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7855
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
7856
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
 
7857
  $as_echo_n "(cached) " >&6
 
7858
else
 
7859
  lt_cv_prog_compiler_rtti_exceptions=no
 
7860
   ac_outfile=conftest.$ac_objext
 
7861
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7862
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7863
   # Insert the option either (1) after the last *FLAGS variable, or
 
7864
   # (2) before a word containing "conftest.", or (3) at the end.
 
7865
   # Note that $ac_compile itself does not contain backslashes and begins
 
7866
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7867
   # The option is referenced via a variable to avoid confusing sed.
 
7868
   lt_compile=`echo "$ac_compile" | $SED \
 
7869
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7870
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7871
   -e 's:$: $lt_compiler_flag:'`
 
7872
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
7873
   (eval "$lt_compile" 2>conftest.err)
 
7874
   ac_status=$?
 
7875
   cat conftest.err >&5
 
7876
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7877
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7878
     # The compiler can only warn and ignore the option if not recognized
 
7879
     # So say no if there are warnings other than the usual output.
 
7880
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
7881
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7882
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7883
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7884
     fi
 
7885
   fi
 
7886
   $RM conftest*
 
7887
 
 
7888
fi
 
7889
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7890
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
7891
 
 
7892
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7893
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7894
else
 
7895
    :
 
7896
fi
 
7897
 
 
7898
fi
 
7899
 
 
7900
 
 
7901
 
 
7902
 
 
7903
 
 
7904
 
 
7905
  lt_prog_compiler_wl=
 
7906
lt_prog_compiler_pic=
 
7907
lt_prog_compiler_static=
 
7908
 
 
7909
 
 
7910
  if test "$GCC" = yes; then
 
7911
    lt_prog_compiler_wl='-Wl,'
 
7912
    lt_prog_compiler_static='-static'
 
7913
 
 
7914
    case $host_os in
 
7915
      aix*)
 
7916
      # All AIX code is PIC.
 
7917
      if test "$host_cpu" = ia64; then
 
7918
        # AIX 5 now supports IA64 processor
 
7919
        lt_prog_compiler_static='-Bstatic'
 
7920
      fi
 
7921
      ;;
 
7922
 
 
7923
    amigaos*)
 
7924
      case $host_cpu in
 
7925
      powerpc)
 
7926
            # see comment about AmigaOS4 .so support
 
7927
            lt_prog_compiler_pic='-fPIC'
 
7928
        ;;
 
7929
      m68k)
 
7930
            # FIXME: we need at least 68020 code to build shared libraries, but
 
7931
            # adding the `-m68020' flag to GCC prevents building anything better,
 
7932
            # like `-m68040'.
 
7933
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7934
        ;;
 
7935
      esac
 
7936
      ;;
 
7937
 
 
7938
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7939
      # PIC is the default for these OSes.
 
7940
      ;;
 
7941
 
 
7942
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
7943
      # This hack is so that the source file can tell whether it is being
 
7944
      # built for inclusion in a dll (and should export symbols for example).
 
7945
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7946
      # (--disable-auto-import) libraries
 
7947
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7948
      ;;
 
7949
 
 
7950
    darwin* | rhapsody*)
 
7951
      # PIC is the default on this platform
 
7952
      # Common symbols not allowed in MH_DYLIB files
 
7953
      lt_prog_compiler_pic='-fno-common'
 
7954
      ;;
 
7955
 
 
7956
    haiku*)
 
7957
      # PIC is the default for Haiku.
 
7958
      # The "-static" flag exists, but is broken.
 
7959
      lt_prog_compiler_static=
 
7960
      ;;
 
7961
 
 
7962
    hpux*)
 
7963
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
7964
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
7965
      # sets the default TLS model and affects inlining.
 
7966
      case $host_cpu in
 
7967
      hppa*64*)
 
7968
        # +Z the default
 
7969
        ;;
 
7970
      *)
 
7971
        lt_prog_compiler_pic='-fPIC'
 
7972
        ;;
 
7973
      esac
 
7974
      ;;
 
7975
 
 
7976
    interix[3-9]*)
 
7977
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7978
      # Instead, we relocate shared libraries at runtime.
 
7979
      ;;
 
7980
 
 
7981
    msdosdjgpp*)
 
7982
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7983
      # on systems that don't support them.
 
7984
      lt_prog_compiler_can_build_shared=no
 
7985
      enable_shared=no
 
7986
      ;;
 
7987
 
 
7988
    *nto* | *qnx*)
 
7989
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
7990
      # it will coredump.
 
7991
      lt_prog_compiler_pic='-fPIC -shared'
 
7992
      ;;
 
7993
 
 
7994
    sysv4*MP*)
 
7995
      if test -d /usr/nec; then
 
7996
        lt_prog_compiler_pic=-Kconform_pic
 
7997
      fi
 
7998
      ;;
 
7999
 
 
8000
    *)
 
8001
      lt_prog_compiler_pic='-fPIC'
 
8002
      ;;
 
8003
    esac
 
8004
 
 
8005
    case $cc_basename in
 
8006
    nvcc*) # Cuda Compiler Driver 2.2
 
8007
      lt_prog_compiler_wl='-Xlinker '
 
8008
      lt_prog_compiler_pic='-Xcompiler -fPIC'
 
8009
      ;;
 
8010
    esac
 
8011
  else
 
8012
    # PORTME Check for flag to pass linker flags through the system compiler.
 
8013
    case $host_os in
 
8014
    aix*)
 
8015
      lt_prog_compiler_wl='-Wl,'
 
8016
      if test "$host_cpu" = ia64; then
 
8017
        # AIX 5 now supports IA64 processor
 
8018
        lt_prog_compiler_static='-Bstatic'
 
8019
      else
 
8020
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
8021
      fi
 
8022
      ;;
 
8023
 
 
8024
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8025
      # This hack is so that the source file can tell whether it is being
 
8026
      # built for inclusion in a dll (and should export symbols for example).
 
8027
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8028
      ;;
 
8029
 
 
8030
    hpux9* | hpux10* | hpux11*)
 
8031
      lt_prog_compiler_wl='-Wl,'
 
8032
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8033
      # not for PA HP-UX.
 
8034
      case $host_cpu in
 
8035
      hppa*64*|ia64*)
 
8036
        # +Z the default
 
8037
        ;;
 
8038
      *)
 
8039
        lt_prog_compiler_pic='+Z'
 
8040
        ;;
 
8041
      esac
 
8042
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
8043
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
8044
      ;;
 
8045
 
 
8046
    irix5* | irix6* | nonstopux*)
 
8047
      lt_prog_compiler_wl='-Wl,'
 
8048
      # PIC (with -KPIC) is the default.
 
8049
      lt_prog_compiler_static='-non_shared'
 
8050
      ;;
 
8051
 
 
8052
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
8053
      case $cc_basename in
 
8054
      # old Intel for x86_64 which still supported -KPIC.
 
8055
      ecc*)
 
8056
        lt_prog_compiler_wl='-Wl,'
 
8057
        lt_prog_compiler_pic='-KPIC'
 
8058
        lt_prog_compiler_static='-static'
 
8059
        ;;
 
8060
      # icc used to be incompatible with GCC.
 
8061
      # ICC 10 doesn't accept -KPIC any more.
 
8062
      icc* | ifort*)
 
8063
        lt_prog_compiler_wl='-Wl,'
 
8064
        lt_prog_compiler_pic='-fPIC'
 
8065
        lt_prog_compiler_static='-static'
 
8066
        ;;
 
8067
      # Lahey Fortran 8.1.
 
8068
      lf95*)
 
8069
        lt_prog_compiler_wl='-Wl,'
 
8070
        lt_prog_compiler_pic='--shared'
 
8071
        lt_prog_compiler_static='--static'
 
8072
        ;;
 
8073
      nagfor*)
 
8074
        # NAG Fortran compiler
 
8075
        lt_prog_compiler_wl='-Wl,-Wl,,'
 
8076
        lt_prog_compiler_pic='-PIC'
 
8077
        lt_prog_compiler_static='-Bstatic'
 
8078
        ;;
 
8079
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
 
8080
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
8081
        # which looks to be a dead project)
 
8082
        lt_prog_compiler_wl='-Wl,'
 
8083
        lt_prog_compiler_pic='-fpic'
 
8084
        lt_prog_compiler_static='-Bstatic'
 
8085
        ;;
 
8086
      ccc*)
 
8087
        lt_prog_compiler_wl='-Wl,'
 
8088
        # All Alpha code is PIC.
 
8089
        lt_prog_compiler_static='-non_shared'
 
8090
        ;;
 
8091
      xl* | bgxl* | bgf* | mpixl*)
 
8092
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
 
8093
        lt_prog_compiler_wl='-Wl,'
 
8094
        lt_prog_compiler_pic='-qpic'
 
8095
        lt_prog_compiler_static='-qstaticlink'
 
8096
        ;;
 
8097
      *)
 
8098
        case `$CC -V 2>&1 | sed 5q` in
 
8099
        *Sun\ F* | *Sun*Fortran*)
 
8100
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
8101
          lt_prog_compiler_pic='-KPIC'
 
8102
          lt_prog_compiler_static='-Bstatic'
 
8103
          lt_prog_compiler_wl=''
 
8104
          ;;
 
8105
        *Sun\ C*)
 
8106
          # Sun C 5.9
 
8107
          lt_prog_compiler_pic='-KPIC'
 
8108
          lt_prog_compiler_static='-Bstatic'
 
8109
          lt_prog_compiler_wl='-Wl,'
 
8110
          ;;
 
8111
        esac
 
8112
        ;;
 
8113
      esac
 
8114
      ;;
 
8115
 
 
8116
    newsos6)
 
8117
      lt_prog_compiler_pic='-KPIC'
 
8118
      lt_prog_compiler_static='-Bstatic'
 
8119
      ;;
 
8120
 
 
8121
    *nto* | *qnx*)
 
8122
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8123
      # it will coredump.
 
8124
      lt_prog_compiler_pic='-fPIC -shared'
 
8125
      ;;
 
8126
 
 
8127
    osf3* | osf4* | osf5*)
 
8128
      lt_prog_compiler_wl='-Wl,'
 
8129
      # All OSF/1 code is PIC.
 
8130
      lt_prog_compiler_static='-non_shared'
 
8131
      ;;
 
8132
 
 
8133
    rdos*)
 
8134
      lt_prog_compiler_static='-non_shared'
 
8135
      ;;
 
8136
 
 
8137
    solaris*)
 
8138
      lt_prog_compiler_pic='-KPIC'
 
8139
      lt_prog_compiler_static='-Bstatic'
 
8140
      case $cc_basename in
 
8141
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
 
8142
        lt_prog_compiler_wl='-Qoption ld ';;
 
8143
      *)
 
8144
        lt_prog_compiler_wl='-Wl,';;
 
8145
      esac
 
8146
      ;;
 
8147
 
 
8148
    sunos4*)
 
8149
      lt_prog_compiler_wl='-Qoption ld '
 
8150
      lt_prog_compiler_pic='-PIC'
 
8151
      lt_prog_compiler_static='-Bstatic'
 
8152
      ;;
 
8153
 
 
8154
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
8155
      lt_prog_compiler_wl='-Wl,'
 
8156
      lt_prog_compiler_pic='-KPIC'
 
8157
      lt_prog_compiler_static='-Bstatic'
 
8158
      ;;
 
8159
 
 
8160
    sysv4*MP*)
 
8161
      if test -d /usr/nec ;then
 
8162
        lt_prog_compiler_pic='-Kconform_pic'
 
8163
        lt_prog_compiler_static='-Bstatic'
 
8164
      fi
 
8165
      ;;
 
8166
 
 
8167
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
8168
      lt_prog_compiler_wl='-Wl,'
 
8169
      lt_prog_compiler_pic='-KPIC'
 
8170
      lt_prog_compiler_static='-Bstatic'
 
8171
      ;;
 
8172
 
 
8173
    unicos*)
 
8174
      lt_prog_compiler_wl='-Wl,'
 
8175
      lt_prog_compiler_can_build_shared=no
 
8176
      ;;
 
8177
 
 
8178
    uts4*)
 
8179
      lt_prog_compiler_pic='-pic'
 
8180
      lt_prog_compiler_static='-Bstatic'
 
8181
      ;;
 
8182
 
 
8183
    *)
 
8184
      lt_prog_compiler_can_build_shared=no
 
8185
      ;;
 
8186
    esac
 
8187
  fi
 
8188
 
 
8189
case $host_os in
 
8190
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8191
  *djgpp*)
 
8192
    lt_prog_compiler_pic=
 
8193
    ;;
 
8194
  *)
 
8195
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8196
    ;;
 
8197
esac
 
8198
 
 
8199
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
8200
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
8201
if ${lt_cv_prog_compiler_pic+:} false; then :
 
8202
  $as_echo_n "(cached) " >&6
 
8203
else
 
8204
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
 
8205
fi
 
8206
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
 
8207
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
 
8208
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
 
8209
 
 
8210
#
 
8211
# Check to make sure the PIC flag actually works.
 
8212
#
 
8213
if test -n "$lt_prog_compiler_pic"; then
 
8214
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8215
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
8216
if ${lt_cv_prog_compiler_pic_works+:} false; then :
 
8217
  $as_echo_n "(cached) " >&6
 
8218
else
 
8219
  lt_cv_prog_compiler_pic_works=no
 
8220
   ac_outfile=conftest.$ac_objext
 
8221
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8222
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
8223
   # Insert the option either (1) after the last *FLAGS variable, or
 
8224
   # (2) before a word containing "conftest.", or (3) at the end.
 
8225
   # Note that $ac_compile itself does not contain backslashes and begins
 
8226
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8227
   # The option is referenced via a variable to avoid confusing sed.
 
8228
   lt_compile=`echo "$ac_compile" | $SED \
 
8229
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8230
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8231
   -e 's:$: $lt_compiler_flag:'`
 
8232
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8233
   (eval "$lt_compile" 2>conftest.err)
 
8234
   ac_status=$?
 
8235
   cat conftest.err >&5
 
8236
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8237
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8238
     # The compiler can only warn and ignore the option if not recognized
 
8239
     # So say no if there are warnings other than the usual output.
 
8240
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
8241
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8242
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8243
       lt_cv_prog_compiler_pic_works=yes
 
8244
     fi
 
8245
   fi
 
8246
   $RM conftest*
 
8247
 
 
8248
fi
 
8249
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
8250
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
8251
 
 
8252
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
8253
    case $lt_prog_compiler_pic in
 
8254
     "" | " "*) ;;
 
8255
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
8256
     esac
 
8257
else
 
8258
    lt_prog_compiler_pic=
 
8259
     lt_prog_compiler_can_build_shared=no
 
8260
fi
 
8261
 
 
8262
fi
 
8263
 
 
8264
 
 
8265
 
 
8266
 
 
8267
 
 
8268
 
 
8269
 
 
8270
 
 
8271
 
 
8272
 
 
8273
 
 
8274
#
 
8275
# Check to make sure the static flag actually works.
 
8276
#
 
8277
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
8278
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
8279
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
8280
if ${lt_cv_prog_compiler_static_works+:} false; then :
 
8281
  $as_echo_n "(cached) " >&6
 
8282
else
 
8283
  lt_cv_prog_compiler_static_works=no
 
8284
   save_LDFLAGS="$LDFLAGS"
 
8285
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
8286
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
8287
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8288
     # The linker can only warn and ignore the option if not recognized
 
8289
     # So say no if there are warnings
 
8290
     if test -s conftest.err; then
 
8291
       # Append any errors to the config.log.
 
8292
       cat conftest.err 1>&5
 
8293
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
8294
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8295
       if diff conftest.exp conftest.er2 >/dev/null; then
 
8296
         lt_cv_prog_compiler_static_works=yes
 
8297
       fi
 
8298
     else
 
8299
       lt_cv_prog_compiler_static_works=yes
 
8300
     fi
 
8301
   fi
 
8302
   $RM -r conftest*
 
8303
   LDFLAGS="$save_LDFLAGS"
 
8304
 
 
8305
fi
 
8306
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
8307
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
8308
 
 
8309
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
8310
    :
 
8311
else
 
8312
    lt_prog_compiler_static=
 
8313
fi
 
8314
 
 
8315
 
 
8316
 
 
8317
 
 
8318
 
 
8319
 
 
8320
 
 
8321
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8322
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8323
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
8324
  $as_echo_n "(cached) " >&6
 
8325
else
 
8326
  lt_cv_prog_compiler_c_o=no
 
8327
   $RM -r conftest 2>/dev/null
 
8328
   mkdir conftest
 
8329
   cd conftest
 
8330
   mkdir out
 
8331
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8332
 
 
8333
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8334
   # Insert the option either (1) after the last *FLAGS variable, or
 
8335
   # (2) before a word containing "conftest.", or (3) at the end.
 
8336
   # Note that $ac_compile itself does not contain backslashes and begins
 
8337
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8338
   lt_compile=`echo "$ac_compile" | $SED \
 
8339
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8340
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8341
   -e 's:$: $lt_compiler_flag:'`
 
8342
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8343
   (eval "$lt_compile" 2>out/conftest.err)
 
8344
   ac_status=$?
 
8345
   cat out/conftest.err >&5
 
8346
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8347
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8348
   then
 
8349
     # The compiler can only warn and ignore the option if not recognized
 
8350
     # So say no if there are warnings
 
8351
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
8352
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8353
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8354
       lt_cv_prog_compiler_c_o=yes
 
8355
     fi
 
8356
   fi
 
8357
   chmod u+w . 2>&5
 
8358
   $RM conftest*
 
8359
   # SGI C++ compiler will create directory out/ii_files/ for
 
8360
   # template instantiation
 
8361
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8362
   $RM out/* && rmdir out
 
8363
   cd ..
 
8364
   $RM -r conftest
 
8365
   $RM conftest*
 
8366
 
 
8367
fi
 
8368
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8369
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8370
 
 
8371
 
 
8372
 
 
8373
 
 
8374
 
 
8375
 
 
8376
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8377
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8378
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
8379
  $as_echo_n "(cached) " >&6
 
8380
else
 
8381
  lt_cv_prog_compiler_c_o=no
 
8382
   $RM -r conftest 2>/dev/null
 
8383
   mkdir conftest
 
8384
   cd conftest
 
8385
   mkdir out
 
8386
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8387
 
 
8388
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8389
   # Insert the option either (1) after the last *FLAGS variable, or
 
8390
   # (2) before a word containing "conftest.", or (3) at the end.
 
8391
   # Note that $ac_compile itself does not contain backslashes and begins
 
8392
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8393
   lt_compile=`echo "$ac_compile" | $SED \
 
8394
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8395
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8396
   -e 's:$: $lt_compiler_flag:'`
 
8397
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8398
   (eval "$lt_compile" 2>out/conftest.err)
 
8399
   ac_status=$?
 
8400
   cat out/conftest.err >&5
 
8401
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8402
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8403
   then
 
8404
     # The compiler can only warn and ignore the option if not recognized
 
8405
     # So say no if there are warnings
 
8406
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
8407
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8408
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8409
       lt_cv_prog_compiler_c_o=yes
 
8410
     fi
 
8411
   fi
 
8412
   chmod u+w . 2>&5
 
8413
   $RM conftest*
 
8414
   # SGI C++ compiler will create directory out/ii_files/ for
 
8415
   # template instantiation
 
8416
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8417
   $RM out/* && rmdir out
 
8418
   cd ..
 
8419
   $RM -r conftest
 
8420
   $RM conftest*
 
8421
 
 
8422
fi
 
8423
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8424
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8425
 
 
8426
 
 
8427
 
 
8428
 
 
8429
hard_links="nottested"
 
8430
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8431
  # do not overwrite the value of need_locks provided by the user
 
8432
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
8433
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
8434
  hard_links=yes
 
8435
  $RM conftest*
 
8436
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8437
  touch conftest.a
 
8438
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8439
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8440
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
8441
$as_echo "$hard_links" >&6; }
 
8442
  if test "$hard_links" = no; then
 
8443
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8444
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8445
    need_locks=warn
 
8446
  fi
 
8447
else
 
8448
  need_locks=no
 
8449
fi
 
8450
 
 
8451
 
 
8452
 
 
8453
 
 
8454
 
 
8455
 
 
8456
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8457
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
8458
 
 
8459
  runpath_var=
 
8460
  allow_undefined_flag=
 
8461
  always_export_symbols=no
 
8462
  archive_cmds=
 
8463
  archive_expsym_cmds=
 
8464
  compiler_needs_object=no
 
8465
  enable_shared_with_static_runtimes=no
 
8466
  export_dynamic_flag_spec=
 
8467
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8468
  hardcode_automatic=no
 
8469
  hardcode_direct=no
 
8470
  hardcode_direct_absolute=no
 
8471
  hardcode_libdir_flag_spec=
 
8472
  hardcode_libdir_flag_spec_ld=
 
8473
  hardcode_libdir_separator=
 
8474
  hardcode_minus_L=no
 
8475
  hardcode_shlibpath_var=unsupported
 
8476
  inherit_rpath=no
 
8477
  link_all_deplibs=unknown
 
8478
  module_cmds=
 
8479
  module_expsym_cmds=
 
8480
  old_archive_from_new_cmds=
 
8481
  old_archive_from_expsyms_cmds=
 
8482
  thread_safe_flag_spec=
 
8483
  whole_archive_flag_spec=
 
8484
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8485
  # included in the symbol list
 
8486
  include_expsyms=
 
8487
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8488
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8489
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8490
  # as well as any symbol that contains `d'.
 
8491
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
8492
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8493
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8494
  # the symbol is explicitly referenced.  Since portable code cannot
 
8495
  # rely on this symbol name, it's probably fine to never include it in
 
8496
  # preloaded symbol tables.
 
8497
  # Exclude shared library initialization/finalization symbols.
 
8498
  extract_expsyms_cmds=
 
8499
 
 
8500
  case $host_os in
 
8501
  cygwin* | mingw* | pw32* | cegcc*)
 
8502
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8503
    # When not using gcc, we currently assume that we are using
 
8504
    # Microsoft Visual C++.
 
8505
    if test "$GCC" != yes; then
 
8506
      with_gnu_ld=no
 
8507
    fi
 
8508
    ;;
 
8509
  interix*)
 
8510
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8511
    with_gnu_ld=yes
 
8512
    ;;
 
8513
  openbsd*)
 
8514
    with_gnu_ld=no
 
8515
    ;;
 
8516
  linux* | k*bsd*-gnu | gnu*)
 
8517
    link_all_deplibs=no
 
8518
    ;;
 
8519
  esac
 
8520
 
 
8521
  ld_shlibs=yes
 
8522
 
 
8523
  # On some targets, GNU ld is compatible enough with the native linker
 
8524
  # that we're better off using the native interface for both.
 
8525
  lt_use_gnu_ld_interface=no
 
8526
  if test "$with_gnu_ld" = yes; then
 
8527
    case $host_os in
 
8528
      aix*)
 
8529
        # The AIX port of GNU ld has always aspired to compatibility
 
8530
        # with the native linker.  However, as the warning in the GNU ld
 
8531
        # block says, versions before 2.19.5* couldn't really create working
 
8532
        # shared libraries, regardless of the interface used.
 
8533
        case `$LD -v 2>&1` in
 
8534
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
8535
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
 
8536
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
 
8537
          *)
 
8538
            lt_use_gnu_ld_interface=yes
 
8539
            ;;
 
8540
        esac
 
8541
        ;;
 
8542
      *)
 
8543
        lt_use_gnu_ld_interface=yes
 
8544
        ;;
 
8545
    esac
 
8546
  fi
 
8547
 
 
8548
  if test "$lt_use_gnu_ld_interface" = yes; then
 
8549
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8550
    wlarc='${wl}'
 
8551
 
 
8552
    # Set some defaults for GNU ld with shared library support. These
 
8553
    # are reset later if shared libraries are not supported. Putting them
 
8554
    # here allows them to be overridden if necessary.
 
8555
    runpath_var=LD_RUN_PATH
 
8556
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8557
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8558
    # ancient GNU ld didn't support --whole-archive et. al.
 
8559
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
8560
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8561
    else
 
8562
      whole_archive_flag_spec=
 
8563
    fi
 
8564
    supports_anon_versioning=no
 
8565
    case `$LD -v 2>&1` in
 
8566
      *GNU\ gold*) supports_anon_versioning=yes ;;
 
8567
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8568
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8569
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8570
      *\ 2.11.*) ;; # other 2.11 versions
 
8571
      *) supports_anon_versioning=yes ;;
 
8572
    esac
 
8573
 
 
8574
    # See if GNU ld supports shared libraries.
 
8575
    case $host_os in
 
8576
    aix[3-9]*)
 
8577
      # On AIX/PPC, the GNU linker is very broken
 
8578
      if test "$host_cpu" != ia64; then
 
8579
        ld_shlibs=no
 
8580
        cat <<_LT_EOF 1>&2
 
8581
 
 
8582
*** Warning: the GNU linker, at least up to release 2.19, is reported
 
8583
*** to be unable to reliably create shared libraries on AIX.
 
8584
*** Therefore, libtool is disabling shared libraries support.  If you
 
8585
*** really care for shared libraries, you may want to install binutils
 
8586
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
8587
*** You will then need to restart the configuration process.
 
8588
 
 
8589
_LT_EOF
 
8590
      fi
 
8591
      ;;
 
8592
 
 
8593
    amigaos*)
 
8594
      case $host_cpu in
 
8595
      powerpc)
 
8596
            # see comment about AmigaOS4 .so support
 
8597
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8598
            archive_expsym_cmds=''
 
8599
        ;;
 
8600
      m68k)
 
8601
            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)'
 
8602
            hardcode_libdir_flag_spec='-L$libdir'
 
8603
            hardcode_minus_L=yes
 
8604
        ;;
 
8605
      esac
 
8606
      ;;
 
8607
 
 
8608
    beos*)
 
8609
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8610
        allow_undefined_flag=unsupported
 
8611
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8612
        # support --undefined.  This deserves some investigation.  FIXME
 
8613
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8614
      else
 
8615
        ld_shlibs=no
 
8616
      fi
 
8617
      ;;
 
8618
 
 
8619
    cygwin* | mingw* | pw32* | cegcc*)
 
8620
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8621
      # as there is no search path for DLLs.
 
8622
      hardcode_libdir_flag_spec='-L$libdir'
 
8623
      export_dynamic_flag_spec='${wl}--export-all-symbols'
 
8624
      allow_undefined_flag=unsupported
 
8625
      always_export_symbols=no
 
8626
      enable_shared_with_static_runtimes=yes
 
8627
      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'
 
8628
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
8629
 
 
8630
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
8631
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8632
        # If the export-symbols file already is a .def file (1st line
 
8633
        # is EXPORTS), use it as is; otherwise, prepend...
 
8634
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8635
          cp $export_symbols $output_objdir/$soname.def;
 
8636
        else
 
8637
          echo EXPORTS > $output_objdir/$soname.def;
 
8638
          cat $export_symbols >> $output_objdir/$soname.def;
 
8639
        fi~
 
8640
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8641
      else
 
8642
        ld_shlibs=no
 
8643
      fi
 
8644
      ;;
 
8645
 
 
8646
    haiku*)
 
8647
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8648
      link_all_deplibs=yes
 
8649
      ;;
 
8650
 
 
8651
    interix[3-9]*)
 
8652
      hardcode_direct=no
 
8653
      hardcode_shlibpath_var=no
 
8654
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8655
      export_dynamic_flag_spec='${wl}-E'
 
8656
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8657
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8658
      # default) and relocated if they conflict, which is a slow very memory
 
8659
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8660
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8661
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8662
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8663
      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'
 
8664
      ;;
 
8665
 
 
8666
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
8667
      tmp_diet=no
 
8668
      if test "$host_os" = linux-dietlibc; then
 
8669
        case $cc_basename in
 
8670
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
8671
        esac
 
8672
      fi
 
8673
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
8674
         && test "$tmp_diet" = no
 
8675
      then
 
8676
        tmp_addflag=' $pic_flag'
 
8677
        tmp_sharedflag='-shared'
 
8678
        case $cc_basename,$host_cpu in
 
8679
        pgcc*)                          # Portland Group C compiler
 
8680
          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'
 
8681
          tmp_addflag=' $pic_flag'
 
8682
          ;;
 
8683
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
8684
                                        # Portland Group f77 and f90 compilers
 
8685
          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'
 
8686
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
8687
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
8688
          tmp_addflag=' -i_dynamic' ;;
 
8689
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8690
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8691
        ifc* | ifort*)                  # Intel Fortran compiler
 
8692
          tmp_addflag=' -nofor_main' ;;
 
8693
        lf95*)                          # Lahey Fortran 8.1
 
8694
          whole_archive_flag_spec=
 
8695
          tmp_sharedflag='--shared' ;;
 
8696
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
 
8697
          tmp_sharedflag='-qmkshrobj'
 
8698
          tmp_addflag= ;;
 
8699
        nvcc*)  # Cuda Compiler Driver 2.2
 
8700
          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'
 
8701
          compiler_needs_object=yes
 
8702
          ;;
 
8703
        esac
 
8704
        case `$CC -V 2>&1 | sed 5q` in
 
8705
        *Sun\ C*)                       # Sun C 5.9
 
8706
          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'
 
8707
          compiler_needs_object=yes
 
8708
          tmp_sharedflag='-G' ;;
 
8709
        *Sun\ F*)                       # Sun Fortran 8.3
 
8710
          tmp_sharedflag='-G' ;;
 
8711
        esac
 
8712
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8713
 
 
8714
        if test "x$supports_anon_versioning" = xyes; then
 
8715
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8716
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8717
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
8718
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8719
        fi
 
8720
 
 
8721
        case $cc_basename in
 
8722
        xlf* | bgf* | bgxlf* | mpixlf*)
 
8723
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
8724
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
8725
          hardcode_libdir_flag_spec=
 
8726
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8727
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 
8728
          if test "x$supports_anon_versioning" = xyes; then
 
8729
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8730
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8731
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
8732
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
8733
          fi
 
8734
          ;;
 
8735
        esac
 
8736
      else
 
8737
        ld_shlibs=no
 
8738
      fi
 
8739
      ;;
 
8740
 
 
8741
    netbsd* | netbsdelf*-gnu)
 
8742
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
8743
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8744
        wlarc=
 
8745
      else
 
8746
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8747
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8748
      fi
 
8749
      ;;
 
8750
 
 
8751
    solaris*)
 
8752
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
8753
        ld_shlibs=no
 
8754
        cat <<_LT_EOF 1>&2
 
8755
 
 
8756
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8757
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8758
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8759
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8760
*** your PATH or compiler configuration so that the native linker is
 
8761
*** used, and then restart.
 
8762
 
 
8763
_LT_EOF
 
8764
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8765
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8766
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8767
      else
 
8768
        ld_shlibs=no
 
8769
      fi
 
8770
      ;;
 
8771
 
 
8772
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8773
      case `$LD -v 2>&1` in
 
8774
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8775
        ld_shlibs=no
 
8776
        cat <<_LT_EOF 1>&2
 
8777
 
 
8778
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8779
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8780
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8781
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8782
*** your PATH or compiler configuration so that the native linker is
 
8783
*** used, and then restart.
 
8784
 
 
8785
_LT_EOF
 
8786
        ;;
 
8787
        *)
 
8788
          # For security reasons, it is highly recommended that you always
 
8789
          # use absolute paths for naming shared libraries, and exclude the
 
8790
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
8791
          # requires that you compile everything twice, which is a pain.
 
8792
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8793
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8794
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8795
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8796
          else
 
8797
            ld_shlibs=no
 
8798
          fi
 
8799
        ;;
 
8800
      esac
 
8801
      ;;
 
8802
 
 
8803
    sunos4*)
 
8804
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8805
      wlarc=
 
8806
      hardcode_direct=yes
 
8807
      hardcode_shlibpath_var=no
 
8808
      ;;
 
8809
 
 
8810
    *)
 
8811
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8812
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8813
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8814
      else
 
8815
        ld_shlibs=no
 
8816
      fi
 
8817
      ;;
 
8818
    esac
 
8819
 
 
8820
    if test "$ld_shlibs" = no; then
 
8821
      runpath_var=
 
8822
      hardcode_libdir_flag_spec=
 
8823
      export_dynamic_flag_spec=
 
8824
      whole_archive_flag_spec=
 
8825
    fi
 
8826
  else
 
8827
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8828
    case $host_os in
 
8829
    aix3*)
 
8830
      allow_undefined_flag=unsupported
 
8831
      always_export_symbols=yes
 
8832
      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'
 
8833
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8834
      # are no directories specified by -L.
 
8835
      hardcode_minus_L=yes
 
8836
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
8837
        # Neither direct hardcoding nor static linking is supported with a
 
8838
        # broken collect2.
 
8839
        hardcode_direct=unsupported
 
8840
      fi
 
8841
      ;;
 
8842
 
 
8843
    aix[4-9]*)
 
8844
      if test "$host_cpu" = ia64; then
 
8845
        # On IA64, the linker does run time linking by default, so we don't
 
8846
        # have to do anything special.
 
8847
        aix_use_runtimelinking=no
 
8848
        exp_sym_flag='-Bexport'
 
8849
        no_entry_flag=""
 
8850
      else
 
8851
        # If we're using GNU nm, then we don't want the "-C" option.
 
8852
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8853
        # Also, AIX nm treats weak defined symbols like other global
 
8854
        # defined symbols, whereas GNU nm marks them as "W".
 
8855
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
8856
          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'
 
8857
        else
 
8858
          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'
 
8859
        fi
 
8860
        aix_use_runtimelinking=no
 
8861
 
 
8862
        # Test if we are trying to use run time linking or normal
 
8863
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8864
        # need to do runtime linking.
 
8865
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
8866
          for ld_flag in $LDFLAGS; do
 
8867
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8868
            aix_use_runtimelinking=yes
 
8869
            break
 
8870
          fi
 
8871
          done
 
8872
          ;;
 
8873
        esac
 
8874
 
 
8875
        exp_sym_flag='-bexport'
 
8876
        no_entry_flag='-bnoentry'
 
8877
      fi
 
8878
 
 
8879
      # When large executables or shared objects are built, AIX ld can
 
8880
      # have problems creating the table of contents.  If linking a library
 
8881
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8882
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8883
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8884
 
 
8885
      archive_cmds=''
 
8886
      hardcode_direct=yes
 
8887
      hardcode_direct_absolute=yes
 
8888
      hardcode_libdir_separator=':'
 
8889
      link_all_deplibs=yes
 
8890
      file_list_spec='${wl}-f,'
 
8891
 
 
8892
      if test "$GCC" = yes; then
 
8893
        case $host_os in aix4.[012]|aix4.[012].*)
 
8894
        # We only want to do this on AIX 4.2 and lower, the check
 
8895
        # below for broken collect2 doesn't work under 4.3+
 
8896
          collect2name=`${CC} -print-prog-name=collect2`
 
8897
          if test -f "$collect2name" &&
 
8898
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
8899
          then
 
8900
          # We have reworked collect2
 
8901
          :
 
8902
          else
 
8903
          # We have old collect2
 
8904
          hardcode_direct=unsupported
 
8905
          # It fails to find uninstalled libraries when the uninstalled
 
8906
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8907
          # to unsupported forces relinking
 
8908
          hardcode_minus_L=yes
 
8909
          hardcode_libdir_flag_spec='-L$libdir'
 
8910
          hardcode_libdir_separator=
 
8911
          fi
 
8912
          ;;
 
8913
        esac
 
8914
        shared_flag='-shared'
 
8915
        if test "$aix_use_runtimelinking" = yes; then
 
8916
          shared_flag="$shared_flag "'${wl}-G'
 
8917
        fi
 
8918
        link_all_deplibs=no
 
8919
      else
 
8920
        # not using gcc
 
8921
        if test "$host_cpu" = ia64; then
 
8922
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8923
        # chokes on -Wl,-G. The following line is correct:
 
8924
          shared_flag='-G'
 
8925
        else
 
8926
          if test "$aix_use_runtimelinking" = yes; then
 
8927
            shared_flag='${wl}-G'
 
8928
          else
 
8929
            shared_flag='${wl}-bM:SRE'
 
8930
          fi
 
8931
        fi
 
8932
      fi
 
8933
 
 
8934
      export_dynamic_flag_spec='${wl}-bexpall'
 
8935
      # It seems that -bexpall does not export symbols beginning with
 
8936
      # underscore (_), so it is better to generate a list of symbols to export.
 
8937
      always_export_symbols=yes
 
8938
      if test "$aix_use_runtimelinking" = yes; then
 
8939
        # Warning - without using the other runtime loading flags (-brtl),
 
8940
        # -berok will link without error, but may produce a broken library.
 
8941
        allow_undefined_flag='-berok'
 
8942
        # Determine the default libpath from the value encoded in an
 
8943
        # empty executable.
 
8944
        if test "${lt_cv_aix_libpath+set}" = set; then
 
8945
  aix_libpath=$lt_cv_aix_libpath
 
8946
else
 
8947
  if ${lt_cv_aix_libpath_+:} false; then :
 
8948
  $as_echo_n "(cached) " >&6
 
8949
else
 
8950
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8951
/* end confdefs.h.  */
 
8952
 
 
8953
int
 
8954
main ()
 
8955
{
 
8956
 
 
8957
  ;
 
8958
  return 0;
 
8959
}
 
8960
_ACEOF
 
8961
if ac_fn_c_try_link "$LINENO"; then :
 
8962
 
 
8963
  lt_aix_libpath_sed='
 
8964
      /Import File Strings/,/^$/ {
 
8965
          /^0/ {
 
8966
              s/^0  *\([^ ]*\) *$/\1/
 
8967
              p
 
8968
          }
 
8969
      }'
 
8970
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8971
  # Check for a 64-bit object if we didn't find anything.
 
8972
  if test -z "$lt_cv_aix_libpath_"; then
 
8973
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8974
  fi
 
8975
fi
 
8976
rm -f core conftest.err conftest.$ac_objext \
 
8977
    conftest$ac_exeext conftest.$ac_ext
 
8978
  if test -z "$lt_cv_aix_libpath_"; then
 
8979
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
8980
  fi
 
8981
 
 
8982
fi
 
8983
 
 
8984
  aix_libpath=$lt_cv_aix_libpath_
 
8985
fi
 
8986
 
 
8987
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8988
        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"
 
8989
      else
 
8990
        if test "$host_cpu" = ia64; then
 
8991
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8992
          allow_undefined_flag="-z nodefs"
 
8993
          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"
 
8994
        else
 
8995
         # Determine the default libpath from the value encoded in an
 
8996
         # empty executable.
 
8997
         if test "${lt_cv_aix_libpath+set}" = set; then
 
8998
  aix_libpath=$lt_cv_aix_libpath
 
8999
else
 
9000
  if ${lt_cv_aix_libpath_+:} false; then :
 
9001
  $as_echo_n "(cached) " >&6
 
9002
else
 
9003
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9004
/* end confdefs.h.  */
 
9005
 
 
9006
int
 
9007
main ()
 
9008
{
 
9009
 
 
9010
  ;
 
9011
  return 0;
 
9012
}
 
9013
_ACEOF
 
9014
if ac_fn_c_try_link "$LINENO"; then :
 
9015
 
 
9016
  lt_aix_libpath_sed='
 
9017
      /Import File Strings/,/^$/ {
 
9018
          /^0/ {
 
9019
              s/^0  *\([^ ]*\) *$/\1/
 
9020
              p
 
9021
          }
 
9022
      }'
 
9023
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9024
  # Check for a 64-bit object if we didn't find anything.
 
9025
  if test -z "$lt_cv_aix_libpath_"; then
 
9026
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9027
  fi
 
9028
fi
 
9029
rm -f core conftest.err conftest.$ac_objext \
 
9030
    conftest$ac_exeext conftest.$ac_ext
 
9031
  if test -z "$lt_cv_aix_libpath_"; then
 
9032
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
9033
  fi
 
9034
 
 
9035
fi
 
9036
 
 
9037
  aix_libpath=$lt_cv_aix_libpath_
 
9038
fi
 
9039
 
 
9040
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9041
          # Warning - without using the other run time loading flags,
 
9042
          # -berok will link without error, but may produce a broken library.
 
9043
          no_undefined_flag=' ${wl}-bernotok'
 
9044
          allow_undefined_flag=' ${wl}-berok'
 
9045
          if test "$with_gnu_ld" = yes; then
 
9046
            # We only use this code for GNU lds that support --whole-archive.
 
9047
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
9048
          else
 
9049
            # Exported symbols can be pulled into shared objects from archives
 
9050
            whole_archive_flag_spec='$convenience'
 
9051
          fi
 
9052
          archive_cmds_need_lc=yes
 
9053
          # This is similar to how AIX traditionally builds its shared libraries.
 
9054
          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'
 
9055
        fi
 
9056
      fi
 
9057
      ;;
 
9058
 
 
9059
    amigaos*)
 
9060
      case $host_cpu in
 
9061
      powerpc)
 
9062
            # see comment about AmigaOS4 .so support
 
9063
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9064
            archive_expsym_cmds=''
 
9065
        ;;
 
9066
      m68k)
 
9067
            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)'
 
9068
            hardcode_libdir_flag_spec='-L$libdir'
 
9069
            hardcode_minus_L=yes
 
9070
        ;;
 
9071
      esac
 
9072
      ;;
 
9073
 
 
9074
    bsdi[45]*)
 
9075
      export_dynamic_flag_spec=-rdynamic
 
9076
      ;;
 
9077
 
 
9078
    cygwin* | mingw* | pw32* | cegcc*)
 
9079
      # When not using gcc, we currently assume that we are using
 
9080
      # Microsoft Visual C++.
 
9081
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
9082
      # no search path for DLLs.
 
9083
      case $cc_basename in
 
9084
      cl*)
 
9085
        # Native MSVC
 
9086
        hardcode_libdir_flag_spec=' '
 
9087
        allow_undefined_flag=unsupported
 
9088
        always_export_symbols=yes
 
9089
        file_list_spec='@'
 
9090
        # Tell ltmain to make .lib files, not .a files.
 
9091
        libext=lib
 
9092
        # Tell ltmain to make .dll files, not .so files.
 
9093
        shrext_cmds=".dll"
 
9094
        # FIXME: Setting linknames here is a bad hack.
 
9095
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
9096
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9097
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
9098
          else
 
9099
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
9100
          fi~
 
9101
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
9102
          linknames='
 
9103
        # The linker will not automatically build a static lib if we build a DLL.
 
9104
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
 
9105
        enable_shared_with_static_runtimes=yes
 
9106
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
9107
        # Don't use ranlib
 
9108
        old_postinstall_cmds='chmod 644 $oldlib'
 
9109
        postlink_cmds='lt_outputfile="@OUTPUT@"~
 
9110
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
9111
          case $lt_outputfile in
 
9112
            *.exe|*.EXE) ;;
 
9113
            *)
 
9114
              lt_outputfile="$lt_outputfile.exe"
 
9115
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
9116
              ;;
 
9117
          esac~
 
9118
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
9119
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
9120
            $RM "$lt_outputfile.manifest";
 
9121
          fi'
 
9122
        ;;
 
9123
      *)
 
9124
        # Assume MSVC wrapper
 
9125
        hardcode_libdir_flag_spec=' '
 
9126
        allow_undefined_flag=unsupported
 
9127
        # Tell ltmain to make .lib files, not .a files.
 
9128
        libext=lib
 
9129
        # Tell ltmain to make .dll files, not .so files.
 
9130
        shrext_cmds=".dll"
 
9131
        # FIXME: Setting linknames here is a bad hack.
 
9132
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
9133
        # The linker will automatically build a .lib file if we build a DLL.
 
9134
        old_archive_from_new_cmds='true'
 
9135
        # FIXME: Should let the user specify the lib program.
 
9136
        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
9137
        enable_shared_with_static_runtimes=yes
 
9138
        ;;
 
9139
      esac
 
9140
      ;;
 
9141
 
 
9142
    darwin* | rhapsody*)
 
9143
 
 
9144
 
 
9145
  archive_cmds_need_lc=no
 
9146
  hardcode_direct=no
 
9147
  hardcode_automatic=yes
 
9148
  hardcode_shlibpath_var=unsupported
 
9149
  if test "$lt_cv_ld_force_load" = "yes"; then
 
9150
    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\"`'
 
9151
  else
 
9152
    whole_archive_flag_spec=''
 
9153
  fi
 
9154
  link_all_deplibs=yes
 
9155
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
9156
  case $cc_basename in
 
9157
     ifort*) _lt_dar_can_shared=yes ;;
 
9158
     *) _lt_dar_can_shared=$GCC ;;
 
9159
  esac
 
9160
  if test "$_lt_dar_can_shared" = "yes"; then
 
9161
    output_verbose_link_cmd=func_echo_all
 
9162
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
9163
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
9164
    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}"
 
9165
    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}"
 
9166
 
 
9167
  else
 
9168
  ld_shlibs=no
 
9169
  fi
 
9170
 
 
9171
      ;;
 
9172
 
 
9173
    dgux*)
 
9174
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9175
      hardcode_libdir_flag_spec='-L$libdir'
 
9176
      hardcode_shlibpath_var=no
 
9177
      ;;
 
9178
 
 
9179
    freebsd1*)
 
9180
      ld_shlibs=no
 
9181
      ;;
 
9182
 
 
9183
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
9184
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
9185
    # does not break anything, and helps significantly (at the cost of a little
 
9186
    # extra space).
 
9187
    freebsd2.2*)
 
9188
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
9189
      hardcode_libdir_flag_spec='-R$libdir'
 
9190
      hardcode_direct=yes
 
9191
      hardcode_shlibpath_var=no
 
9192
      ;;
 
9193
 
 
9194
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
9195
    freebsd2*)
 
9196
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9197
      hardcode_direct=yes
 
9198
      hardcode_minus_L=yes
 
9199
      hardcode_shlibpath_var=no
 
9200
      ;;
 
9201
 
 
9202
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
9203
    freebsd* | dragonfly*)
 
9204
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9205
      hardcode_libdir_flag_spec='-R$libdir'
 
9206
      hardcode_direct=yes
 
9207
      hardcode_shlibpath_var=no
 
9208
      ;;
 
9209
 
 
9210
    hpux9*)
 
9211
      if test "$GCC" = yes; then
 
9212
        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'
 
9213
      else
 
9214
        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'
 
9215
      fi
 
9216
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9217
      hardcode_libdir_separator=:
 
9218
      hardcode_direct=yes
 
9219
 
 
9220
      # hardcode_minus_L: Not really in the search PATH,
 
9221
      # but as the default location of the library.
 
9222
      hardcode_minus_L=yes
 
9223
      export_dynamic_flag_spec='${wl}-E'
 
9224
      ;;
 
9225
 
 
9226
    hpux10*)
 
9227
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
9228
        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9229
      else
 
9230
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9231
      fi
 
9232
      if test "$with_gnu_ld" = no; then
 
9233
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9234
        hardcode_libdir_flag_spec_ld='+b $libdir'
 
9235
        hardcode_libdir_separator=:
 
9236
        hardcode_direct=yes
 
9237
        hardcode_direct_absolute=yes
 
9238
        export_dynamic_flag_spec='${wl}-E'
 
9239
        # hardcode_minus_L: Not really in the search PATH,
 
9240
        # but as the default location of the library.
 
9241
        hardcode_minus_L=yes
 
9242
      fi
 
9243
      ;;
 
9244
 
 
9245
    hpux11*)
 
9246
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
9247
        case $host_cpu in
 
9248
        hppa*64*)
 
9249
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9250
          ;;
 
9251
        ia64*)
 
9252
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9253
          ;;
 
9254
        *)
 
9255
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9256
          ;;
 
9257
        esac
 
9258
      else
 
9259
        case $host_cpu in
 
9260
        hppa*64*)
 
9261
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9262
          ;;
 
9263
        ia64*)
 
9264
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9265
          ;;
 
9266
        *)
 
9267
 
 
9268
          # Older versions of the 11.00 compiler do not understand -b yet
 
9269
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
9270
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
 
9271
$as_echo_n "checking if $CC understands -b... " >&6; }
 
9272
if ${lt_cv_prog_compiler__b+:} false; then :
 
9273
  $as_echo_n "(cached) " >&6
 
9274
else
 
9275
  lt_cv_prog_compiler__b=no
 
9276
   save_LDFLAGS="$LDFLAGS"
 
9277
   LDFLAGS="$LDFLAGS -b"
 
9278
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
9279
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
9280
     # The linker can only warn and ignore the option if not recognized
 
9281
     # So say no if there are warnings
 
9282
     if test -s conftest.err; then
 
9283
       # Append any errors to the config.log.
 
9284
       cat conftest.err 1>&5
 
9285
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
9286
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9287
       if diff conftest.exp conftest.er2 >/dev/null; then
 
9288
         lt_cv_prog_compiler__b=yes
 
9289
       fi
 
9290
     else
 
9291
       lt_cv_prog_compiler__b=yes
 
9292
     fi
 
9293
   fi
 
9294
   $RM -r conftest*
 
9295
   LDFLAGS="$save_LDFLAGS"
 
9296
 
 
9297
fi
 
9298
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
 
9299
$as_echo "$lt_cv_prog_compiler__b" >&6; }
 
9300
 
 
9301
if test x"$lt_cv_prog_compiler__b" = xyes; then
 
9302
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9303
else
 
9304
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9305
fi
 
9306
 
 
9307
          ;;
 
9308
        esac
 
9309
      fi
 
9310
      if test "$with_gnu_ld" = no; then
 
9311
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9312
        hardcode_libdir_separator=:
 
9313
 
 
9314
        case $host_cpu in
 
9315
        hppa*64*|ia64*)
 
9316
          hardcode_direct=no
 
9317
          hardcode_shlibpath_var=no
 
9318
          ;;
 
9319
        *)
 
9320
          hardcode_direct=yes
 
9321
          hardcode_direct_absolute=yes
 
9322
          export_dynamic_flag_spec='${wl}-E'
 
9323
 
 
9324
          # hardcode_minus_L: Not really in the search PATH,
 
9325
          # but as the default location of the library.
 
9326
          hardcode_minus_L=yes
 
9327
          ;;
 
9328
        esac
 
9329
      fi
 
9330
      ;;
 
9331
 
 
9332
    irix5* | irix6* | nonstopux*)
 
9333
      if test "$GCC" = yes; then
 
9334
        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'
 
9335
        # Try to use the -exported_symbol ld option, if it does not
 
9336
        # work, assume that -exports_file does not work either and
 
9337
        # implicitly export all symbols.
 
9338
        # This should be the same for all languages, so no per-tag cache variable.
 
9339
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
 
9340
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
 
9341
if ${lt_cv_irix_exported_symbol+:} false; then :
 
9342
  $as_echo_n "(cached) " >&6
 
9343
else
 
9344
  save_LDFLAGS="$LDFLAGS"
 
9345
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
9346
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9347
/* end confdefs.h.  */
 
9348
int foo (void) { return 0; }
 
9349
_ACEOF
 
9350
if ac_fn_c_try_link "$LINENO"; then :
 
9351
  lt_cv_irix_exported_symbol=yes
 
9352
else
 
9353
  lt_cv_irix_exported_symbol=no
 
9354
fi
 
9355
rm -f core conftest.err conftest.$ac_objext \
 
9356
    conftest$ac_exeext conftest.$ac_ext
 
9357
           LDFLAGS="$save_LDFLAGS"
 
9358
fi
 
9359
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
 
9360
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
 
9361
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
9362
          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'
 
9363
        fi
 
9364
      else
 
9365
        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'
 
9366
        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'
 
9367
      fi
 
9368
      archive_cmds_need_lc='no'
 
9369
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9370
      hardcode_libdir_separator=:
 
9371
      inherit_rpath=yes
 
9372
      link_all_deplibs=yes
 
9373
      ;;
 
9374
 
 
9375
    netbsd* | netbsdelf*-gnu)
 
9376
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9377
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
9378
      else
 
9379
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
9380
      fi
 
9381
      hardcode_libdir_flag_spec='-R$libdir'
 
9382
      hardcode_direct=yes
 
9383
      hardcode_shlibpath_var=no
 
9384
      ;;
 
9385
 
 
9386
    newsos6)
 
9387
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9388
      hardcode_direct=yes
 
9389
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9390
      hardcode_libdir_separator=:
 
9391
      hardcode_shlibpath_var=no
 
9392
      ;;
 
9393
 
 
9394
    *nto* | *qnx*)
 
9395
      ;;
 
9396
 
 
9397
    openbsd*)
 
9398
      if test -f /usr/libexec/ld.so; then
 
9399
        hardcode_direct=yes
 
9400
        hardcode_shlibpath_var=no
 
9401
        hardcode_direct_absolute=yes
 
9402
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9403
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9404
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9405
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9406
          export_dynamic_flag_spec='${wl}-E'
 
9407
        else
 
9408
          case $host_os in
 
9409
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9410
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9411
             hardcode_libdir_flag_spec='-R$libdir'
 
9412
             ;;
 
9413
           *)
 
9414
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9415
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9416
             ;;
 
9417
          esac
 
9418
        fi
 
9419
      else
 
9420
        ld_shlibs=no
 
9421
      fi
 
9422
      ;;
 
9423
 
 
9424
    os2*)
 
9425
      hardcode_libdir_flag_spec='-L$libdir'
 
9426
      hardcode_minus_L=yes
 
9427
      allow_undefined_flag=unsupported
 
9428
      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'
 
9429
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9430
      ;;
 
9431
 
 
9432
    osf3*)
 
9433
      if test "$GCC" = yes; then
 
9434
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9435
        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'
 
9436
      else
 
9437
        allow_undefined_flag=' -expect_unresolved \*'
 
9438
        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'
 
9439
      fi
 
9440
      archive_cmds_need_lc='no'
 
9441
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9442
      hardcode_libdir_separator=:
 
9443
      ;;
 
9444
 
 
9445
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
9446
      if test "$GCC" = yes; then
 
9447
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9448
        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'
 
9449
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9450
      else
 
9451
        allow_undefined_flag=' -expect_unresolved \*'
 
9452
        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'
 
9453
        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~
 
9454
        $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'
 
9455
 
 
9456
        # Both c and cxx compiler support -rpath directly
 
9457
        hardcode_libdir_flag_spec='-rpath $libdir'
 
9458
      fi
 
9459
      archive_cmds_need_lc='no'
 
9460
      hardcode_libdir_separator=:
 
9461
      ;;
 
9462
 
 
9463
    solaris*)
 
9464
      no_undefined_flag=' -z defs'
 
9465
      if test "$GCC" = yes; then
 
9466
        wlarc='${wl}'
 
9467
        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9468
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9469
          $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'
 
9470
      else
 
9471
        case `$CC -V 2>&1` in
 
9472
        *"Compilers 5.0"*)
 
9473
          wlarc=''
 
9474
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9475
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9476
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
9477
          ;;
 
9478
        *)
 
9479
          wlarc='${wl}'
 
9480
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9481
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9482
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9483
          ;;
 
9484
        esac
 
9485
      fi
 
9486
      hardcode_libdir_flag_spec='-R$libdir'
 
9487
      hardcode_shlibpath_var=no
 
9488
      case $host_os in
 
9489
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
9490
      *)
 
9491
        # The compiler driver will combine and reorder linker options,
 
9492
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
9493
        # but is careful enough not to reorder.
 
9494
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9495
        if test "$GCC" = yes; then
 
9496
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
9497
        else
 
9498
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
9499
        fi
 
9500
        ;;
 
9501
      esac
 
9502
      link_all_deplibs=yes
 
9503
      ;;
 
9504
 
 
9505
    sunos4*)
 
9506
      if test "x$host_vendor" = xsequent; then
 
9507
        # Use $CC to link under sequent, because it throws in some extra .o
 
9508
        # files that make .init and .fini sections work.
 
9509
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9510
      else
 
9511
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
9512
      fi
 
9513
      hardcode_libdir_flag_spec='-L$libdir'
 
9514
      hardcode_direct=yes
 
9515
      hardcode_minus_L=yes
 
9516
      hardcode_shlibpath_var=no
 
9517
      ;;
 
9518
 
 
9519
    sysv4)
 
9520
      case $host_vendor in
 
9521
        sni)
 
9522
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9523
          hardcode_direct=yes # is this really true???
 
9524
        ;;
 
9525
        siemens)
 
9526
          ## LD is ld it makes a PLAMLIB
 
9527
          ## CC just makes a GrossModule.
 
9528
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9529
          reload_cmds='$CC -r -o $output$reload_objs'
 
9530
          hardcode_direct=no
 
9531
        ;;
 
9532
        motorola)
 
9533
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9534
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
9535
        ;;
 
9536
      esac
 
9537
      runpath_var='LD_RUN_PATH'
 
9538
      hardcode_shlibpath_var=no
 
9539
      ;;
 
9540
 
 
9541
    sysv4.3*)
 
9542
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9543
      hardcode_shlibpath_var=no
 
9544
      export_dynamic_flag_spec='-Bexport'
 
9545
      ;;
 
9546
 
 
9547
    sysv4*MP*)
 
9548
      if test -d /usr/nec; then
 
9549
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9550
        hardcode_shlibpath_var=no
 
9551
        runpath_var=LD_RUN_PATH
 
9552
        hardcode_runpath_var=yes
 
9553
        ld_shlibs=yes
 
9554
      fi
 
9555
      ;;
 
9556
 
 
9557
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
9558
      no_undefined_flag='${wl}-z,text'
 
9559
      archive_cmds_need_lc=no
 
9560
      hardcode_shlibpath_var=no
 
9561
      runpath_var='LD_RUN_PATH'
 
9562
 
 
9563
      if test "$GCC" = yes; then
 
9564
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9565
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9566
      else
 
9567
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9568
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9569
      fi
 
9570
      ;;
 
9571
 
 
9572
    sysv5* | sco3.2v5* | sco5v6*)
 
9573
      # Note: We can NOT use -z defs as we might desire, because we do not
 
9574
      # link with -lc, and that would cause any symbols used from libc to
 
9575
      # always be unresolved, which means just about no library would
 
9576
      # ever link correctly.  If we're not using GNU ld we use -z text
 
9577
      # though, which does catch some bad symbols but isn't as heavy-handed
 
9578
      # as -z defs.
 
9579
      no_undefined_flag='${wl}-z,text'
 
9580
      allow_undefined_flag='${wl}-z,nodefs'
 
9581
      archive_cmds_need_lc=no
 
9582
      hardcode_shlibpath_var=no
 
9583
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
9584
      hardcode_libdir_separator=':'
 
9585
      link_all_deplibs=yes
 
9586
      export_dynamic_flag_spec='${wl}-Bexport'
 
9587
      runpath_var='LD_RUN_PATH'
 
9588
 
 
9589
      if test "$GCC" = yes; then
 
9590
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9591
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9592
      else
 
9593
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9594
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9595
      fi
 
9596
      ;;
 
9597
 
 
9598
    uts4*)
 
9599
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9600
      hardcode_libdir_flag_spec='-L$libdir'
 
9601
      hardcode_shlibpath_var=no
 
9602
      ;;
 
9603
 
 
9604
    *)
 
9605
      ld_shlibs=no
 
9606
      ;;
 
9607
    esac
 
9608
 
 
9609
    if test x$host_vendor = xsni; then
 
9610
      case $host in
 
9611
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9612
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9613
        ;;
 
9614
      esac
 
9615
    fi
 
9616
  fi
 
9617
 
 
9618
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
9619
$as_echo "$ld_shlibs" >&6; }
 
9620
test "$ld_shlibs" = no && can_build_shared=no
 
9621
 
 
9622
with_gnu_ld=$with_gnu_ld
 
9623
 
 
9624
 
 
9625
 
 
9626
 
 
9627
 
 
9628
 
 
9629
 
 
9630
 
 
9631
 
 
9632
 
 
9633
 
 
9634
 
 
9635
 
 
9636
 
 
9637
 
 
9638
#
 
9639
# Do we need to explicitly link libc?
 
9640
#
 
9641
case "x$archive_cmds_need_lc" in
 
9642
x|xyes)
 
9643
  # Assume -lc should be added
 
9644
  archive_cmds_need_lc=yes
 
9645
 
 
9646
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9647
    case $archive_cmds in
 
9648
    *'~'*)
 
9649
      # FIXME: we may have to deal with multi-command sequences.
 
9650
      ;;
 
9651
    '$CC '*)
 
9652
      # Test whether the compiler implicitly links with -lc since on some
 
9653
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9654
      # to ld, don't add -lc before -lgcc.
 
9655
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
9656
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
9657
if ${lt_cv_archive_cmds_need_lc+:} false; then :
 
9658
  $as_echo_n "(cached) " >&6
 
9659
else
 
9660
  $RM conftest*
 
9661
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9662
 
 
9663
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
9664
  (eval $ac_compile) 2>&5
 
9665
  ac_status=$?
 
9666
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9667
  test $ac_status = 0; } 2>conftest.err; then
 
9668
          soname=conftest
 
9669
          lib=conftest
 
9670
          libobjs=conftest.$ac_objext
 
9671
          deplibs=
 
9672
          wl=$lt_prog_compiler_wl
 
9673
          pic_flag=$lt_prog_compiler_pic
 
9674
          compiler_flags=-v
 
9675
          linker_flags=-v
 
9676
          verstring=
 
9677
          output_objdir=.
 
9678
          libname=conftest
 
9679
          lt_save_allow_undefined_flag=$allow_undefined_flag
 
9680
          allow_undefined_flag=
 
9681
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
9682
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9683
  ac_status=$?
 
9684
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9685
  test $ac_status = 0; }
 
9686
          then
 
9687
            lt_cv_archive_cmds_need_lc=no
 
9688
          else
 
9689
            lt_cv_archive_cmds_need_lc=yes
 
9690
          fi
 
9691
          allow_undefined_flag=$lt_save_allow_undefined_flag
 
9692
        else
 
9693
          cat conftest.err 1>&5
 
9694
        fi
 
9695
        $RM conftest*
 
9696
 
 
9697
fi
 
9698
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
 
9699
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
 
9700
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
 
9701
      ;;
 
9702
    esac
 
9703
  fi
 
9704
  ;;
 
9705
esac
 
9706
 
 
9707
 
 
9708
 
 
9709
 
 
9710
 
 
9711
 
 
9712
 
 
9713
 
 
9714
 
 
9715
 
 
9716
 
 
9717
 
 
9718
 
 
9719
 
 
9720
 
 
9721
 
 
9722
 
 
9723
 
 
9724
 
 
9725
 
 
9726
 
 
9727
 
 
9728
 
 
9729
 
 
9730
 
 
9731
 
 
9732
 
 
9733
 
 
9734
 
 
9735
 
 
9736
 
 
9737
 
 
9738
 
 
9739
 
 
9740
 
 
9741
 
 
9742
 
 
9743
 
 
9744
 
 
9745
 
 
9746
 
 
9747
 
 
9748
 
 
9749
 
 
9750
 
 
9751
 
 
9752
 
 
9753
 
 
9754
 
 
9755
 
 
9756
 
 
9757
 
 
9758
 
 
9759
 
 
9760
 
 
9761
 
 
9762
 
 
9763
 
 
9764
 
 
9765
 
 
9766
 
 
9767
 
 
9768
 
 
9769
 
 
9770
 
 
9771
 
 
9772
 
 
9773
 
 
9774
 
 
9775
 
 
9776
 
 
9777
 
 
9778
 
 
9779
 
 
9780
 
 
9781
 
 
9782
 
 
9783
 
 
9784
 
 
9785
 
 
9786
 
 
9787
 
 
9788
 
 
9789
 
 
9790
 
 
9791
 
 
9792
 
 
9793
 
 
9794
 
 
9795
 
 
9796
 
 
9797
 
 
9798
 
 
9799
 
 
9800
 
 
9801
 
 
9802
 
 
9803
 
 
9804
 
 
9805
 
 
9806
 
 
9807
 
 
9808
 
 
9809
 
 
9810
 
 
9811
 
 
9812
 
 
9813
 
 
9814
 
 
9815
 
 
9816
 
 
9817
 
 
9818
 
 
9819
 
 
9820
 
 
9821
 
 
9822
 
 
9823
 
 
9824
 
 
9825
 
 
9826
 
 
9827
 
 
9828
 
 
9829
 
 
9830
 
 
9831
 
 
9832
 
 
9833
 
 
9834
 
 
9835
 
 
9836
 
 
9837
 
 
9838
 
 
9839
 
 
9840
 
 
9841
 
 
9842
 
 
9843
 
 
9844
 
 
9845
 
 
9846
 
 
9847
 
 
9848
 
 
9849
 
 
9850
 
 
9851
 
 
9852
 
 
9853
 
 
9854
 
 
9855
 
 
9856
 
 
9857
 
 
9858
 
 
9859
 
 
9860
 
 
9861
 
 
9862
 
 
9863
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
9864
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
9865
 
 
9866
if test "$GCC" = yes; then
 
9867
  case $host_os in
 
9868
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
9869
    *) lt_awk_arg="/^libraries:/" ;;
 
9870
  esac
 
9871
  case $host_os in
 
9872
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
 
9873
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
9874
  esac
 
9875
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
9876
  case $lt_search_path_spec in
 
9877
  *\;*)
 
9878
    # if the path contains ";" then we assume it to be the separator
 
9879
    # otherwise default to the standard path separator (i.e. ":") - it is
 
9880
    # assumed that no part of a normal pathname contains ";" but that should
 
9881
    # okay in the real world where ";" in dirpaths is itself problematic.
 
9882
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
9883
    ;;
 
9884
  *)
 
9885
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
9886
    ;;
 
9887
  esac
 
9888
  # Ok, now we have the path, separated by spaces, we can step through it
 
9889
  # and add multilib dir if necessary.
 
9890
  lt_tmp_lt_search_path_spec=
 
9891
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
9892
  for lt_sys_path in $lt_search_path_spec; do
 
9893
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
9894
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
9895
    else
 
9896
      test -d "$lt_sys_path" && \
 
9897
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
9898
    fi
 
9899
  done
 
9900
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
 
9901
BEGIN {RS=" "; FS="/|\n";} {
 
9902
  lt_foo="";
 
9903
  lt_count=0;
 
9904
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
9905
    if ($lt_i != "" && $lt_i != ".") {
 
9906
      if ($lt_i == "..") {
 
9907
        lt_count++;
 
9908
      } else {
 
9909
        if (lt_count == 0) {
 
9910
          lt_foo="/" $lt_i lt_foo;
 
9911
        } else {
 
9912
          lt_count--;
 
9913
        }
 
9914
      }
 
9915
    }
 
9916
  }
 
9917
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
9918
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
9919
}'`
 
9920
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
9921
  # for these hosts.
 
9922
  case $host_os in
 
9923
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
9924
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
 
9925
  esac
 
9926
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 
9927
else
 
9928
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
9929
fi
 
9930
library_names_spec=
 
9931
libname_spec='lib$name'
 
9932
soname_spec=
 
9933
shrext_cmds=".so"
 
9934
postinstall_cmds=
 
9935
postuninstall_cmds=
 
9936
finish_cmds=
 
9937
finish_eval=
 
9938
shlibpath_var=
 
9939
shlibpath_overrides_runpath=unknown
 
9940
version_type=none
 
9941
dynamic_linker="$host_os ld.so"
 
9942
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
9943
need_lib_prefix=unknown
 
9944
hardcode_into_libs=no
 
9945
 
 
9946
# when you set need_version to no, make sure it does not cause -set_version
 
9947
# flags to be left without arguments
 
9948
need_version=unknown
 
9949
 
 
9950
case $host_os in
 
9951
aix3*)
 
9952
  version_type=linux
 
9953
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
9954
  shlibpath_var=LIBPATH
 
9955
 
 
9956
  # AIX 3 has no versioning support, so we append a major version to the name.
 
9957
  soname_spec='${libname}${release}${shared_ext}$major'
 
9958
  ;;
 
9959
 
 
9960
aix[4-9]*)
 
9961
  version_type=linux
 
9962
  need_lib_prefix=no
 
9963
  need_version=no
 
9964
  hardcode_into_libs=yes
 
9965
  if test "$host_cpu" = ia64; then
 
9966
    # AIX 5 supports IA64
 
9967
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
9968
    shlibpath_var=LD_LIBRARY_PATH
 
9969
  else
 
9970
    # With GCC up to 2.95.x, collect2 would create an import file
 
9971
    # for dependence libraries.  The import file would start with
 
9972
    # the line `#! .'.  This would cause the generated library to
 
9973
    # depend on `.', always an invalid library.  This was fixed in
 
9974
    # development snapshots of GCC prior to 3.0.
 
9975
    case $host_os in
 
9976
      aix4 | aix4.[01] | aix4.[01].*)
 
9977
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
9978
           echo ' yes '
 
9979
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
9980
        :
 
9981
      else
 
9982
        can_build_shared=no
 
9983
      fi
 
9984
      ;;
 
9985
    esac
 
9986
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
9987
    # soname into executable. Probably we can add versioning support to
 
9988
    # collect2, so additional links can be useful in future.
 
9989
    if test "$aix_use_runtimelinking" = yes; then
 
9990
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
9991
      # instead of lib<name>.a to let people know that these are not
 
9992
      # typical AIX shared libraries.
 
9993
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9994
    else
 
9995
      # We preserve .a as extension for shared libraries through AIX4.2
 
9996
      # and later when we are not doing run time linking.
 
9997
      library_names_spec='${libname}${release}.a $libname.a'
 
9998
      soname_spec='${libname}${release}${shared_ext}$major'
 
9999
    fi
 
10000
    shlibpath_var=LIBPATH
 
10001
  fi
 
10002
  ;;
 
10003
 
 
10004
amigaos*)
 
10005
  case $host_cpu in
 
10006
  powerpc)
 
10007
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
10008
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
10009
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10010
    ;;
 
10011
  m68k)
 
10012
    library_names_spec='$libname.ixlibrary $libname.a'
 
10013
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10014
    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'
 
10015
    ;;
 
10016
  esac
 
10017
  ;;
 
10018
 
 
10019
beos*)
 
10020
  library_names_spec='${libname}${shared_ext}'
 
10021
  dynamic_linker="$host_os ld.so"
 
10022
  shlibpath_var=LIBRARY_PATH
 
10023
  ;;
 
10024
 
 
10025
bsdi[45]*)
 
10026
  version_type=linux
 
10027
  need_version=no
 
10028
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10029
  soname_spec='${libname}${release}${shared_ext}$major'
 
10030
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
10031
  shlibpath_var=LD_LIBRARY_PATH
 
10032
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
10033
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
10034
  # the default ld.so.conf also contains /usr/contrib/lib and
 
10035
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
10036
  # libtool to hard-code these into programs
 
10037
  ;;
 
10038
 
 
10039
cygwin* | mingw* | pw32* | cegcc*)
 
10040
  version_type=windows
 
10041
  shrext_cmds=".dll"
 
10042
  need_version=no
 
10043
  need_lib_prefix=no
 
10044
 
 
10045
  case $GCC,$cc_basename in
 
10046
  yes,*)
 
10047
    # gcc
 
10048
    library_names_spec='$libname.dll.a'
 
10049
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10050
    postinstall_cmds='base_file=`basename \${file}`~
 
10051
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
10052
      dldir=$destdir/`dirname \$dlpath`~
 
10053
      test -d \$dldir || mkdir -p \$dldir~
 
10054
      $install_prog $dir/$dlname \$dldir/$dlname~
 
10055
      chmod a+x \$dldir/$dlname~
 
10056
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
10057
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
10058
      fi'
 
10059
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10060
      dlpath=$dir/\$dldll~
 
10061
       $RM \$dlpath'
 
10062
    shlibpath_overrides_runpath=yes
 
10063
 
 
10064
    case $host_os in
 
10065
    cygwin*)
 
10066
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
10067
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10068
 
 
10069
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
 
10070
      ;;
 
10071
    mingw* | cegcc*)
 
10072
      # MinGW DLLs use traditional 'lib' prefix
 
10073
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10074
      ;;
 
10075
    pw32*)
 
10076
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
10077
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10078
      ;;
 
10079
    esac
 
10080
    dynamic_linker='Win32 ld.exe'
 
10081
    ;;
 
10082
 
 
10083
  *,cl*)
 
10084
    # Native MSVC
 
10085
    libname_spec='$name'
 
10086
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10087
    library_names_spec='${libname}.dll.lib'
 
10088
 
 
10089
    case $build_os in
 
10090
    mingw*)
 
10091
      sys_lib_search_path_spec=
 
10092
      lt_save_ifs=$IFS
 
10093
      IFS=';'
 
10094
      for lt_path in $LIB
 
10095
      do
 
10096
        IFS=$lt_save_ifs
 
10097
        # Let DOS variable expansion print the short 8.3 style file name.
 
10098
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
10099
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
10100
      done
 
10101
      IFS=$lt_save_ifs
 
10102
      # Convert to MSYS style.
 
10103
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
10104
      ;;
 
10105
    cygwin*)
 
10106
      # Convert to unix form, then to dos form, then back to unix form
 
10107
      # but this time dos style (no spaces!) so that the unix form looks
 
10108
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
10109
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
10110
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
10111
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
10112
      ;;
 
10113
    *)
 
10114
      sys_lib_search_path_spec="$LIB"
 
10115
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
10116
        # It is most probably a Windows format PATH.
 
10117
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10118
      else
 
10119
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
10120
      fi
 
10121
      # FIXME: find the short name or the path components, as spaces are
 
10122
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
10123
      ;;
 
10124
    esac
 
10125
 
 
10126
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10127
    postinstall_cmds='base_file=`basename \${file}`~
 
10128
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
10129
      dldir=$destdir/`dirname \$dlpath`~
 
10130
      test -d \$dldir || mkdir -p \$dldir~
 
10131
      $install_prog $dir/$dlname \$dldir/$dlname'
 
10132
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10133
      dlpath=$dir/\$dldll~
 
10134
       $RM \$dlpath'
 
10135
    shlibpath_overrides_runpath=yes
 
10136
    dynamic_linker='Win32 link.exe'
 
10137
    ;;
 
10138
 
 
10139
  *)
 
10140
    # Assume MSVC wrapper
 
10141
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
10142
    dynamic_linker='Win32 ld.exe'
 
10143
    ;;
 
10144
  esac
 
10145
  # FIXME: first we should search . and the directory the executable is in
 
10146
  shlibpath_var=PATH
 
10147
  ;;
 
10148
 
 
10149
darwin* | rhapsody*)
 
10150
  dynamic_linker="$host_os dyld"
 
10151
  version_type=darwin
 
10152
  need_lib_prefix=no
 
10153
  need_version=no
 
10154
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10155
  soname_spec='${libname}${release}${major}$shared_ext'
 
10156
  shlibpath_overrides_runpath=yes
 
10157
  shlibpath_var=DYLD_LIBRARY_PATH
 
10158
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
10159
 
 
10160
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
10161
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
10162
  ;;
 
10163
 
 
10164
dgux*)
 
10165
  version_type=linux
 
10166
  need_lib_prefix=no
 
10167
  need_version=no
 
10168
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
10169
  soname_spec='${libname}${release}${shared_ext}$major'
 
10170
  shlibpath_var=LD_LIBRARY_PATH
 
10171
  ;;
 
10172
 
 
10173
freebsd1*)
 
10174
  dynamic_linker=no
 
10175
  ;;
 
10176
 
 
10177
freebsd* | dragonfly*)
 
10178
  # DragonFly does not have aout.  When/if they implement a new
 
10179
  # versioning mechanism, adjust this.
 
10180
  if test -x /usr/bin/objformat; then
 
10181
    objformat=`/usr/bin/objformat`
 
10182
  else
 
10183
    case $host_os in
 
10184
    freebsd[123]*) objformat=aout ;;
 
10185
    *) objformat=elf ;;
 
10186
    esac
 
10187
  fi
 
10188
  version_type=freebsd-$objformat
 
10189
  case $version_type in
 
10190
    freebsd-elf*)
 
10191
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10192
      need_version=no
 
10193
      need_lib_prefix=no
 
10194
      ;;
 
10195
    freebsd-*)
 
10196
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
10197
      need_version=yes
 
10198
      ;;
 
10199
  esac
 
10200
  shlibpath_var=LD_LIBRARY_PATH
 
10201
  case $host_os in
 
10202
  freebsd2*)
 
10203
    shlibpath_overrides_runpath=yes
 
10204
    ;;
 
10205
  freebsd3.[01]* | freebsdelf3.[01]*)
 
10206
    shlibpath_overrides_runpath=yes
 
10207
    hardcode_into_libs=yes
 
10208
    ;;
 
10209
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
10210
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
10211
    shlibpath_overrides_runpath=no
 
10212
    hardcode_into_libs=yes
 
10213
    ;;
 
10214
  *) # from 4.6 on, and DragonFly
 
10215
    shlibpath_overrides_runpath=yes
 
10216
    hardcode_into_libs=yes
 
10217
    ;;
 
10218
  esac
 
10219
  ;;
 
10220
 
 
10221
gnu*)
 
10222
  version_type=linux
 
10223
  need_lib_prefix=no
 
10224
  need_version=no
 
10225
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10226
  soname_spec='${libname}${release}${shared_ext}$major'
 
10227
  shlibpath_var=LD_LIBRARY_PATH
 
10228
  shlibpath_overrides_runpath=no
 
10229
  hardcode_into_libs=yes
 
10230
  ;;
 
10231
 
 
10232
haiku*)
 
10233
  version_type=linux
 
10234
  need_lib_prefix=no
 
10235
  need_version=no
 
10236
  dynamic_linker="$host_os runtime_loader"
 
10237
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10238
  soname_spec='${libname}${release}${shared_ext}$major'
 
10239
  shlibpath_var=LIBRARY_PATH
 
10240
  shlibpath_overrides_runpath=yes
 
10241
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
10242
  hardcode_into_libs=yes
 
10243
  ;;
 
10244
 
 
10245
hpux9* | hpux10* | hpux11*)
 
10246
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
10247
  # link against other versions.
 
10248
  version_type=sunos
 
10249
  need_lib_prefix=no
 
10250
  need_version=no
 
10251
  case $host_cpu in
 
10252
  ia64*)
 
10253
    shrext_cmds='.so'
 
10254
    hardcode_into_libs=yes
 
10255
    dynamic_linker="$host_os dld.so"
 
10256
    shlibpath_var=LD_LIBRARY_PATH
 
10257
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10258
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10259
    soname_spec='${libname}${release}${shared_ext}$major'
 
10260
    if test "X$HPUX_IA64_MODE" = X32; then
 
10261
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
10262
    else
 
10263
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
10264
    fi
 
10265
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10266
    ;;
 
10267
  hppa*64*)
 
10268
    shrext_cmds='.sl'
 
10269
    hardcode_into_libs=yes
 
10270
    dynamic_linker="$host_os dld.sl"
 
10271
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
10272
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10273
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10274
    soname_spec='${libname}${release}${shared_ext}$major'
 
10275
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
10276
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10277
    ;;
 
10278
  *)
 
10279
    shrext_cmds='.sl'
 
10280
    dynamic_linker="$host_os dld.sl"
 
10281
    shlibpath_var=SHLIB_PATH
 
10282
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
10283
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10284
    soname_spec='${libname}${release}${shared_ext}$major'
 
10285
    ;;
 
10286
  esac
 
10287
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
10288
  postinstall_cmds='chmod 555 $lib'
 
10289
  # or fails outright, so override atomically:
 
10290
  install_override_mode=555
 
10291
  ;;
 
10292
 
 
10293
interix[3-9]*)
 
10294
  version_type=linux
 
10295
  need_lib_prefix=no
 
10296
  need_version=no
 
10297
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10298
  soname_spec='${libname}${release}${shared_ext}$major'
 
10299
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
10300
  shlibpath_var=LD_LIBRARY_PATH
 
10301
  shlibpath_overrides_runpath=no
 
10302
  hardcode_into_libs=yes
 
10303
  ;;
 
10304
 
 
10305
irix5* | irix6* | nonstopux*)
 
10306
  case $host_os in
 
10307
    nonstopux*) version_type=nonstopux ;;
 
10308
    *)
 
10309
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
10310
                version_type=linux
 
10311
        else
 
10312
                version_type=irix
 
10313
        fi ;;
 
10314
  esac
 
10315
  need_lib_prefix=no
 
10316
  need_version=no
 
10317
  soname_spec='${libname}${release}${shared_ext}$major'
 
10318
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10319
  case $host_os in
 
10320
  irix5* | nonstopux*)
 
10321
    libsuff= shlibsuff=
 
10322
    ;;
 
10323
  *)
 
10324
    case $LD in # libtool.m4 will add one of these switches to LD
 
10325
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
10326
      libsuff= shlibsuff= libmagic=32-bit;;
 
10327
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
10328
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
10329
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
10330
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
10331
    *) libsuff= shlibsuff= libmagic=never-match;;
 
10332
    esac
 
10333
    ;;
 
10334
  esac
 
10335
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
10336
  shlibpath_overrides_runpath=no
 
10337
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
10338
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
10339
  hardcode_into_libs=yes
 
10340
  ;;
 
10341
 
 
10342
# No shared lib support for Linux oldld, aout, or coff.
 
10343
linux*oldld* | linux*aout* | linux*coff*)
 
10344
  dynamic_linker=no
 
10345
  ;;
 
10346
 
 
10347
# This must be Linux ELF.
 
10348
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
10349
  version_type=linux
 
10350
  need_lib_prefix=no
 
10351
  need_version=no
 
10352
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10353
  soname_spec='${libname}${release}${shared_ext}$major'
 
10354
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
10355
  shlibpath_var=LD_LIBRARY_PATH
 
10356
  shlibpath_overrides_runpath=no
 
10357
 
 
10358
  # Some binutils ld are patched to set DT_RUNPATH
 
10359
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
10360
  $as_echo_n "(cached) " >&6
 
10361
else
 
10362
  lt_cv_shlibpath_overrides_runpath=no
 
10363
    save_LDFLAGS=$LDFLAGS
 
10364
    save_libdir=$libdir
 
10365
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
10366
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
10367
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10368
/* end confdefs.h.  */
 
10369
 
 
10370
int
 
10371
main ()
 
10372
{
 
10373
 
 
10374
  ;
 
10375
  return 0;
 
10376
}
 
10377
_ACEOF
 
10378
if ac_fn_c_try_link "$LINENO"; then :
 
10379
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
10380
  lt_cv_shlibpath_overrides_runpath=yes
 
10381
fi
 
10382
fi
 
10383
rm -f core conftest.err conftest.$ac_objext \
 
10384
    conftest$ac_exeext conftest.$ac_ext
 
10385
    LDFLAGS=$save_LDFLAGS
 
10386
    libdir=$save_libdir
 
10387
 
 
10388
fi
 
10389
 
 
10390
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
10391
 
 
10392
  # This implies no fast_install, which is unacceptable.
 
10393
  # Some rework will be needed to allow for fast_install
 
10394
  # before this can be enabled.
 
10395
  hardcode_into_libs=yes
 
10396
 
 
10397
  # Append ld.so.conf contents to the search path
 
10398
  if test -f /etc/ld.so.conf; then
 
10399
    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' ' '`
 
10400
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
10401
  fi
 
10402
 
 
10403
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
10404
  # powerpc, because MkLinux only supported shared libraries with the
 
10405
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
10406
  # most powerpc-linux boxes support dynamic linking these days and
 
10407
  # people can always --disable-shared, the test was removed, and we
 
10408
  # assume the GNU/Linux dynamic linker is in use.
 
10409
  dynamic_linker='GNU/Linux ld.so'
 
10410
  ;;
 
10411
 
 
10412
netbsdelf*-gnu)
 
10413
  version_type=linux
 
10414
  need_lib_prefix=no
 
10415
  need_version=no
 
10416
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10417
  soname_spec='${libname}${release}${shared_ext}$major'
 
10418
  shlibpath_var=LD_LIBRARY_PATH
 
10419
  shlibpath_overrides_runpath=no
 
10420
  hardcode_into_libs=yes
 
10421
  dynamic_linker='NetBSD ld.elf_so'
 
10422
  ;;
 
10423
 
 
10424
netbsd*)
 
10425
  version_type=sunos
 
10426
  need_lib_prefix=no
 
10427
  need_version=no
 
10428
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10429
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10430
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10431
    dynamic_linker='NetBSD (a.out) ld.so'
 
10432
  else
 
10433
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10434
    soname_spec='${libname}${release}${shared_ext}$major'
 
10435
    dynamic_linker='NetBSD ld.elf_so'
 
10436
  fi
 
10437
  shlibpath_var=LD_LIBRARY_PATH
 
10438
  shlibpath_overrides_runpath=yes
 
10439
  hardcode_into_libs=yes
 
10440
  ;;
 
10441
 
 
10442
newsos6)
 
10443
  version_type=linux
 
10444
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10445
  shlibpath_var=LD_LIBRARY_PATH
 
10446
  shlibpath_overrides_runpath=yes
 
10447
  ;;
 
10448
 
 
10449
*nto* | *qnx*)
 
10450
  version_type=qnx
 
10451
  need_lib_prefix=no
 
10452
  need_version=no
 
10453
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10454
  soname_spec='${libname}${release}${shared_ext}$major'
 
10455
  shlibpath_var=LD_LIBRARY_PATH
 
10456
  shlibpath_overrides_runpath=no
 
10457
  hardcode_into_libs=yes
 
10458
  dynamic_linker='ldqnx.so'
 
10459
  ;;
 
10460
 
 
10461
openbsd*)
 
10462
  version_type=sunos
 
10463
  sys_lib_dlsearch_path_spec="/usr/lib"
 
10464
  need_lib_prefix=no
 
10465
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
10466
  case $host_os in
 
10467
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
10468
    *)                          need_version=no  ;;
 
10469
  esac
 
10470
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10471
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10472
  shlibpath_var=LD_LIBRARY_PATH
 
10473
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10474
    case $host_os in
 
10475
      openbsd2.[89] | openbsd2.[89].*)
 
10476
        shlibpath_overrides_runpath=no
 
10477
        ;;
 
10478
      *)
 
10479
        shlibpath_overrides_runpath=yes
 
10480
        ;;
 
10481
      esac
 
10482
  else
 
10483
    shlibpath_overrides_runpath=yes
 
10484
  fi
 
10485
  ;;
 
10486
 
 
10487
os2*)
 
10488
  libname_spec='$name'
 
10489
  shrext_cmds=".dll"
 
10490
  need_lib_prefix=no
 
10491
  library_names_spec='$libname${shared_ext} $libname.a'
 
10492
  dynamic_linker='OS/2 ld.exe'
 
10493
  shlibpath_var=LIBPATH
 
10494
  ;;
 
10495
 
 
10496
osf3* | osf4* | osf5*)
 
10497
  version_type=osf
 
10498
  need_lib_prefix=no
 
10499
  need_version=no
 
10500
  soname_spec='${libname}${release}${shared_ext}$major'
 
10501
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10502
  shlibpath_var=LD_LIBRARY_PATH
 
10503
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
10504
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
10505
  ;;
 
10506
 
 
10507
rdos*)
 
10508
  dynamic_linker=no
 
10509
  ;;
 
10510
 
 
10511
solaris*)
 
10512
  version_type=linux
 
10513
  need_lib_prefix=no
 
10514
  need_version=no
 
10515
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10516
  soname_spec='${libname}${release}${shared_ext}$major'
 
10517
  shlibpath_var=LD_LIBRARY_PATH
 
10518
  shlibpath_overrides_runpath=yes
 
10519
  hardcode_into_libs=yes
 
10520
  # ldd complains unless libraries are executable
 
10521
  postinstall_cmds='chmod +x $lib'
 
10522
  ;;
 
10523
 
 
10524
sunos4*)
 
10525
  version_type=sunos
 
10526
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10527
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
10528
  shlibpath_var=LD_LIBRARY_PATH
 
10529
  shlibpath_overrides_runpath=yes
 
10530
  if test "$with_gnu_ld" = yes; then
 
10531
    need_lib_prefix=no
 
10532
  fi
 
10533
  need_version=yes
 
10534
  ;;
 
10535
 
 
10536
sysv4 | sysv4.3*)
 
10537
  version_type=linux
 
10538
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10539
  soname_spec='${libname}${release}${shared_ext}$major'
 
10540
  shlibpath_var=LD_LIBRARY_PATH
 
10541
  case $host_vendor in
 
10542
    sni)
 
10543
      shlibpath_overrides_runpath=no
 
10544
      need_lib_prefix=no
 
10545
      runpath_var=LD_RUN_PATH
 
10546
      ;;
 
10547
    siemens)
 
10548
      need_lib_prefix=no
 
10549
      ;;
 
10550
    motorola)
 
10551
      need_lib_prefix=no
 
10552
      need_version=no
 
10553
      shlibpath_overrides_runpath=no
 
10554
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
10555
      ;;
 
10556
  esac
 
10557
  ;;
 
10558
 
 
10559
sysv4*MP*)
 
10560
  if test -d /usr/nec ;then
 
10561
    version_type=linux
 
10562
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
10563
    soname_spec='$libname${shared_ext}.$major'
 
10564
    shlibpath_var=LD_LIBRARY_PATH
 
10565
  fi
 
10566
  ;;
 
10567
 
 
10568
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
10569
  version_type=freebsd-elf
 
10570
  need_lib_prefix=no
 
10571
  need_version=no
 
10572
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10573
  soname_spec='${libname}${release}${shared_ext}$major'
 
10574
  shlibpath_var=LD_LIBRARY_PATH
 
10575
  shlibpath_overrides_runpath=yes
 
10576
  hardcode_into_libs=yes
 
10577
  if test "$with_gnu_ld" = yes; then
 
10578
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
10579
  else
 
10580
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
10581
    case $host_os in
 
10582
      sco3.2v5*)
 
10583
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
10584
        ;;
 
10585
    esac
 
10586
  fi
 
10587
  sys_lib_dlsearch_path_spec='/usr/lib'
 
10588
  ;;
 
10589
 
 
10590
tpf*)
 
10591
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
10592
  version_type=linux
 
10593
  need_lib_prefix=no
 
10594
  need_version=no
 
10595
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10596
  shlibpath_var=LD_LIBRARY_PATH
 
10597
  shlibpath_overrides_runpath=no
 
10598
  hardcode_into_libs=yes
 
10599
  ;;
 
10600
 
 
10601
uts4*)
 
10602
  version_type=linux
 
10603
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10604
  soname_spec='${libname}${release}${shared_ext}$major'
 
10605
  shlibpath_var=LD_LIBRARY_PATH
 
10606
  ;;
 
10607
 
 
10608
*)
 
10609
  dynamic_linker=no
 
10610
  ;;
 
10611
esac
 
10612
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
10613
$as_echo "$dynamic_linker" >&6; }
 
10614
test "$dynamic_linker" = no && can_build_shared=no
 
10615
 
 
10616
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10617
if test "$GCC" = yes; then
 
10618
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10619
fi
 
10620
 
 
10621
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
10622
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
10623
fi
 
10624
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
10625
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
10626
fi
 
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
 
 
10676
 
 
10677
 
 
10678
 
 
10679
 
 
10680
 
 
10681
 
 
10682
 
 
10683
 
 
10684
 
 
10685
 
 
10686
 
 
10687
 
 
10688
 
 
10689
 
 
10690
 
 
10691
 
 
10692
 
 
10693
 
 
10694
 
 
10695
 
 
10696
 
 
10697
 
 
10698
 
 
10699
 
 
10700
 
 
10701
 
 
10702
 
 
10703
 
 
10704
 
 
10705
 
 
10706
 
 
10707
 
 
10708
 
 
10709
 
 
10710
 
 
10711
 
 
10712
 
 
10713
 
 
10714
 
 
10715
 
 
10716
 
 
10717
 
 
10718
 
 
10719
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
10720
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
10721
hardcode_action=
 
10722
if test -n "$hardcode_libdir_flag_spec" ||
 
10723
   test -n "$runpath_var" ||
 
10724
   test "X$hardcode_automatic" = "Xyes" ; then
 
10725
 
 
10726
  # We can hardcode non-existent directories.
 
10727
  if test "$hardcode_direct" != no &&
 
10728
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
10729
     # have to relink, otherwise we might link with an installed library
 
10730
     # when we should be linking with a yet-to-be-installed one
 
10731
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10732
     test "$hardcode_minus_L" != no; then
 
10733
    # Linking always hardcodes the temporary library directory.
 
10734
    hardcode_action=relink
 
10735
  else
 
10736
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
10737
    hardcode_action=immediate
 
10738
  fi
 
10739
else
 
10740
  # We cannot hardcode anything, or else we can only hardcode existing
 
10741
  # directories.
 
10742
  hardcode_action=unsupported
 
10743
fi
 
10744
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
10745
$as_echo "$hardcode_action" >&6; }
 
10746
 
 
10747
if test "$hardcode_action" = relink ||
 
10748
   test "$inherit_rpath" = yes; then
 
10749
  # Fast installation is not supported
 
10750
  enable_fast_install=no
 
10751
elif test "$shlibpath_overrides_runpath" = yes ||
 
10752
     test "$enable_shared" = no; then
 
10753
  # Fast installation is not necessary
 
10754
  enable_fast_install=needless
 
10755
fi
 
10756
 
 
10757
 
 
10758
 
 
10759
 
 
10760
 
 
10761
 
 
10762
  if test "x$enable_dlopen" != xyes; then
 
10763
  enable_dlopen=unknown
 
10764
  enable_dlopen_self=unknown
 
10765
  enable_dlopen_self_static=unknown
 
10766
else
 
10767
  lt_cv_dlopen=no
 
10768
  lt_cv_dlopen_libs=
 
10769
 
 
10770
  case $host_os in
 
10771
  beos*)
 
10772
    lt_cv_dlopen="load_add_on"
 
10773
    lt_cv_dlopen_libs=
 
10774
    lt_cv_dlopen_self=yes
 
10775
    ;;
 
10776
 
 
10777
  mingw* | pw32* | cegcc*)
 
10778
    lt_cv_dlopen="LoadLibrary"
 
10779
    lt_cv_dlopen_libs=
 
10780
    ;;
 
10781
 
 
10782
  cygwin*)
 
10783
    lt_cv_dlopen="dlopen"
 
10784
    lt_cv_dlopen_libs=
 
10785
    ;;
 
10786
 
 
10787
  darwin*)
 
10788
  # if libdl is installed we need to link against it
 
10789
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
10790
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10791
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
10792
  $as_echo_n "(cached) " >&6
 
10793
else
 
10794
  ac_check_lib_save_LIBS=$LIBS
 
10795
LIBS="-ldl  $LIBS"
 
10796
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10797
/* end confdefs.h.  */
 
10798
 
 
10799
/* Override any GCC internal prototype to avoid an error.
 
10800
   Use char because int might match the return type of a GCC
 
10801
   builtin and then its argument prototype would still apply.  */
 
10802
#ifdef __cplusplus
 
10803
extern "C"
 
10804
#endif
 
10805
char dlopen ();
 
10806
int
 
10807
main ()
 
10808
{
 
10809
return dlopen ();
 
10810
  ;
 
10811
  return 0;
 
10812
}
 
10813
_ACEOF
 
10814
if ac_fn_c_try_link "$LINENO"; then :
 
10815
  ac_cv_lib_dl_dlopen=yes
 
10816
else
 
10817
  ac_cv_lib_dl_dlopen=no
 
10818
fi
 
10819
rm -f core conftest.err conftest.$ac_objext \
 
10820
    conftest$ac_exeext conftest.$ac_ext
 
10821
LIBS=$ac_check_lib_save_LIBS
 
10822
fi
 
10823
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
10824
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10825
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
10826
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10827
else
 
10828
 
 
10829
    lt_cv_dlopen="dyld"
 
10830
    lt_cv_dlopen_libs=
 
10831
    lt_cv_dlopen_self=yes
 
10832
 
 
10833
fi
 
10834
 
 
10835
    ;;
 
10836
 
 
10837
  *)
 
10838
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
10839
if test "x$ac_cv_func_shl_load" = xyes; then :
 
10840
  lt_cv_dlopen="shl_load"
 
10841
else
 
10842
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
10843
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
10844
if ${ac_cv_lib_dld_shl_load+:} false; then :
 
10845
  $as_echo_n "(cached) " >&6
 
10846
else
 
10847
  ac_check_lib_save_LIBS=$LIBS
 
10848
LIBS="-ldld  $LIBS"
 
10849
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10850
/* end confdefs.h.  */
 
10851
 
 
10852
/* Override any GCC internal prototype to avoid an error.
 
10853
   Use char because int might match the return type of a GCC
 
10854
   builtin and then its argument prototype would still apply.  */
 
10855
#ifdef __cplusplus
 
10856
extern "C"
 
10857
#endif
 
10858
char shl_load ();
 
10859
int
 
10860
main ()
 
10861
{
 
10862
return shl_load ();
 
10863
  ;
 
10864
  return 0;
 
10865
}
 
10866
_ACEOF
 
10867
if ac_fn_c_try_link "$LINENO"; then :
 
10868
  ac_cv_lib_dld_shl_load=yes
 
10869
else
 
10870
  ac_cv_lib_dld_shl_load=no
 
10871
fi
 
10872
rm -f core conftest.err conftest.$ac_objext \
 
10873
    conftest$ac_exeext conftest.$ac_ext
 
10874
LIBS=$ac_check_lib_save_LIBS
 
10875
fi
 
10876
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
10877
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
10878
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
 
10879
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
10880
else
 
10881
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
10882
if test "x$ac_cv_func_dlopen" = xyes; then :
 
10883
  lt_cv_dlopen="dlopen"
 
10884
else
 
10885
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
10886
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10887
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
10888
  $as_echo_n "(cached) " >&6
 
10889
else
 
10890
  ac_check_lib_save_LIBS=$LIBS
 
10891
LIBS="-ldl  $LIBS"
 
10892
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10893
/* end confdefs.h.  */
 
10894
 
 
10895
/* Override any GCC internal prototype to avoid an error.
 
10896
   Use char because int might match the return type of a GCC
 
10897
   builtin and then its argument prototype would still apply.  */
 
10898
#ifdef __cplusplus
 
10899
extern "C"
 
10900
#endif
 
10901
char dlopen ();
 
10902
int
 
10903
main ()
 
10904
{
 
10905
return dlopen ();
 
10906
  ;
 
10907
  return 0;
 
10908
}
 
10909
_ACEOF
 
10910
if ac_fn_c_try_link "$LINENO"; then :
 
10911
  ac_cv_lib_dl_dlopen=yes
 
10912
else
 
10913
  ac_cv_lib_dl_dlopen=no
 
10914
fi
 
10915
rm -f core conftest.err conftest.$ac_objext \
 
10916
    conftest$ac_exeext conftest.$ac_ext
 
10917
LIBS=$ac_check_lib_save_LIBS
 
10918
fi
 
10919
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
10920
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10921
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
10922
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10923
else
 
10924
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
10925
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
10926
if ${ac_cv_lib_svld_dlopen+:} false; then :
 
10927
  $as_echo_n "(cached) " >&6
 
10928
else
 
10929
  ac_check_lib_save_LIBS=$LIBS
 
10930
LIBS="-lsvld  $LIBS"
 
10931
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10932
/* end confdefs.h.  */
 
10933
 
 
10934
/* Override any GCC internal prototype to avoid an error.
 
10935
   Use char because int might match the return type of a GCC
 
10936
   builtin and then its argument prototype would still apply.  */
 
10937
#ifdef __cplusplus
 
10938
extern "C"
 
10939
#endif
 
10940
char dlopen ();
 
10941
int
 
10942
main ()
 
10943
{
 
10944
return dlopen ();
 
10945
  ;
 
10946
  return 0;
 
10947
}
 
10948
_ACEOF
 
10949
if ac_fn_c_try_link "$LINENO"; then :
 
10950
  ac_cv_lib_svld_dlopen=yes
 
10951
else
 
10952
  ac_cv_lib_svld_dlopen=no
 
10953
fi
 
10954
rm -f core conftest.err conftest.$ac_objext \
 
10955
    conftest$ac_exeext conftest.$ac_ext
 
10956
LIBS=$ac_check_lib_save_LIBS
 
10957
fi
 
10958
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
10959
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
10960
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
 
10961
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
10962
else
 
10963
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
10964
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
10965
if ${ac_cv_lib_dld_dld_link+:} false; then :
 
10966
  $as_echo_n "(cached) " >&6
 
10967
else
 
10968
  ac_check_lib_save_LIBS=$LIBS
 
10969
LIBS="-ldld  $LIBS"
 
10970
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10971
/* end confdefs.h.  */
 
10972
 
 
10973
/* Override any GCC internal prototype to avoid an error.
 
10974
   Use char because int might match the return type of a GCC
 
10975
   builtin and then its argument prototype would still apply.  */
 
10976
#ifdef __cplusplus
 
10977
extern "C"
 
10978
#endif
 
10979
char dld_link ();
 
10980
int
 
10981
main ()
 
10982
{
 
10983
return dld_link ();
 
10984
  ;
 
10985
  return 0;
 
10986
}
 
10987
_ACEOF
 
10988
if ac_fn_c_try_link "$LINENO"; then :
 
10989
  ac_cv_lib_dld_dld_link=yes
 
10990
else
 
10991
  ac_cv_lib_dld_dld_link=no
 
10992
fi
 
10993
rm -f core conftest.err conftest.$ac_objext \
 
10994
    conftest$ac_exeext conftest.$ac_ext
 
10995
LIBS=$ac_check_lib_save_LIBS
 
10996
fi
 
10997
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
10998
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
10999
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
 
11000
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
11001
fi
 
11002
 
 
11003
 
 
11004
fi
 
11005
 
 
11006
 
 
11007
fi
 
11008
 
 
11009
 
 
11010
fi
 
11011
 
 
11012
 
 
11013
fi
 
11014
 
 
11015
 
 
11016
fi
 
11017
 
 
11018
    ;;
 
11019
  esac
 
11020
 
 
11021
  if test "x$lt_cv_dlopen" != xno; then
 
11022
    enable_dlopen=yes
 
11023
  else
 
11024
    enable_dlopen=no
 
11025
  fi
 
11026
 
 
11027
  case $lt_cv_dlopen in
 
11028
  dlopen)
 
11029
    save_CPPFLAGS="$CPPFLAGS"
 
11030
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
11031
 
 
11032
    save_LDFLAGS="$LDFLAGS"
 
11033
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
11034
 
 
11035
    save_LIBS="$LIBS"
 
11036
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
11037
 
 
11038
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
11039
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
11040
if ${lt_cv_dlopen_self+:} false; then :
 
11041
  $as_echo_n "(cached) " >&6
 
11042
else
 
11043
          if test "$cross_compiling" = yes; then :
 
11044
  lt_cv_dlopen_self=cross
 
11045
else
 
11046
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11047
  lt_status=$lt_dlunknown
 
11048
  cat > conftest.$ac_ext <<_LT_EOF
 
11049
#line $LINENO "configure"
 
11050
#include "confdefs.h"
 
11051
 
 
11052
#if HAVE_DLFCN_H
 
11053
#include <dlfcn.h>
 
11054
#endif
 
11055
 
 
11056
#include <stdio.h>
 
11057
 
 
11058
#ifdef RTLD_GLOBAL
 
11059
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11060
#else
 
11061
#  ifdef DL_GLOBAL
 
11062
#    define LT_DLGLOBAL         DL_GLOBAL
 
11063
#  else
 
11064
#    define LT_DLGLOBAL         0
 
11065
#  endif
 
11066
#endif
 
11067
 
 
11068
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11069
   find out it does not work in some platform. */
 
11070
#ifndef LT_DLLAZY_OR_NOW
 
11071
#  ifdef RTLD_LAZY
 
11072
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11073
#  else
 
11074
#    ifdef DL_LAZY
 
11075
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11076
#    else
 
11077
#      ifdef RTLD_NOW
 
11078
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11079
#      else
 
11080
#        ifdef DL_NOW
 
11081
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11082
#        else
 
11083
#          define LT_DLLAZY_OR_NOW      0
 
11084
#        endif
 
11085
#      endif
 
11086
#    endif
 
11087
#  endif
 
11088
#endif
 
11089
 
 
11090
/* When -fvisbility=hidden is used, assume the code has been annotated
 
11091
   correspondingly for the symbols needed.  */
 
11092
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
11093
int fnord () __attribute__((visibility("default")));
 
11094
#endif
 
11095
 
 
11096
int fnord () { return 42; }
 
11097
int main ()
 
11098
{
 
11099
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11100
  int status = $lt_dlunknown;
 
11101
 
 
11102
  if (self)
 
11103
    {
 
11104
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11105
      else
 
11106
        {
 
11107
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
11108
          else puts (dlerror ());
 
11109
        }
 
11110
      /* dlclose (self); */
 
11111
    }
 
11112
  else
 
11113
    puts (dlerror ());
 
11114
 
 
11115
  return status;
 
11116
}
 
11117
_LT_EOF
 
11118
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11119
  (eval $ac_link) 2>&5
 
11120
  ac_status=$?
 
11121
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11122
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11123
    (./conftest; exit; ) >&5 2>/dev/null
 
11124
    lt_status=$?
 
11125
    case x$lt_status in
 
11126
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
11127
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
11128
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
11129
    esac
 
11130
  else :
 
11131
    # compilation failed
 
11132
    lt_cv_dlopen_self=no
 
11133
  fi
 
11134
fi
 
11135
rm -fr conftest*
 
11136
 
 
11137
 
 
11138
fi
 
11139
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
11140
$as_echo "$lt_cv_dlopen_self" >&6; }
 
11141
 
 
11142
    if test "x$lt_cv_dlopen_self" = xyes; then
 
11143
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
11144
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
11145
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
11146
if ${lt_cv_dlopen_self_static+:} false; then :
 
11147
  $as_echo_n "(cached) " >&6
 
11148
else
 
11149
          if test "$cross_compiling" = yes; then :
 
11150
  lt_cv_dlopen_self_static=cross
 
11151
else
 
11152
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11153
  lt_status=$lt_dlunknown
 
11154
  cat > conftest.$ac_ext <<_LT_EOF
 
11155
#line $LINENO "configure"
 
11156
#include "confdefs.h"
 
11157
 
 
11158
#if HAVE_DLFCN_H
 
11159
#include <dlfcn.h>
 
11160
#endif
 
11161
 
 
11162
#include <stdio.h>
 
11163
 
 
11164
#ifdef RTLD_GLOBAL
 
11165
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11166
#else
 
11167
#  ifdef DL_GLOBAL
 
11168
#    define LT_DLGLOBAL         DL_GLOBAL
 
11169
#  else
 
11170
#    define LT_DLGLOBAL         0
 
11171
#  endif
 
11172
#endif
 
11173
 
 
11174
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11175
   find out it does not work in some platform. */
 
11176
#ifndef LT_DLLAZY_OR_NOW
 
11177
#  ifdef RTLD_LAZY
 
11178
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11179
#  else
 
11180
#    ifdef DL_LAZY
 
11181
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11182
#    else
 
11183
#      ifdef RTLD_NOW
 
11184
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11185
#      else
 
11186
#        ifdef DL_NOW
 
11187
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11188
#        else
 
11189
#          define LT_DLLAZY_OR_NOW      0
 
11190
#        endif
 
11191
#      endif
 
11192
#    endif
 
11193
#  endif
 
11194
#endif
 
11195
 
 
11196
/* When -fvisbility=hidden is used, assume the code has been annotated
 
11197
   correspondingly for the symbols needed.  */
 
11198
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
11199
int fnord () __attribute__((visibility("default")));
 
11200
#endif
 
11201
 
 
11202
int fnord () { return 42; }
 
11203
int main ()
 
11204
{
 
11205
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11206
  int status = $lt_dlunknown;
 
11207
 
 
11208
  if (self)
 
11209
    {
 
11210
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11211
      else
 
11212
        {
 
11213
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
11214
          else puts (dlerror ());
 
11215
        }
 
11216
      /* dlclose (self); */
 
11217
    }
 
11218
  else
 
11219
    puts (dlerror ());
 
11220
 
 
11221
  return status;
 
11222
}
 
11223
_LT_EOF
 
11224
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11225
  (eval $ac_link) 2>&5
 
11226
  ac_status=$?
 
11227
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11228
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11229
    (./conftest; exit; ) >&5 2>/dev/null
 
11230
    lt_status=$?
 
11231
    case x$lt_status in
 
11232
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
11233
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
11234
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
11235
    esac
 
11236
  else :
 
11237
    # compilation failed
 
11238
    lt_cv_dlopen_self_static=no
 
11239
  fi
 
11240
fi
 
11241
rm -fr conftest*
 
11242
 
 
11243
 
 
11244
fi
 
11245
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
11246
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
11247
    fi
 
11248
 
 
11249
    CPPFLAGS="$save_CPPFLAGS"
 
11250
    LDFLAGS="$save_LDFLAGS"
 
11251
    LIBS="$save_LIBS"
 
11252
    ;;
 
11253
  esac
 
11254
 
 
11255
  case $lt_cv_dlopen_self in
 
11256
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
11257
  *) enable_dlopen_self=unknown ;;
 
11258
  esac
 
11259
 
 
11260
  case $lt_cv_dlopen_self_static in
 
11261
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
11262
  *) enable_dlopen_self_static=unknown ;;
 
11263
  esac
 
11264
fi
 
11265
 
 
11266
 
 
11267
 
 
11268
 
 
11269
 
 
11270
 
 
11271
 
 
11272
 
 
11273
 
 
11274
 
 
11275
 
 
11276
 
 
11277
 
 
11278
 
 
11279
 
 
11280
 
 
11281
 
 
11282
striplib=
 
11283
old_striplib=
 
11284
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
11285
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
11286
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
11287
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11288
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11289
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11290
$as_echo "yes" >&6; }
 
11291
else
 
11292
# FIXME - insert some real tests, host_os isn't really good enough
 
11293
  case $host_os in
 
11294
  darwin*)
 
11295
    if test -n "$STRIP" ; then
 
11296
      striplib="$STRIP -x"
 
11297
      old_striplib="$STRIP -S"
 
11298
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11299
$as_echo "yes" >&6; }
 
11300
    else
 
11301
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11302
$as_echo "no" >&6; }
 
11303
    fi
 
11304
    ;;
 
11305
  *)
 
11306
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11307
$as_echo "no" >&6; }
 
11308
    ;;
 
11309
  esac
 
11310
fi
 
11311
 
 
11312
 
 
11313
 
 
11314
 
 
11315
 
 
11316
 
 
11317
 
 
11318
 
 
11319
 
 
11320
 
 
11321
 
 
11322
 
 
11323
  # Report which library types will actually be built
 
11324
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
11325
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
11326
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
11327
$as_echo "$can_build_shared" >&6; }
 
11328
 
 
11329
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
11330
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
11331
  test "$can_build_shared" = "no" && enable_shared=no
 
11332
 
 
11333
  # On AIX, shared libraries and static libraries use the same namespace, and
 
11334
  # are all built from PIC.
 
11335
  case $host_os in
 
11336
  aix3*)
 
11337
    test "$enable_shared" = yes && enable_static=no
 
11338
    if test -n "$RANLIB"; then
 
11339
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11340
      postinstall_cmds='$RANLIB $lib'
 
11341
    fi
 
11342
    ;;
 
11343
 
 
11344
  aix[4-9]*)
 
11345
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11346
      test "$enable_shared" = yes && enable_static=no
 
11347
    fi
 
11348
    ;;
 
11349
  esac
 
11350
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
11351
$as_echo "$enable_shared" >&6; }
 
11352
 
 
11353
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
11354
$as_echo_n "checking whether to build static libraries... " >&6; }
 
11355
  # Make sure either enable_shared or enable_static is yes.
 
11356
  test "$enable_shared" = yes || enable_static=yes
 
11357
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
11358
$as_echo "$enable_static" >&6; }
 
11359
 
 
11360
 
 
11361
 
 
11362
 
 
11363
fi
 
11364
ac_ext=c
 
11365
ac_cpp='$CPP $CPPFLAGS'
 
11366
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11367
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11368
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11369
 
 
11370
CC="$lt_save_CC"
 
11371
 
 
11372
 
 
11373
 
 
11374
 
 
11375
 
 
11376
 
 
11377
 
 
11378
 
 
11379
 
 
11380
 
 
11381
 
 
11382
 
 
11383
 
 
11384
        ac_config_commands="$ac_config_commands libtool"
 
11385
 
 
11386
 
 
11387
 
 
11388
 
 
11389
# Only expand once:
 
11390
 
 
11391
 
 
11392
 
 
11393
 
 
11394
###########################
 
11395
# Dependencies
 
11396
###########################
 
11397
 
 
11398
GTK_REQUIRED_VERSION=3.0
 
11399
INDICATOR_REQUIRED_VERSION=0.3.0
 
11400
UPOWER_REQUIRED_VERSION=0.9.5
 
11401
 
 
11402
 
 
11403
 
 
11404
 
 
11405
 
 
11406
 
 
11407
 
 
11408
 
 
11409
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
11410
        if test -n "$ac_tool_prefix"; then
 
11411
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
11412
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
11413
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11414
$as_echo_n "checking for $ac_word... " >&6; }
 
11415
if ${ac_cv_path_PKG_CONFIG+:} false; then :
 
11416
  $as_echo_n "(cached) " >&6
 
11417
else
 
11418
  case $PKG_CONFIG in
 
11419
  [\\/]* | ?:[\\/]*)
 
11420
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
11421
  ;;
 
11422
  *)
 
11423
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11424
for as_dir in $PATH
 
11425
do
 
11426
  IFS=$as_save_IFS
 
11427
  test -z "$as_dir" && as_dir=.
 
11428
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11429
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11430
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
11431
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11432
    break 2
 
11433
  fi
 
11434
done
 
11435
  done
 
11436
IFS=$as_save_IFS
 
11437
 
 
11438
  ;;
 
11439
esac
 
11440
fi
 
11441
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
11442
if test -n "$PKG_CONFIG"; then
 
11443
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 
11444
$as_echo "$PKG_CONFIG" >&6; }
 
11445
else
 
11446
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11447
$as_echo "no" >&6; }
 
11448
fi
 
11449
 
 
11450
 
 
11451
fi
 
11452
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
11453
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
11454
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
11455
set dummy pkg-config; ac_word=$2
 
11456
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11457
$as_echo_n "checking for $ac_word... " >&6; }
 
11458
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
 
11459
  $as_echo_n "(cached) " >&6
 
11460
else
 
11461
  case $ac_pt_PKG_CONFIG in
 
11462
  [\\/]* | ?:[\\/]*)
 
11463
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
11464
  ;;
 
11465
  *)
 
11466
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11467
for as_dir in $PATH
 
11468
do
 
11469
  IFS=$as_save_IFS
 
11470
  test -z "$as_dir" && as_dir=.
 
11471
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11472
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11473
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
11474
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11475
    break 2
 
11476
  fi
 
11477
done
 
11478
  done
 
11479
IFS=$as_save_IFS
 
11480
 
 
11481
  ;;
 
11482
esac
 
11483
fi
 
11484
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
11485
if test -n "$ac_pt_PKG_CONFIG"; then
 
11486
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
 
11487
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
 
11488
else
 
11489
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11490
$as_echo "no" >&6; }
 
11491
fi
 
11492
 
 
11493
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
11494
    PKG_CONFIG=""
 
11495
  else
 
11496
    case $cross_compiling:$ac_tool_warned in
 
11497
yes:)
 
11498
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
11499
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
11500
ac_tool_warned=yes ;;
 
11501
esac
 
11502
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
11503
  fi
 
11504
else
 
11505
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
11506
fi
 
11507
 
 
11508
fi
 
11509
if test -n "$PKG_CONFIG"; then
 
11510
        _pkg_min_version=0.9.0
 
11511
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
 
11512
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
 
11513
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
11514
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11515
$as_echo "yes" >&6; }
 
11516
        else
 
11517
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11518
$as_echo "no" >&6; }
 
11519
                PKG_CONFIG=""
 
11520
        fi
 
11521
fi
 
11522
 
 
11523
pkg_failed=no
 
11524
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPOWER" >&5
 
11525
$as_echo_n "checking for UPOWER... " >&6; }
 
11526
 
 
11527
if test -n "$UPOWER_CFLAGS"; then
 
11528
    pkg_cv_UPOWER_CFLAGS="$UPOWER_CFLAGS"
 
11529
 elif test -n "$PKG_CONFIG"; then
 
11530
    if test -n "$PKG_CONFIG" && \
 
11531
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"upower-glib >= UPOWER_REQUIRED_VERSION\""; } >&5
 
11532
  ($PKG_CONFIG --exists --print-errors "upower-glib >= UPOWER_REQUIRED_VERSION") 2>&5
 
11533
  ac_status=$?
 
11534
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11535
  test $ac_status = 0; }; then
 
11536
  pkg_cv_UPOWER_CFLAGS=`$PKG_CONFIG --cflags "upower-glib >= UPOWER_REQUIRED_VERSION" 2>/dev/null`
 
11537
                      test "x$?" != "x0" && pkg_failed=yes
 
11538
else
 
11539
  pkg_failed=yes
 
11540
fi
 
11541
 else
 
11542
    pkg_failed=untried
 
11543
fi
 
11544
if test -n "$UPOWER_LIBS"; then
 
11545
    pkg_cv_UPOWER_LIBS="$UPOWER_LIBS"
 
11546
 elif test -n "$PKG_CONFIG"; then
 
11547
    if test -n "$PKG_CONFIG" && \
 
11548
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"upower-glib >= UPOWER_REQUIRED_VERSION\""; } >&5
 
11549
  ($PKG_CONFIG --exists --print-errors "upower-glib >= UPOWER_REQUIRED_VERSION") 2>&5
 
11550
  ac_status=$?
 
11551
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11552
  test $ac_status = 0; }; then
 
11553
  pkg_cv_UPOWER_LIBS=`$PKG_CONFIG --libs "upower-glib >= UPOWER_REQUIRED_VERSION" 2>/dev/null`
 
11554
                      test "x$?" != "x0" && pkg_failed=yes
 
11555
else
 
11556
  pkg_failed=yes
 
11557
fi
 
11558
 else
 
11559
    pkg_failed=untried
 
11560
fi
 
11561
 
 
11562
 
 
11563
 
 
11564
if test $pkg_failed = yes; then
 
11565
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11566
$as_echo "no" >&6; }
 
11567
 
 
11568
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
11569
        _pkg_short_errors_supported=yes
 
11570
else
 
11571
        _pkg_short_errors_supported=no
 
11572
fi
 
11573
        if test $_pkg_short_errors_supported = yes; then
 
11574
                UPOWER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "upower-glib >= UPOWER_REQUIRED_VERSION" 2>&1`
 
11575
        else
 
11576
                UPOWER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "upower-glib >= UPOWER_REQUIRED_VERSION" 2>&1`
 
11577
        fi
 
11578
        # Put the nasty error message in config.log where it belongs
 
11579
        echo "$UPOWER_PKG_ERRORS" >&5
 
11580
 
 
11581
        as_fn_error $? "Package requirements (upower-glib >= UPOWER_REQUIRED_VERSION) were not met:
 
11582
 
 
11583
$UPOWER_PKG_ERRORS
 
11584
 
 
11585
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
11586
installed software in a non-standard prefix.
 
11587
 
 
11588
Alternatively, you may set the environment variables UPOWER_CFLAGS
 
11589
and UPOWER_LIBS to avoid the need to call pkg-config.
 
11590
See the pkg-config man page for more details." "$LINENO" 5
 
11591
elif test $pkg_failed = untried; then
 
11592
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11593
$as_echo "no" >&6; }
 
11594
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
11595
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
11596
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
11597
is in your PATH or set the PKG_CONFIG environment variable to the full
 
11598
path to pkg-config.
 
11599
 
 
11600
Alternatively, you may set the environment variables UPOWER_CFLAGS
 
11601
and UPOWER_LIBS to avoid the need to call pkg-config.
 
11602
See the pkg-config man page for more details.
 
11603
 
 
11604
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
11605
See \`config.log' for more details" "$LINENO" 5; }
 
11606
else
 
11607
        UPOWER_CFLAGS=$pkg_cv_UPOWER_CFLAGS
 
11608
        UPOWER_LIBS=$pkg_cv_UPOWER_LIBS
 
11609
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11610
$as_echo "yes" >&6; }
 
11611
 
 
11612
fi
 
11613
 
 
11614
pkg_failed=no
 
11615
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for INDICATOR" >&5
 
11616
$as_echo_n "checking for INDICATOR... " >&6; }
 
11617
 
 
11618
if test -n "$INDICATOR_CFLAGS"; then
 
11619
    pkg_cv_INDICATOR_CFLAGS="$INDICATOR_CFLAGS"
 
11620
 elif test -n "$PKG_CONFIG"; then
 
11621
    if test -n "$PKG_CONFIG" && \
 
11622
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
 
11623
        gtk+-3.0 >= \$GTK_REQUIRED_VERSION
 
11624
        indicator3 >= \$INDICATOR_REQUIRED_VERSION
 
11625
\""; } >&5
 
11626
  ($PKG_CONFIG --exists --print-errors "
 
11627
        gtk+-3.0 >= $GTK_REQUIRED_VERSION
 
11628
        indicator3 >= $INDICATOR_REQUIRED_VERSION
 
11629
") 2>&5
 
11630
  ac_status=$?
 
11631
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11632
  test $ac_status = 0; }; then
 
11633
  pkg_cv_INDICATOR_CFLAGS=`$PKG_CONFIG --cflags "
 
11634
        gtk+-3.0 >= $GTK_REQUIRED_VERSION
 
11635
        indicator3 >= $INDICATOR_REQUIRED_VERSION
 
11636
" 2>/dev/null`
 
11637
                      test "x$?" != "x0" && pkg_failed=yes
 
11638
else
 
11639
  pkg_failed=yes
 
11640
fi
 
11641
 else
 
11642
    pkg_failed=untried
 
11643
fi
 
11644
if test -n "$INDICATOR_LIBS"; then
 
11645
    pkg_cv_INDICATOR_LIBS="$INDICATOR_LIBS"
 
11646
 elif test -n "$PKG_CONFIG"; then
 
11647
    if test -n "$PKG_CONFIG" && \
 
11648
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
 
11649
        gtk+-3.0 >= \$GTK_REQUIRED_VERSION
 
11650
        indicator3 >= \$INDICATOR_REQUIRED_VERSION
 
11651
\""; } >&5
 
11652
  ($PKG_CONFIG --exists --print-errors "
 
11653
        gtk+-3.0 >= $GTK_REQUIRED_VERSION
 
11654
        indicator3 >= $INDICATOR_REQUIRED_VERSION
 
11655
") 2>&5
 
11656
  ac_status=$?
 
11657
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11658
  test $ac_status = 0; }; then
 
11659
  pkg_cv_INDICATOR_LIBS=`$PKG_CONFIG --libs "
 
11660
        gtk+-3.0 >= $GTK_REQUIRED_VERSION
 
11661
        indicator3 >= $INDICATOR_REQUIRED_VERSION
 
11662
" 2>/dev/null`
 
11663
                      test "x$?" != "x0" && pkg_failed=yes
 
11664
else
 
11665
  pkg_failed=yes
 
11666
fi
 
11667
 else
 
11668
    pkg_failed=untried
 
11669
fi
 
11670
 
 
11671
 
 
11672
 
 
11673
if test $pkg_failed = yes; then
 
11674
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11675
$as_echo "no" >&6; }
 
11676
 
 
11677
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
11678
        _pkg_short_errors_supported=yes
 
11679
else
 
11680
        _pkg_short_errors_supported=no
 
11681
fi
 
11682
        if test $_pkg_short_errors_supported = yes; then
 
11683
                INDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
 
11684
        gtk+-3.0 >= $GTK_REQUIRED_VERSION
 
11685
        indicator3 >= $INDICATOR_REQUIRED_VERSION
 
11686
" 2>&1`
 
11687
        else
 
11688
                INDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
 
11689
        gtk+-3.0 >= $GTK_REQUIRED_VERSION
 
11690
        indicator3 >= $INDICATOR_REQUIRED_VERSION
 
11691
" 2>&1`
 
11692
        fi
 
11693
        # Put the nasty error message in config.log where it belongs
 
11694
        echo "$INDICATOR_PKG_ERRORS" >&5
 
11695
 
 
11696
        as_fn_error $? "Package requirements (
 
11697
        gtk+-3.0 >= $GTK_REQUIRED_VERSION
 
11698
        indicator3 >= $INDICATOR_REQUIRED_VERSION
 
11699
) were not met:
 
11700
 
 
11701
$INDICATOR_PKG_ERRORS
 
11702
 
 
11703
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
11704
installed software in a non-standard prefix.
 
11705
 
 
11706
Alternatively, you may set the environment variables INDICATOR_CFLAGS
 
11707
and INDICATOR_LIBS to avoid the need to call pkg-config.
 
11708
See the pkg-config man page for more details." "$LINENO" 5
 
11709
elif test $pkg_failed = untried; then
 
11710
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11711
$as_echo "no" >&6; }
 
11712
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
11713
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
11714
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
11715
is in your PATH or set the PKG_CONFIG environment variable to the full
 
11716
path to pkg-config.
 
11717
 
 
11718
Alternatively, you may set the environment variables INDICATOR_CFLAGS
 
11719
and INDICATOR_LIBS to avoid the need to call pkg-config.
 
11720
See the pkg-config man page for more details.
 
11721
 
 
11722
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
11723
See \`config.log' for more details" "$LINENO" 5; }
 
11724
else
 
11725
        INDICATOR_CFLAGS=$pkg_cv_INDICATOR_CFLAGS
 
11726
        INDICATOR_LIBS=$pkg_cv_INDICATOR_LIBS
 
11727
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11728
$as_echo "yes" >&6; }
 
11729
 
 
11730
fi
 
11731
 
 
11732
###########################
 
11733
# Check to see if we're local
 
11734
###########################
 
11735
 
 
11736
with_localinstall="no"
 
11737
# Check whether --enable-localinstall was given.
 
11738
if test "${enable_localinstall+set}" = set; then :
 
11739
  enableval=$enable_localinstall; with_localinstall=$enableval
 
11740
else
 
11741
  with_localinstall=no
 
11742
fi
 
11743
 
 
11744
 
 
11745
###########################
 
11746
# Indicator Info
 
11747
###########################
 
11748
 
 
11749
if test "x$with_localinstall" = "xyes"; then
 
11750
        INDICATORDIR="${libdir}/indicators/3/"
 
11751
        INDICATORICONSDIR="${datadir}/indicator-applet/icons/"
 
11752
elif test "x$with_gtk" = x2; then
 
11753
        INDICATORDIR=`$PKG_CONFIG --variable=indicatordir indicator`
 
11754
        INDICATORICONSDIR=`$PKG_CONFIG --variable=iconsdir indicator`
 
11755
else
 
11756
        INDICATORDIR=`$PKG_CONFIG --variable=indicatordir indicator3`
 
11757
        INDICATORICONSDIR=`$PKG_CONFIG --variable=iconsdir indicator3`
 
11758
fi
 
11759
 
 
11760
 
 
11761
 
 
11762
###########################
 
11763
# DBus Service Info
 
11764
###########################
 
11765
 
 
11766
if test "x$with_localinstall" = "xyes"; then
 
11767
        DBUSSERVICEDIR="${datadir}/dbus-1/services/"
 
11768
else
 
11769
        DBUSSERVICEDIR=`$PKG_CONFIG --variable=session_bus_services_dir dbus-1`
 
11770
fi
 
11771
 
 
11772
 
 
11773
##############################
 
11774
# Custom Junk
 
11775
##############################
 
11776
 
 
11777
 
 
11778
 
 
11779
###########################
 
11780
# Internationalization
 
11781
###########################
 
11782
 
 
11783
 
 
11784
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
 
11785
$as_echo_n "checking whether NLS is requested... " >&6; }
 
11786
    # Check whether --enable-nls was given.
 
11787
if test "${enable_nls+set}" = set; then :
 
11788
  enableval=$enable_nls; USE_NLS=$enableval
 
11789
else
 
11790
  USE_NLS=yes
 
11791
fi
 
11792
 
 
11793
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
 
11794
$as_echo "$USE_NLS" >&6; }
 
11795
 
 
11796
 
 
11797
 
 
11798
 
 
11799
case "$am__api_version" in
 
11800
    1.01234)
 
11801
        as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
 
11802
    ;;
 
11803
    *)
 
11804
    ;;
 
11805
esac
 
11806
 
 
11807
if test -n "0.41.0"; then
 
11808
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.41.0" >&5
 
11809
$as_echo_n "checking for intltool >= 0.41.0... " >&6; }
 
11810
 
 
11811
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.41.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
11812
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
 
11813
    INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
11814
 
 
11815
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
 
11816
$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
 
11817
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
 
11818
        as_fn_error $? "Your intltool is too old.  You need intltool 0.41.0 or later." "$LINENO" 5
 
11819
fi
 
11820
 
 
11821
# Extract the first word of "intltool-update", so it can be a program name with args.
 
11822
set dummy intltool-update; ac_word=$2
 
11823
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11824
$as_echo_n "checking for $ac_word... " >&6; }
 
11825
if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
 
11826
  $as_echo_n "(cached) " >&6
 
11827
else
 
11828
  case $INTLTOOL_UPDATE in
 
11829
  [\\/]* | ?:[\\/]*)
 
11830
  ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
 
11831
  ;;
 
11832
  *)
 
11833
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11834
for as_dir in $PATH
 
11835
do
 
11836
  IFS=$as_save_IFS
 
11837
  test -z "$as_dir" && as_dir=.
 
11838
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11839
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11840
    ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
 
11841
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11842
    break 2
 
11843
  fi
 
11844
done
 
11845
  done
 
11846
IFS=$as_save_IFS
 
11847
 
 
11848
  ;;
 
11849
esac
 
11850
fi
 
11851
INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
 
11852
if test -n "$INTLTOOL_UPDATE"; then
 
11853
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
 
11854
$as_echo "$INTLTOOL_UPDATE" >&6; }
 
11855
else
 
11856
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11857
$as_echo "no" >&6; }
 
11858
fi
 
11859
 
 
11860
 
 
11861
# Extract the first word of "intltool-merge", so it can be a program name with args.
 
11862
set dummy intltool-merge; ac_word=$2
 
11863
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11864
$as_echo_n "checking for $ac_word... " >&6; }
 
11865
if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
 
11866
  $as_echo_n "(cached) " >&6
 
11867
else
 
11868
  case $INTLTOOL_MERGE in
 
11869
  [\\/]* | ?:[\\/]*)
 
11870
  ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
 
11871
  ;;
 
11872
  *)
 
11873
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11874
for as_dir in $PATH
 
11875
do
 
11876
  IFS=$as_save_IFS
 
11877
  test -z "$as_dir" && as_dir=.
 
11878
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11879
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11880
    ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
 
11881
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11882
    break 2
 
11883
  fi
 
11884
done
 
11885
  done
 
11886
IFS=$as_save_IFS
 
11887
 
 
11888
  ;;
 
11889
esac
 
11890
fi
 
11891
INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
 
11892
if test -n "$INTLTOOL_MERGE"; then
 
11893
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
 
11894
$as_echo "$INTLTOOL_MERGE" >&6; }
 
11895
else
 
11896
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11897
$as_echo "no" >&6; }
 
11898
fi
 
11899
 
 
11900
 
 
11901
# Extract the first word of "intltool-extract", so it can be a program name with args.
 
11902
set dummy intltool-extract; ac_word=$2
 
11903
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11904
$as_echo_n "checking for $ac_word... " >&6; }
 
11905
if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
 
11906
  $as_echo_n "(cached) " >&6
 
11907
else
 
11908
  case $INTLTOOL_EXTRACT in
 
11909
  [\\/]* | ?:[\\/]*)
 
11910
  ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
 
11911
  ;;
 
11912
  *)
 
11913
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11914
for as_dir in $PATH
 
11915
do
 
11916
  IFS=$as_save_IFS
 
11917
  test -z "$as_dir" && as_dir=.
 
11918
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11919
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11920
    ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
 
11921
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11922
    break 2
 
11923
  fi
 
11924
done
 
11925
  done
 
11926
IFS=$as_save_IFS
 
11927
 
 
11928
  ;;
 
11929
esac
 
11930
fi
 
11931
INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
 
11932
if test -n "$INTLTOOL_EXTRACT"; then
 
11933
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
 
11934
$as_echo "$INTLTOOL_EXTRACT" >&6; }
 
11935
else
 
11936
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11937
$as_echo "no" >&6; }
 
11938
fi
 
11939
 
 
11940
 
 
11941
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
 
11942
    as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
 
11943
fi
 
11944
 
 
11945
  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 $< $@'
 
11946
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 $< $@'
 
11947
     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 $< $@'
 
11948
     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 $< $@'
 
11949
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
 
11950
     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 $< $@'
 
11951
   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 $< $@'
 
11952
    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 $< $@'
 
11953
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 $< $@'
 
11954
       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 $< $@'
 
11955
      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 $< $@'
 
11956
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
 
11957
      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 $< $@'
 
11958
      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 $< $@'
 
11959
    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 $< $@'
 
11960
  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 $< $@'
 
11961
    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 $< $@'
 
11962
    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 $< $@'
 
11963
   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 $< $@'
 
11964
 
 
11965
 
 
11966
 
 
11967
 
 
11968
 
 
11969
 
 
11970
 
 
11971
 
 
11972
 
 
11973
 
 
11974
 
 
11975
 
 
11976
 
 
11977
 
 
11978
 
 
11979
 
 
11980
 
 
11981
 
 
11982
 
 
11983
 
 
11984
 
 
11985
 
 
11986
 
 
11987
 
 
11988
 
 
11989
 
 
11990
 
 
11991
 
 
11992
 
 
11993
 
 
11994
 
 
11995
 
 
11996
 
 
11997
 
 
11998
 
 
11999
 
 
12000
 
 
12001
 
 
12002
 
 
12003
 
 
12004
 
 
12005
 
 
12006
 
 
12007
 
 
12008
 
 
12009
 
 
12010
 
 
12011
 
 
12012
 
 
12013
 
 
12014
 
 
12015
 
 
12016
 
 
12017
 
 
12018
 
 
12019
 
 
12020
 
 
12021
 
 
12022
 
 
12023
 
 
12024
 
 
12025
 
 
12026
 
 
12027
 
 
12028
 
 
12029
 
 
12030
 
 
12031
 
 
12032
 
 
12033
 
 
12034
 
 
12035
 
 
12036
 
 
12037
 
 
12038
 
 
12039
 
 
12040
 
 
12041
 
 
12042
 
 
12043
 
 
12044
 
 
12045
 
 
12046
 
 
12047
 
 
12048
 
 
12049
 
 
12050
 
 
12051
 
 
12052
 
 
12053
 
 
12054
 
 
12055
 
 
12056
 
 
12057
 
 
12058
 
 
12059
 
 
12060
 
 
12061
# Check the gettext tools to make sure they are GNU
 
12062
# Extract the first word of "xgettext", so it can be a program name with args.
 
12063
set dummy xgettext; ac_word=$2
 
12064
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12065
$as_echo_n "checking for $ac_word... " >&6; }
 
12066
if ${ac_cv_path_XGETTEXT+:} false; then :
 
12067
  $as_echo_n "(cached) " >&6
 
12068
else
 
12069
  case $XGETTEXT in
 
12070
  [\\/]* | ?:[\\/]*)
 
12071
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
12072
  ;;
 
12073
  *)
 
12074
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12075
for as_dir in $PATH
 
12076
do
 
12077
  IFS=$as_save_IFS
 
12078
  test -z "$as_dir" && as_dir=.
 
12079
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12080
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12081
    ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
 
12082
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12083
    break 2
 
12084
  fi
 
12085
done
 
12086
  done
 
12087
IFS=$as_save_IFS
 
12088
 
 
12089
  ;;
 
12090
esac
 
12091
fi
 
12092
XGETTEXT=$ac_cv_path_XGETTEXT
 
12093
if test -n "$XGETTEXT"; then
 
12094
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
 
12095
$as_echo "$XGETTEXT" >&6; }
 
12096
else
 
12097
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12098
$as_echo "no" >&6; }
 
12099
fi
 
12100
 
 
12101
 
 
12102
# Extract the first word of "msgmerge", so it can be a program name with args.
 
12103
set dummy msgmerge; ac_word=$2
 
12104
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12105
$as_echo_n "checking for $ac_word... " >&6; }
 
12106
if ${ac_cv_path_MSGMERGE+:} false; then :
 
12107
  $as_echo_n "(cached) " >&6
 
12108
else
 
12109
  case $MSGMERGE in
 
12110
  [\\/]* | ?:[\\/]*)
 
12111
  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
 
12112
  ;;
 
12113
  *)
 
12114
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12115
for as_dir in $PATH
 
12116
do
 
12117
  IFS=$as_save_IFS
 
12118
  test -z "$as_dir" && as_dir=.
 
12119
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12120
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12121
    ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
 
12122
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12123
    break 2
 
12124
  fi
 
12125
done
 
12126
  done
 
12127
IFS=$as_save_IFS
 
12128
 
 
12129
  ;;
 
12130
esac
 
12131
fi
 
12132
MSGMERGE=$ac_cv_path_MSGMERGE
 
12133
if test -n "$MSGMERGE"; then
 
12134
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
 
12135
$as_echo "$MSGMERGE" >&6; }
 
12136
else
 
12137
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12138
$as_echo "no" >&6; }
 
12139
fi
 
12140
 
 
12141
 
 
12142
# Extract the first word of "msgfmt", so it can be a program name with args.
 
12143
set dummy msgfmt; ac_word=$2
 
12144
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12145
$as_echo_n "checking for $ac_word... " >&6; }
 
12146
if ${ac_cv_path_MSGFMT+:} false; then :
 
12147
  $as_echo_n "(cached) " >&6
 
12148
else
 
12149
  case $MSGFMT in
 
12150
  [\\/]* | ?:[\\/]*)
 
12151
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
12152
  ;;
 
12153
  *)
 
12154
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12155
for as_dir in $PATH
 
12156
do
 
12157
  IFS=$as_save_IFS
 
12158
  test -z "$as_dir" && as_dir=.
 
12159
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12160
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12161
    ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
12162
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12163
    break 2
 
12164
  fi
 
12165
done
 
12166
  done
 
12167
IFS=$as_save_IFS
 
12168
 
 
12169
  ;;
 
12170
esac
 
12171
fi
 
12172
MSGFMT=$ac_cv_path_MSGFMT
 
12173
if test -n "$MSGFMT"; then
 
12174
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
 
12175
$as_echo "$MSGFMT" >&6; }
 
12176
else
 
12177
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12178
$as_echo "no" >&6; }
 
12179
fi
 
12180
 
 
12181
 
 
12182
# Extract the first word of "gmsgfmt", so it can be a program name with args.
 
12183
set dummy gmsgfmt; ac_word=$2
 
12184
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12185
$as_echo_n "checking for $ac_word... " >&6; }
 
12186
if ${ac_cv_path_GMSGFMT+:} false; then :
 
12187
  $as_echo_n "(cached) " >&6
 
12188
else
 
12189
  case $GMSGFMT in
 
12190
  [\\/]* | ?:[\\/]*)
 
12191
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
12192
  ;;
 
12193
  *)
 
12194
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12195
for as_dir in $PATH
 
12196
do
 
12197
  IFS=$as_save_IFS
 
12198
  test -z "$as_dir" && as_dir=.
 
12199
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12200
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12201
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
12202
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12203
    break 2
 
12204
  fi
 
12205
done
 
12206
  done
 
12207
IFS=$as_save_IFS
 
12208
 
 
12209
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
12210
  ;;
 
12211
esac
 
12212
fi
 
12213
GMSGFMT=$ac_cv_path_GMSGFMT
 
12214
if test -n "$GMSGFMT"; then
 
12215
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
 
12216
$as_echo "$GMSGFMT" >&6; }
 
12217
else
 
12218
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12219
$as_echo "no" >&6; }
 
12220
fi
 
12221
 
 
12222
 
 
12223
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
 
12224
    as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
 
12225
fi
 
12226
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
 
12227
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
 
12228
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
 
12229
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
 
12230
    as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
 
12231
fi
 
12232
 
 
12233
# Extract the first word of "perl", so it can be a program name with args.
 
12234
set dummy perl; ac_word=$2
 
12235
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12236
$as_echo_n "checking for $ac_word... " >&6; }
 
12237
if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
 
12238
  $as_echo_n "(cached) " >&6
 
12239
else
 
12240
  case $INTLTOOL_PERL in
 
12241
  [\\/]* | ?:[\\/]*)
 
12242
  ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
 
12243
  ;;
 
12244
  *)
 
12245
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12246
for as_dir in $PATH
 
12247
do
 
12248
  IFS=$as_save_IFS
 
12249
  test -z "$as_dir" && as_dir=.
 
12250
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12251
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12252
    ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
 
12253
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12254
    break 2
 
12255
  fi
 
12256
done
 
12257
  done
 
12258
IFS=$as_save_IFS
 
12259
 
 
12260
  ;;
 
12261
esac
 
12262
fi
 
12263
INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
 
12264
if test -n "$INTLTOOL_PERL"; then
 
12265
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
 
12266
$as_echo "$INTLTOOL_PERL" >&6; }
 
12267
else
 
12268
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12269
$as_echo "no" >&6; }
 
12270
fi
 
12271
 
 
12272
 
 
12273
if test -z "$INTLTOOL_PERL"; then
 
12274
   as_fn_error $? "perl not found" "$LINENO" 5
 
12275
fi
 
12276
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
 
12277
$as_echo_n "checking for perl >= 5.8.1... " >&6; }
 
12278
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
 
12279
if test $? -ne 0; then
 
12280
   as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
 
12281
else
 
12282
   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
 
12283
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
 
12284
$as_echo "$IT_PERL_VERSION" >&6; }
 
12285
fi
 
12286
if test "x" != "xno-xml"; then
 
12287
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
 
12288
$as_echo_n "checking for XML::Parser... " >&6; }
 
12289
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
 
12290
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
12291
$as_echo "ok" >&6; }
 
12292
   else
 
12293
       as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
 
12294
   fi
 
12295
fi
 
12296
 
 
12297
# Substitute ALL_LINGUAS so we can use it in po/Makefile
 
12298
 
 
12299
 
 
12300
# Set DATADIRNAME correctly if it is not set yet
 
12301
# (copied from glib-gettext.m4)
 
12302
if test -z "$DATADIRNAME"; then
 
12303
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12304
/* end confdefs.h.  */
 
12305
 
 
12306
int
 
12307
main ()
 
12308
{
 
12309
extern int _nl_msg_cat_cntr;
 
12310
                       return _nl_msg_cat_cntr
 
12311
  ;
 
12312
  return 0;
 
12313
}
 
12314
_ACEOF
 
12315
if ac_fn_c_try_link "$LINENO"; then :
 
12316
  DATADIRNAME=share
 
12317
else
 
12318
  case $host in
 
12319
    *-*-solaris*)
 
12320
                        ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
 
12321
if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
 
12322
  DATADIRNAME=share
 
12323
else
 
12324
  DATADIRNAME=lib
 
12325
fi
 
12326
 
 
12327
    ;;
 
12328
    *)
 
12329
    DATADIRNAME=lib
 
12330
    ;;
 
12331
    esac
 
12332
fi
 
12333
rm -f core conftest.err conftest.$ac_objext \
 
12334
    conftest$ac_exeext conftest.$ac_ext
 
12335
fi
 
12336
 
 
12337
 
 
12338
 
 
12339
 
 
12340
 
 
12341
 
 
12342
 
 
12343
 
 
12344
      GETTEXT_MACRO_VERSION=0.17
 
12345
 
 
12346
 
 
12347
 
 
12348
 
 
12349
# Prepare PATH_SEPARATOR.
 
12350
# The user is always right.
 
12351
if test "${PATH_SEPARATOR+set}" != set; then
 
12352
  echo "#! /bin/sh" >conf$$.sh
 
12353
  echo  "exit 0"   >>conf$$.sh
 
12354
  chmod +x conf$$.sh
 
12355
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
12356
    PATH_SEPARATOR=';'
 
12357
  else
 
12358
    PATH_SEPARATOR=:
 
12359
  fi
 
12360
  rm -f conf$$.sh
 
12361
fi
 
12362
 
 
12363
# Find out how to test for executable files. Don't use a zero-byte file,
 
12364
# as systems may use methods other than mode bits to determine executability.
 
12365
cat >conf$$.file <<_ASEOF
 
12366
#! /bin/sh
 
12367
exit 0
 
12368
_ASEOF
 
12369
chmod +x conf$$.file
 
12370
if test -x conf$$.file >/dev/null 2>&1; then
 
12371
  ac_executable_p="test -x"
 
12372
else
 
12373
  ac_executable_p="test -f"
 
12374
fi
 
12375
rm -f conf$$.file
 
12376
 
 
12377
# Extract the first word of "msgfmt", so it can be a program name with args.
 
12378
set dummy msgfmt; ac_word=$2
 
12379
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12380
$as_echo_n "checking for $ac_word... " >&6; }
 
12381
if ${ac_cv_path_MSGFMT+:} false; then :
 
12382
  $as_echo_n "(cached) " >&6
 
12383
else
 
12384
  case "$MSGFMT" in
 
12385
  [\\/]* | ?:[\\/]*)
 
12386
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
12387
    ;;
 
12388
  *)
 
12389
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
12390
    for ac_dir in $PATH; do
 
12391
      IFS="$ac_save_IFS"
 
12392
      test -z "$ac_dir" && ac_dir=.
 
12393
      for ac_exec_ext in '' $ac_executable_extensions; do
 
12394
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
12395
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
 
12396
          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
 
12397
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
12398
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
 
12399
            break 2
 
12400
          fi
 
12401
        fi
 
12402
      done
 
12403
    done
 
12404
    IFS="$ac_save_IFS"
 
12405
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
 
12406
    ;;
 
12407
esac
 
12408
fi
 
12409
MSGFMT="$ac_cv_path_MSGFMT"
 
12410
if test "$MSGFMT" != ":"; then
 
12411
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
 
12412
$as_echo "$MSGFMT" >&6; }
 
12413
else
 
12414
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12415
$as_echo "no" >&6; }
 
12416
fi
 
12417
 
 
12418
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
12419
set dummy gmsgfmt; ac_word=$2
 
12420
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12421
$as_echo_n "checking for $ac_word... " >&6; }
 
12422
if ${ac_cv_path_GMSGFMT+:} false; then :
 
12423
  $as_echo_n "(cached) " >&6
 
12424
else
 
12425
  case $GMSGFMT in
 
12426
  [\\/]* | ?:[\\/]*)
 
12427
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
12428
  ;;
 
12429
  *)
 
12430
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12431
for as_dir in $PATH
 
12432
do
 
12433
  IFS=$as_save_IFS
 
12434
  test -z "$as_dir" && as_dir=.
 
12435
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12436
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12437
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
12438
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12439
    break 2
 
12440
  fi
 
12441
done
 
12442
  done
 
12443
IFS=$as_save_IFS
 
12444
 
 
12445
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
12446
  ;;
 
12447
esac
 
12448
fi
 
12449
GMSGFMT=$ac_cv_path_GMSGFMT
 
12450
if test -n "$GMSGFMT"; then
 
12451
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
 
12452
$as_echo "$GMSGFMT" >&6; }
 
12453
else
 
12454
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12455
$as_echo "no" >&6; }
 
12456
fi
 
12457
 
 
12458
 
 
12459
 
 
12460
    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
12461
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
 
12462
    *) MSGFMT_015=$MSGFMT ;;
 
12463
  esac
 
12464
 
 
12465
  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
12466
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
 
12467
    *) GMSGFMT_015=$GMSGFMT ;;
 
12468
  esac
 
12469
 
 
12470
 
 
12471
 
 
12472
# Prepare PATH_SEPARATOR.
 
12473
# The user is always right.
 
12474
if test "${PATH_SEPARATOR+set}" != set; then
 
12475
  echo "#! /bin/sh" >conf$$.sh
 
12476
  echo  "exit 0"   >>conf$$.sh
 
12477
  chmod +x conf$$.sh
 
12478
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
12479
    PATH_SEPARATOR=';'
 
12480
  else
 
12481
    PATH_SEPARATOR=:
 
12482
  fi
 
12483
  rm -f conf$$.sh
 
12484
fi
 
12485
 
 
12486
# Find out how to test for executable files. Don't use a zero-byte file,
 
12487
# as systems may use methods other than mode bits to determine executability.
 
12488
cat >conf$$.file <<_ASEOF
 
12489
#! /bin/sh
 
12490
exit 0
 
12491
_ASEOF
 
12492
chmod +x conf$$.file
 
12493
if test -x conf$$.file >/dev/null 2>&1; then
 
12494
  ac_executable_p="test -x"
 
12495
else
 
12496
  ac_executable_p="test -f"
 
12497
fi
 
12498
rm -f conf$$.file
 
12499
 
 
12500
# Extract the first word of "xgettext", so it can be a program name with args.
 
12501
set dummy xgettext; ac_word=$2
 
12502
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12503
$as_echo_n "checking for $ac_word... " >&6; }
 
12504
if ${ac_cv_path_XGETTEXT+:} false; then :
 
12505
  $as_echo_n "(cached) " >&6
 
12506
else
 
12507
  case "$XGETTEXT" in
 
12508
  [\\/]* | ?:[\\/]*)
 
12509
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
12510
    ;;
 
12511
  *)
 
12512
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
12513
    for ac_dir in $PATH; do
 
12514
      IFS="$ac_save_IFS"
 
12515
      test -z "$ac_dir" && ac_dir=.
 
12516
      for ac_exec_ext in '' $ac_executable_extensions; do
 
12517
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
12518
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
 
12519
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
 
12520
     (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
 
12521
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
 
12522
            break 2
 
12523
          fi
 
12524
        fi
 
12525
      done
 
12526
    done
 
12527
    IFS="$ac_save_IFS"
 
12528
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
12529
    ;;
 
12530
esac
 
12531
fi
 
12532
XGETTEXT="$ac_cv_path_XGETTEXT"
 
12533
if test "$XGETTEXT" != ":"; then
 
12534
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
 
12535
$as_echo "$XGETTEXT" >&6; }
 
12536
else
 
12537
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12538
$as_echo "no" >&6; }
 
12539
fi
 
12540
 
 
12541
    rm -f messages.po
 
12542
 
 
12543
    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
12544
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
 
12545
    *) XGETTEXT_015=$XGETTEXT ;;
 
12546
  esac
 
12547
 
 
12548
 
 
12549
 
 
12550
# Prepare PATH_SEPARATOR.
 
12551
# The user is always right.
 
12552
if test "${PATH_SEPARATOR+set}" != set; then
 
12553
  echo "#! /bin/sh" >conf$$.sh
 
12554
  echo  "exit 0"   >>conf$$.sh
 
12555
  chmod +x conf$$.sh
 
12556
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
12557
    PATH_SEPARATOR=';'
 
12558
  else
 
12559
    PATH_SEPARATOR=:
 
12560
  fi
 
12561
  rm -f conf$$.sh
 
12562
fi
 
12563
 
 
12564
# Find out how to test for executable files. Don't use a zero-byte file,
 
12565
# as systems may use methods other than mode bits to determine executability.
 
12566
cat >conf$$.file <<_ASEOF
 
12567
#! /bin/sh
 
12568
exit 0
 
12569
_ASEOF
 
12570
chmod +x conf$$.file
 
12571
if test -x conf$$.file >/dev/null 2>&1; then
 
12572
  ac_executable_p="test -x"
 
12573
else
 
12574
  ac_executable_p="test -f"
 
12575
fi
 
12576
rm -f conf$$.file
 
12577
 
 
12578
# Extract the first word of "msgmerge", so it can be a program name with args.
 
12579
set dummy msgmerge; ac_word=$2
 
12580
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12581
$as_echo_n "checking for $ac_word... " >&6; }
 
12582
if ${ac_cv_path_MSGMERGE+:} false; then :
 
12583
  $as_echo_n "(cached) " >&6
 
12584
else
 
12585
  case "$MSGMERGE" in
 
12586
  [\\/]* | ?:[\\/]*)
 
12587
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
 
12588
    ;;
 
12589
  *)
 
12590
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
12591
    for ac_dir in $PATH; do
 
12592
      IFS="$ac_save_IFS"
 
12593
      test -z "$ac_dir" && ac_dir=.
 
12594
      for ac_exec_ext in '' $ac_executable_extensions; do
 
12595
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
12596
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
 
12597
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
 
12598
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
 
12599
            break 2
 
12600
          fi
 
12601
        fi
 
12602
      done
 
12603
    done
 
12604
    IFS="$ac_save_IFS"
 
12605
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
 
12606
    ;;
 
12607
esac
 
12608
fi
 
12609
MSGMERGE="$ac_cv_path_MSGMERGE"
 
12610
if test "$MSGMERGE" != ":"; then
 
12611
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
 
12612
$as_echo "$MSGMERGE" >&6; }
 
12613
else
 
12614
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12615
$as_echo "no" >&6; }
 
12616
fi
 
12617
 
 
12618
 
 
12619
        test -n "$localedir" || localedir='${datadir}/locale'
 
12620
 
 
12621
 
 
12622
    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
 
12623
 
 
12624
 
 
12625
  ac_config_commands="$ac_config_commands po-directories"
 
12626
 
 
12627
 
 
12628
 
 
12629
      if test "X$prefix" = "XNONE"; then
 
12630
    acl_final_prefix="$ac_default_prefix"
 
12631
  else
 
12632
    acl_final_prefix="$prefix"
 
12633
  fi
 
12634
  if test "X$exec_prefix" = "XNONE"; then
 
12635
    acl_final_exec_prefix='${prefix}'
 
12636
  else
 
12637
    acl_final_exec_prefix="$exec_prefix"
 
12638
  fi
 
12639
  acl_save_prefix="$prefix"
 
12640
  prefix="$acl_final_prefix"
 
12641
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
 
12642
  prefix="$acl_save_prefix"
 
12643
 
 
12644
 
 
12645
# Check whether --with-gnu-ld was given.
 
12646
if test "${with_gnu_ld+set}" = set; then :
 
12647
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
12648
else
 
12649
  with_gnu_ld=no
 
12650
fi
 
12651
 
 
12652
# Prepare PATH_SEPARATOR.
 
12653
# The user is always right.
 
12654
if test "${PATH_SEPARATOR+set}" != set; then
 
12655
  echo "#! /bin/sh" >conf$$.sh
 
12656
  echo  "exit 0"   >>conf$$.sh
 
12657
  chmod +x conf$$.sh
 
12658
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
12659
    PATH_SEPARATOR=';'
 
12660
  else
 
12661
    PATH_SEPARATOR=:
 
12662
  fi
 
12663
  rm -f conf$$.sh
 
12664
fi
 
12665
ac_prog=ld
 
12666
if test "$GCC" = yes; then
 
12667
  # Check if gcc -print-prog-name=ld gives a path.
 
12668
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
 
12669
$as_echo_n "checking for ld used by GCC... " >&6; }
 
12670
  case $host in
 
12671
  *-*-mingw*)
 
12672
    # gcc leaves a trailing carriage return which upsets mingw
 
12673
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
12674
  *)
 
12675
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
12676
  esac
 
12677
  case $ac_prog in
 
12678
    # Accept absolute paths.
 
12679
    [\\/]* | [A-Za-z]:[\\/]*)
 
12680
      re_direlt='/[^/][^/]*/\.\./'
 
12681
      # Canonicalize the path of ld
 
12682
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
12683
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
12684
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
12685
      done
 
12686
      test -z "$LD" && LD="$ac_prog"
 
12687
      ;;
 
12688
  "")
 
12689
    # If it fails, then pretend we aren't using GCC.
 
12690
    ac_prog=ld
 
12691
    ;;
 
12692
  *)
 
12693
    # If it is relative, then search for the first ld in PATH.
 
12694
    with_gnu_ld=unknown
 
12695
    ;;
 
12696
  esac
 
12697
elif test "$with_gnu_ld" = yes; then
 
12698
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
12699
$as_echo_n "checking for GNU ld... " >&6; }
 
12700
else
 
12701
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
12702
$as_echo_n "checking for non-GNU ld... " >&6; }
 
12703
fi
 
12704
if ${acl_cv_path_LD+:} false; then :
 
12705
  $as_echo_n "(cached) " >&6
 
12706
else
 
12707
  if test -z "$LD"; then
 
12708
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
12709
  for ac_dir in $PATH; do
 
12710
    test -z "$ac_dir" && ac_dir=.
 
12711
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
12712
      acl_cv_path_LD="$ac_dir/$ac_prog"
 
12713
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
12714
      # but apparently some GNU ld's only accept -v.
 
12715
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
12716
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
 
12717
      *GNU* | *'with BFD'*)
 
12718
        test "$with_gnu_ld" != no && break ;;
 
12719
      *)
 
12720
        test "$with_gnu_ld" != yes && break ;;
 
12721
      esac
 
12722
    fi
 
12723
  done
 
12724
  IFS="$ac_save_ifs"
 
12725
else
 
12726
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
 
12727
fi
 
12728
fi
 
12729
 
 
12730
LD="$acl_cv_path_LD"
 
12731
if test -n "$LD"; then
 
12732
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
12733
$as_echo "$LD" >&6; }
 
12734
else
 
12735
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12736
$as_echo "no" >&6; }
 
12737
fi
 
12738
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
12739
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
12740
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
12741
if ${acl_cv_prog_gnu_ld+:} false; then :
 
12742
  $as_echo_n "(cached) " >&6
 
12743
else
 
12744
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
12745
case `$LD -v 2>&1 </dev/null` in
 
12746
*GNU* | *'with BFD'*)
 
12747
  acl_cv_prog_gnu_ld=yes ;;
 
12748
*)
 
12749
  acl_cv_prog_gnu_ld=no ;;
 
12750
esac
 
12751
fi
 
12752
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
 
12753
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
 
12754
with_gnu_ld=$acl_cv_prog_gnu_ld
 
12755
 
 
12756
 
 
12757
 
 
12758
 
 
12759
                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
 
12760
$as_echo_n "checking for shared library run path origin... " >&6; }
 
12761
if ${acl_cv_rpath+:} false; then :
 
12762
  $as_echo_n "(cached) " >&6
 
12763
else
 
12764
 
 
12765
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
 
12766
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
 
12767
    . ./conftest.sh
 
12768
    rm -f ./conftest.sh
 
12769
    acl_cv_rpath=done
 
12770
 
 
12771
fi
 
12772
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
 
12773
$as_echo "$acl_cv_rpath" >&6; }
 
12774
  wl="$acl_cv_wl"
 
12775
  acl_libext="$acl_cv_libext"
 
12776
  acl_shlibext="$acl_cv_shlibext"
 
12777
  acl_libname_spec="$acl_cv_libname_spec"
 
12778
  acl_library_names_spec="$acl_cv_library_names_spec"
 
12779
  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 
12780
  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 
12781
  acl_hardcode_direct="$acl_cv_hardcode_direct"
 
12782
  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
 
12783
    # Check whether --enable-rpath was given.
 
12784
if test "${enable_rpath+set}" = set; then :
 
12785
  enableval=$enable_rpath; :
 
12786
else
 
12787
  enable_rpath=yes
 
12788
fi
 
12789
 
 
12790
 
 
12791
 
 
12792
                  acl_libdirstem=lib
 
12793
  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
 
12794
  if test -n "$searchpath"; then
 
12795
    acl_save_IFS="${IFS=        }"; IFS=":"
 
12796
    for searchdir in $searchpath; do
 
12797
      if test -d "$searchdir"; then
 
12798
        case "$searchdir" in
 
12799
          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
 
12800
          *) searchdir=`cd "$searchdir" && pwd`
 
12801
             case "$searchdir" in
 
12802
               */lib64 ) acl_libdirstem=lib64 ;;
 
12803
             esac ;;
 
12804
        esac
 
12805
      fi
 
12806
    done
 
12807
    IFS="$acl_save_IFS"
 
12808
  fi
 
12809
 
 
12810
 
 
12811
 
 
12812
 
 
12813
 
 
12814
 
 
12815
 
 
12816
 
 
12817
 
 
12818
    use_additional=yes
 
12819
 
 
12820
  acl_save_prefix="$prefix"
 
12821
  prefix="$acl_final_prefix"
 
12822
  acl_save_exec_prefix="$exec_prefix"
 
12823
  exec_prefix="$acl_final_exec_prefix"
 
12824
 
 
12825
    eval additional_includedir=\"$includedir\"
 
12826
    eval additional_libdir=\"$libdir\"
 
12827
 
 
12828
  exec_prefix="$acl_save_exec_prefix"
 
12829
  prefix="$acl_save_prefix"
 
12830
 
 
12831
 
 
12832
# Check whether --with-libiconv-prefix was given.
 
12833
if test "${with_libiconv_prefix+set}" = set; then :
 
12834
  withval=$with_libiconv_prefix;
 
12835
    if test "X$withval" = "Xno"; then
 
12836
      use_additional=no
 
12837
    else
 
12838
      if test "X$withval" = "X"; then
 
12839
 
 
12840
  acl_save_prefix="$prefix"
 
12841
  prefix="$acl_final_prefix"
 
12842
  acl_save_exec_prefix="$exec_prefix"
 
12843
  exec_prefix="$acl_final_exec_prefix"
 
12844
 
 
12845
          eval additional_includedir=\"$includedir\"
 
12846
          eval additional_libdir=\"$libdir\"
 
12847
 
 
12848
  exec_prefix="$acl_save_exec_prefix"
 
12849
  prefix="$acl_save_prefix"
 
12850
 
 
12851
      else
 
12852
        additional_includedir="$withval/include"
 
12853
        additional_libdir="$withval/$acl_libdirstem"
 
12854
      fi
 
12855
    fi
 
12856
 
 
12857
fi
 
12858
 
 
12859
      LIBICONV=
 
12860
  LTLIBICONV=
 
12861
  INCICONV=
 
12862
  LIBICONV_PREFIX=
 
12863
  rpathdirs=
 
12864
  ltrpathdirs=
 
12865
  names_already_handled=
 
12866
  names_next_round='iconv '
 
12867
  while test -n "$names_next_round"; do
 
12868
    names_this_round="$names_next_round"
 
12869
    names_next_round=
 
12870
    for name in $names_this_round; do
 
12871
      already_handled=
 
12872
      for n in $names_already_handled; do
 
12873
        if test "$n" = "$name"; then
 
12874
          already_handled=yes
 
12875
          break
 
12876
        fi
 
12877
      done
 
12878
      if test -z "$already_handled"; then
 
12879
        names_already_handled="$names_already_handled $name"
 
12880
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
12881
        eval value=\"\$HAVE_LIB$uppername\"
 
12882
        if test -n "$value"; then
 
12883
          if test "$value" = yes; then
 
12884
            eval value=\"\$LIB$uppername\"
 
12885
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
 
12886
            eval value=\"\$LTLIB$uppername\"
 
12887
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
 
12888
          else
 
12889
                                    :
 
12890
          fi
 
12891
        else
 
12892
                              found_dir=
 
12893
          found_la=
 
12894
          found_so=
 
12895
          found_a=
 
12896
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
12897
          if test -n "$acl_shlibext"; then
 
12898
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
12899
          else
 
12900
            shrext=
 
12901
          fi
 
12902
          if test $use_additional = yes; then
 
12903
            dir="$additional_libdir"
 
12904
                                    if test -n "$acl_shlibext"; then
 
12905
              if test -f "$dir/$libname$shrext"; then
 
12906
                found_dir="$dir"
 
12907
                found_so="$dir/$libname$shrext"
 
12908
              else
 
12909
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
12910
                  ver=`(cd "$dir" && \
 
12911
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
12912
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
12913
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
12914
                        | sed 1q ) 2>/dev/null`
 
12915
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
12916
                    found_dir="$dir"
 
12917
                    found_so="$dir/$libname$shrext.$ver"
 
12918
                  fi
 
12919
                else
 
12920
                  eval library_names=\"$acl_library_names_spec\"
 
12921
                  for f in $library_names; do
 
12922
                    if test -f "$dir/$f"; then
 
12923
                      found_dir="$dir"
 
12924
                      found_so="$dir/$f"
 
12925
                      break
 
12926
                    fi
 
12927
                  done
 
12928
                fi
 
12929
              fi
 
12930
            fi
 
12931
                        if test "X$found_dir" = "X"; then
 
12932
              if test -f "$dir/$libname.$acl_libext"; then
 
12933
                found_dir="$dir"
 
12934
                found_a="$dir/$libname.$acl_libext"
 
12935
              fi
 
12936
            fi
 
12937
            if test "X$found_dir" != "X"; then
 
12938
              if test -f "$dir/$libname.la"; then
 
12939
                found_la="$dir/$libname.la"
 
12940
              fi
 
12941
            fi
 
12942
          fi
 
12943
          if test "X$found_dir" = "X"; then
 
12944
            for x in $LDFLAGS $LTLIBICONV; do
 
12945
 
 
12946
  acl_save_prefix="$prefix"
 
12947
  prefix="$acl_final_prefix"
 
12948
  acl_save_exec_prefix="$exec_prefix"
 
12949
  exec_prefix="$acl_final_exec_prefix"
 
12950
  eval x=\"$x\"
 
12951
  exec_prefix="$acl_save_exec_prefix"
 
12952
  prefix="$acl_save_prefix"
 
12953
 
 
12954
              case "$x" in
 
12955
                -L*)
 
12956
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
12957
                                    if test -n "$acl_shlibext"; then
 
12958
                    if test -f "$dir/$libname$shrext"; then
 
12959
                      found_dir="$dir"
 
12960
                      found_so="$dir/$libname$shrext"
 
12961
                    else
 
12962
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
12963
                        ver=`(cd "$dir" && \
 
12964
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
12965
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
12966
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
12967
                              | sed 1q ) 2>/dev/null`
 
12968
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
12969
                          found_dir="$dir"
 
12970
                          found_so="$dir/$libname$shrext.$ver"
 
12971
                        fi
 
12972
                      else
 
12973
                        eval library_names=\"$acl_library_names_spec\"
 
12974
                        for f in $library_names; do
 
12975
                          if test -f "$dir/$f"; then
 
12976
                            found_dir="$dir"
 
12977
                            found_so="$dir/$f"
 
12978
                            break
 
12979
                          fi
 
12980
                        done
 
12981
                      fi
 
12982
                    fi
 
12983
                  fi
 
12984
                                    if test "X$found_dir" = "X"; then
 
12985
                    if test -f "$dir/$libname.$acl_libext"; then
 
12986
                      found_dir="$dir"
 
12987
                      found_a="$dir/$libname.$acl_libext"
 
12988
                    fi
 
12989
                  fi
 
12990
                  if test "X$found_dir" != "X"; then
 
12991
                    if test -f "$dir/$libname.la"; then
 
12992
                      found_la="$dir/$libname.la"
 
12993
                    fi
 
12994
                  fi
 
12995
                  ;;
 
12996
              esac
 
12997
              if test "X$found_dir" != "X"; then
 
12998
                break
 
12999
              fi
 
13000
            done
 
13001
          fi
 
13002
          if test "X$found_dir" != "X"; then
 
13003
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
 
13004
            if test "X$found_so" != "X"; then
 
13005
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
 
13006
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
13007
              else
 
13008
                                                                                haveit=
 
13009
                for x in $ltrpathdirs; do
 
13010
                  if test "X$x" = "X$found_dir"; then
 
13011
                    haveit=yes
 
13012
                    break
 
13013
                  fi
 
13014
                done
 
13015
                if test -z "$haveit"; then
 
13016
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
13017
                fi
 
13018
                                if test "$acl_hardcode_direct" = yes; then
 
13019
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
13020
                else
 
13021
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 
13022
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
13023
                                                            haveit=
 
13024
                    for x in $rpathdirs; do
 
13025
                      if test "X$x" = "X$found_dir"; then
 
13026
                        haveit=yes
 
13027
                        break
 
13028
                      fi
 
13029
                    done
 
13030
                    if test -z "$haveit"; then
 
13031
                      rpathdirs="$rpathdirs $found_dir"
 
13032
                    fi
 
13033
                  else
 
13034
                                                                                haveit=
 
13035
                    for x in $LDFLAGS $LIBICONV; do
 
13036
 
 
13037
  acl_save_prefix="$prefix"
 
13038
  prefix="$acl_final_prefix"
 
13039
  acl_save_exec_prefix="$exec_prefix"
 
13040
  exec_prefix="$acl_final_exec_prefix"
 
13041
  eval x=\"$x\"
 
13042
  exec_prefix="$acl_save_exec_prefix"
 
13043
  prefix="$acl_save_prefix"
 
13044
 
 
13045
                      if test "X$x" = "X-L$found_dir"; then
 
13046
                        haveit=yes
 
13047
                        break
 
13048
                      fi
 
13049
                    done
 
13050
                    if test -z "$haveit"; then
 
13051
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
 
13052
                    fi
 
13053
                    if test "$acl_hardcode_minus_L" != no; then
 
13054
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
13055
                    else
 
13056
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
13057
                    fi
 
13058
                  fi
 
13059
                fi
 
13060
              fi
 
13061
            else
 
13062
              if test "X$found_a" != "X"; then
 
13063
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
 
13064
              else
 
13065
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
 
13066
              fi
 
13067
            fi
 
13068
                        additional_includedir=
 
13069
            case "$found_dir" in
 
13070
              */$acl_libdirstem | */$acl_libdirstem/)
 
13071
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
13072
                LIBICONV_PREFIX="$basedir"
 
13073
                additional_includedir="$basedir/include"
 
13074
                ;;
 
13075
            esac
 
13076
            if test "X$additional_includedir" != "X"; then
 
13077
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
13078
                haveit=
 
13079
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
13080
                  if test -n "$GCC"; then
 
13081
                    case $host_os in
 
13082
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
13083
                    esac
 
13084
                  fi
 
13085
                fi
 
13086
                if test -z "$haveit"; then
 
13087
                  for x in $CPPFLAGS $INCICONV; do
 
13088
 
 
13089
  acl_save_prefix="$prefix"
 
13090
  prefix="$acl_final_prefix"
 
13091
  acl_save_exec_prefix="$exec_prefix"
 
13092
  exec_prefix="$acl_final_exec_prefix"
 
13093
  eval x=\"$x\"
 
13094
  exec_prefix="$acl_save_exec_prefix"
 
13095
  prefix="$acl_save_prefix"
 
13096
 
 
13097
                    if test "X$x" = "X-I$additional_includedir"; then
 
13098
                      haveit=yes
 
13099
                      break
 
13100
                    fi
 
13101
                  done
 
13102
                  if test -z "$haveit"; then
 
13103
                    if test -d "$additional_includedir"; then
 
13104
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
 
13105
                    fi
 
13106
                  fi
 
13107
                fi
 
13108
              fi
 
13109
            fi
 
13110
                        if test -n "$found_la"; then
 
13111
                                                        save_libdir="$libdir"
 
13112
              case "$found_la" in
 
13113
                */* | *\\*) . "$found_la" ;;
 
13114
                *) . "./$found_la" ;;
 
13115
              esac
 
13116
              libdir="$save_libdir"
 
13117
                            for dep in $dependency_libs; do
 
13118
                case "$dep" in
 
13119
                  -L*)
 
13120
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
13121
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
 
13122
                      haveit=
 
13123
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
 
13124
                        if test -n "$GCC"; then
 
13125
                          case $host_os in
 
13126
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
13127
                          esac
 
13128
                        fi
 
13129
                      fi
 
13130
                      if test -z "$haveit"; then
 
13131
                        haveit=
 
13132
                        for x in $LDFLAGS $LIBICONV; do
 
13133
 
 
13134
  acl_save_prefix="$prefix"
 
13135
  prefix="$acl_final_prefix"
 
13136
  acl_save_exec_prefix="$exec_prefix"
 
13137
  exec_prefix="$acl_final_exec_prefix"
 
13138
  eval x=\"$x\"
 
13139
  exec_prefix="$acl_save_exec_prefix"
 
13140
  prefix="$acl_save_prefix"
 
13141
 
 
13142
                          if test "X$x" = "X-L$additional_libdir"; then
 
13143
                            haveit=yes
 
13144
                            break
 
13145
                          fi
 
13146
                        done
 
13147
                        if test -z "$haveit"; then
 
13148
                          if test -d "$additional_libdir"; then
 
13149
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
 
13150
                          fi
 
13151
                        fi
 
13152
                        haveit=
 
13153
                        for x in $LDFLAGS $LTLIBICONV; do
 
13154
 
 
13155
  acl_save_prefix="$prefix"
 
13156
  prefix="$acl_final_prefix"
 
13157
  acl_save_exec_prefix="$exec_prefix"
 
13158
  exec_prefix="$acl_final_exec_prefix"
 
13159
  eval x=\"$x\"
 
13160
  exec_prefix="$acl_save_exec_prefix"
 
13161
  prefix="$acl_save_prefix"
 
13162
 
 
13163
                          if test "X$x" = "X-L$additional_libdir"; then
 
13164
                            haveit=yes
 
13165
                            break
 
13166
                          fi
 
13167
                        done
 
13168
                        if test -z "$haveit"; then
 
13169
                          if test -d "$additional_libdir"; then
 
13170
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
 
13171
                          fi
 
13172
                        fi
 
13173
                      fi
 
13174
                    fi
 
13175
                    ;;
 
13176
                  -R*)
 
13177
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
13178
                    if test "$enable_rpath" != no; then
 
13179
                                                                  haveit=
 
13180
                      for x in $rpathdirs; do
 
13181
                        if test "X$x" = "X$dir"; then
 
13182
                          haveit=yes
 
13183
                          break
 
13184
                        fi
 
13185
                      done
 
13186
                      if test -z "$haveit"; then
 
13187
                        rpathdirs="$rpathdirs $dir"
 
13188
                      fi
 
13189
                                                                  haveit=
 
13190
                      for x in $ltrpathdirs; do
 
13191
                        if test "X$x" = "X$dir"; then
 
13192
                          haveit=yes
 
13193
                          break
 
13194
                        fi
 
13195
                      done
 
13196
                      if test -z "$haveit"; then
 
13197
                        ltrpathdirs="$ltrpathdirs $dir"
 
13198
                      fi
 
13199
                    fi
 
13200
                    ;;
 
13201
                  -l*)
 
13202
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
13203
                    ;;
 
13204
                  *.la)
 
13205
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
13206
                    ;;
 
13207
                  *)
 
13208
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
 
13209
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
 
13210
                    ;;
 
13211
                esac
 
13212
              done
 
13213
            fi
 
13214
          else
 
13215
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
13216
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
 
13217
          fi
 
13218
        fi
 
13219
      fi
 
13220
    done
 
13221
  done
 
13222
  if test "X$rpathdirs" != "X"; then
 
13223
    if test -n "$acl_hardcode_libdir_separator"; then
 
13224
                        alldirs=
 
13225
      for found_dir in $rpathdirs; do
 
13226
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
 
13227
      done
 
13228
            acl_save_libdir="$libdir"
 
13229
      libdir="$alldirs"
 
13230
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
13231
      libdir="$acl_save_libdir"
 
13232
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
13233
    else
 
13234
            for found_dir in $rpathdirs; do
 
13235
        acl_save_libdir="$libdir"
 
13236
        libdir="$found_dir"
 
13237
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
13238
        libdir="$acl_save_libdir"
 
13239
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
13240
      done
 
13241
    fi
 
13242
  fi
 
13243
  if test "X$ltrpathdirs" != "X"; then
 
13244
            for found_dir in $ltrpathdirs; do
 
13245
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
 
13246
    done
 
13247
  fi
 
13248
 
 
13249
 
 
13250
 
 
13251
 
 
13252
 
 
13253
 
 
13254
 
 
13255
 
 
13256
 
 
13257
 
 
13258
 
 
13259
 
 
13260
 
 
13261
 
 
13262
 
 
13263
 
 
13264
 
 
13265
 
 
13266
 
 
13267
 
 
13268
 
 
13269
 
 
13270
 
 
13271
 
 
13272
 
 
13273
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
 
13274
$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
 
13275
if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
 
13276
  $as_echo_n "(cached) " >&6
 
13277
else
 
13278
  gt_save_LIBS="$LIBS"
 
13279
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
13280
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13281
/* end confdefs.h.  */
 
13282
#include <CoreFoundation/CFPreferences.h>
 
13283
int
 
13284
main ()
 
13285
{
 
13286
CFPreferencesCopyAppValue(NULL, NULL)
 
13287
  ;
 
13288
  return 0;
 
13289
}
 
13290
_ACEOF
 
13291
if ac_fn_c_try_link "$LINENO"; then :
 
13292
  gt_cv_func_CFPreferencesCopyAppValue=yes
 
13293
else
 
13294
  gt_cv_func_CFPreferencesCopyAppValue=no
 
13295
fi
 
13296
rm -f core conftest.err conftest.$ac_objext \
 
13297
    conftest$ac_exeext conftest.$ac_ext
 
13298
     LIBS="$gt_save_LIBS"
 
13299
fi
 
13300
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
 
13301
$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
 
13302
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
 
13303
 
 
13304
$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
 
13305
 
 
13306
  fi
 
13307
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
 
13308
$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
 
13309
if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
 
13310
  $as_echo_n "(cached) " >&6
 
13311
else
 
13312
  gt_save_LIBS="$LIBS"
 
13313
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
13314
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13315
/* end confdefs.h.  */
 
13316
#include <CoreFoundation/CFLocale.h>
 
13317
int
 
13318
main ()
 
13319
{
 
13320
CFLocaleCopyCurrent();
 
13321
  ;
 
13322
  return 0;
 
13323
}
 
13324
_ACEOF
 
13325
if ac_fn_c_try_link "$LINENO"; then :
 
13326
  gt_cv_func_CFLocaleCopyCurrent=yes
 
13327
else
 
13328
  gt_cv_func_CFLocaleCopyCurrent=no
 
13329
fi
 
13330
rm -f core conftest.err conftest.$ac_objext \
 
13331
    conftest$ac_exeext conftest.$ac_ext
 
13332
     LIBS="$gt_save_LIBS"
 
13333
fi
 
13334
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
 
13335
$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
 
13336
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
13337
 
 
13338
$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
 
13339
 
 
13340
  fi
 
13341
  INTL_MACOSX_LIBS=
 
13342
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
13343
    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
 
13344
  fi
 
13345
 
 
13346
 
 
13347
 
 
13348
 
 
13349
 
 
13350
 
 
13351
  LIBINTL=
 
13352
  LTLIBINTL=
 
13353
  POSUB=
 
13354
 
 
13355
    case " $gt_needs " in
 
13356
    *" need-formatstring-macros "*) gt_api_version=3 ;;
 
13357
    *" need-ngettext "*) gt_api_version=2 ;;
 
13358
    *) gt_api_version=1 ;;
 
13359
  esac
 
13360
  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
 
13361
  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
 
13362
 
 
13363
    if test "$USE_NLS" = "yes"; then
 
13364
    gt_use_preinstalled_gnugettext=no
 
13365
 
 
13366
 
 
13367
        if test $gt_api_version -ge 3; then
 
13368
          gt_revision_test_code='
 
13369
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
 
13370
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
 
13371
#endif
 
13372
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
 
13373
'
 
13374
        else
 
13375
          gt_revision_test_code=
 
13376
        fi
 
13377
        if test $gt_api_version -ge 2; then
 
13378
          gt_expression_test_code=' + * ngettext ("", "", 0)'
 
13379
        else
 
13380
          gt_expression_test_code=
 
13381
        fi
 
13382
 
 
13383
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
 
13384
$as_echo_n "checking for GNU gettext in libc... " >&6; }
 
13385
if eval \${$gt_func_gnugettext_libc+:} false; then :
 
13386
  $as_echo_n "(cached) " >&6
 
13387
else
 
13388
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13389
/* end confdefs.h.  */
 
13390
#include <libintl.h>
 
13391
$gt_revision_test_code
 
13392
extern int _nl_msg_cat_cntr;
 
13393
extern int *_nl_domain_bindings;
 
13394
int
 
13395
main ()
 
13396
{
 
13397
bindtextdomain ("", "");
 
13398
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
 
13399
  ;
 
13400
  return 0;
 
13401
}
 
13402
_ACEOF
 
13403
if ac_fn_c_try_link "$LINENO"; then :
 
13404
  eval "$gt_func_gnugettext_libc=yes"
 
13405
else
 
13406
  eval "$gt_func_gnugettext_libc=no"
 
13407
fi
 
13408
rm -f core conftest.err conftest.$ac_objext \
 
13409
    conftest$ac_exeext conftest.$ac_ext
 
13410
fi
 
13411
eval ac_res=\$$gt_func_gnugettext_libc
 
13412
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
13413
$as_echo "$ac_res" >&6; }
 
13414
 
 
13415
        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
 
13416
 
 
13417
 
 
13418
 
 
13419
 
 
13420
 
 
13421
          am_save_CPPFLAGS="$CPPFLAGS"
 
13422
 
 
13423
  for element in $INCICONV; do
 
13424
    haveit=
 
13425
    for x in $CPPFLAGS; do
 
13426
 
 
13427
  acl_save_prefix="$prefix"
 
13428
  prefix="$acl_final_prefix"
 
13429
  acl_save_exec_prefix="$exec_prefix"
 
13430
  exec_prefix="$acl_final_exec_prefix"
 
13431
  eval x=\"$x\"
 
13432
  exec_prefix="$acl_save_exec_prefix"
 
13433
  prefix="$acl_save_prefix"
 
13434
 
 
13435
      if test "X$x" = "X$element"; then
 
13436
        haveit=yes
 
13437
        break
 
13438
      fi
 
13439
    done
 
13440
    if test -z "$haveit"; then
 
13441
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
13442
    fi
 
13443
  done
 
13444
 
 
13445
 
 
13446
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
 
13447
$as_echo_n "checking for iconv... " >&6; }
 
13448
if ${am_cv_func_iconv+:} false; then :
 
13449
  $as_echo_n "(cached) " >&6
 
13450
else
 
13451
 
 
13452
    am_cv_func_iconv="no, consider installing GNU libiconv"
 
13453
    am_cv_lib_iconv=no
 
13454
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13455
/* end confdefs.h.  */
 
13456
#include <stdlib.h>
 
13457
#include <iconv.h>
 
13458
int
 
13459
main ()
 
13460
{
 
13461
iconv_t cd = iconv_open("","");
 
13462
       iconv(cd,NULL,NULL,NULL,NULL);
 
13463
       iconv_close(cd);
 
13464
  ;
 
13465
  return 0;
 
13466
}
 
13467
_ACEOF
 
13468
if ac_fn_c_try_link "$LINENO"; then :
 
13469
  am_cv_func_iconv=yes
 
13470
fi
 
13471
rm -f core conftest.err conftest.$ac_objext \
 
13472
    conftest$ac_exeext conftest.$ac_ext
 
13473
    if test "$am_cv_func_iconv" != yes; then
 
13474
      am_save_LIBS="$LIBS"
 
13475
      LIBS="$LIBS $LIBICONV"
 
13476
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13477
/* end confdefs.h.  */
 
13478
#include <stdlib.h>
 
13479
#include <iconv.h>
 
13480
int
 
13481
main ()
 
13482
{
 
13483
iconv_t cd = iconv_open("","");
 
13484
         iconv(cd,NULL,NULL,NULL,NULL);
 
13485
         iconv_close(cd);
 
13486
  ;
 
13487
  return 0;
 
13488
}
 
13489
_ACEOF
 
13490
if ac_fn_c_try_link "$LINENO"; then :
 
13491
  am_cv_lib_iconv=yes
 
13492
        am_cv_func_iconv=yes
 
13493
fi
 
13494
rm -f core conftest.err conftest.$ac_objext \
 
13495
    conftest$ac_exeext conftest.$ac_ext
 
13496
      LIBS="$am_save_LIBS"
 
13497
    fi
 
13498
 
 
13499
fi
 
13500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
 
13501
$as_echo "$am_cv_func_iconv" >&6; }
 
13502
  if test "$am_cv_func_iconv" = yes; then
 
13503
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
 
13504
$as_echo_n "checking for working iconv... " >&6; }
 
13505
if ${am_cv_func_iconv_works+:} false; then :
 
13506
  $as_echo_n "(cached) " >&6
 
13507
else
 
13508
 
 
13509
            am_save_LIBS="$LIBS"
 
13510
      if test $am_cv_lib_iconv = yes; then
 
13511
        LIBS="$LIBS $LIBICONV"
 
13512
      fi
 
13513
      if test "$cross_compiling" = yes; then :
 
13514
  case "$host_os" in
 
13515
           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
 
13516
           *)            am_cv_func_iconv_works="guessing yes" ;;
 
13517
         esac
 
13518
else
 
13519
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13520
/* end confdefs.h.  */
 
13521
 
 
13522
#include <iconv.h>
 
13523
#include <string.h>
 
13524
int main ()
 
13525
{
 
13526
  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
 
13527
     returns.  */
 
13528
  {
 
13529
    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
 
13530
    if (cd_utf8_to_88591 != (iconv_t)(-1))
 
13531
      {
 
13532
        static const char input[] = "\342\202\254"; /* EURO SIGN */
 
13533
        char buf[10];
 
13534
        const char *inptr = input;
 
13535
        size_t inbytesleft = strlen (input);
 
13536
        char *outptr = buf;
 
13537
        size_t outbytesleft = sizeof (buf);
 
13538
        size_t res = iconv (cd_utf8_to_88591,
 
13539
                            (char **) &inptr, &inbytesleft,
 
13540
                            &outptr, &outbytesleft);
 
13541
        if (res == 0)
 
13542
          return 1;
 
13543
      }
 
13544
  }
 
13545
#if 0 /* This bug could be worked around by the caller.  */
 
13546
  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
 
13547
  {
 
13548
    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
 
13549
    if (cd_88591_to_utf8 != (iconv_t)(-1))
 
13550
      {
 
13551
        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
 
13552
        char buf[50];
 
13553
        const char *inptr = input;
 
13554
        size_t inbytesleft = strlen (input);
 
13555
        char *outptr = buf;
 
13556
        size_t outbytesleft = sizeof (buf);
 
13557
        size_t res = iconv (cd_88591_to_utf8,
 
13558
                            (char **) &inptr, &inbytesleft,
 
13559
                            &outptr, &outbytesleft);
 
13560
        if ((int)res > 0)
 
13561
          return 1;
 
13562
      }
 
13563
  }
 
13564
#endif
 
13565
  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
 
13566
     provided.  */
 
13567
  if (/* Try standardized names.  */
 
13568
      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
 
13569
      /* Try IRIX, OSF/1 names.  */
 
13570
      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
 
13571
      /* Try AIX names.  */
 
13572
      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
 
13573
      /* Try HP-UX names.  */
 
13574
      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
 
13575
    return 1;
 
13576
  return 0;
 
13577
}
 
13578
_ACEOF
 
13579
if ac_fn_c_try_run "$LINENO"; then :
 
13580
  am_cv_func_iconv_works=yes
 
13581
else
 
13582
  am_cv_func_iconv_works=no
 
13583
fi
 
13584
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
13585
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
13586
fi
 
13587
 
 
13588
      LIBS="$am_save_LIBS"
 
13589
 
 
13590
fi
 
13591
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
 
13592
$as_echo "$am_cv_func_iconv_works" >&6; }
 
13593
    case "$am_cv_func_iconv_works" in
 
13594
      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
 
13595
      *)   am_func_iconv=yes ;;
 
13596
    esac
 
13597
  else
 
13598
    am_func_iconv=no am_cv_lib_iconv=no
 
13599
  fi
 
13600
  if test "$am_func_iconv" = yes; then
 
13601
 
 
13602
$as_echo "#define HAVE_ICONV 1" >>confdefs.h
 
13603
 
 
13604
  fi
 
13605
  if test "$am_cv_lib_iconv" = yes; then
 
13606
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
 
13607
$as_echo_n "checking how to link with libiconv... " >&6; }
 
13608
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
 
13609
$as_echo "$LIBICONV" >&6; }
 
13610
  else
 
13611
            CPPFLAGS="$am_save_CPPFLAGS"
 
13612
    LIBICONV=
 
13613
    LTLIBICONV=
 
13614
  fi
 
13615
 
 
13616
 
 
13617
 
 
13618
 
 
13619
 
 
13620
 
 
13621
 
 
13622
 
 
13623
    use_additional=yes
 
13624
 
 
13625
  acl_save_prefix="$prefix"
 
13626
  prefix="$acl_final_prefix"
 
13627
  acl_save_exec_prefix="$exec_prefix"
 
13628
  exec_prefix="$acl_final_exec_prefix"
 
13629
 
 
13630
    eval additional_includedir=\"$includedir\"
 
13631
    eval additional_libdir=\"$libdir\"
 
13632
 
 
13633
  exec_prefix="$acl_save_exec_prefix"
 
13634
  prefix="$acl_save_prefix"
 
13635
 
 
13636
 
 
13637
# Check whether --with-libintl-prefix was given.
 
13638
if test "${with_libintl_prefix+set}" = set; then :
 
13639
  withval=$with_libintl_prefix;
 
13640
    if test "X$withval" = "Xno"; then
 
13641
      use_additional=no
 
13642
    else
 
13643
      if test "X$withval" = "X"; then
 
13644
 
 
13645
  acl_save_prefix="$prefix"
 
13646
  prefix="$acl_final_prefix"
 
13647
  acl_save_exec_prefix="$exec_prefix"
 
13648
  exec_prefix="$acl_final_exec_prefix"
 
13649
 
 
13650
          eval additional_includedir=\"$includedir\"
 
13651
          eval additional_libdir=\"$libdir\"
 
13652
 
 
13653
  exec_prefix="$acl_save_exec_prefix"
 
13654
  prefix="$acl_save_prefix"
 
13655
 
 
13656
      else
 
13657
        additional_includedir="$withval/include"
 
13658
        additional_libdir="$withval/$acl_libdirstem"
 
13659
      fi
 
13660
    fi
 
13661
 
 
13662
fi
 
13663
 
 
13664
      LIBINTL=
 
13665
  LTLIBINTL=
 
13666
  INCINTL=
 
13667
  LIBINTL_PREFIX=
 
13668
  rpathdirs=
 
13669
  ltrpathdirs=
 
13670
  names_already_handled=
 
13671
  names_next_round='intl '
 
13672
  while test -n "$names_next_round"; do
 
13673
    names_this_round="$names_next_round"
 
13674
    names_next_round=
 
13675
    for name in $names_this_round; do
 
13676
      already_handled=
 
13677
      for n in $names_already_handled; do
 
13678
        if test "$n" = "$name"; then
 
13679
          already_handled=yes
 
13680
          break
 
13681
        fi
 
13682
      done
 
13683
      if test -z "$already_handled"; then
 
13684
        names_already_handled="$names_already_handled $name"
 
13685
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
13686
        eval value=\"\$HAVE_LIB$uppername\"
 
13687
        if test -n "$value"; then
 
13688
          if test "$value" = yes; then
 
13689
            eval value=\"\$LIB$uppername\"
 
13690
            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
 
13691
            eval value=\"\$LTLIB$uppername\"
 
13692
            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
 
13693
          else
 
13694
                                    :
 
13695
          fi
 
13696
        else
 
13697
                              found_dir=
 
13698
          found_la=
 
13699
          found_so=
 
13700
          found_a=
 
13701
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
13702
          if test -n "$acl_shlibext"; then
 
13703
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
13704
          else
 
13705
            shrext=
 
13706
          fi
 
13707
          if test $use_additional = yes; then
 
13708
            dir="$additional_libdir"
 
13709
                                    if test -n "$acl_shlibext"; then
 
13710
              if test -f "$dir/$libname$shrext"; then
 
13711
                found_dir="$dir"
 
13712
                found_so="$dir/$libname$shrext"
 
13713
              else
 
13714
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
13715
                  ver=`(cd "$dir" && \
 
13716
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
13717
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
13718
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
13719
                        | sed 1q ) 2>/dev/null`
 
13720
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
13721
                    found_dir="$dir"
 
13722
                    found_so="$dir/$libname$shrext.$ver"
 
13723
                  fi
 
13724
                else
 
13725
                  eval library_names=\"$acl_library_names_spec\"
 
13726
                  for f in $library_names; do
 
13727
                    if test -f "$dir/$f"; then
 
13728
                      found_dir="$dir"
 
13729
                      found_so="$dir/$f"
 
13730
                      break
 
13731
                    fi
 
13732
                  done
 
13733
                fi
 
13734
              fi
 
13735
            fi
 
13736
                        if test "X$found_dir" = "X"; then
 
13737
              if test -f "$dir/$libname.$acl_libext"; then
 
13738
                found_dir="$dir"
 
13739
                found_a="$dir/$libname.$acl_libext"
 
13740
              fi
 
13741
            fi
 
13742
            if test "X$found_dir" != "X"; then
 
13743
              if test -f "$dir/$libname.la"; then
 
13744
                found_la="$dir/$libname.la"
 
13745
              fi
 
13746
            fi
 
13747
          fi
 
13748
          if test "X$found_dir" = "X"; then
 
13749
            for x in $LDFLAGS $LTLIBINTL; do
 
13750
 
 
13751
  acl_save_prefix="$prefix"
 
13752
  prefix="$acl_final_prefix"
 
13753
  acl_save_exec_prefix="$exec_prefix"
 
13754
  exec_prefix="$acl_final_exec_prefix"
 
13755
  eval x=\"$x\"
 
13756
  exec_prefix="$acl_save_exec_prefix"
 
13757
  prefix="$acl_save_prefix"
 
13758
 
 
13759
              case "$x" in
 
13760
                -L*)
 
13761
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
13762
                                    if test -n "$acl_shlibext"; then
 
13763
                    if test -f "$dir/$libname$shrext"; then
 
13764
                      found_dir="$dir"
 
13765
                      found_so="$dir/$libname$shrext"
 
13766
                    else
 
13767
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
13768
                        ver=`(cd "$dir" && \
 
13769
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
13770
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
13771
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
13772
                              | sed 1q ) 2>/dev/null`
 
13773
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
13774
                          found_dir="$dir"
 
13775
                          found_so="$dir/$libname$shrext.$ver"
 
13776
                        fi
 
13777
                      else
 
13778
                        eval library_names=\"$acl_library_names_spec\"
 
13779
                        for f in $library_names; do
 
13780
                          if test -f "$dir/$f"; then
 
13781
                            found_dir="$dir"
 
13782
                            found_so="$dir/$f"
 
13783
                            break
 
13784
                          fi
 
13785
                        done
 
13786
                      fi
 
13787
                    fi
 
13788
                  fi
 
13789
                                    if test "X$found_dir" = "X"; then
 
13790
                    if test -f "$dir/$libname.$acl_libext"; then
 
13791
                      found_dir="$dir"
 
13792
                      found_a="$dir/$libname.$acl_libext"
 
13793
                    fi
 
13794
                  fi
 
13795
                  if test "X$found_dir" != "X"; then
 
13796
                    if test -f "$dir/$libname.la"; then
 
13797
                      found_la="$dir/$libname.la"
 
13798
                    fi
 
13799
                  fi
 
13800
                  ;;
 
13801
              esac
 
13802
              if test "X$found_dir" != "X"; then
 
13803
                break
 
13804
              fi
 
13805
            done
 
13806
          fi
 
13807
          if test "X$found_dir" != "X"; then
 
13808
                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
 
13809
            if test "X$found_so" != "X"; then
 
13810
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
 
13811
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
13812
              else
 
13813
                                                                                haveit=
 
13814
                for x in $ltrpathdirs; do
 
13815
                  if test "X$x" = "X$found_dir"; then
 
13816
                    haveit=yes
 
13817
                    break
 
13818
                  fi
 
13819
                done
 
13820
                if test -z "$haveit"; then
 
13821
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
13822
                fi
 
13823
                                if test "$acl_hardcode_direct" = yes; then
 
13824
                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
13825
                else
 
13826
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 
13827
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
13828
                                                            haveit=
 
13829
                    for x in $rpathdirs; do
 
13830
                      if test "X$x" = "X$found_dir"; then
 
13831
                        haveit=yes
 
13832
                        break
 
13833
                      fi
 
13834
                    done
 
13835
                    if test -z "$haveit"; then
 
13836
                      rpathdirs="$rpathdirs $found_dir"
 
13837
                    fi
 
13838
                  else
 
13839
                                                                                haveit=
 
13840
                    for x in $LDFLAGS $LIBINTL; do
 
13841
 
 
13842
  acl_save_prefix="$prefix"
 
13843
  prefix="$acl_final_prefix"
 
13844
  acl_save_exec_prefix="$exec_prefix"
 
13845
  exec_prefix="$acl_final_exec_prefix"
 
13846
  eval x=\"$x\"
 
13847
  exec_prefix="$acl_save_exec_prefix"
 
13848
  prefix="$acl_save_prefix"
 
13849
 
 
13850
                      if test "X$x" = "X-L$found_dir"; then
 
13851
                        haveit=yes
 
13852
                        break
 
13853
                      fi
 
13854
                    done
 
13855
                    if test -z "$haveit"; then
 
13856
                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
 
13857
                    fi
 
13858
                    if test "$acl_hardcode_minus_L" != no; then
 
13859
                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
13860
                    else
 
13861
                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
13862
                    fi
 
13863
                  fi
 
13864
                fi
 
13865
              fi
 
13866
            else
 
13867
              if test "X$found_a" != "X"; then
 
13868
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
 
13869
              else
 
13870
                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
 
13871
              fi
 
13872
            fi
 
13873
                        additional_includedir=
 
13874
            case "$found_dir" in
 
13875
              */$acl_libdirstem | */$acl_libdirstem/)
 
13876
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
13877
                LIBINTL_PREFIX="$basedir"
 
13878
                additional_includedir="$basedir/include"
 
13879
                ;;
 
13880
            esac
 
13881
            if test "X$additional_includedir" != "X"; then
 
13882
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
13883
                haveit=
 
13884
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
13885
                  if test -n "$GCC"; then
 
13886
                    case $host_os in
 
13887
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
13888
                    esac
 
13889
                  fi
 
13890
                fi
 
13891
                if test -z "$haveit"; then
 
13892
                  for x in $CPPFLAGS $INCINTL; do
 
13893
 
 
13894
  acl_save_prefix="$prefix"
 
13895
  prefix="$acl_final_prefix"
 
13896
  acl_save_exec_prefix="$exec_prefix"
 
13897
  exec_prefix="$acl_final_exec_prefix"
 
13898
  eval x=\"$x\"
 
13899
  exec_prefix="$acl_save_exec_prefix"
 
13900
  prefix="$acl_save_prefix"
 
13901
 
 
13902
                    if test "X$x" = "X-I$additional_includedir"; then
 
13903
                      haveit=yes
 
13904
                      break
 
13905
                    fi
 
13906
                  done
 
13907
                  if test -z "$haveit"; then
 
13908
                    if test -d "$additional_includedir"; then
 
13909
                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
 
13910
                    fi
 
13911
                  fi
 
13912
                fi
 
13913
              fi
 
13914
            fi
 
13915
                        if test -n "$found_la"; then
 
13916
                                                        save_libdir="$libdir"
 
13917
              case "$found_la" in
 
13918
                */* | *\\*) . "$found_la" ;;
 
13919
                *) . "./$found_la" ;;
 
13920
              esac
 
13921
              libdir="$save_libdir"
 
13922
                            for dep in $dependency_libs; do
 
13923
                case "$dep" in
 
13924
                  -L*)
 
13925
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
13926
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
 
13927
                      haveit=
 
13928
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
 
13929
                        if test -n "$GCC"; then
 
13930
                          case $host_os in
 
13931
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
13932
                          esac
 
13933
                        fi
 
13934
                      fi
 
13935
                      if test -z "$haveit"; then
 
13936
                        haveit=
 
13937
                        for x in $LDFLAGS $LIBINTL; do
 
13938
 
 
13939
  acl_save_prefix="$prefix"
 
13940
  prefix="$acl_final_prefix"
 
13941
  acl_save_exec_prefix="$exec_prefix"
 
13942
  exec_prefix="$acl_final_exec_prefix"
 
13943
  eval x=\"$x\"
 
13944
  exec_prefix="$acl_save_exec_prefix"
 
13945
  prefix="$acl_save_prefix"
 
13946
 
 
13947
                          if test "X$x" = "X-L$additional_libdir"; then
 
13948
                            haveit=yes
 
13949
                            break
 
13950
                          fi
 
13951
                        done
 
13952
                        if test -z "$haveit"; then
 
13953
                          if test -d "$additional_libdir"; then
 
13954
                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
 
13955
                          fi
 
13956
                        fi
 
13957
                        haveit=
 
13958
                        for x in $LDFLAGS $LTLIBINTL; do
 
13959
 
 
13960
  acl_save_prefix="$prefix"
 
13961
  prefix="$acl_final_prefix"
 
13962
  acl_save_exec_prefix="$exec_prefix"
 
13963
  exec_prefix="$acl_final_exec_prefix"
 
13964
  eval x=\"$x\"
 
13965
  exec_prefix="$acl_save_exec_prefix"
 
13966
  prefix="$acl_save_prefix"
 
13967
 
 
13968
                          if test "X$x" = "X-L$additional_libdir"; then
 
13969
                            haveit=yes
 
13970
                            break
 
13971
                          fi
 
13972
                        done
 
13973
                        if test -z "$haveit"; then
 
13974
                          if test -d "$additional_libdir"; then
 
13975
                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
 
13976
                          fi
 
13977
                        fi
 
13978
                      fi
 
13979
                    fi
 
13980
                    ;;
 
13981
                  -R*)
 
13982
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
13983
                    if test "$enable_rpath" != no; then
 
13984
                                                                  haveit=
 
13985
                      for x in $rpathdirs; do
 
13986
                        if test "X$x" = "X$dir"; then
 
13987
                          haveit=yes
 
13988
                          break
 
13989
                        fi
 
13990
                      done
 
13991
                      if test -z "$haveit"; then
 
13992
                        rpathdirs="$rpathdirs $dir"
 
13993
                      fi
 
13994
                                                                  haveit=
 
13995
                      for x in $ltrpathdirs; do
 
13996
                        if test "X$x" = "X$dir"; then
 
13997
                          haveit=yes
 
13998
                          break
 
13999
                        fi
 
14000
                      done
 
14001
                      if test -z "$haveit"; then
 
14002
                        ltrpathdirs="$ltrpathdirs $dir"
 
14003
                      fi
 
14004
                    fi
 
14005
                    ;;
 
14006
                  -l*)
 
14007
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
14008
                    ;;
 
14009
                  *.la)
 
14010
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
14011
                    ;;
 
14012
                  *)
 
14013
                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
 
14014
                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
 
14015
                    ;;
 
14016
                esac
 
14017
              done
 
14018
            fi
 
14019
          else
 
14020
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
14021
            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
 
14022
          fi
 
14023
        fi
 
14024
      fi
 
14025
    done
 
14026
  done
 
14027
  if test "X$rpathdirs" != "X"; then
 
14028
    if test -n "$acl_hardcode_libdir_separator"; then
 
14029
                        alldirs=
 
14030
      for found_dir in $rpathdirs; do
 
14031
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
 
14032
      done
 
14033
            acl_save_libdir="$libdir"
 
14034
      libdir="$alldirs"
 
14035
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
14036
      libdir="$acl_save_libdir"
 
14037
      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
14038
    else
 
14039
            for found_dir in $rpathdirs; do
 
14040
        acl_save_libdir="$libdir"
 
14041
        libdir="$found_dir"
 
14042
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
14043
        libdir="$acl_save_libdir"
 
14044
        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
14045
      done
 
14046
    fi
 
14047
  fi
 
14048
  if test "X$ltrpathdirs" != "X"; then
 
14049
            for found_dir in $ltrpathdirs; do
 
14050
      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
 
14051
    done
 
14052
  fi
 
14053
 
 
14054
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
 
14055
$as_echo_n "checking for GNU gettext in libintl... " >&6; }
 
14056
if eval \${$gt_func_gnugettext_libintl+:} false; then :
 
14057
  $as_echo_n "(cached) " >&6
 
14058
else
 
14059
  gt_save_CPPFLAGS="$CPPFLAGS"
 
14060
            CPPFLAGS="$CPPFLAGS $INCINTL"
 
14061
            gt_save_LIBS="$LIBS"
 
14062
            LIBS="$LIBS $LIBINTL"
 
14063
                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14064
/* end confdefs.h.  */
 
14065
#include <libintl.h>
 
14066
$gt_revision_test_code
 
14067
extern int _nl_msg_cat_cntr;
 
14068
extern
 
14069
#ifdef __cplusplus
 
14070
"C"
 
14071
#endif
 
14072
const char *_nl_expand_alias (const char *);
 
14073
int
 
14074
main ()
 
14075
{
 
14076
bindtextdomain ("", "");
 
14077
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
 
14078
  ;
 
14079
  return 0;
 
14080
}
 
14081
_ACEOF
 
14082
if ac_fn_c_try_link "$LINENO"; then :
 
14083
  eval "$gt_func_gnugettext_libintl=yes"
 
14084
else
 
14085
  eval "$gt_func_gnugettext_libintl=no"
 
14086
fi
 
14087
rm -f core conftest.err conftest.$ac_objext \
 
14088
    conftest$ac_exeext conftest.$ac_ext
 
14089
                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
 
14090
              LIBS="$LIBS $LIBICONV"
 
14091
              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14092
/* end confdefs.h.  */
 
14093
#include <libintl.h>
 
14094
$gt_revision_test_code
 
14095
extern int _nl_msg_cat_cntr;
 
14096
extern
 
14097
#ifdef __cplusplus
 
14098
"C"
 
14099
#endif
 
14100
const char *_nl_expand_alias (const char *);
 
14101
int
 
14102
main ()
 
14103
{
 
14104
bindtextdomain ("", "");
 
14105
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
 
14106
  ;
 
14107
  return 0;
 
14108
}
 
14109
_ACEOF
 
14110
if ac_fn_c_try_link "$LINENO"; then :
 
14111
  LIBINTL="$LIBINTL $LIBICONV"
 
14112
                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
 
14113
                eval "$gt_func_gnugettext_libintl=yes"
 
14114
 
 
14115
fi
 
14116
rm -f core conftest.err conftest.$ac_objext \
 
14117
    conftest$ac_exeext conftest.$ac_ext
 
14118
            fi
 
14119
            CPPFLAGS="$gt_save_CPPFLAGS"
 
14120
            LIBS="$gt_save_LIBS"
 
14121
fi
 
14122
eval ac_res=\$$gt_func_gnugettext_libintl
 
14123
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
14124
$as_echo "$ac_res" >&6; }
 
14125
        fi
 
14126
 
 
14127
                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
 
14128
           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
 
14129
                && test "$PACKAGE" != gettext-runtime \
 
14130
                && test "$PACKAGE" != gettext-tools; }; then
 
14131
          gt_use_preinstalled_gnugettext=yes
 
14132
        else
 
14133
                    LIBINTL=
 
14134
          LTLIBINTL=
 
14135
          INCINTL=
 
14136
        fi
 
14137
 
 
14138
 
 
14139
 
 
14140
    if test -n "$INTL_MACOSX_LIBS"; then
 
14141
      if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
14142
         || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
14143
                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
 
14144
        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
 
14145
      fi
 
14146
    fi
 
14147
 
 
14148
    if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
14149
       || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
14150
 
 
14151
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
 
14152
 
 
14153
    else
 
14154
      USE_NLS=no
 
14155
    fi
 
14156
  fi
 
14157
 
 
14158
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
 
14159
$as_echo_n "checking whether to use NLS... " >&6; }
 
14160
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
 
14161
$as_echo "$USE_NLS" >&6; }
 
14162
  if test "$USE_NLS" = "yes"; then
 
14163
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
 
14164
$as_echo_n "checking where the gettext function comes from... " >&6; }
 
14165
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
14166
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
 
14167
        gt_source="external libintl"
 
14168
      else
 
14169
        gt_source="libc"
 
14170
      fi
 
14171
    else
 
14172
      gt_source="included intl directory"
 
14173
    fi
 
14174
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
 
14175
$as_echo "$gt_source" >&6; }
 
14176
  fi
 
14177
 
 
14178
  if test "$USE_NLS" = "yes"; then
 
14179
 
 
14180
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
14181
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
 
14182
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
 
14183
$as_echo_n "checking how to link with libintl... " >&6; }
 
14184
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
 
14185
$as_echo "$LIBINTL" >&6; }
 
14186
 
 
14187
  for element in $INCINTL; do
 
14188
    haveit=
 
14189
    for x in $CPPFLAGS; do
 
14190
 
 
14191
  acl_save_prefix="$prefix"
 
14192
  prefix="$acl_final_prefix"
 
14193
  acl_save_exec_prefix="$exec_prefix"
 
14194
  exec_prefix="$acl_final_exec_prefix"
 
14195
  eval x=\"$x\"
 
14196
  exec_prefix="$acl_save_exec_prefix"
 
14197
  prefix="$acl_save_prefix"
 
14198
 
 
14199
      if test "X$x" = "X$element"; then
 
14200
        haveit=yes
 
14201
        break
 
14202
      fi
 
14203
    done
 
14204
    if test -z "$haveit"; then
 
14205
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
14206
    fi
 
14207
  done
 
14208
 
 
14209
      fi
 
14210
 
 
14211
 
 
14212
$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
 
14213
 
 
14214
 
 
14215
$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
 
14216
 
 
14217
    fi
 
14218
 
 
14219
        POSUB=po
 
14220
  fi
 
14221
 
 
14222
 
 
14223
 
 
14224
    INTLLIBS="$LIBINTL"
 
14225
 
 
14226
 
 
14227
 
 
14228
 
 
14229
 
 
14230
 
 
14231
 
 
14232
 
 
14233
GETTEXT_PACKAGE=PACKAGE_TARNAME
 
14234
 
 
14235
 
 
14236
$as_echo "#define GETTEXT_PACKAGE PACKAGE_TARNAME" >>confdefs.h
 
14237
 
 
14238
 
 
14239
###########################
 
14240
# Files
 
14241
###########################
 
14242
 
 
14243
ac_config_files="$ac_config_files Makefile po/Makefile.in"
 
14244
 
 
14245
cat >confcache <<\_ACEOF
 
14246
# This file is a shell script that caches the results of configure
 
14247
# tests run on this system so they can be shared between configure
 
14248
# scripts and configure runs, see configure's option --config-cache.
 
14249
# It is not useful on other systems.  If it contains results you don't
 
14250
# want to keep, you may remove or edit it.
 
14251
#
 
14252
# config.status only pays attention to the cache file if you give it
 
14253
# the --recheck option to rerun configure.
 
14254
#
 
14255
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
14256
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
14257
# following values.
 
14258
 
 
14259
_ACEOF
 
14260
 
 
14261
# The following way of writing the cache mishandles newlines in values,
 
14262
# but we know of no workaround that is simple, portable, and efficient.
 
14263
# So, we kill variables containing newlines.
 
14264
# Ultrix sh set writes to stderr and can't be redirected directly,
 
14265
# and sets the high bit in the cache file unless we assign to the vars.
 
14266
(
 
14267
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
14268
    eval ac_val=\$$ac_var
 
14269
    case $ac_val in #(
 
14270
    *${as_nl}*)
 
14271
      case $ac_var in #(
 
14272
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
14273
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
14274
      esac
 
14275
      case $ac_var in #(
 
14276
      _ | IFS | as_nl) ;; #(
 
14277
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
14278
      *) { eval $ac_var=; unset $ac_var;} ;;
 
14279
      esac ;;
 
14280
    esac
 
14281
  done
 
14282
 
 
14283
  (set) 2>&1 |
 
14284
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
14285
    *${as_nl}ac_space=\ *)
 
14286
      # `set' does not quote correctly, so add quotes: double-quote
 
14287
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
14288
      sed -n \
 
14289
        "s/'/'\\\\''/g;
 
14290
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
14291
      ;; #(
 
14292
    *)
 
14293
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
14294
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
14295
      ;;
 
14296
    esac |
 
14297
    sort
 
14298
) |
 
14299
  sed '
 
14300
     /^ac_cv_env_/b end
 
14301
     t clear
 
14302
     :clear
 
14303
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
14304
     t end
 
14305
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
14306
     :end' >>confcache
 
14307
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
14308
  if test -w "$cache_file"; then
 
14309
    if test "x$cache_file" != "x/dev/null"; then
 
14310
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
14311
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
14312
      if test ! -f "$cache_file" || test -h "$cache_file"; then
 
14313
        cat confcache >"$cache_file"
 
14314
      else
 
14315
        case $cache_file in #(
 
14316
        */* | ?:*)
 
14317
          mv -f confcache "$cache_file"$$ &&
 
14318
          mv -f "$cache_file"$$ "$cache_file" ;; #(
 
14319
        *)
 
14320
          mv -f confcache "$cache_file" ;;
 
14321
        esac
 
14322
      fi
 
14323
    fi
 
14324
  else
 
14325
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
14326
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
14327
  fi
 
14328
fi
 
14329
rm -f confcache
 
14330
 
 
14331
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
14332
# Let make expand exec_prefix.
 
14333
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
14334
 
 
14335
DEFS=-DHAVE_CONFIG_H
 
14336
 
 
14337
ac_libobjs=
 
14338
ac_ltlibobjs=
 
14339
U=
 
14340
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
14341
  # 1. Remove the extension, and $U if already installed.
 
14342
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
14343
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
14344
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
14345
  #    will be set to the directory where LIBOBJS objects are built.
 
14346
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
14347
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
14348
done
 
14349
LIBOBJS=$ac_libobjs
 
14350
 
 
14351
LTLIBOBJS=$ac_ltlibobjs
 
14352
 
 
14353
 
 
14354
 if test -n "$EXEEXT"; then
 
14355
  am__EXEEXT_TRUE=
 
14356
  am__EXEEXT_FALSE='#'
 
14357
else
 
14358
  am__EXEEXT_TRUE='#'
 
14359
  am__EXEEXT_FALSE=
 
14360
fi
 
14361
 
 
14362
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
14363
  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
 
14364
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
14365
fi
 
14366
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
14367
  as_fn_error $? "conditional \"AMDEP\" was never defined.
 
14368
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
14369
fi
 
14370
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
14371
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
14372
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
14373
fi
 
14374
 
 
14375
  ac_config_commands="$ac_config_commands po/stamp-it"
 
14376
 
 
14377
 
 
14378
 
 
14379
: "${CONFIG_STATUS=./config.status}"
 
14380
ac_write_fail=0
 
14381
ac_clean_files_save=$ac_clean_files
 
14382
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
14383
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
14384
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
14385
as_write_fail=0
 
14386
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
14387
#! $SHELL
 
14388
# Generated by $as_me.
 
14389
# Run this file to recreate the current configuration.
 
14390
# Compiler output produced by configure, useful for debugging
 
14391
# configure, is in config.log if it exists.
 
14392
 
 
14393
debug=false
 
14394
ac_cs_recheck=false
 
14395
ac_cs_silent=false
 
14396
 
 
14397
SHELL=\${CONFIG_SHELL-$SHELL}
 
14398
export SHELL
 
14399
_ASEOF
 
14400
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
14401
## -------------------- ##
 
14402
## M4sh Initialization. ##
 
14403
## -------------------- ##
 
14404
 
 
14405
# Be more Bourne compatible
 
14406
DUALCASE=1; export DUALCASE # for MKS sh
 
14407
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
14408
  emulate sh
 
14409
  NULLCMD=:
 
14410
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
14411
  # is contrary to our usage.  Disable this feature.
 
14412
  alias -g '${1+"$@"}'='"$@"'
 
14413
  setopt NO_GLOB_SUBST
 
14414
else
 
14415
  case `(set -o) 2>/dev/null` in #(
 
14416
  *posix*) :
 
14417
    set -o posix ;; #(
 
14418
  *) :
 
14419
     ;;
 
14420
esac
 
14421
fi
 
14422
 
 
14423
 
 
14424
as_nl='
 
14425
'
 
14426
export as_nl
 
14427
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
14428
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
14429
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
14430
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
14431
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
14432
# but without wasting forks for bash or zsh.
 
14433
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
14434
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
14435
  as_echo='print -r --'
 
14436
  as_echo_n='print -rn --'
 
14437
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
14438
  as_echo='printf %s\n'
 
14439
  as_echo_n='printf %s'
 
14440
else
 
14441
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
14442
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
14443
    as_echo_n='/usr/ucb/echo -n'
 
14444
  else
 
14445
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
14446
    as_echo_n_body='eval
 
14447
      arg=$1;
 
14448
      case $arg in #(
 
14449
      *"$as_nl"*)
 
14450
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
14451
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
14452
      esac;
 
14453
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
14454
    '
 
14455
    export as_echo_n_body
 
14456
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
14457
  fi
 
14458
  export as_echo_body
 
14459
  as_echo='sh -c $as_echo_body as_echo'
 
14460
fi
 
14461
 
 
14462
# The user is always right.
 
14463
if test "${PATH_SEPARATOR+set}" != set; then
 
14464
  PATH_SEPARATOR=:
 
14465
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
14466
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
14467
      PATH_SEPARATOR=';'
 
14468
  }
 
14469
fi
 
14470
 
 
14471
 
 
14472
# IFS
 
14473
# We need space, tab and new line, in precisely that order.  Quoting is
 
14474
# there to prevent editors from complaining about space-tab.
 
14475
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
14476
# splitting by setting IFS to empty value.)
 
14477
IFS=" ""        $as_nl"
 
14478
 
 
14479
# Find who we are.  Look in the path if we contain no directory separator.
 
14480
as_myself=
 
14481
case $0 in #((
 
14482
  *[\\/]* ) as_myself=$0 ;;
 
14483
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14484
for as_dir in $PATH
 
14485
do
 
14486
  IFS=$as_save_IFS
 
14487
  test -z "$as_dir" && as_dir=.
 
14488
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
14489
  done
 
14490
IFS=$as_save_IFS
 
14491
 
 
14492
     ;;
 
14493
esac
 
14494
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
14495
# in which case we are not to be found in the path.
 
14496
if test "x$as_myself" = x; then
 
14497
  as_myself=$0
 
14498
fi
 
14499
if test ! -f "$as_myself"; then
 
14500
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
14501
  exit 1
 
14502
fi
 
14503
 
 
14504
# Unset variables that we do not need and which cause bugs (e.g. in
 
14505
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
14506
# suppresses any "Segmentation fault" message there.  '((' could
 
14507
# trigger a bug in pdksh 5.2.14.
 
14508
for as_var in BASH_ENV ENV MAIL MAILPATH
 
14509
do eval test x\${$as_var+set} = xset \
 
14510
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
14511
done
 
14512
PS1='$ '
 
14513
PS2='> '
 
14514
PS4='+ '
 
14515
 
 
14516
# NLS nuisances.
 
14517
LC_ALL=C
 
14518
export LC_ALL
 
14519
LANGUAGE=C
 
14520
export LANGUAGE
 
14521
 
 
14522
# CDPATH.
 
14523
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
14524
 
 
14525
 
 
14526
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
14527
# ----------------------------------------
 
14528
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
14529
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
14530
# script with STATUS, using 1 if that was 0.
 
14531
as_fn_error ()
 
14532
{
 
14533
  as_status=$1; test $as_status -eq 0 && as_status=1
 
14534
  if test "$4"; then
 
14535
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
14536
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
14537
  fi
 
14538
  $as_echo "$as_me: error: $2" >&2
 
14539
  as_fn_exit $as_status
 
14540
} # as_fn_error
 
14541
 
 
14542
 
 
14543
# as_fn_set_status STATUS
 
14544
# -----------------------
 
14545
# Set $? to STATUS, without forking.
 
14546
as_fn_set_status ()
 
14547
{
 
14548
  return $1
 
14549
} # as_fn_set_status
 
14550
 
 
14551
# as_fn_exit STATUS
 
14552
# -----------------
 
14553
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
14554
as_fn_exit ()
 
14555
{
 
14556
  set +e
 
14557
  as_fn_set_status $1
 
14558
  exit $1
 
14559
} # as_fn_exit
 
14560
 
 
14561
# as_fn_unset VAR
 
14562
# ---------------
 
14563
# Portably unset VAR.
 
14564
as_fn_unset ()
 
14565
{
 
14566
  { eval $1=; unset $1;}
 
14567
}
 
14568
as_unset=as_fn_unset
 
14569
# as_fn_append VAR VALUE
 
14570
# ----------------------
 
14571
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
14572
# advantage of any shell optimizations that allow amortized linear growth over
 
14573
# repeated appends, instead of the typical quadratic growth present in naive
 
14574
# implementations.
 
14575
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
14576
  eval 'as_fn_append ()
 
14577
  {
 
14578
    eval $1+=\$2
 
14579
  }'
 
14580
else
 
14581
  as_fn_append ()
 
14582
  {
 
14583
    eval $1=\$$1\$2
 
14584
  }
 
14585
fi # as_fn_append
 
14586
 
 
14587
# as_fn_arith ARG...
 
14588
# ------------------
 
14589
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
14590
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
14591
# must be portable across $(()) and expr.
 
14592
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
14593
  eval 'as_fn_arith ()
 
14594
  {
 
14595
    as_val=$(( $* ))
 
14596
  }'
 
14597
else
 
14598
  as_fn_arith ()
 
14599
  {
 
14600
    as_val=`expr "$@" || test $? -eq 1`
 
14601
  }
 
14602
fi # as_fn_arith
 
14603
 
 
14604
 
 
14605
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
14606
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
14607
  as_expr=expr
 
14608
else
 
14609
  as_expr=false
 
14610
fi
 
14611
 
 
14612
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
14613
  as_basename=basename
 
14614
else
 
14615
  as_basename=false
 
14616
fi
 
14617
 
 
14618
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
14619
  as_dirname=dirname
 
14620
else
 
14621
  as_dirname=false
 
14622
fi
 
14623
 
 
14624
as_me=`$as_basename -- "$0" ||
 
14625
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
14626
         X"$0" : 'X\(//\)$' \| \
 
14627
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
14628
$as_echo X/"$0" |
 
14629
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
14630
            s//\1/
 
14631
            q
 
14632
          }
 
14633
          /^X\/\(\/\/\)$/{
 
14634
            s//\1/
 
14635
            q
 
14636
          }
 
14637
          /^X\/\(\/\).*/{
 
14638
            s//\1/
 
14639
            q
 
14640
          }
 
14641
          s/.*/./; q'`
 
14642
 
 
14643
# Avoid depending upon Character Ranges.
 
14644
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
14645
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
14646
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
14647
as_cr_digits='0123456789'
 
14648
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
14649
 
 
14650
ECHO_C= ECHO_N= ECHO_T=
 
14651
case `echo -n x` in #(((((
 
14652
-n*)
 
14653
  case `echo 'xy\c'` in
 
14654
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
14655
  xy)  ECHO_C='\c';;
 
14656
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
14657
       ECHO_T=' ';;
 
14658
  esac;;
 
14659
*)
 
14660
  ECHO_N='-n';;
 
14661
esac
 
14662
 
 
14663
rm -f conf$$ conf$$.exe conf$$.file
 
14664
if test -d conf$$.dir; then
 
14665
  rm -f conf$$.dir/conf$$.file
 
14666
else
 
14667
  rm -f conf$$.dir
 
14668
  mkdir conf$$.dir 2>/dev/null
 
14669
fi
 
14670
if (echo >conf$$.file) 2>/dev/null; then
 
14671
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
14672
    as_ln_s='ln -s'
 
14673
    # ... but there are two gotchas:
 
14674
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
14675
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
14676
    # In both cases, we have to default to `cp -p'.
 
14677
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
14678
      as_ln_s='cp -p'
 
14679
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
14680
    as_ln_s=ln
 
14681
  else
 
14682
    as_ln_s='cp -p'
 
14683
  fi
 
14684
else
 
14685
  as_ln_s='cp -p'
 
14686
fi
 
14687
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
14688
rmdir conf$$.dir 2>/dev/null
 
14689
 
 
14690
 
 
14691
# as_fn_mkdir_p
 
14692
# -------------
 
14693
# Create "$as_dir" as a directory, including parents if necessary.
 
14694
as_fn_mkdir_p ()
 
14695
{
 
14696
 
 
14697
  case $as_dir in #(
 
14698
  -*) as_dir=./$as_dir;;
 
14699
  esac
 
14700
  test -d "$as_dir" || eval $as_mkdir_p || {
 
14701
    as_dirs=
 
14702
    while :; do
 
14703
      case $as_dir in #(
 
14704
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
14705
      *) as_qdir=$as_dir;;
 
14706
      esac
 
14707
      as_dirs="'$as_qdir' $as_dirs"
 
14708
      as_dir=`$as_dirname -- "$as_dir" ||
 
14709
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14710
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
14711
         X"$as_dir" : 'X\(//\)$' \| \
 
14712
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
14713
$as_echo X"$as_dir" |
 
14714
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14715
            s//\1/
 
14716
            q
 
14717
          }
 
14718
          /^X\(\/\/\)[^/].*/{
 
14719
            s//\1/
 
14720
            q
 
14721
          }
 
14722
          /^X\(\/\/\)$/{
 
14723
            s//\1/
 
14724
            q
 
14725
          }
 
14726
          /^X\(\/\).*/{
 
14727
            s//\1/
 
14728
            q
 
14729
          }
 
14730
          s/.*/./; q'`
 
14731
      test -d "$as_dir" && break
 
14732
    done
 
14733
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
14734
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
14735
 
 
14736
 
 
14737
} # as_fn_mkdir_p
 
14738
if mkdir -p . 2>/dev/null; then
 
14739
  as_mkdir_p='mkdir -p "$as_dir"'
 
14740
else
 
14741
  test -d ./-p && rmdir ./-p
 
14742
  as_mkdir_p=false
 
14743
fi
 
14744
 
 
14745
if test -x / >/dev/null 2>&1; then
 
14746
  as_test_x='test -x'
 
14747
else
 
14748
  if ls -dL / >/dev/null 2>&1; then
 
14749
    as_ls_L_option=L
 
14750
  else
 
14751
    as_ls_L_option=
 
14752
  fi
 
14753
  as_test_x='
 
14754
    eval sh -c '\''
 
14755
      if test -d "$1"; then
 
14756
        test -d "$1/.";
 
14757
      else
 
14758
        case $1 in #(
 
14759
        -*)set "./$1";;
 
14760
        esac;
 
14761
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
14762
        ???[sx]*):;;*)false;;esac;fi
 
14763
    '\'' sh
 
14764
  '
 
14765
fi
 
14766
as_executable_p=$as_test_x
 
14767
 
 
14768
# Sed expression to map a string onto a valid CPP name.
 
14769
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
14770
 
 
14771
# Sed expression to map a string onto a valid variable name.
 
14772
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
14773
 
 
14774
 
 
14775
exec 6>&1
 
14776
## ----------------------------------- ##
 
14777
## Main body of $CONFIG_STATUS script. ##
 
14778
## ----------------------------------- ##
 
14779
_ASEOF
 
14780
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
14781
 
 
14782
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14783
# Save the log message, to keep $0 and so on meaningful, and to
 
14784
# report actual input values of CONFIG_FILES etc. instead of their
 
14785
# values after options handling.
 
14786
ac_log="
 
14787
This file was extended by indicator-power $as_me 0.1, which was
 
14788
generated by GNU Autoconf 2.68.  Invocation command line was
 
14789
 
 
14790
  CONFIG_FILES    = $CONFIG_FILES
 
14791
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
14792
  CONFIG_LINKS    = $CONFIG_LINKS
 
14793
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
14794
  $ $0 $@
 
14795
 
 
14796
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
14797
"
 
14798
 
 
14799
_ACEOF
 
14800
 
 
14801
case $ac_config_files in *"
 
14802
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
14803
esac
 
14804
 
 
14805
case $ac_config_headers in *"
 
14806
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
14807
esac
 
14808
 
 
14809
 
 
14810
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14811
# Files that config.status was made for.
 
14812
config_files="$ac_config_files"
 
14813
config_headers="$ac_config_headers"
 
14814
config_commands="$ac_config_commands"
 
14815
 
 
14816
_ACEOF
 
14817
 
 
14818
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14819
ac_cs_usage="\
 
14820
\`$as_me' instantiates files and other configuration actions
 
14821
from templates according to the current configuration.  Unless the files
 
14822
and actions are specified as TAGs, all are instantiated by default.
 
14823
 
 
14824
Usage: $0 [OPTION]... [TAG]...
 
14825
 
 
14826
  -h, --help       print this help, then exit
 
14827
  -V, --version    print version number and configuration settings, then exit
 
14828
      --config     print configuration, then exit
 
14829
  -q, --quiet, --silent
 
14830
                   do not print progress messages
 
14831
  -d, --debug      don't remove temporary files
 
14832
      --recheck    update $as_me by reconfiguring in the same conditions
 
14833
      --file=FILE[:TEMPLATE]
 
14834
                   instantiate the configuration file FILE
 
14835
      --header=FILE[:TEMPLATE]
 
14836
                   instantiate the configuration header FILE
 
14837
 
 
14838
Configuration files:
 
14839
$config_files
 
14840
 
 
14841
Configuration headers:
 
14842
$config_headers
 
14843
 
 
14844
Configuration commands:
 
14845
$config_commands
 
14846
 
 
14847
Report bugs to <http://bugs.launchpad.net/indicator-power>.
 
14848
indicator-power home page: <http://launchpad.net/indicator-power>."
 
14849
 
 
14850
_ACEOF
 
14851
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14852
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
14853
ac_cs_version="\\
 
14854
indicator-power config.status 0.1
 
14855
configured by $0, generated by GNU Autoconf 2.68,
 
14856
  with options \\"\$ac_cs_config\\"
 
14857
 
 
14858
Copyright (C) 2010 Free Software Foundation, Inc.
 
14859
This config.status script is free software; the Free Software Foundation
 
14860
gives unlimited permission to copy, distribute and modify it."
 
14861
 
 
14862
ac_pwd='$ac_pwd'
 
14863
srcdir='$srcdir'
 
14864
INSTALL='$INSTALL'
 
14865
MKDIR_P='$MKDIR_P'
 
14866
AWK='$AWK'
 
14867
test -n "\$AWK" || AWK=awk
 
14868
_ACEOF
 
14869
 
 
14870
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14871
# The default lists apply if the user does not specify any file.
 
14872
ac_need_defaults=:
 
14873
while test $# != 0
 
14874
do
 
14875
  case $1 in
 
14876
  --*=?*)
 
14877
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
14878
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
14879
    ac_shift=:
 
14880
    ;;
 
14881
  --*=)
 
14882
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
14883
    ac_optarg=
 
14884
    ac_shift=:
 
14885
    ;;
 
14886
  *)
 
14887
    ac_option=$1
 
14888
    ac_optarg=$2
 
14889
    ac_shift=shift
 
14890
    ;;
 
14891
  esac
 
14892
 
 
14893
  case $ac_option in
 
14894
  # Handling of the options.
 
14895
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
14896
    ac_cs_recheck=: ;;
 
14897
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
14898
    $as_echo "$ac_cs_version"; exit ;;
 
14899
  --config | --confi | --conf | --con | --co | --c )
 
14900
    $as_echo "$ac_cs_config"; exit ;;
 
14901
  --debug | --debu | --deb | --de | --d | -d )
 
14902
    debug=: ;;
 
14903
  --file | --fil | --fi | --f )
 
14904
    $ac_shift
 
14905
    case $ac_optarg in
 
14906
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
14907
    '') as_fn_error $? "missing file argument" ;;
 
14908
    esac
 
14909
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
14910
    ac_need_defaults=false;;
 
14911
  --header | --heade | --head | --hea )
 
14912
    $ac_shift
 
14913
    case $ac_optarg in
 
14914
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
14915
    esac
 
14916
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
14917
    ac_need_defaults=false;;
 
14918
  --he | --h)
 
14919
    # Conflict between --help and --header
 
14920
    as_fn_error $? "ambiguous option: \`$1'
 
14921
Try \`$0 --help' for more information.";;
 
14922
  --help | --hel | -h )
 
14923
    $as_echo "$ac_cs_usage"; exit ;;
 
14924
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
14925
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
14926
    ac_cs_silent=: ;;
 
14927
 
 
14928
  # This is an error.
 
14929
  -*) as_fn_error $? "unrecognized option: \`$1'
 
14930
Try \`$0 --help' for more information." ;;
 
14931
 
 
14932
  *) as_fn_append ac_config_targets " $1"
 
14933
     ac_need_defaults=false ;;
 
14934
 
 
14935
  esac
 
14936
  shift
 
14937
done
 
14938
 
 
14939
ac_configure_extra_args=
 
14940
 
 
14941
if $ac_cs_silent; then
 
14942
  exec 6>/dev/null
 
14943
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
14944
fi
 
14945
 
 
14946
_ACEOF
 
14947
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14948
if \$ac_cs_recheck; then
 
14949
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
14950
  shift
 
14951
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
14952
  CONFIG_SHELL='$SHELL'
 
14953
  export CONFIG_SHELL
 
14954
  exec "\$@"
 
14955
fi
 
14956
 
 
14957
_ACEOF
 
14958
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14959
exec 5>>config.log
 
14960
{
 
14961
  echo
 
14962
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
14963
## Running $as_me. ##
 
14964
_ASBOX
 
14965
  $as_echo "$ac_log"
 
14966
} >&5
 
14967
 
 
14968
_ACEOF
 
14969
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14970
#
 
14971
# INIT-COMMANDS
 
14972
#
 
14973
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
14974
 
 
14975
 
 
14976
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
14977
# if CDPATH is set.
 
14978
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
14979
 
 
14980
sed_quote_subst='$sed_quote_subst'
 
14981
double_quote_subst='$double_quote_subst'
 
14982
delay_variable_subst='$delay_variable_subst'
 
14983
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
 
14984
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
 
14985
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
 
14986
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
 
14987
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
 
14988
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
 
14989
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
 
14990
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
 
14991
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
 
14992
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
 
14993
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
 
14994
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
 
14995
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
 
14996
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
 
14997
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
 
14998
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
 
14999
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
 
15000
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
 
15001
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
 
15002
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
 
15003
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
 
15004
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
 
15005
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
 
15006
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
 
15007
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
 
15008
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
 
15009
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
 
15010
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
 
15011
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
 
15012
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
 
15013
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
 
15014
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
 
15015
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
 
15016
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
 
15017
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
 
15018
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
 
15019
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
 
15020
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
 
15021
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
 
15022
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
 
15023
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
 
15024
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
 
15025
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
 
15026
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
 
15027
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
15028
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
15029
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
 
15030
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
 
15031
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
 
15032
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
 
15033
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
 
15034
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
 
15035
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
 
15036
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
 
15037
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
 
15038
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"`'
 
15039
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
 
15040
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
 
15041
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
 
15042
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
 
15043
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
 
15044
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
 
15045
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
 
15046
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
 
15047
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
 
15048
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
 
15049
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
 
15050
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
 
15051
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
 
15052
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
 
15053
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
 
15054
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
 
15055
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
 
15056
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
 
15057
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
15058
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
 
15059
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
 
15060
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
 
15061
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
 
15062
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
 
15063
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
 
15064
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
15065
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
 
15066
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
15067
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
 
15068
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
15069
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
 
15070
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
15071
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
15072
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
 
15073
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
 
15074
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
 
15075
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
 
15076
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
 
15077
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
 
15078
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
15079
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
 
15080
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
 
15081
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
 
15082
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
 
15083
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
 
15084
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
 
15085
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
 
15086
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
 
15087
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
 
15088
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
 
15089
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
 
15090
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
15091
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
 
15092
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
 
15093
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
 
15094
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
15095
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
 
15096
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
 
15097
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
 
15098
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
 
15099
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
 
15100
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
15101
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
15102
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
 
15103
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
 
15104
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
 
15105
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
 
15106
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
 
15107
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
 
15108
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
 
15109
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
 
15110
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
 
15111
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
 
15112
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
 
15113
 
 
15114
LTCC='$LTCC'
 
15115
LTCFLAGS='$LTCFLAGS'
 
15116
compiler='$compiler_DEFAULT'
 
15117
 
 
15118
# A function that is used when there is no print builtin or printf.
 
15119
func_fallback_echo ()
 
15120
{
 
15121
  eval 'cat <<_LTECHO_EOF
 
15122
\$1
 
15123
_LTECHO_EOF'
 
15124
}
 
15125
 
 
15126
# Quote evaled strings.
 
15127
for var in SHELL \
 
15128
ECHO \
 
15129
SED \
 
15130
GREP \
 
15131
EGREP \
 
15132
FGREP \
 
15133
LD \
 
15134
NM \
 
15135
LN_S \
 
15136
lt_SP2NL \
 
15137
lt_NL2SP \
 
15138
reload_flag \
 
15139
OBJDUMP \
 
15140
deplibs_check_method \
 
15141
file_magic_cmd \
 
15142
file_magic_glob \
 
15143
want_nocaseglob \
 
15144
DLLTOOL \
 
15145
sharedlib_from_linklib_cmd \
 
15146
AR \
 
15147
AR_FLAGS \
 
15148
archiver_list_spec \
 
15149
STRIP \
 
15150
RANLIB \
 
15151
CC \
 
15152
CFLAGS \
 
15153
compiler \
 
15154
lt_cv_sys_global_symbol_pipe \
 
15155
lt_cv_sys_global_symbol_to_cdecl \
 
15156
lt_cv_sys_global_symbol_to_c_name_address \
 
15157
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
15158
nm_file_list_spec \
 
15159
lt_prog_compiler_no_builtin_flag \
 
15160
lt_prog_compiler_pic \
 
15161
lt_prog_compiler_wl \
 
15162
lt_prog_compiler_static \
 
15163
lt_cv_prog_compiler_c_o \
 
15164
need_locks \
 
15165
MANIFEST_TOOL \
 
15166
DSYMUTIL \
 
15167
NMEDIT \
 
15168
LIPO \
 
15169
OTOOL \
 
15170
OTOOL64 \
 
15171
shrext_cmds \
 
15172
export_dynamic_flag_spec \
 
15173
whole_archive_flag_spec \
 
15174
compiler_needs_object \
 
15175
with_gnu_ld \
 
15176
allow_undefined_flag \
 
15177
no_undefined_flag \
 
15178
hardcode_libdir_flag_spec \
 
15179
hardcode_libdir_flag_spec_ld \
 
15180
hardcode_libdir_separator \
 
15181
exclude_expsyms \
 
15182
include_expsyms \
 
15183
file_list_spec \
 
15184
variables_saved_for_relink \
 
15185
libname_spec \
 
15186
library_names_spec \
 
15187
soname_spec \
 
15188
install_override_mode \
 
15189
finish_eval \
 
15190
old_striplib \
 
15191
striplib; do
 
15192
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
15193
    *[\\\\\\\`\\"\\\$]*)
 
15194
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
15195
      ;;
 
15196
    *)
 
15197
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
15198
      ;;
 
15199
    esac
 
15200
done
 
15201
 
 
15202
# Double-quote double-evaled strings.
 
15203
for var in reload_cmds \
 
15204
old_postinstall_cmds \
 
15205
old_postuninstall_cmds \
 
15206
old_archive_cmds \
 
15207
extract_expsyms_cmds \
 
15208
old_archive_from_new_cmds \
 
15209
old_archive_from_expsyms_cmds \
 
15210
archive_cmds \
 
15211
archive_expsym_cmds \
 
15212
module_cmds \
 
15213
module_expsym_cmds \
 
15214
export_symbols_cmds \
 
15215
prelink_cmds \
 
15216
postlink_cmds \
 
15217
postinstall_cmds \
 
15218
postuninstall_cmds \
 
15219
finish_cmds \
 
15220
sys_lib_search_path_spec \
 
15221
sys_lib_dlsearch_path_spec; do
 
15222
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
15223
    *[\\\\\\\`\\"\\\$]*)
 
15224
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
15225
      ;;
 
15226
    *)
 
15227
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
15228
      ;;
 
15229
    esac
 
15230
done
 
15231
 
 
15232
ac_aux_dir='$ac_aux_dir'
 
15233
xsi_shell='$xsi_shell'
 
15234
lt_shell_append='$lt_shell_append'
 
15235
 
 
15236
# See if we are running on zsh, and set the options which allow our
 
15237
# commands through without removal of \ escapes INIT.
 
15238
if test -n "\${ZSH_VERSION+set}" ; then
 
15239
   setopt NO_GLOB_SUBST
 
15240
fi
 
15241
 
 
15242
 
 
15243
    PACKAGE='$PACKAGE'
 
15244
    VERSION='$VERSION'
 
15245
    TIMESTAMP='$TIMESTAMP'
 
15246
    RM='$RM'
 
15247
    ofile='$ofile'
 
15248
 
 
15249
 
 
15250
 
 
15251
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
 
15252
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
 
15253
    # from automake < 1.5.
 
15254
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
 
15255
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
 
15256
    LINGUAS="${LINGUAS-%UNSET%}"
 
15257
 
 
15258
 
 
15259
_ACEOF
 
15260
 
 
15261
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15262
 
 
15263
# Handling of arguments.
 
15264
for ac_config_target in $ac_config_targets
 
15265
do
 
15266
  case $ac_config_target in
 
15267
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
15268
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
15269
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
15270
    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
 
15271
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
15272
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 
15273
    "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
 
15274
 
 
15275
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
15276
  esac
 
15277
done
 
15278
 
 
15279
 
 
15280
# If the user did not use the arguments to specify the items to instantiate,
 
15281
# then the envvar interface is used.  Set only those that are not.
 
15282
# We use the long form for the default assignment because of an extremely
 
15283
# bizarre bug on SunOS 4.1.3.
 
15284
if $ac_need_defaults; then
 
15285
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
15286
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
15287
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
15288
fi
 
15289
 
 
15290
# Have a temporary directory for convenience.  Make it in the build tree
 
15291
# simply because there is no reason against having it here, and in addition,
 
15292
# creating and moving files from /tmp can sometimes cause problems.
 
15293
# Hook for its removal unless debugging.
 
15294
# Note that there is a small window in which the directory will not be cleaned:
 
15295
# after its creation but before its name has been assigned to `$tmp'.
 
15296
$debug ||
 
15297
{
 
15298
  tmp= ac_tmp=
 
15299
  trap 'exit_status=$?
 
15300
  : "${ac_tmp:=$tmp}"
 
15301
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
 
15302
' 0
 
15303
  trap 'as_fn_exit 1' 1 2 13 15
 
15304
}
 
15305
# Create a (secure) tmp directory for tmp files.
 
15306
 
 
15307
{
 
15308
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
15309
  test -d "$tmp"
 
15310
}  ||
 
15311
{
 
15312
  tmp=./conf$$-$RANDOM
 
15313
  (umask 077 && mkdir "$tmp")
 
15314
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
15315
ac_tmp=$tmp
 
15316
 
 
15317
# Set up the scripts for CONFIG_FILES section.
 
15318
# No need to generate them if there are no CONFIG_FILES.
 
15319
# This happens for instance with `./config.status config.h'.
 
15320
if test -n "$CONFIG_FILES"; then
 
15321
 
 
15322
 
 
15323
ac_cr=`echo X | tr X '\015'`
 
15324
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
15325
# But we know of no other shell where ac_cr would be empty at this
 
15326
# point, so we can use a bashism as a fallback.
 
15327
if test "x$ac_cr" = x; then
 
15328
  eval ac_cr=\$\'\\r\'
 
15329
fi
 
15330
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
15331
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
15332
  ac_cs_awk_cr='\\r'
 
15333
else
 
15334
  ac_cs_awk_cr=$ac_cr
 
15335
fi
 
15336
 
 
15337
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
 
15338
_ACEOF
 
15339
 
 
15340
 
 
15341
{
 
15342
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
15343
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
15344
  echo "_ACEOF"
 
15345
} >conf$$subs.sh ||
 
15346
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
15347
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 
15348
ac_delim='%!_!# '
 
15349
for ac_last_try in false false false false false :; do
 
15350
  . ./conf$$subs.sh ||
 
15351
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
15352
 
 
15353
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
15354
  if test $ac_delim_n = $ac_delim_num; then
 
15355
    break
 
15356
  elif $ac_last_try; then
 
15357
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
15358
  else
 
15359
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
15360
  fi
 
15361
done
 
15362
rm -f conf$$subs.sh
 
15363
 
 
15364
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15365
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
 
15366
_ACEOF
 
15367
sed -n '
 
15368
h
 
15369
s/^/S["/; s/!.*/"]=/
 
15370
p
 
15371
g
 
15372
s/^[^!]*!//
 
15373
:repl
 
15374
t repl
 
15375
s/'"$ac_delim"'$//
 
15376
t delim
 
15377
:nl
 
15378
h
 
15379
s/\(.\{148\}\)..*/\1/
 
15380
t more1
 
15381
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
15382
p
 
15383
n
 
15384
b repl
 
15385
:more1
 
15386
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
15387
p
 
15388
g
 
15389
s/.\{148\}//
 
15390
t nl
 
15391
:delim
 
15392
h
 
15393
s/\(.\{148\}\)..*/\1/
 
15394
t more2
 
15395
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
15396
p
 
15397
b
 
15398
:more2
 
15399
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
15400
p
 
15401
g
 
15402
s/.\{148\}//
 
15403
t delim
 
15404
' <conf$$subs.awk | sed '
 
15405
/^[^""]/{
 
15406
  N
 
15407
  s/\n//
 
15408
}
 
15409
' >>$CONFIG_STATUS || ac_write_fail=1
 
15410
rm -f conf$$subs.awk
 
15411
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15412
_ACAWK
 
15413
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
 
15414
  for (key in S) S_is_set[key] = 1
 
15415
  FS = ""
 
15416
 
 
15417
}
 
15418
{
 
15419
  line = $ 0
 
15420
  nfields = split(line, field, "@")
 
15421
  substed = 0
 
15422
  len = length(field[1])
 
15423
  for (i = 2; i < nfields; i++) {
 
15424
    key = field[i]
 
15425
    keylen = length(key)
 
15426
    if (S_is_set[key]) {
 
15427
      value = S[key]
 
15428
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
15429
      len += length(value) + length(field[++i])
 
15430
      substed = 1
 
15431
    } else
 
15432
      len += 1 + keylen
 
15433
  }
 
15434
 
 
15435
  print line
 
15436
}
 
15437
 
 
15438
_ACAWK
 
15439
_ACEOF
 
15440
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15441
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
15442
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
15443
else
 
15444
  cat
 
15445
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
 
15446
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 
15447
_ACEOF
 
15448
 
 
15449
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
15450
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 
15451
# trailing colons and then remove the whole line if VPATH becomes empty
 
15452
# (actually we leave an empty line to preserve line numbers).
 
15453
if test "x$srcdir" = x.; then
 
15454
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
15455
h
 
15456
s///
 
15457
s/^/:/
 
15458
s/[      ]*$/:/
 
15459
s/:\$(srcdir):/:/g
 
15460
s/:\${srcdir}:/:/g
 
15461
s/:@srcdir@:/:/g
 
15462
s/^:*//
 
15463
s/:*$//
 
15464
x
 
15465
s/\(=[   ]*\).*/\1/
 
15466
G
 
15467
s/\n//
 
15468
s/^[^=]*=[       ]*$//
 
15469
}'
 
15470
fi
 
15471
 
 
15472
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15473
fi # test -n "$CONFIG_FILES"
 
15474
 
 
15475
# Set up the scripts for CONFIG_HEADERS section.
 
15476
# No need to generate them if there are no CONFIG_HEADERS.
 
15477
# This happens for instance with `./config.status Makefile'.
 
15478
if test -n "$CONFIG_HEADERS"; then
 
15479
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
 
15480
BEGIN {
 
15481
_ACEOF
 
15482
 
 
15483
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
15484
# here-document in config.status, that substitutes the proper values into
 
15485
# config.h.in to produce config.h.
 
15486
 
 
15487
# Create a delimiter string that does not exist in confdefs.h, to ease
 
15488
# handling of long lines.
 
15489
ac_delim='%!_!# '
 
15490
for ac_last_try in false false :; do
 
15491
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
 
15492
  if test -z "$ac_tt"; then
 
15493
    break
 
15494
  elif $ac_last_try; then
 
15495
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 
15496
  else
 
15497
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
15498
  fi
 
15499
done
 
15500
 
 
15501
# For the awk script, D is an array of macro values keyed by name,
 
15502
# likewise P contains macro parameters if any.  Preserve backslash
 
15503
# newline sequences.
 
15504
 
 
15505
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
15506
sed -n '
 
15507
s/.\{148\}/&'"$ac_delim"'/g
 
15508
t rset
 
15509
:rset
 
15510
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
15511
t def
 
15512
d
 
15513
:def
 
15514
s/\\$//
 
15515
t bsnl
 
15516
s/["\\]/\\&/g
 
15517
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
15518
D["\1"]=" \3"/p
 
15519
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
15520
d
 
15521
:bsnl
 
15522
s/["\\]/\\&/g
 
15523
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
15524
D["\1"]=" \3\\\\\\n"\\/p
 
15525
t cont
 
15526
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
15527
t cont
 
15528
d
 
15529
:cont
 
15530
n
 
15531
s/.\{148\}/&'"$ac_delim"'/g
 
15532
t clear
 
15533
:clear
 
15534
s/\\$//
 
15535
t bsnlc
 
15536
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
15537
d
 
15538
:bsnlc
 
15539
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
15540
b cont
 
15541
' <confdefs.h | sed '
 
15542
s/'"$ac_delim"'/"\\\
 
15543
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
15544
 
 
15545
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15546
  for (key in D) D_is_set[key] = 1
 
15547
  FS = ""
 
15548
}
 
15549
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
15550
  line = \$ 0
 
15551
  split(line, arg, " ")
 
15552
  if (arg[1] == "#") {
 
15553
    defundef = arg[2]
 
15554
    mac1 = arg[3]
 
15555
  } else {
 
15556
    defundef = substr(arg[1], 2)
 
15557
    mac1 = arg[2]
 
15558
  }
 
15559
  split(mac1, mac2, "(") #)
 
15560
  macro = mac2[1]
 
15561
  prefix = substr(line, 1, index(line, defundef) - 1)
 
15562
  if (D_is_set[macro]) {
 
15563
    # Preserve the white space surrounding the "#".
 
15564
    print prefix "define", macro P[macro] D[macro]
 
15565
    next
 
15566
  } else {
 
15567
    # Replace #undef with comments.  This is necessary, for example,
 
15568
    # in the case of _POSIX_SOURCE, which is predefined and required
 
15569
    # on some systems where configure will not decide to define it.
 
15570
    if (defundef == "undef") {
 
15571
      print "/*", prefix defundef, macro, "*/"
 
15572
      next
 
15573
    }
 
15574
  }
 
15575
}
 
15576
{ print }
 
15577
_ACAWK
 
15578
_ACEOF
 
15579
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15580
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 
15581
fi # test -n "$CONFIG_HEADERS"
 
15582
 
 
15583
 
 
15584
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
15585
shift
 
15586
for ac_tag
 
15587
do
 
15588
  case $ac_tag in
 
15589
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
15590
  esac
 
15591
  case $ac_mode$ac_tag in
 
15592
  :[FHL]*:*);;
 
15593
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
15594
  :[FH]-) ac_tag=-:-;;
 
15595
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
15596
  esac
 
15597
  ac_save_IFS=$IFS
 
15598
  IFS=:
 
15599
  set x $ac_tag
 
15600
  IFS=$ac_save_IFS
 
15601
  shift
 
15602
  ac_file=$1
 
15603
  shift
 
15604
 
 
15605
  case $ac_mode in
 
15606
  :L) ac_source=$1;;
 
15607
  :[FH])
 
15608
    ac_file_inputs=
 
15609
    for ac_f
 
15610
    do
 
15611
      case $ac_f in
 
15612
      -) ac_f="$ac_tmp/stdin";;
 
15613
      *) # Look for the file first in the build tree, then in the source tree
 
15614
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
15615
         # because $ac_f cannot contain `:'.
 
15616
         test -f "$ac_f" ||
 
15617
           case $ac_f in
 
15618
           [\\/$]*) false;;
 
15619
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
15620
           esac ||
 
15621
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
15622
      esac
 
15623
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
15624
      as_fn_append ac_file_inputs " '$ac_f'"
 
15625
    done
 
15626
 
 
15627
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
15628
    # use $as_me), people would be surprised to read:
 
15629
    #    /* config.h.  Generated by config.status.  */
 
15630
    configure_input='Generated from '`
 
15631
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
15632
        `' by configure.'
 
15633
    if test x"$ac_file" != x-; then
 
15634
      configure_input="$ac_file.  $configure_input"
 
15635
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
15636
$as_echo "$as_me: creating $ac_file" >&6;}
 
15637
    fi
 
15638
    # Neutralize special characters interpreted by sed in replacement strings.
 
15639
    case $configure_input in #(
 
15640
    *\&* | *\|* | *\\* )
 
15641
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
15642
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
15643
    *) ac_sed_conf_input=$configure_input;;
 
15644
    esac
 
15645
 
 
15646
    case $ac_tag in
 
15647
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
 
15648
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
 
15649
    esac
 
15650
    ;;
 
15651
  esac
 
15652
 
 
15653
  ac_dir=`$as_dirname -- "$ac_file" ||
 
15654
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
15655
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
15656
         X"$ac_file" : 'X\(//\)$' \| \
 
15657
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
15658
$as_echo X"$ac_file" |
 
15659
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15660
            s//\1/
 
15661
            q
 
15662
          }
 
15663
          /^X\(\/\/\)[^/].*/{
 
15664
            s//\1/
 
15665
            q
 
15666
          }
 
15667
          /^X\(\/\/\)$/{
 
15668
            s//\1/
 
15669
            q
 
15670
          }
 
15671
          /^X\(\/\).*/{
 
15672
            s//\1/
 
15673
            q
 
15674
          }
 
15675
          s/.*/./; q'`
 
15676
  as_dir="$ac_dir"; as_fn_mkdir_p
 
15677
  ac_builddir=.
 
15678
 
 
15679
case "$ac_dir" in
 
15680
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
15681
*)
 
15682
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
15683
  # A ".." for each directory in $ac_dir_suffix.
 
15684
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
15685
  case $ac_top_builddir_sub in
 
15686
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
15687
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
15688
  esac ;;
 
15689
esac
 
15690
ac_abs_top_builddir=$ac_pwd
 
15691
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
15692
# for backward compatibility:
 
15693
ac_top_builddir=$ac_top_build_prefix
 
15694
 
 
15695
case $srcdir in
 
15696
  .)  # We are building in place.
 
15697
    ac_srcdir=.
 
15698
    ac_top_srcdir=$ac_top_builddir_sub
 
15699
    ac_abs_top_srcdir=$ac_pwd ;;
 
15700
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
15701
    ac_srcdir=$srcdir$ac_dir_suffix;
 
15702
    ac_top_srcdir=$srcdir
 
15703
    ac_abs_top_srcdir=$srcdir ;;
 
15704
  *) # Relative name.
 
15705
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
15706
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
15707
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
15708
esac
 
15709
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
15710
 
 
15711
 
 
15712
  case $ac_mode in
 
15713
  :F)
 
15714
  #
 
15715
  # CONFIG_FILE
 
15716
  #
 
15717
 
 
15718
  case $INSTALL in
 
15719
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
15720
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
15721
  esac
 
15722
  ac_MKDIR_P=$MKDIR_P
 
15723
  case $MKDIR_P in
 
15724
  [\\/$]* | ?:[\\/]* ) ;;
 
15725
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
15726
  esac
 
15727
_ACEOF
 
15728
 
 
15729
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15730
# If the template does not know about datarootdir, expand it.
 
15731
# FIXME: This hack should be removed a few years after 2.60.
 
15732
ac_datarootdir_hack=; ac_datarootdir_seen=
 
15733
ac_sed_dataroot='
 
15734
/datarootdir/ {
 
15735
  p
 
15736
  q
 
15737
}
 
15738
/@datadir@/p
 
15739
/@docdir@/p
 
15740
/@infodir@/p
 
15741
/@localedir@/p
 
15742
/@mandir@/p'
 
15743
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
15744
*datarootdir*) ac_datarootdir_seen=yes;;
 
15745
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
15746
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
15747
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
15748
_ACEOF
 
15749
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15750
  ac_datarootdir_hack='
 
15751
  s&@datadir@&$datadir&g
 
15752
  s&@docdir@&$docdir&g
 
15753
  s&@infodir@&$infodir&g
 
15754
  s&@localedir@&$localedir&g
 
15755
  s&@mandir@&$mandir&g
 
15756
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
15757
esac
 
15758
_ACEOF
 
15759
 
 
15760
# Neutralize VPATH when `$srcdir' = `.'.
 
15761
# Shell code in configure.ac might set extrasub.
 
15762
# FIXME: do we really want to maintain this feature?
 
15763
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15764
ac_sed_extra="$ac_vpsub
 
15765
$extrasub
 
15766
_ACEOF
 
15767
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15768
:t
 
15769
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
15770
s|@configure_input@|$ac_sed_conf_input|;t t
 
15771
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
15772
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
15773
s&@srcdir@&$ac_srcdir&;t t
 
15774
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
15775
s&@top_srcdir@&$ac_top_srcdir&;t t
 
15776
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
15777
s&@builddir@&$ac_builddir&;t t
 
15778
s&@abs_builddir@&$ac_abs_builddir&;t t
 
15779
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
15780
s&@INSTALL@&$ac_INSTALL&;t t
 
15781
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
15782
$ac_datarootdir_hack
 
15783
"
 
15784
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
 
15785
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
15786
 
 
15787
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
15788
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
 
15789
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
 
15790
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
 
15791
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
15792
which seems to be undefined.  Please make sure it is defined" >&5
 
15793
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
15794
which seems to be undefined.  Please make sure it is defined" >&2;}
 
15795
 
 
15796
  rm -f "$ac_tmp/stdin"
 
15797
  case $ac_file in
 
15798
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
 
15799
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
 
15800
  esac \
 
15801
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
15802
 ;;
 
15803
  :H)
 
15804
  #
 
15805
  # CONFIG_HEADER
 
15806
  #
 
15807
  if test x"$ac_file" != x-; then
 
15808
    {
 
15809
      $as_echo "/* $configure_input  */" \
 
15810
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
 
15811
    } >"$ac_tmp/config.h" \
 
15812
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
15813
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
 
15814
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
15815
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
15816
    else
 
15817
      rm -f "$ac_file"
 
15818
      mv "$ac_tmp/config.h" "$ac_file" \
 
15819
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
15820
    fi
 
15821
  else
 
15822
    $as_echo "/* $configure_input  */" \
 
15823
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
 
15824
      || as_fn_error $? "could not create -" "$LINENO" 5
 
15825
  fi
 
15826
# Compute "$ac_file"'s index in $config_headers.
 
15827
_am_arg="$ac_file"
 
15828
_am_stamp_count=1
 
15829
for _am_header in $config_headers :; do
 
15830
  case $_am_header in
 
15831
    $_am_arg | $_am_arg:* )
 
15832
      break ;;
 
15833
    * )
 
15834
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
15835
  esac
 
15836
done
 
15837
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
15838
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
15839
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
15840
         X"$_am_arg" : 'X\(//\)$' \| \
 
15841
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
15842
$as_echo X"$_am_arg" |
 
15843
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15844
            s//\1/
 
15845
            q
 
15846
          }
 
15847
          /^X\(\/\/\)[^/].*/{
 
15848
            s//\1/
 
15849
            q
 
15850
          }
 
15851
          /^X\(\/\/\)$/{
 
15852
            s//\1/
 
15853
            q
 
15854
          }
 
15855
          /^X\(\/\).*/{
 
15856
            s//\1/
 
15857
            q
 
15858
          }
 
15859
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
15860
 ;;
 
15861
 
 
15862
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
15863
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
15864
 ;;
 
15865
  esac
 
15866
 
 
15867
 
 
15868
  case $ac_file$ac_mode in
 
15869
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
15870
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
15871
  # are listed without --file.  Let's play safe and only enable the eval
 
15872
  # if we detect the quoting.
 
15873
  case $CONFIG_FILES in
 
15874
  *\'*) eval set x "$CONFIG_FILES" ;;
 
15875
  *)   set x $CONFIG_FILES ;;
 
15876
  esac
 
15877
  shift
 
15878
  for mf
 
15879
  do
 
15880
    # Strip MF so we end up with the name of the file.
 
15881
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
15882
    # Check whether this is an Automake generated Makefile or not.
 
15883
    # We used to match only the files named `Makefile.in', but
 
15884
    # some people rename them; so instead we look at the file content.
 
15885
    # Grep'ing the first line is not enough: some people post-process
 
15886
    # each Makefile.in and add a new line on top of each file to say so.
 
15887
    # Grep'ing the whole file is not good either: AIX grep has a line
 
15888
    # limit of 2048, but all sed's we know have understand at least 4000.
 
15889
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
15890
      dirpart=`$as_dirname -- "$mf" ||
 
15891
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
15892
         X"$mf" : 'X\(//\)[^/]' \| \
 
15893
         X"$mf" : 'X\(//\)$' \| \
 
15894
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
15895
$as_echo X"$mf" |
 
15896
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15897
            s//\1/
 
15898
            q
 
15899
          }
 
15900
          /^X\(\/\/\)[^/].*/{
 
15901
            s//\1/
 
15902
            q
 
15903
          }
 
15904
          /^X\(\/\/\)$/{
 
15905
            s//\1/
 
15906
            q
 
15907
          }
 
15908
          /^X\(\/\).*/{
 
15909
            s//\1/
 
15910
            q
 
15911
          }
 
15912
          s/.*/./; q'`
 
15913
    else
 
15914
      continue
 
15915
    fi
 
15916
    # Extract the definition of DEPDIR, am__include, and am__quote
 
15917
    # from the Makefile without running `make'.
 
15918
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
15919
    test -z "$DEPDIR" && continue
 
15920
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
15921
    test -z "am__include" && continue
 
15922
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
15923
    # When using ansi2knr, U may be empty or an underscore; expand it
 
15924
    U=`sed -n 's/^U = //p' < "$mf"`
 
15925
    # Find all dependency output files, they are included files with
 
15926
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
15927
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
15928
    # expansion.
 
15929
    for file in `sed -n "
 
15930
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
15931
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
15932
      # Make sure the directory exists.
 
15933
      test -f "$dirpart/$file" && continue
 
15934
      fdir=`$as_dirname -- "$file" ||
 
15935
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
15936
         X"$file" : 'X\(//\)[^/]' \| \
 
15937
         X"$file" : 'X\(//\)$' \| \
 
15938
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
15939
$as_echo X"$file" |
 
15940
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15941
            s//\1/
 
15942
            q
 
15943
          }
 
15944
          /^X\(\/\/\)[^/].*/{
 
15945
            s//\1/
 
15946
            q
 
15947
          }
 
15948
          /^X\(\/\/\)$/{
 
15949
            s//\1/
 
15950
            q
 
15951
          }
 
15952
          /^X\(\/\).*/{
 
15953
            s//\1/
 
15954
            q
 
15955
          }
 
15956
          s/.*/./; q'`
 
15957
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
15958
      # echo "creating $dirpart/$file"
 
15959
      echo '# dummy' > "$dirpart/$file"
 
15960
    done
 
15961
  done
 
15962
}
 
15963
 ;;
 
15964
    "libtool":C)
 
15965
 
 
15966
    # See if we are running on zsh, and set the options which allow our
 
15967
    # commands through without removal of \ escapes.
 
15968
    if test -n "${ZSH_VERSION+set}" ; then
 
15969
      setopt NO_GLOB_SUBST
 
15970
    fi
 
15971
 
 
15972
    cfgfile="${ofile}T"
 
15973
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
15974
    $RM "$cfgfile"
 
15975
 
 
15976
    cat <<_LT_EOF >> "$cfgfile"
 
15977
#! $SHELL
 
15978
 
 
15979
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
15980
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
15981
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15982
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
15983
#
 
15984
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
15985
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
 
15986
#                 Inc.
 
15987
#   Written by Gordon Matzigkeit, 1996
 
15988
#
 
15989
#   This file is part of GNU Libtool.
 
15990
#
 
15991
# GNU Libtool is free software; you can redistribute it and/or
 
15992
# modify it under the terms of the GNU General Public License as
 
15993
# published by the Free Software Foundation; either version 2 of
 
15994
# the License, or (at your option) any later version.
 
15995
#
 
15996
# As a special exception to the GNU General Public License,
 
15997
# if you distribute this file as part of a program or library that
 
15998
# is built using GNU Libtool, you may include this file under the
 
15999
# same distribution terms that you use for the rest of that program.
 
16000
#
 
16001
# GNU Libtool is distributed in the hope that it will be useful,
 
16002
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16003
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16004
# GNU General Public License for more details.
 
16005
#
 
16006
# You should have received a copy of the GNU General Public License
 
16007
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
16008
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
16009
# obtained by writing to the Free Software Foundation, Inc.,
 
16010
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
16011
 
 
16012
 
 
16013
# The names of the tagged configurations supported by this script.
 
16014
available_tags=""
 
16015
 
 
16016
# ### BEGIN LIBTOOL CONFIG
 
16017
 
 
16018
# Which release of libtool.m4 was used?
 
16019
macro_version=$macro_version
 
16020
macro_revision=$macro_revision
 
16021
 
 
16022
# Whether or not to build shared libraries.
 
16023
build_libtool_libs=$enable_shared
 
16024
 
 
16025
# Whether or not to build static libraries.
 
16026
build_old_libs=$enable_static
 
16027
 
 
16028
# What type of objects to build.
 
16029
pic_mode=$pic_mode
 
16030
 
 
16031
# Whether or not to optimize for fast installation.
 
16032
fast_install=$enable_fast_install
 
16033
 
 
16034
# Shell to use when invoking shell scripts.
 
16035
SHELL=$lt_SHELL
 
16036
 
 
16037
# An echo program that protects backslashes.
 
16038
ECHO=$lt_ECHO
 
16039
 
 
16040
# The host system.
 
16041
host_alias=$host_alias
 
16042
host=$host
 
16043
host_os=$host_os
 
16044
 
 
16045
# The build system.
 
16046
build_alias=$build_alias
 
16047
build=$build
 
16048
build_os=$build_os
 
16049
 
 
16050
# A sed program that does not truncate output.
 
16051
SED=$lt_SED
 
16052
 
 
16053
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
16054
Xsed="\$SED -e 1s/^X//"
 
16055
 
 
16056
# A grep program that handles long lines.
 
16057
GREP=$lt_GREP
 
16058
 
 
16059
# An ERE matcher.
 
16060
EGREP=$lt_EGREP
 
16061
 
 
16062
# A literal string matcher.
 
16063
FGREP=$lt_FGREP
 
16064
 
 
16065
# A BSD- or MS-compatible name lister.
 
16066
NM=$lt_NM
 
16067
 
 
16068
# Whether we need soft or hard links.
 
16069
LN_S=$lt_LN_S
 
16070
 
 
16071
# What is the maximum length of a command?
 
16072
max_cmd_len=$max_cmd_len
 
16073
 
 
16074
# Object file suffix (normally "o").
 
16075
objext=$ac_objext
 
16076
 
 
16077
# Executable file suffix (normally "").
 
16078
exeext=$exeext
 
16079
 
 
16080
# whether the shell understands "unset".
 
16081
lt_unset=$lt_unset
 
16082
 
 
16083
# turn spaces into newlines.
 
16084
SP2NL=$lt_lt_SP2NL
 
16085
 
 
16086
# turn newlines into spaces.
 
16087
NL2SP=$lt_lt_NL2SP
 
16088
 
 
16089
# convert \$build file names to \$host format.
 
16090
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
16091
 
 
16092
# convert \$build files to toolchain format.
 
16093
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
16094
 
 
16095
# An object symbol dumper.
 
16096
OBJDUMP=$lt_OBJDUMP
 
16097
 
 
16098
# Method to check whether dependent libraries are shared objects.
 
16099
deplibs_check_method=$lt_deplibs_check_method
 
16100
 
 
16101
# Command to use when deplibs_check_method = "file_magic".
 
16102
file_magic_cmd=$lt_file_magic_cmd
 
16103
 
 
16104
# How to find potential files when deplibs_check_method = "file_magic".
 
16105
file_magic_glob=$lt_file_magic_glob
 
16106
 
 
16107
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
 
16108
want_nocaseglob=$lt_want_nocaseglob
 
16109
 
 
16110
# DLL creation program.
 
16111
DLLTOOL=$lt_DLLTOOL
 
16112
 
 
16113
# Command to associate shared and link libraries.
 
16114
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
 
16115
 
 
16116
# The archiver.
 
16117
AR=$lt_AR
 
16118
 
 
16119
# Flags to create an archive.
 
16120
AR_FLAGS=$lt_AR_FLAGS
 
16121
 
 
16122
# How to feed a file listing to the archiver.
 
16123
archiver_list_spec=$lt_archiver_list_spec
 
16124
 
 
16125
# A symbol stripping program.
 
16126
STRIP=$lt_STRIP
 
16127
 
 
16128
# Commands used to install an old-style archive.
 
16129
RANLIB=$lt_RANLIB
 
16130
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16131
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
16132
 
 
16133
# Whether to use a lock for old archive extraction.
 
16134
lock_old_archive_extraction=$lock_old_archive_extraction
 
16135
 
 
16136
# A C compiler.
 
16137
LTCC=$lt_CC
 
16138
 
 
16139
# LTCC compiler flags.
 
16140
LTCFLAGS=$lt_CFLAGS
 
16141
 
 
16142
# Take the output of nm and produce a listing of raw symbols and C names.
 
16143
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
16144
 
 
16145
# Transform the output of nm in a proper C declaration.
 
16146
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
16147
 
 
16148
# Transform the output of nm in a C name address pair.
 
16149
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
16150
 
 
16151
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
16152
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
16153
 
 
16154
# Specify filename containing input files for \$NM.
 
16155
nm_file_list_spec=$lt_nm_file_list_spec
 
16156
 
 
16157
# The root where to search for dependent libraries,and in which our libraries should be installed.
 
16158
lt_sysroot=$lt_sysroot
 
16159
 
 
16160
# The name of the directory that contains temporary libtool files.
 
16161
objdir=$objdir
 
16162
 
 
16163
# Used to examine libraries when file_magic_cmd begins with "file".
 
16164
MAGIC_CMD=$MAGIC_CMD
 
16165
 
 
16166
# Must we lock files when doing compilation?
 
16167
need_locks=$lt_need_locks
 
16168
 
 
16169
# Manifest tool.
 
16170
MANIFEST_TOOL=$lt_MANIFEST_TOOL
 
16171
 
 
16172
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
16173
DSYMUTIL=$lt_DSYMUTIL
 
16174
 
 
16175
# Tool to change global to local symbols on Mac OS X.
 
16176
NMEDIT=$lt_NMEDIT
 
16177
 
 
16178
# Tool to manipulate fat objects and archives on Mac OS X.
 
16179
LIPO=$lt_LIPO
 
16180
 
 
16181
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
16182
OTOOL=$lt_OTOOL
 
16183
 
 
16184
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
16185
OTOOL64=$lt_OTOOL64
 
16186
 
 
16187
# Old archive suffix (normally "a").
 
16188
libext=$libext
 
16189
 
 
16190
# Shared library suffix (normally ".so").
 
16191
shrext_cmds=$lt_shrext_cmds
 
16192
 
 
16193
# The commands to extract the exported symbol list from a shared archive.
 
16194
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
16195
 
 
16196
# Variables whose values should be saved in libtool wrapper scripts and
 
16197
# restored at link time.
 
16198
variables_saved_for_relink=$lt_variables_saved_for_relink
 
16199
 
 
16200
# Do we need the "lib" prefix for modules?
 
16201
need_lib_prefix=$need_lib_prefix
 
16202
 
 
16203
# Do we need a version for libraries?
 
16204
need_version=$need_version
 
16205
 
 
16206
# Library versioning type.
 
16207
version_type=$version_type
 
16208
 
 
16209
# Shared library runtime path variable.
 
16210
runpath_var=$runpath_var
 
16211
 
 
16212
# Shared library path variable.
 
16213
shlibpath_var=$shlibpath_var
 
16214
 
 
16215
# Is shlibpath searched before the hard-coded library search path?
 
16216
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
16217
 
 
16218
# Format of library name prefix.
 
16219
libname_spec=$lt_libname_spec
 
16220
 
 
16221
# List of archive names.  First name is the real one, the rest are links.
 
16222
# The last name is the one that the linker finds with -lNAME
 
16223
library_names_spec=$lt_library_names_spec
 
16224
 
 
16225
# The coded name of the library, if different from the real name.
 
16226
soname_spec=$lt_soname_spec
 
16227
 
 
16228
# Permission mode override for installation of shared libraries.
 
16229
install_override_mode=$lt_install_override_mode
 
16230
 
 
16231
# Command to use after installation of a shared archive.
 
16232
postinstall_cmds=$lt_postinstall_cmds
 
16233
 
 
16234
# Command to use after uninstallation of a shared archive.
 
16235
postuninstall_cmds=$lt_postuninstall_cmds
 
16236
 
 
16237
# Commands used to finish a libtool library installation in a directory.
 
16238
finish_cmds=$lt_finish_cmds
 
16239
 
 
16240
# As "finish_cmds", except a single script fragment to be evaled but
 
16241
# not shown.
 
16242
finish_eval=$lt_finish_eval
 
16243
 
 
16244
# Whether we should hardcode library paths into libraries.
 
16245
hardcode_into_libs=$hardcode_into_libs
 
16246
 
 
16247
# Compile-time system search path for libraries.
 
16248
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
16249
 
 
16250
# Run-time system search path for libraries.
 
16251
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
16252
 
 
16253
# Whether dlopen is supported.
 
16254
dlopen_support=$enable_dlopen
 
16255
 
 
16256
# Whether dlopen of programs is supported.
 
16257
dlopen_self=$enable_dlopen_self
 
16258
 
 
16259
# Whether dlopen of statically linked programs is supported.
 
16260
dlopen_self_static=$enable_dlopen_self_static
 
16261
 
 
16262
# Commands to strip libraries.
 
16263
old_striplib=$lt_old_striplib
 
16264
striplib=$lt_striplib
 
16265
 
 
16266
 
 
16267
# The linker used to build libraries.
 
16268
LD=$lt_LD
 
16269
 
 
16270
# How to create reloadable object files.
 
16271
reload_flag=$lt_reload_flag
 
16272
reload_cmds=$lt_reload_cmds
 
16273
 
 
16274
# Commands used to build an old-style archive.
 
16275
old_archive_cmds=$lt_old_archive_cmds
 
16276
 
 
16277
# A language specific compiler.
 
16278
CC=$lt_compiler
 
16279
 
 
16280
# Is the compiler the GNU compiler?
 
16281
with_gcc=$GCC
 
16282
 
 
16283
# Compiler flag to turn off builtin functions.
 
16284
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
16285
 
 
16286
# Additional compiler flags for building library objects.
 
16287
pic_flag=$lt_lt_prog_compiler_pic
 
16288
 
 
16289
# How to pass a linker flag through the compiler.
 
16290
wl=$lt_lt_prog_compiler_wl
 
16291
 
 
16292
# Compiler flag to prevent dynamic linking.
 
16293
link_static_flag=$lt_lt_prog_compiler_static
 
16294
 
 
16295
# Does compiler simultaneously support -c and -o options?
 
16296
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
16297
 
 
16298
# Whether or not to add -lc for building shared libraries.
 
16299
build_libtool_need_lc=$archive_cmds_need_lc
 
16300
 
 
16301
# Whether or not to disallow shared libs when runtime libs are static.
 
16302
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
16303
 
 
16304
# Compiler flag to allow reflexive dlopens.
 
16305
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
16306
 
 
16307
# Compiler flag to generate shared objects directly from archives.
 
16308
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
16309
 
 
16310
# Whether the compiler copes with passing no objects directly.
 
16311
compiler_needs_object=$lt_compiler_needs_object
 
16312
 
 
16313
# Create an old-style archive from a shared archive.
 
16314
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
16315
 
 
16316
# Create a temporary old-style archive to link instead of a shared archive.
 
16317
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
16318
 
 
16319
# Commands used to build a shared archive.
 
16320
archive_cmds=$lt_archive_cmds
 
16321
archive_expsym_cmds=$lt_archive_expsym_cmds
 
16322
 
 
16323
# Commands used to build a loadable module if different from building
 
16324
# a shared archive.
 
16325
module_cmds=$lt_module_cmds
 
16326
module_expsym_cmds=$lt_module_expsym_cmds
 
16327
 
 
16328
# Whether we are building with GNU ld or not.
 
16329
with_gnu_ld=$lt_with_gnu_ld
 
16330
 
 
16331
# Flag that allows shared libraries with undefined symbols to be built.
 
16332
allow_undefined_flag=$lt_allow_undefined_flag
 
16333
 
 
16334
# Flag that enforces no undefined symbols.
 
16335
no_undefined_flag=$lt_no_undefined_flag
 
16336
 
 
16337
# Flag to hardcode \$libdir into a binary during linking.
 
16338
# This must work even if \$libdir does not exist
 
16339
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
16340
 
 
16341
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
16342
# during linking.  This must work even if \$libdir does not exist.
 
16343
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
16344
 
 
16345
# Whether we need a single "-rpath" flag with a separated argument.
 
16346
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
16347
 
 
16348
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
16349
# DIR into the resulting binary.
 
16350
hardcode_direct=$hardcode_direct
 
16351
 
 
16352
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
16353
# DIR into the resulting binary and the resulting library dependency is
 
16354
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
16355
# library is relocated.
 
16356
hardcode_direct_absolute=$hardcode_direct_absolute
 
16357
 
 
16358
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
16359
# into the resulting binary.
 
16360
hardcode_minus_L=$hardcode_minus_L
 
16361
 
 
16362
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
16363
# into the resulting binary.
 
16364
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
16365
 
 
16366
# Set to "yes" if building a shared library automatically hardcodes DIR
 
16367
# into the library and all subsequent libraries and executables linked
 
16368
# against it.
 
16369
hardcode_automatic=$hardcode_automatic
 
16370
 
 
16371
# Set to yes if linker adds runtime paths of dependent libraries
 
16372
# to runtime path list.
 
16373
inherit_rpath=$inherit_rpath
 
16374
 
 
16375
# Whether libtool must link a program against all its dependency libraries.
 
16376
link_all_deplibs=$link_all_deplibs
 
16377
 
 
16378
# Set to "yes" if exported symbols are required.
 
16379
always_export_symbols=$always_export_symbols
 
16380
 
 
16381
# The commands to list exported symbols.
 
16382
export_symbols_cmds=$lt_export_symbols_cmds
 
16383
 
 
16384
# Symbols that should not be listed in the preloaded symbols.
 
16385
exclude_expsyms=$lt_exclude_expsyms
 
16386
 
 
16387
# Symbols that must always be exported.
 
16388
include_expsyms=$lt_include_expsyms
 
16389
 
 
16390
# Commands necessary for linking programs (against libraries) with templates.
 
16391
prelink_cmds=$lt_prelink_cmds
 
16392
 
 
16393
# Commands necessary for finishing linking programs.
 
16394
postlink_cmds=$lt_postlink_cmds
 
16395
 
 
16396
# Specify filename containing input files.
 
16397
file_list_spec=$lt_file_list_spec
 
16398
 
 
16399
# How to hardcode a shared library path into an executable.
 
16400
hardcode_action=$hardcode_action
 
16401
 
 
16402
# ### END LIBTOOL CONFIG
 
16403
 
 
16404
_LT_EOF
 
16405
 
 
16406
  case $host_os in
 
16407
  aix3*)
 
16408
    cat <<\_LT_EOF >> "$cfgfile"
 
16409
# AIX sometimes has problems with the GCC collect2 program.  For some
 
16410
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
16411
# vanish in a puff of smoke.
 
16412
if test "X${COLLECT_NAMES+set}" != Xset; then
 
16413
  COLLECT_NAMES=
 
16414
  export COLLECT_NAMES
 
16415
fi
 
16416
_LT_EOF
 
16417
    ;;
 
16418
  esac
 
16419
 
 
16420
 
 
16421
ltmain="$ac_aux_dir/ltmain.sh"
 
16422
 
 
16423
 
 
16424
  # We use sed instead of cat because bash on DJGPP gets confused if
 
16425
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
16426
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
16427
  # is reportedly fixed, but why not run on old versions too?
 
16428
  sed '$q' "$ltmain" >> "$cfgfile" \
 
16429
     || (rm -f "$cfgfile"; exit 1)
 
16430
 
 
16431
  if test x"$xsi_shell" = xyes; then
 
16432
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
 
16433
func_dirname ()\
 
16434
{\
 
16435
\    case ${1} in\
 
16436
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
16437
\      *  ) func_dirname_result="${3}" ;;\
 
16438
\    esac\
 
16439
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
 
16440
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
16441
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
16442
test 0 -eq $? || _lt_function_replace_fail=:
 
16443
 
 
16444
 
 
16445
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
 
16446
func_basename ()\
 
16447
{\
 
16448
\    func_basename_result="${1##*/}"\
 
16449
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
16450
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
16451
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
16452
test 0 -eq $? || _lt_function_replace_fail=:
 
16453
 
 
16454
 
 
16455
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
 
16456
func_dirname_and_basename ()\
 
16457
{\
 
16458
\    case ${1} in\
 
16459
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
16460
\      *  ) func_dirname_result="${3}" ;;\
 
16461
\    esac\
 
16462
\    func_basename_result="${1##*/}"\
 
16463
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
16464
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
16465
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
16466
test 0 -eq $? || _lt_function_replace_fail=:
 
16467
 
 
16468
 
 
16469
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
 
16470
func_stripname ()\
 
16471
{\
 
16472
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
 
16473
\    # positional parameters, so assign one to ordinary parameter first.\
 
16474
\    func_stripname_result=${3}\
 
16475
\    func_stripname_result=${func_stripname_result#"${1}"}\
 
16476
\    func_stripname_result=${func_stripname_result%"${2}"}\
 
16477
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
 
16478
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
16479
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
16480
test 0 -eq $? || _lt_function_replace_fail=:
 
16481
 
 
16482
 
 
16483
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
 
16484
func_split_long_opt ()\
 
16485
{\
 
16486
\    func_split_long_opt_name=${1%%=*}\
 
16487
\    func_split_long_opt_arg=${1#*=}\
 
16488
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
16489
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
16490
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
16491
test 0 -eq $? || _lt_function_replace_fail=:
 
16492
 
 
16493
 
 
16494
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
 
16495
func_split_short_opt ()\
 
16496
{\
 
16497
\    func_split_short_opt_arg=${1#??}\
 
16498
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
 
16499
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
16500
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
16501
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
16502
test 0 -eq $? || _lt_function_replace_fail=:
 
16503
 
 
16504
 
 
16505
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
 
16506
func_lo2o ()\
 
16507
{\
 
16508
\    case ${1} in\
 
16509
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
 
16510
\      *)    func_lo2o_result=${1} ;;\
 
16511
\    esac\
 
16512
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
 
16513
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
16514
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
16515
test 0 -eq $? || _lt_function_replace_fail=:
 
16516
 
 
16517
 
 
16518
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
 
16519
func_xform ()\
 
16520
{\
 
16521
    func_xform_result=${1%.*}.lo\
 
16522
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
 
16523
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
16524
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
16525
test 0 -eq $? || _lt_function_replace_fail=:
 
16526
 
 
16527
 
 
16528
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
 
16529
func_arith ()\
 
16530
{\
 
16531
    func_arith_result=$(( $* ))\
 
16532
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
 
16533
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
16534
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
16535
test 0 -eq $? || _lt_function_replace_fail=:
 
16536
 
 
16537
 
 
16538
  sed -e '/^func_len ()$/,/^} # func_len /c\
 
16539
func_len ()\
 
16540
{\
 
16541
    func_len_result=${#1}\
 
16542
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
 
16543
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
16544
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
16545
test 0 -eq $? || _lt_function_replace_fail=:
 
16546
 
 
16547
fi
 
16548
 
 
16549
if test x"$lt_shell_append" = xyes; then
 
16550
  sed -e '/^func_append ()$/,/^} # func_append /c\
 
16551
func_append ()\
 
16552
{\
 
16553
    eval "${1}+=\\${2}"\
 
16554
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
 
16555
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
16556
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
16557
test 0 -eq $? || _lt_function_replace_fail=:
 
16558
 
 
16559
 
 
16560
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
 
16561
func_append_quoted ()\
 
16562
{\
 
16563
\    func_quote_for_eval "${2}"\
 
16564
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
 
16565
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
 
16566
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
16567
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
16568
test 0 -eq $? || _lt_function_replace_fail=:
 
16569
 
 
16570
 
 
16571
  # Save a `func_append' function call where possible by direct use of '+='
 
16572
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
16573
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
16574
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
16575
  test 0 -eq $? || _lt_function_replace_fail=:
 
16576
else
 
16577
  # Save a `func_append' function call even when '+=' is not available
 
16578
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
16579
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
16580
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
16581
  test 0 -eq $? || _lt_function_replace_fail=:
 
16582
fi
 
16583
 
 
16584
if test x"$_lt_function_replace_fail" = x":"; then
 
16585
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
 
16586
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
 
16587
fi
 
16588
 
 
16589
 
 
16590
   mv -f "$cfgfile" "$ofile" ||
 
16591
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
16592
  chmod +x "$ofile"
 
16593
 
 
16594
 ;;
 
16595
    "po-directories":C)
 
16596
    for ac_file in $CONFIG_FILES; do
 
16597
      # Support "outfile[:infile[:infile...]]"
 
16598
      case "$ac_file" in
 
16599
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
16600
      esac
 
16601
      # PO directories have a Makefile.in generated from Makefile.in.in.
 
16602
      case "$ac_file" in */Makefile.in)
 
16603
        # Adjust a relative srcdir.
 
16604
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
 
16605
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
 
16606
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
 
16607
        # In autoconf-2.13 it is called $ac_given_srcdir.
 
16608
        # In autoconf-2.50 it is called $srcdir.
 
16609
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
 
16610
        case "$ac_given_srcdir" in
 
16611
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
 
16612
          /*) top_srcdir="$ac_given_srcdir" ;;
 
16613
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
16614
        esac
 
16615
        # Treat a directory as a PO directory if and only if it has a
 
16616
        # POTFILES.in file. This allows packages to have multiple PO
 
16617
        # directories under different names or in different locations.
 
16618
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
 
16619
          rm -f "$ac_dir/POTFILES"
 
16620
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
 
16621
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
 
16622
          POMAKEFILEDEPS="POTFILES.in"
 
16623
          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
 
16624
          # on $ac_dir but don't depend on user-specified configuration
 
16625
          # parameters.
 
16626
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
 
16627
            # The LINGUAS file contains the set of available languages.
 
16628
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
 
16629
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
 
16630
            fi
 
16631
            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
 
16632
            # Hide the ALL_LINGUAS assigment from automake < 1.5.
 
16633
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
 
16634
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
 
16635
          else
 
16636
            # The set of available languages was given in configure.in.
 
16637
            # Hide the ALL_LINGUAS assigment from automake < 1.5.
 
16638
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
 
16639
          fi
 
16640
          # Compute POFILES
 
16641
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
 
16642
          # Compute UPDATEPOFILES
 
16643
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
 
16644
          # Compute DUMMYPOFILES
 
16645
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
 
16646
          # Compute GMOFILES
 
16647
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
 
16648
          case "$ac_given_srcdir" in
 
16649
            .) srcdirpre= ;;
 
16650
            *) srcdirpre='$(srcdir)/' ;;
 
16651
          esac
 
16652
          POFILES=
 
16653
          UPDATEPOFILES=
 
16654
          DUMMYPOFILES=
 
16655
          GMOFILES=
 
16656
          for lang in $ALL_LINGUAS; do
 
16657
            POFILES="$POFILES $srcdirpre$lang.po"
 
16658
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
 
16659
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
 
16660
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
 
16661
          done
 
16662
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
 
16663
          # environment variable.
 
16664
          INST_LINGUAS=
 
16665
          if test -n "$ALL_LINGUAS"; then
 
16666
            for presentlang in $ALL_LINGUAS; do
 
16667
              useit=no
 
16668
              if test "%UNSET%" != "$LINGUAS"; then
 
16669
                desiredlanguages="$LINGUAS"
 
16670
              else
 
16671
                desiredlanguages="$ALL_LINGUAS"
 
16672
              fi
 
16673
              for desiredlang in $desiredlanguages; do
 
16674
                # Use the presentlang catalog if desiredlang is
 
16675
                #   a. equal to presentlang, or
 
16676
                #   b. a variant of presentlang (because in this case,
 
16677
                #      presentlang can be used as a fallback for messages
 
16678
                #      which are not translated in the desiredlang catalog).
 
16679
                case "$desiredlang" in
 
16680
                  "$presentlang"*) useit=yes;;
 
16681
                esac
 
16682
              done
 
16683
              if test $useit = yes; then
 
16684
                INST_LINGUAS="$INST_LINGUAS $presentlang"
 
16685
              fi
 
16686
            done
 
16687
          fi
 
16688
          CATALOGS=
 
16689
          if test -n "$INST_LINGUAS"; then
 
16690
            for lang in $INST_LINGUAS; do
 
16691
              CATALOGS="$CATALOGS $lang.gmo"
 
16692
            done
 
16693
          fi
 
16694
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
 
16695
          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"
 
16696
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
 
16697
            if test -f "$f"; then
 
16698
              case "$f" in
 
16699
                *.orig | *.bak | *~) ;;
 
16700
                *) cat "$f" >> "$ac_dir/Makefile" ;;
 
16701
              esac
 
16702
            fi
 
16703
          done
 
16704
        fi
 
16705
        ;;
 
16706
      esac
 
16707
    done ;;
 
16708
    "po/stamp-it":C)
 
16709
    if  ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
 
16710
       as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
 
16711
    fi
 
16712
    rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
 
16713
    >"po/stamp-it.tmp"
 
16714
    sed '/^#/d
 
16715
         s/^[[].*] *//
 
16716
         /^[    ]*$/d
 
16717
        '"s|^|  $ac_top_srcdir/|" \
 
16718
      "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
 
16719
 
 
16720
    sed '/^POTFILES =/,/[^\\]$/ {
 
16721
                /^POTFILES =/!d
 
16722
                r po/POTFILES
 
16723
          }
 
16724
         ' "po/Makefile.in" >"po/Makefile"
 
16725
    rm -f "po/Makefile.tmp"
 
16726
    mv "po/stamp-it.tmp" "po/stamp-it"
 
16727
   ;;
 
16728
 
 
16729
  esac
 
16730
done # for ac_tag
 
16731
 
 
16732
 
 
16733
as_fn_exit 0
 
16734
_ACEOF
 
16735
ac_clean_files=$ac_clean_files_save
 
16736
 
 
16737
test $ac_write_fail = 0 ||
 
16738
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
16739
 
 
16740
 
 
16741
# configure is writing to config.log, and then calls config.status.
 
16742
# config.status does its own redirection, appending to config.log.
 
16743
# Unfortunately, on DOS this fails, as config.log is still kept open
 
16744
# by configure, so config.status won't be able to write to it; its
 
16745
# output is simply discarded.  So we exec the FD to /dev/null,
 
16746
# effectively closing config.log, so it can be properly (re)opened and
 
16747
# appended to by config.status.  When coming back to configure, we
 
16748
# need to make the FD available again.
 
16749
if test "$no_create" != yes; then
 
16750
  ac_cs_success=:
 
16751
  ac_config_status_args=
 
16752
  test "$silent" = yes &&
 
16753
    ac_config_status_args="$ac_config_status_args --quiet"
 
16754
  exec 5>/dev/null
 
16755
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
16756
  exec 5>>config.log
 
16757
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
16758
  # would make configure fail if this is the last instruction.
 
16759
  $ac_cs_success || as_fn_exit 1
 
16760
fi
 
16761
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
16762
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
16763
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
16764
fi
 
16765
 
 
16766
 
 
16767
###########################
 
16768
# Results
 
16769
###########################
 
16770
 
 
16771
{ $as_echo "$as_me:${as_lineno-$LINENO}:
 
16772
 
 
16773
Power Indicator Configuration:
 
16774
 
 
16775
        Prefix:        $prefix
 
16776
        Local Install: $with_localinstall
 
16777
" >&5
 
16778
$as_echo "$as_me:
 
16779
 
 
16780
Power Indicator Configuration:
 
16781
 
 
16782
        Prefix:        $prefix
 
16783
        Local Install: $with_localinstall
 
16784
" >&6;}