~n-muench/ubuntu/saucy/open-vm-tools/open-vm-tools.fix-1175295

« back to all changes in this revision

Viewing changes to .pc/02-procps.patch/configure

Tags: 2012.12.26-958366-0ubuntu3
* Ubuntu-specific Changes
  - debian/rules: Added LIBS field with -lpthread.
    + Fixes package compile failure for Raring and future Ubuntu Releases.

* Items merged from Debian unstable:
  (From 2:9.2.2-893683-1 release)
  - Adding remote_fs dependency in initscript.
  - Correcting architecture fields in control.

  (From 2:9.2.2-893683-2 release)
  - Removing init order to network.

  (From 2:9.2.2-893683-4 release)
  - Removing init order to network also on start.

  (From 2:9.2.2-893683-5 release)
  - Updating to standards version 3.9.4.
  - Updating year in copyright file.
  - Prefixing patches with 4 digits for consistency.
  - Tightening diff headers in patches.
  - Dropping dpkg-source compression levels.

  (From 2:9.2.2-893683-6 release)
  - Remove all references to Daniel's old email address.

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 open-vm-tools 2012.12.26.
4
 
#
5
 
# Report bugs to <open-vm-tools-devel@lists.sourceforge.net>.
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
 
test \$(( 1 + 1 )) = 2 || exit 1
178
 
 
179
 
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180
 
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181
 
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182
 
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183
 
    PATH=/empty FPATH=/empty; export PATH FPATH
184
 
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185
 
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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: open-vm-tools-devel@lists.sourceforge.net 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='open-vm-tools'
572
 
PACKAGE_TARNAME='open-vm-tools'
573
 
PACKAGE_VERSION='2012.12.26'
574
 
PACKAGE_STRING='open-vm-tools 2012.12.26'
575
 
PACKAGE_BUGREPORT='open-vm-tools-devel@lists.sourceforge.net'
576
 
PACKAGE_URL=''
577
 
 
578
 
ac_unique_file="checkvm/checkvm.c"
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
 
ac_subst_vars='am__EXEEXT_FALSE
616
 
am__EXEEXT_TRUE
617
 
LTLIBOBJS
618
 
LIBOBJS
619
 
VIX_LIBADD
620
 
LIBVMTOOLS_LIBADD
621
 
LIB_USER_CPPFLAGS
622
 
LIB_IMPERSONATE_CPPFLAGS
623
 
LIB_AUTH_CPPFLAGS
624
 
RPCGEN_WRAPPER
625
 
INSTVMSG
626
 
SYSDIR
627
 
VMUSR_PLUGIN_INSTALLDIR
628
 
VMSVC_PLUGIN_INSTALLDIR
629
 
COMMON_PLUGIN_INSTALLDIR
630
 
TEST_PLUGIN_INSTALLDIR
631
 
XDR_LIBS
632
 
RPCGENFLAGS
633
 
VMTOOLS_LIBS
634
 
VMTOOLS_CPPFLAGS
635
 
PLUGIN_LDFLAGS
636
 
PLUGIN_CPPFLAGS
637
 
PAM_PREFIX
638
 
XCOMPOSITE_LIBS
639
 
XSM_LIBS
640
 
COMMON_XLIBS
641
 
MODULES
642
 
MODULES_DIR
643
 
MODULES_OS
644
 
LINUXINCLUDE
645
 
KERNEL_RELEASE
646
 
TARGET_OS
647
 
TOOLS_VERSION
648
 
HGFS_LIBS
649
 
USE_PRINTF_WRAPPERS_FALSE
650
 
USE_PRINTF_WRAPPERS_TRUE
651
 
USE_SLASH_PROC_FALSE
652
 
USE_SLASH_PROC_TRUE
653
 
HAVE_PAM_FALSE
654
 
HAVE_PAM_TRUE
655
 
HAVE_GTKMM_FALSE
656
 
HAVE_GTKMM_TRUE
657
 
HAVE_GNU_LD_FALSE
658
 
HAVE_GNU_LD_TRUE
659
 
HAVE_FUSE_FALSE
660
 
HAVE_FUSE_TRUE
661
 
HAVE_DOXYGEN_FALSE
662
 
HAVE_DOXYGEN_TRUE
663
 
HAVE_DNET_FALSE
664
 
HAVE_DNET_TRUE
665
 
WITH_ROOT_PRIVILEGES_FALSE
666
 
WITH_ROOT_PRIVILEGES_TRUE
667
 
ENABLE_TESTS_FALSE
668
 
ENABLE_TESTS_TRUE
669
 
HAVE_XCOMPOSITE_FALSE
670
 
HAVE_XCOMPOSITE_TRUE
671
 
HAVE_XSM_FALSE
672
 
HAVE_XSM_TRUE
673
 
WITH_KERNEL_MODULES_FALSE
674
 
WITH_KERNEL_MODULES_TRUE
675
 
HAVE_ICU_FALSE
676
 
HAVE_ICU_TRUE
677
 
HAVE_X11_FALSE
678
 
HAVE_X11_TRUE
679
 
THIRTY_TWO_BIT_USERSPACE_FALSE
680
 
THIRTY_TWO_BIT_USERSPACE_TRUE
681
 
FREEBSD_CUSTOM_SYSDIR_FALSE
682
 
FREEBSD_CUSTOM_SYSDIR_TRUE
683
 
FREEBSD_FALSE
684
 
FREEBSD_TRUE
685
 
SOLARIS_FALSE
686
 
SOLARIS_TRUE
687
 
LINUX_FALSE
688
 
LINUX_TRUE
689
 
BUILD_HGFSMOUNTER_FALSE
690
 
BUILD_HGFSMOUNTER_TRUE
691
 
MSCGEN_DIR
692
 
MSCGEN
693
 
HAVE_DOT
694
 
DOT
695
 
have_doxygen
696
 
RPCGEN
697
 
ICU_LIBS
698
 
ICU_CPPFLAGS
699
 
have_cxx
700
 
DNET_LIBS
701
 
DNET_CPPFLAGS
702
 
PROCPS_LIBS
703
 
PROCPS_CPPFLAGS
704
 
GTKMM_LIBS
705
 
GTKMM_CPPFLAGS
706
 
GTK_LIBS
707
 
GTK_CPPFLAGS
708
 
CUNIT_LIBS
709
 
CUNIT_CPPFLAGS
710
 
PAM_LIBS
711
 
PAM_CPPFLAGS
712
 
FUSE_LIBS
713
 
FUSE_CPPFLAGS
714
 
have_genmarshal
715
 
GTHREAD_LIBS
716
 
GTHREAD_CPPFLAGS
717
 
GOBJECT_LIBS
718
 
GOBJECT_CPPFLAGS
719
 
GMODULE_LIBS
720
 
GMODULE_CPPFLAGS
721
 
GLIB2_LIBS
722
 
GLIB2_CPPFLAGS
723
 
ac_vmw_lib_cfg
724
 
X_EXTRA_LIBS
725
 
X_LIBS
726
 
X_PRE_LIBS
727
 
X_CFLAGS
728
 
XMKMF
729
 
HAVE_PKG_CONFIG
730
 
CXXCPP
731
 
OTOOL64
732
 
OTOOL
733
 
LIPO
734
 
NMEDIT
735
 
DSYMUTIL
736
 
MANIFEST_TOOL
737
 
RANLIB
738
 
ac_ct_AR
739
 
AR
740
 
DLLTOOL
741
 
OBJDUMP
742
 
NM
743
 
ac_ct_DUMPBIN
744
 
DUMPBIN
745
 
LD
746
 
FGREP
747
 
EGREP
748
 
GREP
749
 
LIBTOOL
750
 
LN_S
751
 
SED
752
 
am__fastdepCXX_FALSE
753
 
am__fastdepCXX_TRUE
754
 
CXXDEPMODE
755
 
ac_ct_CXX
756
 
CXXFLAGS
757
 
CXX
758
 
CPP
759
 
am__fastdepCC_FALSE
760
 
am__fastdepCC_TRUE
761
 
CCDEPMODE
762
 
am__nodep
763
 
AMDEPBACKSLASH
764
 
AMDEP_FALSE
765
 
AMDEP_TRUE
766
 
am__quote
767
 
am__include
768
 
DEPDIR
769
 
OBJEXT
770
 
EXEEXT
771
 
ac_ct_CC
772
 
CPPFLAGS
773
 
LDFLAGS
774
 
CFLAGS
775
 
CC
776
 
am__untar
777
 
am__tar
778
 
AMTAR
779
 
am__leading_dot
780
 
SET_MAKE
781
 
AWK
782
 
mkdir_p
783
 
MKDIR_P
784
 
INSTALL_STRIP_PROGRAM
785
 
STRIP
786
 
install_sh
787
 
MAKEINFO
788
 
AUTOHEADER
789
 
AUTOMAKE
790
 
AUTOCONF
791
 
ACLOCAL
792
 
VERSION
793
 
PACKAGE
794
 
CYGPATH_W
795
 
am__isrc
796
 
INSTALL_DATA
797
 
INSTALL_SCRIPT
798
 
INSTALL_PROGRAM
799
 
host_os
800
 
host_vendor
801
 
host_cpu
802
 
host
803
 
build_os
804
 
build_vendor
805
 
build_cpu
806
 
build
807
 
target_alias
808
 
host_alias
809
 
build_alias
810
 
LIBS
811
 
ECHO_T
812
 
ECHO_N
813
 
ECHO_C
814
 
DEFS
815
 
mandir
816
 
localedir
817
 
libdir
818
 
psdir
819
 
pdfdir
820
 
dvidir
821
 
htmldir
822
 
infodir
823
 
docdir
824
 
oldincludedir
825
 
includedir
826
 
localstatedir
827
 
sharedstatedir
828
 
sysconfdir
829
 
datadir
830
 
datarootdir
831
 
libexecdir
832
 
sbindir
833
 
bindir
834
 
program_transform_name
835
 
prefix
836
 
exec_prefix
837
 
PACKAGE_URL
838
 
PACKAGE_BUGREPORT
839
 
PACKAGE_STRING
840
 
PACKAGE_VERSION
841
 
PACKAGE_TARNAME
842
 
PACKAGE_NAME
843
 
PATH_SEPARATOR
844
 
SHELL'
845
 
ac_subst_files=''
846
 
ac_user_opts='
847
 
enable_option_checking
848
 
with_root_privileges
849
 
with_kernel_modules
850
 
with_kernel_release
851
 
with_linuxdir
852
 
enable_multimon
853
 
with_gtk2
854
 
with_gtkmm
855
 
enable_docs
856
 
enable_tests
857
 
enable_dependency_tracking
858
 
enable_shared
859
 
enable_static
860
 
with_pic
861
 
enable_fast_install
862
 
with_gnu_ld
863
 
with_sysroot
864
 
enable_libtool_lock
865
 
with_x
866
 
with_pam
867
 
with_pam_prefix
868
 
with_procps
869
 
with_dnet
870
 
with_icu
871
 
'
872
 
      ac_precious_vars='build_alias
873
 
host_alias
874
 
target_alias
875
 
CC
876
 
CFLAGS
877
 
LDFLAGS
878
 
LIBS
879
 
CPPFLAGS
880
 
CPP
881
 
CXX
882
 
CXXFLAGS
883
 
CCC
884
 
CXXCPP
885
 
XMKMF'
886
 
 
887
 
 
888
 
# Initialize some variables set by options.
889
 
ac_init_help=
890
 
ac_init_version=false
891
 
ac_unrecognized_opts=
892
 
ac_unrecognized_sep=
893
 
# The variables have the same names as the options, with
894
 
# dashes changed to underlines.
895
 
cache_file=/dev/null
896
 
exec_prefix=NONE
897
 
no_create=
898
 
no_recursion=
899
 
prefix=NONE
900
 
program_prefix=NONE
901
 
program_suffix=NONE
902
 
program_transform_name=s,x,x,
903
 
silent=
904
 
site=
905
 
srcdir=
906
 
verbose=
907
 
x_includes=NONE
908
 
x_libraries=NONE
909
 
 
910
 
# Installation directory options.
911
 
# These are left unexpanded so users can "make install exec_prefix=/foo"
912
 
# and all the variables that are supposed to be based on exec_prefix
913
 
# by default will actually change.
914
 
# Use braces instead of parens because sh, perl, etc. also accept them.
915
 
# (The list follows the same order as the GNU Coding Standards.)
916
 
bindir='${exec_prefix}/bin'
917
 
sbindir='${exec_prefix}/sbin'
918
 
libexecdir='${exec_prefix}/libexec'
919
 
datarootdir='${prefix}/share'
920
 
datadir='${datarootdir}'
921
 
sysconfdir='${prefix}/etc'
922
 
sharedstatedir='${prefix}/com'
923
 
localstatedir='${prefix}/var'
924
 
includedir='${prefix}/include'
925
 
oldincludedir='/usr/include'
926
 
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
927
 
infodir='${datarootdir}/info'
928
 
htmldir='${docdir}'
929
 
dvidir='${docdir}'
930
 
pdfdir='${docdir}'
931
 
psdir='${docdir}'
932
 
libdir='${exec_prefix}/lib'
933
 
localedir='${datarootdir}/locale'
934
 
mandir='${datarootdir}/man'
935
 
 
936
 
ac_prev=
937
 
ac_dashdash=
938
 
for ac_option
939
 
do
940
 
  # If the previous option needs an argument, assign it.
941
 
  if test -n "$ac_prev"; then
942
 
    eval $ac_prev=\$ac_option
943
 
    ac_prev=
944
 
    continue
945
 
  fi
946
 
 
947
 
  case $ac_option in
948
 
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
949
 
  *=)   ac_optarg= ;;
950
 
  *)    ac_optarg=yes ;;
951
 
  esac
952
 
 
953
 
  # Accept the important Cygnus configure options, so we can diagnose typos.
954
 
 
955
 
  case $ac_dashdash$ac_option in
956
 
  --)
957
 
    ac_dashdash=yes ;;
958
 
 
959
 
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
960
 
    ac_prev=bindir ;;
961
 
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
962
 
    bindir=$ac_optarg ;;
963
 
 
964
 
  -build | --build | --buil | --bui | --bu)
965
 
    ac_prev=build_alias ;;
966
 
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
967
 
    build_alias=$ac_optarg ;;
968
 
 
969
 
  -cache-file | --cache-file | --cache-fil | --cache-fi \
970
 
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
971
 
    ac_prev=cache_file ;;
972
 
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
973
 
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
974
 
    cache_file=$ac_optarg ;;
975
 
 
976
 
  --config-cache | -C)
977
 
    cache_file=config.cache ;;
978
 
 
979
 
  -datadir | --datadir | --datadi | --datad)
980
 
    ac_prev=datadir ;;
981
 
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
982
 
    datadir=$ac_optarg ;;
983
 
 
984
 
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
985
 
  | --dataroo | --dataro | --datar)
986
 
    ac_prev=datarootdir ;;
987
 
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
988
 
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
989
 
    datarootdir=$ac_optarg ;;
990
 
 
991
 
  -disable-* | --disable-*)
992
 
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
993
 
    # Reject names that are not valid shell variable names.
994
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995
 
      as_fn_error $? "invalid feature name: $ac_useropt"
996
 
    ac_useropt_orig=$ac_useropt
997
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998
 
    case $ac_user_opts in
999
 
      *"
1000
 
"enable_$ac_useropt"
1001
 
"*) ;;
1002
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1003
 
         ac_unrecognized_sep=', ';;
1004
 
    esac
1005
 
    eval enable_$ac_useropt=no ;;
1006
 
 
1007
 
  -docdir | --docdir | --docdi | --doc | --do)
1008
 
    ac_prev=docdir ;;
1009
 
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1010
 
    docdir=$ac_optarg ;;
1011
 
 
1012
 
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1013
 
    ac_prev=dvidir ;;
1014
 
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1015
 
    dvidir=$ac_optarg ;;
1016
 
 
1017
 
  -enable-* | --enable-*)
1018
 
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1019
 
    # Reject names that are not valid shell variable names.
1020
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021
 
      as_fn_error $? "invalid feature name: $ac_useropt"
1022
 
    ac_useropt_orig=$ac_useropt
1023
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024
 
    case $ac_user_opts in
1025
 
      *"
1026
 
"enable_$ac_useropt"
1027
 
"*) ;;
1028
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1029
 
         ac_unrecognized_sep=', ';;
1030
 
    esac
1031
 
    eval enable_$ac_useropt=\$ac_optarg ;;
1032
 
 
1033
 
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1034
 
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1035
 
  | --exec | --exe | --ex)
1036
 
    ac_prev=exec_prefix ;;
1037
 
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1038
 
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1039
 
  | --exec=* | --exe=* | --ex=*)
1040
 
    exec_prefix=$ac_optarg ;;
1041
 
 
1042
 
  -gas | --gas | --ga | --g)
1043
 
    # Obsolete; use --with-gas.
1044
 
    with_gas=yes ;;
1045
 
 
1046
 
  -help | --help | --hel | --he | -h)
1047
 
    ac_init_help=long ;;
1048
 
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1049
 
    ac_init_help=recursive ;;
1050
 
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1051
 
    ac_init_help=short ;;
1052
 
 
1053
 
  -host | --host | --hos | --ho)
1054
 
    ac_prev=host_alias ;;
1055
 
  -host=* | --host=* | --hos=* | --ho=*)
1056
 
    host_alias=$ac_optarg ;;
1057
 
 
1058
 
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1059
 
    ac_prev=htmldir ;;
1060
 
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1061
 
  | --ht=*)
1062
 
    htmldir=$ac_optarg ;;
1063
 
 
1064
 
  -includedir | --includedir | --includedi | --included | --include \
1065
 
  | --includ | --inclu | --incl | --inc)
1066
 
    ac_prev=includedir ;;
1067
 
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1068
 
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1069
 
    includedir=$ac_optarg ;;
1070
 
 
1071
 
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1072
 
    ac_prev=infodir ;;
1073
 
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1074
 
    infodir=$ac_optarg ;;
1075
 
 
1076
 
  -libdir | --libdir | --libdi | --libd)
1077
 
    ac_prev=libdir ;;
1078
 
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1079
 
    libdir=$ac_optarg ;;
1080
 
 
1081
 
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1082
 
  | --libexe | --libex | --libe)
1083
 
    ac_prev=libexecdir ;;
1084
 
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1085
 
  | --libexe=* | --libex=* | --libe=*)
1086
 
    libexecdir=$ac_optarg ;;
1087
 
 
1088
 
  -localedir | --localedir | --localedi | --localed | --locale)
1089
 
    ac_prev=localedir ;;
1090
 
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1091
 
    localedir=$ac_optarg ;;
1092
 
 
1093
 
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1094
 
  | --localstate | --localstat | --localsta | --localst | --locals)
1095
 
    ac_prev=localstatedir ;;
1096
 
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1097
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1098
 
    localstatedir=$ac_optarg ;;
1099
 
 
1100
 
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1101
 
    ac_prev=mandir ;;
1102
 
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1103
 
    mandir=$ac_optarg ;;
1104
 
 
1105
 
  -nfp | --nfp | --nf)
1106
 
    # Obsolete; use --without-fp.
1107
 
    with_fp=no ;;
1108
 
 
1109
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1110
 
  | --no-cr | --no-c | -n)
1111
 
    no_create=yes ;;
1112
 
 
1113
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1114
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1115
 
    no_recursion=yes ;;
1116
 
 
1117
 
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1118
 
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1119
 
  | --oldin | --oldi | --old | --ol | --o)
1120
 
    ac_prev=oldincludedir ;;
1121
 
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1122
 
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1123
 
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1124
 
    oldincludedir=$ac_optarg ;;
1125
 
 
1126
 
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1127
 
    ac_prev=prefix ;;
1128
 
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1129
 
    prefix=$ac_optarg ;;
1130
 
 
1131
 
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1132
 
  | --program-pre | --program-pr | --program-p)
1133
 
    ac_prev=program_prefix ;;
1134
 
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1135
 
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1136
 
    program_prefix=$ac_optarg ;;
1137
 
 
1138
 
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1139
 
  | --program-suf | --program-su | --program-s)
1140
 
    ac_prev=program_suffix ;;
1141
 
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1142
 
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1143
 
    program_suffix=$ac_optarg ;;
1144
 
 
1145
 
  -program-transform-name | --program-transform-name \
1146
 
  | --program-transform-nam | --program-transform-na \
1147
 
  | --program-transform-n | --program-transform- \
1148
 
  | --program-transform | --program-transfor \
1149
 
  | --program-transfo | --program-transf \
1150
 
  | --program-trans | --program-tran \
1151
 
  | --progr-tra | --program-tr | --program-t)
1152
 
    ac_prev=program_transform_name ;;
1153
 
  -program-transform-name=* | --program-transform-name=* \
1154
 
  | --program-transform-nam=* | --program-transform-na=* \
1155
 
  | --program-transform-n=* | --program-transform-=* \
1156
 
  | --program-transform=* | --program-transfor=* \
1157
 
  | --program-transfo=* | --program-transf=* \
1158
 
  | --program-trans=* | --program-tran=* \
1159
 
  | --progr-tra=* | --program-tr=* | --program-t=*)
1160
 
    program_transform_name=$ac_optarg ;;
1161
 
 
1162
 
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1163
 
    ac_prev=pdfdir ;;
1164
 
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1165
 
    pdfdir=$ac_optarg ;;
1166
 
 
1167
 
  -psdir | --psdir | --psdi | --psd | --ps)
1168
 
    ac_prev=psdir ;;
1169
 
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1170
 
    psdir=$ac_optarg ;;
1171
 
 
1172
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1173
 
  | -silent | --silent | --silen | --sile | --sil)
1174
 
    silent=yes ;;
1175
 
 
1176
 
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1177
 
    ac_prev=sbindir ;;
1178
 
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1179
 
  | --sbi=* | --sb=*)
1180
 
    sbindir=$ac_optarg ;;
1181
 
 
1182
 
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1183
 
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1184
 
  | --sharedst | --shareds | --shared | --share | --shar \
1185
 
  | --sha | --sh)
1186
 
    ac_prev=sharedstatedir ;;
1187
 
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1188
 
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1189
 
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1190
 
  | --sha=* | --sh=*)
1191
 
    sharedstatedir=$ac_optarg ;;
1192
 
 
1193
 
  -site | --site | --sit)
1194
 
    ac_prev=site ;;
1195
 
  -site=* | --site=* | --sit=*)
1196
 
    site=$ac_optarg ;;
1197
 
 
1198
 
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1199
 
    ac_prev=srcdir ;;
1200
 
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1201
 
    srcdir=$ac_optarg ;;
1202
 
 
1203
 
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1204
 
  | --syscon | --sysco | --sysc | --sys | --sy)
1205
 
    ac_prev=sysconfdir ;;
1206
 
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1207
 
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1208
 
    sysconfdir=$ac_optarg ;;
1209
 
 
1210
 
  -target | --target | --targe | --targ | --tar | --ta | --t)
1211
 
    ac_prev=target_alias ;;
1212
 
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1213
 
    target_alias=$ac_optarg ;;
1214
 
 
1215
 
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1216
 
    verbose=yes ;;
1217
 
 
1218
 
  -version | --version | --versio | --versi | --vers | -V)
1219
 
    ac_init_version=: ;;
1220
 
 
1221
 
  -with-* | --with-*)
1222
 
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1223
 
    # Reject names that are not valid shell variable names.
1224
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225
 
      as_fn_error $? "invalid package name: $ac_useropt"
1226
 
    ac_useropt_orig=$ac_useropt
1227
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228
 
    case $ac_user_opts in
1229
 
      *"
1230
 
"with_$ac_useropt"
1231
 
"*) ;;
1232
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1233
 
         ac_unrecognized_sep=', ';;
1234
 
    esac
1235
 
    eval with_$ac_useropt=\$ac_optarg ;;
1236
 
 
1237
 
  -without-* | --without-*)
1238
 
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1239
 
    # Reject names that are not valid shell variable names.
1240
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1241
 
      as_fn_error $? "invalid package name: $ac_useropt"
1242
 
    ac_useropt_orig=$ac_useropt
1243
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244
 
    case $ac_user_opts in
1245
 
      *"
1246
 
"with_$ac_useropt"
1247
 
"*) ;;
1248
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1249
 
         ac_unrecognized_sep=', ';;
1250
 
    esac
1251
 
    eval with_$ac_useropt=no ;;
1252
 
 
1253
 
  --x)
1254
 
    # Obsolete; use --with-x.
1255
 
    with_x=yes ;;
1256
 
 
1257
 
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1258
 
  | --x-incl | --x-inc | --x-in | --x-i)
1259
 
    ac_prev=x_includes ;;
1260
 
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1261
 
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1262
 
    x_includes=$ac_optarg ;;
1263
 
 
1264
 
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1265
 
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1266
 
    ac_prev=x_libraries ;;
1267
 
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1268
 
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1269
 
    x_libraries=$ac_optarg ;;
1270
 
 
1271
 
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1272
 
Try \`$0 --help' for more information"
1273
 
    ;;
1274
 
 
1275
 
  *=*)
1276
 
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1277
 
    # Reject names that are not valid shell variable names.
1278
 
    case $ac_envvar in #(
1279
 
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1280
 
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1281
 
    esac
1282
 
    eval $ac_envvar=\$ac_optarg
1283
 
    export $ac_envvar ;;
1284
 
 
1285
 
  *)
1286
 
    # FIXME: should be removed in autoconf 3.0.
1287
 
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1288
 
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1289
 
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1290
 
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1291
 
    ;;
1292
 
 
1293
 
  esac
1294
 
done
1295
 
 
1296
 
if test -n "$ac_prev"; then
1297
 
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1298
 
  as_fn_error $? "missing argument to $ac_option"
1299
 
fi
1300
 
 
1301
 
if test -n "$ac_unrecognized_opts"; then
1302
 
  case $enable_option_checking in
1303
 
    no) ;;
1304
 
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1305
 
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1306
 
  esac
1307
 
fi
1308
 
 
1309
 
# Check all directory arguments for consistency.
1310
 
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1311
 
                datadir sysconfdir sharedstatedir localstatedir includedir \
1312
 
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1313
 
                libdir localedir mandir
1314
 
do
1315
 
  eval ac_val=\$$ac_var
1316
 
  # Remove trailing slashes.
1317
 
  case $ac_val in
1318
 
    */ )
1319
 
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1320
 
      eval $ac_var=\$ac_val;;
1321
 
  esac
1322
 
  # Be sure to have absolute directory names.
1323
 
  case $ac_val in
1324
 
    [\\/$]* | ?:[\\/]* )  continue;;
1325
 
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1326
 
  esac
1327
 
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1328
 
done
1329
 
 
1330
 
# There might be people who depend on the old broken behavior: `$host'
1331
 
# used to hold the argument of --host etc.
1332
 
# FIXME: To remove some day.
1333
 
build=$build_alias
1334
 
host=$host_alias
1335
 
target=$target_alias
1336
 
 
1337
 
# FIXME: To remove some day.
1338
 
if test "x$host_alias" != x; then
1339
 
  if test "x$build_alias" = x; then
1340
 
    cross_compiling=maybe
1341
 
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1342
 
    If a cross compiler is detected then cross compile mode will be used" >&2
1343
 
  elif test "x$build_alias" != "x$host_alias"; then
1344
 
    cross_compiling=yes
1345
 
  fi
1346
 
fi
1347
 
 
1348
 
ac_tool_prefix=
1349
 
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1350
 
 
1351
 
test "$silent" = yes && exec 6>/dev/null
1352
 
 
1353
 
 
1354
 
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1355
 
ac_ls_di=`ls -di .` &&
1356
 
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1357
 
  as_fn_error $? "working directory cannot be determined"
1358
 
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1359
 
  as_fn_error $? "pwd does not report name of working directory"
1360
 
 
1361
 
 
1362
 
# Find the source files, if location was not specified.
1363
 
if test -z "$srcdir"; then
1364
 
  ac_srcdir_defaulted=yes
1365
 
  # Try the directory containing this script, then the parent directory.
1366
 
  ac_confdir=`$as_dirname -- "$as_myself" ||
1367
 
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368
 
         X"$as_myself" : 'X\(//\)[^/]' \| \
1369
 
         X"$as_myself" : 'X\(//\)$' \| \
1370
 
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1371
 
$as_echo X"$as_myself" |
1372
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373
 
            s//\1/
1374
 
            q
1375
 
          }
1376
 
          /^X\(\/\/\)[^/].*/{
1377
 
            s//\1/
1378
 
            q
1379
 
          }
1380
 
          /^X\(\/\/\)$/{
1381
 
            s//\1/
1382
 
            q
1383
 
          }
1384
 
          /^X\(\/\).*/{
1385
 
            s//\1/
1386
 
            q
1387
 
          }
1388
 
          s/.*/./; q'`
1389
 
  srcdir=$ac_confdir
1390
 
  if test ! -r "$srcdir/$ac_unique_file"; then
1391
 
    srcdir=..
1392
 
  fi
1393
 
else
1394
 
  ac_srcdir_defaulted=no
1395
 
fi
1396
 
if test ! -r "$srcdir/$ac_unique_file"; then
1397
 
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1398
 
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1399
 
fi
1400
 
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1401
 
ac_abs_confdir=`(
1402
 
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1403
 
        pwd)`
1404
 
# When building in place, set srcdir=.
1405
 
if test "$ac_abs_confdir" = "$ac_pwd"; then
1406
 
  srcdir=.
1407
 
fi
1408
 
# Remove unnecessary trailing slashes from srcdir.
1409
 
# Double slashes in file names in object file debugging info
1410
 
# mess up M-x gdb in Emacs.
1411
 
case $srcdir in
1412
 
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1413
 
esac
1414
 
for ac_var in $ac_precious_vars; do
1415
 
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1416
 
  eval ac_env_${ac_var}_value=\$${ac_var}
1417
 
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1418
 
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1419
 
done
1420
 
 
1421
 
#
1422
 
# Report the --help message.
1423
 
#
1424
 
if test "$ac_init_help" = "long"; then
1425
 
  # Omit some internal or obsolete options to make the list less imposing.
1426
 
  # This message is too long to be a string in the A/UX 3.1 sh.
1427
 
  cat <<_ACEOF
1428
 
\`configure' configures open-vm-tools 2012.12.26 to adapt to many kinds of systems.
1429
 
 
1430
 
Usage: $0 [OPTION]... [VAR=VALUE]...
1431
 
 
1432
 
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1433
 
VAR=VALUE.  See below for descriptions of some of the useful variables.
1434
 
 
1435
 
Defaults for the options are specified in brackets.
1436
 
 
1437
 
Configuration:
1438
 
  -h, --help              display this help and exit
1439
 
      --help=short        display options specific to this package
1440
 
      --help=recursive    display the short help of all the included packages
1441
 
  -V, --version           display version information and exit
1442
 
  -q, --quiet, --silent   do not print \`checking ...' messages
1443
 
      --cache-file=FILE   cache test results in FILE [disabled]
1444
 
  -C, --config-cache      alias for \`--cache-file=config.cache'
1445
 
  -n, --no-create         do not create output files
1446
 
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1447
 
 
1448
 
Installation directories:
1449
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
1450
 
                          [$ac_default_prefix]
1451
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1452
 
                          [PREFIX]
1453
 
 
1454
 
By default, \`make install' will install all the files in
1455
 
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1456
 
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1457
 
for instance \`--prefix=\$HOME'.
1458
 
 
1459
 
For better control, use the options below.
1460
 
 
1461
 
Fine tuning of the installation directories:
1462
 
  --bindir=DIR            user executables [EPREFIX/bin]
1463
 
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1464
 
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1465
 
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1466
 
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1467
 
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1468
 
  --libdir=DIR            object code libraries [EPREFIX/lib]
1469
 
  --includedir=DIR        C header files [PREFIX/include]
1470
 
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1471
 
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1472
 
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1473
 
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1474
 
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1475
 
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1476
 
  --docdir=DIR            documentation root [DATAROOTDIR/doc/open-vm-tools]
1477
 
  --htmldir=DIR           html documentation [DOCDIR]
1478
 
  --dvidir=DIR            dvi documentation [DOCDIR]
1479
 
  --pdfdir=DIR            pdf documentation [DOCDIR]
1480
 
  --psdir=DIR             ps documentation [DOCDIR]
1481
 
_ACEOF
1482
 
 
1483
 
  cat <<\_ACEOF
1484
 
 
1485
 
Program names:
1486
 
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1487
 
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1488
 
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1489
 
 
1490
 
X features:
1491
 
  --x-includes=DIR    X include files are in DIR
1492
 
  --x-libraries=DIR   X library files are in DIR
1493
 
 
1494
 
System types:
1495
 
  --build=BUILD     configure for building on BUILD [guessed]
1496
 
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1497
 
_ACEOF
1498
 
fi
1499
 
 
1500
 
if test -n "$ac_init_help"; then
1501
 
  case $ac_init_help in
1502
 
     short | recursive ) echo "Configuration of open-vm-tools 2012.12.26:";;
1503
 
   esac
1504
 
  cat <<\_ACEOF
1505
 
 
1506
 
Optional Features:
1507
 
  --disable-option-checking  ignore unrecognized --enable/--with options
1508
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1509
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1510
 
  --disable-multimon      disables multimon, enabled by default
1511
 
  --disable-docs          disables generation of API documentation; by
1512
 
                          default, docs are built if doxygen is available.
1513
 
  --disable-tests         disable compilation of test code.
1514
 
  --disable-dependency-tracking  speeds up one-time build
1515
 
  --enable-dependency-tracking   do not reject slow dependency extractors
1516
 
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1517
 
  --enable-static[=PKGS]  build static libraries [default=yes]
1518
 
  --enable-fast-install[=PKGS]
1519
 
                          optimize for fast installation [default=yes]
1520
 
  --disable-libtool-lock  avoid locking (might break parallel builds)
1521
 
 
1522
 
Optional Packages:
1523
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1524
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1525
 
  --without-root-privileges
1526
 
                          does not perform any operations that require root
1527
 
                          privileges
1528
 
  --without-kernel-modules
1529
 
                          does not compile or install the kernel modules
1530
 
  --with-kernel-release   specifies the kernel release you want to build
1531
 
                          against
1532
 
  --with-linuxdir         specifies the Linux directory you want to use
1533
 
  --without-gtk2          compiles without Gtk 2.0
1534
 
  --without-gtkmm         compiles without Gtkmm, sigc++, and related libs
1535
 
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1536
 
                          both]
1537
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1538
 
  --with-sysroot=DIR Search for dependent libraries within DIR
1539
 
                        (or the compiler's sysroot if not specified).
1540
 
  --with-x                use the X Window System
1541
 
  --without-pam           compiles without PAM support.
1542
 
  --with-pam-prefix       specifies where pam files go. Default is
1543
 
                          $(sysconfdir)
1544
 
  --without-procps        compiles without libproc (disables support for
1545
 
                          meminfo)
1546
 
  --without-dnet          compiles without libdnet (disables support for
1547
 
                          nicinfo)
1548
 
  --without-icu           disables support for ICU
1549
 
 
1550
 
Some influential environment variables:
1551
 
  CC          C compiler command
1552
 
  CFLAGS      C compiler flags
1553
 
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1554
 
              nonstandard directory <lib dir>
1555
 
  LIBS        libraries to pass to the linker, e.g. -l<library>
1556
 
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1557
 
              you have headers in a nonstandard directory <include dir>
1558
 
  CPP         C preprocessor
1559
 
  CXX         C++ compiler command
1560
 
  CXXFLAGS    C++ compiler flags
1561
 
  CXXCPP      C++ preprocessor
1562
 
  XMKMF       Path to xmkmf, Makefile generator for X Window System
1563
 
 
1564
 
Use these variables to override the choices made by `configure' or to help
1565
 
it to find libraries and programs with nonstandard names/locations.
1566
 
 
1567
 
Report bugs to <open-vm-tools-devel@lists.sourceforge.net>.
1568
 
_ACEOF
1569
 
ac_status=$?
1570
 
fi
1571
 
 
1572
 
if test "$ac_init_help" = "recursive"; then
1573
 
  # If there are subdirs, report their specific --help.
1574
 
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1575
 
    test -d "$ac_dir" ||
1576
 
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1577
 
      continue
1578
 
    ac_builddir=.
1579
 
 
1580
 
case "$ac_dir" in
1581
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582
 
*)
1583
 
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1584
 
  # A ".." for each directory in $ac_dir_suffix.
1585
 
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1586
 
  case $ac_top_builddir_sub in
1587
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1589
 
  esac ;;
1590
 
esac
1591
 
ac_abs_top_builddir=$ac_pwd
1592
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1593
 
# for backward compatibility:
1594
 
ac_top_builddir=$ac_top_build_prefix
1595
 
 
1596
 
case $srcdir in
1597
 
  .)  # We are building in place.
1598
 
    ac_srcdir=.
1599
 
    ac_top_srcdir=$ac_top_builddir_sub
1600
 
    ac_abs_top_srcdir=$ac_pwd ;;
1601
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
1602
 
    ac_srcdir=$srcdir$ac_dir_suffix;
1603
 
    ac_top_srcdir=$srcdir
1604
 
    ac_abs_top_srcdir=$srcdir ;;
1605
 
  *) # Relative name.
1606
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1607
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1608
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1609
 
esac
1610
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1611
 
 
1612
 
    cd "$ac_dir" || { ac_status=$?; continue; }
1613
 
    # Check for guested configure.
1614
 
    if test -f "$ac_srcdir/configure.gnu"; then
1615
 
      echo &&
1616
 
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1617
 
    elif test -f "$ac_srcdir/configure"; then
1618
 
      echo &&
1619
 
      $SHELL "$ac_srcdir/configure" --help=recursive
1620
 
    else
1621
 
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1622
 
    fi || ac_status=$?
1623
 
    cd "$ac_pwd" || { ac_status=$?; break; }
1624
 
  done
1625
 
fi
1626
 
 
1627
 
test -n "$ac_init_help" && exit $ac_status
1628
 
if $ac_init_version; then
1629
 
  cat <<\_ACEOF
1630
 
open-vm-tools configure 2012.12.26
1631
 
generated by GNU Autoconf 2.68
1632
 
 
1633
 
Copyright (C) 2010 Free Software Foundation, Inc.
1634
 
This configure script is free software; the Free Software Foundation
1635
 
gives unlimited permission to copy, distribute and modify it.
1636
 
_ACEOF
1637
 
  exit
1638
 
fi
1639
 
 
1640
 
## ------------------------ ##
1641
 
## Autoconf initialization. ##
1642
 
## ------------------------ ##
1643
 
 
1644
 
# ac_fn_c_try_compile LINENO
1645
 
# --------------------------
1646
 
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1647
 
ac_fn_c_try_compile ()
1648
 
{
1649
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650
 
  rm -f conftest.$ac_objext
1651
 
  if { { ac_try="$ac_compile"
1652
 
case "(($ac_try" in
1653
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654
 
  *) ac_try_echo=$ac_try;;
1655
 
esac
1656
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657
 
$as_echo "$ac_try_echo"; } >&5
1658
 
  (eval "$ac_compile") 2>conftest.err
1659
 
  ac_status=$?
1660
 
  if test -s conftest.err; then
1661
 
    grep -v '^ *+' conftest.err >conftest.er1
1662
 
    cat conftest.er1 >&5
1663
 
    mv -f conftest.er1 conftest.err
1664
 
  fi
1665
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666
 
  test $ac_status = 0; } && {
1667
 
         test -z "$ac_c_werror_flag" ||
1668
 
         test ! -s conftest.err
1669
 
       } && test -s conftest.$ac_objext; then :
1670
 
  ac_retval=0
1671
 
else
1672
 
  $as_echo "$as_me: failed program was:" >&5
1673
 
sed 's/^/| /' conftest.$ac_ext >&5
1674
 
 
1675
 
        ac_retval=1
1676
 
fi
1677
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678
 
  as_fn_set_status $ac_retval
1679
 
 
1680
 
} # ac_fn_c_try_compile
1681
 
 
1682
 
# ac_fn_c_try_cpp LINENO
1683
 
# ----------------------
1684
 
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1685
 
ac_fn_c_try_cpp ()
1686
 
{
1687
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688
 
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1689
 
case "(($ac_try" in
1690
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691
 
  *) ac_try_echo=$ac_try;;
1692
 
esac
1693
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694
 
$as_echo "$ac_try_echo"; } >&5
1695
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1696
 
  ac_status=$?
1697
 
  if test -s conftest.err; then
1698
 
    grep -v '^ *+' conftest.err >conftest.er1
1699
 
    cat conftest.er1 >&5
1700
 
    mv -f conftest.er1 conftest.err
1701
 
  fi
1702
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703
 
  test $ac_status = 0; } > conftest.i && {
1704
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1705
 
         test ! -s conftest.err
1706
 
       }; then :
1707
 
  ac_retval=0
1708
 
else
1709
 
  $as_echo "$as_me: failed program was:" >&5
1710
 
sed 's/^/| /' conftest.$ac_ext >&5
1711
 
 
1712
 
    ac_retval=1
1713
 
fi
1714
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715
 
  as_fn_set_status $ac_retval
1716
 
 
1717
 
} # ac_fn_c_try_cpp
1718
 
 
1719
 
# ac_fn_cxx_try_compile LINENO
1720
 
# ----------------------------
1721
 
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1722
 
ac_fn_cxx_try_compile ()
1723
 
{
1724
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725
 
  rm -f conftest.$ac_objext
1726
 
  if { { ac_try="$ac_compile"
1727
 
case "(($ac_try" in
1728
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729
 
  *) ac_try_echo=$ac_try;;
1730
 
esac
1731
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732
 
$as_echo "$ac_try_echo"; } >&5
1733
 
  (eval "$ac_compile") 2>conftest.err
1734
 
  ac_status=$?
1735
 
  if test -s conftest.err; then
1736
 
    grep -v '^ *+' conftest.err >conftest.er1
1737
 
    cat conftest.er1 >&5
1738
 
    mv -f conftest.er1 conftest.err
1739
 
  fi
1740
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741
 
  test $ac_status = 0; } && {
1742
 
         test -z "$ac_cxx_werror_flag" ||
1743
 
         test ! -s conftest.err
1744
 
       } && test -s conftest.$ac_objext; then :
1745
 
  ac_retval=0
1746
 
else
1747
 
  $as_echo "$as_me: failed program was:" >&5
1748
 
sed 's/^/| /' conftest.$ac_ext >&5
1749
 
 
1750
 
        ac_retval=1
1751
 
fi
1752
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753
 
  as_fn_set_status $ac_retval
1754
 
 
1755
 
} # ac_fn_cxx_try_compile
1756
 
 
1757
 
# ac_fn_c_try_link LINENO
1758
 
# -----------------------
1759
 
# Try to link conftest.$ac_ext, and return whether this succeeded.
1760
 
ac_fn_c_try_link ()
1761
 
{
1762
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763
 
  rm -f conftest.$ac_objext conftest$ac_exeext
1764
 
  if { { ac_try="$ac_link"
1765
 
case "(($ac_try" in
1766
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767
 
  *) ac_try_echo=$ac_try;;
1768
 
esac
1769
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770
 
$as_echo "$ac_try_echo"; } >&5
1771
 
  (eval "$ac_link") 2>conftest.err
1772
 
  ac_status=$?
1773
 
  if test -s conftest.err; then
1774
 
    grep -v '^ *+' conftest.err >conftest.er1
1775
 
    cat conftest.er1 >&5
1776
 
    mv -f conftest.er1 conftest.err
1777
 
  fi
1778
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779
 
  test $ac_status = 0; } && {
1780
 
         test -z "$ac_c_werror_flag" ||
1781
 
         test ! -s conftest.err
1782
 
       } && test -s conftest$ac_exeext && {
1783
 
         test "$cross_compiling" = yes ||
1784
 
         $as_test_x conftest$ac_exeext
1785
 
       }; then :
1786
 
  ac_retval=0
1787
 
else
1788
 
  $as_echo "$as_me: failed program was:" >&5
1789
 
sed 's/^/| /' conftest.$ac_ext >&5
1790
 
 
1791
 
        ac_retval=1
1792
 
fi
1793
 
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1794
 
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1795
 
  # interfere with the next link command; also delete a directory that is
1796
 
  # left behind by Apple's compiler.  We do this before executing the actions.
1797
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1798
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799
 
  as_fn_set_status $ac_retval
1800
 
 
1801
 
} # ac_fn_c_try_link
1802
 
 
1803
 
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1804
 
# -------------------------------------------------------
1805
 
# Tests whether HEADER exists and can be compiled using the include files in
1806
 
# INCLUDES, setting the cache variable VAR accordingly.
1807
 
ac_fn_c_check_header_compile ()
1808
 
{
1809
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811
 
$as_echo_n "checking for $2... " >&6; }
1812
 
if eval \${$3+:} false; then :
1813
 
  $as_echo_n "(cached) " >&6
1814
 
else
1815
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816
 
/* end confdefs.h.  */
1817
 
$4
1818
 
#include <$2>
1819
 
_ACEOF
1820
 
if ac_fn_c_try_compile "$LINENO"; then :
1821
 
  eval "$3=yes"
1822
 
else
1823
 
  eval "$3=no"
1824
 
fi
1825
 
rm -f core conftest.err conftest.$ac_objext 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_header_compile
1833
 
 
1834
 
# ac_fn_c_try_run LINENO
1835
 
# ----------------------
1836
 
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1837
 
# that executables *can* be run.
1838
 
ac_fn_c_try_run ()
1839
 
{
1840
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841
 
  if { { ac_try="$ac_link"
1842
 
case "(($ac_try" in
1843
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844
 
  *) ac_try_echo=$ac_try;;
1845
 
esac
1846
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847
 
$as_echo "$ac_try_echo"; } >&5
1848
 
  (eval "$ac_link") 2>&5
1849
 
  ac_status=$?
1850
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851
 
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1852
 
  { { case "(($ac_try" in
1853
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854
 
  *) ac_try_echo=$ac_try;;
1855
 
esac
1856
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857
 
$as_echo "$ac_try_echo"; } >&5
1858
 
  (eval "$ac_try") 2>&5
1859
 
  ac_status=$?
1860
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861
 
  test $ac_status = 0; }; }; then :
1862
 
  ac_retval=0
1863
 
else
1864
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
1865
 
       $as_echo "$as_me: failed program was:" >&5
1866
 
sed 's/^/| /' conftest.$ac_ext >&5
1867
 
 
1868
 
       ac_retval=$ac_status
1869
 
fi
1870
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1871
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872
 
  as_fn_set_status $ac_retval
1873
 
 
1874
 
} # ac_fn_c_try_run
1875
 
 
1876
 
# ac_fn_c_check_func LINENO FUNC VAR
1877
 
# ----------------------------------
1878
 
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1879
 
ac_fn_c_check_func ()
1880
 
{
1881
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883
 
$as_echo_n "checking for $2... " >&6; }
1884
 
if eval \${$3+:} false; then :
1885
 
  $as_echo_n "(cached) " >&6
1886
 
else
1887
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888
 
/* end confdefs.h.  */
1889
 
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1890
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1891
 
#define $2 innocuous_$2
1892
 
 
1893
 
/* System header to define __stub macros and hopefully few prototypes,
1894
 
    which can conflict with char $2 (); below.
1895
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1896
 
    <limits.h> exists even on freestanding compilers.  */
1897
 
 
1898
 
#ifdef __STDC__
1899
 
# include <limits.h>
1900
 
#else
1901
 
# include <assert.h>
1902
 
#endif
1903
 
 
1904
 
#undef $2
1905
 
 
1906
 
/* Override any GCC internal prototype to avoid an error.
1907
 
   Use char because int might match the return type of a GCC
1908
 
   builtin and then its argument prototype would still apply.  */
1909
 
#ifdef __cplusplus
1910
 
extern "C"
1911
 
#endif
1912
 
char $2 ();
1913
 
/* The GNU C library defines this for functions which it implements
1914
 
    to always fail with ENOSYS.  Some functions are actually named
1915
 
    something starting with __ and the normal name is an alias.  */
1916
 
#if defined __stub_$2 || defined __stub___$2
1917
 
choke me
1918
 
#endif
1919
 
 
1920
 
int
1921
 
main ()
1922
 
{
1923
 
return $2 ();
1924
 
  ;
1925
 
  return 0;
1926
 
}
1927
 
_ACEOF
1928
 
if ac_fn_c_try_link "$LINENO"; then :
1929
 
  eval "$3=yes"
1930
 
else
1931
 
  eval "$3=no"
1932
 
fi
1933
 
rm -f core conftest.err conftest.$ac_objext \
1934
 
    conftest$ac_exeext conftest.$ac_ext
1935
 
fi
1936
 
eval ac_res=\$$3
1937
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938
 
$as_echo "$ac_res" >&6; }
1939
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940
 
 
1941
 
} # ac_fn_c_check_func
1942
 
 
1943
 
# ac_fn_cxx_try_cpp LINENO
1944
 
# ------------------------
1945
 
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1946
 
ac_fn_cxx_try_cpp ()
1947
 
{
1948
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949
 
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1950
 
case "(($ac_try" in
1951
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952
 
  *) ac_try_echo=$ac_try;;
1953
 
esac
1954
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955
 
$as_echo "$ac_try_echo"; } >&5
1956
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1957
 
  ac_status=$?
1958
 
  if test -s conftest.err; then
1959
 
    grep -v '^ *+' conftest.err >conftest.er1
1960
 
    cat conftest.er1 >&5
1961
 
    mv -f conftest.er1 conftest.err
1962
 
  fi
1963
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964
 
  test $ac_status = 0; } > conftest.i && {
1965
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1966
 
         test ! -s conftest.err
1967
 
       }; then :
1968
 
  ac_retval=0
1969
 
else
1970
 
  $as_echo "$as_me: failed program was:" >&5
1971
 
sed 's/^/| /' conftest.$ac_ext >&5
1972
 
 
1973
 
    ac_retval=1
1974
 
fi
1975
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976
 
  as_fn_set_status $ac_retval
1977
 
 
1978
 
} # ac_fn_cxx_try_cpp
1979
 
 
1980
 
# ac_fn_cxx_try_link LINENO
1981
 
# -------------------------
1982
 
# Try to link conftest.$ac_ext, and return whether this succeeded.
1983
 
ac_fn_cxx_try_link ()
1984
 
{
1985
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986
 
  rm -f conftest.$ac_objext conftest$ac_exeext
1987
 
  if { { ac_try="$ac_link"
1988
 
case "(($ac_try" in
1989
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1990
 
  *) ac_try_echo=$ac_try;;
1991
 
esac
1992
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1993
 
$as_echo "$ac_try_echo"; } >&5
1994
 
  (eval "$ac_link") 2>conftest.err
1995
 
  ac_status=$?
1996
 
  if test -s conftest.err; then
1997
 
    grep -v '^ *+' conftest.err >conftest.er1
1998
 
    cat conftest.er1 >&5
1999
 
    mv -f conftest.er1 conftest.err
2000
 
  fi
2001
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2002
 
  test $ac_status = 0; } && {
2003
 
         test -z "$ac_cxx_werror_flag" ||
2004
 
         test ! -s conftest.err
2005
 
       } && test -s conftest$ac_exeext && {
2006
 
         test "$cross_compiling" = yes ||
2007
 
         $as_test_x conftest$ac_exeext
2008
 
       }; then :
2009
 
  ac_retval=0
2010
 
else
2011
 
  $as_echo "$as_me: failed program was:" >&5
2012
 
sed 's/^/| /' conftest.$ac_ext >&5
2013
 
 
2014
 
        ac_retval=1
2015
 
fi
2016
 
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2017
 
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2018
 
  # interfere with the next link command; also delete a directory that is
2019
 
  # left behind by Apple's compiler.  We do this before executing the actions.
2020
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2021
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022
 
  as_fn_set_status $ac_retval
2023
 
 
2024
 
} # ac_fn_cxx_try_link
2025
 
 
2026
 
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2027
 
# -------------------------------------------------------
2028
 
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2029
 
# the include files in INCLUDES and setting the cache variable VAR
2030
 
# accordingly.
2031
 
ac_fn_c_check_header_mongrel ()
2032
 
{
2033
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034
 
  if eval \${$3+:} false; then :
2035
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2036
 
$as_echo_n "checking for $2... " >&6; }
2037
 
if eval \${$3+:} false; then :
2038
 
  $as_echo_n "(cached) " >&6
2039
 
fi
2040
 
eval ac_res=\$$3
2041
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042
 
$as_echo "$ac_res" >&6; }
2043
 
else
2044
 
  # Is the header compilable?
2045
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2046
 
$as_echo_n "checking $2 usability... " >&6; }
2047
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048
 
/* end confdefs.h.  */
2049
 
$4
2050
 
#include <$2>
2051
 
_ACEOF
2052
 
if ac_fn_c_try_compile "$LINENO"; then :
2053
 
  ac_header_compiler=yes
2054
 
else
2055
 
  ac_header_compiler=no
2056
 
fi
2057
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2059
 
$as_echo "$ac_header_compiler" >&6; }
2060
 
 
2061
 
# Is the header present?
2062
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2063
 
$as_echo_n "checking $2 presence... " >&6; }
2064
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065
 
/* end confdefs.h.  */
2066
 
#include <$2>
2067
 
_ACEOF
2068
 
if ac_fn_c_try_cpp "$LINENO"; then :
2069
 
  ac_header_preproc=yes
2070
 
else
2071
 
  ac_header_preproc=no
2072
 
fi
2073
 
rm -f conftest.err conftest.i conftest.$ac_ext
2074
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2075
 
$as_echo "$ac_header_preproc" >&6; }
2076
 
 
2077
 
# So?  What about this header?
2078
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2079
 
  yes:no: )
2080
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2081
 
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2082
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2083
 
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2084
 
    ;;
2085
 
  no:yes:* )
2086
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2087
 
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2088
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2089
 
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2090
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2091
 
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2092
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2093
 
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2094
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2095
 
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2096
 
( $as_echo "## -------------------------------------------------------- ##
2097
 
## Report this to open-vm-tools-devel@lists.sourceforge.net ##
2098
 
## -------------------------------------------------------- ##"
2099
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
2100
 
    ;;
2101
 
esac
2102
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2103
 
$as_echo_n "checking for $2... " >&6; }
2104
 
if eval \${$3+:} false; then :
2105
 
  $as_echo_n "(cached) " >&6
2106
 
else
2107
 
  eval "$3=\$ac_header_compiler"
2108
 
fi
2109
 
eval ac_res=\$$3
2110
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111
 
$as_echo "$ac_res" >&6; }
2112
 
fi
2113
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2114
 
 
2115
 
} # ac_fn_c_check_header_mongrel
2116
 
 
2117
 
# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2118
 
# ---------------------------------------------------------
2119
 
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2120
 
# the include files in INCLUDES and setting the cache variable VAR
2121
 
# accordingly.
2122
 
ac_fn_cxx_check_header_mongrel ()
2123
 
{
2124
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125
 
  if eval \${$3+:} false; then :
2126
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2127
 
$as_echo_n "checking for $2... " >&6; }
2128
 
if eval \${$3+:} false; then :
2129
 
  $as_echo_n "(cached) " >&6
2130
 
fi
2131
 
eval ac_res=\$$3
2132
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2133
 
$as_echo "$ac_res" >&6; }
2134
 
else
2135
 
  # Is the header compilable?
2136
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2137
 
$as_echo_n "checking $2 usability... " >&6; }
2138
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139
 
/* end confdefs.h.  */
2140
 
$4
2141
 
#include <$2>
2142
 
_ACEOF
2143
 
if ac_fn_cxx_try_compile "$LINENO"; then :
2144
 
  ac_header_compiler=yes
2145
 
else
2146
 
  ac_header_compiler=no
2147
 
fi
2148
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2150
 
$as_echo "$ac_header_compiler" >&6; }
2151
 
 
2152
 
# Is the header present?
2153
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2154
 
$as_echo_n "checking $2 presence... " >&6; }
2155
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156
 
/* end confdefs.h.  */
2157
 
#include <$2>
2158
 
_ACEOF
2159
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
2160
 
  ac_header_preproc=yes
2161
 
else
2162
 
  ac_header_preproc=no
2163
 
fi
2164
 
rm -f conftest.err conftest.i conftest.$ac_ext
2165
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2166
 
$as_echo "$ac_header_preproc" >&6; }
2167
 
 
2168
 
# So?  What about this header?
2169
 
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2170
 
  yes:no: )
2171
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2172
 
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2173
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2174
 
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2175
 
    ;;
2176
 
  no:yes:* )
2177
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2178
 
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2179
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2180
 
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2181
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2182
 
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2183
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2184
 
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2185
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2186
 
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2187
 
( $as_echo "## -------------------------------------------------------- ##
2188
 
## Report this to open-vm-tools-devel@lists.sourceforge.net ##
2189
 
## -------------------------------------------------------- ##"
2190
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
2191
 
    ;;
2192
 
esac
2193
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2194
 
$as_echo_n "checking for $2... " >&6; }
2195
 
if eval \${$3+:} false; then :
2196
 
  $as_echo_n "(cached) " >&6
2197
 
else
2198
 
  eval "$3=\$ac_header_compiler"
2199
 
fi
2200
 
eval ac_res=\$$3
2201
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2202
 
$as_echo "$ac_res" >&6; }
2203
 
fi
2204
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2205
 
 
2206
 
} # ac_fn_cxx_check_header_mongrel
2207
 
 
2208
 
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2209
 
# -------------------------------------------
2210
 
# Tests whether TYPE exists after having included INCLUDES, setting cache
2211
 
# variable VAR accordingly.
2212
 
ac_fn_c_check_type ()
2213
 
{
2214
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2215
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2216
 
$as_echo_n "checking for $2... " >&6; }
2217
 
if eval \${$3+:} false; then :
2218
 
  $as_echo_n "(cached) " >&6
2219
 
else
2220
 
  eval "$3=no"
2221
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222
 
/* end confdefs.h.  */
2223
 
$4
2224
 
int
2225
 
main ()
2226
 
{
2227
 
if (sizeof ($2))
2228
 
         return 0;
2229
 
  ;
2230
 
  return 0;
2231
 
}
2232
 
_ACEOF
2233
 
if ac_fn_c_try_compile "$LINENO"; then :
2234
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235
 
/* end confdefs.h.  */
2236
 
$4
2237
 
int
2238
 
main ()
2239
 
{
2240
 
if (sizeof (($2)))
2241
 
            return 0;
2242
 
  ;
2243
 
  return 0;
2244
 
}
2245
 
_ACEOF
2246
 
if ac_fn_c_try_compile "$LINENO"; then :
2247
 
 
2248
 
else
2249
 
  eval "$3=yes"
2250
 
fi
2251
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252
 
fi
2253
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254
 
fi
2255
 
eval ac_res=\$$3
2256
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2257
 
$as_echo "$ac_res" >&6; }
2258
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2259
 
 
2260
 
} # ac_fn_c_check_type
2261
 
 
2262
 
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2263
 
# ----------------------------------------------------
2264
 
# Tries to find if the field MEMBER exists in type AGGR, after including
2265
 
# INCLUDES, setting cache variable VAR accordingly.
2266
 
ac_fn_c_check_member ()
2267
 
{
2268
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2270
 
$as_echo_n "checking for $2.$3... " >&6; }
2271
 
if eval \${$4+:} false; then :
2272
 
  $as_echo_n "(cached) " >&6
2273
 
else
2274
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275
 
/* end confdefs.h.  */
2276
 
$5
2277
 
int
2278
 
main ()
2279
 
{
2280
 
static $2 ac_aggr;
2281
 
if (ac_aggr.$3)
2282
 
return 0;
2283
 
  ;
2284
 
  return 0;
2285
 
}
2286
 
_ACEOF
2287
 
if ac_fn_c_try_compile "$LINENO"; then :
2288
 
  eval "$4=yes"
2289
 
else
2290
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291
 
/* end confdefs.h.  */
2292
 
$5
2293
 
int
2294
 
main ()
2295
 
{
2296
 
static $2 ac_aggr;
2297
 
if (sizeof ac_aggr.$3)
2298
 
return 0;
2299
 
  ;
2300
 
  return 0;
2301
 
}
2302
 
_ACEOF
2303
 
if ac_fn_c_try_compile "$LINENO"; then :
2304
 
  eval "$4=yes"
2305
 
else
2306
 
  eval "$4=no"
2307
 
fi
2308
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309
 
fi
2310
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311
 
fi
2312
 
eval ac_res=\$$4
2313
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2314
 
$as_echo "$ac_res" >&6; }
2315
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2316
 
 
2317
 
} # ac_fn_c_check_member
2318
 
cat >config.log <<_ACEOF
2319
 
This file contains any messages produced by compilers while
2320
 
running configure, to aid debugging if configure makes a mistake.
2321
 
 
2322
 
It was created by open-vm-tools $as_me 2012.12.26, which was
2323
 
generated by GNU Autoconf 2.68.  Invocation command line was
2324
 
 
2325
 
  $ $0 $@
2326
 
 
2327
 
_ACEOF
2328
 
exec 5>>config.log
2329
 
{
2330
 
cat <<_ASUNAME
2331
 
## --------- ##
2332
 
## Platform. ##
2333
 
## --------- ##
2334
 
 
2335
 
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2336
 
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2337
 
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2338
 
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2339
 
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2340
 
 
2341
 
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2342
 
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2343
 
 
2344
 
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2345
 
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2346
 
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2347
 
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2348
 
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2349
 
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2350
 
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2351
 
 
2352
 
_ASUNAME
2353
 
 
2354
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355
 
for as_dir in $PATH
2356
 
do
2357
 
  IFS=$as_save_IFS
2358
 
  test -z "$as_dir" && as_dir=.
2359
 
    $as_echo "PATH: $as_dir"
2360
 
  done
2361
 
IFS=$as_save_IFS
2362
 
 
2363
 
} >&5
2364
 
 
2365
 
cat >&5 <<_ACEOF
2366
 
 
2367
 
 
2368
 
## ----------- ##
2369
 
## Core tests. ##
2370
 
## ----------- ##
2371
 
 
2372
 
_ACEOF
2373
 
 
2374
 
 
2375
 
# Keep a trace of the command line.
2376
 
# Strip out --no-create and --no-recursion so they do not pile up.
2377
 
# Strip out --silent because we don't want to record it for future runs.
2378
 
# Also quote any args containing shell meta-characters.
2379
 
# Make two passes to allow for proper duplicate-argument suppression.
2380
 
ac_configure_args=
2381
 
ac_configure_args0=
2382
 
ac_configure_args1=
2383
 
ac_must_keep_next=false
2384
 
for ac_pass in 1 2
2385
 
do
2386
 
  for ac_arg
2387
 
  do
2388
 
    case $ac_arg in
2389
 
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2390
 
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2391
 
    | -silent | --silent | --silen | --sile | --sil)
2392
 
      continue ;;
2393
 
    *\'*)
2394
 
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2395
 
    esac
2396
 
    case $ac_pass in
2397
 
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2398
 
    2)
2399
 
      as_fn_append ac_configure_args1 " '$ac_arg'"
2400
 
      if test $ac_must_keep_next = true; then
2401
 
        ac_must_keep_next=false # Got value, back to normal.
2402
 
      else
2403
 
        case $ac_arg in
2404
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
2405
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2406
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2407
 
          | -with-* | --with-* | -without-* | --without-* | --x)
2408
 
            case "$ac_configure_args0 " in
2409
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2410
 
            esac
2411
 
            ;;
2412
 
          -* ) ac_must_keep_next=true ;;
2413
 
        esac
2414
 
      fi
2415
 
      as_fn_append ac_configure_args " '$ac_arg'"
2416
 
      ;;
2417
 
    esac
2418
 
  done
2419
 
done
2420
 
{ ac_configure_args0=; unset ac_configure_args0;}
2421
 
{ ac_configure_args1=; unset ac_configure_args1;}
2422
 
 
2423
 
# When interrupted or exit'd, cleanup temporary files, and complete
2424
 
# config.log.  We remove comments because anyway the quotes in there
2425
 
# would cause problems or look ugly.
2426
 
# WARNING: Use '\'' to represent an apostrophe within the trap.
2427
 
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2428
 
trap 'exit_status=$?
2429
 
  # Save into config.log some information that might help in debugging.
2430
 
  {
2431
 
    echo
2432
 
 
2433
 
    $as_echo "## ---------------- ##
2434
 
## Cache variables. ##
2435
 
## ---------------- ##"
2436
 
    echo
2437
 
    # The following way of writing the cache mishandles newlines in values,
2438
 
(
2439
 
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2440
 
    eval ac_val=\$$ac_var
2441
 
    case $ac_val in #(
2442
 
    *${as_nl}*)
2443
 
      case $ac_var in #(
2444
 
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2445
 
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2446
 
      esac
2447
 
      case $ac_var in #(
2448
 
      _ | IFS | as_nl) ;; #(
2449
 
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2450
 
      *) { eval $ac_var=; unset $ac_var;} ;;
2451
 
      esac ;;
2452
 
    esac
2453
 
  done
2454
 
  (set) 2>&1 |
2455
 
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2456
 
    *${as_nl}ac_space=\ *)
2457
 
      sed -n \
2458
 
        "s/'\''/'\''\\\\'\'''\''/g;
2459
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2460
 
      ;; #(
2461
 
    *)
2462
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2463
 
      ;;
2464
 
    esac |
2465
 
    sort
2466
 
)
2467
 
    echo
2468
 
 
2469
 
    $as_echo "## ----------------- ##
2470
 
## Output variables. ##
2471
 
## ----------------- ##"
2472
 
    echo
2473
 
    for ac_var in $ac_subst_vars
2474
 
    do
2475
 
      eval ac_val=\$$ac_var
2476
 
      case $ac_val in
2477
 
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2478
 
      esac
2479
 
      $as_echo "$ac_var='\''$ac_val'\''"
2480
 
    done | sort
2481
 
    echo
2482
 
 
2483
 
    if test -n "$ac_subst_files"; then
2484
 
      $as_echo "## ------------------- ##
2485
 
## File substitutions. ##
2486
 
## ------------------- ##"
2487
 
      echo
2488
 
      for ac_var in $ac_subst_files
2489
 
      do
2490
 
        eval ac_val=\$$ac_var
2491
 
        case $ac_val in
2492
 
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2493
 
        esac
2494
 
        $as_echo "$ac_var='\''$ac_val'\''"
2495
 
      done | sort
2496
 
      echo
2497
 
    fi
2498
 
 
2499
 
    if test -s confdefs.h; then
2500
 
      $as_echo "## ----------- ##
2501
 
## confdefs.h. ##
2502
 
## ----------- ##"
2503
 
      echo
2504
 
      cat confdefs.h
2505
 
      echo
2506
 
    fi
2507
 
    test "$ac_signal" != 0 &&
2508
 
      $as_echo "$as_me: caught signal $ac_signal"
2509
 
    $as_echo "$as_me: exit $exit_status"
2510
 
  } >&5
2511
 
  rm -f core *.core core.conftest.* &&
2512
 
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2513
 
    exit $exit_status
2514
 
' 0
2515
 
for ac_signal in 1 2 13 15; do
2516
 
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2517
 
done
2518
 
ac_signal=0
2519
 
 
2520
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2521
 
rm -f -r conftest* confdefs.h
2522
 
 
2523
 
$as_echo "/* confdefs.h */" > confdefs.h
2524
 
 
2525
 
# Predefined preprocessor variables.
2526
 
 
2527
 
cat >>confdefs.h <<_ACEOF
2528
 
#define PACKAGE_NAME "$PACKAGE_NAME"
2529
 
_ACEOF
2530
 
 
2531
 
cat >>confdefs.h <<_ACEOF
2532
 
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2533
 
_ACEOF
2534
 
 
2535
 
cat >>confdefs.h <<_ACEOF
2536
 
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2537
 
_ACEOF
2538
 
 
2539
 
cat >>confdefs.h <<_ACEOF
2540
 
#define PACKAGE_STRING "$PACKAGE_STRING"
2541
 
_ACEOF
2542
 
 
2543
 
cat >>confdefs.h <<_ACEOF
2544
 
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2545
 
_ACEOF
2546
 
 
2547
 
cat >>confdefs.h <<_ACEOF
2548
 
#define PACKAGE_URL "$PACKAGE_URL"
2549
 
_ACEOF
2550
 
 
2551
 
 
2552
 
# Let the site file select an alternate cache file if it wants to.
2553
 
# Prefer an explicitly selected file to automatically selected ones.
2554
 
ac_site_file1=NONE
2555
 
ac_site_file2=NONE
2556
 
if test -n "$CONFIG_SITE"; then
2557
 
  # We do not want a PATH search for config.site.
2558
 
  case $CONFIG_SITE in #((
2559
 
    -*)  ac_site_file1=./$CONFIG_SITE;;
2560
 
    */*) ac_site_file1=$CONFIG_SITE;;
2561
 
    *)   ac_site_file1=./$CONFIG_SITE;;
2562
 
  esac
2563
 
elif test "x$prefix" != xNONE; then
2564
 
  ac_site_file1=$prefix/share/config.site
2565
 
  ac_site_file2=$prefix/etc/config.site
2566
 
else
2567
 
  ac_site_file1=$ac_default_prefix/share/config.site
2568
 
  ac_site_file2=$ac_default_prefix/etc/config.site
2569
 
fi
2570
 
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2571
 
do
2572
 
  test "x$ac_site_file" = xNONE && continue
2573
 
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2574
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2575
 
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2576
 
    sed 's/^/| /' "$ac_site_file" >&5
2577
 
    . "$ac_site_file" \
2578
 
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2579
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2580
 
as_fn_error $? "failed to load site script $ac_site_file
2581
 
See \`config.log' for more details" "$LINENO" 5; }
2582
 
  fi
2583
 
done
2584
 
 
2585
 
if test -r "$cache_file"; then
2586
 
  # Some versions of bash will fail to source /dev/null (special files
2587
 
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2588
 
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2589
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2590
 
$as_echo "$as_me: loading cache $cache_file" >&6;}
2591
 
    case $cache_file in
2592
 
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2593
 
      *)                      . "./$cache_file";;
2594
 
    esac
2595
 
  fi
2596
 
else
2597
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2598
 
$as_echo "$as_me: creating cache $cache_file" >&6;}
2599
 
  >$cache_file
2600
 
fi
2601
 
 
2602
 
# Check that the precious variables saved in the cache have kept the same
2603
 
# value.
2604
 
ac_cache_corrupted=false
2605
 
for ac_var in $ac_precious_vars; do
2606
 
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2607
 
  eval ac_new_set=\$ac_env_${ac_var}_set
2608
 
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2609
 
  eval ac_new_val=\$ac_env_${ac_var}_value
2610
 
  case $ac_old_set,$ac_new_set in
2611
 
    set,)
2612
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2613
 
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2614
 
      ac_cache_corrupted=: ;;
2615
 
    ,set)
2616
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2617
 
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2618
 
      ac_cache_corrupted=: ;;
2619
 
    ,);;
2620
 
    *)
2621
 
      if test "x$ac_old_val" != "x$ac_new_val"; then
2622
 
        # differences in whitespace do not lead to failure.
2623
 
        ac_old_val_w=`echo x $ac_old_val`
2624
 
        ac_new_val_w=`echo x $ac_new_val`
2625
 
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2626
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2627
 
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2628
 
          ac_cache_corrupted=:
2629
 
        else
2630
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2631
 
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2632
 
          eval $ac_var=\$ac_old_val
2633
 
        fi
2634
 
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2635
 
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2636
 
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2637
 
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2638
 
      fi;;
2639
 
  esac
2640
 
  # Pass precious variables to config.status.
2641
 
  if test "$ac_new_set" = set; then
2642
 
    case $ac_new_val in
2643
 
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2644
 
    *) ac_arg=$ac_var=$ac_new_val ;;
2645
 
    esac
2646
 
    case " $ac_configure_args " in
2647
 
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2648
 
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2649
 
    esac
2650
 
  fi
2651
 
done
2652
 
if $ac_cache_corrupted; then
2653
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2654
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2655
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2656
 
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2657
 
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2658
 
fi
2659
 
## -------------------- ##
2660
 
## Main body of script. ##
2661
 
## -------------------- ##
2662
 
 
2663
 
ac_ext=c
2664
 
ac_cpp='$CPP $CPPFLAGS'
2665
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2666
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2667
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2668
 
 
2669
 
 
2670
 
 
2671
 
# In order to make this configure script auto-detect situations where
2672
 
# people have a 32-bit userland running with a 64-bit kernel, we try to ask
2673
 
# the compiler (assumedly gcc) for its default Target:.
2674
 
# We have to set up $TEST_CC manually, since AC_PROG_CC hasn't yet been run (and can't be until AC_CANONICAL_HOST & AC_CANONICAL_BUILD are run)
2675
 
# The purpose of all this is to set up $host_alias/$build_alias in a more
2676
 
# intelligent way than config.guess currently does.
2677
 
TEST_CC="$CC_FOR_BUILD"
2678
 
test -z "$TEST_CC" && TEST_CC="$HOST_CC"
2679
 
test -z "$TEST_CC" && TEST_CC="$CC"
2680
 
if test -n "$TEST_CC" -a -z "$host_alias"; then
2681
 
   host_alias="`$TEST_CC -dumpmachine`"
2682
 
   if test -z "$build_alias" -a -n "$host_alias"; then
2683
 
      build_alias="$host_alias"
2684
 
   fi
2685
 
fi
2686
 
unset TEST_CC
2687
 
 
2688
 
# checkvm/checkvm.c has no special significance - we just need to pass in a file that
2689
 
# helps autoconf verify that it really has found the source tree.
2690
 
 
2691
 
 
2692
 
# Keep the top-level directory tidy by putting auxiliary build tools and local
2693
 
# macros in separate subdirectories.
2694
 
ac_aux_dir=
2695
 
for ac_dir in config "$srcdir"/config; do
2696
 
  if test -f "$ac_dir/install-sh"; then
2697
 
    ac_aux_dir=$ac_dir
2698
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
2699
 
    break
2700
 
  elif test -f "$ac_dir/install.sh"; then
2701
 
    ac_aux_dir=$ac_dir
2702
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
2703
 
    break
2704
 
  elif test -f "$ac_dir/shtool"; then
2705
 
    ac_aux_dir=$ac_dir
2706
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
2707
 
    break
2708
 
  fi
2709
 
done
2710
 
if test -z "$ac_aux_dir"; then
2711
 
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2712
 
fi
2713
 
 
2714
 
# These three variables are undocumented and unsupported,
2715
 
# and are intended to be withdrawn in a future Autoconf release.
2716
 
# They can cause serious problems if a builder's source tree is in a directory
2717
 
# whose full name contains unusual characters.
2718
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2719
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2720
 
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2721
 
 
2722
 
 
2723
 
 
2724
 
 
2725
 
# Make sure we can run config.sub.
2726
 
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2727
 
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2728
 
 
2729
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2730
 
$as_echo_n "checking build system type... " >&6; }
2731
 
if ${ac_cv_build+:} false; then :
2732
 
  $as_echo_n "(cached) " >&6
2733
 
else
2734
 
  ac_build_alias=$build_alias
2735
 
test "x$ac_build_alias" = x &&
2736
 
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2737
 
test "x$ac_build_alias" = x &&
2738
 
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2739
 
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2740
 
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2741
 
 
2742
 
fi
2743
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2744
 
$as_echo "$ac_cv_build" >&6; }
2745
 
case $ac_cv_build in
2746
 
*-*-*) ;;
2747
 
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2748
 
esac
2749
 
build=$ac_cv_build
2750
 
ac_save_IFS=$IFS; IFS='-'
2751
 
set x $ac_cv_build
2752
 
shift
2753
 
build_cpu=$1
2754
 
build_vendor=$2
2755
 
shift; shift
2756
 
# Remember, the first character of IFS is used to create $*,
2757
 
# except with old shells:
2758
 
build_os=$*
2759
 
IFS=$ac_save_IFS
2760
 
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2761
 
 
2762
 
 
2763
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2764
 
$as_echo_n "checking host system type... " >&6; }
2765
 
if ${ac_cv_host+:} false; then :
2766
 
  $as_echo_n "(cached) " >&6
2767
 
else
2768
 
  if test "x$host_alias" = x; then
2769
 
  ac_cv_host=$ac_cv_build
2770
 
else
2771
 
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2772
 
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2773
 
fi
2774
 
 
2775
 
fi
2776
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2777
 
$as_echo "$ac_cv_host" >&6; }
2778
 
case $ac_cv_host in
2779
 
*-*-*) ;;
2780
 
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2781
 
esac
2782
 
host=$ac_cv_host
2783
 
ac_save_IFS=$IFS; IFS='-'
2784
 
set x $ac_cv_host
2785
 
shift
2786
 
host_cpu=$1
2787
 
host_vendor=$2
2788
 
shift; shift
2789
 
# Remember, the first character of IFS is used to create $*,
2790
 
# except with old shells:
2791
 
host_os=$*
2792
 
IFS=$ac_save_IFS
2793
 
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2794
 
 
2795
 
 
2796
 
 
2797
 
 
2798
 
# Quote the regular expressions
2799
 
case "$host_cpu" in
2800
 
   i[3456]86)
2801
 
      userSpaceBitness="32"
2802
 
      ;;
2803
 
   x86_64)
2804
 
      userSpaceBitness="64"
2805
 
      ;;
2806
 
   *)
2807
 
      as_fn_error $? "Unknown architecture." "$LINENO" 5
2808
 
      ;;
2809
 
esac
2810
 
 
2811
 
# Operational arguments.
2812
 
 
2813
 
# Check whether --with-root-privileges was given.
2814
 
if test "${with_root_privileges+set}" = set; then :
2815
 
  withval=$with_root_privileges;
2816
 
else
2817
 
  with_root_privileges=yes
2818
 
fi
2819
 
 
2820
 
 
2821
 
# Kernel arguments.
2822
 
# The kernel args have to go here otherwise the KERNEL_RELEASE won't be visible
2823
 
# to getOsVersion()
2824
 
 
2825
 
# Check whether --with-kernel-modules was given.
2826
 
if test "${with_kernel_modules+set}" = set; then :
2827
 
  withval=$with_kernel_modules;
2828
 
else
2829
 
  with_kernel_modules=yes
2830
 
fi
2831
 
 
2832
 
 
2833
 
 
2834
 
# Check whether --with-kernel-release was given.
2835
 
if test "${with_kernel_release+set}" = set; then :
2836
 
  withval=$with_kernel_release; KERNEL_RELEASE="$withval"
2837
 
else
2838
 
  KERNEL_RELEASE=`uname -r`
2839
 
fi
2840
 
 
2841
 
 
2842
 
 
2843
 
# Check whether --with-linuxdir was given.
2844
 
if test "${with_linuxdir+set}" = set; then :
2845
 
  withval=$with_linuxdir; LINUXDIR="$withval"
2846
 
else
2847
 
  LINUXDIR=/lib/modules/$KERNEL_RELEASE
2848
 
fi
2849
 
 
2850
 
 
2851
 
# Turn the uname output into something we can run comparisons on.
2852
 
getOsVersion() {
2853
 
   major_version="`echo $KERNEL_RELEASE | cut -f1 -d. | cut -f1 -d-`"
2854
 
   minor_version="`echo $KERNEL_RELEASE | cut -f2 -d. | cut -f1 -d-`"
2855
 
   micro_version="`echo $KERNEL_RELEASE | cut -f3 -d. | cut -f1 -d-`"
2856
 
   printf '%02d%02d%03d' $major_version $minor_version $micro_version
2857
 
}
2858
 
 
2859
 
case "$host_os" in
2860
 
   linux*)
2861
 
      os="linux"
2862
 
      ;;
2863
 
   freebsd*)
2864
 
      os="freebsd"
2865
 
      ;;
2866
 
   kfreebsd*-gnu)
2867
 
      os="kfreebsd-gnu"
2868
 
      ;;
2869
 
   solaris*)
2870
 
      os="solaris"
2871
 
      ;;
2872
 
   *)
2873
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This is an untested and unsupported Operating System. Proceed at your own peril." >&5
2874
 
$as_echo "$as_me: WARNING: This is an untested and unsupported Operating System. Proceed at your own peril." >&2;}
2875
 
      ;;
2876
 
esac
2877
 
osVersion="`getOsVersion`"
2878
 
 
2879
 
if test "$with_kernel_modules" = "yes"; then
2880
 
   case "$os" in
2881
 
      linux)
2882
 
         if test "$osVersion" -lt 206009; then
2883
 
            as_fn_error $? "Kernels prior to 2.6.9 are not supported in this release of open-vm-tools. Configure using --without-kernel-modules to suppress building kernel drivers." "$LINENO" 5
2884
 
         fi
2885
 
         if test ! -d "$LINUXDIR/kernel/"; then
2886
 
             as_fn_error $? "$LINUXDIR/kernel does not exist" "$LINENO" 5
2887
 
         fi
2888
 
         LINUXINCLUDE="$LINUXDIR/build/include"
2889
 
         if test ! -d "$LINUXINCLUDE"; then
2890
 
            as_fn_error $? "Can't find include dir under $LINUXDIR" "$LINENO" 5
2891
 
         fi
2892
 
         ;;
2893
 
 
2894
 
      freebsd)
2895
 
         freebsd_sysdir=/usr/src/sys
2896
 
         if test -n "$SYSDIR"; then
2897
 
            freebsd_sysdir="$SYSDIR"
2898
 
         fi
2899
 
         if test ! -f "$freebsd_sysdir/conf/kmod.mk"; then
2900
 
            as_fn_error $? "FreeBSD kernel tree not found. Please install the kernel sources (or provide the location using SYSDIR) or configure using --without-kernel-modules." "$LINENO" 5
2901
 
         fi
2902
 
         ;;
2903
 
   esac
2904
 
fi
2905
 
 
2906
 
# Arguments for disabling individual open-vm-tools features or libraries.
2907
 
# Check whether --enable-multimon was given.
2908
 
if test "${enable_multimon+set}" = set; then :
2909
 
  enableval=$enable_multimon; enable_multimon="$enableval"
2910
 
else
2911
 
  enable_multimon="yes"
2912
 
fi
2913
 
 
2914
 
 
2915
 
 
2916
 
# Check whether --with-gtk2 was given.
2917
 
if test "${with_gtk2+set}" = set; then :
2918
 
  withval=$with_gtk2; with_gtk2="$withval"
2919
 
else
2920
 
  with_gtk2="yes"
2921
 
fi
2922
 
 
2923
 
 
2924
 
 
2925
 
# Check whether --with-gtkmm was given.
2926
 
if test "${with_gtkmm+set}" = set; then :
2927
 
  withval=$with_gtkmm; with_gtkmm="$withval"
2928
 
else
2929
 
  with_gtkmm="yes"
2930
 
fi
2931
 
 
2932
 
 
2933
 
# Check whether --enable-docs was given.
2934
 
if test "${enable_docs+set}" = set; then :
2935
 
  enableval=$enable_docs; enable_docs="$enableval"
2936
 
else
2937
 
  enable_docs="yes"
2938
 
fi
2939
 
 
2940
 
 
2941
 
# Check whether --enable-tests was given.
2942
 
if test "${enable_tests+set}" = set; then :
2943
 
  enableval=$enable_tests; enable_tests="$enableval"
2944
 
else
2945
 
  enable_tests="auto"
2946
 
fi
2947
 
 
2948
 
 
2949
 
am__api_version='1.11'
2950
 
 
2951
 
# Find a good install program.  We prefer a C program (faster),
2952
 
# so one script is as good as another.  But avoid the broken or
2953
 
# incompatible versions:
2954
 
# SysV /etc/install, /usr/sbin/install
2955
 
# SunOS /usr/etc/install
2956
 
# IRIX /sbin/install
2957
 
# AIX /bin/install
2958
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
2959
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2960
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2961
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2962
 
# OS/2's system install, which has a completely different semantic
2963
 
# ./install, which can be erroneously created by make from ./install.sh.
2964
 
# Reject install programs that cannot install multiple files.
2965
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2966
 
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2967
 
if test -z "$INSTALL"; then
2968
 
if ${ac_cv_path_install+:} false; then :
2969
 
  $as_echo_n "(cached) " >&6
2970
 
else
2971
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972
 
for as_dir in $PATH
2973
 
do
2974
 
  IFS=$as_save_IFS
2975
 
  test -z "$as_dir" && as_dir=.
2976
 
    # Account for people who put trailing slashes in PATH elements.
2977
 
case $as_dir/ in #((
2978
 
  ./ | .// | /[cC]/* | \
2979
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2980
 
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2981
 
  /usr/ucb/* ) ;;
2982
 
  *)
2983
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
2984
 
    # Don't use installbsd from OSF since it installs stuff as root
2985
 
    # by default.
2986
 
    for ac_prog in ginstall scoinst install; do
2987
 
      for ac_exec_ext in '' $ac_executable_extensions; do
2988
 
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2989
 
          if test $ac_prog = install &&
2990
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2991
 
            # AIX install.  It has an incompatible calling convention.
2992
 
            :
2993
 
          elif test $ac_prog = install &&
2994
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2995
 
            # program-specific install script used by HP pwplus--don't use.
2996
 
            :
2997
 
          else
2998
 
            rm -rf conftest.one conftest.two conftest.dir
2999
 
            echo one > conftest.one
3000
 
            echo two > conftest.two
3001
 
            mkdir conftest.dir
3002
 
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3003
 
              test -s conftest.one && test -s conftest.two &&
3004
 
              test -s conftest.dir/conftest.one &&
3005
 
              test -s conftest.dir/conftest.two
3006
 
            then
3007
 
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3008
 
              break 3
3009
 
            fi
3010
 
          fi
3011
 
        fi
3012
 
      done
3013
 
    done
3014
 
    ;;
3015
 
esac
3016
 
 
3017
 
  done
3018
 
IFS=$as_save_IFS
3019
 
 
3020
 
rm -rf conftest.one conftest.two conftest.dir
3021
 
 
3022
 
fi
3023
 
  if test "${ac_cv_path_install+set}" = set; then
3024
 
    INSTALL=$ac_cv_path_install
3025
 
  else
3026
 
    # As a last resort, use the slow shell script.  Don't cache a
3027
 
    # value for INSTALL within a source directory, because that will
3028
 
    # break other packages using the cache if that directory is
3029
 
    # removed, or if the value is a relative name.
3030
 
    INSTALL=$ac_install_sh
3031
 
  fi
3032
 
fi
3033
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3034
 
$as_echo "$INSTALL" >&6; }
3035
 
 
3036
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3037
 
# It thinks the first close brace ends the variable substitution.
3038
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3039
 
 
3040
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3041
 
 
3042
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3043
 
 
3044
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3045
 
$as_echo_n "checking whether build environment is sane... " >&6; }
3046
 
# Just in case
3047
 
sleep 1
3048
 
echo timestamp > conftest.file
3049
 
# Reject unsafe characters in $srcdir or the absolute working directory
3050
 
# name.  Accept space and tab only in the latter.
3051
 
am_lf='
3052
 
'
3053
 
case `pwd` in
3054
 
  *[\\\"\#\$\&\'\`$am_lf]*)
3055
 
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3056
 
esac
3057
 
case $srcdir in
3058
 
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3059
 
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3060
 
esac
3061
 
 
3062
 
# Do `set' in a subshell so we don't clobber the current shell's
3063
 
# arguments.  Must try -L first in case configure is actually a
3064
 
# symlink; some systems play weird games with the mod time of symlinks
3065
 
# (eg FreeBSD returns the mod time of the symlink's containing
3066
 
# directory).
3067
 
if (
3068
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3069
 
   if test "$*" = "X"; then
3070
 
      # -L didn't work.
3071
 
      set X `ls -t "$srcdir/configure" conftest.file`
3072
 
   fi
3073
 
   rm -f conftest.file
3074
 
   if test "$*" != "X $srcdir/configure conftest.file" \
3075
 
      && test "$*" != "X conftest.file $srcdir/configure"; then
3076
 
 
3077
 
      # If neither matched, then we have a broken ls.  This can happen
3078
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
3079
 
      # broken ls alias from the environment.  This has actually
3080
 
      # happened.  Such a system could not be considered "sane".
3081
 
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3082
 
alias in your environment" "$LINENO" 5
3083
 
   fi
3084
 
 
3085
 
   test "$2" = conftest.file
3086
 
   )
3087
 
then
3088
 
   # Ok.
3089
 
   :
3090
 
else
3091
 
   as_fn_error $? "newly created file is older than distributed files!
3092
 
Check your system clock" "$LINENO" 5
3093
 
fi
3094
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3095
 
$as_echo "yes" >&6; }
3096
 
test "$program_prefix" != NONE &&
3097
 
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3098
 
# Use a double $ so make ignores it.
3099
 
test "$program_suffix" != NONE &&
3100
 
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3101
 
# Double any \ or $.
3102
 
# By default was `s,x,x', remove it if useless.
3103
 
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3104
 
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3105
 
 
3106
 
# expand $ac_aux_dir to an absolute path
3107
 
am_aux_dir=`cd $ac_aux_dir && pwd`
3108
 
 
3109
 
if test x"${MISSING+set}" != xset; then
3110
 
  case $am_aux_dir in
3111
 
  *\ * | *\     *)
3112
 
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3113
 
  *)
3114
 
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3115
 
  esac
3116
 
fi
3117
 
# Use eval to expand $SHELL
3118
 
if eval "$MISSING --run true"; then
3119
 
  am_missing_run="$MISSING --run "
3120
 
else
3121
 
  am_missing_run=
3122
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3123
 
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3124
 
fi
3125
 
 
3126
 
if test x"${install_sh}" != xset; then
3127
 
  case $am_aux_dir in
3128
 
  *\ * | *\     *)
3129
 
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3130
 
  *)
3131
 
    install_sh="\${SHELL} $am_aux_dir/install-sh"
3132
 
  esac
3133
 
fi
3134
 
 
3135
 
# Installed binaries are usually stripped using `strip' when the user
3136
 
# run `make install-strip'.  However `strip' might not be the right
3137
 
# tool to use in cross-compilation environments, therefore Automake
3138
 
# will honor the `STRIP' environment variable to overrule this program.
3139
 
if test "$cross_compiling" != no; then
3140
 
  if test -n "$ac_tool_prefix"; then
3141
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3142
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
3143
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144
 
$as_echo_n "checking for $ac_word... " >&6; }
3145
 
if ${ac_cv_prog_STRIP+:} false; then :
3146
 
  $as_echo_n "(cached) " >&6
3147
 
else
3148
 
  if test -n "$STRIP"; then
3149
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3150
 
else
3151
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152
 
for as_dir in $PATH
3153
 
do
3154
 
  IFS=$as_save_IFS
3155
 
  test -z "$as_dir" && as_dir=.
3156
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3157
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3158
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3159
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160
 
    break 2
3161
 
  fi
3162
 
done
3163
 
  done
3164
 
IFS=$as_save_IFS
3165
 
 
3166
 
fi
3167
 
fi
3168
 
STRIP=$ac_cv_prog_STRIP
3169
 
if test -n "$STRIP"; then
3170
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3171
 
$as_echo "$STRIP" >&6; }
3172
 
else
3173
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174
 
$as_echo "no" >&6; }
3175
 
fi
3176
 
 
3177
 
 
3178
 
fi
3179
 
if test -z "$ac_cv_prog_STRIP"; then
3180
 
  ac_ct_STRIP=$STRIP
3181
 
  # Extract the first word of "strip", so it can be a program name with args.
3182
 
set dummy strip; ac_word=$2
3183
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184
 
$as_echo_n "checking for $ac_word... " >&6; }
3185
 
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3186
 
  $as_echo_n "(cached) " >&6
3187
 
else
3188
 
  if test -n "$ac_ct_STRIP"; then
3189
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3190
 
else
3191
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192
 
for as_dir in $PATH
3193
 
do
3194
 
  IFS=$as_save_IFS
3195
 
  test -z "$as_dir" && as_dir=.
3196
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3197
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3198
 
    ac_cv_prog_ac_ct_STRIP="strip"
3199
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200
 
    break 2
3201
 
  fi
3202
 
done
3203
 
  done
3204
 
IFS=$as_save_IFS
3205
 
 
3206
 
fi
3207
 
fi
3208
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3209
 
if test -n "$ac_ct_STRIP"; then
3210
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3211
 
$as_echo "$ac_ct_STRIP" >&6; }
3212
 
else
3213
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214
 
$as_echo "no" >&6; }
3215
 
fi
3216
 
 
3217
 
  if test "x$ac_ct_STRIP" = x; then
3218
 
    STRIP=":"
3219
 
  else
3220
 
    case $cross_compiling:$ac_tool_warned in
3221
 
yes:)
3222
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3223
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3224
 
ac_tool_warned=yes ;;
3225
 
esac
3226
 
    STRIP=$ac_ct_STRIP
3227
 
  fi
3228
 
else
3229
 
  STRIP="$ac_cv_prog_STRIP"
3230
 
fi
3231
 
 
3232
 
fi
3233
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3234
 
 
3235
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3236
 
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3237
 
if test -z "$MKDIR_P"; then
3238
 
  if ${ac_cv_path_mkdir+:} false; then :
3239
 
  $as_echo_n "(cached) " >&6
3240
 
else
3241
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242
 
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3243
 
do
3244
 
  IFS=$as_save_IFS
3245
 
  test -z "$as_dir" && as_dir=.
3246
 
    for ac_prog in mkdir gmkdir; do
3247
 
         for ac_exec_ext in '' $ac_executable_extensions; do
3248
 
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3249
 
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3250
 
             'mkdir (GNU coreutils) '* | \
3251
 
             'mkdir (coreutils) '* | \
3252
 
             'mkdir (fileutils) '4.1*)
3253
 
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3254
 
               break 3;;
3255
 
           esac
3256
 
         done
3257
 
       done
3258
 
  done
3259
 
IFS=$as_save_IFS
3260
 
 
3261
 
fi
3262
 
 
3263
 
  test -d ./--version && rmdir ./--version
3264
 
  if test "${ac_cv_path_mkdir+set}" = set; then
3265
 
    MKDIR_P="$ac_cv_path_mkdir -p"
3266
 
  else
3267
 
    # As a last resort, use the slow shell script.  Don't cache a
3268
 
    # value for MKDIR_P within a source directory, because that will
3269
 
    # break other packages using the cache if that directory is
3270
 
    # removed, or if the value is a relative name.
3271
 
    MKDIR_P="$ac_install_sh -d"
3272
 
  fi
3273
 
fi
3274
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3275
 
$as_echo "$MKDIR_P" >&6; }
3276
 
 
3277
 
mkdir_p="$MKDIR_P"
3278
 
case $mkdir_p in
3279
 
  [\\/$]* | ?:[\\/]*) ;;
3280
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3281
 
esac
3282
 
 
3283
 
for ac_prog in gawk mawk nawk awk
3284
 
do
3285
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3286
 
set dummy $ac_prog; ac_word=$2
3287
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288
 
$as_echo_n "checking for $ac_word... " >&6; }
3289
 
if ${ac_cv_prog_AWK+:} false; then :
3290
 
  $as_echo_n "(cached) " >&6
3291
 
else
3292
 
  if test -n "$AWK"; then
3293
 
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3294
 
else
3295
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296
 
for as_dir in $PATH
3297
 
do
3298
 
  IFS=$as_save_IFS
3299
 
  test -z "$as_dir" && as_dir=.
3300
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3301
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3302
 
    ac_cv_prog_AWK="$ac_prog"
3303
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304
 
    break 2
3305
 
  fi
3306
 
done
3307
 
  done
3308
 
IFS=$as_save_IFS
3309
 
 
3310
 
fi
3311
 
fi
3312
 
AWK=$ac_cv_prog_AWK
3313
 
if test -n "$AWK"; then
3314
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3315
 
$as_echo "$AWK" >&6; }
3316
 
else
3317
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318
 
$as_echo "no" >&6; }
3319
 
fi
3320
 
 
3321
 
 
3322
 
  test -n "$AWK" && break
3323
 
done
3324
 
 
3325
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3326
 
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3327
 
set x ${MAKE-make}
3328
 
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3329
 
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3330
 
  $as_echo_n "(cached) " >&6
3331
 
else
3332
 
  cat >conftest.make <<\_ACEOF
3333
 
SHELL = /bin/sh
3334
 
all:
3335
 
        @echo '@@@%%%=$(MAKE)=@@@%%%'
3336
 
_ACEOF
3337
 
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3338
 
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3339
 
  *@@@%%%=?*=@@@%%%*)
3340
 
    eval ac_cv_prog_make_${ac_make}_set=yes;;
3341
 
  *)
3342
 
    eval ac_cv_prog_make_${ac_make}_set=no;;
3343
 
esac
3344
 
rm -f conftest.make
3345
 
fi
3346
 
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3347
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3348
 
$as_echo "yes" >&6; }
3349
 
  SET_MAKE=
3350
 
else
3351
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352
 
$as_echo "no" >&6; }
3353
 
  SET_MAKE="MAKE=${MAKE-make}"
3354
 
fi
3355
 
 
3356
 
rm -rf .tst 2>/dev/null
3357
 
mkdir .tst 2>/dev/null
3358
 
if test -d .tst; then
3359
 
  am__leading_dot=.
3360
 
else
3361
 
  am__leading_dot=_
3362
 
fi
3363
 
rmdir .tst 2>/dev/null
3364
 
 
3365
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
3366
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3367
 
  # is not polluted with repeated "-I."
3368
 
  am__isrc=' -I$(srcdir)'
3369
 
  # test to see if srcdir already configured
3370
 
  if test -f $srcdir/config.status; then
3371
 
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3372
 
  fi
3373
 
fi
3374
 
 
3375
 
# test whether we have cygpath
3376
 
if test -z "$CYGPATH_W"; then
3377
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
3378
 
    CYGPATH_W='cygpath -w'
3379
 
  else
3380
 
    CYGPATH_W=echo
3381
 
  fi
3382
 
fi
3383
 
 
3384
 
 
3385
 
# Define the identity of the package.
3386
 
 PACKAGE='open-vm-tools'
3387
 
 VERSION='2012.12.26'
3388
 
 
3389
 
 
3390
 
cat >>confdefs.h <<_ACEOF
3391
 
#define PACKAGE "$PACKAGE"
3392
 
_ACEOF
3393
 
 
3394
 
 
3395
 
cat >>confdefs.h <<_ACEOF
3396
 
#define VERSION "$VERSION"
3397
 
_ACEOF
3398
 
 
3399
 
# Some tools Automake needs.
3400
 
 
3401
 
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3402
 
 
3403
 
 
3404
 
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3405
 
 
3406
 
 
3407
 
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3408
 
 
3409
 
 
3410
 
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3411
 
 
3412
 
 
3413
 
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3414
 
 
3415
 
# We need awk for the "check" target.  The system "awk" is bad on
3416
 
# some platforms.
3417
 
# Always define AMTAR for backward compatibility.  Yes, it's still used
3418
 
# in the wild :-(  We should find a proper way to deprecate it ...
3419
 
AMTAR='$${TAR-tar}'
3420
 
 
3421
 
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3422
 
 
3423
 
 
3424
 
 
3425
 
 
3426
 
 
3427
 
 
3428
 
###
3429
 
### Constants
3430
 
###
3431
 
# These need to be declared after initialization.
3432
 
 
3433
 
# Some of our macro call-sites require changes to
3434
 
# CPPFLAGS/CFLAGS/LDFLAGS. In such places, we save the original value
3435
 
# of CPPFLAGS/CFLAGS/LDFLAGS before the macro call and restore it when
3436
 
# the call is done. We must perform this save at each macro site,
3437
 
# because CPPFLAGS/CFLAGS/LDFLAGS may change over the course of
3438
 
# configuration.
3439
 
#
3440
 
# CPPFLAGS is intended for preprocessor options (-D and -I mainly)
3441
 
# CFLAGS is intended for compiler options (-O, -f, -W, and so forth)
3442
 
 
3443
 
CPPFLAGS="$CPPFLAGS -DUSING_AUTOCONF=1 -DOPEN_VM_TOOLS"
3444
 
 
3445
 
###
3446
 
### Programs
3447
 
###
3448
 
# C preprocessor and compiler.
3449
 
DEPDIR="${am__leading_dot}deps"
3450
 
 
3451
 
ac_config_commands="$ac_config_commands depfiles"
3452
 
 
3453
 
 
3454
 
am_make=${MAKE-make}
3455
 
cat > confinc << 'END'
3456
 
am__doit:
3457
 
        @echo this is the am__doit target
3458
 
.PHONY: am__doit
3459
 
END
3460
 
# If we don't find an include directive, just comment out the code.
3461
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3462
 
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3463
 
am__include="#"
3464
 
am__quote=
3465
 
_am_result=none
3466
 
# First try GNU make style include.
3467
 
echo "include confinc" > confmf
3468
 
# Ignore all kinds of additional output from `make'.
3469
 
case `$am_make -s -f confmf 2> /dev/null` in #(
3470
 
*the\ am__doit\ target*)
3471
 
  am__include=include
3472
 
  am__quote=
3473
 
  _am_result=GNU
3474
 
  ;;
3475
 
esac
3476
 
# Now try BSD make style include.
3477
 
if test "$am__include" = "#"; then
3478
 
   echo '.include "confinc"' > confmf
3479
 
   case `$am_make -s -f confmf 2> /dev/null` in #(
3480
 
   *the\ am__doit\ target*)
3481
 
     am__include=.include
3482
 
     am__quote="\""
3483
 
     _am_result=BSD
3484
 
     ;;
3485
 
   esac
3486
 
fi
3487
 
 
3488
 
 
3489
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3490
 
$as_echo "$_am_result" >&6; }
3491
 
rm -f confinc confmf
3492
 
 
3493
 
# Check whether --enable-dependency-tracking was given.
3494
 
if test "${enable_dependency_tracking+set}" = set; then :
3495
 
  enableval=$enable_dependency_tracking;
3496
 
fi
3497
 
 
3498
 
if test "x$enable_dependency_tracking" != xno; then
3499
 
  am_depcomp="$ac_aux_dir/depcomp"
3500
 
  AMDEPBACKSLASH='\'
3501
 
  am__nodep='_no'
3502
 
fi
3503
 
 if test "x$enable_dependency_tracking" != xno; then
3504
 
  AMDEP_TRUE=
3505
 
  AMDEP_FALSE='#'
3506
 
else
3507
 
  AMDEP_TRUE='#'
3508
 
  AMDEP_FALSE=
3509
 
fi
3510
 
 
3511
 
 
3512
 
ac_ext=c
3513
 
ac_cpp='$CPP $CPPFLAGS'
3514
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3517
 
if test -n "$ac_tool_prefix"; then
3518
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3519
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3520
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521
 
$as_echo_n "checking for $ac_word... " >&6; }
3522
 
if ${ac_cv_prog_CC+:} false; then :
3523
 
  $as_echo_n "(cached) " >&6
3524
 
else
3525
 
  if test -n "$CC"; then
3526
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3527
 
else
3528
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529
 
for as_dir in $PATH
3530
 
do
3531
 
  IFS=$as_save_IFS
3532
 
  test -z "$as_dir" && as_dir=.
3533
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3534
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3535
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3536
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3537
 
    break 2
3538
 
  fi
3539
 
done
3540
 
  done
3541
 
IFS=$as_save_IFS
3542
 
 
3543
 
fi
3544
 
fi
3545
 
CC=$ac_cv_prog_CC
3546
 
if test -n "$CC"; then
3547
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3548
 
$as_echo "$CC" >&6; }
3549
 
else
3550
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551
 
$as_echo "no" >&6; }
3552
 
fi
3553
 
 
3554
 
 
3555
 
fi
3556
 
if test -z "$ac_cv_prog_CC"; then
3557
 
  ac_ct_CC=$CC
3558
 
  # Extract the first word of "gcc", so it can be a program name with args.
3559
 
set dummy gcc; ac_word=$2
3560
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3561
 
$as_echo_n "checking for $ac_word... " >&6; }
3562
 
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3563
 
  $as_echo_n "(cached) " >&6
3564
 
else
3565
 
  if test -n "$ac_ct_CC"; then
3566
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3567
 
else
3568
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569
 
for as_dir in $PATH
3570
 
do
3571
 
  IFS=$as_save_IFS
3572
 
  test -z "$as_dir" && as_dir=.
3573
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3574
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3575
 
    ac_cv_prog_ac_ct_CC="gcc"
3576
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3577
 
    break 2
3578
 
  fi
3579
 
done
3580
 
  done
3581
 
IFS=$as_save_IFS
3582
 
 
3583
 
fi
3584
 
fi
3585
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3586
 
if test -n "$ac_ct_CC"; then
3587
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3588
 
$as_echo "$ac_ct_CC" >&6; }
3589
 
else
3590
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591
 
$as_echo "no" >&6; }
3592
 
fi
3593
 
 
3594
 
  if test "x$ac_ct_CC" = x; then
3595
 
    CC=""
3596
 
  else
3597
 
    case $cross_compiling:$ac_tool_warned in
3598
 
yes:)
3599
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3600
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3601
 
ac_tool_warned=yes ;;
3602
 
esac
3603
 
    CC=$ac_ct_CC
3604
 
  fi
3605
 
else
3606
 
  CC="$ac_cv_prog_CC"
3607
 
fi
3608
 
 
3609
 
if test -z "$CC"; then
3610
 
          if test -n "$ac_tool_prefix"; then
3611
 
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3612
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
3613
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614
 
$as_echo_n "checking for $ac_word... " >&6; }
3615
 
if ${ac_cv_prog_CC+:} false; then :
3616
 
  $as_echo_n "(cached) " >&6
3617
 
else
3618
 
  if test -n "$CC"; then
3619
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3620
 
else
3621
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622
 
for as_dir in $PATH
3623
 
do
3624
 
  IFS=$as_save_IFS
3625
 
  test -z "$as_dir" && as_dir=.
3626
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3627
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3628
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3629
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630
 
    break 2
3631
 
  fi
3632
 
done
3633
 
  done
3634
 
IFS=$as_save_IFS
3635
 
 
3636
 
fi
3637
 
fi
3638
 
CC=$ac_cv_prog_CC
3639
 
if test -n "$CC"; then
3640
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3641
 
$as_echo "$CC" >&6; }
3642
 
else
3643
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644
 
$as_echo "no" >&6; }
3645
 
fi
3646
 
 
3647
 
 
3648
 
  fi
3649
 
fi
3650
 
if test -z "$CC"; then
3651
 
  # Extract the first word of "cc", so it can be a program name with args.
3652
 
set dummy cc; ac_word=$2
3653
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654
 
$as_echo_n "checking for $ac_word... " >&6; }
3655
 
if ${ac_cv_prog_CC+:} false; then :
3656
 
  $as_echo_n "(cached) " >&6
3657
 
else
3658
 
  if test -n "$CC"; then
3659
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3660
 
else
3661
 
  ac_prog_rejected=no
3662
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663
 
for as_dir in $PATH
3664
 
do
3665
 
  IFS=$as_save_IFS
3666
 
  test -z "$as_dir" && as_dir=.
3667
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3668
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3669
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3670
 
       ac_prog_rejected=yes
3671
 
       continue
3672
 
     fi
3673
 
    ac_cv_prog_CC="cc"
3674
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3675
 
    break 2
3676
 
  fi
3677
 
done
3678
 
  done
3679
 
IFS=$as_save_IFS
3680
 
 
3681
 
if test $ac_prog_rejected = yes; then
3682
 
  # We found a bogon in the path, so make sure we never use it.
3683
 
  set dummy $ac_cv_prog_CC
3684
 
  shift
3685
 
  if test $# != 0; then
3686
 
    # We chose a different compiler from the bogus one.
3687
 
    # However, it has the same basename, so the bogon will be chosen
3688
 
    # first if we set CC to just the basename; use the full file name.
3689
 
    shift
3690
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3691
 
  fi
3692
 
fi
3693
 
fi
3694
 
fi
3695
 
CC=$ac_cv_prog_CC
3696
 
if test -n "$CC"; then
3697
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3698
 
$as_echo "$CC" >&6; }
3699
 
else
3700
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701
 
$as_echo "no" >&6; }
3702
 
fi
3703
 
 
3704
 
 
3705
 
fi
3706
 
if test -z "$CC"; then
3707
 
  if test -n "$ac_tool_prefix"; then
3708
 
  for ac_prog in cl.exe
3709
 
  do
3710
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3711
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3712
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3713
 
$as_echo_n "checking for $ac_word... " >&6; }
3714
 
if ${ac_cv_prog_CC+:} false; then :
3715
 
  $as_echo_n "(cached) " >&6
3716
 
else
3717
 
  if test -n "$CC"; then
3718
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3719
 
else
3720
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721
 
for as_dir in $PATH
3722
 
do
3723
 
  IFS=$as_save_IFS
3724
 
  test -z "$as_dir" && as_dir=.
3725
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3726
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3727
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3728
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3729
 
    break 2
3730
 
  fi
3731
 
done
3732
 
  done
3733
 
IFS=$as_save_IFS
3734
 
 
3735
 
fi
3736
 
fi
3737
 
CC=$ac_cv_prog_CC
3738
 
if test -n "$CC"; then
3739
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3740
 
$as_echo "$CC" >&6; }
3741
 
else
3742
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743
 
$as_echo "no" >&6; }
3744
 
fi
3745
 
 
3746
 
 
3747
 
    test -n "$CC" && break
3748
 
  done
3749
 
fi
3750
 
if test -z "$CC"; then
3751
 
  ac_ct_CC=$CC
3752
 
  for ac_prog in cl.exe
3753
 
do
3754
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3755
 
set dummy $ac_prog; ac_word=$2
3756
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757
 
$as_echo_n "checking for $ac_word... " >&6; }
3758
 
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3759
 
  $as_echo_n "(cached) " >&6
3760
 
else
3761
 
  if test -n "$ac_ct_CC"; then
3762
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3763
 
else
3764
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765
 
for as_dir in $PATH
3766
 
do
3767
 
  IFS=$as_save_IFS
3768
 
  test -z "$as_dir" && as_dir=.
3769
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3770
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
3772
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773
 
    break 2
3774
 
  fi
3775
 
done
3776
 
  done
3777
 
IFS=$as_save_IFS
3778
 
 
3779
 
fi
3780
 
fi
3781
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3782
 
if test -n "$ac_ct_CC"; then
3783
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3784
 
$as_echo "$ac_ct_CC" >&6; }
3785
 
else
3786
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787
 
$as_echo "no" >&6; }
3788
 
fi
3789
 
 
3790
 
 
3791
 
  test -n "$ac_ct_CC" && break
3792
 
done
3793
 
 
3794
 
  if test "x$ac_ct_CC" = x; then
3795
 
    CC=""
3796
 
  else
3797
 
    case $cross_compiling:$ac_tool_warned in
3798
 
yes:)
3799
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3800
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3801
 
ac_tool_warned=yes ;;
3802
 
esac
3803
 
    CC=$ac_ct_CC
3804
 
  fi
3805
 
fi
3806
 
 
3807
 
fi
3808
 
 
3809
 
 
3810
 
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3811
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3812
 
as_fn_error $? "no acceptable C compiler found in \$PATH
3813
 
See \`config.log' for more details" "$LINENO" 5; }
3814
 
 
3815
 
# Provide some information about the compiler.
3816
 
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3817
 
set X $ac_compile
3818
 
ac_compiler=$2
3819
 
for ac_option in --version -v -V -qversion; do
3820
 
  { { ac_try="$ac_compiler $ac_option >&5"
3821
 
case "(($ac_try" in
3822
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823
 
  *) ac_try_echo=$ac_try;;
3824
 
esac
3825
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3826
 
$as_echo "$ac_try_echo"; } >&5
3827
 
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3828
 
  ac_status=$?
3829
 
  if test -s conftest.err; then
3830
 
    sed '10a\
3831
 
... rest of stderr output deleted ...
3832
 
         10q' conftest.err >conftest.er1
3833
 
    cat conftest.er1 >&5
3834
 
  fi
3835
 
  rm -f conftest.er1 conftest.err
3836
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837
 
  test $ac_status = 0; }
3838
 
done
3839
 
 
3840
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841
 
/* end confdefs.h.  */
3842
 
 
3843
 
int
3844
 
main ()
3845
 
{
3846
 
 
3847
 
  ;
3848
 
  return 0;
3849
 
}
3850
 
_ACEOF
3851
 
ac_clean_files_save=$ac_clean_files
3852
 
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3853
 
# Try to create an executable without -o first, disregard a.out.
3854
 
# It will help us diagnose broken compilers, and finding out an intuition
3855
 
# of exeext.
3856
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3857
 
$as_echo_n "checking whether the C compiler works... " >&6; }
3858
 
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3859
 
 
3860
 
# The possible output files:
3861
 
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3862
 
 
3863
 
ac_rmfiles=
3864
 
for ac_file in $ac_files
3865
 
do
3866
 
  case $ac_file in
3867
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3868
 
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3869
 
  esac
3870
 
done
3871
 
rm -f $ac_rmfiles
3872
 
 
3873
 
if { { ac_try="$ac_link_default"
3874
 
case "(($ac_try" in
3875
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876
 
  *) ac_try_echo=$ac_try;;
3877
 
esac
3878
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879
 
$as_echo "$ac_try_echo"; } >&5
3880
 
  (eval "$ac_link_default") 2>&5
3881
 
  ac_status=$?
3882
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883
 
  test $ac_status = 0; }; then :
3884
 
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3885
 
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3886
 
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3887
 
# so that the user can short-circuit this test for compilers unknown to
3888
 
# Autoconf.
3889
 
for ac_file in $ac_files ''
3890
 
do
3891
 
  test -f "$ac_file" || continue
3892
 
  case $ac_file in
3893
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3894
 
        ;;
3895
 
    [ab].out )
3896
 
        # We found the default executable, but exeext='' is most
3897
 
        # certainly right.
3898
 
        break;;
3899
 
    *.* )
3900
 
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3901
 
        then :; else
3902
 
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3903
 
        fi
3904
 
        # We set ac_cv_exeext here because the later test for it is not
3905
 
        # safe: cross compilers may not add the suffix if given an `-o'
3906
 
        # argument, so we may need to know it at that point already.
3907
 
        # Even if this section looks crufty: it has the advantage of
3908
 
        # actually working.
3909
 
        break;;
3910
 
    * )
3911
 
        break;;
3912
 
  esac
3913
 
done
3914
 
test "$ac_cv_exeext" = no && ac_cv_exeext=
3915
 
 
3916
 
else
3917
 
  ac_file=''
3918
 
fi
3919
 
if test -z "$ac_file"; then :
3920
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3921
 
$as_echo "no" >&6; }
3922
 
$as_echo "$as_me: failed program was:" >&5
3923
 
sed 's/^/| /' conftest.$ac_ext >&5
3924
 
 
3925
 
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927
 
as_fn_error 77 "C compiler cannot create executables
3928
 
See \`config.log' for more details" "$LINENO" 5; }
3929
 
else
3930
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3931
 
$as_echo "yes" >&6; }
3932
 
fi
3933
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3934
 
$as_echo_n "checking for C compiler default output file name... " >&6; }
3935
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3936
 
$as_echo "$ac_file" >&6; }
3937
 
ac_exeext=$ac_cv_exeext
3938
 
 
3939
 
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3940
 
ac_clean_files=$ac_clean_files_save
3941
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3942
 
$as_echo_n "checking for suffix of executables... " >&6; }
3943
 
if { { ac_try="$ac_link"
3944
 
case "(($ac_try" in
3945
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946
 
  *) ac_try_echo=$ac_try;;
3947
 
esac
3948
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3949
 
$as_echo "$ac_try_echo"; } >&5
3950
 
  (eval "$ac_link") 2>&5
3951
 
  ac_status=$?
3952
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3953
 
  test $ac_status = 0; }; then :
3954
 
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3955
 
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3956
 
# work properly (i.e., refer to `conftest.exe'), while it won't with
3957
 
# `rm'.
3958
 
for ac_file in conftest.exe conftest conftest.*; do
3959
 
  test -f "$ac_file" || continue
3960
 
  case $ac_file in
3961
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3962
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3963
 
          break;;
3964
 
    * ) break;;
3965
 
  esac
3966
 
done
3967
 
else
3968
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3969
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3970
 
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3971
 
See \`config.log' for more details" "$LINENO" 5; }
3972
 
fi
3973
 
rm -f conftest conftest$ac_cv_exeext
3974
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3975
 
$as_echo "$ac_cv_exeext" >&6; }
3976
 
 
3977
 
rm -f conftest.$ac_ext
3978
 
EXEEXT=$ac_cv_exeext
3979
 
ac_exeext=$EXEEXT
3980
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981
 
/* end confdefs.h.  */
3982
 
#include <stdio.h>
3983
 
int
3984
 
main ()
3985
 
{
3986
 
FILE *f = fopen ("conftest.out", "w");
3987
 
 return ferror (f) || fclose (f) != 0;
3988
 
 
3989
 
  ;
3990
 
  return 0;
3991
 
}
3992
 
_ACEOF
3993
 
ac_clean_files="$ac_clean_files conftest.out"
3994
 
# Check that the compiler produces executables we can run.  If not, either
3995
 
# the compiler is broken, or we cross compile.
3996
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3997
 
$as_echo_n "checking whether we are cross compiling... " >&6; }
3998
 
if test "$cross_compiling" != yes; then
3999
 
  { { ac_try="$ac_link"
4000
 
case "(($ac_try" in
4001
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002
 
  *) ac_try_echo=$ac_try;;
4003
 
esac
4004
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005
 
$as_echo "$ac_try_echo"; } >&5
4006
 
  (eval "$ac_link") 2>&5
4007
 
  ac_status=$?
4008
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009
 
  test $ac_status = 0; }
4010
 
  if { ac_try='./conftest$ac_cv_exeext'
4011
 
  { { case "(($ac_try" in
4012
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013
 
  *) ac_try_echo=$ac_try;;
4014
 
esac
4015
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4016
 
$as_echo "$ac_try_echo"; } >&5
4017
 
  (eval "$ac_try") 2>&5
4018
 
  ac_status=$?
4019
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4020
 
  test $ac_status = 0; }; }; then
4021
 
    cross_compiling=no
4022
 
  else
4023
 
    if test "$cross_compiling" = maybe; then
4024
 
        cross_compiling=yes
4025
 
    else
4026
 
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4027
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4028
 
as_fn_error $? "cannot run C compiled programs.
4029
 
If you meant to cross compile, use \`--host'.
4030
 
See \`config.log' for more details" "$LINENO" 5; }
4031
 
    fi
4032
 
  fi
4033
 
fi
4034
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4035
 
$as_echo "$cross_compiling" >&6; }
4036
 
 
4037
 
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4038
 
ac_clean_files=$ac_clean_files_save
4039
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4040
 
$as_echo_n "checking for suffix of object files... " >&6; }
4041
 
if ${ac_cv_objext+:} false; then :
4042
 
  $as_echo_n "(cached) " >&6
4043
 
else
4044
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045
 
/* end confdefs.h.  */
4046
 
 
4047
 
int
4048
 
main ()
4049
 
{
4050
 
 
4051
 
  ;
4052
 
  return 0;
4053
 
}
4054
 
_ACEOF
4055
 
rm -f conftest.o conftest.obj
4056
 
if { { ac_try="$ac_compile"
4057
 
case "(($ac_try" in
4058
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059
 
  *) ac_try_echo=$ac_try;;
4060
 
esac
4061
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4062
 
$as_echo "$ac_try_echo"; } >&5
4063
 
  (eval "$ac_compile") 2>&5
4064
 
  ac_status=$?
4065
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066
 
  test $ac_status = 0; }; then :
4067
 
  for ac_file in conftest.o conftest.obj conftest.*; do
4068
 
  test -f "$ac_file" || continue;
4069
 
  case $ac_file in
4070
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4071
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4072
 
       break;;
4073
 
  esac
4074
 
done
4075
 
else
4076
 
  $as_echo "$as_me: failed program was:" >&5
4077
 
sed 's/^/| /' conftest.$ac_ext >&5
4078
 
 
4079
 
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4080
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4081
 
as_fn_error $? "cannot compute suffix of object files: cannot compile
4082
 
See \`config.log' for more details" "$LINENO" 5; }
4083
 
fi
4084
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
4085
 
fi
4086
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4087
 
$as_echo "$ac_cv_objext" >&6; }
4088
 
OBJEXT=$ac_cv_objext
4089
 
ac_objext=$OBJEXT
4090
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4091
 
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4092
 
if ${ac_cv_c_compiler_gnu+:} false; then :
4093
 
  $as_echo_n "(cached) " >&6
4094
 
else
4095
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096
 
/* end confdefs.h.  */
4097
 
 
4098
 
int
4099
 
main ()
4100
 
{
4101
 
#ifndef __GNUC__
4102
 
       choke me
4103
 
#endif
4104
 
 
4105
 
  ;
4106
 
  return 0;
4107
 
}
4108
 
_ACEOF
4109
 
if ac_fn_c_try_compile "$LINENO"; then :
4110
 
  ac_compiler_gnu=yes
4111
 
else
4112
 
  ac_compiler_gnu=no
4113
 
fi
4114
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4116
 
 
4117
 
fi
4118
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4119
 
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4120
 
if test $ac_compiler_gnu = yes; then
4121
 
  GCC=yes
4122
 
else
4123
 
  GCC=
4124
 
fi
4125
 
ac_test_CFLAGS=${CFLAGS+set}
4126
 
ac_save_CFLAGS=$CFLAGS
4127
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4128
 
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4129
 
if ${ac_cv_prog_cc_g+:} false; then :
4130
 
  $as_echo_n "(cached) " >&6
4131
 
else
4132
 
  ac_save_c_werror_flag=$ac_c_werror_flag
4133
 
   ac_c_werror_flag=yes
4134
 
   ac_cv_prog_cc_g=no
4135
 
   CFLAGS="-g"
4136
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137
 
/* end confdefs.h.  */
4138
 
 
4139
 
int
4140
 
main ()
4141
 
{
4142
 
 
4143
 
  ;
4144
 
  return 0;
4145
 
}
4146
 
_ACEOF
4147
 
if ac_fn_c_try_compile "$LINENO"; then :
4148
 
  ac_cv_prog_cc_g=yes
4149
 
else
4150
 
  CFLAGS=""
4151
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152
 
/* end confdefs.h.  */
4153
 
 
4154
 
int
4155
 
main ()
4156
 
{
4157
 
 
4158
 
  ;
4159
 
  return 0;
4160
 
}
4161
 
_ACEOF
4162
 
if ac_fn_c_try_compile "$LINENO"; then :
4163
 
 
4164
 
else
4165
 
  ac_c_werror_flag=$ac_save_c_werror_flag
4166
 
         CFLAGS="-g"
4167
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168
 
/* end confdefs.h.  */
4169
 
 
4170
 
int
4171
 
main ()
4172
 
{
4173
 
 
4174
 
  ;
4175
 
  return 0;
4176
 
}
4177
 
_ACEOF
4178
 
if ac_fn_c_try_compile "$LINENO"; then :
4179
 
  ac_cv_prog_cc_g=yes
4180
 
fi
4181
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4182
 
fi
4183
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4184
 
fi
4185
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4186
 
   ac_c_werror_flag=$ac_save_c_werror_flag
4187
 
fi
4188
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4189
 
$as_echo "$ac_cv_prog_cc_g" >&6; }
4190
 
if test "$ac_test_CFLAGS" = set; then
4191
 
  CFLAGS=$ac_save_CFLAGS
4192
 
elif test $ac_cv_prog_cc_g = yes; then
4193
 
  if test "$GCC" = yes; then
4194
 
    CFLAGS="-g -O2"
4195
 
  else
4196
 
    CFLAGS="-g"
4197
 
  fi
4198
 
else
4199
 
  if test "$GCC" = yes; then
4200
 
    CFLAGS="-O2"
4201
 
  else
4202
 
    CFLAGS=
4203
 
  fi
4204
 
fi
4205
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4206
 
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4207
 
if ${ac_cv_prog_cc_c89+:} false; then :
4208
 
  $as_echo_n "(cached) " >&6
4209
 
else
4210
 
  ac_cv_prog_cc_c89=no
4211
 
ac_save_CC=$CC
4212
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213
 
/* end confdefs.h.  */
4214
 
#include <stdarg.h>
4215
 
#include <stdio.h>
4216
 
#include <sys/types.h>
4217
 
#include <sys/stat.h>
4218
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4219
 
struct buf { int x; };
4220
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4221
 
static char *e (p, i)
4222
 
     char **p;
4223
 
     int i;
4224
 
{
4225
 
  return p[i];
4226
 
}
4227
 
static char *f (char * (*g) (char **, int), char **p, ...)
4228
 
{
4229
 
  char *s;
4230
 
  va_list v;
4231
 
  va_start (v,p);
4232
 
  s = g (p, va_arg (v,int));
4233
 
  va_end (v);
4234
 
  return s;
4235
 
}
4236
 
 
4237
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4238
 
   function prototypes and stuff, but not '\xHH' hex character constants.
4239
 
   These don't provoke an error unfortunately, instead are silently treated
4240
 
   as 'x'.  The following induces an error, until -std is added to get
4241
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4242
 
   array size at least.  It's necessary to write '\x00'==0 to get something
4243
 
   that's true only with -std.  */
4244
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4245
 
 
4246
 
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4247
 
   inside strings and character constants.  */
4248
 
#define FOO(x) 'x'
4249
 
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4250
 
 
4251
 
int test (int i, double x);
4252
 
struct s1 {int (*f) (int a);};
4253
 
struct s2 {int (*f) (double a);};
4254
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4255
 
int argc;
4256
 
char **argv;
4257
 
int
4258
 
main ()
4259
 
{
4260
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4261
 
  ;
4262
 
  return 0;
4263
 
}
4264
 
_ACEOF
4265
 
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4266
 
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4267
 
do
4268
 
  CC="$ac_save_CC $ac_arg"
4269
 
  if ac_fn_c_try_compile "$LINENO"; then :
4270
 
  ac_cv_prog_cc_c89=$ac_arg
4271
 
fi
4272
 
rm -f core conftest.err conftest.$ac_objext
4273
 
  test "x$ac_cv_prog_cc_c89" != "xno" && break
4274
 
done
4275
 
rm -f conftest.$ac_ext
4276
 
CC=$ac_save_CC
4277
 
 
4278
 
fi
4279
 
# AC_CACHE_VAL
4280
 
case "x$ac_cv_prog_cc_c89" in
4281
 
  x)
4282
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4283
 
$as_echo "none needed" >&6; } ;;
4284
 
  xno)
4285
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4286
 
$as_echo "unsupported" >&6; } ;;
4287
 
  *)
4288
 
    CC="$CC $ac_cv_prog_cc_c89"
4289
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4290
 
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4291
 
esac
4292
 
if test "x$ac_cv_prog_cc_c89" != xno; then :
4293
 
 
4294
 
fi
4295
 
 
4296
 
ac_ext=c
4297
 
ac_cpp='$CPP $CPPFLAGS'
4298
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4301
 
 
4302
 
depcc="$CC"   am_compiler_list=
4303
 
 
4304
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4305
 
$as_echo_n "checking dependency style of $depcc... " >&6; }
4306
 
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4307
 
  $as_echo_n "(cached) " >&6
4308
 
else
4309
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4310
 
  # We make a subdir and do the tests there.  Otherwise we can end up
4311
 
  # making bogus files that we don't know about and never remove.  For
4312
 
  # instance it was reported that on HP-UX the gcc test will end up
4313
 
  # making a dummy file named `D' -- because `-MD' means `put the output
4314
 
  # in D'.
4315
 
  rm -rf conftest.dir
4316
 
  mkdir conftest.dir
4317
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
4318
 
  # using a relative directory.
4319
 
  cp "$am_depcomp" conftest.dir
4320
 
  cd conftest.dir
4321
 
  # We will build objects and dependencies in a subdirectory because
4322
 
  # it helps to detect inapplicable dependency modes.  For instance
4323
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
4324
 
  # side effect of compilation, but ICC will put the dependencies in
4325
 
  # the current directory while Tru64 will put them in the object
4326
 
  # directory.
4327
 
  mkdir sub
4328
 
 
4329
 
  am_cv_CC_dependencies_compiler_type=none
4330
 
  if test "$am_compiler_list" = ""; then
4331
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4332
 
  fi
4333
 
  am__universal=false
4334
 
  case " $depcc " in #(
4335
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4336
 
     esac
4337
 
 
4338
 
  for depmode in $am_compiler_list; do
4339
 
    # Setup a source with many dependencies, because some compilers
4340
 
    # like to wrap large dependency lists on column 80 (with \), and
4341
 
    # we should not choose a depcomp mode which is confused by this.
4342
 
    #
4343
 
    # We need to recreate these files for each test, as the compiler may
4344
 
    # overwrite some of them when testing with obscure command lines.
4345
 
    # This happens at least with the AIX C compiler.
4346
 
    : > sub/conftest.c
4347
 
    for i in 1 2 3 4 5 6; do
4348
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4349
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4350
 
      # Solaris 8's {/usr,}/bin/sh.
4351
 
      touch sub/conftst$i.h
4352
 
    done
4353
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4354
 
 
4355
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4356
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
4357
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
4358
 
    # versions had trouble with output in subdirs
4359
 
    am__obj=sub/conftest.${OBJEXT-o}
4360
 
    am__minus_obj="-o $am__obj"
4361
 
    case $depmode in
4362
 
    gcc)
4363
 
      # This depmode causes a compiler race in universal mode.
4364
 
      test "$am__universal" = false || continue
4365
 
      ;;
4366
 
    nosideeffect)
4367
 
      # after this tag, mechanisms are not by side-effect, so they'll
4368
 
      # only be used when explicitly requested
4369
 
      if test "x$enable_dependency_tracking" = xyes; then
4370
 
        continue
4371
 
      else
4372
 
        break
4373
 
      fi
4374
 
      ;;
4375
 
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4376
 
      # This compiler won't grok `-c -o', but also, the minuso test has
4377
 
      # not run yet.  These depmodes are late enough in the game, and
4378
 
      # so weak that their functioning should not be impacted.
4379
 
      am__obj=conftest.${OBJEXT-o}
4380
 
      am__minus_obj=
4381
 
      ;;
4382
 
    none) break ;;
4383
 
    esac
4384
 
    if depmode=$depmode \
4385
 
       source=sub/conftest.c object=$am__obj \
4386
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4387
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4388
 
         >/dev/null 2>conftest.err &&
4389
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4390
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4391
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4392
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4393
 
      # icc doesn't choke on unknown options, it will just issue warnings
4394
 
      # or remarks (even with -Werror).  So we grep stderr for any message
4395
 
      # that says an option was ignored or not supported.
4396
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4397
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
4398
 
      # The diagnosis changed in icc 8.0:
4399
 
      #   icc: Command line remark: option '-MP' not supported
4400
 
      if (grep 'ignoring option' conftest.err ||
4401
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4402
 
        am_cv_CC_dependencies_compiler_type=$depmode
4403
 
        break
4404
 
      fi
4405
 
    fi
4406
 
  done
4407
 
 
4408
 
  cd ..
4409
 
  rm -rf conftest.dir
4410
 
else
4411
 
  am_cv_CC_dependencies_compiler_type=none
4412
 
fi
4413
 
 
4414
 
fi
4415
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4416
 
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4417
 
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4418
 
 
4419
 
 if
4420
 
  test "x$enable_dependency_tracking" != xno \
4421
 
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4422
 
  am__fastdepCC_TRUE=
4423
 
  am__fastdepCC_FALSE='#'
4424
 
else
4425
 
  am__fastdepCC_TRUE='#'
4426
 
  am__fastdepCC_FALSE=
4427
 
fi
4428
 
 
4429
 
 
4430
 
ac_ext=c
4431
 
ac_cpp='$CPP $CPPFLAGS'
4432
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4433
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4434
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4435
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4436
 
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4437
 
# On Suns, sometimes $CPP names a directory.
4438
 
if test -n "$CPP" && test -d "$CPP"; then
4439
 
  CPP=
4440
 
fi
4441
 
if test -z "$CPP"; then
4442
 
  if ${ac_cv_prog_CPP+:} false; then :
4443
 
  $as_echo_n "(cached) " >&6
4444
 
else
4445
 
      # Double quotes because CPP needs to be expanded
4446
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4447
 
    do
4448
 
      ac_preproc_ok=false
4449
 
for ac_c_preproc_warn_flag in '' yes
4450
 
do
4451
 
  # Use a header file that comes with gcc, so configuring glibc
4452
 
  # with a fresh cross-compiler works.
4453
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4454
 
  # <limits.h> exists even on freestanding compilers.
4455
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4456
 
  # not just through cpp. "Syntax error" is here to catch this case.
4457
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458
 
/* end confdefs.h.  */
4459
 
#ifdef __STDC__
4460
 
# include <limits.h>
4461
 
#else
4462
 
# include <assert.h>
4463
 
#endif
4464
 
                     Syntax error
4465
 
_ACEOF
4466
 
if ac_fn_c_try_cpp "$LINENO"; then :
4467
 
 
4468
 
else
4469
 
  # Broken: fails on valid input.
4470
 
continue
4471
 
fi
4472
 
rm -f conftest.err conftest.i conftest.$ac_ext
4473
 
 
4474
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4475
 
  # can be detected and how.
4476
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477
 
/* end confdefs.h.  */
4478
 
#include <ac_nonexistent.h>
4479
 
_ACEOF
4480
 
if ac_fn_c_try_cpp "$LINENO"; then :
4481
 
  # Broken: success on invalid input.
4482
 
continue
4483
 
else
4484
 
  # Passes both tests.
4485
 
ac_preproc_ok=:
4486
 
break
4487
 
fi
4488
 
rm -f conftest.err conftest.i conftest.$ac_ext
4489
 
 
4490
 
done
4491
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4492
 
rm -f conftest.i conftest.err conftest.$ac_ext
4493
 
if $ac_preproc_ok; then :
4494
 
  break
4495
 
fi
4496
 
 
4497
 
    done
4498
 
    ac_cv_prog_CPP=$CPP
4499
 
 
4500
 
fi
4501
 
  CPP=$ac_cv_prog_CPP
4502
 
else
4503
 
  ac_cv_prog_CPP=$CPP
4504
 
fi
4505
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4506
 
$as_echo "$CPP" >&6; }
4507
 
ac_preproc_ok=false
4508
 
for ac_c_preproc_warn_flag in '' yes
4509
 
do
4510
 
  # Use a header file that comes with gcc, so configuring glibc
4511
 
  # with a fresh cross-compiler works.
4512
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4513
 
  # <limits.h> exists even on freestanding compilers.
4514
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4515
 
  # not just through cpp. "Syntax error" is here to catch this case.
4516
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517
 
/* end confdefs.h.  */
4518
 
#ifdef __STDC__
4519
 
# include <limits.h>
4520
 
#else
4521
 
# include <assert.h>
4522
 
#endif
4523
 
                     Syntax error
4524
 
_ACEOF
4525
 
if ac_fn_c_try_cpp "$LINENO"; then :
4526
 
 
4527
 
else
4528
 
  # Broken: fails on valid input.
4529
 
continue
4530
 
fi
4531
 
rm -f conftest.err conftest.i conftest.$ac_ext
4532
 
 
4533
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4534
 
  # can be detected and how.
4535
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536
 
/* end confdefs.h.  */
4537
 
#include <ac_nonexistent.h>
4538
 
_ACEOF
4539
 
if ac_fn_c_try_cpp "$LINENO"; then :
4540
 
  # Broken: success on invalid input.
4541
 
continue
4542
 
else
4543
 
  # Passes both tests.
4544
 
ac_preproc_ok=:
4545
 
break
4546
 
fi
4547
 
rm -f conftest.err conftest.i conftest.$ac_ext
4548
 
 
4549
 
done
4550
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4551
 
rm -f conftest.i conftest.err conftest.$ac_ext
4552
 
if $ac_preproc_ok; then :
4553
 
 
4554
 
else
4555
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4556
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4557
 
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4558
 
See \`config.log' for more details" "$LINENO" 5; }
4559
 
fi
4560
 
 
4561
 
ac_ext=c
4562
 
ac_cpp='$CPP $CPPFLAGS'
4563
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4566
 
 
4567
 
ac_ext=c
4568
 
ac_cpp='$CPP $CPPFLAGS'
4569
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4570
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4571
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4572
 
if test -n "$ac_tool_prefix"; then
4573
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4574
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4575
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4576
 
$as_echo_n "checking for $ac_word... " >&6; }
4577
 
if ${ac_cv_prog_CC+:} false; then :
4578
 
  $as_echo_n "(cached) " >&6
4579
 
else
4580
 
  if test -n "$CC"; then
4581
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
4582
 
else
4583
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584
 
for as_dir in $PATH
4585
 
do
4586
 
  IFS=$as_save_IFS
4587
 
  test -z "$as_dir" && as_dir=.
4588
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4589
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4590
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4591
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4592
 
    break 2
4593
 
  fi
4594
 
done
4595
 
  done
4596
 
IFS=$as_save_IFS
4597
 
 
4598
 
fi
4599
 
fi
4600
 
CC=$ac_cv_prog_CC
4601
 
if test -n "$CC"; then
4602
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4603
 
$as_echo "$CC" >&6; }
4604
 
else
4605
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4606
 
$as_echo "no" >&6; }
4607
 
fi
4608
 
 
4609
 
 
4610
 
fi
4611
 
if test -z "$ac_cv_prog_CC"; then
4612
 
  ac_ct_CC=$CC
4613
 
  # Extract the first word of "gcc", so it can be a program name with args.
4614
 
set dummy gcc; ac_word=$2
4615
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616
 
$as_echo_n "checking for $ac_word... " >&6; }
4617
 
if ${ac_cv_prog_ac_ct_CC+:} false; then :
4618
 
  $as_echo_n "(cached) " >&6
4619
 
else
4620
 
  if test -n "$ac_ct_CC"; then
4621
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4622
 
else
4623
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624
 
for as_dir in $PATH
4625
 
do
4626
 
  IFS=$as_save_IFS
4627
 
  test -z "$as_dir" && as_dir=.
4628
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4629
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630
 
    ac_cv_prog_ac_ct_CC="gcc"
4631
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4632
 
    break 2
4633
 
  fi
4634
 
done
4635
 
  done
4636
 
IFS=$as_save_IFS
4637
 
 
4638
 
fi
4639
 
fi
4640
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4641
 
if test -n "$ac_ct_CC"; then
4642
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4643
 
$as_echo "$ac_ct_CC" >&6; }
4644
 
else
4645
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646
 
$as_echo "no" >&6; }
4647
 
fi
4648
 
 
4649
 
  if test "x$ac_ct_CC" = x; then
4650
 
    CC=""
4651
 
  else
4652
 
    case $cross_compiling:$ac_tool_warned in
4653
 
yes:)
4654
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4655
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4656
 
ac_tool_warned=yes ;;
4657
 
esac
4658
 
    CC=$ac_ct_CC
4659
 
  fi
4660
 
else
4661
 
  CC="$ac_cv_prog_CC"
4662
 
fi
4663
 
 
4664
 
if test -z "$CC"; then
4665
 
          if test -n "$ac_tool_prefix"; then
4666
 
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4667
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
4668
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4669
 
$as_echo_n "checking for $ac_word... " >&6; }
4670
 
if ${ac_cv_prog_CC+:} false; then :
4671
 
  $as_echo_n "(cached) " >&6
4672
 
else
4673
 
  if test -n "$CC"; then
4674
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
4675
 
else
4676
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677
 
for as_dir in $PATH
4678
 
do
4679
 
  IFS=$as_save_IFS
4680
 
  test -z "$as_dir" && as_dir=.
4681
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4682
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4683
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
4684
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4685
 
    break 2
4686
 
  fi
4687
 
done
4688
 
  done
4689
 
IFS=$as_save_IFS
4690
 
 
4691
 
fi
4692
 
fi
4693
 
CC=$ac_cv_prog_CC
4694
 
if test -n "$CC"; then
4695
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4696
 
$as_echo "$CC" >&6; }
4697
 
else
4698
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4699
 
$as_echo "no" >&6; }
4700
 
fi
4701
 
 
4702
 
 
4703
 
  fi
4704
 
fi
4705
 
if test -z "$CC"; then
4706
 
  # Extract the first word of "cc", so it can be a program name with args.
4707
 
set dummy cc; ac_word=$2
4708
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4709
 
$as_echo_n "checking for $ac_word... " >&6; }
4710
 
if ${ac_cv_prog_CC+:} false; then :
4711
 
  $as_echo_n "(cached) " >&6
4712
 
else
4713
 
  if test -n "$CC"; then
4714
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
4715
 
else
4716
 
  ac_prog_rejected=no
4717
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718
 
for as_dir in $PATH
4719
 
do
4720
 
  IFS=$as_save_IFS
4721
 
  test -z "$as_dir" && as_dir=.
4722
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4723
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4724
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4725
 
       ac_prog_rejected=yes
4726
 
       continue
4727
 
     fi
4728
 
    ac_cv_prog_CC="cc"
4729
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4730
 
    break 2
4731
 
  fi
4732
 
done
4733
 
  done
4734
 
IFS=$as_save_IFS
4735
 
 
4736
 
if test $ac_prog_rejected = yes; then
4737
 
  # We found a bogon in the path, so make sure we never use it.
4738
 
  set dummy $ac_cv_prog_CC
4739
 
  shift
4740
 
  if test $# != 0; then
4741
 
    # We chose a different compiler from the bogus one.
4742
 
    # However, it has the same basename, so the bogon will be chosen
4743
 
    # first if we set CC to just the basename; use the full file name.
4744
 
    shift
4745
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4746
 
  fi
4747
 
fi
4748
 
fi
4749
 
fi
4750
 
CC=$ac_cv_prog_CC
4751
 
if test -n "$CC"; then
4752
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4753
 
$as_echo "$CC" >&6; }
4754
 
else
4755
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4756
 
$as_echo "no" >&6; }
4757
 
fi
4758
 
 
4759
 
 
4760
 
fi
4761
 
if test -z "$CC"; then
4762
 
  if test -n "$ac_tool_prefix"; then
4763
 
  for ac_prog in cl.exe
4764
 
  do
4765
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4766
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4767
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768
 
$as_echo_n "checking for $ac_word... " >&6; }
4769
 
if ${ac_cv_prog_CC+:} false; then :
4770
 
  $as_echo_n "(cached) " >&6
4771
 
else
4772
 
  if test -n "$CC"; then
4773
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
4774
 
else
4775
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776
 
for as_dir in $PATH
4777
 
do
4778
 
  IFS=$as_save_IFS
4779
 
  test -z "$as_dir" && as_dir=.
4780
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4781
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4782
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4783
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4784
 
    break 2
4785
 
  fi
4786
 
done
4787
 
  done
4788
 
IFS=$as_save_IFS
4789
 
 
4790
 
fi
4791
 
fi
4792
 
CC=$ac_cv_prog_CC
4793
 
if test -n "$CC"; then
4794
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4795
 
$as_echo "$CC" >&6; }
4796
 
else
4797
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4798
 
$as_echo "no" >&6; }
4799
 
fi
4800
 
 
4801
 
 
4802
 
    test -n "$CC" && break
4803
 
  done
4804
 
fi
4805
 
if test -z "$CC"; then
4806
 
  ac_ct_CC=$CC
4807
 
  for ac_prog in cl.exe
4808
 
do
4809
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4810
 
set dummy $ac_prog; ac_word=$2
4811
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812
 
$as_echo_n "checking for $ac_word... " >&6; }
4813
 
if ${ac_cv_prog_ac_ct_CC+:} false; then :
4814
 
  $as_echo_n "(cached) " >&6
4815
 
else
4816
 
  if test -n "$ac_ct_CC"; then
4817
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4818
 
else
4819
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820
 
for as_dir in $PATH
4821
 
do
4822
 
  IFS=$as_save_IFS
4823
 
  test -z "$as_dir" && as_dir=.
4824
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4825
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
4827
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4828
 
    break 2
4829
 
  fi
4830
 
done
4831
 
  done
4832
 
IFS=$as_save_IFS
4833
 
 
4834
 
fi
4835
 
fi
4836
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4837
 
if test -n "$ac_ct_CC"; then
4838
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4839
 
$as_echo "$ac_ct_CC" >&6; }
4840
 
else
4841
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842
 
$as_echo "no" >&6; }
4843
 
fi
4844
 
 
4845
 
 
4846
 
  test -n "$ac_ct_CC" && break
4847
 
done
4848
 
 
4849
 
  if test "x$ac_ct_CC" = x; then
4850
 
    CC=""
4851
 
  else
4852
 
    case $cross_compiling:$ac_tool_warned in
4853
 
yes:)
4854
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4855
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4856
 
ac_tool_warned=yes ;;
4857
 
esac
4858
 
    CC=$ac_ct_CC
4859
 
  fi
4860
 
fi
4861
 
 
4862
 
fi
4863
 
 
4864
 
 
4865
 
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4866
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4867
 
as_fn_error $? "no acceptable C compiler found in \$PATH
4868
 
See \`config.log' for more details" "$LINENO" 5; }
4869
 
 
4870
 
# Provide some information about the compiler.
4871
 
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4872
 
set X $ac_compile
4873
 
ac_compiler=$2
4874
 
for ac_option in --version -v -V -qversion; do
4875
 
  { { ac_try="$ac_compiler $ac_option >&5"
4876
 
case "(($ac_try" in
4877
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4878
 
  *) ac_try_echo=$ac_try;;
4879
 
esac
4880
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4881
 
$as_echo "$ac_try_echo"; } >&5
4882
 
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4883
 
  ac_status=$?
4884
 
  if test -s conftest.err; then
4885
 
    sed '10a\
4886
 
... rest of stderr output deleted ...
4887
 
         10q' conftest.err >conftest.er1
4888
 
    cat conftest.er1 >&5
4889
 
  fi
4890
 
  rm -f conftest.er1 conftest.err
4891
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4892
 
  test $ac_status = 0; }
4893
 
done
4894
 
 
4895
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4896
 
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4897
 
if ${ac_cv_c_compiler_gnu+:} false; then :
4898
 
  $as_echo_n "(cached) " >&6
4899
 
else
4900
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901
 
/* end confdefs.h.  */
4902
 
 
4903
 
int
4904
 
main ()
4905
 
{
4906
 
#ifndef __GNUC__
4907
 
       choke me
4908
 
#endif
4909
 
 
4910
 
  ;
4911
 
  return 0;
4912
 
}
4913
 
_ACEOF
4914
 
if ac_fn_c_try_compile "$LINENO"; then :
4915
 
  ac_compiler_gnu=yes
4916
 
else
4917
 
  ac_compiler_gnu=no
4918
 
fi
4919
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4920
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4921
 
 
4922
 
fi
4923
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4924
 
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4925
 
if test $ac_compiler_gnu = yes; then
4926
 
  GCC=yes
4927
 
else
4928
 
  GCC=
4929
 
fi
4930
 
ac_test_CFLAGS=${CFLAGS+set}
4931
 
ac_save_CFLAGS=$CFLAGS
4932
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4933
 
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4934
 
if ${ac_cv_prog_cc_g+:} false; then :
4935
 
  $as_echo_n "(cached) " >&6
4936
 
else
4937
 
  ac_save_c_werror_flag=$ac_c_werror_flag
4938
 
   ac_c_werror_flag=yes
4939
 
   ac_cv_prog_cc_g=no
4940
 
   CFLAGS="-g"
4941
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942
 
/* end confdefs.h.  */
4943
 
 
4944
 
int
4945
 
main ()
4946
 
{
4947
 
 
4948
 
  ;
4949
 
  return 0;
4950
 
}
4951
 
_ACEOF
4952
 
if ac_fn_c_try_compile "$LINENO"; then :
4953
 
  ac_cv_prog_cc_g=yes
4954
 
else
4955
 
  CFLAGS=""
4956
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957
 
/* end confdefs.h.  */
4958
 
 
4959
 
int
4960
 
main ()
4961
 
{
4962
 
 
4963
 
  ;
4964
 
  return 0;
4965
 
}
4966
 
_ACEOF
4967
 
if ac_fn_c_try_compile "$LINENO"; then :
4968
 
 
4969
 
else
4970
 
  ac_c_werror_flag=$ac_save_c_werror_flag
4971
 
         CFLAGS="-g"
4972
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4973
 
/* end confdefs.h.  */
4974
 
 
4975
 
int
4976
 
main ()
4977
 
{
4978
 
 
4979
 
  ;
4980
 
  return 0;
4981
 
}
4982
 
_ACEOF
4983
 
if ac_fn_c_try_compile "$LINENO"; then :
4984
 
  ac_cv_prog_cc_g=yes
4985
 
fi
4986
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987
 
fi
4988
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989
 
fi
4990
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4991
 
   ac_c_werror_flag=$ac_save_c_werror_flag
4992
 
fi
4993
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4994
 
$as_echo "$ac_cv_prog_cc_g" >&6; }
4995
 
if test "$ac_test_CFLAGS" = set; then
4996
 
  CFLAGS=$ac_save_CFLAGS
4997
 
elif test $ac_cv_prog_cc_g = yes; then
4998
 
  if test "$GCC" = yes; then
4999
 
    CFLAGS="-g -O2"
5000
 
  else
5001
 
    CFLAGS="-g"
5002
 
  fi
5003
 
else
5004
 
  if test "$GCC" = yes; then
5005
 
    CFLAGS="-O2"
5006
 
  else
5007
 
    CFLAGS=
5008
 
  fi
5009
 
fi
5010
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5011
 
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5012
 
if ${ac_cv_prog_cc_c89+:} false; then :
5013
 
  $as_echo_n "(cached) " >&6
5014
 
else
5015
 
  ac_cv_prog_cc_c89=no
5016
 
ac_save_CC=$CC
5017
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018
 
/* end confdefs.h.  */
5019
 
#include <stdarg.h>
5020
 
#include <stdio.h>
5021
 
#include <sys/types.h>
5022
 
#include <sys/stat.h>
5023
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5024
 
struct buf { int x; };
5025
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
5026
 
static char *e (p, i)
5027
 
     char **p;
5028
 
     int i;
5029
 
{
5030
 
  return p[i];
5031
 
}
5032
 
static char *f (char * (*g) (char **, int), char **p, ...)
5033
 
{
5034
 
  char *s;
5035
 
  va_list v;
5036
 
  va_start (v,p);
5037
 
  s = g (p, va_arg (v,int));
5038
 
  va_end (v);
5039
 
  return s;
5040
 
}
5041
 
 
5042
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5043
 
   function prototypes and stuff, but not '\xHH' hex character constants.
5044
 
   These don't provoke an error unfortunately, instead are silently treated
5045
 
   as 'x'.  The following induces an error, until -std is added to get
5046
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5047
 
   array size at least.  It's necessary to write '\x00'==0 to get something
5048
 
   that's true only with -std.  */
5049
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5050
 
 
5051
 
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5052
 
   inside strings and character constants.  */
5053
 
#define FOO(x) 'x'
5054
 
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5055
 
 
5056
 
int test (int i, double x);
5057
 
struct s1 {int (*f) (int a);};
5058
 
struct s2 {int (*f) (double a);};
5059
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5060
 
int argc;
5061
 
char **argv;
5062
 
int
5063
 
main ()
5064
 
{
5065
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5066
 
  ;
5067
 
  return 0;
5068
 
}
5069
 
_ACEOF
5070
 
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5071
 
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5072
 
do
5073
 
  CC="$ac_save_CC $ac_arg"
5074
 
  if ac_fn_c_try_compile "$LINENO"; then :
5075
 
  ac_cv_prog_cc_c89=$ac_arg
5076
 
fi
5077
 
rm -f core conftest.err conftest.$ac_objext
5078
 
  test "x$ac_cv_prog_cc_c89" != "xno" && break
5079
 
done
5080
 
rm -f conftest.$ac_ext
5081
 
CC=$ac_save_CC
5082
 
 
5083
 
fi
5084
 
# AC_CACHE_VAL
5085
 
case "x$ac_cv_prog_cc_c89" in
5086
 
  x)
5087
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5088
 
$as_echo "none needed" >&6; } ;;
5089
 
  xno)
5090
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5091
 
$as_echo "unsupported" >&6; } ;;
5092
 
  *)
5093
 
    CC="$CC $ac_cv_prog_cc_c89"
5094
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5095
 
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5096
 
esac
5097
 
if test "x$ac_cv_prog_cc_c89" != xno; then :
5098
 
 
5099
 
fi
5100
 
 
5101
 
ac_ext=c
5102
 
ac_cpp='$CPP $CPPFLAGS'
5103
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5106
 
 
5107
 
depcc="$CC"   am_compiler_list=
5108
 
 
5109
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5110
 
$as_echo_n "checking dependency style of $depcc... " >&6; }
5111
 
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5112
 
  $as_echo_n "(cached) " >&6
5113
 
else
5114
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5115
 
  # We make a subdir and do the tests there.  Otherwise we can end up
5116
 
  # making bogus files that we don't know about and never remove.  For
5117
 
  # instance it was reported that on HP-UX the gcc test will end up
5118
 
  # making a dummy file named `D' -- because `-MD' means `put the output
5119
 
  # in D'.
5120
 
  rm -rf conftest.dir
5121
 
  mkdir conftest.dir
5122
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
5123
 
  # using a relative directory.
5124
 
  cp "$am_depcomp" conftest.dir
5125
 
  cd conftest.dir
5126
 
  # We will build objects and dependencies in a subdirectory because
5127
 
  # it helps to detect inapplicable dependency modes.  For instance
5128
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
5129
 
  # side effect of compilation, but ICC will put the dependencies in
5130
 
  # the current directory while Tru64 will put them in the object
5131
 
  # directory.
5132
 
  mkdir sub
5133
 
 
5134
 
  am_cv_CC_dependencies_compiler_type=none
5135
 
  if test "$am_compiler_list" = ""; then
5136
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5137
 
  fi
5138
 
  am__universal=false
5139
 
  case " $depcc " in #(
5140
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5141
 
     esac
5142
 
 
5143
 
  for depmode in $am_compiler_list; do
5144
 
    # Setup a source with many dependencies, because some compilers
5145
 
    # like to wrap large dependency lists on column 80 (with \), and
5146
 
    # we should not choose a depcomp mode which is confused by this.
5147
 
    #
5148
 
    # We need to recreate these files for each test, as the compiler may
5149
 
    # overwrite some of them when testing with obscure command lines.
5150
 
    # This happens at least with the AIX C compiler.
5151
 
    : > sub/conftest.c
5152
 
    for i in 1 2 3 4 5 6; do
5153
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5154
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5155
 
      # Solaris 8's {/usr,}/bin/sh.
5156
 
      touch sub/conftst$i.h
5157
 
    done
5158
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5159
 
 
5160
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5161
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
5162
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
5163
 
    # versions had trouble with output in subdirs
5164
 
    am__obj=sub/conftest.${OBJEXT-o}
5165
 
    am__minus_obj="-o $am__obj"
5166
 
    case $depmode in
5167
 
    gcc)
5168
 
      # This depmode causes a compiler race in universal mode.
5169
 
      test "$am__universal" = false || continue
5170
 
      ;;
5171
 
    nosideeffect)
5172
 
      # after this tag, mechanisms are not by side-effect, so they'll
5173
 
      # only be used when explicitly requested
5174
 
      if test "x$enable_dependency_tracking" = xyes; then
5175
 
        continue
5176
 
      else
5177
 
        break
5178
 
      fi
5179
 
      ;;
5180
 
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5181
 
      # This compiler won't grok `-c -o', but also, the minuso test has
5182
 
      # not run yet.  These depmodes are late enough in the game, and
5183
 
      # so weak that their functioning should not be impacted.
5184
 
      am__obj=conftest.${OBJEXT-o}
5185
 
      am__minus_obj=
5186
 
      ;;
5187
 
    none) break ;;
5188
 
    esac
5189
 
    if depmode=$depmode \
5190
 
       source=sub/conftest.c object=$am__obj \
5191
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5192
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5193
 
         >/dev/null 2>conftest.err &&
5194
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5195
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5196
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5197
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5198
 
      # icc doesn't choke on unknown options, it will just issue warnings
5199
 
      # or remarks (even with -Werror).  So we grep stderr for any message
5200
 
      # that says an option was ignored or not supported.
5201
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
5202
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
5203
 
      # The diagnosis changed in icc 8.0:
5204
 
      #   icc: Command line remark: option '-MP' not supported
5205
 
      if (grep 'ignoring option' conftest.err ||
5206
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5207
 
        am_cv_CC_dependencies_compiler_type=$depmode
5208
 
        break
5209
 
      fi
5210
 
    fi
5211
 
  done
5212
 
 
5213
 
  cd ..
5214
 
  rm -rf conftest.dir
5215
 
else
5216
 
  am_cv_CC_dependencies_compiler_type=none
5217
 
fi
5218
 
 
5219
 
fi
5220
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5221
 
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5222
 
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5223
 
 
5224
 
 if
5225
 
  test "x$enable_dependency_tracking" != xno \
5226
 
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5227
 
  am__fastdepCC_TRUE=
5228
 
  am__fastdepCC_FALSE='#'
5229
 
else
5230
 
  am__fastdepCC_TRUE='#'
5231
 
  am__fastdepCC_FALSE=
5232
 
fi
5233
 
 
5234
 
 
5235
 
 
5236
 
# C++ compiler. Note that unlike AC_PROG_CC, this call does not trigger an
5237
 
# error if no C++ compiler was found; it'll just set the variable CXX to 'g++'.
5238
 
ac_ext=cpp
5239
 
ac_cpp='$CXXCPP $CPPFLAGS'
5240
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5241
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5242
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5243
 
if test -z "$CXX"; then
5244
 
  if test -n "$CCC"; then
5245
 
    CXX=$CCC
5246
 
  else
5247
 
    if test -n "$ac_tool_prefix"; then
5248
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5249
 
  do
5250
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5251
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5252
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253
 
$as_echo_n "checking for $ac_word... " >&6; }
5254
 
if ${ac_cv_prog_CXX+:} false; then :
5255
 
  $as_echo_n "(cached) " >&6
5256
 
else
5257
 
  if test -n "$CXX"; then
5258
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5259
 
else
5260
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261
 
for as_dir in $PATH
5262
 
do
5263
 
  IFS=$as_save_IFS
5264
 
  test -z "$as_dir" && as_dir=.
5265
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5266
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5267
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5268
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5269
 
    break 2
5270
 
  fi
5271
 
done
5272
 
  done
5273
 
IFS=$as_save_IFS
5274
 
 
5275
 
fi
5276
 
fi
5277
 
CXX=$ac_cv_prog_CXX
5278
 
if test -n "$CXX"; then
5279
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5280
 
$as_echo "$CXX" >&6; }
5281
 
else
5282
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283
 
$as_echo "no" >&6; }
5284
 
fi
5285
 
 
5286
 
 
5287
 
    test -n "$CXX" && break
5288
 
  done
5289
 
fi
5290
 
if test -z "$CXX"; then
5291
 
  ac_ct_CXX=$CXX
5292
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5293
 
do
5294
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5295
 
set dummy $ac_prog; ac_word=$2
5296
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297
 
$as_echo_n "checking for $ac_word... " >&6; }
5298
 
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5299
 
  $as_echo_n "(cached) " >&6
5300
 
else
5301
 
  if test -n "$ac_ct_CXX"; then
5302
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5303
 
else
5304
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305
 
for as_dir in $PATH
5306
 
do
5307
 
  IFS=$as_save_IFS
5308
 
  test -z "$as_dir" && as_dir=.
5309
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5310
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5311
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
5312
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5313
 
    break 2
5314
 
  fi
5315
 
done
5316
 
  done
5317
 
IFS=$as_save_IFS
5318
 
 
5319
 
fi
5320
 
fi
5321
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5322
 
if test -n "$ac_ct_CXX"; then
5323
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5324
 
$as_echo "$ac_ct_CXX" >&6; }
5325
 
else
5326
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327
 
$as_echo "no" >&6; }
5328
 
fi
5329
 
 
5330
 
 
5331
 
  test -n "$ac_ct_CXX" && break
5332
 
done
5333
 
 
5334
 
  if test "x$ac_ct_CXX" = x; then
5335
 
    CXX="g++"
5336
 
  else
5337
 
    case $cross_compiling:$ac_tool_warned in
5338
 
yes:)
5339
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5340
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5341
 
ac_tool_warned=yes ;;
5342
 
esac
5343
 
    CXX=$ac_ct_CXX
5344
 
  fi
5345
 
fi
5346
 
 
5347
 
  fi
5348
 
fi
5349
 
# Provide some information about the compiler.
5350
 
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5351
 
set X $ac_compile
5352
 
ac_compiler=$2
5353
 
for ac_option in --version -v -V -qversion; do
5354
 
  { { ac_try="$ac_compiler $ac_option >&5"
5355
 
case "(($ac_try" in
5356
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357
 
  *) ac_try_echo=$ac_try;;
5358
 
esac
5359
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5360
 
$as_echo "$ac_try_echo"; } >&5
5361
 
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5362
 
  ac_status=$?
5363
 
  if test -s conftest.err; then
5364
 
    sed '10a\
5365
 
... rest of stderr output deleted ...
5366
 
         10q' conftest.err >conftest.er1
5367
 
    cat conftest.er1 >&5
5368
 
  fi
5369
 
  rm -f conftest.er1 conftest.err
5370
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5371
 
  test $ac_status = 0; }
5372
 
done
5373
 
 
5374
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5375
 
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5376
 
if ${ac_cv_cxx_compiler_gnu+:} false; then :
5377
 
  $as_echo_n "(cached) " >&6
5378
 
else
5379
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380
 
/* end confdefs.h.  */
5381
 
 
5382
 
int
5383
 
main ()
5384
 
{
5385
 
#ifndef __GNUC__
5386
 
       choke me
5387
 
#endif
5388
 
 
5389
 
  ;
5390
 
  return 0;
5391
 
}
5392
 
_ACEOF
5393
 
if ac_fn_cxx_try_compile "$LINENO"; then :
5394
 
  ac_compiler_gnu=yes
5395
 
else
5396
 
  ac_compiler_gnu=no
5397
 
fi
5398
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5399
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5400
 
 
5401
 
fi
5402
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5403
 
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5404
 
if test $ac_compiler_gnu = yes; then
5405
 
  GXX=yes
5406
 
else
5407
 
  GXX=
5408
 
fi
5409
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
5410
 
ac_save_CXXFLAGS=$CXXFLAGS
5411
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5412
 
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5413
 
if ${ac_cv_prog_cxx_g+:} false; then :
5414
 
  $as_echo_n "(cached) " >&6
5415
 
else
5416
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5417
 
   ac_cxx_werror_flag=yes
5418
 
   ac_cv_prog_cxx_g=no
5419
 
   CXXFLAGS="-g"
5420
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421
 
/* end confdefs.h.  */
5422
 
 
5423
 
int
5424
 
main ()
5425
 
{
5426
 
 
5427
 
  ;
5428
 
  return 0;
5429
 
}
5430
 
_ACEOF
5431
 
if ac_fn_cxx_try_compile "$LINENO"; then :
5432
 
  ac_cv_prog_cxx_g=yes
5433
 
else
5434
 
  CXXFLAGS=""
5435
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436
 
/* end confdefs.h.  */
5437
 
 
5438
 
int
5439
 
main ()
5440
 
{
5441
 
 
5442
 
  ;
5443
 
  return 0;
5444
 
}
5445
 
_ACEOF
5446
 
if ac_fn_cxx_try_compile "$LINENO"; then :
5447
 
 
5448
 
else
5449
 
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5450
 
         CXXFLAGS="-g"
5451
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452
 
/* end confdefs.h.  */
5453
 
 
5454
 
int
5455
 
main ()
5456
 
{
5457
 
 
5458
 
  ;
5459
 
  return 0;
5460
 
}
5461
 
_ACEOF
5462
 
if ac_fn_cxx_try_compile "$LINENO"; then :
5463
 
  ac_cv_prog_cxx_g=yes
5464
 
fi
5465
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5466
 
fi
5467
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5468
 
fi
5469
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5471
 
fi
5472
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5473
 
$as_echo "$ac_cv_prog_cxx_g" >&6; }
5474
 
if test "$ac_test_CXXFLAGS" = set; then
5475
 
  CXXFLAGS=$ac_save_CXXFLAGS
5476
 
elif test $ac_cv_prog_cxx_g = yes; then
5477
 
  if test "$GXX" = yes; then
5478
 
    CXXFLAGS="-g -O2"
5479
 
  else
5480
 
    CXXFLAGS="-g"
5481
 
  fi
5482
 
else
5483
 
  if test "$GXX" = yes; then
5484
 
    CXXFLAGS="-O2"
5485
 
  else
5486
 
    CXXFLAGS=
5487
 
  fi
5488
 
fi
5489
 
ac_ext=c
5490
 
ac_cpp='$CPP $CPPFLAGS'
5491
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5492
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5493
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5494
 
 
5495
 
depcc="$CXX"  am_compiler_list=
5496
 
 
5497
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5498
 
$as_echo_n "checking dependency style of $depcc... " >&6; }
5499
 
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5500
 
  $as_echo_n "(cached) " >&6
5501
 
else
5502
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5503
 
  # We make a subdir and do the tests there.  Otherwise we can end up
5504
 
  # making bogus files that we don't know about and never remove.  For
5505
 
  # instance it was reported that on HP-UX the gcc test will end up
5506
 
  # making a dummy file named `D' -- because `-MD' means `put the output
5507
 
  # in D'.
5508
 
  rm -rf conftest.dir
5509
 
  mkdir conftest.dir
5510
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
5511
 
  # using a relative directory.
5512
 
  cp "$am_depcomp" conftest.dir
5513
 
  cd conftest.dir
5514
 
  # We will build objects and dependencies in a subdirectory because
5515
 
  # it helps to detect inapplicable dependency modes.  For instance
5516
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
5517
 
  # side effect of compilation, but ICC will put the dependencies in
5518
 
  # the current directory while Tru64 will put them in the object
5519
 
  # directory.
5520
 
  mkdir sub
5521
 
 
5522
 
  am_cv_CXX_dependencies_compiler_type=none
5523
 
  if test "$am_compiler_list" = ""; then
5524
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5525
 
  fi
5526
 
  am__universal=false
5527
 
  case " $depcc " in #(
5528
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5529
 
     esac
5530
 
 
5531
 
  for depmode in $am_compiler_list; do
5532
 
    # Setup a source with many dependencies, because some compilers
5533
 
    # like to wrap large dependency lists on column 80 (with \), and
5534
 
    # we should not choose a depcomp mode which is confused by this.
5535
 
    #
5536
 
    # We need to recreate these files for each test, as the compiler may
5537
 
    # overwrite some of them when testing with obscure command lines.
5538
 
    # This happens at least with the AIX C compiler.
5539
 
    : > sub/conftest.c
5540
 
    for i in 1 2 3 4 5 6; do
5541
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5542
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5543
 
      # Solaris 8's {/usr,}/bin/sh.
5544
 
      touch sub/conftst$i.h
5545
 
    done
5546
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5547
 
 
5548
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5549
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
5550
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
5551
 
    # versions had trouble with output in subdirs
5552
 
    am__obj=sub/conftest.${OBJEXT-o}
5553
 
    am__minus_obj="-o $am__obj"
5554
 
    case $depmode in
5555
 
    gcc)
5556
 
      # This depmode causes a compiler race in universal mode.
5557
 
      test "$am__universal" = false || continue
5558
 
      ;;
5559
 
    nosideeffect)
5560
 
      # after this tag, mechanisms are not by side-effect, so they'll
5561
 
      # only be used when explicitly requested
5562
 
      if test "x$enable_dependency_tracking" = xyes; then
5563
 
        continue
5564
 
      else
5565
 
        break
5566
 
      fi
5567
 
      ;;
5568
 
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5569
 
      # This compiler won't grok `-c -o', but also, the minuso test has
5570
 
      # not run yet.  These depmodes are late enough in the game, and
5571
 
      # so weak that their functioning should not be impacted.
5572
 
      am__obj=conftest.${OBJEXT-o}
5573
 
      am__minus_obj=
5574
 
      ;;
5575
 
    none) break ;;
5576
 
    esac
5577
 
    if depmode=$depmode \
5578
 
       source=sub/conftest.c object=$am__obj \
5579
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5580
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5581
 
         >/dev/null 2>conftest.err &&
5582
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5583
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5584
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5585
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5586
 
      # icc doesn't choke on unknown options, it will just issue warnings
5587
 
      # or remarks (even with -Werror).  So we grep stderr for any message
5588
 
      # that says an option was ignored or not supported.
5589
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
5590
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
5591
 
      # The diagnosis changed in icc 8.0:
5592
 
      #   icc: Command line remark: option '-MP' not supported
5593
 
      if (grep 'ignoring option' conftest.err ||
5594
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5595
 
        am_cv_CXX_dependencies_compiler_type=$depmode
5596
 
        break
5597
 
      fi
5598
 
    fi
5599
 
  done
5600
 
 
5601
 
  cd ..
5602
 
  rm -rf conftest.dir
5603
 
else
5604
 
  am_cv_CXX_dependencies_compiler_type=none
5605
 
fi
5606
 
 
5607
 
fi
5608
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5609
 
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5610
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5611
 
 
5612
 
 if
5613
 
  test "x$enable_dependency_tracking" != xno \
5614
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5615
 
  am__fastdepCXX_TRUE=
5616
 
  am__fastdepCXX_FALSE='#'
5617
 
else
5618
 
  am__fastdepCXX_TRUE='#'
5619
 
  am__fastdepCXX_FALSE=
5620
 
fi
5621
 
 
5622
 
 
5623
 
 
5624
 
# This allows features like per-target compiler flags.  I.e., you can compile
5625
 
# one copy of the same sources twice with different flags.  (See lib/guestApp
5626
 
# for an example.)
5627
 
if test "x$CC" != xcc; then
5628
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5629
 
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5630
 
else
5631
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5632
 
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5633
 
fi
5634
 
set dummy $CC; ac_cc=`$as_echo "$2" |
5635
 
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5636
 
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5637
 
  $as_echo_n "(cached) " >&6
5638
 
else
5639
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640
 
/* end confdefs.h.  */
5641
 
 
5642
 
int
5643
 
main ()
5644
 
{
5645
 
 
5646
 
  ;
5647
 
  return 0;
5648
 
}
5649
 
_ACEOF
5650
 
# Make sure it works both with $CC and with simple cc.
5651
 
# We do the test twice because some compilers refuse to overwrite an
5652
 
# existing .o file with -o, though they will create one.
5653
 
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5654
 
rm -f conftest2.*
5655
 
if { { case "(($ac_try" in
5656
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657
 
  *) ac_try_echo=$ac_try;;
5658
 
esac
5659
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5660
 
$as_echo "$ac_try_echo"; } >&5
5661
 
  (eval "$ac_try") 2>&5
5662
 
  ac_status=$?
5663
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5664
 
  test $ac_status = 0; } &&
5665
 
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
5666
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5667
 
  *) ac_try_echo=$ac_try;;
5668
 
esac
5669
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5670
 
$as_echo "$ac_try_echo"; } >&5
5671
 
  (eval "$ac_try") 2>&5
5672
 
  ac_status=$?
5673
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5674
 
  test $ac_status = 0; };
5675
 
then
5676
 
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5677
 
  if test "x$CC" != xcc; then
5678
 
    # Test first that cc exists at all.
5679
 
    if { ac_try='cc -c conftest.$ac_ext >&5'
5680
 
  { { case "(($ac_try" in
5681
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682
 
  *) ac_try_echo=$ac_try;;
5683
 
esac
5684
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5685
 
$as_echo "$ac_try_echo"; } >&5
5686
 
  (eval "$ac_try") 2>&5
5687
 
  ac_status=$?
5688
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5689
 
  test $ac_status = 0; }; }; then
5690
 
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5691
 
      rm -f conftest2.*
5692
 
      if { { case "(($ac_try" in
5693
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694
 
  *) ac_try_echo=$ac_try;;
5695
 
esac
5696
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5697
 
$as_echo "$ac_try_echo"; } >&5
5698
 
  (eval "$ac_try") 2>&5
5699
 
  ac_status=$?
5700
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5701
 
  test $ac_status = 0; } &&
5702
 
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
5703
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704
 
  *) ac_try_echo=$ac_try;;
5705
 
esac
5706
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5707
 
$as_echo "$ac_try_echo"; } >&5
5708
 
  (eval "$ac_try") 2>&5
5709
 
  ac_status=$?
5710
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5711
 
  test $ac_status = 0; };
5712
 
      then
5713
 
        # cc works too.
5714
 
        :
5715
 
      else
5716
 
        # cc exists but doesn't like -o.
5717
 
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
5718
 
      fi
5719
 
    fi
5720
 
  fi
5721
 
else
5722
 
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
5723
 
fi
5724
 
rm -f core conftest*
5725
 
 
5726
 
fi
5727
 
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5728
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5729
 
$as_echo "yes" >&6; }
5730
 
else
5731
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732
 
$as_echo "no" >&6; }
5733
 
 
5734
 
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5735
 
 
5736
 
fi
5737
 
 
5738
 
# FIXME: we rely on the cache variable name because
5739
 
# there is no other way.
5740
 
set dummy $CC
5741
 
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5742
 
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5743
 
if test "$am_t" != yes; then
5744
 
   # Losing compiler, so override with the script.
5745
 
   # FIXME: It is wrong to rewrite CC.
5746
 
   # But if we don't then we get into trouble of one sort or another.
5747
 
   # A longer-term fix would be to have automake use am__CC in this case,
5748
 
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5749
 
   CC="$am_aux_dir/compile $CC"
5750
 
fi
5751
 
 
5752
 
 
5753
 
 
5754
 
# Needed for the various install and uninstall hooks.
5755
 
 
5756
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5757
 
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5758
 
if ${ac_cv_path_SED+:} false; then :
5759
 
  $as_echo_n "(cached) " >&6
5760
 
else
5761
 
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5762
 
     for ac_i in 1 2 3 4 5 6 7; do
5763
 
       ac_script="$ac_script$as_nl$ac_script"
5764
 
     done
5765
 
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5766
 
     { ac_script=; unset ac_script;}
5767
 
     if test -z "$SED"; then
5768
 
  ac_path_SED_found=false
5769
 
  # Loop through the user's path and test for each of PROGNAME-LIST
5770
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771
 
for as_dir in $PATH
5772
 
do
5773
 
  IFS=$as_save_IFS
5774
 
  test -z "$as_dir" && as_dir=.
5775
 
    for ac_prog in sed gsed; do
5776
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5777
 
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5778
 
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5779
 
# Check for GNU ac_path_SED and select it if it is found.
5780
 
  # Check for GNU $ac_path_SED
5781
 
case `"$ac_path_SED" --version 2>&1` in
5782
 
*GNU*)
5783
 
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5784
 
*)
5785
 
  ac_count=0
5786
 
  $as_echo_n 0123456789 >"conftest.in"
5787
 
  while :
5788
 
  do
5789
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5790
 
    mv "conftest.tmp" "conftest.in"
5791
 
    cp "conftest.in" "conftest.nl"
5792
 
    $as_echo '' >> "conftest.nl"
5793
 
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5794
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5795
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5796
 
    if test $ac_count -gt ${ac_path_SED_max-0}; then
5797
 
      # Best one so far, save it but keep looking for a better one
5798
 
      ac_cv_path_SED="$ac_path_SED"
5799
 
      ac_path_SED_max=$ac_count
5800
 
    fi
5801
 
    # 10*(2^10) chars as input seems more than enough
5802
 
    test $ac_count -gt 10 && break
5803
 
  done
5804
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5805
 
esac
5806
 
 
5807
 
      $ac_path_SED_found && break 3
5808
 
    done
5809
 
  done
5810
 
  done
5811
 
IFS=$as_save_IFS
5812
 
  if test -z "$ac_cv_path_SED"; then
5813
 
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5814
 
  fi
5815
 
else
5816
 
  ac_cv_path_SED=$SED
5817
 
fi
5818
 
 
5819
 
fi
5820
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5821
 
$as_echo "$ac_cv_path_SED" >&6; }
5822
 
 SED="$ac_cv_path_SED"
5823
 
  rm -f conftest.sed
5824
 
 
5825
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5826
 
$as_echo_n "checking whether ln -s works... " >&6; }
5827
 
LN_S=$as_ln_s
5828
 
if test "$LN_S" = "ln -s"; then
5829
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5830
 
$as_echo "yes" >&6; }
5831
 
else
5832
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5833
 
$as_echo "no, using $LN_S" >&6; }
5834
 
fi
5835
 
 
5836
 
 
5837
 
 
5838
 
# Needed for creating the archives in lib/ and the shared libraries.
5839
 
case `pwd` in
5840
 
  *\ * | *\     *)
5841
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5842
 
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5843
 
esac
5844
 
 
5845
 
 
5846
 
 
5847
 
macro_version='2.4.2'
5848
 
macro_revision='1.3337'
5849
 
 
5850
 
 
5851
 
 
5852
 
 
5853
 
 
5854
 
 
5855
 
 
5856
 
 
5857
 
 
5858
 
 
5859
 
 
5860
 
 
5861
 
 
5862
 
ltmain="$ac_aux_dir/ltmain.sh"
5863
 
 
5864
 
# Backslashify metacharacters that are still active within
5865
 
# double-quoted strings.
5866
 
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5867
 
 
5868
 
# Same as above, but do not quote variable references.
5869
 
double_quote_subst='s/\(["`\\]\)/\\\1/g'
5870
 
 
5871
 
# Sed substitution to delay expansion of an escaped shell variable in a
5872
 
# double_quote_subst'ed string.
5873
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5874
 
 
5875
 
# Sed substitution to delay expansion of an escaped single quote.
5876
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5877
 
 
5878
 
# Sed substitution to avoid accidental globbing in evaled expressions
5879
 
no_glob_subst='s/\*/\\\*/g'
5880
 
 
5881
 
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5882
 
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5883
 
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5884
 
 
5885
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5886
 
$as_echo_n "checking how to print strings... " >&6; }
5887
 
# Test print first, because it will be a builtin if present.
5888
 
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5889
 
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5890
 
  ECHO='print -r --'
5891
 
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5892
 
  ECHO='printf %s\n'
5893
 
else
5894
 
  # Use this function as a fallback that always works.
5895
 
  func_fallback_echo ()
5896
 
  {
5897
 
    eval 'cat <<_LTECHO_EOF
5898
 
$1
5899
 
_LTECHO_EOF'
5900
 
  }
5901
 
  ECHO='func_fallback_echo'
5902
 
fi
5903
 
 
5904
 
# func_echo_all arg...
5905
 
# Invoke $ECHO with all args, space-separated.
5906
 
func_echo_all ()
5907
 
{
5908
 
    $ECHO ""
5909
 
}
5910
 
 
5911
 
case "$ECHO" in
5912
 
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5913
 
$as_echo "printf" >&6; } ;;
5914
 
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5915
 
$as_echo "print -r" >&6; } ;;
5916
 
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5917
 
$as_echo "cat" >&6; } ;;
5918
 
esac
5919
 
 
5920
 
 
5921
 
 
5922
 
 
5923
 
 
5924
 
 
5925
 
 
5926
 
 
5927
 
 
5928
 
 
5929
 
 
5930
 
 
5931
 
 
5932
 
 
5933
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5934
 
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5935
 
if ${ac_cv_path_SED+:} false; then :
5936
 
  $as_echo_n "(cached) " >&6
5937
 
else
5938
 
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5939
 
     for ac_i in 1 2 3 4 5 6 7; do
5940
 
       ac_script="$ac_script$as_nl$ac_script"
5941
 
     done
5942
 
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5943
 
     { ac_script=; unset ac_script;}
5944
 
     if test -z "$SED"; then
5945
 
  ac_path_SED_found=false
5946
 
  # Loop through the user's path and test for each of PROGNAME-LIST
5947
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948
 
for as_dir in $PATH
5949
 
do
5950
 
  IFS=$as_save_IFS
5951
 
  test -z "$as_dir" && as_dir=.
5952
 
    for ac_prog in sed gsed; do
5953
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5954
 
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5955
 
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5956
 
# Check for GNU ac_path_SED and select it if it is found.
5957
 
  # Check for GNU $ac_path_SED
5958
 
case `"$ac_path_SED" --version 2>&1` in
5959
 
*GNU*)
5960
 
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5961
 
*)
5962
 
  ac_count=0
5963
 
  $as_echo_n 0123456789 >"conftest.in"
5964
 
  while :
5965
 
  do
5966
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5967
 
    mv "conftest.tmp" "conftest.in"
5968
 
    cp "conftest.in" "conftest.nl"
5969
 
    $as_echo '' >> "conftest.nl"
5970
 
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5971
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5972
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5973
 
    if test $ac_count -gt ${ac_path_SED_max-0}; then
5974
 
      # Best one so far, save it but keep looking for a better one
5975
 
      ac_cv_path_SED="$ac_path_SED"
5976
 
      ac_path_SED_max=$ac_count
5977
 
    fi
5978
 
    # 10*(2^10) chars as input seems more than enough
5979
 
    test $ac_count -gt 10 && break
5980
 
  done
5981
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5982
 
esac
5983
 
 
5984
 
      $ac_path_SED_found && break 3
5985
 
    done
5986
 
  done
5987
 
  done
5988
 
IFS=$as_save_IFS
5989
 
  if test -z "$ac_cv_path_SED"; then
5990
 
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5991
 
  fi
5992
 
else
5993
 
  ac_cv_path_SED=$SED
5994
 
fi
5995
 
 
5996
 
fi
5997
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5998
 
$as_echo "$ac_cv_path_SED" >&6; }
5999
 
 SED="$ac_cv_path_SED"
6000
 
  rm -f conftest.sed
6001
 
 
6002
 
test -z "$SED" && SED=sed
6003
 
Xsed="$SED -e 1s/^X//"
6004
 
 
6005
 
 
6006
 
 
6007
 
 
6008
 
 
6009
 
 
6010
 
 
6011
 
 
6012
 
 
6013
 
 
6014
 
 
6015
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6016
 
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6017
 
if ${ac_cv_path_GREP+:} false; then :
6018
 
  $as_echo_n "(cached) " >&6
6019
 
else
6020
 
  if test -z "$GREP"; then
6021
 
  ac_path_GREP_found=false
6022
 
  # Loop through the user's path and test for each of PROGNAME-LIST
6023
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6025
 
do
6026
 
  IFS=$as_save_IFS
6027
 
  test -z "$as_dir" && as_dir=.
6028
 
    for ac_prog in grep ggrep; do
6029
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6030
 
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6031
 
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6032
 
# Check for GNU ac_path_GREP and select it if it is found.
6033
 
  # Check for GNU $ac_path_GREP
6034
 
case `"$ac_path_GREP" --version 2>&1` in
6035
 
*GNU*)
6036
 
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6037
 
*)
6038
 
  ac_count=0
6039
 
  $as_echo_n 0123456789 >"conftest.in"
6040
 
  while :
6041
 
  do
6042
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
6043
 
    mv "conftest.tmp" "conftest.in"
6044
 
    cp "conftest.in" "conftest.nl"
6045
 
    $as_echo 'GREP' >> "conftest.nl"
6046
 
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6047
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6048
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
6049
 
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6050
 
      # Best one so far, save it but keep looking for a better one
6051
 
      ac_cv_path_GREP="$ac_path_GREP"
6052
 
      ac_path_GREP_max=$ac_count
6053
 
    fi
6054
 
    # 10*(2^10) chars as input seems more than enough
6055
 
    test $ac_count -gt 10 && break
6056
 
  done
6057
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6058
 
esac
6059
 
 
6060
 
      $ac_path_GREP_found && break 3
6061
 
    done
6062
 
  done
6063
 
  done
6064
 
IFS=$as_save_IFS
6065
 
  if test -z "$ac_cv_path_GREP"; then
6066
 
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6067
 
  fi
6068
 
else
6069
 
  ac_cv_path_GREP=$GREP
6070
 
fi
6071
 
 
6072
 
fi
6073
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6074
 
$as_echo "$ac_cv_path_GREP" >&6; }
6075
 
 GREP="$ac_cv_path_GREP"
6076
 
 
6077
 
 
6078
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6079
 
$as_echo_n "checking for egrep... " >&6; }
6080
 
if ${ac_cv_path_EGREP+:} false; then :
6081
 
  $as_echo_n "(cached) " >&6
6082
 
else
6083
 
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6084
 
   then ac_cv_path_EGREP="$GREP -E"
6085
 
   else
6086
 
     if test -z "$EGREP"; then
6087
 
  ac_path_EGREP_found=false
6088
 
  # Loop through the user's path and test for each of PROGNAME-LIST
6089
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6091
 
do
6092
 
  IFS=$as_save_IFS
6093
 
  test -z "$as_dir" && as_dir=.
6094
 
    for ac_prog in egrep; do
6095
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6096
 
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6097
 
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6098
 
# Check for GNU ac_path_EGREP and select it if it is found.
6099
 
  # Check for GNU $ac_path_EGREP
6100
 
case `"$ac_path_EGREP" --version 2>&1` in
6101
 
*GNU*)
6102
 
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6103
 
*)
6104
 
  ac_count=0
6105
 
  $as_echo_n 0123456789 >"conftest.in"
6106
 
  while :
6107
 
  do
6108
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
6109
 
    mv "conftest.tmp" "conftest.in"
6110
 
    cp "conftest.in" "conftest.nl"
6111
 
    $as_echo 'EGREP' >> "conftest.nl"
6112
 
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6113
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6114
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
6115
 
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6116
 
      # Best one so far, save it but keep looking for a better one
6117
 
      ac_cv_path_EGREP="$ac_path_EGREP"
6118
 
      ac_path_EGREP_max=$ac_count
6119
 
    fi
6120
 
    # 10*(2^10) chars as input seems more than enough
6121
 
    test $ac_count -gt 10 && break
6122
 
  done
6123
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6124
 
esac
6125
 
 
6126
 
      $ac_path_EGREP_found && break 3
6127
 
    done
6128
 
  done
6129
 
  done
6130
 
IFS=$as_save_IFS
6131
 
  if test -z "$ac_cv_path_EGREP"; then
6132
 
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6133
 
  fi
6134
 
else
6135
 
  ac_cv_path_EGREP=$EGREP
6136
 
fi
6137
 
 
6138
 
   fi
6139
 
fi
6140
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6141
 
$as_echo "$ac_cv_path_EGREP" >&6; }
6142
 
 EGREP="$ac_cv_path_EGREP"
6143
 
 
6144
 
 
6145
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6146
 
$as_echo_n "checking for fgrep... " >&6; }
6147
 
if ${ac_cv_path_FGREP+:} false; then :
6148
 
  $as_echo_n "(cached) " >&6
6149
 
else
6150
 
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6151
 
   then ac_cv_path_FGREP="$GREP -F"
6152
 
   else
6153
 
     if test -z "$FGREP"; then
6154
 
  ac_path_FGREP_found=false
6155
 
  # Loop through the user's path and test for each of PROGNAME-LIST
6156
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6158
 
do
6159
 
  IFS=$as_save_IFS
6160
 
  test -z "$as_dir" && as_dir=.
6161
 
    for ac_prog in fgrep; do
6162
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6163
 
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6164
 
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6165
 
# Check for GNU ac_path_FGREP and select it if it is found.
6166
 
  # Check for GNU $ac_path_FGREP
6167
 
case `"$ac_path_FGREP" --version 2>&1` in
6168
 
*GNU*)
6169
 
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6170
 
*)
6171
 
  ac_count=0
6172
 
  $as_echo_n 0123456789 >"conftest.in"
6173
 
  while :
6174
 
  do
6175
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
6176
 
    mv "conftest.tmp" "conftest.in"
6177
 
    cp "conftest.in" "conftest.nl"
6178
 
    $as_echo 'FGREP' >> "conftest.nl"
6179
 
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6180
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6181
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
6182
 
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6183
 
      # Best one so far, save it but keep looking for a better one
6184
 
      ac_cv_path_FGREP="$ac_path_FGREP"
6185
 
      ac_path_FGREP_max=$ac_count
6186
 
    fi
6187
 
    # 10*(2^10) chars as input seems more than enough
6188
 
    test $ac_count -gt 10 && break
6189
 
  done
6190
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6191
 
esac
6192
 
 
6193
 
      $ac_path_FGREP_found && break 3
6194
 
    done
6195
 
  done
6196
 
  done
6197
 
IFS=$as_save_IFS
6198
 
  if test -z "$ac_cv_path_FGREP"; then
6199
 
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6200
 
  fi
6201
 
else
6202
 
  ac_cv_path_FGREP=$FGREP
6203
 
fi
6204
 
 
6205
 
   fi
6206
 
fi
6207
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6208
 
$as_echo "$ac_cv_path_FGREP" >&6; }
6209
 
 FGREP="$ac_cv_path_FGREP"
6210
 
 
6211
 
 
6212
 
test -z "$GREP" && GREP=grep
6213
 
 
6214
 
 
6215
 
 
6216
 
 
6217
 
 
6218
 
 
6219
 
 
6220
 
 
6221
 
 
6222
 
 
6223
 
 
6224
 
 
6225
 
 
6226
 
 
6227
 
 
6228
 
 
6229
 
 
6230
 
 
6231
 
 
6232
 
# Check whether --with-gnu-ld was given.
6233
 
if test "${with_gnu_ld+set}" = set; then :
6234
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6235
 
else
6236
 
  with_gnu_ld=no
6237
 
fi
6238
 
 
6239
 
ac_prog=ld
6240
 
if test "$GCC" = yes; then
6241
 
  # Check if gcc -print-prog-name=ld gives a path.
6242
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6243
 
$as_echo_n "checking for ld used by $CC... " >&6; }
6244
 
  case $host in
6245
 
  *-*-mingw*)
6246
 
    # gcc leaves a trailing carriage return which upsets mingw
6247
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6248
 
  *)
6249
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6250
 
  esac
6251
 
  case $ac_prog in
6252
 
    # Accept absolute paths.
6253
 
    [\\/]* | ?:[\\/]*)
6254
 
      re_direlt='/[^/][^/]*/\.\./'
6255
 
      # Canonicalize the pathname of ld
6256
 
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6257
 
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6258
 
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6259
 
      done
6260
 
      test -z "$LD" && LD="$ac_prog"
6261
 
      ;;
6262
 
  "")
6263
 
    # If it fails, then pretend we aren't using GCC.
6264
 
    ac_prog=ld
6265
 
    ;;
6266
 
  *)
6267
 
    # If it is relative, then search for the first ld in PATH.
6268
 
    with_gnu_ld=unknown
6269
 
    ;;
6270
 
  esac
6271
 
elif test "$with_gnu_ld" = yes; then
6272
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6273
 
$as_echo_n "checking for GNU ld... " >&6; }
6274
 
else
6275
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6276
 
$as_echo_n "checking for non-GNU ld... " >&6; }
6277
 
fi
6278
 
if ${lt_cv_path_LD+:} false; then :
6279
 
  $as_echo_n "(cached) " >&6
6280
 
else
6281
 
  if test -z "$LD"; then
6282
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6283
 
  for ac_dir in $PATH; do
6284
 
    IFS="$lt_save_ifs"
6285
 
    test -z "$ac_dir" && ac_dir=.
6286
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6287
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
6288
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
6289
 
      # but apparently some variants of GNU ld only accept -v.
6290
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
6291
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6292
 
      *GNU* | *'with BFD'*)
6293
 
        test "$with_gnu_ld" != no && break
6294
 
        ;;
6295
 
      *)
6296
 
        test "$with_gnu_ld" != yes && break
6297
 
        ;;
6298
 
      esac
6299
 
    fi
6300
 
  done
6301
 
  IFS="$lt_save_ifs"
6302
 
else
6303
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6304
 
fi
6305
 
fi
6306
 
 
6307
 
LD="$lt_cv_path_LD"
6308
 
if test -n "$LD"; then
6309
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6310
 
$as_echo "$LD" >&6; }
6311
 
else
6312
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313
 
$as_echo "no" >&6; }
6314
 
fi
6315
 
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6316
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6317
 
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6318
 
if ${lt_cv_prog_gnu_ld+:} false; then :
6319
 
  $as_echo_n "(cached) " >&6
6320
 
else
6321
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6322
 
case `$LD -v 2>&1 </dev/null` in
6323
 
*GNU* | *'with BFD'*)
6324
 
  lt_cv_prog_gnu_ld=yes
6325
 
  ;;
6326
 
*)
6327
 
  lt_cv_prog_gnu_ld=no
6328
 
  ;;
6329
 
esac
6330
 
fi
6331
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6332
 
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6333
 
with_gnu_ld=$lt_cv_prog_gnu_ld
6334
 
 
6335
 
 
6336
 
 
6337
 
 
6338
 
 
6339
 
 
6340
 
 
6341
 
 
6342
 
 
6343
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6344
 
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6345
 
if ${lt_cv_path_NM+:} false; then :
6346
 
  $as_echo_n "(cached) " >&6
6347
 
else
6348
 
  if test -n "$NM"; then
6349
 
  # Let the user override the test.
6350
 
  lt_cv_path_NM="$NM"
6351
 
else
6352
 
  lt_nm_to_check="${ac_tool_prefix}nm"
6353
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6354
 
    lt_nm_to_check="$lt_nm_to_check nm"
6355
 
  fi
6356
 
  for lt_tmp_nm in $lt_nm_to_check; do
6357
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6358
 
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6359
 
      IFS="$lt_save_ifs"
6360
 
      test -z "$ac_dir" && ac_dir=.
6361
 
      tmp_nm="$ac_dir/$lt_tmp_nm"
6362
 
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6363
 
        # Check to see if the nm accepts a BSD-compat flag.
6364
 
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6365
 
        #   nm: unknown option "B" ignored
6366
 
        # Tru64's nm complains that /dev/null is an invalid object file
6367
 
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6368
 
        */dev/null* | *'Invalid file or object type'*)
6369
 
          lt_cv_path_NM="$tmp_nm -B"
6370
 
          break
6371
 
          ;;
6372
 
        *)
6373
 
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6374
 
          */dev/null*)
6375
 
            lt_cv_path_NM="$tmp_nm -p"
6376
 
            break
6377
 
            ;;
6378
 
          *)
6379
 
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6380
 
            continue # so that we can try to find one that supports BSD flags
6381
 
            ;;
6382
 
          esac
6383
 
          ;;
6384
 
        esac
6385
 
      fi
6386
 
    done
6387
 
    IFS="$lt_save_ifs"
6388
 
  done
6389
 
  : ${lt_cv_path_NM=no}
6390
 
fi
6391
 
fi
6392
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6393
 
$as_echo "$lt_cv_path_NM" >&6; }
6394
 
if test "$lt_cv_path_NM" != "no"; then
6395
 
  NM="$lt_cv_path_NM"
6396
 
else
6397
 
  # Didn't find any BSD compatible name lister, look for dumpbin.
6398
 
  if test -n "$DUMPBIN"; then :
6399
 
    # Let the user override the test.
6400
 
  else
6401
 
    if test -n "$ac_tool_prefix"; then
6402
 
  for ac_prog in dumpbin "link -dump"
6403
 
  do
6404
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6405
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6406
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407
 
$as_echo_n "checking for $ac_word... " >&6; }
6408
 
if ${ac_cv_prog_DUMPBIN+:} false; then :
6409
 
  $as_echo_n "(cached) " >&6
6410
 
else
6411
 
  if test -n "$DUMPBIN"; then
6412
 
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6413
 
else
6414
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415
 
for as_dir in $PATH
6416
 
do
6417
 
  IFS=$as_save_IFS
6418
 
  test -z "$as_dir" && as_dir=.
6419
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6420
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6421
 
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6422
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6423
 
    break 2
6424
 
  fi
6425
 
done
6426
 
  done
6427
 
IFS=$as_save_IFS
6428
 
 
6429
 
fi
6430
 
fi
6431
 
DUMPBIN=$ac_cv_prog_DUMPBIN
6432
 
if test -n "$DUMPBIN"; then
6433
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6434
 
$as_echo "$DUMPBIN" >&6; }
6435
 
else
6436
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437
 
$as_echo "no" >&6; }
6438
 
fi
6439
 
 
6440
 
 
6441
 
    test -n "$DUMPBIN" && break
6442
 
  done
6443
 
fi
6444
 
if test -z "$DUMPBIN"; then
6445
 
  ac_ct_DUMPBIN=$DUMPBIN
6446
 
  for ac_prog in dumpbin "link -dump"
6447
 
do
6448
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6449
 
set dummy $ac_prog; ac_word=$2
6450
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451
 
$as_echo_n "checking for $ac_word... " >&6; }
6452
 
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6453
 
  $as_echo_n "(cached) " >&6
6454
 
else
6455
 
  if test -n "$ac_ct_DUMPBIN"; then
6456
 
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6457
 
else
6458
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459
 
for as_dir in $PATH
6460
 
do
6461
 
  IFS=$as_save_IFS
6462
 
  test -z "$as_dir" && as_dir=.
6463
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6464
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6465
 
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6466
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6467
 
    break 2
6468
 
  fi
6469
 
done
6470
 
  done
6471
 
IFS=$as_save_IFS
6472
 
 
6473
 
fi
6474
 
fi
6475
 
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6476
 
if test -n "$ac_ct_DUMPBIN"; then
6477
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6478
 
$as_echo "$ac_ct_DUMPBIN" >&6; }
6479
 
else
6480
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6481
 
$as_echo "no" >&6; }
6482
 
fi
6483
 
 
6484
 
 
6485
 
  test -n "$ac_ct_DUMPBIN" && break
6486
 
done
6487
 
 
6488
 
  if test "x$ac_ct_DUMPBIN" = x; then
6489
 
    DUMPBIN=":"
6490
 
  else
6491
 
    case $cross_compiling:$ac_tool_warned in
6492
 
yes:)
6493
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6494
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6495
 
ac_tool_warned=yes ;;
6496
 
esac
6497
 
    DUMPBIN=$ac_ct_DUMPBIN
6498
 
  fi
6499
 
fi
6500
 
 
6501
 
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6502
 
    *COFF*)
6503
 
      DUMPBIN="$DUMPBIN -symbols"
6504
 
      ;;
6505
 
    *)
6506
 
      DUMPBIN=:
6507
 
      ;;
6508
 
    esac
6509
 
  fi
6510
 
 
6511
 
  if test "$DUMPBIN" != ":"; then
6512
 
    NM="$DUMPBIN"
6513
 
  fi
6514
 
fi
6515
 
test -z "$NM" && NM=nm
6516
 
 
6517
 
 
6518
 
 
6519
 
 
6520
 
 
6521
 
 
6522
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6523
 
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6524
 
if ${lt_cv_nm_interface+:} false; then :
6525
 
  $as_echo_n "(cached) " >&6
6526
 
else
6527
 
  lt_cv_nm_interface="BSD nm"
6528
 
  echo "int some_variable = 0;" > conftest.$ac_ext
6529
 
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6530
 
  (eval "$ac_compile" 2>conftest.err)
6531
 
  cat conftest.err >&5
6532
 
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6533
 
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6534
 
  cat conftest.err >&5
6535
 
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6536
 
  cat conftest.out >&5
6537
 
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6538
 
    lt_cv_nm_interface="MS dumpbin"
6539
 
  fi
6540
 
  rm -f conftest*
6541
 
fi
6542
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6543
 
$as_echo "$lt_cv_nm_interface" >&6; }
6544
 
 
6545
 
# find the maximum length of command line arguments
6546
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6547
 
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6548
 
if ${lt_cv_sys_max_cmd_len+:} false; then :
6549
 
  $as_echo_n "(cached) " >&6
6550
 
else
6551
 
    i=0
6552
 
  teststring="ABCD"
6553
 
 
6554
 
  case $build_os in
6555
 
  msdosdjgpp*)
6556
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
6557
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
6558
 
    # during glob expansion).  Even if it were fixed, the result of this
6559
 
    # check would be larger than it should be.
6560
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6561
 
    ;;
6562
 
 
6563
 
  gnu*)
6564
 
    # Under GNU Hurd, this test is not required because there is
6565
 
    # no limit to the length of command line arguments.
6566
 
    # Libtool will interpret -1 as no limit whatsoever
6567
 
    lt_cv_sys_max_cmd_len=-1;
6568
 
    ;;
6569
 
 
6570
 
  cygwin* | mingw* | cegcc*)
6571
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
6572
 
    # about 5 minutes as the teststring grows exponentially.
6573
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
6574
 
    # you end up with a "frozen" computer, even though with patience
6575
 
    # the test eventually succeeds (with a max line length of 256k).
6576
 
    # Instead, let's just punt: use the minimum linelength reported by
6577
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
6578
 
    lt_cv_sys_max_cmd_len=8192;
6579
 
    ;;
6580
 
 
6581
 
  mint*)
6582
 
    # On MiNT this can take a long time and run out of memory.
6583
 
    lt_cv_sys_max_cmd_len=8192;
6584
 
    ;;
6585
 
 
6586
 
  amigaos*)
6587
 
    # On AmigaOS with pdksh, this test takes hours, literally.
6588
 
    # So we just punt and use a minimum line length of 8192.
6589
 
    lt_cv_sys_max_cmd_len=8192;
6590
 
    ;;
6591
 
 
6592
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6593
 
    # This has been around since 386BSD, at least.  Likely further.
6594
 
    if test -x /sbin/sysctl; then
6595
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6596
 
    elif test -x /usr/sbin/sysctl; then
6597
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6598
 
    else
6599
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6600
 
    fi
6601
 
    # And add a safety zone
6602
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6603
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6604
 
    ;;
6605
 
 
6606
 
  interix*)
6607
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6608
 
    lt_cv_sys_max_cmd_len=196608
6609
 
    ;;
6610
 
 
6611
 
  os2*)
6612
 
    # The test takes a long time on OS/2.
6613
 
    lt_cv_sys_max_cmd_len=8192
6614
 
    ;;
6615
 
 
6616
 
  osf*)
6617
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6618
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6619
 
    # nice to cause kernel panics so lets avoid the loop below.
6620
 
    # First set a reasonable default.
6621
 
    lt_cv_sys_max_cmd_len=16384
6622
 
    #
6623
 
    if test -x /sbin/sysconfig; then
6624
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6625
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6626
 
      esac
6627
 
    fi
6628
 
    ;;
6629
 
  sco3.2v5*)
6630
 
    lt_cv_sys_max_cmd_len=102400
6631
 
    ;;
6632
 
  sysv5* | sco5v6* | sysv4.2uw2*)
6633
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6634
 
    if test -n "$kargmax"; then
6635
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6636
 
    else
6637
 
      lt_cv_sys_max_cmd_len=32768
6638
 
    fi
6639
 
    ;;
6640
 
  *)
6641
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6642
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
6643
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6644
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6645
 
    else
6646
 
      # Make teststring a little bigger before we do anything with it.
6647
 
      # a 1K string should be a reasonable start.
6648
 
      for i in 1 2 3 4 5 6 7 8 ; do
6649
 
        teststring=$teststring$teststring
6650
 
      done
6651
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6652
 
      # If test is not a shell built-in, we'll probably end up computing a
6653
 
      # maximum length that is only half of the actual maximum length, but
6654
 
      # we can't tell.
6655
 
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6656
 
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6657
 
              test $i != 17 # 1/2 MB should be enough
6658
 
      do
6659
 
        i=`expr $i + 1`
6660
 
        teststring=$teststring$teststring
6661
 
      done
6662
 
      # Only check the string length outside the loop.
6663
 
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6664
 
      teststring=
6665
 
      # Add a significant safety factor because C++ compilers can tack on
6666
 
      # massive amounts of additional arguments before passing them to the
6667
 
      # linker.  It appears as though 1/2 is a usable value.
6668
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6669
 
    fi
6670
 
    ;;
6671
 
  esac
6672
 
 
6673
 
fi
6674
 
 
6675
 
if test -n $lt_cv_sys_max_cmd_len ; then
6676
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6677
 
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6678
 
else
6679
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6680
 
$as_echo "none" >&6; }
6681
 
fi
6682
 
max_cmd_len=$lt_cv_sys_max_cmd_len
6683
 
 
6684
 
 
6685
 
 
6686
 
 
6687
 
 
6688
 
 
6689
 
: ${CP="cp -f"}
6690
 
: ${MV="mv -f"}
6691
 
: ${RM="rm -f"}
6692
 
 
6693
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6694
 
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6695
 
# Try some XSI features
6696
 
xsi_shell=no
6697
 
( _lt_dummy="a/b/c"
6698
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6699
 
      = c,a/b,b/c, \
6700
 
    && eval 'test $(( 1 + 1 )) -eq 2 \
6701
 
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6702
 
  && xsi_shell=yes
6703
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6704
 
$as_echo "$xsi_shell" >&6; }
6705
 
 
6706
 
 
6707
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6708
 
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6709
 
lt_shell_append=no
6710
 
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6711
 
    >/dev/null 2>&1 \
6712
 
  && lt_shell_append=yes
6713
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6714
 
$as_echo "$lt_shell_append" >&6; }
6715
 
 
6716
 
 
6717
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6718
 
  lt_unset=unset
6719
 
else
6720
 
  lt_unset=false
6721
 
fi
6722
 
 
6723
 
 
6724
 
 
6725
 
 
6726
 
 
6727
 
# test EBCDIC or ASCII
6728
 
case `echo X|tr X '\101'` in
6729
 
 A) # ASCII based system
6730
 
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6731
 
  lt_SP2NL='tr \040 \012'
6732
 
  lt_NL2SP='tr \015\012 \040\040'
6733
 
  ;;
6734
 
 *) # EBCDIC based system
6735
 
  lt_SP2NL='tr \100 \n'
6736
 
  lt_NL2SP='tr \r\n \100\100'
6737
 
  ;;
6738
 
esac
6739
 
 
6740
 
 
6741
 
 
6742
 
 
6743
 
 
6744
 
 
6745
 
 
6746
 
 
6747
 
 
6748
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6749
 
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6750
 
if ${lt_cv_to_host_file_cmd+:} false; then :
6751
 
  $as_echo_n "(cached) " >&6
6752
 
else
6753
 
  case $host in
6754
 
  *-*-mingw* )
6755
 
    case $build in
6756
 
      *-*-mingw* ) # actually msys
6757
 
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6758
 
        ;;
6759
 
      *-*-cygwin* )
6760
 
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6761
 
        ;;
6762
 
      * ) # otherwise, assume *nix
6763
 
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6764
 
        ;;
6765
 
    esac
6766
 
    ;;
6767
 
  *-*-cygwin* )
6768
 
    case $build in
6769
 
      *-*-mingw* ) # actually msys
6770
 
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6771
 
        ;;
6772
 
      *-*-cygwin* )
6773
 
        lt_cv_to_host_file_cmd=func_convert_file_noop
6774
 
        ;;
6775
 
      * ) # otherwise, assume *nix
6776
 
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6777
 
        ;;
6778
 
    esac
6779
 
    ;;
6780
 
  * ) # unhandled hosts (and "normal" native builds)
6781
 
    lt_cv_to_host_file_cmd=func_convert_file_noop
6782
 
    ;;
6783
 
esac
6784
 
 
6785
 
fi
6786
 
 
6787
 
to_host_file_cmd=$lt_cv_to_host_file_cmd
6788
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6789
 
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6790
 
 
6791
 
 
6792
 
 
6793
 
 
6794
 
 
6795
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6796
 
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6797
 
if ${lt_cv_to_tool_file_cmd+:} false; then :
6798
 
  $as_echo_n "(cached) " >&6
6799
 
else
6800
 
  #assume ordinary cross tools, or native build.
6801
 
lt_cv_to_tool_file_cmd=func_convert_file_noop
6802
 
case $host in
6803
 
  *-*-mingw* )
6804
 
    case $build in
6805
 
      *-*-mingw* ) # actually msys
6806
 
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6807
 
        ;;
6808
 
    esac
6809
 
    ;;
6810
 
esac
6811
 
 
6812
 
fi
6813
 
 
6814
 
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6815
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6816
 
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6817
 
 
6818
 
 
6819
 
 
6820
 
 
6821
 
 
6822
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6823
 
$as_echo_n "checking for $LD option to reload object files... " >&6; }
6824
 
if ${lt_cv_ld_reload_flag+:} false; then :
6825
 
  $as_echo_n "(cached) " >&6
6826
 
else
6827
 
  lt_cv_ld_reload_flag='-r'
6828
 
fi
6829
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6830
 
$as_echo "$lt_cv_ld_reload_flag" >&6; }
6831
 
reload_flag=$lt_cv_ld_reload_flag
6832
 
case $reload_flag in
6833
 
"" | " "*) ;;
6834
 
*) reload_flag=" $reload_flag" ;;
6835
 
esac
6836
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6837
 
case $host_os in
6838
 
  cygwin* | mingw* | pw32* | cegcc*)
6839
 
    if test "$GCC" != yes; then
6840
 
      reload_cmds=false
6841
 
    fi
6842
 
    ;;
6843
 
  darwin*)
6844
 
    if test "$GCC" = yes; then
6845
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6846
 
    else
6847
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6848
 
    fi
6849
 
    ;;
6850
 
esac
6851
 
 
6852
 
 
6853
 
 
6854
 
 
6855
 
 
6856
 
 
6857
 
 
6858
 
 
6859
 
 
6860
 
if test -n "$ac_tool_prefix"; then
6861
 
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6862
 
set dummy ${ac_tool_prefix}objdump; ac_word=$2
6863
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864
 
$as_echo_n "checking for $ac_word... " >&6; }
6865
 
if ${ac_cv_prog_OBJDUMP+:} false; then :
6866
 
  $as_echo_n "(cached) " >&6
6867
 
else
6868
 
  if test -n "$OBJDUMP"; then
6869
 
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6870
 
else
6871
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872
 
for as_dir in $PATH
6873
 
do
6874
 
  IFS=$as_save_IFS
6875
 
  test -z "$as_dir" && as_dir=.
6876
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6877
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6878
 
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6879
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6880
 
    break 2
6881
 
  fi
6882
 
done
6883
 
  done
6884
 
IFS=$as_save_IFS
6885
 
 
6886
 
fi
6887
 
fi
6888
 
OBJDUMP=$ac_cv_prog_OBJDUMP
6889
 
if test -n "$OBJDUMP"; then
6890
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6891
 
$as_echo "$OBJDUMP" >&6; }
6892
 
else
6893
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894
 
$as_echo "no" >&6; }
6895
 
fi
6896
 
 
6897
 
 
6898
 
fi
6899
 
if test -z "$ac_cv_prog_OBJDUMP"; then
6900
 
  ac_ct_OBJDUMP=$OBJDUMP
6901
 
  # Extract the first word of "objdump", so it can be a program name with args.
6902
 
set dummy objdump; ac_word=$2
6903
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904
 
$as_echo_n "checking for $ac_word... " >&6; }
6905
 
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6906
 
  $as_echo_n "(cached) " >&6
6907
 
else
6908
 
  if test -n "$ac_ct_OBJDUMP"; then
6909
 
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6910
 
else
6911
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912
 
for as_dir in $PATH
6913
 
do
6914
 
  IFS=$as_save_IFS
6915
 
  test -z "$as_dir" && as_dir=.
6916
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6917
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6918
 
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6919
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6920
 
    break 2
6921
 
  fi
6922
 
done
6923
 
  done
6924
 
IFS=$as_save_IFS
6925
 
 
6926
 
fi
6927
 
fi
6928
 
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6929
 
if test -n "$ac_ct_OBJDUMP"; then
6930
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6931
 
$as_echo "$ac_ct_OBJDUMP" >&6; }
6932
 
else
6933
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934
 
$as_echo "no" >&6; }
6935
 
fi
6936
 
 
6937
 
  if test "x$ac_ct_OBJDUMP" = x; then
6938
 
    OBJDUMP="false"
6939
 
  else
6940
 
    case $cross_compiling:$ac_tool_warned in
6941
 
yes:)
6942
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6943
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6944
 
ac_tool_warned=yes ;;
6945
 
esac
6946
 
    OBJDUMP=$ac_ct_OBJDUMP
6947
 
  fi
6948
 
else
6949
 
  OBJDUMP="$ac_cv_prog_OBJDUMP"
6950
 
fi
6951
 
 
6952
 
test -z "$OBJDUMP" && OBJDUMP=objdump
6953
 
 
6954
 
 
6955
 
 
6956
 
 
6957
 
 
6958
 
 
6959
 
 
6960
 
 
6961
 
 
6962
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6963
 
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6964
 
if ${lt_cv_deplibs_check_method+:} false; then :
6965
 
  $as_echo_n "(cached) " >&6
6966
 
else
6967
 
  lt_cv_file_magic_cmd='$MAGIC_CMD'
6968
 
lt_cv_file_magic_test_file=
6969
 
lt_cv_deplibs_check_method='unknown'
6970
 
# Need to set the preceding variable on all platforms that support
6971
 
# interlibrary dependencies.
6972
 
# 'none' -- dependencies not supported.
6973
 
# `unknown' -- same as none, but documents that we really don't know.
6974
 
# 'pass_all' -- all dependencies passed with no checks.
6975
 
# 'test_compile' -- check by making test program.
6976
 
# 'file_magic [[regex]]' -- check by looking for files in library path
6977
 
# which responds to the $file_magic_cmd with a given extended regex.
6978
 
# If you have `file' or equivalent on your system and you're not sure
6979
 
# whether `pass_all' will *always* work, you probably want this one.
6980
 
 
6981
 
case $host_os in
6982
 
aix[4-9]*)
6983
 
  lt_cv_deplibs_check_method=pass_all
6984
 
  ;;
6985
 
 
6986
 
beos*)
6987
 
  lt_cv_deplibs_check_method=pass_all
6988
 
  ;;
6989
 
 
6990
 
bsdi[45]*)
6991
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6992
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
6993
 
  lt_cv_file_magic_test_file=/shlib/libc.so
6994
 
  ;;
6995
 
 
6996
 
cygwin*)
6997
 
  # func_win32_libid is a shell function defined in ltmain.sh
6998
 
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6999
 
  lt_cv_file_magic_cmd='func_win32_libid'
7000
 
  ;;
7001
 
 
7002
 
mingw* | pw32*)
7003
 
  # Base MSYS/MinGW do not provide the 'file' command needed by
7004
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7005
 
  # unless we find 'file', for example because we are cross-compiling.
7006
 
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7007
 
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7008
 
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7009
 
    lt_cv_file_magic_cmd='func_win32_libid'
7010
 
  else
7011
 
    # Keep this pattern in sync with the one in func_win32_libid.
7012
 
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7013
 
    lt_cv_file_magic_cmd='$OBJDUMP -f'
7014
 
  fi
7015
 
  ;;
7016
 
 
7017
 
cegcc*)
7018
 
  # use the weaker test based on 'objdump'. See mingw*.
7019
 
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7020
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
7021
 
  ;;
7022
 
 
7023
 
darwin* | rhapsody*)
7024
 
  lt_cv_deplibs_check_method=pass_all
7025
 
  ;;
7026
 
 
7027
 
freebsd* | dragonfly*)
7028
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7029
 
    case $host_cpu in
7030
 
    i*86 )
7031
 
      # Not sure whether the presence of OpenBSD here was a mistake.
7032
 
      # Let's accept both of them until this is cleared up.
7033
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7034
 
      lt_cv_file_magic_cmd=/usr/bin/file
7035
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7036
 
      ;;
7037
 
    esac
7038
 
  else
7039
 
    lt_cv_deplibs_check_method=pass_all
7040
 
  fi
7041
 
  ;;
7042
 
 
7043
 
gnu*)
7044
 
  lt_cv_deplibs_check_method=pass_all
7045
 
  ;;
7046
 
 
7047
 
haiku*)
7048
 
  lt_cv_deplibs_check_method=pass_all
7049
 
  ;;
7050
 
 
7051
 
hpux10.20* | hpux11*)
7052
 
  lt_cv_file_magic_cmd=/usr/bin/file
7053
 
  case $host_cpu in
7054
 
  ia64*)
7055
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7056
 
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7057
 
    ;;
7058
 
  hppa*64*)
7059
 
    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]'
7060
 
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7061
 
    ;;
7062
 
  *)
7063
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7064
 
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7065
 
    ;;
7066
 
  esac
7067
 
  ;;
7068
 
 
7069
 
interix[3-9]*)
7070
 
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7071
 
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7072
 
  ;;
7073
 
 
7074
 
irix5* | irix6* | nonstopux*)
7075
 
  case $LD in
7076
 
  *-32|*"-32 ") libmagic=32-bit;;
7077
 
  *-n32|*"-n32 ") libmagic=N32;;
7078
 
  *-64|*"-64 ") libmagic=64-bit;;
7079
 
  *) libmagic=never-match;;
7080
 
  esac
7081
 
  lt_cv_deplibs_check_method=pass_all
7082
 
  ;;
7083
 
 
7084
 
# This must be glibc/ELF.
7085
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
7086
 
  lt_cv_deplibs_check_method=pass_all
7087
 
  ;;
7088
 
 
7089
 
netbsd*)
7090
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7091
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7092
 
  else
7093
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7094
 
  fi
7095
 
  ;;
7096
 
 
7097
 
newos6*)
7098
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7099
 
  lt_cv_file_magic_cmd=/usr/bin/file
7100
 
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7101
 
  ;;
7102
 
 
7103
 
*nto* | *qnx*)
7104
 
  lt_cv_deplibs_check_method=pass_all
7105
 
  ;;
7106
 
 
7107
 
openbsd*)
7108
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7109
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7110
 
  else
7111
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7112
 
  fi
7113
 
  ;;
7114
 
 
7115
 
osf3* | osf4* | osf5*)
7116
 
  lt_cv_deplibs_check_method=pass_all
7117
 
  ;;
7118
 
 
7119
 
rdos*)
7120
 
  lt_cv_deplibs_check_method=pass_all
7121
 
  ;;
7122
 
 
7123
 
solaris*)
7124
 
  lt_cv_deplibs_check_method=pass_all
7125
 
  ;;
7126
 
 
7127
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7128
 
  lt_cv_deplibs_check_method=pass_all
7129
 
  ;;
7130
 
 
7131
 
sysv4 | sysv4.3*)
7132
 
  case $host_vendor in
7133
 
  motorola)
7134
 
    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]'
7135
 
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7136
 
    ;;
7137
 
  ncr)
7138
 
    lt_cv_deplibs_check_method=pass_all
7139
 
    ;;
7140
 
  sequent)
7141
 
    lt_cv_file_magic_cmd='/bin/file'
7142
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7143
 
    ;;
7144
 
  sni)
7145
 
    lt_cv_file_magic_cmd='/bin/file'
7146
 
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7147
 
    lt_cv_file_magic_test_file=/lib/libc.so
7148
 
    ;;
7149
 
  siemens)
7150
 
    lt_cv_deplibs_check_method=pass_all
7151
 
    ;;
7152
 
  pc)
7153
 
    lt_cv_deplibs_check_method=pass_all
7154
 
    ;;
7155
 
  esac
7156
 
  ;;
7157
 
 
7158
 
tpf*)
7159
 
  lt_cv_deplibs_check_method=pass_all
7160
 
  ;;
7161
 
esac
7162
 
 
7163
 
fi
7164
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7165
 
$as_echo "$lt_cv_deplibs_check_method" >&6; }
7166
 
 
7167
 
file_magic_glob=
7168
 
want_nocaseglob=no
7169
 
if test "$build" = "$host"; then
7170
 
  case $host_os in
7171
 
  mingw* | pw32*)
7172
 
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7173
 
      want_nocaseglob=yes
7174
 
    else
7175
 
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7176
 
    fi
7177
 
    ;;
7178
 
  esac
7179
 
fi
7180
 
 
7181
 
file_magic_cmd=$lt_cv_file_magic_cmd
7182
 
deplibs_check_method=$lt_cv_deplibs_check_method
7183
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
7184
 
 
7185
 
 
7186
 
 
7187
 
 
7188
 
 
7189
 
 
7190
 
 
7191
 
 
7192
 
 
7193
 
 
7194
 
 
7195
 
 
7196
 
 
7197
 
 
7198
 
 
7199
 
 
7200
 
 
7201
 
 
7202
 
 
7203
 
 
7204
 
 
7205
 
 
7206
 
if test -n "$ac_tool_prefix"; then
7207
 
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7208
 
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7209
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7210
 
$as_echo_n "checking for $ac_word... " >&6; }
7211
 
if ${ac_cv_prog_DLLTOOL+:} false; then :
7212
 
  $as_echo_n "(cached) " >&6
7213
 
else
7214
 
  if test -n "$DLLTOOL"; then
7215
 
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7216
 
else
7217
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218
 
for as_dir in $PATH
7219
 
do
7220
 
  IFS=$as_save_IFS
7221
 
  test -z "$as_dir" && as_dir=.
7222
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7223
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7224
 
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7225
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7226
 
    break 2
7227
 
  fi
7228
 
done
7229
 
  done
7230
 
IFS=$as_save_IFS
7231
 
 
7232
 
fi
7233
 
fi
7234
 
DLLTOOL=$ac_cv_prog_DLLTOOL
7235
 
if test -n "$DLLTOOL"; then
7236
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7237
 
$as_echo "$DLLTOOL" >&6; }
7238
 
else
7239
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7240
 
$as_echo "no" >&6; }
7241
 
fi
7242
 
 
7243
 
 
7244
 
fi
7245
 
if test -z "$ac_cv_prog_DLLTOOL"; then
7246
 
  ac_ct_DLLTOOL=$DLLTOOL
7247
 
  # Extract the first word of "dlltool", so it can be a program name with args.
7248
 
set dummy dlltool; ac_word=$2
7249
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7250
 
$as_echo_n "checking for $ac_word... " >&6; }
7251
 
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7252
 
  $as_echo_n "(cached) " >&6
7253
 
else
7254
 
  if test -n "$ac_ct_DLLTOOL"; then
7255
 
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7256
 
else
7257
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258
 
for as_dir in $PATH
7259
 
do
7260
 
  IFS=$as_save_IFS
7261
 
  test -z "$as_dir" && as_dir=.
7262
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7263
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7264
 
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7265
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7266
 
    break 2
7267
 
  fi
7268
 
done
7269
 
  done
7270
 
IFS=$as_save_IFS
7271
 
 
7272
 
fi
7273
 
fi
7274
 
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7275
 
if test -n "$ac_ct_DLLTOOL"; then
7276
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7277
 
$as_echo "$ac_ct_DLLTOOL" >&6; }
7278
 
else
7279
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280
 
$as_echo "no" >&6; }
7281
 
fi
7282
 
 
7283
 
  if test "x$ac_ct_DLLTOOL" = x; then
7284
 
    DLLTOOL="false"
7285
 
  else
7286
 
    case $cross_compiling:$ac_tool_warned in
7287
 
yes:)
7288
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7289
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7290
 
ac_tool_warned=yes ;;
7291
 
esac
7292
 
    DLLTOOL=$ac_ct_DLLTOOL
7293
 
  fi
7294
 
else
7295
 
  DLLTOOL="$ac_cv_prog_DLLTOOL"
7296
 
fi
7297
 
 
7298
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
7299
 
 
7300
 
 
7301
 
 
7302
 
 
7303
 
 
7304
 
 
7305
 
 
7306
 
 
7307
 
 
7308
 
 
7309
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7310
 
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7311
 
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7312
 
  $as_echo_n "(cached) " >&6
7313
 
else
7314
 
  lt_cv_sharedlib_from_linklib_cmd='unknown'
7315
 
 
7316
 
case $host_os in
7317
 
cygwin* | mingw* | pw32* | cegcc*)
7318
 
  # two different shell functions defined in ltmain.sh
7319
 
  # decide which to use based on capabilities of $DLLTOOL
7320
 
  case `$DLLTOOL --help 2>&1` in
7321
 
  *--identify-strict*)
7322
 
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7323
 
    ;;
7324
 
  *)
7325
 
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7326
 
    ;;
7327
 
  esac
7328
 
  ;;
7329
 
*)
7330
 
  # fallback: assume linklib IS sharedlib
7331
 
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7332
 
  ;;
7333
 
esac
7334
 
 
7335
 
fi
7336
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7337
 
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7338
 
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7339
 
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7340
 
 
7341
 
 
7342
 
 
7343
 
 
7344
 
 
7345
 
 
7346
 
 
7347
 
 
7348
 
if test -n "$ac_tool_prefix"; then
7349
 
  for ac_prog in ar
7350
 
  do
7351
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7352
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7353
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7354
 
$as_echo_n "checking for $ac_word... " >&6; }
7355
 
if ${ac_cv_prog_AR+:} false; then :
7356
 
  $as_echo_n "(cached) " >&6
7357
 
else
7358
 
  if test -n "$AR"; then
7359
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
7360
 
else
7361
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362
 
for as_dir in $PATH
7363
 
do
7364
 
  IFS=$as_save_IFS
7365
 
  test -z "$as_dir" && as_dir=.
7366
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7367
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7368
 
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7369
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7370
 
    break 2
7371
 
  fi
7372
 
done
7373
 
  done
7374
 
IFS=$as_save_IFS
7375
 
 
7376
 
fi
7377
 
fi
7378
 
AR=$ac_cv_prog_AR
7379
 
if test -n "$AR"; then
7380
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7381
 
$as_echo "$AR" >&6; }
7382
 
else
7383
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384
 
$as_echo "no" >&6; }
7385
 
fi
7386
 
 
7387
 
 
7388
 
    test -n "$AR" && break
7389
 
  done
7390
 
fi
7391
 
if test -z "$AR"; then
7392
 
  ac_ct_AR=$AR
7393
 
  for ac_prog in ar
7394
 
do
7395
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7396
 
set dummy $ac_prog; ac_word=$2
7397
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7398
 
$as_echo_n "checking for $ac_word... " >&6; }
7399
 
if ${ac_cv_prog_ac_ct_AR+:} false; then :
7400
 
  $as_echo_n "(cached) " >&6
7401
 
else
7402
 
  if test -n "$ac_ct_AR"; then
7403
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7404
 
else
7405
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406
 
for as_dir in $PATH
7407
 
do
7408
 
  IFS=$as_save_IFS
7409
 
  test -z "$as_dir" && as_dir=.
7410
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7411
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7412
 
    ac_cv_prog_ac_ct_AR="$ac_prog"
7413
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7414
 
    break 2
7415
 
  fi
7416
 
done
7417
 
  done
7418
 
IFS=$as_save_IFS
7419
 
 
7420
 
fi
7421
 
fi
7422
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7423
 
if test -n "$ac_ct_AR"; then
7424
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7425
 
$as_echo "$ac_ct_AR" >&6; }
7426
 
else
7427
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7428
 
$as_echo "no" >&6; }
7429
 
fi
7430
 
 
7431
 
 
7432
 
  test -n "$ac_ct_AR" && break
7433
 
done
7434
 
 
7435
 
  if test "x$ac_ct_AR" = x; then
7436
 
    AR="false"
7437
 
  else
7438
 
    case $cross_compiling:$ac_tool_warned in
7439
 
yes:)
7440
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7441
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7442
 
ac_tool_warned=yes ;;
7443
 
esac
7444
 
    AR=$ac_ct_AR
7445
 
  fi
7446
 
fi
7447
 
 
7448
 
: ${AR=ar}
7449
 
: ${AR_FLAGS=cru}
7450
 
 
7451
 
 
7452
 
 
7453
 
 
7454
 
 
7455
 
 
7456
 
 
7457
 
 
7458
 
 
7459
 
 
7460
 
 
7461
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7462
 
$as_echo_n "checking for archiver @FILE support... " >&6; }
7463
 
if ${lt_cv_ar_at_file+:} false; then :
7464
 
  $as_echo_n "(cached) " >&6
7465
 
else
7466
 
  lt_cv_ar_at_file=no
7467
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468
 
/* end confdefs.h.  */
7469
 
 
7470
 
int
7471
 
main ()
7472
 
{
7473
 
 
7474
 
  ;
7475
 
  return 0;
7476
 
}
7477
 
_ACEOF
7478
 
if ac_fn_c_try_compile "$LINENO"; then :
7479
 
  echo conftest.$ac_objext > conftest.lst
7480
 
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7481
 
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7482
 
  (eval $lt_ar_try) 2>&5
7483
 
  ac_status=$?
7484
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7485
 
  test $ac_status = 0; }
7486
 
      if test "$ac_status" -eq 0; then
7487
 
        # Ensure the archiver fails upon bogus file names.
7488
 
        rm -f conftest.$ac_objext libconftest.a
7489
 
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7490
 
  (eval $lt_ar_try) 2>&5
7491
 
  ac_status=$?
7492
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7493
 
  test $ac_status = 0; }
7494
 
        if test "$ac_status" -ne 0; then
7495
 
          lt_cv_ar_at_file=@
7496
 
        fi
7497
 
      fi
7498
 
      rm -f conftest.* libconftest.a
7499
 
 
7500
 
fi
7501
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7502
 
 
7503
 
fi
7504
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7505
 
$as_echo "$lt_cv_ar_at_file" >&6; }
7506
 
 
7507
 
if test "x$lt_cv_ar_at_file" = xno; then
7508
 
  archiver_list_spec=
7509
 
else
7510
 
  archiver_list_spec=$lt_cv_ar_at_file
7511
 
fi
7512
 
 
7513
 
 
7514
 
 
7515
 
 
7516
 
 
7517
 
 
7518
 
 
7519
 
if test -n "$ac_tool_prefix"; then
7520
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7521
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
7522
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7523
 
$as_echo_n "checking for $ac_word... " >&6; }
7524
 
if ${ac_cv_prog_STRIP+:} false; then :
7525
 
  $as_echo_n "(cached) " >&6
7526
 
else
7527
 
  if test -n "$STRIP"; then
7528
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7529
 
else
7530
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531
 
for as_dir in $PATH
7532
 
do
7533
 
  IFS=$as_save_IFS
7534
 
  test -z "$as_dir" && as_dir=.
7535
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7536
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7537
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7538
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7539
 
    break 2
7540
 
  fi
7541
 
done
7542
 
  done
7543
 
IFS=$as_save_IFS
7544
 
 
7545
 
fi
7546
 
fi
7547
 
STRIP=$ac_cv_prog_STRIP
7548
 
if test -n "$STRIP"; then
7549
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7550
 
$as_echo "$STRIP" >&6; }
7551
 
else
7552
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7553
 
$as_echo "no" >&6; }
7554
 
fi
7555
 
 
7556
 
 
7557
 
fi
7558
 
if test -z "$ac_cv_prog_STRIP"; then
7559
 
  ac_ct_STRIP=$STRIP
7560
 
  # Extract the first word of "strip", so it can be a program name with args.
7561
 
set dummy strip; ac_word=$2
7562
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7563
 
$as_echo_n "checking for $ac_word... " >&6; }
7564
 
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7565
 
  $as_echo_n "(cached) " >&6
7566
 
else
7567
 
  if test -n "$ac_ct_STRIP"; then
7568
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7569
 
else
7570
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571
 
for as_dir in $PATH
7572
 
do
7573
 
  IFS=$as_save_IFS
7574
 
  test -z "$as_dir" && as_dir=.
7575
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7576
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7577
 
    ac_cv_prog_ac_ct_STRIP="strip"
7578
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7579
 
    break 2
7580
 
  fi
7581
 
done
7582
 
  done
7583
 
IFS=$as_save_IFS
7584
 
 
7585
 
fi
7586
 
fi
7587
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7588
 
if test -n "$ac_ct_STRIP"; then
7589
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7590
 
$as_echo "$ac_ct_STRIP" >&6; }
7591
 
else
7592
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7593
 
$as_echo "no" >&6; }
7594
 
fi
7595
 
 
7596
 
  if test "x$ac_ct_STRIP" = x; then
7597
 
    STRIP=":"
7598
 
  else
7599
 
    case $cross_compiling:$ac_tool_warned in
7600
 
yes:)
7601
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7602
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7603
 
ac_tool_warned=yes ;;
7604
 
esac
7605
 
    STRIP=$ac_ct_STRIP
7606
 
  fi
7607
 
else
7608
 
  STRIP="$ac_cv_prog_STRIP"
7609
 
fi
7610
 
 
7611
 
test -z "$STRIP" && STRIP=:
7612
 
 
7613
 
 
7614
 
 
7615
 
 
7616
 
 
7617
 
 
7618
 
if test -n "$ac_tool_prefix"; then
7619
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7620
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7621
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7622
 
$as_echo_n "checking for $ac_word... " >&6; }
7623
 
if ${ac_cv_prog_RANLIB+:} false; then :
7624
 
  $as_echo_n "(cached) " >&6
7625
 
else
7626
 
  if test -n "$RANLIB"; then
7627
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7628
 
else
7629
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630
 
for as_dir in $PATH
7631
 
do
7632
 
  IFS=$as_save_IFS
7633
 
  test -z "$as_dir" && as_dir=.
7634
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7635
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7636
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7637
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7638
 
    break 2
7639
 
  fi
7640
 
done
7641
 
  done
7642
 
IFS=$as_save_IFS
7643
 
 
7644
 
fi
7645
 
fi
7646
 
RANLIB=$ac_cv_prog_RANLIB
7647
 
if test -n "$RANLIB"; then
7648
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7649
 
$as_echo "$RANLIB" >&6; }
7650
 
else
7651
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652
 
$as_echo "no" >&6; }
7653
 
fi
7654
 
 
7655
 
 
7656
 
fi
7657
 
if test -z "$ac_cv_prog_RANLIB"; then
7658
 
  ac_ct_RANLIB=$RANLIB
7659
 
  # Extract the first word of "ranlib", so it can be a program name with args.
7660
 
set dummy ranlib; ac_word=$2
7661
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662
 
$as_echo_n "checking for $ac_word... " >&6; }
7663
 
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7664
 
  $as_echo_n "(cached) " >&6
7665
 
else
7666
 
  if test -n "$ac_ct_RANLIB"; then
7667
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7668
 
else
7669
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670
 
for as_dir in $PATH
7671
 
do
7672
 
  IFS=$as_save_IFS
7673
 
  test -z "$as_dir" && as_dir=.
7674
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7675
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7676
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
7677
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7678
 
    break 2
7679
 
  fi
7680
 
done
7681
 
  done
7682
 
IFS=$as_save_IFS
7683
 
 
7684
 
fi
7685
 
fi
7686
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7687
 
if test -n "$ac_ct_RANLIB"; then
7688
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7689
 
$as_echo "$ac_ct_RANLIB" >&6; }
7690
 
else
7691
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692
 
$as_echo "no" >&6; }
7693
 
fi
7694
 
 
7695
 
  if test "x$ac_ct_RANLIB" = x; then
7696
 
    RANLIB=":"
7697
 
  else
7698
 
    case $cross_compiling:$ac_tool_warned in
7699
 
yes:)
7700
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7701
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7702
 
ac_tool_warned=yes ;;
7703
 
esac
7704
 
    RANLIB=$ac_ct_RANLIB
7705
 
  fi
7706
 
else
7707
 
  RANLIB="$ac_cv_prog_RANLIB"
7708
 
fi
7709
 
 
7710
 
test -z "$RANLIB" && RANLIB=:
7711
 
 
7712
 
 
7713
 
 
7714
 
 
7715
 
 
7716
 
 
7717
 
# Determine commands to create old-style static archives.
7718
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7719
 
old_postinstall_cmds='chmod 644 $oldlib'
7720
 
old_postuninstall_cmds=
7721
 
 
7722
 
if test -n "$RANLIB"; then
7723
 
  case $host_os in
7724
 
  openbsd*)
7725
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7726
 
    ;;
7727
 
  *)
7728
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7729
 
    ;;
7730
 
  esac
7731
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7732
 
fi
7733
 
 
7734
 
case $host_os in
7735
 
  darwin*)
7736
 
    lock_old_archive_extraction=yes ;;
7737
 
  *)
7738
 
    lock_old_archive_extraction=no ;;
7739
 
esac
7740
 
 
7741
 
 
7742
 
 
7743
 
 
7744
 
 
7745
 
 
7746
 
 
7747
 
 
7748
 
 
7749
 
 
7750
 
 
7751
 
 
7752
 
 
7753
 
 
7754
 
 
7755
 
 
7756
 
 
7757
 
 
7758
 
 
7759
 
 
7760
 
 
7761
 
 
7762
 
 
7763
 
 
7764
 
 
7765
 
 
7766
 
 
7767
 
 
7768
 
 
7769
 
 
7770
 
 
7771
 
 
7772
 
 
7773
 
 
7774
 
 
7775
 
 
7776
 
 
7777
 
 
7778
 
 
7779
 
# If no C compiler was specified, use CC.
7780
 
LTCC=${LTCC-"$CC"}
7781
 
 
7782
 
# If no C compiler flags were specified, use CFLAGS.
7783
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7784
 
 
7785
 
# Allow CC to be a program name with arguments.
7786
 
compiler=$CC
7787
 
 
7788
 
 
7789
 
# Check for command to grab the raw symbol name followed by C symbol from nm.
7790
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7791
 
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7792
 
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7793
 
  $as_echo_n "(cached) " >&6
7794
 
else
7795
 
 
7796
 
# These are sane defaults that work on at least a few old systems.
7797
 
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7798
 
 
7799
 
# Character class describing NM global symbol codes.
7800
 
symcode='[BCDEGRST]'
7801
 
 
7802
 
# Regexp to match symbols that can be accessed directly from C.
7803
 
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7804
 
 
7805
 
# Define system-specific variables.
7806
 
case $host_os in
7807
 
aix*)
7808
 
  symcode='[BCDT]'
7809
 
  ;;
7810
 
cygwin* | mingw* | pw32* | cegcc*)
7811
 
  symcode='[ABCDGISTW]'
7812
 
  ;;
7813
 
hpux*)
7814
 
  if test "$host_cpu" = ia64; then
7815
 
    symcode='[ABCDEGRST]'
7816
 
  fi
7817
 
  ;;
7818
 
irix* | nonstopux*)
7819
 
  symcode='[BCDEGRST]'
7820
 
  ;;
7821
 
osf*)
7822
 
  symcode='[BCDEGQRST]'
7823
 
  ;;
7824
 
solaris*)
7825
 
  symcode='[BDRT]'
7826
 
  ;;
7827
 
sco3.2v5*)
7828
 
  symcode='[DT]'
7829
 
  ;;
7830
 
sysv4.2uw2*)
7831
 
  symcode='[DT]'
7832
 
  ;;
7833
 
sysv5* | sco5v6* | unixware* | OpenUNIX*)
7834
 
  symcode='[ABDT]'
7835
 
  ;;
7836
 
sysv4)
7837
 
  symcode='[DFNSTU]'
7838
 
  ;;
7839
 
esac
7840
 
 
7841
 
# If we're using GNU nm, then use its standard symbol codes.
7842
 
case `$NM -V 2>&1` in
7843
 
*GNU* | *'with BFD'*)
7844
 
  symcode='[ABCDGIRSTW]' ;;
7845
 
esac
7846
 
 
7847
 
# Transform an extracted symbol line into a proper C declaration.
7848
 
# Some systems (esp. on ia64) link data and code symbols differently,
7849
 
# so use this general approach.
7850
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7851
 
 
7852
 
# Transform an extracted symbol line into symbol name and symbol address
7853
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7854
 
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'"
7855
 
 
7856
 
# Handle CRLF in mingw tool chain
7857
 
opt_cr=
7858
 
case $build_os in
7859
 
mingw*)
7860
 
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7861
 
  ;;
7862
 
esac
7863
 
 
7864
 
# Try without a prefix underscore, then with it.
7865
 
for ac_symprfx in "" "_"; do
7866
 
 
7867
 
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7868
 
  symxfrm="\\1 $ac_symprfx\\2 \\2"
7869
 
 
7870
 
  # Write the raw and C identifiers.
7871
 
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7872
 
    # Fake it for dumpbin and say T for any non-static function
7873
 
    # and D for any global variable.
7874
 
    # Also find C++ and __fastcall symbols from MSVC++,
7875
 
    # which start with @ or ?.
7876
 
    lt_cv_sys_global_symbol_pipe="$AWK '"\
7877
 
"     {last_section=section; section=\$ 3};"\
7878
 
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7879
 
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7880
 
"     \$ 0!~/External *\|/{next};"\
7881
 
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7882
 
"     {if(hide[section]) next};"\
7883
 
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7884
 
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7885
 
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7886
 
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7887
 
"     ' prfx=^$ac_symprfx"
7888
 
  else
7889
 
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7890
 
  fi
7891
 
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7892
 
 
7893
 
  # Check to see that the pipe works correctly.
7894
 
  pipe_works=no
7895
 
 
7896
 
  rm -f conftest*
7897
 
  cat > conftest.$ac_ext <<_LT_EOF
7898
 
#ifdef __cplusplus
7899
 
extern "C" {
7900
 
#endif
7901
 
char nm_test_var;
7902
 
void nm_test_func(void);
7903
 
void nm_test_func(void){}
7904
 
#ifdef __cplusplus
7905
 
}
7906
 
#endif
7907
 
int main(){nm_test_var='a';nm_test_func();return(0);}
7908
 
_LT_EOF
7909
 
 
7910
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7911
 
  (eval $ac_compile) 2>&5
7912
 
  ac_status=$?
7913
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7914
 
  test $ac_status = 0; }; then
7915
 
    # Now try to grab the symbols.
7916
 
    nlist=conftest.nm
7917
 
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7918
 
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7919
 
  ac_status=$?
7920
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7921
 
  test $ac_status = 0; } && test -s "$nlist"; then
7922
 
      # Try sorting and uniquifying the output.
7923
 
      if sort "$nlist" | uniq > "$nlist"T; then
7924
 
        mv -f "$nlist"T "$nlist"
7925
 
      else
7926
 
        rm -f "$nlist"T
7927
 
      fi
7928
 
 
7929
 
      # Make sure that we snagged all the symbols we need.
7930
 
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7931
 
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7932
 
          cat <<_LT_EOF > conftest.$ac_ext
7933
 
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7934
 
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7935
 
/* DATA imports from DLLs on WIN32 con't be const, because runtime
7936
 
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7937
 
# define LT_DLSYM_CONST
7938
 
#elif defined(__osf__)
7939
 
/* This system does not cope well with relocations in const data.  */
7940
 
# define LT_DLSYM_CONST
7941
 
#else
7942
 
# define LT_DLSYM_CONST const
7943
 
#endif
7944
 
 
7945
 
#ifdef __cplusplus
7946
 
extern "C" {
7947
 
#endif
7948
 
 
7949
 
_LT_EOF
7950
 
          # Now generate the symbol file.
7951
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7952
 
 
7953
 
          cat <<_LT_EOF >> conftest.$ac_ext
7954
 
 
7955
 
/* The mapping between symbol names and symbols.  */
7956
 
LT_DLSYM_CONST struct {
7957
 
  const char *name;
7958
 
  void       *address;
7959
 
}
7960
 
lt__PROGRAM__LTX_preloaded_symbols[] =
7961
 
{
7962
 
  { "@PROGRAM@", (void *) 0 },
7963
 
_LT_EOF
7964
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7965
 
          cat <<\_LT_EOF >> conftest.$ac_ext
7966
 
  {0, (void *) 0}
7967
 
};
7968
 
 
7969
 
/* This works around a problem in FreeBSD linker */
7970
 
#ifdef FREEBSD_WORKAROUND
7971
 
static const void *lt_preloaded_setup() {
7972
 
  return lt__PROGRAM__LTX_preloaded_symbols;
7973
 
}
7974
 
#endif
7975
 
 
7976
 
#ifdef __cplusplus
7977
 
}
7978
 
#endif
7979
 
_LT_EOF
7980
 
          # Now try linking the two files.
7981
 
          mv conftest.$ac_objext conftstm.$ac_objext
7982
 
          lt_globsym_save_LIBS=$LIBS
7983
 
          lt_globsym_save_CFLAGS=$CFLAGS
7984
 
          LIBS="conftstm.$ac_objext"
7985
 
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7986
 
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7987
 
  (eval $ac_link) 2>&5
7988
 
  ac_status=$?
7989
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7990
 
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7991
 
            pipe_works=yes
7992
 
          fi
7993
 
          LIBS=$lt_globsym_save_LIBS
7994
 
          CFLAGS=$lt_globsym_save_CFLAGS
7995
 
        else
7996
 
          echo "cannot find nm_test_func in $nlist" >&5
7997
 
        fi
7998
 
      else
7999
 
        echo "cannot find nm_test_var in $nlist" >&5
8000
 
      fi
8001
 
    else
8002
 
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8003
 
    fi
8004
 
  else
8005
 
    echo "$progname: failed program was:" >&5
8006
 
    cat conftest.$ac_ext >&5
8007
 
  fi
8008
 
  rm -rf conftest* conftst*
8009
 
 
8010
 
  # Do not use the global_symbol_pipe unless it works.
8011
 
  if test "$pipe_works" = yes; then
8012
 
    break
8013
 
  else
8014
 
    lt_cv_sys_global_symbol_pipe=
8015
 
  fi
8016
 
done
8017
 
 
8018
 
fi
8019
 
 
8020
 
if test -z "$lt_cv_sys_global_symbol_pipe"; then
8021
 
  lt_cv_sys_global_symbol_to_cdecl=
8022
 
fi
8023
 
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8024
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8025
 
$as_echo "failed" >&6; }
8026
 
else
8027
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8028
 
$as_echo "ok" >&6; }
8029
 
fi
8030
 
 
8031
 
# Response file support.
8032
 
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8033
 
  nm_file_list_spec='@'
8034
 
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8035
 
  nm_file_list_spec='@'
8036
 
fi
8037
 
 
8038
 
 
8039
 
 
8040
 
 
8041
 
 
8042
 
 
8043
 
 
8044
 
 
8045
 
 
8046
 
 
8047
 
 
8048
 
 
8049
 
 
8050
 
 
8051
 
 
8052
 
 
8053
 
 
8054
 
 
8055
 
 
8056
 
 
8057
 
 
8058
 
 
8059
 
 
8060
 
 
8061
 
 
8062
 
 
8063
 
 
8064
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8065
 
$as_echo_n "checking for sysroot... " >&6; }
8066
 
 
8067
 
# Check whether --with-sysroot was given.
8068
 
if test "${with_sysroot+set}" = set; then :
8069
 
  withval=$with_sysroot;
8070
 
else
8071
 
  with_sysroot=no
8072
 
fi
8073
 
 
8074
 
 
8075
 
lt_sysroot=
8076
 
case ${with_sysroot} in #(
8077
 
 yes)
8078
 
   if test "$GCC" = yes; then
8079
 
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8080
 
   fi
8081
 
   ;; #(
8082
 
 /*)
8083
 
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8084
 
   ;; #(
8085
 
 no|'')
8086
 
   ;; #(
8087
 
 *)
8088
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8089
 
$as_echo "${with_sysroot}" >&6; }
8090
 
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8091
 
   ;;
8092
 
esac
8093
 
 
8094
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8095
 
$as_echo "${lt_sysroot:-no}" >&6; }
8096
 
 
8097
 
 
8098
 
 
8099
 
 
8100
 
 
8101
 
# Check whether --enable-libtool-lock was given.
8102
 
if test "${enable_libtool_lock+set}" = set; then :
8103
 
  enableval=$enable_libtool_lock;
8104
 
fi
8105
 
 
8106
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8107
 
 
8108
 
# Some flags need to be propagated to the compiler or linker for good
8109
 
# libtool support.
8110
 
case $host in
8111
 
ia64-*-hpux*)
8112
 
  # Find out which ABI we are using.
8113
 
  echo 'int i;' > conftest.$ac_ext
8114
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8115
 
  (eval $ac_compile) 2>&5
8116
 
  ac_status=$?
8117
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8118
 
  test $ac_status = 0; }; then
8119
 
    case `/usr/bin/file conftest.$ac_objext` in
8120
 
      *ELF-32*)
8121
 
        HPUX_IA64_MODE="32"
8122
 
        ;;
8123
 
      *ELF-64*)
8124
 
        HPUX_IA64_MODE="64"
8125
 
        ;;
8126
 
    esac
8127
 
  fi
8128
 
  rm -rf conftest*
8129
 
  ;;
8130
 
*-*-irix6*)
8131
 
  # Find out which ABI we are using.
8132
 
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8133
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8134
 
  (eval $ac_compile) 2>&5
8135
 
  ac_status=$?
8136
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8137
 
  test $ac_status = 0; }; then
8138
 
    if test "$lt_cv_prog_gnu_ld" = yes; then
8139
 
      case `/usr/bin/file conftest.$ac_objext` in
8140
 
        *32-bit*)
8141
 
          LD="${LD-ld} -melf32bsmip"
8142
 
          ;;
8143
 
        *N32*)
8144
 
          LD="${LD-ld} -melf32bmipn32"
8145
 
          ;;
8146
 
        *64-bit*)
8147
 
          LD="${LD-ld} -melf64bmip"
8148
 
        ;;
8149
 
      esac
8150
 
    else
8151
 
      case `/usr/bin/file conftest.$ac_objext` in
8152
 
        *32-bit*)
8153
 
          LD="${LD-ld} -32"
8154
 
          ;;
8155
 
        *N32*)
8156
 
          LD="${LD-ld} -n32"
8157
 
          ;;
8158
 
        *64-bit*)
8159
 
          LD="${LD-ld} -64"
8160
 
          ;;
8161
 
      esac
8162
 
    fi
8163
 
  fi
8164
 
  rm -rf conftest*
8165
 
  ;;
8166
 
 
8167
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8168
 
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8169
 
  # Find out which ABI we are using.
8170
 
  echo 'int i;' > conftest.$ac_ext
8171
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8172
 
  (eval $ac_compile) 2>&5
8173
 
  ac_status=$?
8174
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8175
 
  test $ac_status = 0; }; then
8176
 
    case `/usr/bin/file conftest.o` in
8177
 
      *32-bit*)
8178
 
        case $host in
8179
 
          x86_64-*kfreebsd*-gnu)
8180
 
            LD="${LD-ld} -m elf_i386_fbsd"
8181
 
            ;;
8182
 
          x86_64-*linux*)
8183
 
            LD="${LD-ld} -m elf_i386"
8184
 
            ;;
8185
 
          ppc64-*linux*|powerpc64-*linux*)
8186
 
            LD="${LD-ld} -m elf32ppclinux"
8187
 
            ;;
8188
 
          s390x-*linux*)
8189
 
            LD="${LD-ld} -m elf_s390"
8190
 
            ;;
8191
 
          sparc64-*linux*)
8192
 
            LD="${LD-ld} -m elf32_sparc"
8193
 
            ;;
8194
 
        esac
8195
 
        ;;
8196
 
      *64-bit*)
8197
 
        case $host in
8198
 
          x86_64-*kfreebsd*-gnu)
8199
 
            LD="${LD-ld} -m elf_x86_64_fbsd"
8200
 
            ;;
8201
 
          x86_64-*linux*)
8202
 
            LD="${LD-ld} -m elf_x86_64"
8203
 
            ;;
8204
 
          ppc*-*linux*|powerpc*-*linux*)
8205
 
            LD="${LD-ld} -m elf64ppc"
8206
 
            ;;
8207
 
          s390*-*linux*|s390*-*tpf*)
8208
 
            LD="${LD-ld} -m elf64_s390"
8209
 
            ;;
8210
 
          sparc*-*linux*)
8211
 
            LD="${LD-ld} -m elf64_sparc"
8212
 
            ;;
8213
 
        esac
8214
 
        ;;
8215
 
    esac
8216
 
  fi
8217
 
  rm -rf conftest*
8218
 
  ;;
8219
 
 
8220
 
*-*-sco3.2v5*)
8221
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8222
 
  SAVE_CFLAGS="$CFLAGS"
8223
 
  CFLAGS="$CFLAGS -belf"
8224
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8225
 
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8226
 
if ${lt_cv_cc_needs_belf+:} false; then :
8227
 
  $as_echo_n "(cached) " >&6
8228
 
else
8229
 
  ac_ext=c
8230
 
ac_cpp='$CPP $CPPFLAGS'
8231
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8232
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8233
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8234
 
 
8235
 
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236
 
/* end confdefs.h.  */
8237
 
 
8238
 
int
8239
 
main ()
8240
 
{
8241
 
 
8242
 
  ;
8243
 
  return 0;
8244
 
}
8245
 
_ACEOF
8246
 
if ac_fn_c_try_link "$LINENO"; then :
8247
 
  lt_cv_cc_needs_belf=yes
8248
 
else
8249
 
  lt_cv_cc_needs_belf=no
8250
 
fi
8251
 
rm -f core conftest.err conftest.$ac_objext \
8252
 
    conftest$ac_exeext conftest.$ac_ext
8253
 
     ac_ext=c
8254
 
ac_cpp='$CPP $CPPFLAGS'
8255
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8256
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8257
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8258
 
 
8259
 
fi
8260
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8261
 
$as_echo "$lt_cv_cc_needs_belf" >&6; }
8262
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8263
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8264
 
    CFLAGS="$SAVE_CFLAGS"
8265
 
  fi
8266
 
  ;;
8267
 
*-*solaris*)
8268
 
  # Find out which ABI we are using.
8269
 
  echo 'int i;' > conftest.$ac_ext
8270
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8271
 
  (eval $ac_compile) 2>&5
8272
 
  ac_status=$?
8273
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8274
 
  test $ac_status = 0; }; then
8275
 
    case `/usr/bin/file conftest.o` in
8276
 
    *64-bit*)
8277
 
      case $lt_cv_prog_gnu_ld in
8278
 
      yes*)
8279
 
        case $host in
8280
 
        i?86-*-solaris*)
8281
 
          LD="${LD-ld} -m elf_x86_64"
8282
 
          ;;
8283
 
        sparc*-*-solaris*)
8284
 
          LD="${LD-ld} -m elf64_sparc"
8285
 
          ;;
8286
 
        esac
8287
 
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8288
 
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8289
 
          LD="${LD-ld}_sol2"
8290
 
        fi
8291
 
        ;;
8292
 
      *)
8293
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8294
 
          LD="${LD-ld} -64"
8295
 
        fi
8296
 
        ;;
8297
 
      esac
8298
 
      ;;
8299
 
    esac
8300
 
  fi
8301
 
  rm -rf conftest*
8302
 
  ;;
8303
 
esac
8304
 
 
8305
 
need_locks="$enable_libtool_lock"
8306
 
 
8307
 
if test -n "$ac_tool_prefix"; then
8308
 
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8309
 
set dummy ${ac_tool_prefix}mt; ac_word=$2
8310
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8311
 
$as_echo_n "checking for $ac_word... " >&6; }
8312
 
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8313
 
  $as_echo_n "(cached) " >&6
8314
 
else
8315
 
  if test -n "$MANIFEST_TOOL"; then
8316
 
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8317
 
else
8318
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319
 
for as_dir in $PATH
8320
 
do
8321
 
  IFS=$as_save_IFS
8322
 
  test -z "$as_dir" && as_dir=.
8323
 
    for ac_exec_ext in '' $ac_executable_extensions; do
8324
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8325
 
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8326
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8327
 
    break 2
8328
 
  fi
8329
 
done
8330
 
  done
8331
 
IFS=$as_save_IFS
8332
 
 
8333
 
fi
8334
 
fi
8335
 
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8336
 
if test -n "$MANIFEST_TOOL"; then
8337
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8338
 
$as_echo "$MANIFEST_TOOL" >&6; }
8339
 
else
8340
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341
 
$as_echo "no" >&6; }
8342
 
fi
8343
 
 
8344
 
 
8345
 
fi
8346
 
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8347
 
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8348
 
  # Extract the first word of "mt", so it can be a program name with args.
8349
 
set dummy mt; ac_word=$2
8350
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8351
 
$as_echo_n "checking for $ac_word... " >&6; }
8352
 
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8353
 
  $as_echo_n "(cached) " >&6
8354
 
else
8355
 
  if test -n "$ac_ct_MANIFEST_TOOL"; then
8356
 
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8357
 
else
8358
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359
 
for as_dir in $PATH
8360
 
do
8361
 
  IFS=$as_save_IFS
8362
 
  test -z "$as_dir" && as_dir=.
8363
 
    for ac_exec_ext in '' $ac_executable_extensions; do
8364
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8365
 
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8366
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8367
 
    break 2
8368
 
  fi
8369
 
done
8370
 
  done
8371
 
IFS=$as_save_IFS
8372
 
 
8373
 
fi
8374
 
fi
8375
 
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8376
 
if test -n "$ac_ct_MANIFEST_TOOL"; then
8377
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8378
 
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8379
 
else
8380
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8381
 
$as_echo "no" >&6; }
8382
 
fi
8383
 
 
8384
 
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8385
 
    MANIFEST_TOOL=":"
8386
 
  else
8387
 
    case $cross_compiling:$ac_tool_warned in
8388
 
yes:)
8389
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8390
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8391
 
ac_tool_warned=yes ;;
8392
 
esac
8393
 
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8394
 
  fi
8395
 
else
8396
 
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8397
 
fi
8398
 
 
8399
 
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8400
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8401
 
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8402
 
if ${lt_cv_path_mainfest_tool+:} false; then :
8403
 
  $as_echo_n "(cached) " >&6
8404
 
else
8405
 
  lt_cv_path_mainfest_tool=no
8406
 
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8407
 
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8408
 
  cat conftest.err >&5
8409
 
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8410
 
    lt_cv_path_mainfest_tool=yes
8411
 
  fi
8412
 
  rm -f conftest*
8413
 
fi
8414
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8415
 
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8416
 
if test "x$lt_cv_path_mainfest_tool" != xyes; then
8417
 
  MANIFEST_TOOL=:
8418
 
fi
8419
 
 
8420
 
 
8421
 
 
8422
 
 
8423
 
 
8424
 
 
8425
 
  case $host_os in
8426
 
    rhapsody* | darwin*)
8427
 
    if test -n "$ac_tool_prefix"; then
8428
 
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8429
 
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8430
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8431
 
$as_echo_n "checking for $ac_word... " >&6; }
8432
 
if ${ac_cv_prog_DSYMUTIL+:} false; then :
8433
 
  $as_echo_n "(cached) " >&6
8434
 
else
8435
 
  if test -n "$DSYMUTIL"; then
8436
 
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8437
 
else
8438
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439
 
for as_dir in $PATH
8440
 
do
8441
 
  IFS=$as_save_IFS
8442
 
  test -z "$as_dir" && as_dir=.
8443
 
    for ac_exec_ext in '' $ac_executable_extensions; do
8444
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8445
 
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8446
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8447
 
    break 2
8448
 
  fi
8449
 
done
8450
 
  done
8451
 
IFS=$as_save_IFS
8452
 
 
8453
 
fi
8454
 
fi
8455
 
DSYMUTIL=$ac_cv_prog_DSYMUTIL
8456
 
if test -n "$DSYMUTIL"; then
8457
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8458
 
$as_echo "$DSYMUTIL" >&6; }
8459
 
else
8460
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461
 
$as_echo "no" >&6; }
8462
 
fi
8463
 
 
8464
 
 
8465
 
fi
8466
 
if test -z "$ac_cv_prog_DSYMUTIL"; then
8467
 
  ac_ct_DSYMUTIL=$DSYMUTIL
8468
 
  # Extract the first word of "dsymutil", so it can be a program name with args.
8469
 
set dummy dsymutil; ac_word=$2
8470
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8471
 
$as_echo_n "checking for $ac_word... " >&6; }
8472
 
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8473
 
  $as_echo_n "(cached) " >&6
8474
 
else
8475
 
  if test -n "$ac_ct_DSYMUTIL"; then
8476
 
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8477
 
else
8478
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479
 
for as_dir in $PATH
8480
 
do
8481
 
  IFS=$as_save_IFS
8482
 
  test -z "$as_dir" && as_dir=.
8483
 
    for ac_exec_ext in '' $ac_executable_extensions; do
8484
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8485
 
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8486
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8487
 
    break 2
8488
 
  fi
8489
 
done
8490
 
  done
8491
 
IFS=$as_save_IFS
8492
 
 
8493
 
fi
8494
 
fi
8495
 
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8496
 
if test -n "$ac_ct_DSYMUTIL"; then
8497
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8498
 
$as_echo "$ac_ct_DSYMUTIL" >&6; }
8499
 
else
8500
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8501
 
$as_echo "no" >&6; }
8502
 
fi
8503
 
 
8504
 
  if test "x$ac_ct_DSYMUTIL" = x; then
8505
 
    DSYMUTIL=":"
8506
 
  else
8507
 
    case $cross_compiling:$ac_tool_warned in
8508
 
yes:)
8509
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8510
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8511
 
ac_tool_warned=yes ;;
8512
 
esac
8513
 
    DSYMUTIL=$ac_ct_DSYMUTIL
8514
 
  fi
8515
 
else
8516
 
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8517
 
fi
8518
 
 
8519
 
    if test -n "$ac_tool_prefix"; then
8520
 
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8521
 
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8522
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8523
 
$as_echo_n "checking for $ac_word... " >&6; }
8524
 
if ${ac_cv_prog_NMEDIT+:} false; then :
8525
 
  $as_echo_n "(cached) " >&6
8526
 
else
8527
 
  if test -n "$NMEDIT"; then
8528
 
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8529
 
else
8530
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531
 
for as_dir in $PATH
8532
 
do
8533
 
  IFS=$as_save_IFS
8534
 
  test -z "$as_dir" && as_dir=.
8535
 
    for ac_exec_ext in '' $ac_executable_extensions; do
8536
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8537
 
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8538
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8539
 
    break 2
8540
 
  fi
8541
 
done
8542
 
  done
8543
 
IFS=$as_save_IFS
8544
 
 
8545
 
fi
8546
 
fi
8547
 
NMEDIT=$ac_cv_prog_NMEDIT
8548
 
if test -n "$NMEDIT"; then
8549
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8550
 
$as_echo "$NMEDIT" >&6; }
8551
 
else
8552
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553
 
$as_echo "no" >&6; }
8554
 
fi
8555
 
 
8556
 
 
8557
 
fi
8558
 
if test -z "$ac_cv_prog_NMEDIT"; then
8559
 
  ac_ct_NMEDIT=$NMEDIT
8560
 
  # Extract the first word of "nmedit", so it can be a program name with args.
8561
 
set dummy nmedit; ac_word=$2
8562
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8563
 
$as_echo_n "checking for $ac_word... " >&6; }
8564
 
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8565
 
  $as_echo_n "(cached) " >&6
8566
 
else
8567
 
  if test -n "$ac_ct_NMEDIT"; then
8568
 
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8569
 
else
8570
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8571
 
for as_dir in $PATH
8572
 
do
8573
 
  IFS=$as_save_IFS
8574
 
  test -z "$as_dir" && as_dir=.
8575
 
    for ac_exec_ext in '' $ac_executable_extensions; do
8576
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8577
 
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8578
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8579
 
    break 2
8580
 
  fi
8581
 
done
8582
 
  done
8583
 
IFS=$as_save_IFS
8584
 
 
8585
 
fi
8586
 
fi
8587
 
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8588
 
if test -n "$ac_ct_NMEDIT"; then
8589
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8590
 
$as_echo "$ac_ct_NMEDIT" >&6; }
8591
 
else
8592
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8593
 
$as_echo "no" >&6; }
8594
 
fi
8595
 
 
8596
 
  if test "x$ac_ct_NMEDIT" = x; then
8597
 
    NMEDIT=":"
8598
 
  else
8599
 
    case $cross_compiling:$ac_tool_warned in
8600
 
yes:)
8601
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8602
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8603
 
ac_tool_warned=yes ;;
8604
 
esac
8605
 
    NMEDIT=$ac_ct_NMEDIT
8606
 
  fi
8607
 
else
8608
 
  NMEDIT="$ac_cv_prog_NMEDIT"
8609
 
fi
8610
 
 
8611
 
    if test -n "$ac_tool_prefix"; then
8612
 
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8613
 
set dummy ${ac_tool_prefix}lipo; ac_word=$2
8614
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8615
 
$as_echo_n "checking for $ac_word... " >&6; }
8616
 
if ${ac_cv_prog_LIPO+:} false; then :
8617
 
  $as_echo_n "(cached) " >&6
8618
 
else
8619
 
  if test -n "$LIPO"; then
8620
 
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8621
 
else
8622
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8623
 
for as_dir in $PATH
8624
 
do
8625
 
  IFS=$as_save_IFS
8626
 
  test -z "$as_dir" && as_dir=.
8627
 
    for ac_exec_ext in '' $ac_executable_extensions; do
8628
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8629
 
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8630
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8631
 
    break 2
8632
 
  fi
8633
 
done
8634
 
  done
8635
 
IFS=$as_save_IFS
8636
 
 
8637
 
fi
8638
 
fi
8639
 
LIPO=$ac_cv_prog_LIPO
8640
 
if test -n "$LIPO"; then
8641
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8642
 
$as_echo "$LIPO" >&6; }
8643
 
else
8644
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8645
 
$as_echo "no" >&6; }
8646
 
fi
8647
 
 
8648
 
 
8649
 
fi
8650
 
if test -z "$ac_cv_prog_LIPO"; then
8651
 
  ac_ct_LIPO=$LIPO
8652
 
  # Extract the first word of "lipo", so it can be a program name with args.
8653
 
set dummy lipo; ac_word=$2
8654
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8655
 
$as_echo_n "checking for $ac_word... " >&6; }
8656
 
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8657
 
  $as_echo_n "(cached) " >&6
8658
 
else
8659
 
  if test -n "$ac_ct_LIPO"; then
8660
 
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8661
 
else
8662
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8663
 
for as_dir in $PATH
8664
 
do
8665
 
  IFS=$as_save_IFS
8666
 
  test -z "$as_dir" && as_dir=.
8667
 
    for ac_exec_ext in '' $ac_executable_extensions; do
8668
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8669
 
    ac_cv_prog_ac_ct_LIPO="lipo"
8670
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8671
 
    break 2
8672
 
  fi
8673
 
done
8674
 
  done
8675
 
IFS=$as_save_IFS
8676
 
 
8677
 
fi
8678
 
fi
8679
 
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8680
 
if test -n "$ac_ct_LIPO"; then
8681
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8682
 
$as_echo "$ac_ct_LIPO" >&6; }
8683
 
else
8684
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8685
 
$as_echo "no" >&6; }
8686
 
fi
8687
 
 
8688
 
  if test "x$ac_ct_LIPO" = x; then
8689
 
    LIPO=":"
8690
 
  else
8691
 
    case $cross_compiling:$ac_tool_warned in
8692
 
yes:)
8693
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8694
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8695
 
ac_tool_warned=yes ;;
8696
 
esac
8697
 
    LIPO=$ac_ct_LIPO
8698
 
  fi
8699
 
else
8700
 
  LIPO="$ac_cv_prog_LIPO"
8701
 
fi
8702
 
 
8703
 
    if test -n "$ac_tool_prefix"; then
8704
 
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8705
 
set dummy ${ac_tool_prefix}otool; ac_word=$2
8706
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8707
 
$as_echo_n "checking for $ac_word... " >&6; }
8708
 
if ${ac_cv_prog_OTOOL+:} false; then :
8709
 
  $as_echo_n "(cached) " >&6
8710
 
else
8711
 
  if test -n "$OTOOL"; then
8712
 
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8713
 
else
8714
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8715
 
for as_dir in $PATH
8716
 
do
8717
 
  IFS=$as_save_IFS
8718
 
  test -z "$as_dir" && as_dir=.
8719
 
    for ac_exec_ext in '' $ac_executable_extensions; do
8720
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8721
 
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8722
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8723
 
    break 2
8724
 
  fi
8725
 
done
8726
 
  done
8727
 
IFS=$as_save_IFS
8728
 
 
8729
 
fi
8730
 
fi
8731
 
OTOOL=$ac_cv_prog_OTOOL
8732
 
if test -n "$OTOOL"; then
8733
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8734
 
$as_echo "$OTOOL" >&6; }
8735
 
else
8736
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8737
 
$as_echo "no" >&6; }
8738
 
fi
8739
 
 
8740
 
 
8741
 
fi
8742
 
if test -z "$ac_cv_prog_OTOOL"; then
8743
 
  ac_ct_OTOOL=$OTOOL
8744
 
  # Extract the first word of "otool", so it can be a program name with args.
8745
 
set dummy otool; ac_word=$2
8746
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8747
 
$as_echo_n "checking for $ac_word... " >&6; }
8748
 
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8749
 
  $as_echo_n "(cached) " >&6
8750
 
else
8751
 
  if test -n "$ac_ct_OTOOL"; then
8752
 
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8753
 
else
8754
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755
 
for as_dir in $PATH
8756
 
do
8757
 
  IFS=$as_save_IFS
8758
 
  test -z "$as_dir" && as_dir=.
8759
 
    for ac_exec_ext in '' $ac_executable_extensions; do
8760
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8761
 
    ac_cv_prog_ac_ct_OTOOL="otool"
8762
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8763
 
    break 2
8764
 
  fi
8765
 
done
8766
 
  done
8767
 
IFS=$as_save_IFS
8768
 
 
8769
 
fi
8770
 
fi
8771
 
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8772
 
if test -n "$ac_ct_OTOOL"; then
8773
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8774
 
$as_echo "$ac_ct_OTOOL" >&6; }
8775
 
else
8776
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777
 
$as_echo "no" >&6; }
8778
 
fi
8779
 
 
8780
 
  if test "x$ac_ct_OTOOL" = x; then
8781
 
    OTOOL=":"
8782
 
  else
8783
 
    case $cross_compiling:$ac_tool_warned in
8784
 
yes:)
8785
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8786
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8787
 
ac_tool_warned=yes ;;
8788
 
esac
8789
 
    OTOOL=$ac_ct_OTOOL
8790
 
  fi
8791
 
else
8792
 
  OTOOL="$ac_cv_prog_OTOOL"
8793
 
fi
8794
 
 
8795
 
    if test -n "$ac_tool_prefix"; then
8796
 
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8797
 
set dummy ${ac_tool_prefix}otool64; ac_word=$2
8798
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8799
 
$as_echo_n "checking for $ac_word... " >&6; }
8800
 
if ${ac_cv_prog_OTOOL64+:} false; then :
8801
 
  $as_echo_n "(cached) " >&6
8802
 
else
8803
 
  if test -n "$OTOOL64"; then
8804
 
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8805
 
else
8806
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8807
 
for as_dir in $PATH
8808
 
do
8809
 
  IFS=$as_save_IFS
8810
 
  test -z "$as_dir" && as_dir=.
8811
 
    for ac_exec_ext in '' $ac_executable_extensions; do
8812
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8813
 
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8814
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8815
 
    break 2
8816
 
  fi
8817
 
done
8818
 
  done
8819
 
IFS=$as_save_IFS
8820
 
 
8821
 
fi
8822
 
fi
8823
 
OTOOL64=$ac_cv_prog_OTOOL64
8824
 
if test -n "$OTOOL64"; then
8825
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8826
 
$as_echo "$OTOOL64" >&6; }
8827
 
else
8828
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8829
 
$as_echo "no" >&6; }
8830
 
fi
8831
 
 
8832
 
 
8833
 
fi
8834
 
if test -z "$ac_cv_prog_OTOOL64"; then
8835
 
  ac_ct_OTOOL64=$OTOOL64
8836
 
  # Extract the first word of "otool64", so it can be a program name with args.
8837
 
set dummy otool64; ac_word=$2
8838
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8839
 
$as_echo_n "checking for $ac_word... " >&6; }
8840
 
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8841
 
  $as_echo_n "(cached) " >&6
8842
 
else
8843
 
  if test -n "$ac_ct_OTOOL64"; then
8844
 
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8845
 
else
8846
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8847
 
for as_dir in $PATH
8848
 
do
8849
 
  IFS=$as_save_IFS
8850
 
  test -z "$as_dir" && as_dir=.
8851
 
    for ac_exec_ext in '' $ac_executable_extensions; do
8852
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8853
 
    ac_cv_prog_ac_ct_OTOOL64="otool64"
8854
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8855
 
    break 2
8856
 
  fi
8857
 
done
8858
 
  done
8859
 
IFS=$as_save_IFS
8860
 
 
8861
 
fi
8862
 
fi
8863
 
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8864
 
if test -n "$ac_ct_OTOOL64"; then
8865
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8866
 
$as_echo "$ac_ct_OTOOL64" >&6; }
8867
 
else
8868
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8869
 
$as_echo "no" >&6; }
8870
 
fi
8871
 
 
8872
 
  if test "x$ac_ct_OTOOL64" = x; then
8873
 
    OTOOL64=":"
8874
 
  else
8875
 
    case $cross_compiling:$ac_tool_warned in
8876
 
yes:)
8877
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8878
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8879
 
ac_tool_warned=yes ;;
8880
 
esac
8881
 
    OTOOL64=$ac_ct_OTOOL64
8882
 
  fi
8883
 
else
8884
 
  OTOOL64="$ac_cv_prog_OTOOL64"
8885
 
fi
8886
 
 
8887
 
 
8888
 
 
8889
 
 
8890
 
 
8891
 
 
8892
 
 
8893
 
 
8894
 
 
8895
 
 
8896
 
 
8897
 
 
8898
 
 
8899
 
 
8900
 
 
8901
 
 
8902
 
 
8903
 
 
8904
 
 
8905
 
 
8906
 
 
8907
 
 
8908
 
 
8909
 
 
8910
 
 
8911
 
 
8912
 
 
8913
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8914
 
$as_echo_n "checking for -single_module linker flag... " >&6; }
8915
 
if ${lt_cv_apple_cc_single_mod+:} false; then :
8916
 
  $as_echo_n "(cached) " >&6
8917
 
else
8918
 
  lt_cv_apple_cc_single_mod=no
8919
 
      if test -z "${LT_MULTI_MODULE}"; then
8920
 
        # By default we will add the -single_module flag. You can override
8921
 
        # by either setting the environment variable LT_MULTI_MODULE
8922
 
        # non-empty at configure time, or by adding -multi_module to the
8923
 
        # link flags.
8924
 
        rm -rf libconftest.dylib*
8925
 
        echo "int foo(void){return 1;}" > conftest.c
8926
 
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8927
 
-dynamiclib -Wl,-single_module conftest.c" >&5
8928
 
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8929
 
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8930
 
        _lt_result=$?
8931
 
        # If there is a non-empty error log, and "single_module"
8932
 
        # appears in it, assume the flag caused a linker warning
8933
 
        if test -s conftest.err && $GREP single_module conftest.err; then
8934
 
          cat conftest.err >&5
8935
 
        # Otherwise, if the output was created with a 0 exit code from
8936
 
        # the compiler, it worked.
8937
 
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8938
 
          lt_cv_apple_cc_single_mod=yes
8939
 
        else
8940
 
          cat conftest.err >&5
8941
 
        fi
8942
 
        rm -rf libconftest.dylib*
8943
 
        rm -f conftest.*
8944
 
      fi
8945
 
fi
8946
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8947
 
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8948
 
 
8949
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8950
 
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8951
 
if ${lt_cv_ld_exported_symbols_list+:} false; then :
8952
 
  $as_echo_n "(cached) " >&6
8953
 
else
8954
 
  lt_cv_ld_exported_symbols_list=no
8955
 
      save_LDFLAGS=$LDFLAGS
8956
 
      echo "_main" > conftest.sym
8957
 
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8958
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959
 
/* end confdefs.h.  */
8960
 
 
8961
 
int
8962
 
main ()
8963
 
{
8964
 
 
8965
 
  ;
8966
 
  return 0;
8967
 
}
8968
 
_ACEOF
8969
 
if ac_fn_c_try_link "$LINENO"; then :
8970
 
  lt_cv_ld_exported_symbols_list=yes
8971
 
else
8972
 
  lt_cv_ld_exported_symbols_list=no
8973
 
fi
8974
 
rm -f core conftest.err conftest.$ac_objext \
8975
 
    conftest$ac_exeext conftest.$ac_ext
8976
 
        LDFLAGS="$save_LDFLAGS"
8977
 
 
8978
 
fi
8979
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8980
 
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8981
 
 
8982
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8983
 
$as_echo_n "checking for -force_load linker flag... " >&6; }
8984
 
if ${lt_cv_ld_force_load+:} false; then :
8985
 
  $as_echo_n "(cached) " >&6
8986
 
else
8987
 
  lt_cv_ld_force_load=no
8988
 
      cat > conftest.c << _LT_EOF
8989
 
int forced_loaded() { return 2;}
8990
 
_LT_EOF
8991
 
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8992
 
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8993
 
      echo "$AR cru libconftest.a conftest.o" >&5
8994
 
      $AR cru libconftest.a conftest.o 2>&5
8995
 
      echo "$RANLIB libconftest.a" >&5
8996
 
      $RANLIB libconftest.a 2>&5
8997
 
      cat > conftest.c << _LT_EOF
8998
 
int main() { return 0;}
8999
 
_LT_EOF
9000
 
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9001
 
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9002
 
      _lt_result=$?
9003
 
      if test -s conftest.err && $GREP force_load conftest.err; then
9004
 
        cat conftest.err >&5
9005
 
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9006
 
        lt_cv_ld_force_load=yes
9007
 
      else
9008
 
        cat conftest.err >&5
9009
 
      fi
9010
 
        rm -f conftest.err libconftest.a conftest conftest.c
9011
 
        rm -rf conftest.dSYM
9012
 
 
9013
 
fi
9014
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9015
 
$as_echo "$lt_cv_ld_force_load" >&6; }
9016
 
    case $host_os in
9017
 
    rhapsody* | darwin1.[012])
9018
 
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9019
 
    darwin1.*)
9020
 
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9021
 
    darwin*) # darwin 5.x on
9022
 
      # if running on 10.5 or later, the deployment target defaults
9023
 
      # to the OS version, if on x86, and 10.4, the deployment
9024
 
      # target defaults to 10.4. Don't you love it?
9025
 
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9026
 
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9027
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9028
 
        10.[012]*)
9029
 
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9030
 
        10.*)
9031
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9032
 
      esac
9033
 
    ;;
9034
 
  esac
9035
 
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9036
 
      _lt_dar_single_mod='$single_module'
9037
 
    fi
9038
 
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9039
 
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9040
 
    else
9041
 
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9042
 
    fi
9043
 
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9044
 
      _lt_dsymutil='~$DSYMUTIL $lib || :'
9045
 
    else
9046
 
      _lt_dsymutil=
9047
 
    fi
9048
 
    ;;
9049
 
  esac
9050
 
 
9051
 
 
9052
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9053
 
$as_echo_n "checking for ANSI C header files... " >&6; }
9054
 
if ${ac_cv_header_stdc+:} false; then :
9055
 
  $as_echo_n "(cached) " >&6
9056
 
else
9057
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9058
 
/* end confdefs.h.  */
9059
 
#include <stdlib.h>
9060
 
#include <stdarg.h>
9061
 
#include <string.h>
9062
 
#include <float.h>
9063
 
 
9064
 
int
9065
 
main ()
9066
 
{
9067
 
 
9068
 
  ;
9069
 
  return 0;
9070
 
}
9071
 
_ACEOF
9072
 
if ac_fn_c_try_compile "$LINENO"; then :
9073
 
  ac_cv_header_stdc=yes
9074
 
else
9075
 
  ac_cv_header_stdc=no
9076
 
fi
9077
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9078
 
 
9079
 
if test $ac_cv_header_stdc = yes; then
9080
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9081
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082
 
/* end confdefs.h.  */
9083
 
#include <string.h>
9084
 
 
9085
 
_ACEOF
9086
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9087
 
  $EGREP "memchr" >/dev/null 2>&1; then :
9088
 
 
9089
 
else
9090
 
  ac_cv_header_stdc=no
9091
 
fi
9092
 
rm -f conftest*
9093
 
 
9094
 
fi
9095
 
 
9096
 
if test $ac_cv_header_stdc = yes; then
9097
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9098
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9099
 
/* end confdefs.h.  */
9100
 
#include <stdlib.h>
9101
 
 
9102
 
_ACEOF
9103
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9104
 
  $EGREP "free" >/dev/null 2>&1; then :
9105
 
 
9106
 
else
9107
 
  ac_cv_header_stdc=no
9108
 
fi
9109
 
rm -f conftest*
9110
 
 
9111
 
fi
9112
 
 
9113
 
if test $ac_cv_header_stdc = yes; then
9114
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9115
 
  if test "$cross_compiling" = yes; then :
9116
 
  :
9117
 
else
9118
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119
 
/* end confdefs.h.  */
9120
 
#include <ctype.h>
9121
 
#include <stdlib.h>
9122
 
#if ((' ' & 0x0FF) == 0x020)
9123
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9124
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9125
 
#else
9126
 
# define ISLOWER(c) \
9127
 
                   (('a' <= (c) && (c) <= 'i') \
9128
 
                     || ('j' <= (c) && (c) <= 'r') \
9129
 
                     || ('s' <= (c) && (c) <= 'z'))
9130
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9131
 
#endif
9132
 
 
9133
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9134
 
int
9135
 
main ()
9136
 
{
9137
 
  int i;
9138
 
  for (i = 0; i < 256; i++)
9139
 
    if (XOR (islower (i), ISLOWER (i))
9140
 
        || toupper (i) != TOUPPER (i))
9141
 
      return 2;
9142
 
  return 0;
9143
 
}
9144
 
_ACEOF
9145
 
if ac_fn_c_try_run "$LINENO"; then :
9146
 
 
9147
 
else
9148
 
  ac_cv_header_stdc=no
9149
 
fi
9150
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9151
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
9152
 
fi
9153
 
 
9154
 
fi
9155
 
fi
9156
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9157
 
$as_echo "$ac_cv_header_stdc" >&6; }
9158
 
if test $ac_cv_header_stdc = yes; then
9159
 
 
9160
 
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9161
 
 
9162
 
fi
9163
 
 
9164
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
9165
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9166
 
                  inttypes.h stdint.h unistd.h
9167
 
do :
9168
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9169
 
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9170
 
"
9171
 
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9172
 
  cat >>confdefs.h <<_ACEOF
9173
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9174
 
_ACEOF
9175
 
 
9176
 
fi
9177
 
 
9178
 
done
9179
 
 
9180
 
 
9181
 
for ac_header in dlfcn.h
9182
 
do :
9183
 
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9184
 
"
9185
 
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9186
 
  cat >>confdefs.h <<_ACEOF
9187
 
#define HAVE_DLFCN_H 1
9188
 
_ACEOF
9189
 
 
9190
 
fi
9191
 
 
9192
 
done
9193
 
 
9194
 
 
9195
 
 
9196
 
 
9197
 
func_stripname_cnf ()
9198
 
{
9199
 
  case ${2} in
9200
 
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9201
 
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9202
 
  esac
9203
 
} # func_stripname_cnf
9204
 
 
9205
 
 
9206
 
 
9207
 
 
9208
 
 
9209
 
# Set options
9210
 
 
9211
 
 
9212
 
 
9213
 
        enable_dlopen=no
9214
 
 
9215
 
 
9216
 
  enable_win32_dll=no
9217
 
 
9218
 
 
9219
 
            # Check whether --enable-shared was given.
9220
 
if test "${enable_shared+set}" = set; then :
9221
 
  enableval=$enable_shared; p=${PACKAGE-default}
9222
 
    case $enableval in
9223
 
    yes) enable_shared=yes ;;
9224
 
    no) enable_shared=no ;;
9225
 
    *)
9226
 
      enable_shared=no
9227
 
      # Look at the argument we got.  We use all the common list separators.
9228
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9229
 
      for pkg in $enableval; do
9230
 
        IFS="$lt_save_ifs"
9231
 
        if test "X$pkg" = "X$p"; then
9232
 
          enable_shared=yes
9233
 
        fi
9234
 
      done
9235
 
      IFS="$lt_save_ifs"
9236
 
      ;;
9237
 
    esac
9238
 
else
9239
 
  enable_shared=yes
9240
 
fi
9241
 
 
9242
 
 
9243
 
 
9244
 
 
9245
 
 
9246
 
 
9247
 
 
9248
 
 
9249
 
 
9250
 
  # Check whether --enable-static was given.
9251
 
if test "${enable_static+set}" = set; then :
9252
 
  enableval=$enable_static; p=${PACKAGE-default}
9253
 
    case $enableval in
9254
 
    yes) enable_static=yes ;;
9255
 
    no) enable_static=no ;;
9256
 
    *)
9257
 
     enable_static=no
9258
 
      # Look at the argument we got.  We use all the common list separators.
9259
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9260
 
      for pkg in $enableval; do
9261
 
        IFS="$lt_save_ifs"
9262
 
        if test "X$pkg" = "X$p"; then
9263
 
          enable_static=yes
9264
 
        fi
9265
 
      done
9266
 
      IFS="$lt_save_ifs"
9267
 
      ;;
9268
 
    esac
9269
 
else
9270
 
  enable_static=yes
9271
 
fi
9272
 
 
9273
 
 
9274
 
 
9275
 
 
9276
 
 
9277
 
 
9278
 
 
9279
 
 
9280
 
 
9281
 
 
9282
 
# Check whether --with-pic was given.
9283
 
if test "${with_pic+set}" = set; then :
9284
 
  withval=$with_pic; lt_p=${PACKAGE-default}
9285
 
    case $withval in
9286
 
    yes|no) pic_mode=$withval ;;
9287
 
    *)
9288
 
      pic_mode=default
9289
 
      # Look at the argument we got.  We use all the common list separators.
9290
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9291
 
      for lt_pkg in $withval; do
9292
 
        IFS="$lt_save_ifs"
9293
 
        if test "X$lt_pkg" = "X$lt_p"; then
9294
 
          pic_mode=yes
9295
 
        fi
9296
 
      done
9297
 
      IFS="$lt_save_ifs"
9298
 
      ;;
9299
 
    esac
9300
 
else
9301
 
  pic_mode=default
9302
 
fi
9303
 
 
9304
 
 
9305
 
test -z "$pic_mode" && pic_mode=default
9306
 
 
9307
 
 
9308
 
 
9309
 
 
9310
 
 
9311
 
 
9312
 
 
9313
 
  # Check whether --enable-fast-install was given.
9314
 
if test "${enable_fast_install+set}" = set; then :
9315
 
  enableval=$enable_fast_install; p=${PACKAGE-default}
9316
 
    case $enableval in
9317
 
    yes) enable_fast_install=yes ;;
9318
 
    no) enable_fast_install=no ;;
9319
 
    *)
9320
 
      enable_fast_install=no
9321
 
      # Look at the argument we got.  We use all the common list separators.
9322
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9323
 
      for pkg in $enableval; do
9324
 
        IFS="$lt_save_ifs"
9325
 
        if test "X$pkg" = "X$p"; then
9326
 
          enable_fast_install=yes
9327
 
        fi
9328
 
      done
9329
 
      IFS="$lt_save_ifs"
9330
 
      ;;
9331
 
    esac
9332
 
else
9333
 
  enable_fast_install=yes
9334
 
fi
9335
 
 
9336
 
 
9337
 
 
9338
 
 
9339
 
 
9340
 
 
9341
 
 
9342
 
 
9343
 
 
9344
 
 
9345
 
 
9346
 
# This can be used to rebuild libtool when needed
9347
 
LIBTOOL_DEPS="$ltmain"
9348
 
 
9349
 
# Always use our own libtool.
9350
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9351
 
 
9352
 
 
9353
 
 
9354
 
 
9355
 
 
9356
 
 
9357
 
 
9358
 
 
9359
 
 
9360
 
 
9361
 
 
9362
 
 
9363
 
 
9364
 
 
9365
 
 
9366
 
 
9367
 
 
9368
 
 
9369
 
 
9370
 
 
9371
 
 
9372
 
 
9373
 
 
9374
 
 
9375
 
 
9376
 
 
9377
 
 
9378
 
 
9379
 
 
9380
 
 
9381
 
test -z "$LN_S" && LN_S="ln -s"
9382
 
 
9383
 
 
9384
 
 
9385
 
 
9386
 
 
9387
 
 
9388
 
 
9389
 
 
9390
 
 
9391
 
 
9392
 
 
9393
 
 
9394
 
 
9395
 
 
9396
 
if test -n "${ZSH_VERSION+set}" ; then
9397
 
   setopt NO_GLOB_SUBST
9398
 
fi
9399
 
 
9400
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9401
 
$as_echo_n "checking for objdir... " >&6; }
9402
 
if ${lt_cv_objdir+:} false; then :
9403
 
  $as_echo_n "(cached) " >&6
9404
 
else
9405
 
  rm -f .libs 2>/dev/null
9406
 
mkdir .libs 2>/dev/null
9407
 
if test -d .libs; then
9408
 
  lt_cv_objdir=.libs
9409
 
else
9410
 
  # MS-DOS does not allow filenames that begin with a dot.
9411
 
  lt_cv_objdir=_libs
9412
 
fi
9413
 
rmdir .libs 2>/dev/null
9414
 
fi
9415
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9416
 
$as_echo "$lt_cv_objdir" >&6; }
9417
 
objdir=$lt_cv_objdir
9418
 
 
9419
 
 
9420
 
 
9421
 
 
9422
 
 
9423
 
cat >>confdefs.h <<_ACEOF
9424
 
#define LT_OBJDIR "$lt_cv_objdir/"
9425
 
_ACEOF
9426
 
 
9427
 
 
9428
 
 
9429
 
 
9430
 
case $host_os in
9431
 
aix3*)
9432
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
9433
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
9434
 
  # vanish in a puff of smoke.
9435
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
9436
 
    COLLECT_NAMES=
9437
 
    export COLLECT_NAMES
9438
 
  fi
9439
 
  ;;
9440
 
esac
9441
 
 
9442
 
# Global variables:
9443
 
ofile=libtool
9444
 
can_build_shared=yes
9445
 
 
9446
 
# All known linkers require a `.a' archive for static linking (except MSVC,
9447
 
# which needs '.lib').
9448
 
libext=a
9449
 
 
9450
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
9451
 
 
9452
 
old_CC="$CC"
9453
 
old_CFLAGS="$CFLAGS"
9454
 
 
9455
 
# Set sane defaults for various variables
9456
 
test -z "$CC" && CC=cc
9457
 
test -z "$LTCC" && LTCC=$CC
9458
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9459
 
test -z "$LD" && LD=ld
9460
 
test -z "$ac_objext" && ac_objext=o
9461
 
 
9462
 
for cc_temp in $compiler""; do
9463
 
  case $cc_temp in
9464
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9465
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9466
 
    \-*) ;;
9467
 
    *) break;;
9468
 
  esac
9469
 
done
9470
 
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9471
 
 
9472
 
 
9473
 
# Only perform the check for file, if the check method requires it
9474
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
9475
 
case $deplibs_check_method in
9476
 
file_magic*)
9477
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9478
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9479
 
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9480
 
if ${lt_cv_path_MAGIC_CMD+:} false; then :
9481
 
  $as_echo_n "(cached) " >&6
9482
 
else
9483
 
  case $MAGIC_CMD in
9484
 
[\\/*] |  ?:[\\/]*)
9485
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9486
 
  ;;
9487
 
*)
9488
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
9489
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9490
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9491
 
  for ac_dir in $ac_dummy; do
9492
 
    IFS="$lt_save_ifs"
9493
 
    test -z "$ac_dir" && ac_dir=.
9494
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
9495
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9496
 
      if test -n "$file_magic_test_file"; then
9497
 
        case $deplibs_check_method in
9498
 
        "file_magic "*)
9499
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9500
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9501
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9502
 
            $EGREP "$file_magic_regex" > /dev/null; then
9503
 
            :
9504
 
          else
9505
 
            cat <<_LT_EOF 1>&2
9506
 
 
9507
 
*** Warning: the command libtool uses to detect shared libraries,
9508
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
9509
 
*** The result is that libtool may fail to recognize shared libraries
9510
 
*** as such.  This will affect the creation of libtool libraries that
9511
 
*** depend on shared libraries, but programs linked with such libtool
9512
 
*** libraries will work regardless of this problem.  Nevertheless, you
9513
 
*** may want to report the problem to your system manager and/or to
9514
 
*** bug-libtool@gnu.org
9515
 
 
9516
 
_LT_EOF
9517
 
          fi ;;
9518
 
        esac
9519
 
      fi
9520
 
      break
9521
 
    fi
9522
 
  done
9523
 
  IFS="$lt_save_ifs"
9524
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
9525
 
  ;;
9526
 
esac
9527
 
fi
9528
 
 
9529
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9530
 
if test -n "$MAGIC_CMD"; then
9531
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9532
 
$as_echo "$MAGIC_CMD" >&6; }
9533
 
else
9534
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9535
 
$as_echo "no" >&6; }
9536
 
fi
9537
 
 
9538
 
 
9539
 
 
9540
 
 
9541
 
 
9542
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
9543
 
  if test -n "$ac_tool_prefix"; then
9544
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9545
 
$as_echo_n "checking for file... " >&6; }
9546
 
if ${lt_cv_path_MAGIC_CMD+:} false; then :
9547
 
  $as_echo_n "(cached) " >&6
9548
 
else
9549
 
  case $MAGIC_CMD in
9550
 
[\\/*] |  ?:[\\/]*)
9551
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9552
 
  ;;
9553
 
*)
9554
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
9555
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9556
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9557
 
  for ac_dir in $ac_dummy; do
9558
 
    IFS="$lt_save_ifs"
9559
 
    test -z "$ac_dir" && ac_dir=.
9560
 
    if test -f $ac_dir/file; then
9561
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9562
 
      if test -n "$file_magic_test_file"; then
9563
 
        case $deplibs_check_method in
9564
 
        "file_magic "*)
9565
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9566
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9567
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9568
 
            $EGREP "$file_magic_regex" > /dev/null; then
9569
 
            :
9570
 
          else
9571
 
            cat <<_LT_EOF 1>&2
9572
 
 
9573
 
*** Warning: the command libtool uses to detect shared libraries,
9574
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
9575
 
*** The result is that libtool may fail to recognize shared libraries
9576
 
*** as such.  This will affect the creation of libtool libraries that
9577
 
*** depend on shared libraries, but programs linked with such libtool
9578
 
*** libraries will work regardless of this problem.  Nevertheless, you
9579
 
*** may want to report the problem to your system manager and/or to
9580
 
*** bug-libtool@gnu.org
9581
 
 
9582
 
_LT_EOF
9583
 
          fi ;;
9584
 
        esac
9585
 
      fi
9586
 
      break
9587
 
    fi
9588
 
  done
9589
 
  IFS="$lt_save_ifs"
9590
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
9591
 
  ;;
9592
 
esac
9593
 
fi
9594
 
 
9595
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9596
 
if test -n "$MAGIC_CMD"; then
9597
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9598
 
$as_echo "$MAGIC_CMD" >&6; }
9599
 
else
9600
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9601
 
$as_echo "no" >&6; }
9602
 
fi
9603
 
 
9604
 
 
9605
 
  else
9606
 
    MAGIC_CMD=:
9607
 
  fi
9608
 
fi
9609
 
 
9610
 
  fi
9611
 
  ;;
9612
 
esac
9613
 
 
9614
 
# Use C for the default configuration in the libtool script
9615
 
 
9616
 
lt_save_CC="$CC"
9617
 
ac_ext=c
9618
 
ac_cpp='$CPP $CPPFLAGS'
9619
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9620
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9621
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9622
 
 
9623
 
 
9624
 
# Source file extension for C test sources.
9625
 
ac_ext=c
9626
 
 
9627
 
# Object file extension for compiled C test sources.
9628
 
objext=o
9629
 
objext=$objext
9630
 
 
9631
 
# Code to be used in simple compile tests
9632
 
lt_simple_compile_test_code="int some_variable = 0;"
9633
 
 
9634
 
# Code to be used in simple link tests
9635
 
lt_simple_link_test_code='int main(){return(0);}'
9636
 
 
9637
 
 
9638
 
 
9639
 
 
9640
 
 
9641
 
 
9642
 
 
9643
 
# If no C compiler was specified, use CC.
9644
 
LTCC=${LTCC-"$CC"}
9645
 
 
9646
 
# If no C compiler flags were specified, use CFLAGS.
9647
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9648
 
 
9649
 
# Allow CC to be a program name with arguments.
9650
 
compiler=$CC
9651
 
 
9652
 
# Save the default compiler, since it gets overwritten when the other
9653
 
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9654
 
compiler_DEFAULT=$CC
9655
 
 
9656
 
# save warnings/boilerplate of simple test code
9657
 
ac_outfile=conftest.$ac_objext
9658
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9659
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9660
 
_lt_compiler_boilerplate=`cat conftest.err`
9661
 
$RM conftest*
9662
 
 
9663
 
ac_outfile=conftest.$ac_objext
9664
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
9665
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9666
 
_lt_linker_boilerplate=`cat conftest.err`
9667
 
$RM -r conftest*
9668
 
 
9669
 
 
9670
 
## CAVEAT EMPTOR:
9671
 
## There is no encapsulation within the following macros, do not change
9672
 
## the running order or otherwise move them around unless you know exactly
9673
 
## what you are doing...
9674
 
if test -n "$compiler"; then
9675
 
 
9676
 
lt_prog_compiler_no_builtin_flag=
9677
 
 
9678
 
if test "$GCC" = yes; then
9679
 
  case $cc_basename in
9680
 
  nvcc*)
9681
 
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9682
 
  *)
9683
 
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9684
 
  esac
9685
 
 
9686
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9687
 
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9688
 
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9689
 
  $as_echo_n "(cached) " >&6
9690
 
else
9691
 
  lt_cv_prog_compiler_rtti_exceptions=no
9692
 
   ac_outfile=conftest.$ac_objext
9693
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9694
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
9695
 
   # Insert the option either (1) after the last *FLAGS variable, or
9696
 
   # (2) before a word containing "conftest.", or (3) at the end.
9697
 
   # Note that $ac_compile itself does not contain backslashes and begins
9698
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9699
 
   # The option is referenced via a variable to avoid confusing sed.
9700
 
   lt_compile=`echo "$ac_compile" | $SED \
9701
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9702
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9703
 
   -e 's:$: $lt_compiler_flag:'`
9704
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9705
 
   (eval "$lt_compile" 2>conftest.err)
9706
 
   ac_status=$?
9707
 
   cat conftest.err >&5
9708
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
9710
 
     # The compiler can only warn and ignore the option if not recognized
9711
 
     # So say no if there are warnings other than the usual output.
9712
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9713
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9714
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9715
 
       lt_cv_prog_compiler_rtti_exceptions=yes
9716
 
     fi
9717
 
   fi
9718
 
   $RM conftest*
9719
 
 
9720
 
fi
9721
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9722
 
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9723
 
 
9724
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9725
 
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9726
 
else
9727
 
    :
9728
 
fi
9729
 
 
9730
 
fi
9731
 
 
9732
 
 
9733
 
 
9734
 
 
9735
 
 
9736
 
 
9737
 
  lt_prog_compiler_wl=
9738
 
lt_prog_compiler_pic=
9739
 
lt_prog_compiler_static=
9740
 
 
9741
 
 
9742
 
  if test "$GCC" = yes; then
9743
 
    lt_prog_compiler_wl='-Wl,'
9744
 
    lt_prog_compiler_static='-static'
9745
 
 
9746
 
    case $host_os in
9747
 
      aix*)
9748
 
      # All AIX code is PIC.
9749
 
      if test "$host_cpu" = ia64; then
9750
 
        # AIX 5 now supports IA64 processor
9751
 
        lt_prog_compiler_static='-Bstatic'
9752
 
      fi
9753
 
      ;;
9754
 
 
9755
 
    amigaos*)
9756
 
      case $host_cpu in
9757
 
      powerpc)
9758
 
            # see comment about AmigaOS4 .so support
9759
 
            lt_prog_compiler_pic='-fPIC'
9760
 
        ;;
9761
 
      m68k)
9762
 
            # FIXME: we need at least 68020 code to build shared libraries, but
9763
 
            # adding the `-m68020' flag to GCC prevents building anything better,
9764
 
            # like `-m68040'.
9765
 
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9766
 
        ;;
9767
 
      esac
9768
 
      ;;
9769
 
 
9770
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9771
 
      # PIC is the default for these OSes.
9772
 
      ;;
9773
 
 
9774
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
9775
 
      # This hack is so that the source file can tell whether it is being
9776
 
      # built for inclusion in a dll (and should export symbols for example).
9777
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9778
 
      # (--disable-auto-import) libraries
9779
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
9780
 
      ;;
9781
 
 
9782
 
    darwin* | rhapsody*)
9783
 
      # PIC is the default on this platform
9784
 
      # Common symbols not allowed in MH_DYLIB files
9785
 
      lt_prog_compiler_pic='-fno-common'
9786
 
      ;;
9787
 
 
9788
 
    haiku*)
9789
 
      # PIC is the default for Haiku.
9790
 
      # The "-static" flag exists, but is broken.
9791
 
      lt_prog_compiler_static=
9792
 
      ;;
9793
 
 
9794
 
    hpux*)
9795
 
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9796
 
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9797
 
      # sets the default TLS model and affects inlining.
9798
 
      case $host_cpu in
9799
 
      hppa*64*)
9800
 
        # +Z the default
9801
 
        ;;
9802
 
      *)
9803
 
        lt_prog_compiler_pic='-fPIC'
9804
 
        ;;
9805
 
      esac
9806
 
      ;;
9807
 
 
9808
 
    interix[3-9]*)
9809
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9810
 
      # Instead, we relocate shared libraries at runtime.
9811
 
      ;;
9812
 
 
9813
 
    msdosdjgpp*)
9814
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
9815
 
      # on systems that don't support them.
9816
 
      lt_prog_compiler_can_build_shared=no
9817
 
      enable_shared=no
9818
 
      ;;
9819
 
 
9820
 
    *nto* | *qnx*)
9821
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
9822
 
      # it will coredump.
9823
 
      lt_prog_compiler_pic='-fPIC -shared'
9824
 
      ;;
9825
 
 
9826
 
    sysv4*MP*)
9827
 
      if test -d /usr/nec; then
9828
 
        lt_prog_compiler_pic=-Kconform_pic
9829
 
      fi
9830
 
      ;;
9831
 
 
9832
 
    *)
9833
 
      lt_prog_compiler_pic='-fPIC'
9834
 
      ;;
9835
 
    esac
9836
 
 
9837
 
    case $cc_basename in
9838
 
    nvcc*) # Cuda Compiler Driver 2.2
9839
 
      lt_prog_compiler_wl='-Xlinker '
9840
 
      if test -n "$lt_prog_compiler_pic"; then
9841
 
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9842
 
      fi
9843
 
      ;;
9844
 
    esac
9845
 
  else
9846
 
    # PORTME Check for flag to pass linker flags through the system compiler.
9847
 
    case $host_os in
9848
 
    aix*)
9849
 
      lt_prog_compiler_wl='-Wl,'
9850
 
      if test "$host_cpu" = ia64; then
9851
 
        # AIX 5 now supports IA64 processor
9852
 
        lt_prog_compiler_static='-Bstatic'
9853
 
      else
9854
 
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9855
 
      fi
9856
 
      ;;
9857
 
 
9858
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
9859
 
      # This hack is so that the source file can tell whether it is being
9860
 
      # built for inclusion in a dll (and should export symbols for example).
9861
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
9862
 
      ;;
9863
 
 
9864
 
    hpux9* | hpux10* | hpux11*)
9865
 
      lt_prog_compiler_wl='-Wl,'
9866
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9867
 
      # not for PA HP-UX.
9868
 
      case $host_cpu in
9869
 
      hppa*64*|ia64*)
9870
 
        # +Z the default
9871
 
        ;;
9872
 
      *)
9873
 
        lt_prog_compiler_pic='+Z'
9874
 
        ;;
9875
 
      esac
9876
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9877
 
      lt_prog_compiler_static='${wl}-a ${wl}archive'
9878
 
      ;;
9879
 
 
9880
 
    irix5* | irix6* | nonstopux*)
9881
 
      lt_prog_compiler_wl='-Wl,'
9882
 
      # PIC (with -KPIC) is the default.
9883
 
      lt_prog_compiler_static='-non_shared'
9884
 
      ;;
9885
 
 
9886
 
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9887
 
      case $cc_basename in
9888
 
      # old Intel for x86_64 which still supported -KPIC.
9889
 
      ecc*)
9890
 
        lt_prog_compiler_wl='-Wl,'
9891
 
        lt_prog_compiler_pic='-KPIC'
9892
 
        lt_prog_compiler_static='-static'
9893
 
        ;;
9894
 
      # icc used to be incompatible with GCC.
9895
 
      # ICC 10 doesn't accept -KPIC any more.
9896
 
      icc* | ifort*)
9897
 
        lt_prog_compiler_wl='-Wl,'
9898
 
        lt_prog_compiler_pic='-fPIC'
9899
 
        lt_prog_compiler_static='-static'
9900
 
        ;;
9901
 
      # Lahey Fortran 8.1.
9902
 
      lf95*)
9903
 
        lt_prog_compiler_wl='-Wl,'
9904
 
        lt_prog_compiler_pic='--shared'
9905
 
        lt_prog_compiler_static='--static'
9906
 
        ;;
9907
 
      nagfor*)
9908
 
        # NAG Fortran compiler
9909
 
        lt_prog_compiler_wl='-Wl,-Wl,,'
9910
 
        lt_prog_compiler_pic='-PIC'
9911
 
        lt_prog_compiler_static='-Bstatic'
9912
 
        ;;
9913
 
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9914
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
9915
 
        # which looks to be a dead project)
9916
 
        lt_prog_compiler_wl='-Wl,'
9917
 
        lt_prog_compiler_pic='-fpic'
9918
 
        lt_prog_compiler_static='-Bstatic'
9919
 
        ;;
9920
 
      ccc*)
9921
 
        lt_prog_compiler_wl='-Wl,'
9922
 
        # All Alpha code is PIC.
9923
 
        lt_prog_compiler_static='-non_shared'
9924
 
        ;;
9925
 
      xl* | bgxl* | bgf* | mpixl*)
9926
 
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9927
 
        lt_prog_compiler_wl='-Wl,'
9928
 
        lt_prog_compiler_pic='-qpic'
9929
 
        lt_prog_compiler_static='-qstaticlink'
9930
 
        ;;
9931
 
      *)
9932
 
        case `$CC -V 2>&1 | sed 5q` in
9933
 
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9934
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
9935
 
          lt_prog_compiler_pic='-KPIC'
9936
 
          lt_prog_compiler_static='-Bstatic'
9937
 
          lt_prog_compiler_wl=''
9938
 
          ;;
9939
 
        *Sun\ F* | *Sun*Fortran*)
9940
 
          lt_prog_compiler_pic='-KPIC'
9941
 
          lt_prog_compiler_static='-Bstatic'
9942
 
          lt_prog_compiler_wl='-Qoption ld '
9943
 
          ;;
9944
 
        *Sun\ C*)
9945
 
          # Sun C 5.9
9946
 
          lt_prog_compiler_pic='-KPIC'
9947
 
          lt_prog_compiler_static='-Bstatic'
9948
 
          lt_prog_compiler_wl='-Wl,'
9949
 
          ;;
9950
 
        *Intel*\ [CF]*Compiler*)
9951
 
          lt_prog_compiler_wl='-Wl,'
9952
 
          lt_prog_compiler_pic='-fPIC'
9953
 
          lt_prog_compiler_static='-static'
9954
 
          ;;
9955
 
        *Portland\ Group*)
9956
 
          lt_prog_compiler_wl='-Wl,'
9957
 
          lt_prog_compiler_pic='-fpic'
9958
 
          lt_prog_compiler_static='-Bstatic'
9959
 
          ;;
9960
 
        esac
9961
 
        ;;
9962
 
      esac
9963
 
      ;;
9964
 
 
9965
 
    newsos6)
9966
 
      lt_prog_compiler_pic='-KPIC'
9967
 
      lt_prog_compiler_static='-Bstatic'
9968
 
      ;;
9969
 
 
9970
 
    *nto* | *qnx*)
9971
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
9972
 
      # it will coredump.
9973
 
      lt_prog_compiler_pic='-fPIC -shared'
9974
 
      ;;
9975
 
 
9976
 
    osf3* | osf4* | osf5*)
9977
 
      lt_prog_compiler_wl='-Wl,'
9978
 
      # All OSF/1 code is PIC.
9979
 
      lt_prog_compiler_static='-non_shared'
9980
 
      ;;
9981
 
 
9982
 
    rdos*)
9983
 
      lt_prog_compiler_static='-non_shared'
9984
 
      ;;
9985
 
 
9986
 
    solaris*)
9987
 
      lt_prog_compiler_pic='-KPIC'
9988
 
      lt_prog_compiler_static='-Bstatic'
9989
 
      case $cc_basename in
9990
 
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9991
 
        lt_prog_compiler_wl='-Qoption ld ';;
9992
 
      *)
9993
 
        lt_prog_compiler_wl='-Wl,';;
9994
 
      esac
9995
 
      ;;
9996
 
 
9997
 
    sunos4*)
9998
 
      lt_prog_compiler_wl='-Qoption ld '
9999
 
      lt_prog_compiler_pic='-PIC'
10000
 
      lt_prog_compiler_static='-Bstatic'
10001
 
      ;;
10002
 
 
10003
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
10004
 
      lt_prog_compiler_wl='-Wl,'
10005
 
      lt_prog_compiler_pic='-KPIC'
10006
 
      lt_prog_compiler_static='-Bstatic'
10007
 
      ;;
10008
 
 
10009
 
    sysv4*MP*)
10010
 
      if test -d /usr/nec ;then
10011
 
        lt_prog_compiler_pic='-Kconform_pic'
10012
 
        lt_prog_compiler_static='-Bstatic'
10013
 
      fi
10014
 
      ;;
10015
 
 
10016
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10017
 
      lt_prog_compiler_wl='-Wl,'
10018
 
      lt_prog_compiler_pic='-KPIC'
10019
 
      lt_prog_compiler_static='-Bstatic'
10020
 
      ;;
10021
 
 
10022
 
    unicos*)
10023
 
      lt_prog_compiler_wl='-Wl,'
10024
 
      lt_prog_compiler_can_build_shared=no
10025
 
      ;;
10026
 
 
10027
 
    uts4*)
10028
 
      lt_prog_compiler_pic='-pic'
10029
 
      lt_prog_compiler_static='-Bstatic'
10030
 
      ;;
10031
 
 
10032
 
    *)
10033
 
      lt_prog_compiler_can_build_shared=no
10034
 
      ;;
10035
 
    esac
10036
 
  fi
10037
 
 
10038
 
case $host_os in
10039
 
  # For platforms which do not support PIC, -DPIC is meaningless:
10040
 
  *djgpp*)
10041
 
    lt_prog_compiler_pic=
10042
 
    ;;
10043
 
  *)
10044
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10045
 
    ;;
10046
 
esac
10047
 
 
10048
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10049
 
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10050
 
if ${lt_cv_prog_compiler_pic+:} false; then :
10051
 
  $as_echo_n "(cached) " >&6
10052
 
else
10053
 
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10054
 
fi
10055
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10056
 
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10057
 
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10058
 
 
10059
 
#
10060
 
# Check to make sure the PIC flag actually works.
10061
 
#
10062
 
if test -n "$lt_prog_compiler_pic"; then
10063
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10064
 
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10065
 
if ${lt_cv_prog_compiler_pic_works+:} false; then :
10066
 
  $as_echo_n "(cached) " >&6
10067
 
else
10068
 
  lt_cv_prog_compiler_pic_works=no
10069
 
   ac_outfile=conftest.$ac_objext
10070
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10071
 
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10072
 
   # Insert the option either (1) after the last *FLAGS variable, or
10073
 
   # (2) before a word containing "conftest.", or (3) at the end.
10074
 
   # Note that $ac_compile itself does not contain backslashes and begins
10075
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
10076
 
   # The option is referenced via a variable to avoid confusing sed.
10077
 
   lt_compile=`echo "$ac_compile" | $SED \
10078
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10079
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10080
 
   -e 's:$: $lt_compiler_flag:'`
10081
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10082
 
   (eval "$lt_compile" 2>conftest.err)
10083
 
   ac_status=$?
10084
 
   cat conftest.err >&5
10085
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
10087
 
     # The compiler can only warn and ignore the option if not recognized
10088
 
     # So say no if there are warnings other than the usual output.
10089
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10090
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10091
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10092
 
       lt_cv_prog_compiler_pic_works=yes
10093
 
     fi
10094
 
   fi
10095
 
   $RM conftest*
10096
 
 
10097
 
fi
10098
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10099
 
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10100
 
 
10101
 
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10102
 
    case $lt_prog_compiler_pic in
10103
 
     "" | " "*) ;;
10104
 
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10105
 
     esac
10106
 
else
10107
 
    lt_prog_compiler_pic=
10108
 
     lt_prog_compiler_can_build_shared=no
10109
 
fi
10110
 
 
10111
 
fi
10112
 
 
10113
 
 
10114
 
 
10115
 
 
10116
 
 
10117
 
 
10118
 
 
10119
 
 
10120
 
 
10121
 
 
10122
 
 
10123
 
#
10124
 
# Check to make sure the static flag actually works.
10125
 
#
10126
 
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10127
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10128
 
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10129
 
if ${lt_cv_prog_compiler_static_works+:} false; then :
10130
 
  $as_echo_n "(cached) " >&6
10131
 
else
10132
 
  lt_cv_prog_compiler_static_works=no
10133
 
   save_LDFLAGS="$LDFLAGS"
10134
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10135
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10136
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10137
 
     # The linker can only warn and ignore the option if not recognized
10138
 
     # So say no if there are warnings
10139
 
     if test -s conftest.err; then
10140
 
       # Append any errors to the config.log.
10141
 
       cat conftest.err 1>&5
10142
 
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10143
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10144
 
       if diff conftest.exp conftest.er2 >/dev/null; then
10145
 
         lt_cv_prog_compiler_static_works=yes
10146
 
       fi
10147
 
     else
10148
 
       lt_cv_prog_compiler_static_works=yes
10149
 
     fi
10150
 
   fi
10151
 
   $RM -r conftest*
10152
 
   LDFLAGS="$save_LDFLAGS"
10153
 
 
10154
 
fi
10155
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10156
 
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10157
 
 
10158
 
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10159
 
    :
10160
 
else
10161
 
    lt_prog_compiler_static=
10162
 
fi
10163
 
 
10164
 
 
10165
 
 
10166
 
 
10167
 
 
10168
 
 
10169
 
 
10170
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10171
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10172
 
if ${lt_cv_prog_compiler_c_o+:} false; then :
10173
 
  $as_echo_n "(cached) " >&6
10174
 
else
10175
 
  lt_cv_prog_compiler_c_o=no
10176
 
   $RM -r conftest 2>/dev/null
10177
 
   mkdir conftest
10178
 
   cd conftest
10179
 
   mkdir out
10180
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10181
 
 
10182
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
10183
 
   # Insert the option either (1) after the last *FLAGS variable, or
10184
 
   # (2) before a word containing "conftest.", or (3) at the end.
10185
 
   # Note that $ac_compile itself does not contain backslashes and begins
10186
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
10187
 
   lt_compile=`echo "$ac_compile" | $SED \
10188
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10189
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10190
 
   -e 's:$: $lt_compiler_flag:'`
10191
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10192
 
   (eval "$lt_compile" 2>out/conftest.err)
10193
 
   ac_status=$?
10194
 
   cat out/conftest.err >&5
10195
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10197
 
   then
10198
 
     # The compiler can only warn and ignore the option if not recognized
10199
 
     # So say no if there are warnings
10200
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10201
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10202
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10203
 
       lt_cv_prog_compiler_c_o=yes
10204
 
     fi
10205
 
   fi
10206
 
   chmod u+w . 2>&5
10207
 
   $RM conftest*
10208
 
   # SGI C++ compiler will create directory out/ii_files/ for
10209
 
   # template instantiation
10210
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10211
 
   $RM out/* && rmdir out
10212
 
   cd ..
10213
 
   $RM -r conftest
10214
 
   $RM conftest*
10215
 
 
10216
 
fi
10217
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10218
 
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10219
 
 
10220
 
 
10221
 
 
10222
 
 
10223
 
 
10224
 
 
10225
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10226
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10227
 
if ${lt_cv_prog_compiler_c_o+:} false; then :
10228
 
  $as_echo_n "(cached) " >&6
10229
 
else
10230
 
  lt_cv_prog_compiler_c_o=no
10231
 
   $RM -r conftest 2>/dev/null
10232
 
   mkdir conftest
10233
 
   cd conftest
10234
 
   mkdir out
10235
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10236
 
 
10237
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
10238
 
   # Insert the option either (1) after the last *FLAGS variable, or
10239
 
   # (2) before a word containing "conftest.", or (3) at the end.
10240
 
   # Note that $ac_compile itself does not contain backslashes and begins
10241
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
10242
 
   lt_compile=`echo "$ac_compile" | $SED \
10243
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10244
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10245
 
   -e 's:$: $lt_compiler_flag:'`
10246
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10247
 
   (eval "$lt_compile" 2>out/conftest.err)
10248
 
   ac_status=$?
10249
 
   cat out/conftest.err >&5
10250
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10252
 
   then
10253
 
     # The compiler can only warn and ignore the option if not recognized
10254
 
     # So say no if there are warnings
10255
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10256
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10257
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10258
 
       lt_cv_prog_compiler_c_o=yes
10259
 
     fi
10260
 
   fi
10261
 
   chmod u+w . 2>&5
10262
 
   $RM conftest*
10263
 
   # SGI C++ compiler will create directory out/ii_files/ for
10264
 
   # template instantiation
10265
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10266
 
   $RM out/* && rmdir out
10267
 
   cd ..
10268
 
   $RM -r conftest
10269
 
   $RM conftest*
10270
 
 
10271
 
fi
10272
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10273
 
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10274
 
 
10275
 
 
10276
 
 
10277
 
 
10278
 
hard_links="nottested"
10279
 
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10280
 
  # do not overwrite the value of need_locks provided by the user
10281
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10282
 
$as_echo_n "checking if we can lock with hard links... " >&6; }
10283
 
  hard_links=yes
10284
 
  $RM conftest*
10285
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10286
 
  touch conftest.a
10287
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
10288
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10289
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10290
 
$as_echo "$hard_links" >&6; }
10291
 
  if test "$hard_links" = no; then
10292
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10293
 
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10294
 
    need_locks=warn
10295
 
  fi
10296
 
else
10297
 
  need_locks=no
10298
 
fi
10299
 
 
10300
 
 
10301
 
 
10302
 
 
10303
 
 
10304
 
 
10305
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10306
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10307
 
 
10308
 
  runpath_var=
10309
 
  allow_undefined_flag=
10310
 
  always_export_symbols=no
10311
 
  archive_cmds=
10312
 
  archive_expsym_cmds=
10313
 
  compiler_needs_object=no
10314
 
  enable_shared_with_static_runtimes=no
10315
 
  export_dynamic_flag_spec=
10316
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10317
 
  hardcode_automatic=no
10318
 
  hardcode_direct=no
10319
 
  hardcode_direct_absolute=no
10320
 
  hardcode_libdir_flag_spec=
10321
 
  hardcode_libdir_separator=
10322
 
  hardcode_minus_L=no
10323
 
  hardcode_shlibpath_var=unsupported
10324
 
  inherit_rpath=no
10325
 
  link_all_deplibs=unknown
10326
 
  module_cmds=
10327
 
  module_expsym_cmds=
10328
 
  old_archive_from_new_cmds=
10329
 
  old_archive_from_expsyms_cmds=
10330
 
  thread_safe_flag_spec=
10331
 
  whole_archive_flag_spec=
10332
 
  # include_expsyms should be a list of space-separated symbols to be *always*
10333
 
  # included in the symbol list
10334
 
  include_expsyms=
10335
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
10336
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10337
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10338
 
  # as well as any symbol that contains `d'.
10339
 
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10340
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10341
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
10342
 
  # the symbol is explicitly referenced.  Since portable code cannot
10343
 
  # rely on this symbol name, it's probably fine to never include it in
10344
 
  # preloaded symbol tables.
10345
 
  # Exclude shared library initialization/finalization symbols.
10346
 
  extract_expsyms_cmds=
10347
 
 
10348
 
  case $host_os in
10349
 
  cygwin* | mingw* | pw32* | cegcc*)
10350
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10351
 
    # When not using gcc, we currently assume that we are using
10352
 
    # Microsoft Visual C++.
10353
 
    if test "$GCC" != yes; then
10354
 
      with_gnu_ld=no
10355
 
    fi
10356
 
    ;;
10357
 
  interix*)
10358
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
10359
 
    with_gnu_ld=yes
10360
 
    ;;
10361
 
  openbsd*)
10362
 
    with_gnu_ld=no
10363
 
    ;;
10364
 
  esac
10365
 
 
10366
 
  ld_shlibs=yes
10367
 
 
10368
 
  # On some targets, GNU ld is compatible enough with the native linker
10369
 
  # that we're better off using the native interface for both.
10370
 
  lt_use_gnu_ld_interface=no
10371
 
  if test "$with_gnu_ld" = yes; then
10372
 
    case $host_os in
10373
 
      aix*)
10374
 
        # The AIX port of GNU ld has always aspired to compatibility
10375
 
        # with the native linker.  However, as the warning in the GNU ld
10376
 
        # block says, versions before 2.19.5* couldn't really create working
10377
 
        # shared libraries, regardless of the interface used.
10378
 
        case `$LD -v 2>&1` in
10379
 
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10380
 
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10381
 
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10382
 
          *)
10383
 
            lt_use_gnu_ld_interface=yes
10384
 
            ;;
10385
 
        esac
10386
 
        ;;
10387
 
      *)
10388
 
        lt_use_gnu_ld_interface=yes
10389
 
        ;;
10390
 
    esac
10391
 
  fi
10392
 
 
10393
 
  if test "$lt_use_gnu_ld_interface" = yes; then
10394
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
10395
 
    wlarc='${wl}'
10396
 
 
10397
 
    # Set some defaults for GNU ld with shared library support. These
10398
 
    # are reset later if shared libraries are not supported. Putting them
10399
 
    # here allows them to be overridden if necessary.
10400
 
    runpath_var=LD_RUN_PATH
10401
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10402
 
    export_dynamic_flag_spec='${wl}--export-dynamic'
10403
 
    # ancient GNU ld didn't support --whole-archive et. al.
10404
 
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10405
 
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10406
 
    else
10407
 
      whole_archive_flag_spec=
10408
 
    fi
10409
 
    supports_anon_versioning=no
10410
 
    case `$LD -v 2>&1` in
10411
 
      *GNU\ gold*) supports_anon_versioning=yes ;;
10412
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10413
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10414
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10415
 
      *\ 2.11.*) ;; # other 2.11 versions
10416
 
      *) supports_anon_versioning=yes ;;
10417
 
    esac
10418
 
 
10419
 
    # See if GNU ld supports shared libraries.
10420
 
    case $host_os in
10421
 
    aix[3-9]*)
10422
 
      # On AIX/PPC, the GNU linker is very broken
10423
 
      if test "$host_cpu" != ia64; then
10424
 
        ld_shlibs=no
10425
 
        cat <<_LT_EOF 1>&2
10426
 
 
10427
 
*** Warning: the GNU linker, at least up to release 2.19, is reported
10428
 
*** to be unable to reliably create shared libraries on AIX.
10429
 
*** Therefore, libtool is disabling shared libraries support.  If you
10430
 
*** really care for shared libraries, you may want to install binutils
10431
 
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10432
 
*** You will then need to restart the configuration process.
10433
 
 
10434
 
_LT_EOF
10435
 
      fi
10436
 
      ;;
10437
 
 
10438
 
    amigaos*)
10439
 
      case $host_cpu in
10440
 
      powerpc)
10441
 
            # see comment about AmigaOS4 .so support
10442
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10443
 
            archive_expsym_cmds=''
10444
 
        ;;
10445
 
      m68k)
10446
 
            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)'
10447
 
            hardcode_libdir_flag_spec='-L$libdir'
10448
 
            hardcode_minus_L=yes
10449
 
        ;;
10450
 
      esac
10451
 
      ;;
10452
 
 
10453
 
    beos*)
10454
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10455
 
        allow_undefined_flag=unsupported
10456
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10457
 
        # support --undefined.  This deserves some investigation.  FIXME
10458
 
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10459
 
      else
10460
 
        ld_shlibs=no
10461
 
      fi
10462
 
      ;;
10463
 
 
10464
 
    cygwin* | mingw* | pw32* | cegcc*)
10465
 
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10466
 
      # as there is no search path for DLLs.
10467
 
      hardcode_libdir_flag_spec='-L$libdir'
10468
 
      export_dynamic_flag_spec='${wl}--export-all-symbols'
10469
 
      allow_undefined_flag=unsupported
10470
 
      always_export_symbols=no
10471
 
      enable_shared_with_static_runtimes=yes
10472
 
      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'
10473
 
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10474
 
 
10475
 
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10476
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10477
 
        # If the export-symbols file already is a .def file (1st line
10478
 
        # is EXPORTS), use it as is; otherwise, prepend...
10479
 
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10480
 
          cp $export_symbols $output_objdir/$soname.def;
10481
 
        else
10482
 
          echo EXPORTS > $output_objdir/$soname.def;
10483
 
          cat $export_symbols >> $output_objdir/$soname.def;
10484
 
        fi~
10485
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10486
 
      else
10487
 
        ld_shlibs=no
10488
 
      fi
10489
 
      ;;
10490
 
 
10491
 
    haiku*)
10492
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10493
 
      link_all_deplibs=yes
10494
 
      ;;
10495
 
 
10496
 
    interix[3-9]*)
10497
 
      hardcode_direct=no
10498
 
      hardcode_shlibpath_var=no
10499
 
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10500
 
      export_dynamic_flag_spec='${wl}-E'
10501
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10502
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
10503
 
      # default) and relocated if they conflict, which is a slow very memory
10504
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
10505
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10506
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10507
 
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10508
 
      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'
10509
 
      ;;
10510
 
 
10511
 
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10512
 
      tmp_diet=no
10513
 
      if test "$host_os" = linux-dietlibc; then
10514
 
        case $cc_basename in
10515
 
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10516
 
        esac
10517
 
      fi
10518
 
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10519
 
         && test "$tmp_diet" = no
10520
 
      then
10521
 
        tmp_addflag=' $pic_flag'
10522
 
        tmp_sharedflag='-shared'
10523
 
        case $cc_basename,$host_cpu in
10524
 
        pgcc*)                          # Portland Group C compiler
10525
 
          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'
10526
 
          tmp_addflag=' $pic_flag'
10527
 
          ;;
10528
 
        pgf77* | pgf90* | pgf95* | pgfortran*)
10529
 
                                        # Portland Group f77 and f90 compilers
10530
 
          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'
10531
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
10532
 
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10533
 
          tmp_addflag=' -i_dynamic' ;;
10534
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10535
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
10536
 
        ifc* | ifort*)                  # Intel Fortran compiler
10537
 
          tmp_addflag=' -nofor_main' ;;
10538
 
        lf95*)                          # Lahey Fortran 8.1
10539
 
          whole_archive_flag_spec=
10540
 
          tmp_sharedflag='--shared' ;;
10541
 
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10542
 
          tmp_sharedflag='-qmkshrobj'
10543
 
          tmp_addflag= ;;
10544
 
        nvcc*)  # Cuda Compiler Driver 2.2
10545
 
          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'
10546
 
          compiler_needs_object=yes
10547
 
          ;;
10548
 
        esac
10549
 
        case `$CC -V 2>&1 | sed 5q` in
10550
 
        *Sun\ C*)                       # Sun C 5.9
10551
 
          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'
10552
 
          compiler_needs_object=yes
10553
 
          tmp_sharedflag='-G' ;;
10554
 
        *Sun\ F*)                       # Sun Fortran 8.3
10555
 
          tmp_sharedflag='-G' ;;
10556
 
        esac
10557
 
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10558
 
 
10559
 
        if test "x$supports_anon_versioning" = xyes; then
10560
 
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10561
 
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10562
 
            echo "local: *; };" >> $output_objdir/$libname.ver~
10563
 
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10564
 
        fi
10565
 
 
10566
 
        case $cc_basename in
10567
 
        xlf* | bgf* | bgxlf* | mpixlf*)
10568
 
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10569
 
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10570
 
          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10571
 
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10572
 
          if test "x$supports_anon_versioning" = xyes; then
10573
 
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10574
 
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10575
 
              echo "local: *; };" >> $output_objdir/$libname.ver~
10576
 
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10577
 
          fi
10578
 
          ;;
10579
 
        esac
10580
 
      else
10581
 
        ld_shlibs=no
10582
 
      fi
10583
 
      ;;
10584
 
 
10585
 
    netbsd*)
10586
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10587
 
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10588
 
        wlarc=
10589
 
      else
10590
 
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10591
 
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10592
 
      fi
10593
 
      ;;
10594
 
 
10595
 
    solaris*)
10596
 
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10597
 
        ld_shlibs=no
10598
 
        cat <<_LT_EOF 1>&2
10599
 
 
10600
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10601
 
*** create shared libraries on Solaris systems.  Therefore, libtool
10602
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
10603
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
10604
 
*** your PATH or compiler configuration so that the native linker is
10605
 
*** used, and then restart.
10606
 
 
10607
 
_LT_EOF
10608
 
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10609
 
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10610
 
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10611
 
      else
10612
 
        ld_shlibs=no
10613
 
      fi
10614
 
      ;;
10615
 
 
10616
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10617
 
      case `$LD -v 2>&1` in
10618
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10619
 
        ld_shlibs=no
10620
 
        cat <<_LT_EOF 1>&2
10621
 
 
10622
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10623
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
10624
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
10625
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10626
 
*** your PATH or compiler configuration so that the native linker is
10627
 
*** used, and then restart.
10628
 
 
10629
 
_LT_EOF
10630
 
        ;;
10631
 
        *)
10632
 
          # For security reasons, it is highly recommended that you always
10633
 
          # use absolute paths for naming shared libraries, and exclude the
10634
 
          # DT_RUNPATH tag from executables and libraries.  But doing so
10635
 
          # requires that you compile everything twice, which is a pain.
10636
 
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10637
 
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10638
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10639
 
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10640
 
          else
10641
 
            ld_shlibs=no
10642
 
          fi
10643
 
        ;;
10644
 
      esac
10645
 
      ;;
10646
 
 
10647
 
    sunos4*)
10648
 
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10649
 
      wlarc=
10650
 
      hardcode_direct=yes
10651
 
      hardcode_shlibpath_var=no
10652
 
      ;;
10653
 
 
10654
 
    *)
10655
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10656
 
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10657
 
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10658
 
      else
10659
 
        ld_shlibs=no
10660
 
      fi
10661
 
      ;;
10662
 
    esac
10663
 
 
10664
 
    if test "$ld_shlibs" = no; then
10665
 
      runpath_var=
10666
 
      hardcode_libdir_flag_spec=
10667
 
      export_dynamic_flag_spec=
10668
 
      whole_archive_flag_spec=
10669
 
    fi
10670
 
  else
10671
 
    # PORTME fill in a description of your system's linker (not GNU ld)
10672
 
    case $host_os in
10673
 
    aix3*)
10674
 
      allow_undefined_flag=unsupported
10675
 
      always_export_symbols=yes
10676
 
      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'
10677
 
      # Note: this linker hardcodes the directories in LIBPATH if there
10678
 
      # are no directories specified by -L.
10679
 
      hardcode_minus_L=yes
10680
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10681
 
        # Neither direct hardcoding nor static linking is supported with a
10682
 
        # broken collect2.
10683
 
        hardcode_direct=unsupported
10684
 
      fi
10685
 
      ;;
10686
 
 
10687
 
    aix[4-9]*)
10688
 
      if test "$host_cpu" = ia64; then
10689
 
        # On IA64, the linker does run time linking by default, so we don't
10690
 
        # have to do anything special.
10691
 
        aix_use_runtimelinking=no
10692
 
        exp_sym_flag='-Bexport'
10693
 
        no_entry_flag=""
10694
 
      else
10695
 
        # If we're using GNU nm, then we don't want the "-C" option.
10696
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
10697
 
        # Also, AIX nm treats weak defined symbols like other global
10698
 
        # defined symbols, whereas GNU nm marks them as "W".
10699
 
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10700
 
          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'
10701
 
        else
10702
 
          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'
10703
 
        fi
10704
 
        aix_use_runtimelinking=no
10705
 
 
10706
 
        # Test if we are trying to use run time linking or normal
10707
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10708
 
        # need to do runtime linking.
10709
 
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10710
 
          for ld_flag in $LDFLAGS; do
10711
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10712
 
            aix_use_runtimelinking=yes
10713
 
            break
10714
 
          fi
10715
 
          done
10716
 
          ;;
10717
 
        esac
10718
 
 
10719
 
        exp_sym_flag='-bexport'
10720
 
        no_entry_flag='-bnoentry'
10721
 
      fi
10722
 
 
10723
 
      # When large executables or shared objects are built, AIX ld can
10724
 
      # have problems creating the table of contents.  If linking a library
10725
 
      # or program results in "error TOC overflow" add -mminimal-toc to
10726
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10727
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10728
 
 
10729
 
      archive_cmds=''
10730
 
      hardcode_direct=yes
10731
 
      hardcode_direct_absolute=yes
10732
 
      hardcode_libdir_separator=':'
10733
 
      link_all_deplibs=yes
10734
 
      file_list_spec='${wl}-f,'
10735
 
 
10736
 
      if test "$GCC" = yes; then
10737
 
        case $host_os in aix4.[012]|aix4.[012].*)
10738
 
        # We only want to do this on AIX 4.2 and lower, the check
10739
 
        # below for broken collect2 doesn't work under 4.3+
10740
 
          collect2name=`${CC} -print-prog-name=collect2`
10741
 
          if test -f "$collect2name" &&
10742
 
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10743
 
          then
10744
 
          # We have reworked collect2
10745
 
          :
10746
 
          else
10747
 
          # We have old collect2
10748
 
          hardcode_direct=unsupported
10749
 
          # It fails to find uninstalled libraries when the uninstalled
10750
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
10751
 
          # to unsupported forces relinking
10752
 
          hardcode_minus_L=yes
10753
 
          hardcode_libdir_flag_spec='-L$libdir'
10754
 
          hardcode_libdir_separator=
10755
 
          fi
10756
 
          ;;
10757
 
        esac
10758
 
        shared_flag='-shared'
10759
 
        if test "$aix_use_runtimelinking" = yes; then
10760
 
          shared_flag="$shared_flag "'${wl}-G'
10761
 
        fi
10762
 
      else
10763
 
        # not using gcc
10764
 
        if test "$host_cpu" = ia64; then
10765
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10766
 
        # chokes on -Wl,-G. The following line is correct:
10767
 
          shared_flag='-G'
10768
 
        else
10769
 
          if test "$aix_use_runtimelinking" = yes; then
10770
 
            shared_flag='${wl}-G'
10771
 
          else
10772
 
            shared_flag='${wl}-bM:SRE'
10773
 
          fi
10774
 
        fi
10775
 
      fi
10776
 
 
10777
 
      export_dynamic_flag_spec='${wl}-bexpall'
10778
 
      # It seems that -bexpall does not export symbols beginning with
10779
 
      # underscore (_), so it is better to generate a list of symbols to export.
10780
 
      always_export_symbols=yes
10781
 
      if test "$aix_use_runtimelinking" = yes; then
10782
 
        # Warning - without using the other runtime loading flags (-brtl),
10783
 
        # -berok will link without error, but may produce a broken library.
10784
 
        allow_undefined_flag='-berok'
10785
 
        # Determine the default libpath from the value encoded in an
10786
 
        # empty executable.
10787
 
        if test "${lt_cv_aix_libpath+set}" = set; then
10788
 
  aix_libpath=$lt_cv_aix_libpath
10789
 
else
10790
 
  if ${lt_cv_aix_libpath_+:} false; then :
10791
 
  $as_echo_n "(cached) " >&6
10792
 
else
10793
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794
 
/* end confdefs.h.  */
10795
 
 
10796
 
int
10797
 
main ()
10798
 
{
10799
 
 
10800
 
  ;
10801
 
  return 0;
10802
 
}
10803
 
_ACEOF
10804
 
if ac_fn_c_try_link "$LINENO"; then :
10805
 
 
10806
 
  lt_aix_libpath_sed='
10807
 
      /Import File Strings/,/^$/ {
10808
 
          /^0/ {
10809
 
              s/^0  *\([^ ]*\) *$/\1/
10810
 
              p
10811
 
          }
10812
 
      }'
10813
 
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10814
 
  # Check for a 64-bit object if we didn't find anything.
10815
 
  if test -z "$lt_cv_aix_libpath_"; then
10816
 
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10817
 
  fi
10818
 
fi
10819
 
rm -f core conftest.err conftest.$ac_objext \
10820
 
    conftest$ac_exeext conftest.$ac_ext
10821
 
  if test -z "$lt_cv_aix_libpath_"; then
10822
 
    lt_cv_aix_libpath_="/usr/lib:/lib"
10823
 
  fi
10824
 
 
10825
 
fi
10826
 
 
10827
 
  aix_libpath=$lt_cv_aix_libpath_
10828
 
fi
10829
 
 
10830
 
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10831
 
        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"
10832
 
      else
10833
 
        if test "$host_cpu" = ia64; then
10834
 
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10835
 
          allow_undefined_flag="-z nodefs"
10836
 
          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"
10837
 
        else
10838
 
         # Determine the default libpath from the value encoded in an
10839
 
         # empty executable.
10840
 
         if test "${lt_cv_aix_libpath+set}" = set; then
10841
 
  aix_libpath=$lt_cv_aix_libpath
10842
 
else
10843
 
  if ${lt_cv_aix_libpath_+:} false; then :
10844
 
  $as_echo_n "(cached) " >&6
10845
 
else
10846
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10847
 
/* end confdefs.h.  */
10848
 
 
10849
 
int
10850
 
main ()
10851
 
{
10852
 
 
10853
 
  ;
10854
 
  return 0;
10855
 
}
10856
 
_ACEOF
10857
 
if ac_fn_c_try_link "$LINENO"; then :
10858
 
 
10859
 
  lt_aix_libpath_sed='
10860
 
      /Import File Strings/,/^$/ {
10861
 
          /^0/ {
10862
 
              s/^0  *\([^ ]*\) *$/\1/
10863
 
              p
10864
 
          }
10865
 
      }'
10866
 
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10867
 
  # Check for a 64-bit object if we didn't find anything.
10868
 
  if test -z "$lt_cv_aix_libpath_"; then
10869
 
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10870
 
  fi
10871
 
fi
10872
 
rm -f core conftest.err conftest.$ac_objext \
10873
 
    conftest$ac_exeext conftest.$ac_ext
10874
 
  if test -z "$lt_cv_aix_libpath_"; then
10875
 
    lt_cv_aix_libpath_="/usr/lib:/lib"
10876
 
  fi
10877
 
 
10878
 
fi
10879
 
 
10880
 
  aix_libpath=$lt_cv_aix_libpath_
10881
 
fi
10882
 
 
10883
 
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10884
 
          # Warning - without using the other run time loading flags,
10885
 
          # -berok will link without error, but may produce a broken library.
10886
 
          no_undefined_flag=' ${wl}-bernotok'
10887
 
          allow_undefined_flag=' ${wl}-berok'
10888
 
          if test "$with_gnu_ld" = yes; then
10889
 
            # We only use this code for GNU lds that support --whole-archive.
10890
 
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10891
 
          else
10892
 
            # Exported symbols can be pulled into shared objects from archives
10893
 
            whole_archive_flag_spec='$convenience'
10894
 
          fi
10895
 
          archive_cmds_need_lc=yes
10896
 
          # This is similar to how AIX traditionally builds its shared libraries.
10897
 
          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'
10898
 
        fi
10899
 
      fi
10900
 
      ;;
10901
 
 
10902
 
    amigaos*)
10903
 
      case $host_cpu in
10904
 
      powerpc)
10905
 
            # see comment about AmigaOS4 .so support
10906
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10907
 
            archive_expsym_cmds=''
10908
 
        ;;
10909
 
      m68k)
10910
 
            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)'
10911
 
            hardcode_libdir_flag_spec='-L$libdir'
10912
 
            hardcode_minus_L=yes
10913
 
        ;;
10914
 
      esac
10915
 
      ;;
10916
 
 
10917
 
    bsdi[45]*)
10918
 
      export_dynamic_flag_spec=-rdynamic
10919
 
      ;;
10920
 
 
10921
 
    cygwin* | mingw* | pw32* | cegcc*)
10922
 
      # When not using gcc, we currently assume that we are using
10923
 
      # Microsoft Visual C++.
10924
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
10925
 
      # no search path for DLLs.
10926
 
      case $cc_basename in
10927
 
      cl*)
10928
 
        # Native MSVC
10929
 
        hardcode_libdir_flag_spec=' '
10930
 
        allow_undefined_flag=unsupported
10931
 
        always_export_symbols=yes
10932
 
        file_list_spec='@'
10933
 
        # Tell ltmain to make .lib files, not .a files.
10934
 
        libext=lib
10935
 
        # Tell ltmain to make .dll files, not .so files.
10936
 
        shrext_cmds=".dll"
10937
 
        # FIXME: Setting linknames here is a bad hack.
10938
 
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10939
 
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10940
 
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10941
 
          else
10942
 
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10943
 
          fi~
10944
 
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10945
 
          linknames='
10946
 
        # The linker will not automatically build a static lib if we build a DLL.
10947
 
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10948
 
        enable_shared_with_static_runtimes=yes
10949
 
        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10950
 
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10951
 
        # Don't use ranlib
10952
 
        old_postinstall_cmds='chmod 644 $oldlib'
10953
 
        postlink_cmds='lt_outputfile="@OUTPUT@"~
10954
 
          lt_tool_outputfile="@TOOL_OUTPUT@"~
10955
 
          case $lt_outputfile in
10956
 
            *.exe|*.EXE) ;;
10957
 
            *)
10958
 
              lt_outputfile="$lt_outputfile.exe"
10959
 
              lt_tool_outputfile="$lt_tool_outputfile.exe"
10960
 
              ;;
10961
 
          esac~
10962
 
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10963
 
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10964
 
            $RM "$lt_outputfile.manifest";
10965
 
          fi'
10966
 
        ;;
10967
 
      *)
10968
 
        # Assume MSVC wrapper
10969
 
        hardcode_libdir_flag_spec=' '
10970
 
        allow_undefined_flag=unsupported
10971
 
        # Tell ltmain to make .lib files, not .a files.
10972
 
        libext=lib
10973
 
        # Tell ltmain to make .dll files, not .so files.
10974
 
        shrext_cmds=".dll"
10975
 
        # FIXME: Setting linknames here is a bad hack.
10976
 
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10977
 
        # The linker will automatically build a .lib file if we build a DLL.
10978
 
        old_archive_from_new_cmds='true'
10979
 
        # FIXME: Should let the user specify the lib program.
10980
 
        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10981
 
        enable_shared_with_static_runtimes=yes
10982
 
        ;;
10983
 
      esac
10984
 
      ;;
10985
 
 
10986
 
    darwin* | rhapsody*)
10987
 
 
10988
 
 
10989
 
  archive_cmds_need_lc=no
10990
 
  hardcode_direct=no
10991
 
  hardcode_automatic=yes
10992
 
  hardcode_shlibpath_var=unsupported
10993
 
  if test "$lt_cv_ld_force_load" = "yes"; then
10994
 
    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\"`'
10995
 
 
10996
 
  else
10997
 
    whole_archive_flag_spec=''
10998
 
  fi
10999
 
  link_all_deplibs=yes
11000
 
  allow_undefined_flag="$_lt_dar_allow_undefined"
11001
 
  case $cc_basename in
11002
 
     ifort*) _lt_dar_can_shared=yes ;;
11003
 
     *) _lt_dar_can_shared=$GCC ;;
11004
 
  esac
11005
 
  if test "$_lt_dar_can_shared" = "yes"; then
11006
 
    output_verbose_link_cmd=func_echo_all
11007
 
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11008
 
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11009
 
    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}"
11010
 
    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}"
11011
 
 
11012
 
  else
11013
 
  ld_shlibs=no
11014
 
  fi
11015
 
 
11016
 
      ;;
11017
 
 
11018
 
    dgux*)
11019
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11020
 
      hardcode_libdir_flag_spec='-L$libdir'
11021
 
      hardcode_shlibpath_var=no
11022
 
      ;;
11023
 
 
11024
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11025
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
11026
 
    # does not break anything, and helps significantly (at the cost of a little
11027
 
    # extra space).
11028
 
    freebsd2.2*)
11029
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11030
 
      hardcode_libdir_flag_spec='-R$libdir'
11031
 
      hardcode_direct=yes
11032
 
      hardcode_shlibpath_var=no
11033
 
      ;;
11034
 
 
11035
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11036
 
    freebsd2.*)
11037
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11038
 
      hardcode_direct=yes
11039
 
      hardcode_minus_L=yes
11040
 
      hardcode_shlibpath_var=no
11041
 
      ;;
11042
 
 
11043
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11044
 
    freebsd* | dragonfly*)
11045
 
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11046
 
      hardcode_libdir_flag_spec='-R$libdir'
11047
 
      hardcode_direct=yes
11048
 
      hardcode_shlibpath_var=no
11049
 
      ;;
11050
 
 
11051
 
    hpux9*)
11052
 
      if test "$GCC" = yes; then
11053
 
        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'
11054
 
      else
11055
 
        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'
11056
 
      fi
11057
 
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11058
 
      hardcode_libdir_separator=:
11059
 
      hardcode_direct=yes
11060
 
 
11061
 
      # hardcode_minus_L: Not really in the search PATH,
11062
 
      # but as the default location of the library.
11063
 
      hardcode_minus_L=yes
11064
 
      export_dynamic_flag_spec='${wl}-E'
11065
 
      ;;
11066
 
 
11067
 
    hpux10*)
11068
 
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11069
 
        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11070
 
      else
11071
 
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11072
 
      fi
11073
 
      if test "$with_gnu_ld" = no; then
11074
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11075
 
        hardcode_libdir_separator=:
11076
 
        hardcode_direct=yes
11077
 
        hardcode_direct_absolute=yes
11078
 
        export_dynamic_flag_spec='${wl}-E'
11079
 
        # hardcode_minus_L: Not really in the search PATH,
11080
 
        # but as the default location of the library.
11081
 
        hardcode_minus_L=yes
11082
 
      fi
11083
 
      ;;
11084
 
 
11085
 
    hpux11*)
11086
 
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11087
 
        case $host_cpu in
11088
 
        hppa*64*)
11089
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11090
 
          ;;
11091
 
        ia64*)
11092
 
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11093
 
          ;;
11094
 
        *)
11095
 
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11096
 
          ;;
11097
 
        esac
11098
 
      else
11099
 
        case $host_cpu in
11100
 
        hppa*64*)
11101
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11102
 
          ;;
11103
 
        ia64*)
11104
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11105
 
          ;;
11106
 
        *)
11107
 
 
11108
 
          # Older versions of the 11.00 compiler do not understand -b yet
11109
 
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11110
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11111
 
$as_echo_n "checking if $CC understands -b... " >&6; }
11112
 
if ${lt_cv_prog_compiler__b+:} false; then :
11113
 
  $as_echo_n "(cached) " >&6
11114
 
else
11115
 
  lt_cv_prog_compiler__b=no
11116
 
   save_LDFLAGS="$LDFLAGS"
11117
 
   LDFLAGS="$LDFLAGS -b"
11118
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11119
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11120
 
     # The linker can only warn and ignore the option if not recognized
11121
 
     # So say no if there are warnings
11122
 
     if test -s conftest.err; then
11123
 
       # Append any errors to the config.log.
11124
 
       cat conftest.err 1>&5
11125
 
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11126
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11127
 
       if diff conftest.exp conftest.er2 >/dev/null; then
11128
 
         lt_cv_prog_compiler__b=yes
11129
 
       fi
11130
 
     else
11131
 
       lt_cv_prog_compiler__b=yes
11132
 
     fi
11133
 
   fi
11134
 
   $RM -r conftest*
11135
 
   LDFLAGS="$save_LDFLAGS"
11136
 
 
11137
 
fi
11138
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11139
 
$as_echo "$lt_cv_prog_compiler__b" >&6; }
11140
 
 
11141
 
if test x"$lt_cv_prog_compiler__b" = xyes; then
11142
 
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11143
 
else
11144
 
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11145
 
fi
11146
 
 
11147
 
          ;;
11148
 
        esac
11149
 
      fi
11150
 
      if test "$with_gnu_ld" = no; then
11151
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11152
 
        hardcode_libdir_separator=:
11153
 
 
11154
 
        case $host_cpu in
11155
 
        hppa*64*|ia64*)
11156
 
          hardcode_direct=no
11157
 
          hardcode_shlibpath_var=no
11158
 
          ;;
11159
 
        *)
11160
 
          hardcode_direct=yes
11161
 
          hardcode_direct_absolute=yes
11162
 
          export_dynamic_flag_spec='${wl}-E'
11163
 
 
11164
 
          # hardcode_minus_L: Not really in the search PATH,
11165
 
          # but as the default location of the library.
11166
 
          hardcode_minus_L=yes
11167
 
          ;;
11168
 
        esac
11169
 
      fi
11170
 
      ;;
11171
 
 
11172
 
    irix5* | irix6* | nonstopux*)
11173
 
      if test "$GCC" = yes; then
11174
 
        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'
11175
 
        # Try to use the -exported_symbol ld option, if it does not
11176
 
        # work, assume that -exports_file does not work either and
11177
 
        # implicitly export all symbols.
11178
 
        # This should be the same for all languages, so no per-tag cache variable.
11179
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11180
 
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11181
 
if ${lt_cv_irix_exported_symbol+:} false; then :
11182
 
  $as_echo_n "(cached) " >&6
11183
 
else
11184
 
  save_LDFLAGS="$LDFLAGS"
11185
 
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11186
 
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11187
 
/* end confdefs.h.  */
11188
 
int foo (void) { return 0; }
11189
 
_ACEOF
11190
 
if ac_fn_c_try_link "$LINENO"; then :
11191
 
  lt_cv_irix_exported_symbol=yes
11192
 
else
11193
 
  lt_cv_irix_exported_symbol=no
11194
 
fi
11195
 
rm -f core conftest.err conftest.$ac_objext \
11196
 
    conftest$ac_exeext conftest.$ac_ext
11197
 
           LDFLAGS="$save_LDFLAGS"
11198
 
fi
11199
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11200
 
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11201
 
        if test "$lt_cv_irix_exported_symbol" = yes; then
11202
 
          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'
11203
 
        fi
11204
 
      else
11205
 
        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'
11206
 
        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'
11207
 
      fi
11208
 
      archive_cmds_need_lc='no'
11209
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11210
 
      hardcode_libdir_separator=:
11211
 
      inherit_rpath=yes
11212
 
      link_all_deplibs=yes
11213
 
      ;;
11214
 
 
11215
 
    netbsd*)
11216
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11217
 
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11218
 
      else
11219
 
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11220
 
      fi
11221
 
      hardcode_libdir_flag_spec='-R$libdir'
11222
 
      hardcode_direct=yes
11223
 
      hardcode_shlibpath_var=no
11224
 
      ;;
11225
 
 
11226
 
    newsos6)
11227
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11228
 
      hardcode_direct=yes
11229
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11230
 
      hardcode_libdir_separator=:
11231
 
      hardcode_shlibpath_var=no
11232
 
      ;;
11233
 
 
11234
 
    *nto* | *qnx*)
11235
 
      ;;
11236
 
 
11237
 
    openbsd*)
11238
 
      if test -f /usr/libexec/ld.so; then
11239
 
        hardcode_direct=yes
11240
 
        hardcode_shlibpath_var=no
11241
 
        hardcode_direct_absolute=yes
11242
 
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11243
 
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11244
 
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11245
 
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11246
 
          export_dynamic_flag_spec='${wl}-E'
11247
 
        else
11248
 
          case $host_os in
11249
 
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11250
 
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11251
 
             hardcode_libdir_flag_spec='-R$libdir'
11252
 
             ;;
11253
 
           *)
11254
 
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11255
 
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11256
 
             ;;
11257
 
          esac
11258
 
        fi
11259
 
      else
11260
 
        ld_shlibs=no
11261
 
      fi
11262
 
      ;;
11263
 
 
11264
 
    os2*)
11265
 
      hardcode_libdir_flag_spec='-L$libdir'
11266
 
      hardcode_minus_L=yes
11267
 
      allow_undefined_flag=unsupported
11268
 
      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'
11269
 
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11270
 
      ;;
11271
 
 
11272
 
    osf3*)
11273
 
      if test "$GCC" = yes; then
11274
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11275
 
        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'
11276
 
      else
11277
 
        allow_undefined_flag=' -expect_unresolved \*'
11278
 
        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'
11279
 
      fi
11280
 
      archive_cmds_need_lc='no'
11281
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11282
 
      hardcode_libdir_separator=:
11283
 
      ;;
11284
 
 
11285
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
11286
 
      if test "$GCC" = yes; then
11287
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11288
 
        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'
11289
 
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11290
 
      else
11291
 
        allow_undefined_flag=' -expect_unresolved \*'
11292
 
        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'
11293
 
        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~
11294
 
        $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'
11295
 
 
11296
 
        # Both c and cxx compiler support -rpath directly
11297
 
        hardcode_libdir_flag_spec='-rpath $libdir'
11298
 
      fi
11299
 
      archive_cmds_need_lc='no'
11300
 
      hardcode_libdir_separator=:
11301
 
      ;;
11302
 
 
11303
 
    solaris*)
11304
 
      no_undefined_flag=' -z defs'
11305
 
      if test "$GCC" = yes; then
11306
 
        wlarc='${wl}'
11307
 
        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11308
 
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11309
 
          $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'
11310
 
      else
11311
 
        case `$CC -V 2>&1` in
11312
 
        *"Compilers 5.0"*)
11313
 
          wlarc=''
11314
 
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11315
 
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11316
 
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11317
 
          ;;
11318
 
        *)
11319
 
          wlarc='${wl}'
11320
 
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11321
 
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11322
 
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11323
 
          ;;
11324
 
        esac
11325
 
      fi
11326
 
      hardcode_libdir_flag_spec='-R$libdir'
11327
 
      hardcode_shlibpath_var=no
11328
 
      case $host_os in
11329
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
11330
 
      *)
11331
 
        # The compiler driver will combine and reorder linker options,
11332
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
11333
 
        # but is careful enough not to reorder.
11334
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
11335
 
        if test "$GCC" = yes; then
11336
 
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11337
 
        else
11338
 
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11339
 
        fi
11340
 
        ;;
11341
 
      esac
11342
 
      link_all_deplibs=yes
11343
 
      ;;
11344
 
 
11345
 
    sunos4*)
11346
 
      if test "x$host_vendor" = xsequent; then
11347
 
        # Use $CC to link under sequent, because it throws in some extra .o
11348
 
        # files that make .init and .fini sections work.
11349
 
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11350
 
      else
11351
 
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11352
 
      fi
11353
 
      hardcode_libdir_flag_spec='-L$libdir'
11354
 
      hardcode_direct=yes
11355
 
      hardcode_minus_L=yes
11356
 
      hardcode_shlibpath_var=no
11357
 
      ;;
11358
 
 
11359
 
    sysv4)
11360
 
      case $host_vendor in
11361
 
        sni)
11362
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11363
 
          hardcode_direct=yes # is this really true???
11364
 
        ;;
11365
 
        siemens)
11366
 
          ## LD is ld it makes a PLAMLIB
11367
 
          ## CC just makes a GrossModule.
11368
 
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11369
 
          reload_cmds='$CC -r -o $output$reload_objs'
11370
 
          hardcode_direct=no
11371
 
        ;;
11372
 
        motorola)
11373
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11374
 
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11375
 
        ;;
11376
 
      esac
11377
 
      runpath_var='LD_RUN_PATH'
11378
 
      hardcode_shlibpath_var=no
11379
 
      ;;
11380
 
 
11381
 
    sysv4.3*)
11382
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11383
 
      hardcode_shlibpath_var=no
11384
 
      export_dynamic_flag_spec='-Bexport'
11385
 
      ;;
11386
 
 
11387
 
    sysv4*MP*)
11388
 
      if test -d /usr/nec; then
11389
 
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11390
 
        hardcode_shlibpath_var=no
11391
 
        runpath_var=LD_RUN_PATH
11392
 
        hardcode_runpath_var=yes
11393
 
        ld_shlibs=yes
11394
 
      fi
11395
 
      ;;
11396
 
 
11397
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11398
 
      no_undefined_flag='${wl}-z,text'
11399
 
      archive_cmds_need_lc=no
11400
 
      hardcode_shlibpath_var=no
11401
 
      runpath_var='LD_RUN_PATH'
11402
 
 
11403
 
      if test "$GCC" = yes; then
11404
 
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11405
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11406
 
      else
11407
 
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11408
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11409
 
      fi
11410
 
      ;;
11411
 
 
11412
 
    sysv5* | sco3.2v5* | sco5v6*)
11413
 
      # Note: We can NOT use -z defs as we might desire, because we do not
11414
 
      # link with -lc, and that would cause any symbols used from libc to
11415
 
      # always be unresolved, which means just about no library would
11416
 
      # ever link correctly.  If we're not using GNU ld we use -z text
11417
 
      # though, which does catch some bad symbols but isn't as heavy-handed
11418
 
      # as -z defs.
11419
 
      no_undefined_flag='${wl}-z,text'
11420
 
      allow_undefined_flag='${wl}-z,nodefs'
11421
 
      archive_cmds_need_lc=no
11422
 
      hardcode_shlibpath_var=no
11423
 
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
11424
 
      hardcode_libdir_separator=':'
11425
 
      link_all_deplibs=yes
11426
 
      export_dynamic_flag_spec='${wl}-Bexport'
11427
 
      runpath_var='LD_RUN_PATH'
11428
 
 
11429
 
      if test "$GCC" = yes; then
11430
 
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11431
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11432
 
      else
11433
 
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11434
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11435
 
      fi
11436
 
      ;;
11437
 
 
11438
 
    uts4*)
11439
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11440
 
      hardcode_libdir_flag_spec='-L$libdir'
11441
 
      hardcode_shlibpath_var=no
11442
 
      ;;
11443
 
 
11444
 
    *)
11445
 
      ld_shlibs=no
11446
 
      ;;
11447
 
    esac
11448
 
 
11449
 
    if test x$host_vendor = xsni; then
11450
 
      case $host in
11451
 
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11452
 
        export_dynamic_flag_spec='${wl}-Blargedynsym'
11453
 
        ;;
11454
 
      esac
11455
 
    fi
11456
 
  fi
11457
 
 
11458
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11459
 
$as_echo "$ld_shlibs" >&6; }
11460
 
test "$ld_shlibs" = no && can_build_shared=no
11461
 
 
11462
 
with_gnu_ld=$with_gnu_ld
11463
 
 
11464
 
 
11465
 
 
11466
 
 
11467
 
 
11468
 
 
11469
 
 
11470
 
 
11471
 
 
11472
 
 
11473
 
 
11474
 
 
11475
 
 
11476
 
 
11477
 
 
11478
 
#
11479
 
# Do we need to explicitly link libc?
11480
 
#
11481
 
case "x$archive_cmds_need_lc" in
11482
 
x|xyes)
11483
 
  # Assume -lc should be added
11484
 
  archive_cmds_need_lc=yes
11485
 
 
11486
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
11487
 
    case $archive_cmds in
11488
 
    *'~'*)
11489
 
      # FIXME: we may have to deal with multi-command sequences.
11490
 
      ;;
11491
 
    '$CC '*)
11492
 
      # Test whether the compiler implicitly links with -lc since on some
11493
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11494
 
      # to ld, don't add -lc before -lgcc.
11495
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11496
 
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11497
 
if ${lt_cv_archive_cmds_need_lc+:} false; then :
11498
 
  $as_echo_n "(cached) " >&6
11499
 
else
11500
 
  $RM conftest*
11501
 
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11502
 
 
11503
 
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11504
 
  (eval $ac_compile) 2>&5
11505
 
  ac_status=$?
11506
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11507
 
  test $ac_status = 0; } 2>conftest.err; then
11508
 
          soname=conftest
11509
 
          lib=conftest
11510
 
          libobjs=conftest.$ac_objext
11511
 
          deplibs=
11512
 
          wl=$lt_prog_compiler_wl
11513
 
          pic_flag=$lt_prog_compiler_pic
11514
 
          compiler_flags=-v
11515
 
          linker_flags=-v
11516
 
          verstring=
11517
 
          output_objdir=.
11518
 
          libname=conftest
11519
 
          lt_save_allow_undefined_flag=$allow_undefined_flag
11520
 
          allow_undefined_flag=
11521
 
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11522
 
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11523
 
  ac_status=$?
11524
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11525
 
  test $ac_status = 0; }
11526
 
          then
11527
 
            lt_cv_archive_cmds_need_lc=no
11528
 
          else
11529
 
            lt_cv_archive_cmds_need_lc=yes
11530
 
          fi
11531
 
          allow_undefined_flag=$lt_save_allow_undefined_flag
11532
 
        else
11533
 
          cat conftest.err 1>&5
11534
 
        fi
11535
 
        $RM conftest*
11536
 
 
11537
 
fi
11538
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11539
 
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11540
 
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11541
 
      ;;
11542
 
    esac
11543
 
  fi
11544
 
  ;;
11545
 
esac
11546
 
 
11547
 
 
11548
 
 
11549
 
 
11550
 
 
11551
 
 
11552
 
 
11553
 
 
11554
 
 
11555
 
 
11556
 
 
11557
 
 
11558
 
 
11559
 
 
11560
 
 
11561
 
 
11562
 
 
11563
 
 
11564
 
 
11565
 
 
11566
 
 
11567
 
 
11568
 
 
11569
 
 
11570
 
 
11571
 
 
11572
 
 
11573
 
 
11574
 
 
11575
 
 
11576
 
 
11577
 
 
11578
 
 
11579
 
 
11580
 
 
11581
 
 
11582
 
 
11583
 
 
11584
 
 
11585
 
 
11586
 
 
11587
 
 
11588
 
 
11589
 
 
11590
 
 
11591
 
 
11592
 
 
11593
 
 
11594
 
 
11595
 
 
11596
 
 
11597
 
 
11598
 
 
11599
 
 
11600
 
 
11601
 
 
11602
 
 
11603
 
 
11604
 
 
11605
 
 
11606
 
 
11607
 
 
11608
 
 
11609
 
 
11610
 
 
11611
 
 
11612
 
 
11613
 
 
11614
 
 
11615
 
 
11616
 
 
11617
 
 
11618
 
 
11619
 
 
11620
 
 
11621
 
 
11622
 
 
11623
 
 
11624
 
 
11625
 
 
11626
 
 
11627
 
 
11628
 
 
11629
 
 
11630
 
 
11631
 
 
11632
 
 
11633
 
 
11634
 
 
11635
 
 
11636
 
 
11637
 
 
11638
 
 
11639
 
 
11640
 
 
11641
 
 
11642
 
 
11643
 
 
11644
 
 
11645
 
 
11646
 
 
11647
 
 
11648
 
 
11649
 
 
11650
 
 
11651
 
 
11652
 
 
11653
 
 
11654
 
 
11655
 
 
11656
 
 
11657
 
 
11658
 
 
11659
 
 
11660
 
 
11661
 
 
11662
 
 
11663
 
 
11664
 
 
11665
 
 
11666
 
 
11667
 
 
11668
 
 
11669
 
 
11670
 
 
11671
 
 
11672
 
 
11673
 
 
11674
 
 
11675
 
 
11676
 
 
11677
 
 
11678
 
 
11679
 
 
11680
 
 
11681
 
 
11682
 
 
11683
 
 
11684
 
 
11685
 
 
11686
 
 
11687
 
 
11688
 
 
11689
 
 
11690
 
 
11691
 
 
11692
 
 
11693
 
 
11694
 
 
11695
 
 
11696
 
 
11697
 
 
11698
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11699
 
$as_echo_n "checking dynamic linker characteristics... " >&6; }
11700
 
 
11701
 
if test "$GCC" = yes; then
11702
 
  case $host_os in
11703
 
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11704
 
    *) lt_awk_arg="/^libraries:/" ;;
11705
 
  esac
11706
 
  case $host_os in
11707
 
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11708
 
    *) lt_sed_strip_eq="s,=/,/,g" ;;
11709
 
  esac
11710
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11711
 
  case $lt_search_path_spec in
11712
 
  *\;*)
11713
 
    # if the path contains ";" then we assume it to be the separator
11714
 
    # otherwise default to the standard path separator (i.e. ":") - it is
11715
 
    # assumed that no part of a normal pathname contains ";" but that should
11716
 
    # okay in the real world where ";" in dirpaths is itself problematic.
11717
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11718
 
    ;;
11719
 
  *)
11720
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11721
 
    ;;
11722
 
  esac
11723
 
  # Ok, now we have the path, separated by spaces, we can step through it
11724
 
  # and add multilib dir if necessary.
11725
 
  lt_tmp_lt_search_path_spec=
11726
 
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11727
 
  for lt_sys_path in $lt_search_path_spec; do
11728
 
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11729
 
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11730
 
    else
11731
 
      test -d "$lt_sys_path" && \
11732
 
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11733
 
    fi
11734
 
  done
11735
 
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11736
 
BEGIN {RS=" "; FS="/|\n";} {
11737
 
  lt_foo="";
11738
 
  lt_count=0;
11739
 
  for (lt_i = NF; lt_i > 0; lt_i--) {
11740
 
    if ($lt_i != "" && $lt_i != ".") {
11741
 
      if ($lt_i == "..") {
11742
 
        lt_count++;
11743
 
      } else {
11744
 
        if (lt_count == 0) {
11745
 
          lt_foo="/" $lt_i lt_foo;
11746
 
        } else {
11747
 
          lt_count--;
11748
 
        }
11749
 
      }
11750
 
    }
11751
 
  }
11752
 
  if (lt_foo != "") { lt_freq[lt_foo]++; }
11753
 
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11754
 
}'`
11755
 
  # AWK program above erroneously prepends '/' to C:/dos/paths
11756
 
  # for these hosts.
11757
 
  case $host_os in
11758
 
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11759
 
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11760
 
  esac
11761
 
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11762
 
else
11763
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11764
 
fi
11765
 
library_names_spec=
11766
 
libname_spec='lib$name'
11767
 
soname_spec=
11768
 
shrext_cmds=".so"
11769
 
postinstall_cmds=
11770
 
postuninstall_cmds=
11771
 
finish_cmds=
11772
 
finish_eval=
11773
 
shlibpath_var=
11774
 
shlibpath_overrides_runpath=unknown
11775
 
version_type=none
11776
 
dynamic_linker="$host_os ld.so"
11777
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11778
 
need_lib_prefix=unknown
11779
 
hardcode_into_libs=no
11780
 
 
11781
 
# when you set need_version to no, make sure it does not cause -set_version
11782
 
# flags to be left without arguments
11783
 
need_version=unknown
11784
 
 
11785
 
case $host_os in
11786
 
aix3*)
11787
 
  version_type=linux # correct to gnu/linux during the next big refactor
11788
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11789
 
  shlibpath_var=LIBPATH
11790
 
 
11791
 
  # AIX 3 has no versioning support, so we append a major version to the name.
11792
 
  soname_spec='${libname}${release}${shared_ext}$major'
11793
 
  ;;
11794
 
 
11795
 
aix[4-9]*)
11796
 
  version_type=linux # correct to gnu/linux during the next big refactor
11797
 
  need_lib_prefix=no
11798
 
  need_version=no
11799
 
  hardcode_into_libs=yes
11800
 
  if test "$host_cpu" = ia64; then
11801
 
    # AIX 5 supports IA64
11802
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11803
 
    shlibpath_var=LD_LIBRARY_PATH
11804
 
  else
11805
 
    # With GCC up to 2.95.x, collect2 would create an import file
11806
 
    # for dependence libraries.  The import file would start with
11807
 
    # the line `#! .'.  This would cause the generated library to
11808
 
    # depend on `.', always an invalid library.  This was fixed in
11809
 
    # development snapshots of GCC prior to 3.0.
11810
 
    case $host_os in
11811
 
      aix4 | aix4.[01] | aix4.[01].*)
11812
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11813
 
           echo ' yes '
11814
 
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11815
 
        :
11816
 
      else
11817
 
        can_build_shared=no
11818
 
      fi
11819
 
      ;;
11820
 
    esac
11821
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11822
 
    # soname into executable. Probably we can add versioning support to
11823
 
    # collect2, so additional links can be useful in future.
11824
 
    if test "$aix_use_runtimelinking" = yes; then
11825
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11826
 
      # instead of lib<name>.a to let people know that these are not
11827
 
      # typical AIX shared libraries.
11828
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11829
 
    else
11830
 
      # We preserve .a as extension for shared libraries through AIX4.2
11831
 
      # and later when we are not doing run time linking.
11832
 
      library_names_spec='${libname}${release}.a $libname.a'
11833
 
      soname_spec='${libname}${release}${shared_ext}$major'
11834
 
    fi
11835
 
    shlibpath_var=LIBPATH
11836
 
  fi
11837
 
  ;;
11838
 
 
11839
 
amigaos*)
11840
 
  case $host_cpu in
11841
 
  powerpc)
11842
 
    # Since July 2007 AmigaOS4 officially supports .so libraries.
11843
 
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11844
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11845
 
    ;;
11846
 
  m68k)
11847
 
    library_names_spec='$libname.ixlibrary $libname.a'
11848
 
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11849
 
    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'
11850
 
    ;;
11851
 
  esac
11852
 
  ;;
11853
 
 
11854
 
beos*)
11855
 
  library_names_spec='${libname}${shared_ext}'
11856
 
  dynamic_linker="$host_os ld.so"
11857
 
  shlibpath_var=LIBRARY_PATH
11858
 
  ;;
11859
 
 
11860
 
bsdi[45]*)
11861
 
  version_type=linux # correct to gnu/linux during the next big refactor
11862
 
  need_version=no
11863
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11864
 
  soname_spec='${libname}${release}${shared_ext}$major'
11865
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11866
 
  shlibpath_var=LD_LIBRARY_PATH
11867
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11868
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11869
 
  # the default ld.so.conf also contains /usr/contrib/lib and
11870
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11871
 
  # libtool to hard-code these into programs
11872
 
  ;;
11873
 
 
11874
 
cygwin* | mingw* | pw32* | cegcc*)
11875
 
  version_type=windows
11876
 
  shrext_cmds=".dll"
11877
 
  need_version=no
11878
 
  need_lib_prefix=no
11879
 
 
11880
 
  case $GCC,$cc_basename in
11881
 
  yes,*)
11882
 
    # gcc
11883
 
    library_names_spec='$libname.dll.a'
11884
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11885
 
    postinstall_cmds='base_file=`basename \${file}`~
11886
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11887
 
      dldir=$destdir/`dirname \$dlpath`~
11888
 
      test -d \$dldir || mkdir -p \$dldir~
11889
 
      $install_prog $dir/$dlname \$dldir/$dlname~
11890
 
      chmod a+x \$dldir/$dlname~
11891
 
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11892
 
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11893
 
      fi'
11894
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11895
 
      dlpath=$dir/\$dldll~
11896
 
       $RM \$dlpath'
11897
 
    shlibpath_overrides_runpath=yes
11898
 
 
11899
 
    case $host_os in
11900
 
    cygwin*)
11901
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11902
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11903
 
 
11904
 
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11905
 
      ;;
11906
 
    mingw* | cegcc*)
11907
 
      # MinGW DLLs use traditional 'lib' prefix
11908
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11909
 
      ;;
11910
 
    pw32*)
11911
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
11912
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11913
 
      ;;
11914
 
    esac
11915
 
    dynamic_linker='Win32 ld.exe'
11916
 
    ;;
11917
 
 
11918
 
  *,cl*)
11919
 
    # Native MSVC
11920
 
    libname_spec='$name'
11921
 
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11922
 
    library_names_spec='${libname}.dll.lib'
11923
 
 
11924
 
    case $build_os in
11925
 
    mingw*)
11926
 
      sys_lib_search_path_spec=
11927
 
      lt_save_ifs=$IFS
11928
 
      IFS=';'
11929
 
      for lt_path in $LIB
11930
 
      do
11931
 
        IFS=$lt_save_ifs
11932
 
        # Let DOS variable expansion print the short 8.3 style file name.
11933
 
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11934
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11935
 
      done
11936
 
      IFS=$lt_save_ifs
11937
 
      # Convert to MSYS style.
11938
 
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11939
 
      ;;
11940
 
    cygwin*)
11941
 
      # Convert to unix form, then to dos form, then back to unix form
11942
 
      # but this time dos style (no spaces!) so that the unix form looks
11943
 
      # like /cygdrive/c/PROGRA~1:/cygdr...
11944
 
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11945
 
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11946
 
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11947
 
      ;;
11948
 
    *)
11949
 
      sys_lib_search_path_spec="$LIB"
11950
 
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11951
 
        # It is most probably a Windows format PATH.
11952
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11953
 
      else
11954
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11955
 
      fi
11956
 
      # FIXME: find the short name or the path components, as spaces are
11957
 
      # common. (e.g. "Program Files" -> "PROGRA~1")
11958
 
      ;;
11959
 
    esac
11960
 
 
11961
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11962
 
    postinstall_cmds='base_file=`basename \${file}`~
11963
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11964
 
      dldir=$destdir/`dirname \$dlpath`~
11965
 
      test -d \$dldir || mkdir -p \$dldir~
11966
 
      $install_prog $dir/$dlname \$dldir/$dlname'
11967
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11968
 
      dlpath=$dir/\$dldll~
11969
 
       $RM \$dlpath'
11970
 
    shlibpath_overrides_runpath=yes
11971
 
    dynamic_linker='Win32 link.exe'
11972
 
    ;;
11973
 
 
11974
 
  *)
11975
 
    # Assume MSVC wrapper
11976
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11977
 
    dynamic_linker='Win32 ld.exe'
11978
 
    ;;
11979
 
  esac
11980
 
  # FIXME: first we should search . and the directory the executable is in
11981
 
  shlibpath_var=PATH
11982
 
  ;;
11983
 
 
11984
 
darwin* | rhapsody*)
11985
 
  dynamic_linker="$host_os dyld"
11986
 
  version_type=darwin
11987
 
  need_lib_prefix=no
11988
 
  need_version=no
11989
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11990
 
  soname_spec='${libname}${release}${major}$shared_ext'
11991
 
  shlibpath_overrides_runpath=yes
11992
 
  shlibpath_var=DYLD_LIBRARY_PATH
11993
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11994
 
 
11995
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11996
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11997
 
  ;;
11998
 
 
11999
 
dgux*)
12000
 
  version_type=linux # correct to gnu/linux during the next big refactor
12001
 
  need_lib_prefix=no
12002
 
  need_version=no
12003
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12004
 
  soname_spec='${libname}${release}${shared_ext}$major'
12005
 
  shlibpath_var=LD_LIBRARY_PATH
12006
 
  ;;
12007
 
 
12008
 
freebsd* | dragonfly*)
12009
 
  # DragonFly does not have aout.  When/if they implement a new
12010
 
  # versioning mechanism, adjust this.
12011
 
  if test -x /usr/bin/objformat; then
12012
 
    objformat=`/usr/bin/objformat`
12013
 
  else
12014
 
    case $host_os in
12015
 
    freebsd[23].*) objformat=aout ;;
12016
 
    *) objformat=elf ;;
12017
 
    esac
12018
 
  fi
12019
 
  version_type=freebsd-$objformat
12020
 
  case $version_type in
12021
 
    freebsd-elf*)
12022
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12023
 
      need_version=no
12024
 
      need_lib_prefix=no
12025
 
      ;;
12026
 
    freebsd-*)
12027
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12028
 
      need_version=yes
12029
 
      ;;
12030
 
  esac
12031
 
  shlibpath_var=LD_LIBRARY_PATH
12032
 
  case $host_os in
12033
 
  freebsd2.*)
12034
 
    shlibpath_overrides_runpath=yes
12035
 
    ;;
12036
 
  freebsd3.[01]* | freebsdelf3.[01]*)
12037
 
    shlibpath_overrides_runpath=yes
12038
 
    hardcode_into_libs=yes
12039
 
    ;;
12040
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12041
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12042
 
    shlibpath_overrides_runpath=no
12043
 
    hardcode_into_libs=yes
12044
 
    ;;
12045
 
  *) # from 4.6 on, and DragonFly
12046
 
    shlibpath_overrides_runpath=yes
12047
 
    hardcode_into_libs=yes
12048
 
    ;;
12049
 
  esac
12050
 
  ;;
12051
 
 
12052
 
gnu*)
12053
 
  version_type=linux # correct to gnu/linux during the next big refactor
12054
 
  need_lib_prefix=no
12055
 
  need_version=no
12056
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12057
 
  soname_spec='${libname}${release}${shared_ext}$major'
12058
 
  shlibpath_var=LD_LIBRARY_PATH
12059
 
  shlibpath_overrides_runpath=no
12060
 
  hardcode_into_libs=yes
12061
 
  ;;
12062
 
 
12063
 
haiku*)
12064
 
  version_type=linux # correct to gnu/linux during the next big refactor
12065
 
  need_lib_prefix=no
12066
 
  need_version=no
12067
 
  dynamic_linker="$host_os runtime_loader"
12068
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12069
 
  soname_spec='${libname}${release}${shared_ext}$major'
12070
 
  shlibpath_var=LIBRARY_PATH
12071
 
  shlibpath_overrides_runpath=yes
12072
 
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12073
 
  hardcode_into_libs=yes
12074
 
  ;;
12075
 
 
12076
 
hpux9* | hpux10* | hpux11*)
12077
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
12078
 
  # link against other versions.
12079
 
  version_type=sunos
12080
 
  need_lib_prefix=no
12081
 
  need_version=no
12082
 
  case $host_cpu in
12083
 
  ia64*)
12084
 
    shrext_cmds='.so'
12085
 
    hardcode_into_libs=yes
12086
 
    dynamic_linker="$host_os dld.so"
12087
 
    shlibpath_var=LD_LIBRARY_PATH
12088
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12089
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12090
 
    soname_spec='${libname}${release}${shared_ext}$major'
12091
 
    if test "X$HPUX_IA64_MODE" = X32; then
12092
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12093
 
    else
12094
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12095
 
    fi
12096
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12097
 
    ;;
12098
 
  hppa*64*)
12099
 
    shrext_cmds='.sl'
12100
 
    hardcode_into_libs=yes
12101
 
    dynamic_linker="$host_os dld.sl"
12102
 
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12103
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12104
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12105
 
    soname_spec='${libname}${release}${shared_ext}$major'
12106
 
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12107
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12108
 
    ;;
12109
 
  *)
12110
 
    shrext_cmds='.sl'
12111
 
    dynamic_linker="$host_os dld.sl"
12112
 
    shlibpath_var=SHLIB_PATH
12113
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12114
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12115
 
    soname_spec='${libname}${release}${shared_ext}$major'
12116
 
    ;;
12117
 
  esac
12118
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12119
 
  postinstall_cmds='chmod 555 $lib'
12120
 
  # or fails outright, so override atomically:
12121
 
  install_override_mode=555
12122
 
  ;;
12123
 
 
12124
 
interix[3-9]*)
12125
 
  version_type=linux # correct to gnu/linux during the next big refactor
12126
 
  need_lib_prefix=no
12127
 
  need_version=no
12128
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12129
 
  soname_spec='${libname}${release}${shared_ext}$major'
12130
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12131
 
  shlibpath_var=LD_LIBRARY_PATH
12132
 
  shlibpath_overrides_runpath=no
12133
 
  hardcode_into_libs=yes
12134
 
  ;;
12135
 
 
12136
 
irix5* | irix6* | nonstopux*)
12137
 
  case $host_os in
12138
 
    nonstopux*) version_type=nonstopux ;;
12139
 
    *)
12140
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
12141
 
                version_type=linux # correct to gnu/linux during the next big refactor
12142
 
        else
12143
 
                version_type=irix
12144
 
        fi ;;
12145
 
  esac
12146
 
  need_lib_prefix=no
12147
 
  need_version=no
12148
 
  soname_spec='${libname}${release}${shared_ext}$major'
12149
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12150
 
  case $host_os in
12151
 
  irix5* | nonstopux*)
12152
 
    libsuff= shlibsuff=
12153
 
    ;;
12154
 
  *)
12155
 
    case $LD in # libtool.m4 will add one of these switches to LD
12156
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12157
 
      libsuff= shlibsuff= libmagic=32-bit;;
12158
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12159
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
12160
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12161
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12162
 
    *) libsuff= shlibsuff= libmagic=never-match;;
12163
 
    esac
12164
 
    ;;
12165
 
  esac
12166
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12167
 
  shlibpath_overrides_runpath=no
12168
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12169
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12170
 
  hardcode_into_libs=yes
12171
 
  ;;
12172
 
 
12173
 
# No shared lib support for Linux oldld, aout, or coff.
12174
 
linux*oldld* | linux*aout* | linux*coff*)
12175
 
  dynamic_linker=no
12176
 
  ;;
12177
 
 
12178
 
# This must be glibc/ELF.
12179
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
12180
 
  version_type=linux # correct to gnu/linux during the next big refactor
12181
 
  need_lib_prefix=no
12182
 
  need_version=no
12183
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12184
 
  soname_spec='${libname}${release}${shared_ext}$major'
12185
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12186
 
  shlibpath_var=LD_LIBRARY_PATH
12187
 
  shlibpath_overrides_runpath=no
12188
 
 
12189
 
  # Some binutils ld are patched to set DT_RUNPATH
12190
 
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12191
 
  $as_echo_n "(cached) " >&6
12192
 
else
12193
 
  lt_cv_shlibpath_overrides_runpath=no
12194
 
    save_LDFLAGS=$LDFLAGS
12195
 
    save_libdir=$libdir
12196
 
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12197
 
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12198
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12199
 
/* end confdefs.h.  */
12200
 
 
12201
 
int
12202
 
main ()
12203
 
{
12204
 
 
12205
 
  ;
12206
 
  return 0;
12207
 
}
12208
 
_ACEOF
12209
 
if ac_fn_c_try_link "$LINENO"; then :
12210
 
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12211
 
  lt_cv_shlibpath_overrides_runpath=yes
12212
 
fi
12213
 
fi
12214
 
rm -f core conftest.err conftest.$ac_objext \
12215
 
    conftest$ac_exeext conftest.$ac_ext
12216
 
    LDFLAGS=$save_LDFLAGS
12217
 
    libdir=$save_libdir
12218
 
 
12219
 
fi
12220
 
 
12221
 
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12222
 
 
12223
 
  # This implies no fast_install, which is unacceptable.
12224
 
  # Some rework will be needed to allow for fast_install
12225
 
  # before this can be enabled.
12226
 
  hardcode_into_libs=yes
12227
 
 
12228
 
  # Add ABI-specific directories to the system library path.
12229
 
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12230
 
 
12231
 
  # Append ld.so.conf contents to the search path
12232
 
  if test -f /etc/ld.so.conf; then
12233
 
    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' ' '`
12234
 
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12235
 
 
12236
 
  fi
12237
 
 
12238
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
12239
 
  # powerpc, because MkLinux only supported shared libraries with the
12240
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
12241
 
  # most powerpc-linux boxes support dynamic linking these days and
12242
 
  # people can always --disable-shared, the test was removed, and we
12243
 
  # assume the GNU/Linux dynamic linker is in use.
12244
 
  dynamic_linker='GNU/Linux ld.so'
12245
 
  ;;
12246
 
 
12247
 
netbsd*)
12248
 
  version_type=sunos
12249
 
  need_lib_prefix=no
12250
 
  need_version=no
12251
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12252
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12253
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12254
 
    dynamic_linker='NetBSD (a.out) ld.so'
12255
 
  else
12256
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12257
 
    soname_spec='${libname}${release}${shared_ext}$major'
12258
 
    dynamic_linker='NetBSD ld.elf_so'
12259
 
  fi
12260
 
  shlibpath_var=LD_LIBRARY_PATH
12261
 
  shlibpath_overrides_runpath=yes
12262
 
  hardcode_into_libs=yes
12263
 
  ;;
12264
 
 
12265
 
newsos6)
12266
 
  version_type=linux # correct to gnu/linux during the next big refactor
12267
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12268
 
  shlibpath_var=LD_LIBRARY_PATH
12269
 
  shlibpath_overrides_runpath=yes
12270
 
  ;;
12271
 
 
12272
 
*nto* | *qnx*)
12273
 
  version_type=qnx
12274
 
  need_lib_prefix=no
12275
 
  need_version=no
12276
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12277
 
  soname_spec='${libname}${release}${shared_ext}$major'
12278
 
  shlibpath_var=LD_LIBRARY_PATH
12279
 
  shlibpath_overrides_runpath=no
12280
 
  hardcode_into_libs=yes
12281
 
  dynamic_linker='ldqnx.so'
12282
 
  ;;
12283
 
 
12284
 
openbsd*)
12285
 
  version_type=sunos
12286
 
  sys_lib_dlsearch_path_spec="/usr/lib"
12287
 
  need_lib_prefix=no
12288
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12289
 
  case $host_os in
12290
 
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12291
 
    *)                          need_version=no  ;;
12292
 
  esac
12293
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12294
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12295
 
  shlibpath_var=LD_LIBRARY_PATH
12296
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12297
 
    case $host_os in
12298
 
      openbsd2.[89] | openbsd2.[89].*)
12299
 
        shlibpath_overrides_runpath=no
12300
 
        ;;
12301
 
      *)
12302
 
        shlibpath_overrides_runpath=yes
12303
 
        ;;
12304
 
      esac
12305
 
  else
12306
 
    shlibpath_overrides_runpath=yes
12307
 
  fi
12308
 
  ;;
12309
 
 
12310
 
os2*)
12311
 
  libname_spec='$name'
12312
 
  shrext_cmds=".dll"
12313
 
  need_lib_prefix=no
12314
 
  library_names_spec='$libname${shared_ext} $libname.a'
12315
 
  dynamic_linker='OS/2 ld.exe'
12316
 
  shlibpath_var=LIBPATH
12317
 
  ;;
12318
 
 
12319
 
osf3* | osf4* | osf5*)
12320
 
  version_type=osf
12321
 
  need_lib_prefix=no
12322
 
  need_version=no
12323
 
  soname_spec='${libname}${release}${shared_ext}$major'
12324
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12325
 
  shlibpath_var=LD_LIBRARY_PATH
12326
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12327
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12328
 
  ;;
12329
 
 
12330
 
rdos*)
12331
 
  dynamic_linker=no
12332
 
  ;;
12333
 
 
12334
 
solaris*)
12335
 
  version_type=linux # correct to gnu/linux during the next big refactor
12336
 
  need_lib_prefix=no
12337
 
  need_version=no
12338
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12339
 
  soname_spec='${libname}${release}${shared_ext}$major'
12340
 
  shlibpath_var=LD_LIBRARY_PATH
12341
 
  shlibpath_overrides_runpath=yes
12342
 
  hardcode_into_libs=yes
12343
 
  # ldd complains unless libraries are executable
12344
 
  postinstall_cmds='chmod +x $lib'
12345
 
  ;;
12346
 
 
12347
 
sunos4*)
12348
 
  version_type=sunos
12349
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12350
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12351
 
  shlibpath_var=LD_LIBRARY_PATH
12352
 
  shlibpath_overrides_runpath=yes
12353
 
  if test "$with_gnu_ld" = yes; then
12354
 
    need_lib_prefix=no
12355
 
  fi
12356
 
  need_version=yes
12357
 
  ;;
12358
 
 
12359
 
sysv4 | sysv4.3*)
12360
 
  version_type=linux # correct to gnu/linux during the next big refactor
12361
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12362
 
  soname_spec='${libname}${release}${shared_ext}$major'
12363
 
  shlibpath_var=LD_LIBRARY_PATH
12364
 
  case $host_vendor in
12365
 
    sni)
12366
 
      shlibpath_overrides_runpath=no
12367
 
      need_lib_prefix=no
12368
 
      runpath_var=LD_RUN_PATH
12369
 
      ;;
12370
 
    siemens)
12371
 
      need_lib_prefix=no
12372
 
      ;;
12373
 
    motorola)
12374
 
      need_lib_prefix=no
12375
 
      need_version=no
12376
 
      shlibpath_overrides_runpath=no
12377
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12378
 
      ;;
12379
 
  esac
12380
 
  ;;
12381
 
 
12382
 
sysv4*MP*)
12383
 
  if test -d /usr/nec ;then
12384
 
    version_type=linux # correct to gnu/linux during the next big refactor
12385
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12386
 
    soname_spec='$libname${shared_ext}.$major'
12387
 
    shlibpath_var=LD_LIBRARY_PATH
12388
 
  fi
12389
 
  ;;
12390
 
 
12391
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12392
 
  version_type=freebsd-elf
12393
 
  need_lib_prefix=no
12394
 
  need_version=no
12395
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12396
 
  soname_spec='${libname}${release}${shared_ext}$major'
12397
 
  shlibpath_var=LD_LIBRARY_PATH
12398
 
  shlibpath_overrides_runpath=yes
12399
 
  hardcode_into_libs=yes
12400
 
  if test "$with_gnu_ld" = yes; then
12401
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12402
 
  else
12403
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12404
 
    case $host_os in
12405
 
      sco3.2v5*)
12406
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12407
 
        ;;
12408
 
    esac
12409
 
  fi
12410
 
  sys_lib_dlsearch_path_spec='/usr/lib'
12411
 
  ;;
12412
 
 
12413
 
tpf*)
12414
 
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12415
 
  version_type=linux # correct to gnu/linux during the next big refactor
12416
 
  need_lib_prefix=no
12417
 
  need_version=no
12418
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12419
 
  shlibpath_var=LD_LIBRARY_PATH
12420
 
  shlibpath_overrides_runpath=no
12421
 
  hardcode_into_libs=yes
12422
 
  ;;
12423
 
 
12424
 
uts4*)
12425
 
  version_type=linux # correct to gnu/linux during the next big refactor
12426
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12427
 
  soname_spec='${libname}${release}${shared_ext}$major'
12428
 
  shlibpath_var=LD_LIBRARY_PATH
12429
 
  ;;
12430
 
 
12431
 
*)
12432
 
  dynamic_linker=no
12433
 
  ;;
12434
 
esac
12435
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12436
 
$as_echo "$dynamic_linker" >&6; }
12437
 
test "$dynamic_linker" = no && can_build_shared=no
12438
 
 
12439
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12440
 
if test "$GCC" = yes; then
12441
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12442
 
fi
12443
 
 
12444
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12445
 
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12446
 
fi
12447
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12448
 
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12449
 
fi
12450
 
 
12451
 
 
12452
 
 
12453
 
 
12454
 
 
12455
 
 
12456
 
 
12457
 
 
12458
 
 
12459
 
 
12460
 
 
12461
 
 
12462
 
 
12463
 
 
12464
 
 
12465
 
 
12466
 
 
12467
 
 
12468
 
 
12469
 
 
12470
 
 
12471
 
 
12472
 
 
12473
 
 
12474
 
 
12475
 
 
12476
 
 
12477
 
 
12478
 
 
12479
 
 
12480
 
 
12481
 
 
12482
 
 
12483
 
 
12484
 
 
12485
 
 
12486
 
 
12487
 
 
12488
 
 
12489
 
 
12490
 
 
12491
 
 
12492
 
 
12493
 
 
12494
 
 
12495
 
 
12496
 
 
12497
 
 
12498
 
 
12499
 
 
12500
 
 
12501
 
 
12502
 
 
12503
 
 
12504
 
 
12505
 
 
12506
 
 
12507
 
 
12508
 
 
12509
 
 
12510
 
 
12511
 
 
12512
 
 
12513
 
 
12514
 
 
12515
 
 
12516
 
 
12517
 
 
12518
 
 
12519
 
 
12520
 
 
12521
 
 
12522
 
 
12523
 
 
12524
 
 
12525
 
 
12526
 
 
12527
 
 
12528
 
 
12529
 
 
12530
 
 
12531
 
 
12532
 
 
12533
 
 
12534
 
 
12535
 
 
12536
 
 
12537
 
 
12538
 
 
12539
 
 
12540
 
 
12541
 
 
12542
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12543
 
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12544
 
hardcode_action=
12545
 
if test -n "$hardcode_libdir_flag_spec" ||
12546
 
   test -n "$runpath_var" ||
12547
 
   test "X$hardcode_automatic" = "Xyes" ; then
12548
 
 
12549
 
  # We can hardcode non-existent directories.
12550
 
  if test "$hardcode_direct" != no &&
12551
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12552
 
     # have to relink, otherwise we might link with an installed library
12553
 
     # when we should be linking with a yet-to-be-installed one
12554
 
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12555
 
     test "$hardcode_minus_L" != no; then
12556
 
    # Linking always hardcodes the temporary library directory.
12557
 
    hardcode_action=relink
12558
 
  else
12559
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12560
 
    hardcode_action=immediate
12561
 
  fi
12562
 
else
12563
 
  # We cannot hardcode anything, or else we can only hardcode existing
12564
 
  # directories.
12565
 
  hardcode_action=unsupported
12566
 
fi
12567
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12568
 
$as_echo "$hardcode_action" >&6; }
12569
 
 
12570
 
if test "$hardcode_action" = relink ||
12571
 
   test "$inherit_rpath" = yes; then
12572
 
  # Fast installation is not supported
12573
 
  enable_fast_install=no
12574
 
elif test "$shlibpath_overrides_runpath" = yes ||
12575
 
     test "$enable_shared" = no; then
12576
 
  # Fast installation is not necessary
12577
 
  enable_fast_install=needless
12578
 
fi
12579
 
 
12580
 
 
12581
 
 
12582
 
 
12583
 
 
12584
 
 
12585
 
  if test "x$enable_dlopen" != xyes; then
12586
 
  enable_dlopen=unknown
12587
 
  enable_dlopen_self=unknown
12588
 
  enable_dlopen_self_static=unknown
12589
 
else
12590
 
  lt_cv_dlopen=no
12591
 
  lt_cv_dlopen_libs=
12592
 
 
12593
 
  case $host_os in
12594
 
  beos*)
12595
 
    lt_cv_dlopen="load_add_on"
12596
 
    lt_cv_dlopen_libs=
12597
 
    lt_cv_dlopen_self=yes
12598
 
    ;;
12599
 
 
12600
 
  mingw* | pw32* | cegcc*)
12601
 
    lt_cv_dlopen="LoadLibrary"
12602
 
    lt_cv_dlopen_libs=
12603
 
    ;;
12604
 
 
12605
 
  cygwin*)
12606
 
    lt_cv_dlopen="dlopen"
12607
 
    lt_cv_dlopen_libs=
12608
 
    ;;
12609
 
 
12610
 
  darwin*)
12611
 
  # if libdl is installed we need to link against it
12612
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12613
 
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12614
 
if ${ac_cv_lib_dl_dlopen+:} false; then :
12615
 
  $as_echo_n "(cached) " >&6
12616
 
else
12617
 
  ac_check_lib_save_LIBS=$LIBS
12618
 
LIBS="-ldl  $LIBS"
12619
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620
 
/* end confdefs.h.  */
12621
 
 
12622
 
/* Override any GCC internal prototype to avoid an error.
12623
 
   Use char because int might match the return type of a GCC
12624
 
   builtin and then its argument prototype would still apply.  */
12625
 
#ifdef __cplusplus
12626
 
extern "C"
12627
 
#endif
12628
 
char dlopen ();
12629
 
int
12630
 
main ()
12631
 
{
12632
 
return dlopen ();
12633
 
  ;
12634
 
  return 0;
12635
 
}
12636
 
_ACEOF
12637
 
if ac_fn_c_try_link "$LINENO"; then :
12638
 
  ac_cv_lib_dl_dlopen=yes
12639
 
else
12640
 
  ac_cv_lib_dl_dlopen=no
12641
 
fi
12642
 
rm -f core conftest.err conftest.$ac_objext \
12643
 
    conftest$ac_exeext conftest.$ac_ext
12644
 
LIBS=$ac_check_lib_save_LIBS
12645
 
fi
12646
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12647
 
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12648
 
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12649
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12650
 
else
12651
 
 
12652
 
    lt_cv_dlopen="dyld"
12653
 
    lt_cv_dlopen_libs=
12654
 
    lt_cv_dlopen_self=yes
12655
 
 
12656
 
fi
12657
 
 
12658
 
    ;;
12659
 
 
12660
 
  *)
12661
 
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12662
 
if test "x$ac_cv_func_shl_load" = xyes; then :
12663
 
  lt_cv_dlopen="shl_load"
12664
 
else
12665
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12666
 
$as_echo_n "checking for shl_load in -ldld... " >&6; }
12667
 
if ${ac_cv_lib_dld_shl_load+:} false; then :
12668
 
  $as_echo_n "(cached) " >&6
12669
 
else
12670
 
  ac_check_lib_save_LIBS=$LIBS
12671
 
LIBS="-ldld  $LIBS"
12672
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673
 
/* end confdefs.h.  */
12674
 
 
12675
 
/* Override any GCC internal prototype to avoid an error.
12676
 
   Use char because int might match the return type of a GCC
12677
 
   builtin and then its argument prototype would still apply.  */
12678
 
#ifdef __cplusplus
12679
 
extern "C"
12680
 
#endif
12681
 
char shl_load ();
12682
 
int
12683
 
main ()
12684
 
{
12685
 
return shl_load ();
12686
 
  ;
12687
 
  return 0;
12688
 
}
12689
 
_ACEOF
12690
 
if ac_fn_c_try_link "$LINENO"; then :
12691
 
  ac_cv_lib_dld_shl_load=yes
12692
 
else
12693
 
  ac_cv_lib_dld_shl_load=no
12694
 
fi
12695
 
rm -f core conftest.err conftest.$ac_objext \
12696
 
    conftest$ac_exeext conftest.$ac_ext
12697
 
LIBS=$ac_check_lib_save_LIBS
12698
 
fi
12699
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12700
 
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12701
 
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12702
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12703
 
else
12704
 
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12705
 
if test "x$ac_cv_func_dlopen" = xyes; then :
12706
 
  lt_cv_dlopen="dlopen"
12707
 
else
12708
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12709
 
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12710
 
if ${ac_cv_lib_dl_dlopen+:} false; then :
12711
 
  $as_echo_n "(cached) " >&6
12712
 
else
12713
 
  ac_check_lib_save_LIBS=$LIBS
12714
 
LIBS="-ldl  $LIBS"
12715
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12716
 
/* end confdefs.h.  */
12717
 
 
12718
 
/* Override any GCC internal prototype to avoid an error.
12719
 
   Use char because int might match the return type of a GCC
12720
 
   builtin and then its argument prototype would still apply.  */
12721
 
#ifdef __cplusplus
12722
 
extern "C"
12723
 
#endif
12724
 
char dlopen ();
12725
 
int
12726
 
main ()
12727
 
{
12728
 
return dlopen ();
12729
 
  ;
12730
 
  return 0;
12731
 
}
12732
 
_ACEOF
12733
 
if ac_fn_c_try_link "$LINENO"; then :
12734
 
  ac_cv_lib_dl_dlopen=yes
12735
 
else
12736
 
  ac_cv_lib_dl_dlopen=no
12737
 
fi
12738
 
rm -f core conftest.err conftest.$ac_objext \
12739
 
    conftest$ac_exeext conftest.$ac_ext
12740
 
LIBS=$ac_check_lib_save_LIBS
12741
 
fi
12742
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12743
 
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12744
 
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12745
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12746
 
else
12747
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12748
 
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12749
 
if ${ac_cv_lib_svld_dlopen+:} false; then :
12750
 
  $as_echo_n "(cached) " >&6
12751
 
else
12752
 
  ac_check_lib_save_LIBS=$LIBS
12753
 
LIBS="-lsvld  $LIBS"
12754
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755
 
/* end confdefs.h.  */
12756
 
 
12757
 
/* Override any GCC internal prototype to avoid an error.
12758
 
   Use char because int might match the return type of a GCC
12759
 
   builtin and then its argument prototype would still apply.  */
12760
 
#ifdef __cplusplus
12761
 
extern "C"
12762
 
#endif
12763
 
char dlopen ();
12764
 
int
12765
 
main ()
12766
 
{
12767
 
return dlopen ();
12768
 
  ;
12769
 
  return 0;
12770
 
}
12771
 
_ACEOF
12772
 
if ac_fn_c_try_link "$LINENO"; then :
12773
 
  ac_cv_lib_svld_dlopen=yes
12774
 
else
12775
 
  ac_cv_lib_svld_dlopen=no
12776
 
fi
12777
 
rm -f core conftest.err conftest.$ac_objext \
12778
 
    conftest$ac_exeext conftest.$ac_ext
12779
 
LIBS=$ac_check_lib_save_LIBS
12780
 
fi
12781
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12782
 
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12783
 
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12784
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12785
 
else
12786
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12787
 
$as_echo_n "checking for dld_link in -ldld... " >&6; }
12788
 
if ${ac_cv_lib_dld_dld_link+:} false; then :
12789
 
  $as_echo_n "(cached) " >&6
12790
 
else
12791
 
  ac_check_lib_save_LIBS=$LIBS
12792
 
LIBS="-ldld  $LIBS"
12793
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12794
 
/* end confdefs.h.  */
12795
 
 
12796
 
/* Override any GCC internal prototype to avoid an error.
12797
 
   Use char because int might match the return type of a GCC
12798
 
   builtin and then its argument prototype would still apply.  */
12799
 
#ifdef __cplusplus
12800
 
extern "C"
12801
 
#endif
12802
 
char dld_link ();
12803
 
int
12804
 
main ()
12805
 
{
12806
 
return dld_link ();
12807
 
  ;
12808
 
  return 0;
12809
 
}
12810
 
_ACEOF
12811
 
if ac_fn_c_try_link "$LINENO"; then :
12812
 
  ac_cv_lib_dld_dld_link=yes
12813
 
else
12814
 
  ac_cv_lib_dld_dld_link=no
12815
 
fi
12816
 
rm -f core conftest.err conftest.$ac_objext \
12817
 
    conftest$ac_exeext conftest.$ac_ext
12818
 
LIBS=$ac_check_lib_save_LIBS
12819
 
fi
12820
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12821
 
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12822
 
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12823
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12824
 
fi
12825
 
 
12826
 
 
12827
 
fi
12828
 
 
12829
 
 
12830
 
fi
12831
 
 
12832
 
 
12833
 
fi
12834
 
 
12835
 
 
12836
 
fi
12837
 
 
12838
 
 
12839
 
fi
12840
 
 
12841
 
    ;;
12842
 
  esac
12843
 
 
12844
 
  if test "x$lt_cv_dlopen" != xno; then
12845
 
    enable_dlopen=yes
12846
 
  else
12847
 
    enable_dlopen=no
12848
 
  fi
12849
 
 
12850
 
  case $lt_cv_dlopen in
12851
 
  dlopen)
12852
 
    save_CPPFLAGS="$CPPFLAGS"
12853
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12854
 
 
12855
 
    save_LDFLAGS="$LDFLAGS"
12856
 
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12857
 
 
12858
 
    save_LIBS="$LIBS"
12859
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
12860
 
 
12861
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12862
 
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12863
 
if ${lt_cv_dlopen_self+:} false; then :
12864
 
  $as_echo_n "(cached) " >&6
12865
 
else
12866
 
          if test "$cross_compiling" = yes; then :
12867
 
  lt_cv_dlopen_self=cross
12868
 
else
12869
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12870
 
  lt_status=$lt_dlunknown
12871
 
  cat > conftest.$ac_ext <<_LT_EOF
12872
 
#line $LINENO "configure"
12873
 
#include "confdefs.h"
12874
 
 
12875
 
#if HAVE_DLFCN_H
12876
 
#include <dlfcn.h>
12877
 
#endif
12878
 
 
12879
 
#include <stdio.h>
12880
 
 
12881
 
#ifdef RTLD_GLOBAL
12882
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
12883
 
#else
12884
 
#  ifdef DL_GLOBAL
12885
 
#    define LT_DLGLOBAL         DL_GLOBAL
12886
 
#  else
12887
 
#    define LT_DLGLOBAL         0
12888
 
#  endif
12889
 
#endif
12890
 
 
12891
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12892
 
   find out it does not work in some platform. */
12893
 
#ifndef LT_DLLAZY_OR_NOW
12894
 
#  ifdef RTLD_LAZY
12895
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12896
 
#  else
12897
 
#    ifdef DL_LAZY
12898
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12899
 
#    else
12900
 
#      ifdef RTLD_NOW
12901
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12902
 
#      else
12903
 
#        ifdef DL_NOW
12904
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
12905
 
#        else
12906
 
#          define LT_DLLAZY_OR_NOW      0
12907
 
#        endif
12908
 
#      endif
12909
 
#    endif
12910
 
#  endif
12911
 
#endif
12912
 
 
12913
 
/* When -fvisbility=hidden is used, assume the code has been annotated
12914
 
   correspondingly for the symbols needed.  */
12915
 
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12916
 
int fnord () __attribute__((visibility("default")));
12917
 
#endif
12918
 
 
12919
 
int fnord () { return 42; }
12920
 
int main ()
12921
 
{
12922
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12923
 
  int status = $lt_dlunknown;
12924
 
 
12925
 
  if (self)
12926
 
    {
12927
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12928
 
      else
12929
 
        {
12930
 
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12931
 
          else puts (dlerror ());
12932
 
        }
12933
 
      /* dlclose (self); */
12934
 
    }
12935
 
  else
12936
 
    puts (dlerror ());
12937
 
 
12938
 
  return status;
12939
 
}
12940
 
_LT_EOF
12941
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12942
 
  (eval $ac_link) 2>&5
12943
 
  ac_status=$?
12944
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12945
 
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12946
 
    (./conftest; exit; ) >&5 2>/dev/null
12947
 
    lt_status=$?
12948
 
    case x$lt_status in
12949
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12950
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12951
 
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12952
 
    esac
12953
 
  else :
12954
 
    # compilation failed
12955
 
    lt_cv_dlopen_self=no
12956
 
  fi
12957
 
fi
12958
 
rm -fr conftest*
12959
 
 
12960
 
 
12961
 
fi
12962
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12963
 
$as_echo "$lt_cv_dlopen_self" >&6; }
12964
 
 
12965
 
    if test "x$lt_cv_dlopen_self" = xyes; then
12966
 
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12967
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12968
 
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12969
 
if ${lt_cv_dlopen_self_static+:} false; then :
12970
 
  $as_echo_n "(cached) " >&6
12971
 
else
12972
 
          if test "$cross_compiling" = yes; then :
12973
 
  lt_cv_dlopen_self_static=cross
12974
 
else
12975
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12976
 
  lt_status=$lt_dlunknown
12977
 
  cat > conftest.$ac_ext <<_LT_EOF
12978
 
#line $LINENO "configure"
12979
 
#include "confdefs.h"
12980
 
 
12981
 
#if HAVE_DLFCN_H
12982
 
#include <dlfcn.h>
12983
 
#endif
12984
 
 
12985
 
#include <stdio.h>
12986
 
 
12987
 
#ifdef RTLD_GLOBAL
12988
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
12989
 
#else
12990
 
#  ifdef DL_GLOBAL
12991
 
#    define LT_DLGLOBAL         DL_GLOBAL
12992
 
#  else
12993
 
#    define LT_DLGLOBAL         0
12994
 
#  endif
12995
 
#endif
12996
 
 
12997
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12998
 
   find out it does not work in some platform. */
12999
 
#ifndef LT_DLLAZY_OR_NOW
13000
 
#  ifdef RTLD_LAZY
13001
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13002
 
#  else
13003
 
#    ifdef DL_LAZY
13004
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
13005
 
#    else
13006
 
#      ifdef RTLD_NOW
13007
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
13008
 
#      else
13009
 
#        ifdef DL_NOW
13010
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
13011
 
#        else
13012
 
#          define LT_DLLAZY_OR_NOW      0
13013
 
#        endif
13014
 
#      endif
13015
 
#    endif
13016
 
#  endif
13017
 
#endif
13018
 
 
13019
 
/* When -fvisbility=hidden is used, assume the code has been annotated
13020
 
   correspondingly for the symbols needed.  */
13021
 
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13022
 
int fnord () __attribute__((visibility("default")));
13023
 
#endif
13024
 
 
13025
 
int fnord () { return 42; }
13026
 
int main ()
13027
 
{
13028
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13029
 
  int status = $lt_dlunknown;
13030
 
 
13031
 
  if (self)
13032
 
    {
13033
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13034
 
      else
13035
 
        {
13036
 
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13037
 
          else puts (dlerror ());
13038
 
        }
13039
 
      /* dlclose (self); */
13040
 
    }
13041
 
  else
13042
 
    puts (dlerror ());
13043
 
 
13044
 
  return status;
13045
 
}
13046
 
_LT_EOF
13047
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13048
 
  (eval $ac_link) 2>&5
13049
 
  ac_status=$?
13050
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13051
 
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13052
 
    (./conftest; exit; ) >&5 2>/dev/null
13053
 
    lt_status=$?
13054
 
    case x$lt_status in
13055
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13056
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13057
 
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13058
 
    esac
13059
 
  else :
13060
 
    # compilation failed
13061
 
    lt_cv_dlopen_self_static=no
13062
 
  fi
13063
 
fi
13064
 
rm -fr conftest*
13065
 
 
13066
 
 
13067
 
fi
13068
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13069
 
$as_echo "$lt_cv_dlopen_self_static" >&6; }
13070
 
    fi
13071
 
 
13072
 
    CPPFLAGS="$save_CPPFLAGS"
13073
 
    LDFLAGS="$save_LDFLAGS"
13074
 
    LIBS="$save_LIBS"
13075
 
    ;;
13076
 
  esac
13077
 
 
13078
 
  case $lt_cv_dlopen_self in
13079
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13080
 
  *) enable_dlopen_self=unknown ;;
13081
 
  esac
13082
 
 
13083
 
  case $lt_cv_dlopen_self_static in
13084
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13085
 
  *) enable_dlopen_self_static=unknown ;;
13086
 
  esac
13087
 
fi
13088
 
 
13089
 
 
13090
 
 
13091
 
 
13092
 
 
13093
 
 
13094
 
 
13095
 
 
13096
 
 
13097
 
 
13098
 
 
13099
 
 
13100
 
 
13101
 
 
13102
 
 
13103
 
 
13104
 
 
13105
 
striplib=
13106
 
old_striplib=
13107
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13108
 
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13109
 
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13110
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13111
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13112
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13113
 
$as_echo "yes" >&6; }
13114
 
else
13115
 
# FIXME - insert some real tests, host_os isn't really good enough
13116
 
  case $host_os in
13117
 
  darwin*)
13118
 
    if test -n "$STRIP" ; then
13119
 
      striplib="$STRIP -x"
13120
 
      old_striplib="$STRIP -S"
13121
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13122
 
$as_echo "yes" >&6; }
13123
 
    else
13124
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13125
 
$as_echo "no" >&6; }
13126
 
    fi
13127
 
    ;;
13128
 
  *)
13129
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13130
 
$as_echo "no" >&6; }
13131
 
    ;;
13132
 
  esac
13133
 
fi
13134
 
 
13135
 
 
13136
 
 
13137
 
 
13138
 
 
13139
 
 
13140
 
 
13141
 
 
13142
 
 
13143
 
 
13144
 
 
13145
 
 
13146
 
  # Report which library types will actually be built
13147
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13148
 
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13149
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13150
 
$as_echo "$can_build_shared" >&6; }
13151
 
 
13152
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13153
 
$as_echo_n "checking whether to build shared libraries... " >&6; }
13154
 
  test "$can_build_shared" = "no" && enable_shared=no
13155
 
 
13156
 
  # On AIX, shared libraries and static libraries use the same namespace, and
13157
 
  # are all built from PIC.
13158
 
  case $host_os in
13159
 
  aix3*)
13160
 
    test "$enable_shared" = yes && enable_static=no
13161
 
    if test -n "$RANLIB"; then
13162
 
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13163
 
      postinstall_cmds='$RANLIB $lib'
13164
 
    fi
13165
 
    ;;
13166
 
 
13167
 
  aix[4-9]*)
13168
 
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13169
 
      test "$enable_shared" = yes && enable_static=no
13170
 
    fi
13171
 
    ;;
13172
 
  esac
13173
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13174
 
$as_echo "$enable_shared" >&6; }
13175
 
 
13176
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13177
 
$as_echo_n "checking whether to build static libraries... " >&6; }
13178
 
  # Make sure either enable_shared or enable_static is yes.
13179
 
  test "$enable_shared" = yes || enable_static=yes
13180
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13181
 
$as_echo "$enable_static" >&6; }
13182
 
 
13183
 
 
13184
 
 
13185
 
 
13186
 
fi
13187
 
ac_ext=c
13188
 
ac_cpp='$CPP $CPPFLAGS'
13189
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13190
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13191
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13192
 
 
13193
 
CC="$lt_save_CC"
13194
 
 
13195
 
      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13196
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13197
 
    (test "X$CXX" != "Xg++"))) ; then
13198
 
  ac_ext=cpp
13199
 
ac_cpp='$CXXCPP $CPPFLAGS'
13200
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13201
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13202
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13203
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13204
 
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13205
 
if test -z "$CXXCPP"; then
13206
 
  if ${ac_cv_prog_CXXCPP+:} false; then :
13207
 
  $as_echo_n "(cached) " >&6
13208
 
else
13209
 
      # Double quotes because CXXCPP needs to be expanded
13210
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
13211
 
    do
13212
 
      ac_preproc_ok=false
13213
 
for ac_cxx_preproc_warn_flag in '' yes
13214
 
do
13215
 
  # Use a header file that comes with gcc, so configuring glibc
13216
 
  # with a fresh cross-compiler works.
13217
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13218
 
  # <limits.h> exists even on freestanding compilers.
13219
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
13220
 
  # not just through cpp. "Syntax error" is here to catch this case.
13221
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13222
 
/* end confdefs.h.  */
13223
 
#ifdef __STDC__
13224
 
# include <limits.h>
13225
 
#else
13226
 
# include <assert.h>
13227
 
#endif
13228
 
                     Syntax error
13229
 
_ACEOF
13230
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
13231
 
 
13232
 
else
13233
 
  # Broken: fails on valid input.
13234
 
continue
13235
 
fi
13236
 
rm -f conftest.err conftest.i conftest.$ac_ext
13237
 
 
13238
 
  # OK, works on sane cases.  Now check whether nonexistent headers
13239
 
  # can be detected and how.
13240
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13241
 
/* end confdefs.h.  */
13242
 
#include <ac_nonexistent.h>
13243
 
_ACEOF
13244
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
13245
 
  # Broken: success on invalid input.
13246
 
continue
13247
 
else
13248
 
  # Passes both tests.
13249
 
ac_preproc_ok=:
13250
 
break
13251
 
fi
13252
 
rm -f conftest.err conftest.i conftest.$ac_ext
13253
 
 
13254
 
done
13255
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13256
 
rm -f conftest.i conftest.err conftest.$ac_ext
13257
 
if $ac_preproc_ok; then :
13258
 
  break
13259
 
fi
13260
 
 
13261
 
    done
13262
 
    ac_cv_prog_CXXCPP=$CXXCPP
13263
 
 
13264
 
fi
13265
 
  CXXCPP=$ac_cv_prog_CXXCPP
13266
 
else
13267
 
  ac_cv_prog_CXXCPP=$CXXCPP
13268
 
fi
13269
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13270
 
$as_echo "$CXXCPP" >&6; }
13271
 
ac_preproc_ok=false
13272
 
for ac_cxx_preproc_warn_flag in '' yes
13273
 
do
13274
 
  # Use a header file that comes with gcc, so configuring glibc
13275
 
  # with a fresh cross-compiler works.
13276
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13277
 
  # <limits.h> exists even on freestanding compilers.
13278
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
13279
 
  # not just through cpp. "Syntax error" is here to catch this case.
13280
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13281
 
/* end confdefs.h.  */
13282
 
#ifdef __STDC__
13283
 
# include <limits.h>
13284
 
#else
13285
 
# include <assert.h>
13286
 
#endif
13287
 
                     Syntax error
13288
 
_ACEOF
13289
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
13290
 
 
13291
 
else
13292
 
  # Broken: fails on valid input.
13293
 
continue
13294
 
fi
13295
 
rm -f conftest.err conftest.i conftest.$ac_ext
13296
 
 
13297
 
  # OK, works on sane cases.  Now check whether nonexistent headers
13298
 
  # can be detected and how.
13299
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13300
 
/* end confdefs.h.  */
13301
 
#include <ac_nonexistent.h>
13302
 
_ACEOF
13303
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
13304
 
  # Broken: success on invalid input.
13305
 
continue
13306
 
else
13307
 
  # Passes both tests.
13308
 
ac_preproc_ok=:
13309
 
break
13310
 
fi
13311
 
rm -f conftest.err conftest.i conftest.$ac_ext
13312
 
 
13313
 
done
13314
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13315
 
rm -f conftest.i conftest.err conftest.$ac_ext
13316
 
if $ac_preproc_ok; then :
13317
 
 
13318
 
else
13319
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13320
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13321
 
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13322
 
See \`config.log' for more details" "$LINENO" 5; }
13323
 
fi
13324
 
 
13325
 
ac_ext=c
13326
 
ac_cpp='$CPP $CPPFLAGS'
13327
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13328
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13329
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13330
 
 
13331
 
else
13332
 
  _lt_caught_CXX_error=yes
13333
 
fi
13334
 
 
13335
 
ac_ext=cpp
13336
 
ac_cpp='$CXXCPP $CPPFLAGS'
13337
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13338
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13339
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13340
 
 
13341
 
archive_cmds_need_lc_CXX=no
13342
 
allow_undefined_flag_CXX=
13343
 
always_export_symbols_CXX=no
13344
 
archive_expsym_cmds_CXX=
13345
 
compiler_needs_object_CXX=no
13346
 
export_dynamic_flag_spec_CXX=
13347
 
hardcode_direct_CXX=no
13348
 
hardcode_direct_absolute_CXX=no
13349
 
hardcode_libdir_flag_spec_CXX=
13350
 
hardcode_libdir_separator_CXX=
13351
 
hardcode_minus_L_CXX=no
13352
 
hardcode_shlibpath_var_CXX=unsupported
13353
 
hardcode_automatic_CXX=no
13354
 
inherit_rpath_CXX=no
13355
 
module_cmds_CXX=
13356
 
module_expsym_cmds_CXX=
13357
 
link_all_deplibs_CXX=unknown
13358
 
old_archive_cmds_CXX=$old_archive_cmds
13359
 
reload_flag_CXX=$reload_flag
13360
 
reload_cmds_CXX=$reload_cmds
13361
 
no_undefined_flag_CXX=
13362
 
whole_archive_flag_spec_CXX=
13363
 
enable_shared_with_static_runtimes_CXX=no
13364
 
 
13365
 
# Source file extension for C++ test sources.
13366
 
ac_ext=cpp
13367
 
 
13368
 
# Object file extension for compiled C++ test sources.
13369
 
objext=o
13370
 
objext_CXX=$objext
13371
 
 
13372
 
# No sense in running all these tests if we already determined that
13373
 
# the CXX compiler isn't working.  Some variables (like enable_shared)
13374
 
# are currently assumed to apply to all compilers on this platform,
13375
 
# and will be corrupted by setting them based on a non-working compiler.
13376
 
if test "$_lt_caught_CXX_error" != yes; then
13377
 
  # Code to be used in simple compile tests
13378
 
  lt_simple_compile_test_code="int some_variable = 0;"
13379
 
 
13380
 
  # Code to be used in simple link tests
13381
 
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13382
 
 
13383
 
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13384
 
 
13385
 
 
13386
 
 
13387
 
 
13388
 
 
13389
 
 
13390
 
# If no C compiler was specified, use CC.
13391
 
LTCC=${LTCC-"$CC"}
13392
 
 
13393
 
# If no C compiler flags were specified, use CFLAGS.
13394
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13395
 
 
13396
 
# Allow CC to be a program name with arguments.
13397
 
compiler=$CC
13398
 
 
13399
 
 
13400
 
  # save warnings/boilerplate of simple test code
13401
 
  ac_outfile=conftest.$ac_objext
13402
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13403
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13404
 
_lt_compiler_boilerplate=`cat conftest.err`
13405
 
$RM conftest*
13406
 
 
13407
 
  ac_outfile=conftest.$ac_objext
13408
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
13409
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13410
 
_lt_linker_boilerplate=`cat conftest.err`
13411
 
$RM -r conftest*
13412
 
 
13413
 
 
13414
 
  # Allow CC to be a program name with arguments.
13415
 
  lt_save_CC=$CC
13416
 
  lt_save_CFLAGS=$CFLAGS
13417
 
  lt_save_LD=$LD
13418
 
  lt_save_GCC=$GCC
13419
 
  GCC=$GXX
13420
 
  lt_save_with_gnu_ld=$with_gnu_ld
13421
 
  lt_save_path_LD=$lt_cv_path_LD
13422
 
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13423
 
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13424
 
  else
13425
 
    $as_unset lt_cv_prog_gnu_ld
13426
 
  fi
13427
 
  if test -n "${lt_cv_path_LDCXX+set}"; then
13428
 
    lt_cv_path_LD=$lt_cv_path_LDCXX
13429
 
  else
13430
 
    $as_unset lt_cv_path_LD
13431
 
  fi
13432
 
  test -z "${LDCXX+set}" || LD=$LDCXX
13433
 
  CC=${CXX-"c++"}
13434
 
  CFLAGS=$CXXFLAGS
13435
 
  compiler=$CC
13436
 
  compiler_CXX=$CC
13437
 
  for cc_temp in $compiler""; do
13438
 
  case $cc_temp in
13439
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13440
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13441
 
    \-*) ;;
13442
 
    *) break;;
13443
 
  esac
13444
 
done
13445
 
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13446
 
 
13447
 
 
13448
 
  if test -n "$compiler"; then
13449
 
    # We don't want -fno-exception when compiling C++ code, so set the
13450
 
    # no_builtin_flag separately
13451
 
    if test "$GXX" = yes; then
13452
 
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13453
 
    else
13454
 
      lt_prog_compiler_no_builtin_flag_CXX=
13455
 
    fi
13456
 
 
13457
 
    if test "$GXX" = yes; then
13458
 
      # Set up default GNU C++ configuration
13459
 
 
13460
 
 
13461
 
 
13462
 
# Check whether --with-gnu-ld was given.
13463
 
if test "${with_gnu_ld+set}" = set; then :
13464
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13465
 
else
13466
 
  with_gnu_ld=no
13467
 
fi
13468
 
 
13469
 
ac_prog=ld
13470
 
if test "$GCC" = yes; then
13471
 
  # Check if gcc -print-prog-name=ld gives a path.
13472
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13473
 
$as_echo_n "checking for ld used by $CC... " >&6; }
13474
 
  case $host in
13475
 
  *-*-mingw*)
13476
 
    # gcc leaves a trailing carriage return which upsets mingw
13477
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13478
 
  *)
13479
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13480
 
  esac
13481
 
  case $ac_prog in
13482
 
    # Accept absolute paths.
13483
 
    [\\/]* | ?:[\\/]*)
13484
 
      re_direlt='/[^/][^/]*/\.\./'
13485
 
      # Canonicalize the pathname of ld
13486
 
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13487
 
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13488
 
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13489
 
      done
13490
 
      test -z "$LD" && LD="$ac_prog"
13491
 
      ;;
13492
 
  "")
13493
 
    # If it fails, then pretend we aren't using GCC.
13494
 
    ac_prog=ld
13495
 
    ;;
13496
 
  *)
13497
 
    # If it is relative, then search for the first ld in PATH.
13498
 
    with_gnu_ld=unknown
13499
 
    ;;
13500
 
  esac
13501
 
elif test "$with_gnu_ld" = yes; then
13502
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13503
 
$as_echo_n "checking for GNU ld... " >&6; }
13504
 
else
13505
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13506
 
$as_echo_n "checking for non-GNU ld... " >&6; }
13507
 
fi
13508
 
if ${lt_cv_path_LD+:} false; then :
13509
 
  $as_echo_n "(cached) " >&6
13510
 
else
13511
 
  if test -z "$LD"; then
13512
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13513
 
  for ac_dir in $PATH; do
13514
 
    IFS="$lt_save_ifs"
13515
 
    test -z "$ac_dir" && ac_dir=.
13516
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13517
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
13518
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
13519
 
      # but apparently some variants of GNU ld only accept -v.
13520
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
13521
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13522
 
      *GNU* | *'with BFD'*)
13523
 
        test "$with_gnu_ld" != no && break
13524
 
        ;;
13525
 
      *)
13526
 
        test "$with_gnu_ld" != yes && break
13527
 
        ;;
13528
 
      esac
13529
 
    fi
13530
 
  done
13531
 
  IFS="$lt_save_ifs"
13532
 
else
13533
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
13534
 
fi
13535
 
fi
13536
 
 
13537
 
LD="$lt_cv_path_LD"
13538
 
if test -n "$LD"; then
13539
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13540
 
$as_echo "$LD" >&6; }
13541
 
else
13542
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13543
 
$as_echo "no" >&6; }
13544
 
fi
13545
 
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13546
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13547
 
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13548
 
if ${lt_cv_prog_gnu_ld+:} false; then :
13549
 
  $as_echo_n "(cached) " >&6
13550
 
else
13551
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13552
 
case `$LD -v 2>&1 </dev/null` in
13553
 
*GNU* | *'with BFD'*)
13554
 
  lt_cv_prog_gnu_ld=yes
13555
 
  ;;
13556
 
*)
13557
 
  lt_cv_prog_gnu_ld=no
13558
 
  ;;
13559
 
esac
13560
 
fi
13561
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13562
 
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13563
 
with_gnu_ld=$lt_cv_prog_gnu_ld
13564
 
 
13565
 
 
13566
 
 
13567
 
 
13568
 
 
13569
 
 
13570
 
 
13571
 
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13572
 
      # archiving commands below assume that GNU ld is being used.
13573
 
      if test "$with_gnu_ld" = yes; then
13574
 
        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13575
 
        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13576
 
 
13577
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13578
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13579
 
 
13580
 
        # If archive_cmds runs LD, not CC, wlarc should be empty
13581
 
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13582
 
        #     investigate it a little bit more. (MM)
13583
 
        wlarc='${wl}'
13584
 
 
13585
 
        # ancient GNU ld didn't support --whole-archive et. al.
13586
 
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13587
 
          $GREP 'no-whole-archive' > /dev/null; then
13588
 
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13589
 
        else
13590
 
          whole_archive_flag_spec_CXX=
13591
 
        fi
13592
 
      else
13593
 
        with_gnu_ld=no
13594
 
        wlarc=
13595
 
 
13596
 
        # A generic and very simple default shared library creation
13597
 
        # command for GNU C++ for the case where it uses the native
13598
 
        # linker, instead of GNU ld.  If possible, this setting should
13599
 
        # overridden to take advantage of the native linker features on
13600
 
        # the platform it is being used on.
13601
 
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13602
 
      fi
13603
 
 
13604
 
      # Commands to make compiler produce verbose output that lists
13605
 
      # what "hidden" libraries, object files and flags are used when
13606
 
      # linking a shared library.
13607
 
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13608
 
 
13609
 
    else
13610
 
      GXX=no
13611
 
      with_gnu_ld=no
13612
 
      wlarc=
13613
 
    fi
13614
 
 
13615
 
    # PORTME: fill in a description of your system's C++ link characteristics
13616
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13617
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13618
 
    ld_shlibs_CXX=yes
13619
 
    case $host_os in
13620
 
      aix3*)
13621
 
        # FIXME: insert proper C++ library support
13622
 
        ld_shlibs_CXX=no
13623
 
        ;;
13624
 
      aix[4-9]*)
13625
 
        if test "$host_cpu" = ia64; then
13626
 
          # On IA64, the linker does run time linking by default, so we don't
13627
 
          # have to do anything special.
13628
 
          aix_use_runtimelinking=no
13629
 
          exp_sym_flag='-Bexport'
13630
 
          no_entry_flag=""
13631
 
        else
13632
 
          aix_use_runtimelinking=no
13633
 
 
13634
 
          # Test if we are trying to use run time linking or normal
13635
 
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13636
 
          # need to do runtime linking.
13637
 
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13638
 
            for ld_flag in $LDFLAGS; do
13639
 
              case $ld_flag in
13640
 
              *-brtl*)
13641
 
                aix_use_runtimelinking=yes
13642
 
                break
13643
 
                ;;
13644
 
              esac
13645
 
            done
13646
 
            ;;
13647
 
          esac
13648
 
 
13649
 
          exp_sym_flag='-bexport'
13650
 
          no_entry_flag='-bnoentry'
13651
 
        fi
13652
 
 
13653
 
        # When large executables or shared objects are built, AIX ld can
13654
 
        # have problems creating the table of contents.  If linking a library
13655
 
        # or program results in "error TOC overflow" add -mminimal-toc to
13656
 
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13657
 
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13658
 
 
13659
 
        archive_cmds_CXX=''
13660
 
        hardcode_direct_CXX=yes
13661
 
        hardcode_direct_absolute_CXX=yes
13662
 
        hardcode_libdir_separator_CXX=':'
13663
 
        link_all_deplibs_CXX=yes
13664
 
        file_list_spec_CXX='${wl}-f,'
13665
 
 
13666
 
        if test "$GXX" = yes; then
13667
 
          case $host_os in aix4.[012]|aix4.[012].*)
13668
 
          # We only want to do this on AIX 4.2 and lower, the check
13669
 
          # below for broken collect2 doesn't work under 4.3+
13670
 
          collect2name=`${CC} -print-prog-name=collect2`
13671
 
          if test -f "$collect2name" &&
13672
 
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13673
 
          then
13674
 
            # We have reworked collect2
13675
 
            :
13676
 
          else
13677
 
            # We have old collect2
13678
 
            hardcode_direct_CXX=unsupported
13679
 
            # It fails to find uninstalled libraries when the uninstalled
13680
 
            # path is not listed in the libpath.  Setting hardcode_minus_L
13681
 
            # to unsupported forces relinking
13682
 
            hardcode_minus_L_CXX=yes
13683
 
            hardcode_libdir_flag_spec_CXX='-L$libdir'
13684
 
            hardcode_libdir_separator_CXX=
13685
 
          fi
13686
 
          esac
13687
 
          shared_flag='-shared'
13688
 
          if test "$aix_use_runtimelinking" = yes; then
13689
 
            shared_flag="$shared_flag "'${wl}-G'
13690
 
          fi
13691
 
        else
13692
 
          # not using gcc
13693
 
          if test "$host_cpu" = ia64; then
13694
 
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13695
 
          # chokes on -Wl,-G. The following line is correct:
13696
 
          shared_flag='-G'
13697
 
          else
13698
 
            if test "$aix_use_runtimelinking" = yes; then
13699
 
              shared_flag='${wl}-G'
13700
 
            else
13701
 
              shared_flag='${wl}-bM:SRE'
13702
 
            fi
13703
 
          fi
13704
 
        fi
13705
 
 
13706
 
        export_dynamic_flag_spec_CXX='${wl}-bexpall'
13707
 
        # It seems that -bexpall does not export symbols beginning with
13708
 
        # underscore (_), so it is better to generate a list of symbols to
13709
 
        # export.
13710
 
        always_export_symbols_CXX=yes
13711
 
        if test "$aix_use_runtimelinking" = yes; then
13712
 
          # Warning - without using the other runtime loading flags (-brtl),
13713
 
          # -berok will link without error, but may produce a broken library.
13714
 
          allow_undefined_flag_CXX='-berok'
13715
 
          # Determine the default libpath from the value encoded in an empty
13716
 
          # executable.
13717
 
          if test "${lt_cv_aix_libpath+set}" = set; then
13718
 
  aix_libpath=$lt_cv_aix_libpath
13719
 
else
13720
 
  if ${lt_cv_aix_libpath__CXX+:} false; then :
13721
 
  $as_echo_n "(cached) " >&6
13722
 
else
13723
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13724
 
/* end confdefs.h.  */
13725
 
 
13726
 
int
13727
 
main ()
13728
 
{
13729
 
 
13730
 
  ;
13731
 
  return 0;
13732
 
}
13733
 
_ACEOF
13734
 
if ac_fn_cxx_try_link "$LINENO"; then :
13735
 
 
13736
 
  lt_aix_libpath_sed='
13737
 
      /Import File Strings/,/^$/ {
13738
 
          /^0/ {
13739
 
              s/^0  *\([^ ]*\) *$/\1/
13740
 
              p
13741
 
          }
13742
 
      }'
13743
 
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13744
 
  # Check for a 64-bit object if we didn't find anything.
13745
 
  if test -z "$lt_cv_aix_libpath__CXX"; then
13746
 
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13747
 
  fi
13748
 
fi
13749
 
rm -f core conftest.err conftest.$ac_objext \
13750
 
    conftest$ac_exeext conftest.$ac_ext
13751
 
  if test -z "$lt_cv_aix_libpath__CXX"; then
13752
 
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13753
 
  fi
13754
 
 
13755
 
fi
13756
 
 
13757
 
  aix_libpath=$lt_cv_aix_libpath__CXX
13758
 
fi
13759
 
 
13760
 
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13761
 
 
13762
 
          archive_expsym_cmds_CXX='$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"
13763
 
        else
13764
 
          if test "$host_cpu" = ia64; then
13765
 
            hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13766
 
            allow_undefined_flag_CXX="-z nodefs"
13767
 
            archive_expsym_cmds_CXX="\$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"
13768
 
          else
13769
 
            # Determine the default libpath from the value encoded in an
13770
 
            # empty executable.
13771
 
            if test "${lt_cv_aix_libpath+set}" = set; then
13772
 
  aix_libpath=$lt_cv_aix_libpath
13773
 
else
13774
 
  if ${lt_cv_aix_libpath__CXX+:} false; then :
13775
 
  $as_echo_n "(cached) " >&6
13776
 
else
13777
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13778
 
/* end confdefs.h.  */
13779
 
 
13780
 
int
13781
 
main ()
13782
 
{
13783
 
 
13784
 
  ;
13785
 
  return 0;
13786
 
}
13787
 
_ACEOF
13788
 
if ac_fn_cxx_try_link "$LINENO"; then :
13789
 
 
13790
 
  lt_aix_libpath_sed='
13791
 
      /Import File Strings/,/^$/ {
13792
 
          /^0/ {
13793
 
              s/^0  *\([^ ]*\) *$/\1/
13794
 
              p
13795
 
          }
13796
 
      }'
13797
 
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13798
 
  # Check for a 64-bit object if we didn't find anything.
13799
 
  if test -z "$lt_cv_aix_libpath__CXX"; then
13800
 
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13801
 
  fi
13802
 
fi
13803
 
rm -f core conftest.err conftest.$ac_objext \
13804
 
    conftest$ac_exeext conftest.$ac_ext
13805
 
  if test -z "$lt_cv_aix_libpath__CXX"; then
13806
 
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13807
 
  fi
13808
 
 
13809
 
fi
13810
 
 
13811
 
  aix_libpath=$lt_cv_aix_libpath__CXX
13812
 
fi
13813
 
 
13814
 
            hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13815
 
            # Warning - without using the other run time loading flags,
13816
 
            # -berok will link without error, but may produce a broken library.
13817
 
            no_undefined_flag_CXX=' ${wl}-bernotok'
13818
 
            allow_undefined_flag_CXX=' ${wl}-berok'
13819
 
            if test "$with_gnu_ld" = yes; then
13820
 
              # We only use this code for GNU lds that support --whole-archive.
13821
 
              whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13822
 
            else
13823
 
              # Exported symbols can be pulled into shared objects from archives
13824
 
              whole_archive_flag_spec_CXX='$convenience'
13825
 
            fi
13826
 
            archive_cmds_need_lc_CXX=yes
13827
 
            # This is similar to how AIX traditionally builds its shared
13828
 
            # libraries.
13829
 
            archive_expsym_cmds_CXX="\$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'
13830
 
          fi
13831
 
        fi
13832
 
        ;;
13833
 
 
13834
 
      beos*)
13835
 
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13836
 
          allow_undefined_flag_CXX=unsupported
13837
 
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13838
 
          # support --undefined.  This deserves some investigation.  FIXME
13839
 
          archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13840
 
        else
13841
 
          ld_shlibs_CXX=no
13842
 
        fi
13843
 
        ;;
13844
 
 
13845
 
      chorus*)
13846
 
        case $cc_basename in
13847
 
          *)
13848
 
          # FIXME: insert proper C++ library support
13849
 
          ld_shlibs_CXX=no
13850
 
          ;;
13851
 
        esac
13852
 
        ;;
13853
 
 
13854
 
      cygwin* | mingw* | pw32* | cegcc*)
13855
 
        case $GXX,$cc_basename in
13856
 
        ,cl* | no,cl*)
13857
 
          # Native MSVC
13858
 
          # hardcode_libdir_flag_spec is actually meaningless, as there is
13859
 
          # no search path for DLLs.
13860
 
          hardcode_libdir_flag_spec_CXX=' '
13861
 
          allow_undefined_flag_CXX=unsupported
13862
 
          always_export_symbols_CXX=yes
13863
 
          file_list_spec_CXX='@'
13864
 
          # Tell ltmain to make .lib files, not .a files.
13865
 
          libext=lib
13866
 
          # Tell ltmain to make .dll files, not .so files.
13867
 
          shrext_cmds=".dll"
13868
 
          # FIXME: Setting linknames here is a bad hack.
13869
 
          archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13870
 
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13871
 
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13872
 
            else
13873
 
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13874
 
            fi~
13875
 
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13876
 
            linknames='
13877
 
          # The linker will not automatically build a static lib if we build a DLL.
13878
 
          # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13879
 
          enable_shared_with_static_runtimes_CXX=yes
13880
 
          # Don't use ranlib
13881
 
          old_postinstall_cmds_CXX='chmod 644 $oldlib'
13882
 
          postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13883
 
            lt_tool_outputfile="@TOOL_OUTPUT@"~
13884
 
            case $lt_outputfile in
13885
 
              *.exe|*.EXE) ;;
13886
 
              *)
13887
 
                lt_outputfile="$lt_outputfile.exe"
13888
 
                lt_tool_outputfile="$lt_tool_outputfile.exe"
13889
 
                ;;
13890
 
            esac~
13891
 
            func_to_tool_file "$lt_outputfile"~
13892
 
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13893
 
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13894
 
              $RM "$lt_outputfile.manifest";
13895
 
            fi'
13896
 
          ;;
13897
 
        *)
13898
 
          # g++
13899
 
          # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13900
 
          # as there is no search path for DLLs.
13901
 
          hardcode_libdir_flag_spec_CXX='-L$libdir'
13902
 
          export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13903
 
          allow_undefined_flag_CXX=unsupported
13904
 
          always_export_symbols_CXX=no
13905
 
          enable_shared_with_static_runtimes_CXX=yes
13906
 
 
13907
 
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13908
 
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13909
 
            # If the export-symbols file already is a .def file (1st line
13910
 
            # is EXPORTS), use it as is; otherwise, prepend...
13911
 
            archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13912
 
              cp $export_symbols $output_objdir/$soname.def;
13913
 
            else
13914
 
              echo EXPORTS > $output_objdir/$soname.def;
13915
 
              cat $export_symbols >> $output_objdir/$soname.def;
13916
 
            fi~
13917
 
            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13918
 
          else
13919
 
            ld_shlibs_CXX=no
13920
 
          fi
13921
 
          ;;
13922
 
        esac
13923
 
        ;;
13924
 
      darwin* | rhapsody*)
13925
 
 
13926
 
 
13927
 
  archive_cmds_need_lc_CXX=no
13928
 
  hardcode_direct_CXX=no
13929
 
  hardcode_automatic_CXX=yes
13930
 
  hardcode_shlibpath_var_CXX=unsupported
13931
 
  if test "$lt_cv_ld_force_load" = "yes"; then
13932
 
    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13933
 
 
13934
 
  else
13935
 
    whole_archive_flag_spec_CXX=''
13936
 
  fi
13937
 
  link_all_deplibs_CXX=yes
13938
 
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13939
 
  case $cc_basename in
13940
 
     ifort*) _lt_dar_can_shared=yes ;;
13941
 
     *) _lt_dar_can_shared=$GCC ;;
13942
 
  esac
13943
 
  if test "$_lt_dar_can_shared" = "yes"; then
13944
 
    output_verbose_link_cmd=func_echo_all
13945
 
    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13946
 
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13947
 
    archive_expsym_cmds_CXX="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}"
13948
 
    module_expsym_cmds_CXX="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}"
13949
 
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13950
 
      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13951
 
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13952
 
    fi
13953
 
 
13954
 
  else
13955
 
  ld_shlibs_CXX=no
13956
 
  fi
13957
 
 
13958
 
        ;;
13959
 
 
13960
 
      dgux*)
13961
 
        case $cc_basename in
13962
 
          ec++*)
13963
 
            # FIXME: insert proper C++ library support
13964
 
            ld_shlibs_CXX=no
13965
 
            ;;
13966
 
          ghcx*)
13967
 
            # Green Hills C++ Compiler
13968
 
            # FIXME: insert proper C++ library support
13969
 
            ld_shlibs_CXX=no
13970
 
            ;;
13971
 
          *)
13972
 
            # FIXME: insert proper C++ library support
13973
 
            ld_shlibs_CXX=no
13974
 
            ;;
13975
 
        esac
13976
 
        ;;
13977
 
 
13978
 
      freebsd2.*)
13979
 
        # C++ shared libraries reported to be fairly broken before
13980
 
        # switch to ELF
13981
 
        ld_shlibs_CXX=no
13982
 
        ;;
13983
 
 
13984
 
      freebsd-elf*)
13985
 
        archive_cmds_need_lc_CXX=no
13986
 
        ;;
13987
 
 
13988
 
      freebsd* | dragonfly*)
13989
 
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13990
 
        # conventions
13991
 
        ld_shlibs_CXX=yes
13992
 
        ;;
13993
 
 
13994
 
      gnu*)
13995
 
        ;;
13996
 
 
13997
 
      haiku*)
13998
 
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13999
 
        link_all_deplibs_CXX=yes
14000
 
        ;;
14001
 
 
14002
 
      hpux9*)
14003
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14004
 
        hardcode_libdir_separator_CXX=:
14005
 
        export_dynamic_flag_spec_CXX='${wl}-E'
14006
 
        hardcode_direct_CXX=yes
14007
 
        hardcode_minus_L_CXX=yes # Not in the search PATH,
14008
 
                                             # but as the default
14009
 
                                             # location of the library.
14010
 
 
14011
 
        case $cc_basename in
14012
 
          CC*)
14013
 
            # FIXME: insert proper C++ library support
14014
 
            ld_shlibs_CXX=no
14015
 
            ;;
14016
 
          aCC*)
14017
 
            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14018
 
            # Commands to make compiler produce verbose output that lists
14019
 
            # what "hidden" libraries, object files and flags are used when
14020
 
            # linking a shared library.
14021
 
            #
14022
 
            # There doesn't appear to be a way to prevent this compiler from
14023
 
            # explicitly linking system object files so we need to strip them
14024
 
            # from the output so that they don't get included in the library
14025
 
            # dependencies.
14026
 
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14027
 
            ;;
14028
 
          *)
14029
 
            if test "$GXX" = yes; then
14030
 
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14031
 
            else
14032
 
              # FIXME: insert proper C++ library support
14033
 
              ld_shlibs_CXX=no
14034
 
            fi
14035
 
            ;;
14036
 
        esac
14037
 
        ;;
14038
 
 
14039
 
      hpux10*|hpux11*)
14040
 
        if test $with_gnu_ld = no; then
14041
 
          hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14042
 
          hardcode_libdir_separator_CXX=:
14043
 
 
14044
 
          case $host_cpu in
14045
 
            hppa*64*|ia64*)
14046
 
              ;;
14047
 
            *)
14048
 
              export_dynamic_flag_spec_CXX='${wl}-E'
14049
 
              ;;
14050
 
          esac
14051
 
        fi
14052
 
        case $host_cpu in
14053
 
          hppa*64*|ia64*)
14054
 
            hardcode_direct_CXX=no
14055
 
            hardcode_shlibpath_var_CXX=no
14056
 
            ;;
14057
 
          *)
14058
 
            hardcode_direct_CXX=yes
14059
 
            hardcode_direct_absolute_CXX=yes
14060
 
            hardcode_minus_L_CXX=yes # Not in the search PATH,
14061
 
                                                 # but as the default
14062
 
                                                 # location of the library.
14063
 
            ;;
14064
 
        esac
14065
 
 
14066
 
        case $cc_basename in
14067
 
          CC*)
14068
 
            # FIXME: insert proper C++ library support
14069
 
            ld_shlibs_CXX=no
14070
 
            ;;
14071
 
          aCC*)
14072
 
            case $host_cpu in
14073
 
              hppa*64*)
14074
 
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14075
 
                ;;
14076
 
              ia64*)
14077
 
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14078
 
                ;;
14079
 
              *)
14080
 
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14081
 
                ;;
14082
 
            esac
14083
 
            # Commands to make compiler produce verbose output that lists
14084
 
            # what "hidden" libraries, object files and flags are used when
14085
 
            # linking a shared library.
14086
 
            #
14087
 
            # There doesn't appear to be a way to prevent this compiler from
14088
 
            # explicitly linking system object files so we need to strip them
14089
 
            # from the output so that they don't get included in the library
14090
 
            # dependencies.
14091
 
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14092
 
            ;;
14093
 
          *)
14094
 
            if test "$GXX" = yes; then
14095
 
              if test $with_gnu_ld = no; then
14096
 
                case $host_cpu in
14097
 
                  hppa*64*)
14098
 
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14099
 
                    ;;
14100
 
                  ia64*)
14101
 
                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14102
 
                    ;;
14103
 
                  *)
14104
 
                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14105
 
                    ;;
14106
 
                esac
14107
 
              fi
14108
 
            else
14109
 
              # FIXME: insert proper C++ library support
14110
 
              ld_shlibs_CXX=no
14111
 
            fi
14112
 
            ;;
14113
 
        esac
14114
 
        ;;
14115
 
 
14116
 
      interix[3-9]*)
14117
 
        hardcode_direct_CXX=no
14118
 
        hardcode_shlibpath_var_CXX=no
14119
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14120
 
        export_dynamic_flag_spec_CXX='${wl}-E'
14121
 
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14122
 
        # Instead, shared libraries are loaded at an image base (0x10000000 by
14123
 
        # default) and relocated if they conflict, which is a slow very memory
14124
 
        # consuming and fragmenting process.  To avoid this, we pick a random,
14125
 
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14126
 
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14127
 
        archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14128
 
        archive_expsym_cmds_CXX='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'
14129
 
        ;;
14130
 
      irix5* | irix6*)
14131
 
        case $cc_basename in
14132
 
          CC*)
14133
 
            # SGI C++
14134
 
            archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14135
 
 
14136
 
            # Archives containing C++ object files must be created using
14137
 
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14138
 
            # necessary to make sure instantiated templates are included
14139
 
            # in the archive.
14140
 
            old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14141
 
            ;;
14142
 
          *)
14143
 
            if test "$GXX" = yes; then
14144
 
              if test "$with_gnu_ld" = no; then
14145
 
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
14146
 
              else
14147
 
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14148
 
              fi
14149
 
            fi
14150
 
            link_all_deplibs_CXX=yes
14151
 
            ;;
14152
 
        esac
14153
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14154
 
        hardcode_libdir_separator_CXX=:
14155
 
        inherit_rpath_CXX=yes
14156
 
        ;;
14157
 
 
14158
 
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
14159
 
        case $cc_basename in
14160
 
          KCC*)
14161
 
            # Kuck and Associates, Inc. (KAI) C++ Compiler
14162
 
 
14163
 
            # KCC will only create a shared library if the output file
14164
 
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
14165
 
            # to its proper name (with version) after linking.
14166
 
            archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14167
 
            archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14168
 
            # Commands to make compiler produce verbose output that lists
14169
 
            # what "hidden" libraries, object files and flags are used when
14170
 
            # linking a shared library.
14171
 
            #
14172
 
            # There doesn't appear to be a way to prevent this compiler from
14173
 
            # explicitly linking system object files so we need to strip them
14174
 
            # from the output so that they don't get included in the library
14175
 
            # dependencies.
14176
 
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14177
 
 
14178
 
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14179
 
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14180
 
 
14181
 
            # Archives containing C++ object files must be created using
14182
 
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14183
 
            old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14184
 
            ;;
14185
 
          icpc* | ecpc* )
14186
 
            # Intel C++
14187
 
            with_gnu_ld=yes
14188
 
            # version 8.0 and above of icpc choke on multiply defined symbols
14189
 
            # if we add $predep_objects and $postdep_objects, however 7.1 and
14190
 
            # earlier do not add the objects themselves.
14191
 
            case `$CC -V 2>&1` in
14192
 
              *"Version 7."*)
14193
 
                archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14194
 
                archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14195
 
                ;;
14196
 
              *)  # Version 8.0 or newer
14197
 
                tmp_idyn=
14198
 
                case $host_cpu in
14199
 
                  ia64*) tmp_idyn=' -i_dynamic';;
14200
 
                esac
14201
 
                archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14202
 
                archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14203
 
                ;;
14204
 
            esac
14205
 
            archive_cmds_need_lc_CXX=no
14206
 
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14207
 
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14208
 
            whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14209
 
            ;;
14210
 
          pgCC* | pgcpp*)
14211
 
            # Portland Group C++ compiler
14212
 
            case `$CC -V` in
14213
 
            *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14214
 
              prelink_cmds_CXX='tpldir=Template.dir~
14215
 
                rm -rf $tpldir~
14216
 
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14217
 
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14218
 
              old_archive_cmds_CXX='tpldir=Template.dir~
14219
 
                rm -rf $tpldir~
14220
 
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14221
 
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14222
 
                $RANLIB $oldlib'
14223
 
              archive_cmds_CXX='tpldir=Template.dir~
14224
 
                rm -rf $tpldir~
14225
 
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14226
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14227
 
              archive_expsym_cmds_CXX='tpldir=Template.dir~
14228
 
                rm -rf $tpldir~
14229
 
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14230
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14231
 
              ;;
14232
 
            *) # Version 6 and above use weak symbols
14233
 
              archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14234
 
              archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14235
 
              ;;
14236
 
            esac
14237
 
 
14238
 
            hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14239
 
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14240
 
            whole_archive_flag_spec_CXX='${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'
14241
 
            ;;
14242
 
          cxx*)
14243
 
            # Compaq C++
14244
 
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14245
 
            archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14246
 
 
14247
 
            runpath_var=LD_RUN_PATH
14248
 
            hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14249
 
            hardcode_libdir_separator_CXX=:
14250
 
 
14251
 
            # Commands to make compiler produce verbose output that lists
14252
 
            # what "hidden" libraries, object files and flags are used when
14253
 
            # linking a shared library.
14254
 
            #
14255
 
            # There doesn't appear to be a way to prevent this compiler from
14256
 
            # explicitly linking system object files so we need to strip them
14257
 
            # from the output so that they don't get included in the library
14258
 
            # dependencies.
14259
 
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14260
 
            ;;
14261
 
          xl* | mpixl* | bgxl*)
14262
 
            # IBM XL 8.0 on PPC, with GNU ld
14263
 
            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14264
 
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14265
 
            archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14266
 
            if test "x$supports_anon_versioning" = xyes; then
14267
 
              archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14268
 
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14269
 
                echo "local: *; };" >> $output_objdir/$libname.ver~
14270
 
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14271
 
            fi
14272
 
            ;;
14273
 
          *)
14274
 
            case `$CC -V 2>&1 | sed 5q` in
14275
 
            *Sun\ C*)
14276
 
              # Sun C++ 5.9
14277
 
              no_undefined_flag_CXX=' -zdefs'
14278
 
              archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14279
 
              archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14280
 
              hardcode_libdir_flag_spec_CXX='-R$libdir'
14281
 
              whole_archive_flag_spec_CXX='${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'
14282
 
              compiler_needs_object_CXX=yes
14283
 
 
14284
 
              # Not sure whether something based on
14285
 
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14286
 
              # would be better.
14287
 
              output_verbose_link_cmd='func_echo_all'
14288
 
 
14289
 
              # Archives containing C++ object files must be created using
14290
 
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14291
 
              # necessary to make sure instantiated templates are included
14292
 
              # in the archive.
14293
 
              old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14294
 
              ;;
14295
 
            esac
14296
 
            ;;
14297
 
        esac
14298
 
        ;;
14299
 
 
14300
 
      lynxos*)
14301
 
        # FIXME: insert proper C++ library support
14302
 
        ld_shlibs_CXX=no
14303
 
        ;;
14304
 
 
14305
 
      m88k*)
14306
 
        # FIXME: insert proper C++ library support
14307
 
        ld_shlibs_CXX=no
14308
 
        ;;
14309
 
 
14310
 
      mvs*)
14311
 
        case $cc_basename in
14312
 
          cxx*)
14313
 
            # FIXME: insert proper C++ library support
14314
 
            ld_shlibs_CXX=no
14315
 
            ;;
14316
 
          *)
14317
 
            # FIXME: insert proper C++ library support
14318
 
            ld_shlibs_CXX=no
14319
 
            ;;
14320
 
        esac
14321
 
        ;;
14322
 
 
14323
 
      netbsd*)
14324
 
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14325
 
          archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14326
 
          wlarc=
14327
 
          hardcode_libdir_flag_spec_CXX='-R$libdir'
14328
 
          hardcode_direct_CXX=yes
14329
 
          hardcode_shlibpath_var_CXX=no
14330
 
        fi
14331
 
        # Workaround some broken pre-1.5 toolchains
14332
 
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14333
 
        ;;
14334
 
 
14335
 
      *nto* | *qnx*)
14336
 
        ld_shlibs_CXX=yes
14337
 
        ;;
14338
 
 
14339
 
      openbsd2*)
14340
 
        # C++ shared libraries are fairly broken
14341
 
        ld_shlibs_CXX=no
14342
 
        ;;
14343
 
 
14344
 
      openbsd*)
14345
 
        if test -f /usr/libexec/ld.so; then
14346
 
          hardcode_direct_CXX=yes
14347
 
          hardcode_shlibpath_var_CXX=no
14348
 
          hardcode_direct_absolute_CXX=yes
14349
 
          archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14350
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14351
 
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14352
 
            archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14353
 
            export_dynamic_flag_spec_CXX='${wl}-E'
14354
 
            whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14355
 
          fi
14356
 
          output_verbose_link_cmd=func_echo_all
14357
 
        else
14358
 
          ld_shlibs_CXX=no
14359
 
        fi
14360
 
        ;;
14361
 
 
14362
 
      osf3* | osf4* | osf5*)
14363
 
        case $cc_basename in
14364
 
          KCC*)
14365
 
            # Kuck and Associates, Inc. (KAI) C++ Compiler
14366
 
 
14367
 
            # KCC will only create a shared library if the output file
14368
 
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
14369
 
            # to its proper name (with version) after linking.
14370
 
            archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14371
 
 
14372
 
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14373
 
            hardcode_libdir_separator_CXX=:
14374
 
 
14375
 
            # Archives containing C++ object files must be created using
14376
 
            # the KAI C++ compiler.
14377
 
            case $host in
14378
 
              osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14379
 
              *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14380
 
            esac
14381
 
            ;;
14382
 
          RCC*)
14383
 
            # Rational C++ 2.4.1
14384
 
            # FIXME: insert proper C++ library support
14385
 
            ld_shlibs_CXX=no
14386
 
            ;;
14387
 
          cxx*)
14388
 
            case $host in
14389
 
              osf3*)
14390
 
                allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14391
 
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14392
 
                hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14393
 
                ;;
14394
 
              *)
14395
 
                allow_undefined_flag_CXX=' -expect_unresolved \*'
14396
 
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14397
 
                archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14398
 
                  echo "-hidden">> $lib.exp~
14399
 
                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14400
 
                  $RM $lib.exp'
14401
 
                hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14402
 
                ;;
14403
 
            esac
14404
 
 
14405
 
            hardcode_libdir_separator_CXX=:
14406
 
 
14407
 
            # Commands to make compiler produce verbose output that lists
14408
 
            # what "hidden" libraries, object files and flags are used when
14409
 
            # linking a shared library.
14410
 
            #
14411
 
            # There doesn't appear to be a way to prevent this compiler from
14412
 
            # explicitly linking system object files so we need to strip them
14413
 
            # from the output so that they don't get included in the library
14414
 
            # dependencies.
14415
 
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14416
 
            ;;
14417
 
          *)
14418
 
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14419
 
              allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14420
 
              case $host in
14421
 
                osf3*)
14422
 
                  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
14423
 
                  ;;
14424
 
                *)
14425
 
                  archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
14426
 
                  ;;
14427
 
              esac
14428
 
 
14429
 
              hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14430
 
              hardcode_libdir_separator_CXX=:
14431
 
 
14432
 
              # Commands to make compiler produce verbose output that lists
14433
 
              # what "hidden" libraries, object files and flags are used when
14434
 
              # linking a shared library.
14435
 
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14436
 
 
14437
 
            else
14438
 
              # FIXME: insert proper C++ library support
14439
 
              ld_shlibs_CXX=no
14440
 
            fi
14441
 
            ;;
14442
 
        esac
14443
 
        ;;
14444
 
 
14445
 
      psos*)
14446
 
        # FIXME: insert proper C++ library support
14447
 
        ld_shlibs_CXX=no
14448
 
        ;;
14449
 
 
14450
 
      sunos4*)
14451
 
        case $cc_basename in
14452
 
          CC*)
14453
 
            # Sun C++ 4.x
14454
 
            # FIXME: insert proper C++ library support
14455
 
            ld_shlibs_CXX=no
14456
 
            ;;
14457
 
          lcc*)
14458
 
            # Lucid
14459
 
            # FIXME: insert proper C++ library support
14460
 
            ld_shlibs_CXX=no
14461
 
            ;;
14462
 
          *)
14463
 
            # FIXME: insert proper C++ library support
14464
 
            ld_shlibs_CXX=no
14465
 
            ;;
14466
 
        esac
14467
 
        ;;
14468
 
 
14469
 
      solaris*)
14470
 
        case $cc_basename in
14471
 
          CC* | sunCC*)
14472
 
            # Sun C++ 4.2, 5.x and Centerline C++
14473
 
            archive_cmds_need_lc_CXX=yes
14474
 
            no_undefined_flag_CXX=' -zdefs'
14475
 
            archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14476
 
            archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14477
 
              $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14478
 
 
14479
 
            hardcode_libdir_flag_spec_CXX='-R$libdir'
14480
 
            hardcode_shlibpath_var_CXX=no
14481
 
            case $host_os in
14482
 
              solaris2.[0-5] | solaris2.[0-5].*) ;;
14483
 
              *)
14484
 
                # The compiler driver will combine and reorder linker options,
14485
 
                # but understands `-z linker_flag'.
14486
 
                # Supported since Solaris 2.6 (maybe 2.5.1?)
14487
 
                whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14488
 
                ;;
14489
 
            esac
14490
 
            link_all_deplibs_CXX=yes
14491
 
 
14492
 
            output_verbose_link_cmd='func_echo_all'
14493
 
 
14494
 
            # Archives containing C++ object files must be created using
14495
 
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14496
 
            # necessary to make sure instantiated templates are included
14497
 
            # in the archive.
14498
 
            old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14499
 
            ;;
14500
 
          gcx*)
14501
 
            # Green Hills C++ Compiler
14502
 
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14503
 
 
14504
 
            # The C++ compiler must be used to create the archive.
14505
 
            old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14506
 
            ;;
14507
 
          *)
14508
 
            # GNU C++ compiler with Solaris linker
14509
 
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14510
 
              no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14511
 
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14512
 
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14513
 
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14514
 
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14515
 
 
14516
 
                # Commands to make compiler produce verbose output that lists
14517
 
                # what "hidden" libraries, object files and flags are used when
14518
 
                # linking a shared library.
14519
 
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14520
 
              else
14521
 
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
14522
 
                # platform.
14523
 
                archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14524
 
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14525
 
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14526
 
 
14527
 
                # Commands to make compiler produce verbose output that lists
14528
 
                # what "hidden" libraries, object files and flags are used when
14529
 
                # linking a shared library.
14530
 
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14531
 
              fi
14532
 
 
14533
 
              hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14534
 
              case $host_os in
14535
 
                solaris2.[0-5] | solaris2.[0-5].*) ;;
14536
 
                *)
14537
 
                  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14538
 
                  ;;
14539
 
              esac
14540
 
            fi
14541
 
            ;;
14542
 
        esac
14543
 
        ;;
14544
 
 
14545
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14546
 
      no_undefined_flag_CXX='${wl}-z,text'
14547
 
      archive_cmds_need_lc_CXX=no
14548
 
      hardcode_shlibpath_var_CXX=no
14549
 
      runpath_var='LD_RUN_PATH'
14550
 
 
14551
 
      case $cc_basename in
14552
 
        CC*)
14553
 
          archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14554
 
          archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14555
 
          ;;
14556
 
        *)
14557
 
          archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14558
 
          archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14559
 
          ;;
14560
 
      esac
14561
 
      ;;
14562
 
 
14563
 
      sysv5* | sco3.2v5* | sco5v6*)
14564
 
        # Note: We can NOT use -z defs as we might desire, because we do not
14565
 
        # link with -lc, and that would cause any symbols used from libc to
14566
 
        # always be unresolved, which means just about no library would
14567
 
        # ever link correctly.  If we're not using GNU ld we use -z text
14568
 
        # though, which does catch some bad symbols but isn't as heavy-handed
14569
 
        # as -z defs.
14570
 
        no_undefined_flag_CXX='${wl}-z,text'
14571
 
        allow_undefined_flag_CXX='${wl}-z,nodefs'
14572
 
        archive_cmds_need_lc_CXX=no
14573
 
        hardcode_shlibpath_var_CXX=no
14574
 
        hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14575
 
        hardcode_libdir_separator_CXX=':'
14576
 
        link_all_deplibs_CXX=yes
14577
 
        export_dynamic_flag_spec_CXX='${wl}-Bexport'
14578
 
        runpath_var='LD_RUN_PATH'
14579
 
 
14580
 
        case $cc_basename in
14581
 
          CC*)
14582
 
            archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14583
 
            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14584
 
            old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14585
 
              '"$old_archive_cmds_CXX"
14586
 
            reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14587
 
              '"$reload_cmds_CXX"
14588
 
            ;;
14589
 
          *)
14590
 
            archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14591
 
            archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14592
 
            ;;
14593
 
        esac
14594
 
      ;;
14595
 
 
14596
 
      tandem*)
14597
 
        case $cc_basename in
14598
 
          NCC*)
14599
 
            # NonStop-UX NCC 3.20
14600
 
            # FIXME: insert proper C++ library support
14601
 
            ld_shlibs_CXX=no
14602
 
            ;;
14603
 
          *)
14604
 
            # FIXME: insert proper C++ library support
14605
 
            ld_shlibs_CXX=no
14606
 
            ;;
14607
 
        esac
14608
 
        ;;
14609
 
 
14610
 
      vxworks*)
14611
 
        # FIXME: insert proper C++ library support
14612
 
        ld_shlibs_CXX=no
14613
 
        ;;
14614
 
 
14615
 
      *)
14616
 
        # FIXME: insert proper C++ library support
14617
 
        ld_shlibs_CXX=no
14618
 
        ;;
14619
 
    esac
14620
 
 
14621
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14622
 
$as_echo "$ld_shlibs_CXX" >&6; }
14623
 
    test "$ld_shlibs_CXX" = no && can_build_shared=no
14624
 
 
14625
 
    GCC_CXX="$GXX"
14626
 
    LD_CXX="$LD"
14627
 
 
14628
 
    ## CAVEAT EMPTOR:
14629
 
    ## There is no encapsulation within the following macros, do not change
14630
 
    ## the running order or otherwise move them around unless you know exactly
14631
 
    ## what you are doing...
14632
 
    # Dependencies to place before and after the object being linked:
14633
 
predep_objects_CXX=
14634
 
postdep_objects_CXX=
14635
 
predeps_CXX=
14636
 
postdeps_CXX=
14637
 
compiler_lib_search_path_CXX=
14638
 
 
14639
 
cat > conftest.$ac_ext <<_LT_EOF
14640
 
class Foo
14641
 
{
14642
 
public:
14643
 
  Foo (void) { a = 0; }
14644
 
private:
14645
 
  int a;
14646
 
};
14647
 
_LT_EOF
14648
 
 
14649
 
 
14650
 
_lt_libdeps_save_CFLAGS=$CFLAGS
14651
 
case "$CC $CFLAGS " in #(
14652
 
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14653
 
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14654
 
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14655
 
esac
14656
 
 
14657
 
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14658
 
  (eval $ac_compile) 2>&5
14659
 
  ac_status=$?
14660
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14661
 
  test $ac_status = 0; }; then
14662
 
  # Parse the compiler output and extract the necessary
14663
 
  # objects, libraries and library flags.
14664
 
 
14665
 
  # Sentinel used to keep track of whether or not we are before
14666
 
  # the conftest object file.
14667
 
  pre_test_object_deps_done=no
14668
 
 
14669
 
  for p in `eval "$output_verbose_link_cmd"`; do
14670
 
    case ${prev}${p} in
14671
 
 
14672
 
    -L* | -R* | -l*)
14673
 
       # Some compilers place space between "-{L,R}" and the path.
14674
 
       # Remove the space.
14675
 
       if test $p = "-L" ||
14676
 
          test $p = "-R"; then
14677
 
         prev=$p
14678
 
         continue
14679
 
       fi
14680
 
 
14681
 
       # Expand the sysroot to ease extracting the directories later.
14682
 
       if test -z "$prev"; then
14683
 
         case $p in
14684
 
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14685
 
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14686
 
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14687
 
         esac
14688
 
       fi
14689
 
       case $p in
14690
 
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14691
 
       esac
14692
 
       if test "$pre_test_object_deps_done" = no; then
14693
 
         case ${prev} in
14694
 
         -L | -R)
14695
 
           # Internal compiler library paths should come after those
14696
 
           # provided the user.  The postdeps already come after the
14697
 
           # user supplied libs so there is no need to process them.
14698
 
           if test -z "$compiler_lib_search_path_CXX"; then
14699
 
             compiler_lib_search_path_CXX="${prev}${p}"
14700
 
           else
14701
 
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14702
 
           fi
14703
 
           ;;
14704
 
         # The "-l" case would never come before the object being
14705
 
         # linked, so don't bother handling this case.
14706
 
         esac
14707
 
       else
14708
 
         if test -z "$postdeps_CXX"; then
14709
 
           postdeps_CXX="${prev}${p}"
14710
 
         else
14711
 
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14712
 
         fi
14713
 
       fi
14714
 
       prev=
14715
 
       ;;
14716
 
 
14717
 
    *.lto.$objext) ;; # Ignore GCC LTO objects
14718
 
    *.$objext)
14719
 
       # This assumes that the test object file only shows up
14720
 
       # once in the compiler output.
14721
 
       if test "$p" = "conftest.$objext"; then
14722
 
         pre_test_object_deps_done=yes
14723
 
         continue
14724
 
       fi
14725
 
 
14726
 
       if test "$pre_test_object_deps_done" = no; then
14727
 
         if test -z "$predep_objects_CXX"; then
14728
 
           predep_objects_CXX="$p"
14729
 
         else
14730
 
           predep_objects_CXX="$predep_objects_CXX $p"
14731
 
         fi
14732
 
       else
14733
 
         if test -z "$postdep_objects_CXX"; then
14734
 
           postdep_objects_CXX="$p"
14735
 
         else
14736
 
           postdep_objects_CXX="$postdep_objects_CXX $p"
14737
 
         fi
14738
 
       fi
14739
 
       ;;
14740
 
 
14741
 
    *) ;; # Ignore the rest.
14742
 
 
14743
 
    esac
14744
 
  done
14745
 
 
14746
 
  # Clean up.
14747
 
  rm -f a.out a.exe
14748
 
else
14749
 
  echo "libtool.m4: error: problem compiling CXX test program"
14750
 
fi
14751
 
 
14752
 
$RM -f confest.$objext
14753
 
CFLAGS=$_lt_libdeps_save_CFLAGS
14754
 
 
14755
 
# PORTME: override above test on systems where it is broken
14756
 
case $host_os in
14757
 
interix[3-9]*)
14758
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14759
 
  # hack all around it, let's just trust "g++" to DTRT.
14760
 
  predep_objects_CXX=
14761
 
  postdep_objects_CXX=
14762
 
  postdeps_CXX=
14763
 
  ;;
14764
 
 
14765
 
linux*)
14766
 
  case `$CC -V 2>&1 | sed 5q` in
14767
 
  *Sun\ C*)
14768
 
    # Sun C++ 5.9
14769
 
 
14770
 
    # The more standards-conforming stlport4 library is
14771
 
    # incompatible with the Cstd library. Avoid specifying
14772
 
    # it if it's in CXXFLAGS. Ignore libCrun as
14773
 
    # -library=stlport4 depends on it.
14774
 
    case " $CXX $CXXFLAGS " in
14775
 
    *" -library=stlport4 "*)
14776
 
      solaris_use_stlport4=yes
14777
 
      ;;
14778
 
    esac
14779
 
 
14780
 
    if test "$solaris_use_stlport4" != yes; then
14781
 
      postdeps_CXX='-library=Cstd -library=Crun'
14782
 
    fi
14783
 
    ;;
14784
 
  esac
14785
 
  ;;
14786
 
 
14787
 
solaris*)
14788
 
  case $cc_basename in
14789
 
  CC* | sunCC*)
14790
 
    # The more standards-conforming stlport4 library is
14791
 
    # incompatible with the Cstd library. Avoid specifying
14792
 
    # it if it's in CXXFLAGS. Ignore libCrun as
14793
 
    # -library=stlport4 depends on it.
14794
 
    case " $CXX $CXXFLAGS " in
14795
 
    *" -library=stlport4 "*)
14796
 
      solaris_use_stlport4=yes
14797
 
      ;;
14798
 
    esac
14799
 
 
14800
 
    # Adding this requires a known-good setup of shared libraries for
14801
 
    # Sun compiler versions before 5.6, else PIC objects from an old
14802
 
    # archive will be linked into the output, leading to subtle bugs.
14803
 
    if test "$solaris_use_stlport4" != yes; then
14804
 
      postdeps_CXX='-library=Cstd -library=Crun'
14805
 
    fi
14806
 
    ;;
14807
 
  esac
14808
 
  ;;
14809
 
esac
14810
 
 
14811
 
 
14812
 
case " $postdeps_CXX " in
14813
 
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14814
 
esac
14815
 
 compiler_lib_search_dirs_CXX=
14816
 
if test -n "${compiler_lib_search_path_CXX}"; then
14817
 
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14818
 
fi
14819
 
 
14820
 
 
14821
 
 
14822
 
 
14823
 
 
14824
 
 
14825
 
 
14826
 
 
14827
 
 
14828
 
 
14829
 
 
14830
 
 
14831
 
 
14832
 
 
14833
 
 
14834
 
 
14835
 
 
14836
 
 
14837
 
 
14838
 
 
14839
 
 
14840
 
 
14841
 
 
14842
 
 
14843
 
 
14844
 
 
14845
 
 
14846
 
 
14847
 
 
14848
 
 
14849
 
 
14850
 
    lt_prog_compiler_wl_CXX=
14851
 
lt_prog_compiler_pic_CXX=
14852
 
lt_prog_compiler_static_CXX=
14853
 
 
14854
 
 
14855
 
  # C++ specific cases for pic, static, wl, etc.
14856
 
  if test "$GXX" = yes; then
14857
 
    lt_prog_compiler_wl_CXX='-Wl,'
14858
 
    lt_prog_compiler_static_CXX='-static'
14859
 
 
14860
 
    case $host_os in
14861
 
    aix*)
14862
 
      # All AIX code is PIC.
14863
 
      if test "$host_cpu" = ia64; then
14864
 
        # AIX 5 now supports IA64 processor
14865
 
        lt_prog_compiler_static_CXX='-Bstatic'
14866
 
      fi
14867
 
      ;;
14868
 
 
14869
 
    amigaos*)
14870
 
      case $host_cpu in
14871
 
      powerpc)
14872
 
            # see comment about AmigaOS4 .so support
14873
 
            lt_prog_compiler_pic_CXX='-fPIC'
14874
 
        ;;
14875
 
      m68k)
14876
 
            # FIXME: we need at least 68020 code to build shared libraries, but
14877
 
            # adding the `-m68020' flag to GCC prevents building anything better,
14878
 
            # like `-m68040'.
14879
 
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14880
 
        ;;
14881
 
      esac
14882
 
      ;;
14883
 
 
14884
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14885
 
      # PIC is the default for these OSes.
14886
 
      ;;
14887
 
    mingw* | cygwin* | os2* | pw32* | cegcc*)
14888
 
      # This hack is so that the source file can tell whether it is being
14889
 
      # built for inclusion in a dll (and should export symbols for example).
14890
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14891
 
      # (--disable-auto-import) libraries
14892
 
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14893
 
      ;;
14894
 
    darwin* | rhapsody*)
14895
 
      # PIC is the default on this platform
14896
 
      # Common symbols not allowed in MH_DYLIB files
14897
 
      lt_prog_compiler_pic_CXX='-fno-common'
14898
 
      ;;
14899
 
    *djgpp*)
14900
 
      # DJGPP does not support shared libraries at all
14901
 
      lt_prog_compiler_pic_CXX=
14902
 
      ;;
14903
 
    haiku*)
14904
 
      # PIC is the default for Haiku.
14905
 
      # The "-static" flag exists, but is broken.
14906
 
      lt_prog_compiler_static_CXX=
14907
 
      ;;
14908
 
    interix[3-9]*)
14909
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14910
 
      # Instead, we relocate shared libraries at runtime.
14911
 
      ;;
14912
 
    sysv4*MP*)
14913
 
      if test -d /usr/nec; then
14914
 
        lt_prog_compiler_pic_CXX=-Kconform_pic
14915
 
      fi
14916
 
      ;;
14917
 
    hpux*)
14918
 
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14919
 
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14920
 
      # sets the default TLS model and affects inlining.
14921
 
      case $host_cpu in
14922
 
      hppa*64*)
14923
 
        ;;
14924
 
      *)
14925
 
        lt_prog_compiler_pic_CXX='-fPIC'
14926
 
        ;;
14927
 
      esac
14928
 
      ;;
14929
 
    *qnx* | *nto*)
14930
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
14931
 
      # it will coredump.
14932
 
      lt_prog_compiler_pic_CXX='-fPIC -shared'
14933
 
      ;;
14934
 
    *)
14935
 
      lt_prog_compiler_pic_CXX='-fPIC'
14936
 
      ;;
14937
 
    esac
14938
 
  else
14939
 
    case $host_os in
14940
 
      aix[4-9]*)
14941
 
        # All AIX code is PIC.
14942
 
        if test "$host_cpu" = ia64; then
14943
 
          # AIX 5 now supports IA64 processor
14944
 
          lt_prog_compiler_static_CXX='-Bstatic'
14945
 
        else
14946
 
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14947
 
        fi
14948
 
        ;;
14949
 
      chorus*)
14950
 
        case $cc_basename in
14951
 
        cxch68*)
14952
 
          # Green Hills C++ Compiler
14953
 
          # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14954
 
          ;;
14955
 
        esac
14956
 
        ;;
14957
 
      mingw* | cygwin* | os2* | pw32* | cegcc*)
14958
 
        # This hack is so that the source file can tell whether it is being
14959
 
        # built for inclusion in a dll (and should export symbols for example).
14960
 
        lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14961
 
        ;;
14962
 
      dgux*)
14963
 
        case $cc_basename in
14964
 
          ec++*)
14965
 
            lt_prog_compiler_pic_CXX='-KPIC'
14966
 
            ;;
14967
 
          ghcx*)
14968
 
            # Green Hills C++ Compiler
14969
 
            lt_prog_compiler_pic_CXX='-pic'
14970
 
            ;;
14971
 
          *)
14972
 
            ;;
14973
 
        esac
14974
 
        ;;
14975
 
      freebsd* | dragonfly*)
14976
 
        # FreeBSD uses GNU C++
14977
 
        ;;
14978
 
      hpux9* | hpux10* | hpux11*)
14979
 
        case $cc_basename in
14980
 
          CC*)
14981
 
            lt_prog_compiler_wl_CXX='-Wl,'
14982
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14983
 
            if test "$host_cpu" != ia64; then
14984
 
              lt_prog_compiler_pic_CXX='+Z'
14985
 
            fi
14986
 
            ;;
14987
 
          aCC*)
14988
 
            lt_prog_compiler_wl_CXX='-Wl,'
14989
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14990
 
            case $host_cpu in
14991
 
            hppa*64*|ia64*)
14992
 
              # +Z the default
14993
 
              ;;
14994
 
            *)
14995
 
              lt_prog_compiler_pic_CXX='+Z'
14996
 
              ;;
14997
 
            esac
14998
 
            ;;
14999
 
          *)
15000
 
            ;;
15001
 
        esac
15002
 
        ;;
15003
 
      interix*)
15004
 
        # This is c89, which is MS Visual C++ (no shared libs)
15005
 
        # Anyone wants to do a port?
15006
 
        ;;
15007
 
      irix5* | irix6* | nonstopux*)
15008
 
        case $cc_basename in
15009
 
          CC*)
15010
 
            lt_prog_compiler_wl_CXX='-Wl,'
15011
 
            lt_prog_compiler_static_CXX='-non_shared'
15012
 
            # CC pic flag -KPIC is the default.
15013
 
            ;;
15014
 
          *)
15015
 
            ;;
15016
 
        esac
15017
 
        ;;
15018
 
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
15019
 
        case $cc_basename in
15020
 
          KCC*)
15021
 
            # KAI C++ Compiler
15022
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
15023
 
            lt_prog_compiler_pic_CXX='-fPIC'
15024
 
            ;;
15025
 
          ecpc* )
15026
 
            # old Intel C++ for x86_64 which still supported -KPIC.
15027
 
            lt_prog_compiler_wl_CXX='-Wl,'
15028
 
            lt_prog_compiler_pic_CXX='-KPIC'
15029
 
            lt_prog_compiler_static_CXX='-static'
15030
 
            ;;
15031
 
          icpc* )
15032
 
            # Intel C++, used to be incompatible with GCC.
15033
 
            # ICC 10 doesn't accept -KPIC any more.
15034
 
            lt_prog_compiler_wl_CXX='-Wl,'
15035
 
            lt_prog_compiler_pic_CXX='-fPIC'
15036
 
            lt_prog_compiler_static_CXX='-static'
15037
 
            ;;
15038
 
          pgCC* | pgcpp*)
15039
 
            # Portland Group C++ compiler
15040
 
            lt_prog_compiler_wl_CXX='-Wl,'
15041
 
            lt_prog_compiler_pic_CXX='-fpic'
15042
 
            lt_prog_compiler_static_CXX='-Bstatic'
15043
 
            ;;
15044
 
          cxx*)
15045
 
            # Compaq C++
15046
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
15047
 
            # Linux and Compaq Tru64 Unix objects are PIC.
15048
 
            lt_prog_compiler_pic_CXX=
15049
 
            lt_prog_compiler_static_CXX='-non_shared'
15050
 
            ;;
15051
 
          xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15052
 
            # IBM XL 8.0, 9.0 on PPC and BlueGene
15053
 
            lt_prog_compiler_wl_CXX='-Wl,'
15054
 
            lt_prog_compiler_pic_CXX='-qpic'
15055
 
            lt_prog_compiler_static_CXX='-qstaticlink'
15056
 
            ;;
15057
 
          *)
15058
 
            case `$CC -V 2>&1 | sed 5q` in
15059
 
            *Sun\ C*)
15060
 
              # Sun C++ 5.9
15061
 
              lt_prog_compiler_pic_CXX='-KPIC'
15062
 
              lt_prog_compiler_static_CXX='-Bstatic'
15063
 
              lt_prog_compiler_wl_CXX='-Qoption ld '
15064
 
              ;;
15065
 
            esac
15066
 
            ;;
15067
 
        esac
15068
 
        ;;
15069
 
      lynxos*)
15070
 
        ;;
15071
 
      m88k*)
15072
 
        ;;
15073
 
      mvs*)
15074
 
        case $cc_basename in
15075
 
          cxx*)
15076
 
            lt_prog_compiler_pic_CXX='-W c,exportall'
15077
 
            ;;
15078
 
          *)
15079
 
            ;;
15080
 
        esac
15081
 
        ;;
15082
 
      netbsd*)
15083
 
        ;;
15084
 
      *qnx* | *nto*)
15085
 
        # QNX uses GNU C++, but need to define -shared option too, otherwise
15086
 
        # it will coredump.
15087
 
        lt_prog_compiler_pic_CXX='-fPIC -shared'
15088
 
        ;;
15089
 
      osf3* | osf4* | osf5*)
15090
 
        case $cc_basename in
15091
 
          KCC*)
15092
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
15093
 
            ;;
15094
 
          RCC*)
15095
 
            # Rational C++ 2.4.1
15096
 
            lt_prog_compiler_pic_CXX='-pic'
15097
 
            ;;
15098
 
          cxx*)
15099
 
            # Digital/Compaq C++
15100
 
            lt_prog_compiler_wl_CXX='-Wl,'
15101
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
15102
 
            # Linux and Compaq Tru64 Unix objects are PIC.
15103
 
            lt_prog_compiler_pic_CXX=
15104
 
            lt_prog_compiler_static_CXX='-non_shared'
15105
 
            ;;
15106
 
          *)
15107
 
            ;;
15108
 
        esac
15109
 
        ;;
15110
 
      psos*)
15111
 
        ;;
15112
 
      solaris*)
15113
 
        case $cc_basename in
15114
 
          CC* | sunCC*)
15115
 
            # Sun C++ 4.2, 5.x and Centerline C++
15116
 
            lt_prog_compiler_pic_CXX='-KPIC'
15117
 
            lt_prog_compiler_static_CXX='-Bstatic'
15118
 
            lt_prog_compiler_wl_CXX='-Qoption ld '
15119
 
            ;;
15120
 
          gcx*)
15121
 
            # Green Hills C++ Compiler
15122
 
            lt_prog_compiler_pic_CXX='-PIC'
15123
 
            ;;
15124
 
          *)
15125
 
            ;;
15126
 
        esac
15127
 
        ;;
15128
 
      sunos4*)
15129
 
        case $cc_basename in
15130
 
          CC*)
15131
 
            # Sun C++ 4.x
15132
 
            lt_prog_compiler_pic_CXX='-pic'
15133
 
            lt_prog_compiler_static_CXX='-Bstatic'
15134
 
            ;;
15135
 
          lcc*)
15136
 
            # Lucid
15137
 
            lt_prog_compiler_pic_CXX='-pic'
15138
 
            ;;
15139
 
          *)
15140
 
            ;;
15141
 
        esac
15142
 
        ;;
15143
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15144
 
        case $cc_basename in
15145
 
          CC*)
15146
 
            lt_prog_compiler_wl_CXX='-Wl,'
15147
 
            lt_prog_compiler_pic_CXX='-KPIC'
15148
 
            lt_prog_compiler_static_CXX='-Bstatic'
15149
 
            ;;
15150
 
        esac
15151
 
        ;;
15152
 
      tandem*)
15153
 
        case $cc_basename in
15154
 
          NCC*)
15155
 
            # NonStop-UX NCC 3.20
15156
 
            lt_prog_compiler_pic_CXX='-KPIC'
15157
 
            ;;
15158
 
          *)
15159
 
            ;;
15160
 
        esac
15161
 
        ;;
15162
 
      vxworks*)
15163
 
        ;;
15164
 
      *)
15165
 
        lt_prog_compiler_can_build_shared_CXX=no
15166
 
        ;;
15167
 
    esac
15168
 
  fi
15169
 
 
15170
 
case $host_os in
15171
 
  # For platforms which do not support PIC, -DPIC is meaningless:
15172
 
  *djgpp*)
15173
 
    lt_prog_compiler_pic_CXX=
15174
 
    ;;
15175
 
  *)
15176
 
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15177
 
    ;;
15178
 
esac
15179
 
 
15180
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15181
 
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15182
 
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15183
 
  $as_echo_n "(cached) " >&6
15184
 
else
15185
 
  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15186
 
fi
15187
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15188
 
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15189
 
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15190
 
 
15191
 
#
15192
 
# Check to make sure the PIC flag actually works.
15193
 
#
15194
 
if test -n "$lt_prog_compiler_pic_CXX"; then
15195
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15196
 
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15197
 
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15198
 
  $as_echo_n "(cached) " >&6
15199
 
else
15200
 
  lt_cv_prog_compiler_pic_works_CXX=no
15201
 
   ac_outfile=conftest.$ac_objext
15202
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15203
 
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15204
 
   # Insert the option either (1) after the last *FLAGS variable, or
15205
 
   # (2) before a word containing "conftest.", or (3) at the end.
15206
 
   # Note that $ac_compile itself does not contain backslashes and begins
15207
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15208
 
   # The option is referenced via a variable to avoid confusing sed.
15209
 
   lt_compile=`echo "$ac_compile" | $SED \
15210
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15211
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15212
 
   -e 's:$: $lt_compiler_flag:'`
15213
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15214
 
   (eval "$lt_compile" 2>conftest.err)
15215
 
   ac_status=$?
15216
 
   cat conftest.err >&5
15217
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
15219
 
     # The compiler can only warn and ignore the option if not recognized
15220
 
     # So say no if there are warnings other than the usual output.
15221
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15222
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15223
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15224
 
       lt_cv_prog_compiler_pic_works_CXX=yes
15225
 
     fi
15226
 
   fi
15227
 
   $RM conftest*
15228
 
 
15229
 
fi
15230
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15231
 
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15232
 
 
15233
 
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15234
 
    case $lt_prog_compiler_pic_CXX in
15235
 
     "" | " "*) ;;
15236
 
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15237
 
     esac
15238
 
else
15239
 
    lt_prog_compiler_pic_CXX=
15240
 
     lt_prog_compiler_can_build_shared_CXX=no
15241
 
fi
15242
 
 
15243
 
fi
15244
 
 
15245
 
 
15246
 
 
15247
 
 
15248
 
 
15249
 
#
15250
 
# Check to make sure the static flag actually works.
15251
 
#
15252
 
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15253
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15254
 
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15255
 
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15256
 
  $as_echo_n "(cached) " >&6
15257
 
else
15258
 
  lt_cv_prog_compiler_static_works_CXX=no
15259
 
   save_LDFLAGS="$LDFLAGS"
15260
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15261
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15262
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15263
 
     # The linker can only warn and ignore the option if not recognized
15264
 
     # So say no if there are warnings
15265
 
     if test -s conftest.err; then
15266
 
       # Append any errors to the config.log.
15267
 
       cat conftest.err 1>&5
15268
 
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15269
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15270
 
       if diff conftest.exp conftest.er2 >/dev/null; then
15271
 
         lt_cv_prog_compiler_static_works_CXX=yes
15272
 
       fi
15273
 
     else
15274
 
       lt_cv_prog_compiler_static_works_CXX=yes
15275
 
     fi
15276
 
   fi
15277
 
   $RM -r conftest*
15278
 
   LDFLAGS="$save_LDFLAGS"
15279
 
 
15280
 
fi
15281
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15282
 
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15283
 
 
15284
 
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15285
 
    :
15286
 
else
15287
 
    lt_prog_compiler_static_CXX=
15288
 
fi
15289
 
 
15290
 
 
15291
 
 
15292
 
 
15293
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15294
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15295
 
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15296
 
  $as_echo_n "(cached) " >&6
15297
 
else
15298
 
  lt_cv_prog_compiler_c_o_CXX=no
15299
 
   $RM -r conftest 2>/dev/null
15300
 
   mkdir conftest
15301
 
   cd conftest
15302
 
   mkdir out
15303
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15304
 
 
15305
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
15306
 
   # Insert the option either (1) after the last *FLAGS variable, or
15307
 
   # (2) before a word containing "conftest.", or (3) at the end.
15308
 
   # Note that $ac_compile itself does not contain backslashes and begins
15309
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15310
 
   lt_compile=`echo "$ac_compile" | $SED \
15311
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15312
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15313
 
   -e 's:$: $lt_compiler_flag:'`
15314
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15315
 
   (eval "$lt_compile" 2>out/conftest.err)
15316
 
   ac_status=$?
15317
 
   cat out/conftest.err >&5
15318
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15320
 
   then
15321
 
     # The compiler can only warn and ignore the option if not recognized
15322
 
     # So say no if there are warnings
15323
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15324
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15325
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15326
 
       lt_cv_prog_compiler_c_o_CXX=yes
15327
 
     fi
15328
 
   fi
15329
 
   chmod u+w . 2>&5
15330
 
   $RM conftest*
15331
 
   # SGI C++ compiler will create directory out/ii_files/ for
15332
 
   # template instantiation
15333
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15334
 
   $RM out/* && rmdir out
15335
 
   cd ..
15336
 
   $RM -r conftest
15337
 
   $RM conftest*
15338
 
 
15339
 
fi
15340
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15341
 
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15342
 
 
15343
 
 
15344
 
 
15345
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15346
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15347
 
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15348
 
  $as_echo_n "(cached) " >&6
15349
 
else
15350
 
  lt_cv_prog_compiler_c_o_CXX=no
15351
 
   $RM -r conftest 2>/dev/null
15352
 
   mkdir conftest
15353
 
   cd conftest
15354
 
   mkdir out
15355
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15356
 
 
15357
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
15358
 
   # Insert the option either (1) after the last *FLAGS variable, or
15359
 
   # (2) before a word containing "conftest.", or (3) at the end.
15360
 
   # Note that $ac_compile itself does not contain backslashes and begins
15361
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15362
 
   lt_compile=`echo "$ac_compile" | $SED \
15363
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15364
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15365
 
   -e 's:$: $lt_compiler_flag:'`
15366
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15367
 
   (eval "$lt_compile" 2>out/conftest.err)
15368
 
   ac_status=$?
15369
 
   cat out/conftest.err >&5
15370
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15372
 
   then
15373
 
     # The compiler can only warn and ignore the option if not recognized
15374
 
     # So say no if there are warnings
15375
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15376
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15377
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15378
 
       lt_cv_prog_compiler_c_o_CXX=yes
15379
 
     fi
15380
 
   fi
15381
 
   chmod u+w . 2>&5
15382
 
   $RM conftest*
15383
 
   # SGI C++ compiler will create directory out/ii_files/ for
15384
 
   # template instantiation
15385
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15386
 
   $RM out/* && rmdir out
15387
 
   cd ..
15388
 
   $RM -r conftest
15389
 
   $RM conftest*
15390
 
 
15391
 
fi
15392
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15393
 
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15394
 
 
15395
 
 
15396
 
 
15397
 
 
15398
 
hard_links="nottested"
15399
 
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15400
 
  # do not overwrite the value of need_locks provided by the user
15401
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15402
 
$as_echo_n "checking if we can lock with hard links... " >&6; }
15403
 
  hard_links=yes
15404
 
  $RM conftest*
15405
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15406
 
  touch conftest.a
15407
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
15408
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15409
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15410
 
$as_echo "$hard_links" >&6; }
15411
 
  if test "$hard_links" = no; then
15412
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15413
 
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15414
 
    need_locks=warn
15415
 
  fi
15416
 
else
15417
 
  need_locks=no
15418
 
fi
15419
 
 
15420
 
 
15421
 
 
15422
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15423
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15424
 
 
15425
 
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15426
 
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15427
 
  case $host_os in
15428
 
  aix[4-9]*)
15429
 
    # If we're using GNU nm, then we don't want the "-C" option.
15430
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
15431
 
    # Also, AIX nm treats weak defined symbols like other global defined
15432
 
    # symbols, whereas GNU nm marks them as "W".
15433
 
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15434
 
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15435
 
    else
15436
 
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15437
 
    fi
15438
 
    ;;
15439
 
  pw32*)
15440
 
    export_symbols_cmds_CXX="$ltdll_cmds"
15441
 
    ;;
15442
 
  cygwin* | mingw* | cegcc*)
15443
 
    case $cc_basename in
15444
 
    cl*)
15445
 
      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15446
 
      ;;
15447
 
    *)
15448
 
      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15449
 
      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15450
 
      ;;
15451
 
    esac
15452
 
    ;;
15453
 
  *)
15454
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15455
 
    ;;
15456
 
  esac
15457
 
 
15458
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15459
 
$as_echo "$ld_shlibs_CXX" >&6; }
15460
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
15461
 
 
15462
 
with_gnu_ld_CXX=$with_gnu_ld
15463
 
 
15464
 
 
15465
 
 
15466
 
 
15467
 
 
15468
 
 
15469
 
#
15470
 
# Do we need to explicitly link libc?
15471
 
#
15472
 
case "x$archive_cmds_need_lc_CXX" in
15473
 
x|xyes)
15474
 
  # Assume -lc should be added
15475
 
  archive_cmds_need_lc_CXX=yes
15476
 
 
15477
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
15478
 
    case $archive_cmds_CXX in
15479
 
    *'~'*)
15480
 
      # FIXME: we may have to deal with multi-command sequences.
15481
 
      ;;
15482
 
    '$CC '*)
15483
 
      # Test whether the compiler implicitly links with -lc since on some
15484
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15485
 
      # to ld, don't add -lc before -lgcc.
15486
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15487
 
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15488
 
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15489
 
  $as_echo_n "(cached) " >&6
15490
 
else
15491
 
  $RM conftest*
15492
 
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15493
 
 
15494
 
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15495
 
  (eval $ac_compile) 2>&5
15496
 
  ac_status=$?
15497
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15498
 
  test $ac_status = 0; } 2>conftest.err; then
15499
 
          soname=conftest
15500
 
          lib=conftest
15501
 
          libobjs=conftest.$ac_objext
15502
 
          deplibs=
15503
 
          wl=$lt_prog_compiler_wl_CXX
15504
 
          pic_flag=$lt_prog_compiler_pic_CXX
15505
 
          compiler_flags=-v
15506
 
          linker_flags=-v
15507
 
          verstring=
15508
 
          output_objdir=.
15509
 
          libname=conftest
15510
 
          lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15511
 
          allow_undefined_flag_CXX=
15512
 
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15513
 
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15514
 
  ac_status=$?
15515
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15516
 
  test $ac_status = 0; }
15517
 
          then
15518
 
            lt_cv_archive_cmds_need_lc_CXX=no
15519
 
          else
15520
 
            lt_cv_archive_cmds_need_lc_CXX=yes
15521
 
          fi
15522
 
          allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15523
 
        else
15524
 
          cat conftest.err 1>&5
15525
 
        fi
15526
 
        $RM conftest*
15527
 
 
15528
 
fi
15529
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15530
 
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15531
 
      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15532
 
      ;;
15533
 
    esac
15534
 
  fi
15535
 
  ;;
15536
 
esac
15537
 
 
15538
 
 
15539
 
 
15540
 
 
15541
 
 
15542
 
 
15543
 
 
15544
 
 
15545
 
 
15546
 
 
15547
 
 
15548
 
 
15549
 
 
15550
 
 
15551
 
 
15552
 
 
15553
 
 
15554
 
 
15555
 
 
15556
 
 
15557
 
 
15558
 
 
15559
 
 
15560
 
 
15561
 
 
15562
 
 
15563
 
 
15564
 
 
15565
 
 
15566
 
 
15567
 
 
15568
 
 
15569
 
 
15570
 
 
15571
 
 
15572
 
 
15573
 
 
15574
 
 
15575
 
 
15576
 
 
15577
 
 
15578
 
 
15579
 
 
15580
 
 
15581
 
 
15582
 
 
15583
 
 
15584
 
 
15585
 
 
15586
 
 
15587
 
 
15588
 
 
15589
 
 
15590
 
 
15591
 
 
15592
 
 
15593
 
 
15594
 
 
15595
 
 
15596
 
 
15597
 
 
15598
 
 
15599
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15600
 
$as_echo_n "checking dynamic linker characteristics... " >&6; }
15601
 
 
15602
 
library_names_spec=
15603
 
libname_spec='lib$name'
15604
 
soname_spec=
15605
 
shrext_cmds=".so"
15606
 
postinstall_cmds=
15607
 
postuninstall_cmds=
15608
 
finish_cmds=
15609
 
finish_eval=
15610
 
shlibpath_var=
15611
 
shlibpath_overrides_runpath=unknown
15612
 
version_type=none
15613
 
dynamic_linker="$host_os ld.so"
15614
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15615
 
need_lib_prefix=unknown
15616
 
hardcode_into_libs=no
15617
 
 
15618
 
# when you set need_version to no, make sure it does not cause -set_version
15619
 
# flags to be left without arguments
15620
 
need_version=unknown
15621
 
 
15622
 
case $host_os in
15623
 
aix3*)
15624
 
  version_type=linux # correct to gnu/linux during the next big refactor
15625
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15626
 
  shlibpath_var=LIBPATH
15627
 
 
15628
 
  # AIX 3 has no versioning support, so we append a major version to the name.
15629
 
  soname_spec='${libname}${release}${shared_ext}$major'
15630
 
  ;;
15631
 
 
15632
 
aix[4-9]*)
15633
 
  version_type=linux # correct to gnu/linux during the next big refactor
15634
 
  need_lib_prefix=no
15635
 
  need_version=no
15636
 
  hardcode_into_libs=yes
15637
 
  if test "$host_cpu" = ia64; then
15638
 
    # AIX 5 supports IA64
15639
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15640
 
    shlibpath_var=LD_LIBRARY_PATH
15641
 
  else
15642
 
    # With GCC up to 2.95.x, collect2 would create an import file
15643
 
    # for dependence libraries.  The import file would start with
15644
 
    # the line `#! .'.  This would cause the generated library to
15645
 
    # depend on `.', always an invalid library.  This was fixed in
15646
 
    # development snapshots of GCC prior to 3.0.
15647
 
    case $host_os in
15648
 
      aix4 | aix4.[01] | aix4.[01].*)
15649
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15650
 
           echo ' yes '
15651
 
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15652
 
        :
15653
 
      else
15654
 
        can_build_shared=no
15655
 
      fi
15656
 
      ;;
15657
 
    esac
15658
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15659
 
    # soname into executable. Probably we can add versioning support to
15660
 
    # collect2, so additional links can be useful in future.
15661
 
    if test "$aix_use_runtimelinking" = yes; then
15662
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15663
 
      # instead of lib<name>.a to let people know that these are not
15664
 
      # typical AIX shared libraries.
15665
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15666
 
    else
15667
 
      # We preserve .a as extension for shared libraries through AIX4.2
15668
 
      # and later when we are not doing run time linking.
15669
 
      library_names_spec='${libname}${release}.a $libname.a'
15670
 
      soname_spec='${libname}${release}${shared_ext}$major'
15671
 
    fi
15672
 
    shlibpath_var=LIBPATH
15673
 
  fi
15674
 
  ;;
15675
 
 
15676
 
amigaos*)
15677
 
  case $host_cpu in
15678
 
  powerpc)
15679
 
    # Since July 2007 AmigaOS4 officially supports .so libraries.
15680
 
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15681
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15682
 
    ;;
15683
 
  m68k)
15684
 
    library_names_spec='$libname.ixlibrary $libname.a'
15685
 
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15686
 
    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'
15687
 
    ;;
15688
 
  esac
15689
 
  ;;
15690
 
 
15691
 
beos*)
15692
 
  library_names_spec='${libname}${shared_ext}'
15693
 
  dynamic_linker="$host_os ld.so"
15694
 
  shlibpath_var=LIBRARY_PATH
15695
 
  ;;
15696
 
 
15697
 
bsdi[45]*)
15698
 
  version_type=linux # correct to gnu/linux during the next big refactor
15699
 
  need_version=no
15700
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15701
 
  soname_spec='${libname}${release}${shared_ext}$major'
15702
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15703
 
  shlibpath_var=LD_LIBRARY_PATH
15704
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15705
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15706
 
  # the default ld.so.conf also contains /usr/contrib/lib and
15707
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15708
 
  # libtool to hard-code these into programs
15709
 
  ;;
15710
 
 
15711
 
cygwin* | mingw* | pw32* | cegcc*)
15712
 
  version_type=windows
15713
 
  shrext_cmds=".dll"
15714
 
  need_version=no
15715
 
  need_lib_prefix=no
15716
 
 
15717
 
  case $GCC,$cc_basename in
15718
 
  yes,*)
15719
 
    # gcc
15720
 
    library_names_spec='$libname.dll.a'
15721
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15722
 
    postinstall_cmds='base_file=`basename \${file}`~
15723
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15724
 
      dldir=$destdir/`dirname \$dlpath`~
15725
 
      test -d \$dldir || mkdir -p \$dldir~
15726
 
      $install_prog $dir/$dlname \$dldir/$dlname~
15727
 
      chmod a+x \$dldir/$dlname~
15728
 
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15729
 
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15730
 
      fi'
15731
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15732
 
      dlpath=$dir/\$dldll~
15733
 
       $RM \$dlpath'
15734
 
    shlibpath_overrides_runpath=yes
15735
 
 
15736
 
    case $host_os in
15737
 
    cygwin*)
15738
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15739
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15740
 
 
15741
 
      ;;
15742
 
    mingw* | cegcc*)
15743
 
      # MinGW DLLs use traditional 'lib' prefix
15744
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15745
 
      ;;
15746
 
    pw32*)
15747
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
15748
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15749
 
      ;;
15750
 
    esac
15751
 
    dynamic_linker='Win32 ld.exe'
15752
 
    ;;
15753
 
 
15754
 
  *,cl*)
15755
 
    # Native MSVC
15756
 
    libname_spec='$name'
15757
 
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15758
 
    library_names_spec='${libname}.dll.lib'
15759
 
 
15760
 
    case $build_os in
15761
 
    mingw*)
15762
 
      sys_lib_search_path_spec=
15763
 
      lt_save_ifs=$IFS
15764
 
      IFS=';'
15765
 
      for lt_path in $LIB
15766
 
      do
15767
 
        IFS=$lt_save_ifs
15768
 
        # Let DOS variable expansion print the short 8.3 style file name.
15769
 
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15770
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15771
 
      done
15772
 
      IFS=$lt_save_ifs
15773
 
      # Convert to MSYS style.
15774
 
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15775
 
      ;;
15776
 
    cygwin*)
15777
 
      # Convert to unix form, then to dos form, then back to unix form
15778
 
      # but this time dos style (no spaces!) so that the unix form looks
15779
 
      # like /cygdrive/c/PROGRA~1:/cygdr...
15780
 
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15781
 
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15782
 
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15783
 
      ;;
15784
 
    *)
15785
 
      sys_lib_search_path_spec="$LIB"
15786
 
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15787
 
        # It is most probably a Windows format PATH.
15788
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15789
 
      else
15790
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15791
 
      fi
15792
 
      # FIXME: find the short name or the path components, as spaces are
15793
 
      # common. (e.g. "Program Files" -> "PROGRA~1")
15794
 
      ;;
15795
 
    esac
15796
 
 
15797
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15798
 
    postinstall_cmds='base_file=`basename \${file}`~
15799
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15800
 
      dldir=$destdir/`dirname \$dlpath`~
15801
 
      test -d \$dldir || mkdir -p \$dldir~
15802
 
      $install_prog $dir/$dlname \$dldir/$dlname'
15803
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15804
 
      dlpath=$dir/\$dldll~
15805
 
       $RM \$dlpath'
15806
 
    shlibpath_overrides_runpath=yes
15807
 
    dynamic_linker='Win32 link.exe'
15808
 
    ;;
15809
 
 
15810
 
  *)
15811
 
    # Assume MSVC wrapper
15812
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15813
 
    dynamic_linker='Win32 ld.exe'
15814
 
    ;;
15815
 
  esac
15816
 
  # FIXME: first we should search . and the directory the executable is in
15817
 
  shlibpath_var=PATH
15818
 
  ;;
15819
 
 
15820
 
darwin* | rhapsody*)
15821
 
  dynamic_linker="$host_os dyld"
15822
 
  version_type=darwin
15823
 
  need_lib_prefix=no
15824
 
  need_version=no
15825
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15826
 
  soname_spec='${libname}${release}${major}$shared_ext'
15827
 
  shlibpath_overrides_runpath=yes
15828
 
  shlibpath_var=DYLD_LIBRARY_PATH
15829
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15830
 
 
15831
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15832
 
  ;;
15833
 
 
15834
 
dgux*)
15835
 
  version_type=linux # correct to gnu/linux during the next big refactor
15836
 
  need_lib_prefix=no
15837
 
  need_version=no
15838
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15839
 
  soname_spec='${libname}${release}${shared_ext}$major'
15840
 
  shlibpath_var=LD_LIBRARY_PATH
15841
 
  ;;
15842
 
 
15843
 
freebsd* | dragonfly*)
15844
 
  # DragonFly does not have aout.  When/if they implement a new
15845
 
  # versioning mechanism, adjust this.
15846
 
  if test -x /usr/bin/objformat; then
15847
 
    objformat=`/usr/bin/objformat`
15848
 
  else
15849
 
    case $host_os in
15850
 
    freebsd[23].*) objformat=aout ;;
15851
 
    *) objformat=elf ;;
15852
 
    esac
15853
 
  fi
15854
 
  version_type=freebsd-$objformat
15855
 
  case $version_type in
15856
 
    freebsd-elf*)
15857
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15858
 
      need_version=no
15859
 
      need_lib_prefix=no
15860
 
      ;;
15861
 
    freebsd-*)
15862
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15863
 
      need_version=yes
15864
 
      ;;
15865
 
  esac
15866
 
  shlibpath_var=LD_LIBRARY_PATH
15867
 
  case $host_os in
15868
 
  freebsd2.*)
15869
 
    shlibpath_overrides_runpath=yes
15870
 
    ;;
15871
 
  freebsd3.[01]* | freebsdelf3.[01]*)
15872
 
    shlibpath_overrides_runpath=yes
15873
 
    hardcode_into_libs=yes
15874
 
    ;;
15875
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15876
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15877
 
    shlibpath_overrides_runpath=no
15878
 
    hardcode_into_libs=yes
15879
 
    ;;
15880
 
  *) # from 4.6 on, and DragonFly
15881
 
    shlibpath_overrides_runpath=yes
15882
 
    hardcode_into_libs=yes
15883
 
    ;;
15884
 
  esac
15885
 
  ;;
15886
 
 
15887
 
gnu*)
15888
 
  version_type=linux # correct to gnu/linux during the next big refactor
15889
 
  need_lib_prefix=no
15890
 
  need_version=no
15891
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15892
 
  soname_spec='${libname}${release}${shared_ext}$major'
15893
 
  shlibpath_var=LD_LIBRARY_PATH
15894
 
  shlibpath_overrides_runpath=no
15895
 
  hardcode_into_libs=yes
15896
 
  ;;
15897
 
 
15898
 
haiku*)
15899
 
  version_type=linux # correct to gnu/linux during the next big refactor
15900
 
  need_lib_prefix=no
15901
 
  need_version=no
15902
 
  dynamic_linker="$host_os runtime_loader"
15903
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15904
 
  soname_spec='${libname}${release}${shared_ext}$major'
15905
 
  shlibpath_var=LIBRARY_PATH
15906
 
  shlibpath_overrides_runpath=yes
15907
 
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15908
 
  hardcode_into_libs=yes
15909
 
  ;;
15910
 
 
15911
 
hpux9* | hpux10* | hpux11*)
15912
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
15913
 
  # link against other versions.
15914
 
  version_type=sunos
15915
 
  need_lib_prefix=no
15916
 
  need_version=no
15917
 
  case $host_cpu in
15918
 
  ia64*)
15919
 
    shrext_cmds='.so'
15920
 
    hardcode_into_libs=yes
15921
 
    dynamic_linker="$host_os dld.so"
15922
 
    shlibpath_var=LD_LIBRARY_PATH
15923
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15924
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15925
 
    soname_spec='${libname}${release}${shared_ext}$major'
15926
 
    if test "X$HPUX_IA64_MODE" = X32; then
15927
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15928
 
    else
15929
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15930
 
    fi
15931
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15932
 
    ;;
15933
 
  hppa*64*)
15934
 
    shrext_cmds='.sl'
15935
 
    hardcode_into_libs=yes
15936
 
    dynamic_linker="$host_os dld.sl"
15937
 
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15938
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15939
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15940
 
    soname_spec='${libname}${release}${shared_ext}$major'
15941
 
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15942
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15943
 
    ;;
15944
 
  *)
15945
 
    shrext_cmds='.sl'
15946
 
    dynamic_linker="$host_os dld.sl"
15947
 
    shlibpath_var=SHLIB_PATH
15948
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15949
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15950
 
    soname_spec='${libname}${release}${shared_ext}$major'
15951
 
    ;;
15952
 
  esac
15953
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15954
 
  postinstall_cmds='chmod 555 $lib'
15955
 
  # or fails outright, so override atomically:
15956
 
  install_override_mode=555
15957
 
  ;;
15958
 
 
15959
 
interix[3-9]*)
15960
 
  version_type=linux # correct to gnu/linux during the next big refactor
15961
 
  need_lib_prefix=no
15962
 
  need_version=no
15963
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15964
 
  soname_spec='${libname}${release}${shared_ext}$major'
15965
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15966
 
  shlibpath_var=LD_LIBRARY_PATH
15967
 
  shlibpath_overrides_runpath=no
15968
 
  hardcode_into_libs=yes
15969
 
  ;;
15970
 
 
15971
 
irix5* | irix6* | nonstopux*)
15972
 
  case $host_os in
15973
 
    nonstopux*) version_type=nonstopux ;;
15974
 
    *)
15975
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
15976
 
                version_type=linux # correct to gnu/linux during the next big refactor
15977
 
        else
15978
 
                version_type=irix
15979
 
        fi ;;
15980
 
  esac
15981
 
  need_lib_prefix=no
15982
 
  need_version=no
15983
 
  soname_spec='${libname}${release}${shared_ext}$major'
15984
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15985
 
  case $host_os in
15986
 
  irix5* | nonstopux*)
15987
 
    libsuff= shlibsuff=
15988
 
    ;;
15989
 
  *)
15990
 
    case $LD in # libtool.m4 will add one of these switches to LD
15991
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15992
 
      libsuff= shlibsuff= libmagic=32-bit;;
15993
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15994
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
15995
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15996
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15997
 
    *) libsuff= shlibsuff= libmagic=never-match;;
15998
 
    esac
15999
 
    ;;
16000
 
  esac
16001
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16002
 
  shlibpath_overrides_runpath=no
16003
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16004
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16005
 
  hardcode_into_libs=yes
16006
 
  ;;
16007
 
 
16008
 
# No shared lib support for Linux oldld, aout, or coff.
16009
 
linux*oldld* | linux*aout* | linux*coff*)
16010
 
  dynamic_linker=no
16011
 
  ;;
16012
 
 
16013
 
# This must be glibc/ELF.
16014
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
16015
 
  version_type=linux # correct to gnu/linux during the next big refactor
16016
 
  need_lib_prefix=no
16017
 
  need_version=no
16018
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16019
 
  soname_spec='${libname}${release}${shared_ext}$major'
16020
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16021
 
  shlibpath_var=LD_LIBRARY_PATH
16022
 
  shlibpath_overrides_runpath=no
16023
 
 
16024
 
  # Some binutils ld are patched to set DT_RUNPATH
16025
 
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16026
 
  $as_echo_n "(cached) " >&6
16027
 
else
16028
 
  lt_cv_shlibpath_overrides_runpath=no
16029
 
    save_LDFLAGS=$LDFLAGS
16030
 
    save_libdir=$libdir
16031
 
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16032
 
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16033
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16034
 
/* end confdefs.h.  */
16035
 
 
16036
 
int
16037
 
main ()
16038
 
{
16039
 
 
16040
 
  ;
16041
 
  return 0;
16042
 
}
16043
 
_ACEOF
16044
 
if ac_fn_cxx_try_link "$LINENO"; then :
16045
 
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16046
 
  lt_cv_shlibpath_overrides_runpath=yes
16047
 
fi
16048
 
fi
16049
 
rm -f core conftest.err conftest.$ac_objext \
16050
 
    conftest$ac_exeext conftest.$ac_ext
16051
 
    LDFLAGS=$save_LDFLAGS
16052
 
    libdir=$save_libdir
16053
 
 
16054
 
fi
16055
 
 
16056
 
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16057
 
 
16058
 
  # This implies no fast_install, which is unacceptable.
16059
 
  # Some rework will be needed to allow for fast_install
16060
 
  # before this can be enabled.
16061
 
  hardcode_into_libs=yes
16062
 
 
16063
 
  # Add ABI-specific directories to the system library path.
16064
 
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16065
 
 
16066
 
  # Append ld.so.conf contents to the search path
16067
 
  if test -f /etc/ld.so.conf; then
16068
 
    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' ' '`
16069
 
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16070
 
 
16071
 
  fi
16072
 
 
16073
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
16074
 
  # powerpc, because MkLinux only supported shared libraries with the
16075
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
16076
 
  # most powerpc-linux boxes support dynamic linking these days and
16077
 
  # people can always --disable-shared, the test was removed, and we
16078
 
  # assume the GNU/Linux dynamic linker is in use.
16079
 
  dynamic_linker='GNU/Linux ld.so'
16080
 
  ;;
16081
 
 
16082
 
netbsd*)
16083
 
  version_type=sunos
16084
 
  need_lib_prefix=no
16085
 
  need_version=no
16086
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16087
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16088
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16089
 
    dynamic_linker='NetBSD (a.out) ld.so'
16090
 
  else
16091
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16092
 
    soname_spec='${libname}${release}${shared_ext}$major'
16093
 
    dynamic_linker='NetBSD ld.elf_so'
16094
 
  fi
16095
 
  shlibpath_var=LD_LIBRARY_PATH
16096
 
  shlibpath_overrides_runpath=yes
16097
 
  hardcode_into_libs=yes
16098
 
  ;;
16099
 
 
16100
 
newsos6)
16101
 
  version_type=linux # correct to gnu/linux during the next big refactor
16102
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16103
 
  shlibpath_var=LD_LIBRARY_PATH
16104
 
  shlibpath_overrides_runpath=yes
16105
 
  ;;
16106
 
 
16107
 
*nto* | *qnx*)
16108
 
  version_type=qnx
16109
 
  need_lib_prefix=no
16110
 
  need_version=no
16111
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16112
 
  soname_spec='${libname}${release}${shared_ext}$major'
16113
 
  shlibpath_var=LD_LIBRARY_PATH
16114
 
  shlibpath_overrides_runpath=no
16115
 
  hardcode_into_libs=yes
16116
 
  dynamic_linker='ldqnx.so'
16117
 
  ;;
16118
 
 
16119
 
openbsd*)
16120
 
  version_type=sunos
16121
 
  sys_lib_dlsearch_path_spec="/usr/lib"
16122
 
  need_lib_prefix=no
16123
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16124
 
  case $host_os in
16125
 
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16126
 
    *)                          need_version=no  ;;
16127
 
  esac
16128
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16129
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16130
 
  shlibpath_var=LD_LIBRARY_PATH
16131
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16132
 
    case $host_os in
16133
 
      openbsd2.[89] | openbsd2.[89].*)
16134
 
        shlibpath_overrides_runpath=no
16135
 
        ;;
16136
 
      *)
16137
 
        shlibpath_overrides_runpath=yes
16138
 
        ;;
16139
 
      esac
16140
 
  else
16141
 
    shlibpath_overrides_runpath=yes
16142
 
  fi
16143
 
  ;;
16144
 
 
16145
 
os2*)
16146
 
  libname_spec='$name'
16147
 
  shrext_cmds=".dll"
16148
 
  need_lib_prefix=no
16149
 
  library_names_spec='$libname${shared_ext} $libname.a'
16150
 
  dynamic_linker='OS/2 ld.exe'
16151
 
  shlibpath_var=LIBPATH
16152
 
  ;;
16153
 
 
16154
 
osf3* | osf4* | osf5*)
16155
 
  version_type=osf
16156
 
  need_lib_prefix=no
16157
 
  need_version=no
16158
 
  soname_spec='${libname}${release}${shared_ext}$major'
16159
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16160
 
  shlibpath_var=LD_LIBRARY_PATH
16161
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16162
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16163
 
  ;;
16164
 
 
16165
 
rdos*)
16166
 
  dynamic_linker=no
16167
 
  ;;
16168
 
 
16169
 
solaris*)
16170
 
  version_type=linux # correct to gnu/linux during the next big refactor
16171
 
  need_lib_prefix=no
16172
 
  need_version=no
16173
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16174
 
  soname_spec='${libname}${release}${shared_ext}$major'
16175
 
  shlibpath_var=LD_LIBRARY_PATH
16176
 
  shlibpath_overrides_runpath=yes
16177
 
  hardcode_into_libs=yes
16178
 
  # ldd complains unless libraries are executable
16179
 
  postinstall_cmds='chmod +x $lib'
16180
 
  ;;
16181
 
 
16182
 
sunos4*)
16183
 
  version_type=sunos
16184
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16185
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16186
 
  shlibpath_var=LD_LIBRARY_PATH
16187
 
  shlibpath_overrides_runpath=yes
16188
 
  if test "$with_gnu_ld" = yes; then
16189
 
    need_lib_prefix=no
16190
 
  fi
16191
 
  need_version=yes
16192
 
  ;;
16193
 
 
16194
 
sysv4 | sysv4.3*)
16195
 
  version_type=linux # correct to gnu/linux during the next big refactor
16196
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16197
 
  soname_spec='${libname}${release}${shared_ext}$major'
16198
 
  shlibpath_var=LD_LIBRARY_PATH
16199
 
  case $host_vendor in
16200
 
    sni)
16201
 
      shlibpath_overrides_runpath=no
16202
 
      need_lib_prefix=no
16203
 
      runpath_var=LD_RUN_PATH
16204
 
      ;;
16205
 
    siemens)
16206
 
      need_lib_prefix=no
16207
 
      ;;
16208
 
    motorola)
16209
 
      need_lib_prefix=no
16210
 
      need_version=no
16211
 
      shlibpath_overrides_runpath=no
16212
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16213
 
      ;;
16214
 
  esac
16215
 
  ;;
16216
 
 
16217
 
sysv4*MP*)
16218
 
  if test -d /usr/nec ;then
16219
 
    version_type=linux # correct to gnu/linux during the next big refactor
16220
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16221
 
    soname_spec='$libname${shared_ext}.$major'
16222
 
    shlibpath_var=LD_LIBRARY_PATH
16223
 
  fi
16224
 
  ;;
16225
 
 
16226
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16227
 
  version_type=freebsd-elf
16228
 
  need_lib_prefix=no
16229
 
  need_version=no
16230
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16231
 
  soname_spec='${libname}${release}${shared_ext}$major'
16232
 
  shlibpath_var=LD_LIBRARY_PATH
16233
 
  shlibpath_overrides_runpath=yes
16234
 
  hardcode_into_libs=yes
16235
 
  if test "$with_gnu_ld" = yes; then
16236
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16237
 
  else
16238
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16239
 
    case $host_os in
16240
 
      sco3.2v5*)
16241
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16242
 
        ;;
16243
 
    esac
16244
 
  fi
16245
 
  sys_lib_dlsearch_path_spec='/usr/lib'
16246
 
  ;;
16247
 
 
16248
 
tpf*)
16249
 
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16250
 
  version_type=linux # correct to gnu/linux during the next big refactor
16251
 
  need_lib_prefix=no
16252
 
  need_version=no
16253
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16254
 
  shlibpath_var=LD_LIBRARY_PATH
16255
 
  shlibpath_overrides_runpath=no
16256
 
  hardcode_into_libs=yes
16257
 
  ;;
16258
 
 
16259
 
uts4*)
16260
 
  version_type=linux # correct to gnu/linux during the next big refactor
16261
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16262
 
  soname_spec='${libname}${release}${shared_ext}$major'
16263
 
  shlibpath_var=LD_LIBRARY_PATH
16264
 
  ;;
16265
 
 
16266
 
*)
16267
 
  dynamic_linker=no
16268
 
  ;;
16269
 
esac
16270
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16271
 
$as_echo "$dynamic_linker" >&6; }
16272
 
test "$dynamic_linker" = no && can_build_shared=no
16273
 
 
16274
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16275
 
if test "$GCC" = yes; then
16276
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16277
 
fi
16278
 
 
16279
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16280
 
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16281
 
fi
16282
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16283
 
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16284
 
fi
16285
 
 
16286
 
 
16287
 
 
16288
 
 
16289
 
 
16290
 
 
16291
 
 
16292
 
 
16293
 
 
16294
 
 
16295
 
 
16296
 
 
16297
 
 
16298
 
 
16299
 
 
16300
 
 
16301
 
 
16302
 
 
16303
 
 
16304
 
 
16305
 
 
16306
 
 
16307
 
 
16308
 
 
16309
 
 
16310
 
 
16311
 
 
16312
 
 
16313
 
 
16314
 
 
16315
 
 
16316
 
 
16317
 
 
16318
 
 
16319
 
 
16320
 
 
16321
 
 
16322
 
 
16323
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16324
 
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16325
 
hardcode_action_CXX=
16326
 
if test -n "$hardcode_libdir_flag_spec_CXX" ||
16327
 
   test -n "$runpath_var_CXX" ||
16328
 
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
16329
 
 
16330
 
  # We can hardcode non-existent directories.
16331
 
  if test "$hardcode_direct_CXX" != no &&
16332
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16333
 
     # have to relink, otherwise we might link with an installed library
16334
 
     # when we should be linking with a yet-to-be-installed one
16335
 
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16336
 
     test "$hardcode_minus_L_CXX" != no; then
16337
 
    # Linking always hardcodes the temporary library directory.
16338
 
    hardcode_action_CXX=relink
16339
 
  else
16340
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16341
 
    hardcode_action_CXX=immediate
16342
 
  fi
16343
 
else
16344
 
  # We cannot hardcode anything, or else we can only hardcode existing
16345
 
  # directories.
16346
 
  hardcode_action_CXX=unsupported
16347
 
fi
16348
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16349
 
$as_echo "$hardcode_action_CXX" >&6; }
16350
 
 
16351
 
if test "$hardcode_action_CXX" = relink ||
16352
 
   test "$inherit_rpath_CXX" = yes; then
16353
 
  # Fast installation is not supported
16354
 
  enable_fast_install=no
16355
 
elif test "$shlibpath_overrides_runpath" = yes ||
16356
 
     test "$enable_shared" = no; then
16357
 
  # Fast installation is not necessary
16358
 
  enable_fast_install=needless
16359
 
fi
16360
 
 
16361
 
 
16362
 
 
16363
 
 
16364
 
 
16365
 
 
16366
 
 
16367
 
  fi # test -n "$compiler"
16368
 
 
16369
 
  CC=$lt_save_CC
16370
 
  CFLAGS=$lt_save_CFLAGS
16371
 
  LDCXX=$LD
16372
 
  LD=$lt_save_LD
16373
 
  GCC=$lt_save_GCC
16374
 
  with_gnu_ld=$lt_save_with_gnu_ld
16375
 
  lt_cv_path_LDCXX=$lt_cv_path_LD
16376
 
  lt_cv_path_LD=$lt_save_path_LD
16377
 
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16378
 
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16379
 
fi # test "$_lt_caught_CXX_error" != yes
16380
 
 
16381
 
ac_ext=c
16382
 
ac_cpp='$CPP $CPPFLAGS'
16383
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16384
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16385
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16386
 
 
16387
 
 
16388
 
 
16389
 
 
16390
 
 
16391
 
 
16392
 
 
16393
 
 
16394
 
 
16395
 
 
16396
 
 
16397
 
 
16398
 
 
16399
 
 
16400
 
 
16401
 
        ac_config_commands="$ac_config_commands libtool"
16402
 
 
16403
 
 
16404
 
 
16405
 
 
16406
 
# Only expand once:
16407
 
 
16408
 
 
16409
 
if test "$ac_cv_prog_AR" = false; then
16410
 
   as_fn_error $? "The 'ar' utility was not found. Please put ar on the path." "$LINENO" 5
16411
 
fi
16412
 
 
16413
 
# We use pkg-config to set up the cflags and libs for gtk.
16414
 
# Extract the first word of "pkg-config", so it can be a program name with args.
16415
 
set dummy pkg-config; ac_word=$2
16416
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16417
 
$as_echo_n "checking for $ac_word... " >&6; }
16418
 
if ${ac_cv_prog_HAVE_PKG_CONFIG+:} false; then :
16419
 
  $as_echo_n "(cached) " >&6
16420
 
else
16421
 
  if test -n "$HAVE_PKG_CONFIG"; then
16422
 
  ac_cv_prog_HAVE_PKG_CONFIG="$HAVE_PKG_CONFIG" # Let the user override the test.
16423
 
else
16424
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16425
 
for as_dir in $PATH
16426
 
do
16427
 
  IFS=$as_save_IFS
16428
 
  test -z "$as_dir" && as_dir=.
16429
 
    for ac_exec_ext in '' $ac_executable_extensions; do
16430
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16431
 
    ac_cv_prog_HAVE_PKG_CONFIG="yes"
16432
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16433
 
    break 2
16434
 
  fi
16435
 
done
16436
 
  done
16437
 
IFS=$as_save_IFS
16438
 
 
16439
 
  test -z "$ac_cv_prog_HAVE_PKG_CONFIG" && ac_cv_prog_HAVE_PKG_CONFIG="no"
16440
 
fi
16441
 
fi
16442
 
HAVE_PKG_CONFIG=$ac_cv_prog_HAVE_PKG_CONFIG
16443
 
if test -n "$HAVE_PKG_CONFIG"; then
16444
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PKG_CONFIG" >&5
16445
 
$as_echo "$HAVE_PKG_CONFIG" >&6; }
16446
 
else
16447
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16448
 
$as_echo "no" >&6; }
16449
 
fi
16450
 
 
16451
 
 
16452
 
 
16453
 
if test "$GCC" != "yes"; then
16454
 
   as_fn_error $? "Only GCC is currently supported. Please put gcc in the path." "$LINENO" 5
16455
 
fi
16456
 
 
16457
 
###
16458
 
### Libraries
16459
 
###
16460
 
 
16461
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
16462
 
$as_echo_n "checking for X... " >&6; }
16463
 
 
16464
 
 
16465
 
# Check whether --with-x was given.
16466
 
if test "${with_x+set}" = set; then :
16467
 
  withval=$with_x;
16468
 
fi
16469
 
 
16470
 
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
16471
 
if test "x$with_x" = xno; then
16472
 
  # The user explicitly disabled X.
16473
 
  have_x=disabled
16474
 
else
16475
 
  case $x_includes,$x_libraries in #(
16476
 
    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
16477
 
    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
16478
 
  $as_echo_n "(cached) " >&6
16479
 
else
16480
 
  # One or both of the vars are not set, and there is no cached value.
16481
 
ac_x_includes=no ac_x_libraries=no
16482
 
rm -f -r conftest.dir
16483
 
if mkdir conftest.dir; then
16484
 
  cd conftest.dir
16485
 
  cat >Imakefile <<'_ACEOF'
16486
 
incroot:
16487
 
        @echo incroot='${INCROOT}'
16488
 
usrlibdir:
16489
 
        @echo usrlibdir='${USRLIBDIR}'
16490
 
libdir:
16491
 
        @echo libdir='${LIBDIR}'
16492
 
_ACEOF
16493
 
  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
16494
 
    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16495
 
    for ac_var in incroot usrlibdir libdir; do
16496
 
      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
16497
 
    done
16498
 
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
16499
 
    for ac_extension in a so sl dylib la dll; do
16500
 
      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
16501
 
         test -f "$ac_im_libdir/libX11.$ac_extension"; then
16502
 
        ac_im_usrlibdir=$ac_im_libdir; break
16503
 
      fi
16504
 
    done
16505
 
    # Screen out bogus values from the imake configuration.  They are
16506
 
    # bogus both because they are the default anyway, and because
16507
 
    # using them would break gcc on systems where it needs fixed includes.
16508
 
    case $ac_im_incroot in
16509
 
        /usr/include) ac_x_includes= ;;
16510
 
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
16511
 
    esac
16512
 
    case $ac_im_usrlibdir in
16513
 
        /usr/lib | /usr/lib64 | /lib | /lib64) ;;
16514
 
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
16515
 
    esac
16516
 
  fi
16517
 
  cd ..
16518
 
  rm -f -r conftest.dir
16519
 
fi
16520
 
 
16521
 
# Standard set of common directories for X headers.
16522
 
# Check X11 before X11Rn because it is often a symlink to the current release.
16523
 
ac_x_header_dirs='
16524
 
/usr/X11/include
16525
 
/usr/X11R7/include
16526
 
/usr/X11R6/include
16527
 
/usr/X11R5/include
16528
 
/usr/X11R4/include
16529
 
 
16530
 
/usr/include/X11
16531
 
/usr/include/X11R7
16532
 
/usr/include/X11R6
16533
 
/usr/include/X11R5
16534
 
/usr/include/X11R4
16535
 
 
16536
 
/usr/local/X11/include
16537
 
/usr/local/X11R7/include
16538
 
/usr/local/X11R6/include
16539
 
/usr/local/X11R5/include
16540
 
/usr/local/X11R4/include
16541
 
 
16542
 
/usr/local/include/X11
16543
 
/usr/local/include/X11R7
16544
 
/usr/local/include/X11R6
16545
 
/usr/local/include/X11R5
16546
 
/usr/local/include/X11R4
16547
 
 
16548
 
/usr/X386/include
16549
 
/usr/x386/include
16550
 
/usr/XFree86/include/X11
16551
 
 
16552
 
/usr/include
16553
 
/usr/local/include
16554
 
/usr/unsupported/include
16555
 
/usr/athena/include
16556
 
/usr/local/x11r5/include
16557
 
/usr/lpp/Xamples/include
16558
 
 
16559
 
/usr/openwin/include
16560
 
/usr/openwin/share/include'
16561
 
 
16562
 
if test "$ac_x_includes" = no; then
16563
 
  # Guess where to find include files, by looking for Xlib.h.
16564
 
  # First, try using that file with no special directory specified.
16565
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16566
 
/* end confdefs.h.  */
16567
 
#include <X11/Xlib.h>
16568
 
_ACEOF
16569
 
if ac_fn_c_try_cpp "$LINENO"; then :
16570
 
  # We can compile using X headers with no special include directory.
16571
 
ac_x_includes=
16572
 
else
16573
 
  for ac_dir in $ac_x_header_dirs; do
16574
 
  if test -r "$ac_dir/X11/Xlib.h"; then
16575
 
    ac_x_includes=$ac_dir
16576
 
    break
16577
 
  fi
16578
 
done
16579
 
fi
16580
 
rm -f conftest.err conftest.i conftest.$ac_ext
16581
 
fi # $ac_x_includes = no
16582
 
 
16583
 
if test "$ac_x_libraries" = no; then
16584
 
  # Check for the libraries.
16585
 
  # See if we find them without any special options.
16586
 
  # Don't add to $LIBS permanently.
16587
 
  ac_save_LIBS=$LIBS
16588
 
  LIBS="-lX11 $LIBS"
16589
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16590
 
/* end confdefs.h.  */
16591
 
#include <X11/Xlib.h>
16592
 
int
16593
 
main ()
16594
 
{
16595
 
XrmInitialize ()
16596
 
  ;
16597
 
  return 0;
16598
 
}
16599
 
_ACEOF
16600
 
if ac_fn_c_try_link "$LINENO"; then :
16601
 
  LIBS=$ac_save_LIBS
16602
 
# We can link X programs with no special library path.
16603
 
ac_x_libraries=
16604
 
else
16605
 
  LIBS=$ac_save_LIBS
16606
 
for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
16607
 
do
16608
 
  # Don't even attempt the hair of trying to link an X program!
16609
 
  for ac_extension in a so sl dylib la dll; do
16610
 
    if test -r "$ac_dir/libX11.$ac_extension"; then
16611
 
      ac_x_libraries=$ac_dir
16612
 
      break 2
16613
 
    fi
16614
 
  done
16615
 
done
16616
 
fi
16617
 
rm -f core conftest.err conftest.$ac_objext \
16618
 
    conftest$ac_exeext conftest.$ac_ext
16619
 
fi # $ac_x_libraries = no
16620
 
 
16621
 
case $ac_x_includes,$ac_x_libraries in #(
16622
 
  no,* | *,no | *\'*)
16623
 
    # Didn't find X, or a directory has "'" in its name.
16624
 
    ac_cv_have_x="have_x=no";; #(
16625
 
  *)
16626
 
    # Record where we found X for the cache.
16627
 
    ac_cv_have_x="have_x=yes\
16628
 
        ac_x_includes='$ac_x_includes'\
16629
 
        ac_x_libraries='$ac_x_libraries'"
16630
 
esac
16631
 
fi
16632
 
;; #(
16633
 
    *) have_x=yes;;
16634
 
  esac
16635
 
  eval "$ac_cv_have_x"
16636
 
fi # $with_x != no
16637
 
 
16638
 
if test "$have_x" != yes; then
16639
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
16640
 
$as_echo "$have_x" >&6; }
16641
 
  no_x=yes
16642
 
else
16643
 
  # If each of the values was on the command line, it overrides each guess.
16644
 
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
16645
 
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
16646
 
  # Update the cache value to reflect the command line values.
16647
 
  ac_cv_have_x="have_x=yes\
16648
 
        ac_x_includes='$x_includes'\
16649
 
        ac_x_libraries='$x_libraries'"
16650
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
16651
 
$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
16652
 
fi
16653
 
 
16654
 
if test "$no_x" = yes; then
16655
 
  # Not all programs may use this symbol, but it does not hurt to define it.
16656
 
 
16657
 
$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
16658
 
 
16659
 
  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
16660
 
else
16661
 
  if test -n "$x_includes"; then
16662
 
    X_CFLAGS="$X_CFLAGS -I$x_includes"
16663
 
  fi
16664
 
 
16665
 
  # It would also be nice to do this for all -L options, not just this one.
16666
 
  if test -n "$x_libraries"; then
16667
 
    X_LIBS="$X_LIBS -L$x_libraries"
16668
 
    # For Solaris; some versions of Sun CC require a space after -R and
16669
 
    # others require no space.  Words are not sufficient . . . .
16670
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
16671
 
$as_echo_n "checking whether -R must be followed by a space... " >&6; }
16672
 
    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
16673
 
    ac_xsave_c_werror_flag=$ac_c_werror_flag
16674
 
    ac_c_werror_flag=yes
16675
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16676
 
/* end confdefs.h.  */
16677
 
 
16678
 
int
16679
 
main ()
16680
 
{
16681
 
 
16682
 
  ;
16683
 
  return 0;
16684
 
}
16685
 
_ACEOF
16686
 
if ac_fn_c_try_link "$LINENO"; then :
16687
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16688
 
$as_echo "no" >&6; }
16689
 
       X_LIBS="$X_LIBS -R$x_libraries"
16690
 
else
16691
 
  LIBS="$ac_xsave_LIBS -R $x_libraries"
16692
 
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16693
 
/* end confdefs.h.  */
16694
 
 
16695
 
int
16696
 
main ()
16697
 
{
16698
 
 
16699
 
  ;
16700
 
  return 0;
16701
 
}
16702
 
_ACEOF
16703
 
if ac_fn_c_try_link "$LINENO"; then :
16704
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16705
 
$as_echo "yes" >&6; }
16706
 
          X_LIBS="$X_LIBS -R $x_libraries"
16707
 
else
16708
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
16709
 
$as_echo "neither works" >&6; }
16710
 
fi
16711
 
rm -f core conftest.err conftest.$ac_objext \
16712
 
    conftest$ac_exeext conftest.$ac_ext
16713
 
fi
16714
 
rm -f core conftest.err conftest.$ac_objext \
16715
 
    conftest$ac_exeext conftest.$ac_ext
16716
 
    ac_c_werror_flag=$ac_xsave_c_werror_flag
16717
 
    LIBS=$ac_xsave_LIBS
16718
 
  fi
16719
 
 
16720
 
  # Check for system-dependent libraries X programs must link with.
16721
 
  # Do this before checking for the system-independent R6 libraries
16722
 
  # (-lICE), since we may need -lsocket or whatever for X linking.
16723
 
 
16724
 
  if test "$ISC" = yes; then
16725
 
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
16726
 
  else
16727
 
    # Martyn Johnson says this is needed for Ultrix, if the X
16728
 
    # libraries were built with DECnet support.  And Karl Berry says
16729
 
    # the Alpha needs dnet_stub (dnet does not exist).
16730
 
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
16731
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16732
 
/* end confdefs.h.  */
16733
 
 
16734
 
/* Override any GCC internal prototype to avoid an error.
16735
 
   Use char because int might match the return type of a GCC
16736
 
   builtin and then its argument prototype would still apply.  */
16737
 
#ifdef __cplusplus
16738
 
extern "C"
16739
 
#endif
16740
 
char XOpenDisplay ();
16741
 
int
16742
 
main ()
16743
 
{
16744
 
return XOpenDisplay ();
16745
 
  ;
16746
 
  return 0;
16747
 
}
16748
 
_ACEOF
16749
 
if ac_fn_c_try_link "$LINENO"; then :
16750
 
 
16751
 
else
16752
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
16753
 
$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
16754
 
if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
16755
 
  $as_echo_n "(cached) " >&6
16756
 
else
16757
 
  ac_check_lib_save_LIBS=$LIBS
16758
 
LIBS="-ldnet  $LIBS"
16759
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16760
 
/* end confdefs.h.  */
16761
 
 
16762
 
/* Override any GCC internal prototype to avoid an error.
16763
 
   Use char because int might match the return type of a GCC
16764
 
   builtin and then its argument prototype would still apply.  */
16765
 
#ifdef __cplusplus
16766
 
extern "C"
16767
 
#endif
16768
 
char dnet_ntoa ();
16769
 
int
16770
 
main ()
16771
 
{
16772
 
return dnet_ntoa ();
16773
 
  ;
16774
 
  return 0;
16775
 
}
16776
 
_ACEOF
16777
 
if ac_fn_c_try_link "$LINENO"; then :
16778
 
  ac_cv_lib_dnet_dnet_ntoa=yes
16779
 
else
16780
 
  ac_cv_lib_dnet_dnet_ntoa=no
16781
 
fi
16782
 
rm -f core conftest.err conftest.$ac_objext \
16783
 
    conftest$ac_exeext conftest.$ac_ext
16784
 
LIBS=$ac_check_lib_save_LIBS
16785
 
fi
16786
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
16787
 
$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
16788
 
if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
16789
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
16790
 
fi
16791
 
 
16792
 
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
16793
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
16794
 
$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
16795
 
if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
16796
 
  $as_echo_n "(cached) " >&6
16797
 
else
16798
 
  ac_check_lib_save_LIBS=$LIBS
16799
 
LIBS="-ldnet_stub  $LIBS"
16800
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16801
 
/* end confdefs.h.  */
16802
 
 
16803
 
/* Override any GCC internal prototype to avoid an error.
16804
 
   Use char because int might match the return type of a GCC
16805
 
   builtin and then its argument prototype would still apply.  */
16806
 
#ifdef __cplusplus
16807
 
extern "C"
16808
 
#endif
16809
 
char dnet_ntoa ();
16810
 
int
16811
 
main ()
16812
 
{
16813
 
return dnet_ntoa ();
16814
 
  ;
16815
 
  return 0;
16816
 
}
16817
 
_ACEOF
16818
 
if ac_fn_c_try_link "$LINENO"; then :
16819
 
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
16820
 
else
16821
 
  ac_cv_lib_dnet_stub_dnet_ntoa=no
16822
 
fi
16823
 
rm -f core conftest.err conftest.$ac_objext \
16824
 
    conftest$ac_exeext conftest.$ac_ext
16825
 
LIBS=$ac_check_lib_save_LIBS
16826
 
fi
16827
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
16828
 
$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
16829
 
if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
16830
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
16831
 
fi
16832
 
 
16833
 
    fi
16834
 
fi
16835
 
rm -f core conftest.err conftest.$ac_objext \
16836
 
    conftest$ac_exeext conftest.$ac_ext
16837
 
    LIBS="$ac_xsave_LIBS"
16838
 
 
16839
 
    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
16840
 
    # to get the SysV transport functions.
16841
 
    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
16842
 
    # needs -lnsl.
16843
 
    # The nsl library prevents programs from opening the X display
16844
 
    # on Irix 5.2, according to T.E. Dickey.
16845
 
    # The functions gethostbyname, getservbyname, and inet_addr are
16846
 
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
16847
 
    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
16848
 
if test "x$ac_cv_func_gethostbyname" = xyes; then :
16849
 
 
16850
 
fi
16851
 
 
16852
 
    if test $ac_cv_func_gethostbyname = no; then
16853
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
16854
 
$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
16855
 
if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
16856
 
  $as_echo_n "(cached) " >&6
16857
 
else
16858
 
  ac_check_lib_save_LIBS=$LIBS
16859
 
LIBS="-lnsl  $LIBS"
16860
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16861
 
/* end confdefs.h.  */
16862
 
 
16863
 
/* Override any GCC internal prototype to avoid an error.
16864
 
   Use char because int might match the return type of a GCC
16865
 
   builtin and then its argument prototype would still apply.  */
16866
 
#ifdef __cplusplus
16867
 
extern "C"
16868
 
#endif
16869
 
char gethostbyname ();
16870
 
int
16871
 
main ()
16872
 
{
16873
 
return gethostbyname ();
16874
 
  ;
16875
 
  return 0;
16876
 
}
16877
 
_ACEOF
16878
 
if ac_fn_c_try_link "$LINENO"; then :
16879
 
  ac_cv_lib_nsl_gethostbyname=yes
16880
 
else
16881
 
  ac_cv_lib_nsl_gethostbyname=no
16882
 
fi
16883
 
rm -f core conftest.err conftest.$ac_objext \
16884
 
    conftest$ac_exeext conftest.$ac_ext
16885
 
LIBS=$ac_check_lib_save_LIBS
16886
 
fi
16887
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
16888
 
$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
16889
 
if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
16890
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
16891
 
fi
16892
 
 
16893
 
      if test $ac_cv_lib_nsl_gethostbyname = no; then
16894
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
16895
 
$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
16896
 
if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
16897
 
  $as_echo_n "(cached) " >&6
16898
 
else
16899
 
  ac_check_lib_save_LIBS=$LIBS
16900
 
LIBS="-lbsd  $LIBS"
16901
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16902
 
/* end confdefs.h.  */
16903
 
 
16904
 
/* Override any GCC internal prototype to avoid an error.
16905
 
   Use char because int might match the return type of a GCC
16906
 
   builtin and then its argument prototype would still apply.  */
16907
 
#ifdef __cplusplus
16908
 
extern "C"
16909
 
#endif
16910
 
char gethostbyname ();
16911
 
int
16912
 
main ()
16913
 
{
16914
 
return gethostbyname ();
16915
 
  ;
16916
 
  return 0;
16917
 
}
16918
 
_ACEOF
16919
 
if ac_fn_c_try_link "$LINENO"; then :
16920
 
  ac_cv_lib_bsd_gethostbyname=yes
16921
 
else
16922
 
  ac_cv_lib_bsd_gethostbyname=no
16923
 
fi
16924
 
rm -f core conftest.err conftest.$ac_objext \
16925
 
    conftest$ac_exeext conftest.$ac_ext
16926
 
LIBS=$ac_check_lib_save_LIBS
16927
 
fi
16928
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
16929
 
$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
16930
 
if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
16931
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
16932
 
fi
16933
 
 
16934
 
      fi
16935
 
    fi
16936
 
 
16937
 
    # lieder@skyler.mavd.honeywell.com says without -lsocket,
16938
 
    # socket/setsockopt and other routines are undefined under SCO ODT
16939
 
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
16940
 
    # on later versions), says Simon Leinen: it contains gethostby*
16941
 
    # variants that don't use the name server (or something).  -lsocket
16942
 
    # must be given before -lnsl if both are needed.  We assume that
16943
 
    # if connect needs -lnsl, so does gethostbyname.
16944
 
    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
16945
 
if test "x$ac_cv_func_connect" = xyes; then :
16946
 
 
16947
 
fi
16948
 
 
16949
 
    if test $ac_cv_func_connect = no; then
16950
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
16951
 
$as_echo_n "checking for connect in -lsocket... " >&6; }
16952
 
if ${ac_cv_lib_socket_connect+:} false; then :
16953
 
  $as_echo_n "(cached) " >&6
16954
 
else
16955
 
  ac_check_lib_save_LIBS=$LIBS
16956
 
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
16957
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16958
 
/* end confdefs.h.  */
16959
 
 
16960
 
/* Override any GCC internal prototype to avoid an error.
16961
 
   Use char because int might match the return type of a GCC
16962
 
   builtin and then its argument prototype would still apply.  */
16963
 
#ifdef __cplusplus
16964
 
extern "C"
16965
 
#endif
16966
 
char connect ();
16967
 
int
16968
 
main ()
16969
 
{
16970
 
return connect ();
16971
 
  ;
16972
 
  return 0;
16973
 
}
16974
 
_ACEOF
16975
 
if ac_fn_c_try_link "$LINENO"; then :
16976
 
  ac_cv_lib_socket_connect=yes
16977
 
else
16978
 
  ac_cv_lib_socket_connect=no
16979
 
fi
16980
 
rm -f core conftest.err conftest.$ac_objext \
16981
 
    conftest$ac_exeext conftest.$ac_ext
16982
 
LIBS=$ac_check_lib_save_LIBS
16983
 
fi
16984
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
16985
 
$as_echo "$ac_cv_lib_socket_connect" >&6; }
16986
 
if test "x$ac_cv_lib_socket_connect" = xyes; then :
16987
 
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
16988
 
fi
16989
 
 
16990
 
    fi
16991
 
 
16992
 
    # Guillermo Gomez says -lposix is necessary on A/UX.
16993
 
    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
16994
 
if test "x$ac_cv_func_remove" = xyes; then :
16995
 
 
16996
 
fi
16997
 
 
16998
 
    if test $ac_cv_func_remove = no; then
16999
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
17000
 
$as_echo_n "checking for remove in -lposix... " >&6; }
17001
 
if ${ac_cv_lib_posix_remove+:} false; then :
17002
 
  $as_echo_n "(cached) " >&6
17003
 
else
17004
 
  ac_check_lib_save_LIBS=$LIBS
17005
 
LIBS="-lposix  $LIBS"
17006
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17007
 
/* end confdefs.h.  */
17008
 
 
17009
 
/* Override any GCC internal prototype to avoid an error.
17010
 
   Use char because int might match the return type of a GCC
17011
 
   builtin and then its argument prototype would still apply.  */
17012
 
#ifdef __cplusplus
17013
 
extern "C"
17014
 
#endif
17015
 
char remove ();
17016
 
int
17017
 
main ()
17018
 
{
17019
 
return remove ();
17020
 
  ;
17021
 
  return 0;
17022
 
}
17023
 
_ACEOF
17024
 
if ac_fn_c_try_link "$LINENO"; then :
17025
 
  ac_cv_lib_posix_remove=yes
17026
 
else
17027
 
  ac_cv_lib_posix_remove=no
17028
 
fi
17029
 
rm -f core conftest.err conftest.$ac_objext \
17030
 
    conftest$ac_exeext conftest.$ac_ext
17031
 
LIBS=$ac_check_lib_save_LIBS
17032
 
fi
17033
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
17034
 
$as_echo "$ac_cv_lib_posix_remove" >&6; }
17035
 
if test "x$ac_cv_lib_posix_remove" = xyes; then :
17036
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
17037
 
fi
17038
 
 
17039
 
    fi
17040
 
 
17041
 
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
17042
 
    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
17043
 
if test "x$ac_cv_func_shmat" = xyes; then :
17044
 
 
17045
 
fi
17046
 
 
17047
 
    if test $ac_cv_func_shmat = no; then
17048
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
17049
 
$as_echo_n "checking for shmat in -lipc... " >&6; }
17050
 
if ${ac_cv_lib_ipc_shmat+:} false; then :
17051
 
  $as_echo_n "(cached) " >&6
17052
 
else
17053
 
  ac_check_lib_save_LIBS=$LIBS
17054
 
LIBS="-lipc  $LIBS"
17055
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17056
 
/* end confdefs.h.  */
17057
 
 
17058
 
/* Override any GCC internal prototype to avoid an error.
17059
 
   Use char because int might match the return type of a GCC
17060
 
   builtin and then its argument prototype would still apply.  */
17061
 
#ifdef __cplusplus
17062
 
extern "C"
17063
 
#endif
17064
 
char shmat ();
17065
 
int
17066
 
main ()
17067
 
{
17068
 
return shmat ();
17069
 
  ;
17070
 
  return 0;
17071
 
}
17072
 
_ACEOF
17073
 
if ac_fn_c_try_link "$LINENO"; then :
17074
 
  ac_cv_lib_ipc_shmat=yes
17075
 
else
17076
 
  ac_cv_lib_ipc_shmat=no
17077
 
fi
17078
 
rm -f core conftest.err conftest.$ac_objext \
17079
 
    conftest$ac_exeext conftest.$ac_ext
17080
 
LIBS=$ac_check_lib_save_LIBS
17081
 
fi
17082
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
17083
 
$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
17084
 
if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
17085
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
17086
 
fi
17087
 
 
17088
 
    fi
17089
 
  fi
17090
 
 
17091
 
  # Check for libraries that X11R6 Xt/Xaw programs need.
17092
 
  ac_save_LDFLAGS=$LDFLAGS
17093
 
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
17094
 
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
17095
 
  # check for ICE first), but we must link in the order -lSM -lICE or
17096
 
  # we get undefined symbols.  So assume we have SM if we have ICE.
17097
 
  # These have to be linked with before -lX11, unlike the other
17098
 
  # libraries we check for below, so use a different variable.
17099
 
  # John Interrante, Karl Berry
17100
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
17101
 
$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
17102
 
if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
17103
 
  $as_echo_n "(cached) " >&6
17104
 
else
17105
 
  ac_check_lib_save_LIBS=$LIBS
17106
 
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
17107
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17108
 
/* end confdefs.h.  */
17109
 
 
17110
 
/* Override any GCC internal prototype to avoid an error.
17111
 
   Use char because int might match the return type of a GCC
17112
 
   builtin and then its argument prototype would still apply.  */
17113
 
#ifdef __cplusplus
17114
 
extern "C"
17115
 
#endif
17116
 
char IceConnectionNumber ();
17117
 
int
17118
 
main ()
17119
 
{
17120
 
return IceConnectionNumber ();
17121
 
  ;
17122
 
  return 0;
17123
 
}
17124
 
_ACEOF
17125
 
if ac_fn_c_try_link "$LINENO"; then :
17126
 
  ac_cv_lib_ICE_IceConnectionNumber=yes
17127
 
else
17128
 
  ac_cv_lib_ICE_IceConnectionNumber=no
17129
 
fi
17130
 
rm -f core conftest.err conftest.$ac_objext \
17131
 
    conftest$ac_exeext conftest.$ac_ext
17132
 
LIBS=$ac_check_lib_save_LIBS
17133
 
fi
17134
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
17135
 
$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
17136
 
if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
17137
 
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
17138
 
fi
17139
 
 
17140
 
  LDFLAGS=$ac_save_LDFLAGS
17141
 
 
17142
 
fi
17143
 
 
17144
 
 
17145
 
#
17146
 
# Check for libintl.h. When configuring using "--without-x", /usr/local/include
17147
 
# may not be added to the include path, so code that use glib's i18n functions
17148
 
# would fail to compile because it can't find libintl.h.
17149
 
#
17150
 
ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
17151
 
if test "x$ac_cv_header_libintl_h" = xyes; then :
17152
 
 
17153
 
else
17154
 
  have_libintl=no
17155
 
fi
17156
 
 
17157
 
 
17158
 
if test "$have_libintl" = "no"; then
17159
 
   unset ac_cv_header_libintl_h
17160
 
   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
17161
 
   ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
17162
 
if test "x$ac_cv_header_libintl_h" = xyes; then :
17163
 
 
17164
 
else
17165
 
  as_fn_error $? "libintl.h not found. Make sure you have the gettext headers installed." "$LINENO" 5
17166
 
fi
17167
 
 
17168
 
 
17169
 
fi
17170
 
 
17171
 
#
17172
 
# Check for glib 2.6.0 or greater.
17173
 
#
17174
 
 
17175
 
 
17176
 
   if test -z "glib-2.0"; then
17177
 
      as_fn_error $? "'library' parameter is required.'" "$LINENO" 5
17178
 
   fi
17179
 
   if test -z "GLIB2"; then
17180
 
      as_fn_error $? "'lvar' parameter is required.'" "$LINENO" 5
17181
 
   fi
17182
 
 
17183
 
   ac_vmw_have_lib=0
17184
 
   ac_vmw_have_lib_func=0
17185
 
   ac_vmw_have_lib_header=0
17186
 
   ac_vmw_custom_libs=
17187
 
 
17188
 
   #
17189
 
   # First, try any user-defined CUSTOM_* flags.
17190
 
   #
17191
 
   if test -n "${CUSTOM_GLIB2_CPPFLAGS}" || test -n "${CUSTOM_GLIB2_LIBS}"; then
17192
 
      ac_vmw_custom_libs="${CUSTOM_GLIB2_LIBS} -lglib-2.0"
17193
 
      if test -n "glib.h"; then
17194
 
         ORIGINAL_CPPFLAGS="$CPPFLAGS"
17195
 
         CPPFLAGS="${CUSTOM_GLIB2_CPPFLAGS} $CPPFLAGS"
17196
 
 
17197
 
         ac_fn_c_check_header_mongrel "$LINENO" "glib.h" "ac_cv_header_glib_h" "$ac_includes_default"
17198
 
if test "x$ac_cv_header_glib_h" = xyes; then :
17199
 
  ac_vmw_have_lib_header=1
17200
 
fi
17201
 
 
17202
 
 
17203
 
 
17204
 
         CPPFLAGS="$ORIGINAL_CPPFLAGS"
17205
 
      else
17206
 
         ac_vmw_have_lib_header=1
17207
 
      fi
17208
 
 
17209
 
      # Check a specific function in the library if requested.
17210
 
      # If it hasn't, just pick a random function from libc, just to make
17211
 
      # sure the linker can find the library being tested.
17212
 
      if test $ac_vmw_have_lib_header -eq 1; then
17213
 
         if test -n "g_key_file_new"; then
17214
 
            ac_vmw_function=g_key_file_new
17215
 
         else
17216
 
            ac_vmw_function=strlen
17217
 
         fi
17218
 
         as_ac_Lib=`$as_echo "ac_cv_lib_glib-2.0_$ac_vmw_function" | $as_tr_sh`
17219
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_vmw_function in -lglib-2.0" >&5
17220
 
$as_echo_n "checking for $ac_vmw_function in -lglib-2.0... " >&6; }
17221
 
if eval \${$as_ac_Lib+:} false; then :
17222
 
  $as_echo_n "(cached) " >&6
17223
 
else
17224
 
  ac_check_lib_save_LIBS=$LIBS
17225
 
LIBS="-lglib-2.0 $ac_vmw_custom_libs $LIBS"
17226
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17227
 
/* end confdefs.h.  */
17228
 
 
17229
 
/* Override any GCC internal prototype to avoid an error.
17230
 
   Use char because int might match the return type of a GCC
17231
 
   builtin and then its argument prototype would still apply.  */
17232
 
#ifdef __cplusplus
17233
 
extern "C"
17234
 
#endif
17235
 
char $ac_vmw_function ();
17236
 
int
17237
 
main ()
17238
 
{
17239
 
return $ac_vmw_function ();
17240
 
  ;
17241
 
  return 0;
17242
 
}
17243
 
_ACEOF
17244
 
if ac_fn_c_try_link "$LINENO"; then :
17245
 
  eval "$as_ac_Lib=yes"
17246
 
else
17247
 
  eval "$as_ac_Lib=no"
17248
 
fi
17249
 
rm -f core conftest.err conftest.$ac_objext \
17250
 
    conftest$ac_exeext conftest.$ac_ext
17251
 
LIBS=$ac_check_lib_save_LIBS
17252
 
fi
17253
 
eval ac_res=\$$as_ac_Lib
17254
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17255
 
$as_echo "$ac_res" >&6; }
17256
 
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17257
 
  ac_vmw_have_lib_func=1
17258
 
fi
17259
 
 
17260
 
      fi
17261
 
 
17262
 
      if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
17263
 
         GLIB2_CPPFLAGS="${CUSTOM_GLIB2_CPPFLAGS}"
17264
 
         GLIB2_LIBS="$ac_vmw_custom_libs"
17265
 
         ac_vmw_have_lib=1
17266
 
      fi
17267
 
   fi
17268
 
 
17269
 
   # If that didn't work, try with pkg-config.
17270
 
   if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n "glib-2.0"; then
17271
 
      if test -n "2.6.0"; then
17272
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.6.0 (via pkg-config)" >&5
17273
 
$as_echo_n "checking for glib-2.0 >= 2.6.0 (via pkg-config)... " >&6; }
17274
 
         if pkg-config --exists 'glib-2.0 >= 2.6.0'; then
17275
 
            ac_vmw_have_lib=1
17276
 
         fi
17277
 
      else
17278
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 (via pkg-config)" >&5
17279
 
$as_echo_n "checking for glib-2.0 (via pkg-config)... " >&6; }
17280
 
         if pkg-config --exists 'glib-2.0'; then
17281
 
            ac_vmw_have_lib=1
17282
 
         fi
17283
 
      fi
17284
 
 
17285
 
      if test $ac_vmw_have_lib -eq 1; then
17286
 
         # Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
17287
 
         # fails on OpenSolaris B71. So be pessimistic.
17288
 
         ac_vmw_cppflags="`pkg-config --cflags glib-2.0`"
17289
 
         ac_vmw_ret1=$?
17290
 
         ac_vmw_libs="`pkg-config --libs glib-2.0`"
17291
 
         ac_vmw_ret2=$?
17292
 
         if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
17293
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17294
 
$as_echo "yes" >&6; }
17295
 
            GLIB2_CPPFLAGS="$ac_vmw_cppflags"
17296
 
            GLIB2_LIBS="$ac_vmw_libs"
17297
 
         else
17298
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17299
 
$as_echo "no" >&6; }
17300
 
         fi
17301
 
      else
17302
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17303
 
$as_echo "no" >&6; }
17304
 
      fi
17305
 
   fi
17306
 
 
17307
 
   # If we still haven't found the lib, try with the library's custom "config" script.
17308
 
   # Before checking, flush the AC_PATH_PROG cached variable.
17309
 
   unset ac_cv_path_ac_vmw_lib_cfg
17310
 
   unset ac_vmw_lib_cfg
17311
 
   if test $ac_vmw_have_lib -eq 0 && test -n ""; then
17312
 
      # Extract the first word of "", so it can be a program name with args.
17313
 
set dummy ; ac_word=$2
17314
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17315
 
$as_echo_n "checking for $ac_word... " >&6; }
17316
 
if ${ac_cv_path_ac_vmw_lib_cfg+:} false; then :
17317
 
  $as_echo_n "(cached) " >&6
17318
 
else
17319
 
  case $ac_vmw_lib_cfg in
17320
 
  [\\/]* | ?:[\\/]*)
17321
 
  ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
17322
 
  ;;
17323
 
  *)
17324
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17325
 
for as_dir in $PATH
17326
 
do
17327
 
  IFS=$as_save_IFS
17328
 
  test -z "$as_dir" && as_dir=.
17329
 
    for ac_exec_ext in '' $ac_executable_extensions; do
17330
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17331
 
    ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
17332
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17333
 
    break 2
17334
 
  fi
17335
 
done
17336
 
  done
17337
 
IFS=$as_save_IFS
17338
 
 
17339
 
  test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
17340
 
  ;;
17341
 
esac
17342
 
fi
17343
 
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
17344
 
if test -n "$ac_vmw_lib_cfg"; then
17345
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_vmw_lib_cfg" >&5
17346
 
$as_echo "$ac_vmw_lib_cfg" >&6; }
17347
 
else
17348
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17349
 
$as_echo "no" >&6; }
17350
 
fi
17351
 
 
17352
 
 
17353
 
      if test "$ac_vmw_lib_cfg" != "no"; then
17354
 
         # XXX: icu-config does not follow the "--cflags" and "--libs" convention,
17355
 
         # so single it out here to avoid having to replicate all the rest of the
17356
 
         # logic elsewhere.
17357
 
         if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
17358
 
            GLIB2_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
17359
 
            GLIB2_LIBS="`$ac_vmw_lib_cfg --ldflags`"
17360
 
         else
17361
 
            GLIB2_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
17362
 
            GLIB2_LIBS="`$ac_vmw_lib_cfg --libs`"
17363
 
         fi
17364
 
         ac_vmw_have_lib=1
17365
 
      fi
17366
 
   fi
17367
 
 
17368
 
   # Finish by executing the user provided action. The call to "true" is needed
17369
 
   # because the actions are optional, and we need something inside the block.
17370
 
   if test $ac_vmw_have_lib -eq 1; then
17371
 
 
17372
 
 
17373
 
      true
17374
 
 
17375
 
   else
17376
 
      true
17377
 
      as_fn_error $? "glib >= 2.6.0 is required." "$LINENO" 5
17378
 
   fi
17379
 
 
17380
 
 
17381
 
 
17382
 
   if test -z "gmodule-2.0"; then
17383
 
      as_fn_error $? "'library' parameter is required.'" "$LINENO" 5
17384
 
   fi
17385
 
   if test -z "GMODULE"; then
17386
 
      as_fn_error $? "'lvar' parameter is required.'" "$LINENO" 5
17387
 
   fi
17388
 
 
17389
 
   ac_vmw_have_lib=0
17390
 
   ac_vmw_have_lib_func=0
17391
 
   ac_vmw_have_lib_header=0
17392
 
   ac_vmw_custom_libs=
17393
 
 
17394
 
   #
17395
 
   # First, try any user-defined CUSTOM_* flags.
17396
 
   #
17397
 
   if test -n "${CUSTOM_GMODULE_CPPFLAGS}" || test -n "${CUSTOM_GMODULE_LIBS}"; then
17398
 
      ac_vmw_custom_libs="${CUSTOM_GMODULE_LIBS} -lgmodule-2.0"
17399
 
      if test -n ""; then
17400
 
         ORIGINAL_CPPFLAGS="$CPPFLAGS"
17401
 
         CPPFLAGS="${CUSTOM_GMODULE_CPPFLAGS} $CPPFLAGS"
17402
 
 
17403
 
         ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
17404
 
if test "x$ac_cv_header_" = xyes; then :
17405
 
  ac_vmw_have_lib_header=1
17406
 
fi
17407
 
 
17408
 
 
17409
 
 
17410
 
         CPPFLAGS="$ORIGINAL_CPPFLAGS"
17411
 
      else
17412
 
         ac_vmw_have_lib_header=1
17413
 
      fi
17414
 
 
17415
 
      # Check a specific function in the library if requested.
17416
 
      # If it hasn't, just pick a random function from libc, just to make
17417
 
      # sure the linker can find the library being tested.
17418
 
      if test $ac_vmw_have_lib_header -eq 1; then
17419
 
         if test -n ""; then
17420
 
            ac_vmw_function=
17421
 
         else
17422
 
            ac_vmw_function=strlen
17423
 
         fi
17424
 
         as_ac_Lib=`$as_echo "ac_cv_lib_gmodule-2.0_$ac_vmw_function" | $as_tr_sh`
17425
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_vmw_function in -lgmodule-2.0" >&5
17426
 
$as_echo_n "checking for $ac_vmw_function in -lgmodule-2.0... " >&6; }
17427
 
if eval \${$as_ac_Lib+:} false; then :
17428
 
  $as_echo_n "(cached) " >&6
17429
 
else
17430
 
  ac_check_lib_save_LIBS=$LIBS
17431
 
LIBS="-lgmodule-2.0 $ac_vmw_custom_libs $LIBS"
17432
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17433
 
/* end confdefs.h.  */
17434
 
 
17435
 
/* Override any GCC internal prototype to avoid an error.
17436
 
   Use char because int might match the return type of a GCC
17437
 
   builtin and then its argument prototype would still apply.  */
17438
 
#ifdef __cplusplus
17439
 
extern "C"
17440
 
#endif
17441
 
char $ac_vmw_function ();
17442
 
int
17443
 
main ()
17444
 
{
17445
 
return $ac_vmw_function ();
17446
 
  ;
17447
 
  return 0;
17448
 
}
17449
 
_ACEOF
17450
 
if ac_fn_c_try_link "$LINENO"; then :
17451
 
  eval "$as_ac_Lib=yes"
17452
 
else
17453
 
  eval "$as_ac_Lib=no"
17454
 
fi
17455
 
rm -f core conftest.err conftest.$ac_objext \
17456
 
    conftest$ac_exeext conftest.$ac_ext
17457
 
LIBS=$ac_check_lib_save_LIBS
17458
 
fi
17459
 
eval ac_res=\$$as_ac_Lib
17460
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17461
 
$as_echo "$ac_res" >&6; }
17462
 
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17463
 
  ac_vmw_have_lib_func=1
17464
 
fi
17465
 
 
17466
 
      fi
17467
 
 
17468
 
      if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
17469
 
         GMODULE_CPPFLAGS="${CUSTOM_GMODULE_CPPFLAGS}"
17470
 
         GMODULE_LIBS="$ac_vmw_custom_libs"
17471
 
         ac_vmw_have_lib=1
17472
 
      fi
17473
 
   fi
17474
 
 
17475
 
   # If that didn't work, try with pkg-config.
17476
 
   if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n "gmodule-2.0"; then
17477
 
      if test -n "2.6.0"; then
17478
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmodule-2.0 >= 2.6.0 (via pkg-config)" >&5
17479
 
$as_echo_n "checking for gmodule-2.0 >= 2.6.0 (via pkg-config)... " >&6; }
17480
 
         if pkg-config --exists 'gmodule-2.0 >= 2.6.0'; then
17481
 
            ac_vmw_have_lib=1
17482
 
         fi
17483
 
      else
17484
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmodule-2.0 (via pkg-config)" >&5
17485
 
$as_echo_n "checking for gmodule-2.0 (via pkg-config)... " >&6; }
17486
 
         if pkg-config --exists 'gmodule-2.0'; then
17487
 
            ac_vmw_have_lib=1
17488
 
         fi
17489
 
      fi
17490
 
 
17491
 
      if test $ac_vmw_have_lib -eq 1; then
17492
 
         # Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
17493
 
         # fails on OpenSolaris B71. So be pessimistic.
17494
 
         ac_vmw_cppflags="`pkg-config --cflags gmodule-2.0`"
17495
 
         ac_vmw_ret1=$?
17496
 
         ac_vmw_libs="`pkg-config --libs gmodule-2.0`"
17497
 
         ac_vmw_ret2=$?
17498
 
         if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
17499
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17500
 
$as_echo "yes" >&6; }
17501
 
            GMODULE_CPPFLAGS="$ac_vmw_cppflags"
17502
 
            GMODULE_LIBS="$ac_vmw_libs"
17503
 
         else
17504
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17505
 
$as_echo "no" >&6; }
17506
 
         fi
17507
 
      else
17508
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17509
 
$as_echo "no" >&6; }
17510
 
      fi
17511
 
   fi
17512
 
 
17513
 
   # If we still haven't found the lib, try with the library's custom "config" script.
17514
 
   # Before checking, flush the AC_PATH_PROG cached variable.
17515
 
   unset ac_cv_path_ac_vmw_lib_cfg
17516
 
   unset ac_vmw_lib_cfg
17517
 
   if test $ac_vmw_have_lib -eq 0 && test -n ""; then
17518
 
      # Extract the first word of "", so it can be a program name with args.
17519
 
set dummy ; ac_word=$2
17520
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17521
 
$as_echo_n "checking for $ac_word... " >&6; }
17522
 
if ${ac_cv_path_ac_vmw_lib_cfg+:} false; then :
17523
 
  $as_echo_n "(cached) " >&6
17524
 
else
17525
 
  case $ac_vmw_lib_cfg in
17526
 
  [\\/]* | ?:[\\/]*)
17527
 
  ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
17528
 
  ;;
17529
 
  *)
17530
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17531
 
for as_dir in $PATH
17532
 
do
17533
 
  IFS=$as_save_IFS
17534
 
  test -z "$as_dir" && as_dir=.
17535
 
    for ac_exec_ext in '' $ac_executable_extensions; do
17536
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17537
 
    ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
17538
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17539
 
    break 2
17540
 
  fi
17541
 
done
17542
 
  done
17543
 
IFS=$as_save_IFS
17544
 
 
17545
 
  test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
17546
 
  ;;
17547
 
esac
17548
 
fi
17549
 
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
17550
 
if test -n "$ac_vmw_lib_cfg"; then
17551
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_vmw_lib_cfg" >&5
17552
 
$as_echo "$ac_vmw_lib_cfg" >&6; }
17553
 
else
17554
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17555
 
$as_echo "no" >&6; }
17556
 
fi
17557
 
 
17558
 
 
17559
 
      if test "$ac_vmw_lib_cfg" != "no"; then
17560
 
         # XXX: icu-config does not follow the "--cflags" and "--libs" convention,
17561
 
         # so single it out here to avoid having to replicate all the rest of the
17562
 
         # logic elsewhere.
17563
 
         if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
17564
 
            GMODULE_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
17565
 
            GMODULE_LIBS="`$ac_vmw_lib_cfg --ldflags`"
17566
 
         else
17567
 
            GMODULE_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
17568
 
            GMODULE_LIBS="`$ac_vmw_lib_cfg --libs`"
17569
 
         fi
17570
 
         ac_vmw_have_lib=1
17571
 
      fi
17572
 
   fi
17573
 
 
17574
 
   # Finish by executing the user provided action. The call to "true" is needed
17575
 
   # because the actions are optional, and we need something inside the block.
17576
 
   if test $ac_vmw_have_lib -eq 1; then
17577
 
 
17578
 
 
17579
 
      true
17580
 
 
17581
 
   else
17582
 
      true
17583
 
      as_fn_error $? "gmodule >= 2.6.0 is required." "$LINENO" 5
17584
 
   fi
17585
 
 
17586
 
 
17587
 
 
17588
 
   if test -z "gobject-2.0"; then
17589
 
      as_fn_error $? "'library' parameter is required.'" "$LINENO" 5
17590
 
   fi
17591
 
   if test -z "GOBJECT"; then
17592
 
      as_fn_error $? "'lvar' parameter is required.'" "$LINENO" 5
17593
 
   fi
17594
 
 
17595
 
   ac_vmw_have_lib=0
17596
 
   ac_vmw_have_lib_func=0
17597
 
   ac_vmw_have_lib_header=0
17598
 
   ac_vmw_custom_libs=
17599
 
 
17600
 
   #
17601
 
   # First, try any user-defined CUSTOM_* flags.
17602
 
   #
17603
 
   if test -n "${CUSTOM_GOBJECT_CPPFLAGS}" || test -n "${CUSTOM_GOBJECT_LIBS}"; then
17604
 
      ac_vmw_custom_libs="${CUSTOM_GOBJECT_LIBS} -lgobject-2.0"
17605
 
      if test -n "glib-object.h"; then
17606
 
         ORIGINAL_CPPFLAGS="$CPPFLAGS"
17607
 
         CPPFLAGS="${CUSTOM_GOBJECT_CPPFLAGS} $CPPFLAGS"
17608
 
 
17609
 
         ac_fn_c_check_header_mongrel "$LINENO" "glib-object.h" "ac_cv_header_glib_object_h" "$ac_includes_default"
17610
 
if test "x$ac_cv_header_glib_object_h" = xyes; then :
17611
 
  ac_vmw_have_lib_header=1
17612
 
fi
17613
 
 
17614
 
 
17615
 
 
17616
 
         CPPFLAGS="$ORIGINAL_CPPFLAGS"
17617
 
      else
17618
 
         ac_vmw_have_lib_header=1
17619
 
      fi
17620
 
 
17621
 
      # Check a specific function in the library if requested.
17622
 
      # If it hasn't, just pick a random function from libc, just to make
17623
 
      # sure the linker can find the library being tested.
17624
 
      if test $ac_vmw_have_lib_header -eq 1; then
17625
 
         if test -n ""; then
17626
 
            ac_vmw_function=
17627
 
         else
17628
 
            ac_vmw_function=strlen
17629
 
         fi
17630
 
         as_ac_Lib=`$as_echo "ac_cv_lib_gobject-2.0_$ac_vmw_function" | $as_tr_sh`
17631
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_vmw_function in -lgobject-2.0" >&5
17632
 
$as_echo_n "checking for $ac_vmw_function in -lgobject-2.0... " >&6; }
17633
 
if eval \${$as_ac_Lib+:} false; then :
17634
 
  $as_echo_n "(cached) " >&6
17635
 
else
17636
 
  ac_check_lib_save_LIBS=$LIBS
17637
 
LIBS="-lgobject-2.0 $ac_vmw_custom_libs $LIBS"
17638
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17639
 
/* end confdefs.h.  */
17640
 
 
17641
 
/* Override any GCC internal prototype to avoid an error.
17642
 
   Use char because int might match the return type of a GCC
17643
 
   builtin and then its argument prototype would still apply.  */
17644
 
#ifdef __cplusplus
17645
 
extern "C"
17646
 
#endif
17647
 
char $ac_vmw_function ();
17648
 
int
17649
 
main ()
17650
 
{
17651
 
return $ac_vmw_function ();
17652
 
  ;
17653
 
  return 0;
17654
 
}
17655
 
_ACEOF
17656
 
if ac_fn_c_try_link "$LINENO"; then :
17657
 
  eval "$as_ac_Lib=yes"
17658
 
else
17659
 
  eval "$as_ac_Lib=no"
17660
 
fi
17661
 
rm -f core conftest.err conftest.$ac_objext \
17662
 
    conftest$ac_exeext conftest.$ac_ext
17663
 
LIBS=$ac_check_lib_save_LIBS
17664
 
fi
17665
 
eval ac_res=\$$as_ac_Lib
17666
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17667
 
$as_echo "$ac_res" >&6; }
17668
 
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17669
 
  ac_vmw_have_lib_func=1
17670
 
fi
17671
 
 
17672
 
      fi
17673
 
 
17674
 
      if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
17675
 
         GOBJECT_CPPFLAGS="${CUSTOM_GOBJECT_CPPFLAGS}"
17676
 
         GOBJECT_LIBS="$ac_vmw_custom_libs"
17677
 
         ac_vmw_have_lib=1
17678
 
      fi
17679
 
   fi
17680
 
 
17681
 
   # If that didn't work, try with pkg-config.
17682
 
   if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n "gobject-2.0"; then
17683
 
      if test -n "2.6.0"; then
17684
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.6.0 (via pkg-config)" >&5
17685
 
$as_echo_n "checking for gobject-2.0 >= 2.6.0 (via pkg-config)... " >&6; }
17686
 
         if pkg-config --exists 'gobject-2.0 >= 2.6.0'; then
17687
 
            ac_vmw_have_lib=1
17688
 
         fi
17689
 
      else
17690
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 (via pkg-config)" >&5
17691
 
$as_echo_n "checking for gobject-2.0 (via pkg-config)... " >&6; }
17692
 
         if pkg-config --exists 'gobject-2.0'; then
17693
 
            ac_vmw_have_lib=1
17694
 
         fi
17695
 
      fi
17696
 
 
17697
 
      if test $ac_vmw_have_lib -eq 1; then
17698
 
         # Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
17699
 
         # fails on OpenSolaris B71. So be pessimistic.
17700
 
         ac_vmw_cppflags="`pkg-config --cflags gobject-2.0`"
17701
 
         ac_vmw_ret1=$?
17702
 
         ac_vmw_libs="`pkg-config --libs gobject-2.0`"
17703
 
         ac_vmw_ret2=$?
17704
 
         if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
17705
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17706
 
$as_echo "yes" >&6; }
17707
 
            GOBJECT_CPPFLAGS="$ac_vmw_cppflags"
17708
 
            GOBJECT_LIBS="$ac_vmw_libs"
17709
 
         else
17710
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17711
 
$as_echo "no" >&6; }
17712
 
         fi
17713
 
      else
17714
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17715
 
$as_echo "no" >&6; }
17716
 
      fi
17717
 
   fi
17718
 
 
17719
 
   # If we still haven't found the lib, try with the library's custom "config" script.
17720
 
   # Before checking, flush the AC_PATH_PROG cached variable.
17721
 
   unset ac_cv_path_ac_vmw_lib_cfg
17722
 
   unset ac_vmw_lib_cfg
17723
 
   if test $ac_vmw_have_lib -eq 0 && test -n ""; then
17724
 
      # Extract the first word of "", so it can be a program name with args.
17725
 
set dummy ; ac_word=$2
17726
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17727
 
$as_echo_n "checking for $ac_word... " >&6; }
17728
 
if ${ac_cv_path_ac_vmw_lib_cfg+:} false; then :
17729
 
  $as_echo_n "(cached) " >&6
17730
 
else
17731
 
  case $ac_vmw_lib_cfg in
17732
 
  [\\/]* | ?:[\\/]*)
17733
 
  ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
17734
 
  ;;
17735
 
  *)
17736
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17737
 
for as_dir in $PATH
17738
 
do
17739
 
  IFS=$as_save_IFS
17740
 
  test -z "$as_dir" && as_dir=.
17741
 
    for ac_exec_ext in '' $ac_executable_extensions; do
17742
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17743
 
    ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
17744
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17745
 
    break 2
17746
 
  fi
17747
 
done
17748
 
  done
17749
 
IFS=$as_save_IFS
17750
 
 
17751
 
  test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
17752
 
  ;;
17753
 
esac
17754
 
fi
17755
 
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
17756
 
if test -n "$ac_vmw_lib_cfg"; then
17757
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_vmw_lib_cfg" >&5
17758
 
$as_echo "$ac_vmw_lib_cfg" >&6; }
17759
 
else
17760
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17761
 
$as_echo "no" >&6; }
17762
 
fi
17763
 
 
17764
 
 
17765
 
      if test "$ac_vmw_lib_cfg" != "no"; then
17766
 
         # XXX: icu-config does not follow the "--cflags" and "--libs" convention,
17767
 
         # so single it out here to avoid having to replicate all the rest of the
17768
 
         # logic elsewhere.
17769
 
         if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
17770
 
            GOBJECT_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
17771
 
            GOBJECT_LIBS="`$ac_vmw_lib_cfg --ldflags`"
17772
 
         else
17773
 
            GOBJECT_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
17774
 
            GOBJECT_LIBS="`$ac_vmw_lib_cfg --libs`"
17775
 
         fi
17776
 
         ac_vmw_have_lib=1
17777
 
      fi
17778
 
   fi
17779
 
 
17780
 
   # Finish by executing the user provided action. The call to "true" is needed
17781
 
   # because the actions are optional, and we need something inside the block.
17782
 
   if test $ac_vmw_have_lib -eq 1; then
17783
 
 
17784
 
 
17785
 
      true
17786
 
 
17787
 
   else
17788
 
      true
17789
 
      as_fn_error $? "gobject >= 2.6.0 is required." "$LINENO" 5
17790
 
   fi
17791
 
 
17792
 
 
17793
 
 
17794
 
   if test -z "gthread-2.0"; then
17795
 
      as_fn_error $? "'library' parameter is required.'" "$LINENO" 5
17796
 
   fi
17797
 
   if test -z "GTHREAD"; then
17798
 
      as_fn_error $? "'lvar' parameter is required.'" "$LINENO" 5
17799
 
   fi
17800
 
 
17801
 
   ac_vmw_have_lib=0
17802
 
   ac_vmw_have_lib_func=0
17803
 
   ac_vmw_have_lib_header=0
17804
 
   ac_vmw_custom_libs=
17805
 
 
17806
 
   #
17807
 
   # First, try any user-defined CUSTOM_* flags.
17808
 
   #
17809
 
   if test -n "${CUSTOM_GTHREAD_CPPFLAGS}" || test -n "${CUSTOM_GTHREAD_LIBS}"; then
17810
 
      ac_vmw_custom_libs="${CUSTOM_GTHREAD_LIBS} -lgthread-2.0"
17811
 
      if test -n ""; then
17812
 
         ORIGINAL_CPPFLAGS="$CPPFLAGS"
17813
 
         CPPFLAGS="${CUSTOM_GTHREAD_CPPFLAGS} $CPPFLAGS"
17814
 
 
17815
 
         ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
17816
 
if test "x$ac_cv_header_" = xyes; then :
17817
 
  ac_vmw_have_lib_header=1
17818
 
fi
17819
 
 
17820
 
 
17821
 
 
17822
 
         CPPFLAGS="$ORIGINAL_CPPFLAGS"
17823
 
      else
17824
 
         ac_vmw_have_lib_header=1
17825
 
      fi
17826
 
 
17827
 
      # Check a specific function in the library if requested.
17828
 
      # If it hasn't, just pick a random function from libc, just to make
17829
 
      # sure the linker can find the library being tested.
17830
 
      if test $ac_vmw_have_lib_header -eq 1; then
17831
 
         if test -n ""; then
17832
 
            ac_vmw_function=
17833
 
         else
17834
 
            ac_vmw_function=strlen
17835
 
         fi
17836
 
         as_ac_Lib=`$as_echo "ac_cv_lib_gthread-2.0_$ac_vmw_function" | $as_tr_sh`
17837
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_vmw_function in -lgthread-2.0" >&5
17838
 
$as_echo_n "checking for $ac_vmw_function in -lgthread-2.0... " >&6; }
17839
 
if eval \${$as_ac_Lib+:} false; then :
17840
 
  $as_echo_n "(cached) " >&6
17841
 
else
17842
 
  ac_check_lib_save_LIBS=$LIBS
17843
 
LIBS="-lgthread-2.0 $ac_vmw_custom_libs $LIBS"
17844
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17845
 
/* end confdefs.h.  */
17846
 
 
17847
 
/* Override any GCC internal prototype to avoid an error.
17848
 
   Use char because int might match the return type of a GCC
17849
 
   builtin and then its argument prototype would still apply.  */
17850
 
#ifdef __cplusplus
17851
 
extern "C"
17852
 
#endif
17853
 
char $ac_vmw_function ();
17854
 
int
17855
 
main ()
17856
 
{
17857
 
return $ac_vmw_function ();
17858
 
  ;
17859
 
  return 0;
17860
 
}
17861
 
_ACEOF
17862
 
if ac_fn_c_try_link "$LINENO"; then :
17863
 
  eval "$as_ac_Lib=yes"
17864
 
else
17865
 
  eval "$as_ac_Lib=no"
17866
 
fi
17867
 
rm -f core conftest.err conftest.$ac_objext \
17868
 
    conftest$ac_exeext conftest.$ac_ext
17869
 
LIBS=$ac_check_lib_save_LIBS
17870
 
fi
17871
 
eval ac_res=\$$as_ac_Lib
17872
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17873
 
$as_echo "$ac_res" >&6; }
17874
 
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17875
 
  ac_vmw_have_lib_func=1
17876
 
fi
17877
 
 
17878
 
      fi
17879
 
 
17880
 
      if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
17881
 
         GTHREAD_CPPFLAGS="${CUSTOM_GTHREAD_CPPFLAGS}"
17882
 
         GTHREAD_LIBS="$ac_vmw_custom_libs"
17883
 
         ac_vmw_have_lib=1
17884
 
      fi
17885
 
   fi
17886
 
 
17887
 
   # If that didn't work, try with pkg-config.
17888
 
   if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n "gthread-2.0"; then
17889
 
      if test -n "2.6.0"; then
17890
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gthread-2.0 >= 2.6.0 (via pkg-config)" >&5
17891
 
$as_echo_n "checking for gthread-2.0 >= 2.6.0 (via pkg-config)... " >&6; }
17892
 
         if pkg-config --exists 'gthread-2.0 >= 2.6.0'; then
17893
 
            ac_vmw_have_lib=1
17894
 
         fi
17895
 
      else
17896
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gthread-2.0 (via pkg-config)" >&5
17897
 
$as_echo_n "checking for gthread-2.0 (via pkg-config)... " >&6; }
17898
 
         if pkg-config --exists 'gthread-2.0'; then
17899
 
            ac_vmw_have_lib=1
17900
 
         fi
17901
 
      fi
17902
 
 
17903
 
      if test $ac_vmw_have_lib -eq 1; then
17904
 
         # Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
17905
 
         # fails on OpenSolaris B71. So be pessimistic.
17906
 
         ac_vmw_cppflags="`pkg-config --cflags gthread-2.0`"
17907
 
         ac_vmw_ret1=$?
17908
 
         ac_vmw_libs="`pkg-config --libs gthread-2.0`"
17909
 
         ac_vmw_ret2=$?
17910
 
         if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
17911
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17912
 
$as_echo "yes" >&6; }
17913
 
            GTHREAD_CPPFLAGS="$ac_vmw_cppflags"
17914
 
            GTHREAD_LIBS="$ac_vmw_libs"
17915
 
         else
17916
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17917
 
$as_echo "no" >&6; }
17918
 
         fi
17919
 
      else
17920
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17921
 
$as_echo "no" >&6; }
17922
 
      fi
17923
 
   fi
17924
 
 
17925
 
   # If we still haven't found the lib, try with the library's custom "config" script.
17926
 
   # Before checking, flush the AC_PATH_PROG cached variable.
17927
 
   unset ac_cv_path_ac_vmw_lib_cfg
17928
 
   unset ac_vmw_lib_cfg
17929
 
   if test $ac_vmw_have_lib -eq 0 && test -n ""; then
17930
 
      # Extract the first word of "", so it can be a program name with args.
17931
 
set dummy ; ac_word=$2
17932
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17933
 
$as_echo_n "checking for $ac_word... " >&6; }
17934
 
if ${ac_cv_path_ac_vmw_lib_cfg+:} false; then :
17935
 
  $as_echo_n "(cached) " >&6
17936
 
else
17937
 
  case $ac_vmw_lib_cfg in
17938
 
  [\\/]* | ?:[\\/]*)
17939
 
  ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
17940
 
  ;;
17941
 
  *)
17942
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17943
 
for as_dir in $PATH
17944
 
do
17945
 
  IFS=$as_save_IFS
17946
 
  test -z "$as_dir" && as_dir=.
17947
 
    for ac_exec_ext in '' $ac_executable_extensions; do
17948
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17949
 
    ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
17950
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17951
 
    break 2
17952
 
  fi
17953
 
done
17954
 
  done
17955
 
IFS=$as_save_IFS
17956
 
 
17957
 
  test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
17958
 
  ;;
17959
 
esac
17960
 
fi
17961
 
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
17962
 
if test -n "$ac_vmw_lib_cfg"; then
17963
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_vmw_lib_cfg" >&5
17964
 
$as_echo "$ac_vmw_lib_cfg" >&6; }
17965
 
else
17966
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17967
 
$as_echo "no" >&6; }
17968
 
fi
17969
 
 
17970
 
 
17971
 
      if test "$ac_vmw_lib_cfg" != "no"; then
17972
 
         # XXX: icu-config does not follow the "--cflags" and "--libs" convention,
17973
 
         # so single it out here to avoid having to replicate all the rest of the
17974
 
         # logic elsewhere.
17975
 
         if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
17976
 
            GTHREAD_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
17977
 
            GTHREAD_LIBS="`$ac_vmw_lib_cfg --ldflags`"
17978
 
         else
17979
 
            GTHREAD_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
17980
 
            GTHREAD_LIBS="`$ac_vmw_lib_cfg --libs`"
17981
 
         fi
17982
 
         ac_vmw_have_lib=1
17983
 
      fi
17984
 
   fi
17985
 
 
17986
 
   # Finish by executing the user provided action. The call to "true" is needed
17987
 
   # because the actions are optional, and we need something inside the block.
17988
 
   if test $ac_vmw_have_lib -eq 1; then
17989
 
 
17990
 
 
17991
 
      true
17992
 
 
17993
 
   else
17994
 
      true
17995
 
      as_fn_error $? "glib >= 2.6.0 is required." "$LINENO" 5
17996
 
   fi
17997
 
 
17998
 
# Extract the first word of "glib-genmarshal", so it can be a program name with args.
17999
 
set dummy glib-genmarshal; ac_word=$2
18000
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18001
 
$as_echo_n "checking for $ac_word... " >&6; }
18002
 
if ${ac_cv_prog_have_genmarshal+:} false; then :
18003
 
  $as_echo_n "(cached) " >&6
18004
 
else
18005
 
  if test -n "$have_genmarshal"; then
18006
 
  ac_cv_prog_have_genmarshal="$have_genmarshal" # Let the user override the test.
18007
 
else
18008
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18009
 
for as_dir in $PATH
18010
 
do
18011
 
  IFS=$as_save_IFS
18012
 
  test -z "$as_dir" && as_dir=.
18013
 
    for ac_exec_ext in '' $ac_executable_extensions; do
18014
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18015
 
    ac_cv_prog_have_genmarshal="yes"
18016
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18017
 
    break 2
18018
 
  fi
18019
 
done
18020
 
  done
18021
 
IFS=$as_save_IFS
18022
 
 
18023
 
  test -z "$ac_cv_prog_have_genmarshal" && ac_cv_prog_have_genmarshal="no"
18024
 
fi
18025
 
fi
18026
 
have_genmarshal=$ac_cv_prog_have_genmarshal
18027
 
if test -n "$have_genmarshal"; then
18028
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_genmarshal" >&5
18029
 
$as_echo "$have_genmarshal" >&6; }
18030
 
else
18031
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18032
 
$as_echo "no" >&6; }
18033
 
fi
18034
 
 
18035
 
 
18036
 
 
18037
 
if test "$have_genmarshal" != "yes"; then
18038
 
   as_fn_error $? "glib-genmarshal is required; make sure it's available in your path." "$LINENO" 5
18039
 
fi
18040
 
 
18041
 
#
18042
 
# Parts of our Linux code require more recent version of glib
18043
 
#
18044
 
if test "$os" = "linux"; then
18045
 
 
18046
 
 
18047
 
   if test -z "glib-2.0"; then
18048
 
      as_fn_error $? "'library' parameter is required.'" "$LINENO" 5
18049
 
   fi
18050
 
   if test -z "GLIB2"; then
18051
 
      as_fn_error $? "'lvar' parameter is required.'" "$LINENO" 5
18052
 
   fi
18053
 
 
18054
 
   ac_vmw_have_lib=0
18055
 
   ac_vmw_have_lib_func=0
18056
 
   ac_vmw_have_lib_header=0
18057
 
   ac_vmw_custom_libs=
18058
 
 
18059
 
   #
18060
 
   # First, try any user-defined CUSTOM_* flags.
18061
 
   #
18062
 
   if test -n "${CUSTOM_GLIB2_CPPFLAGS}" || test -n "${CUSTOM_GLIB2_LIBS}"; then
18063
 
      ac_vmw_custom_libs="${CUSTOM_GLIB2_LIBS} -lglib-2.0"
18064
 
      if test -n "glib.h"; then
18065
 
         ORIGINAL_CPPFLAGS="$CPPFLAGS"
18066
 
         CPPFLAGS="${CUSTOM_GLIB2_CPPFLAGS} $CPPFLAGS"
18067
 
 
18068
 
         ac_fn_c_check_header_mongrel "$LINENO" "glib.h" "ac_cv_header_glib_h" "$ac_includes_default"
18069
 
if test "x$ac_cv_header_glib_h" = xyes; then :
18070
 
  ac_vmw_have_lib_header=1
18071
 
fi
18072
 
 
18073
 
 
18074
 
 
18075
 
         CPPFLAGS="$ORIGINAL_CPPFLAGS"
18076
 
      else
18077
 
         ac_vmw_have_lib_header=1
18078
 
      fi
18079
 
 
18080
 
      # Check a specific function in the library if requested.
18081
 
      # If it hasn't, just pick a random function from libc, just to make
18082
 
      # sure the linker can find the library being tested.
18083
 
      if test $ac_vmw_have_lib_header -eq 1; then
18084
 
         if test -n "g_regex_new"; then
18085
 
            ac_vmw_function=g_regex_new
18086
 
         else
18087
 
            ac_vmw_function=strlen
18088
 
         fi
18089
 
         as_ac_Lib=`$as_echo "ac_cv_lib_glib-2.0_$ac_vmw_function" | $as_tr_sh`
18090
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_vmw_function in -lglib-2.0" >&5
18091
 
$as_echo_n "checking for $ac_vmw_function in -lglib-2.0... " >&6; }
18092
 
if eval \${$as_ac_Lib+:} false; then :
18093
 
  $as_echo_n "(cached) " >&6
18094
 
else
18095
 
  ac_check_lib_save_LIBS=$LIBS
18096
 
LIBS="-lglib-2.0 $ac_vmw_custom_libs $LIBS"
18097
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18098
 
/* end confdefs.h.  */
18099
 
 
18100
 
/* Override any GCC internal prototype to avoid an error.
18101
 
   Use char because int might match the return type of a GCC
18102
 
   builtin and then its argument prototype would still apply.  */
18103
 
#ifdef __cplusplus
18104
 
extern "C"
18105
 
#endif
18106
 
char $ac_vmw_function ();
18107
 
int
18108
 
main ()
18109
 
{
18110
 
return $ac_vmw_function ();
18111
 
  ;
18112
 
  return 0;
18113
 
}
18114
 
_ACEOF
18115
 
if ac_fn_c_try_link "$LINENO"; then :
18116
 
  eval "$as_ac_Lib=yes"
18117
 
else
18118
 
  eval "$as_ac_Lib=no"
18119
 
fi
18120
 
rm -f core conftest.err conftest.$ac_objext \
18121
 
    conftest$ac_exeext conftest.$ac_ext
18122
 
LIBS=$ac_check_lib_save_LIBS
18123
 
fi
18124
 
eval ac_res=\$$as_ac_Lib
18125
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18126
 
$as_echo "$ac_res" >&6; }
18127
 
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18128
 
  ac_vmw_have_lib_func=1
18129
 
fi
18130
 
 
18131
 
      fi
18132
 
 
18133
 
      if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
18134
 
         GLIB2_CPPFLAGS="${CUSTOM_GLIB2_CPPFLAGS}"
18135
 
         GLIB2_LIBS="$ac_vmw_custom_libs"
18136
 
         ac_vmw_have_lib=1
18137
 
      fi
18138
 
   fi
18139
 
 
18140
 
   # If that didn't work, try with pkg-config.
18141
 
   if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n "glib-2.0"; then
18142
 
      if test -n "2.14.0"; then
18143
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.14.0 (via pkg-config)" >&5
18144
 
$as_echo_n "checking for glib-2.0 >= 2.14.0 (via pkg-config)... " >&6; }
18145
 
         if pkg-config --exists 'glib-2.0 >= 2.14.0'; then
18146
 
            ac_vmw_have_lib=1
18147
 
         fi
18148
 
      else
18149
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 (via pkg-config)" >&5
18150
 
$as_echo_n "checking for glib-2.0 (via pkg-config)... " >&6; }
18151
 
         if pkg-config --exists 'glib-2.0'; then
18152
 
            ac_vmw_have_lib=1
18153
 
         fi
18154
 
      fi
18155
 
 
18156
 
      if test $ac_vmw_have_lib -eq 1; then
18157
 
         # Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
18158
 
         # fails on OpenSolaris B71. So be pessimistic.
18159
 
         ac_vmw_cppflags="`pkg-config --cflags glib-2.0`"
18160
 
         ac_vmw_ret1=$?
18161
 
         ac_vmw_libs="`pkg-config --libs glib-2.0`"
18162
 
         ac_vmw_ret2=$?
18163
 
         if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
18164
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18165
 
$as_echo "yes" >&6; }
18166
 
            GLIB2_CPPFLAGS="$ac_vmw_cppflags"
18167
 
            GLIB2_LIBS="$ac_vmw_libs"
18168
 
         else
18169
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18170
 
$as_echo "no" >&6; }
18171
 
         fi
18172
 
      else
18173
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18174
 
$as_echo "no" >&6; }
18175
 
      fi
18176
 
   fi
18177
 
 
18178
 
   # If we still haven't found the lib, try with the library's custom "config" script.
18179
 
   # Before checking, flush the AC_PATH_PROG cached variable.
18180
 
   unset ac_cv_path_ac_vmw_lib_cfg
18181
 
   unset ac_vmw_lib_cfg
18182
 
   if test $ac_vmw_have_lib -eq 0 && test -n ""; then
18183
 
      # Extract the first word of "", so it can be a program name with args.
18184
 
set dummy ; ac_word=$2
18185
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18186
 
$as_echo_n "checking for $ac_word... " >&6; }
18187
 
if ${ac_cv_path_ac_vmw_lib_cfg+:} false; then :
18188
 
  $as_echo_n "(cached) " >&6
18189
 
else
18190
 
  case $ac_vmw_lib_cfg in
18191
 
  [\\/]* | ?:[\\/]*)
18192
 
  ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
18193
 
  ;;
18194
 
  *)
18195
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18196
 
for as_dir in $PATH
18197
 
do
18198
 
  IFS=$as_save_IFS
18199
 
  test -z "$as_dir" && as_dir=.
18200
 
    for ac_exec_ext in '' $ac_executable_extensions; do
18201
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18202
 
    ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
18203
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18204
 
    break 2
18205
 
  fi
18206
 
done
18207
 
  done
18208
 
IFS=$as_save_IFS
18209
 
 
18210
 
  test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
18211
 
  ;;
18212
 
esac
18213
 
fi
18214
 
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
18215
 
if test -n "$ac_vmw_lib_cfg"; then
18216
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_vmw_lib_cfg" >&5
18217
 
$as_echo "$ac_vmw_lib_cfg" >&6; }
18218
 
else
18219
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18220
 
$as_echo "no" >&6; }
18221
 
fi
18222
 
 
18223
 
 
18224
 
      if test "$ac_vmw_lib_cfg" != "no"; then
18225
 
         # XXX: icu-config does not follow the "--cflags" and "--libs" convention,
18226
 
         # so single it out here to avoid having to replicate all the rest of the
18227
 
         # logic elsewhere.
18228
 
         if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
18229
 
            GLIB2_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
18230
 
            GLIB2_LIBS="`$ac_vmw_lib_cfg --ldflags`"
18231
 
         else
18232
 
            GLIB2_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
18233
 
            GLIB2_LIBS="`$ac_vmw_lib_cfg --libs`"
18234
 
         fi
18235
 
         ac_vmw_have_lib=1
18236
 
      fi
18237
 
   fi
18238
 
 
18239
 
   # Finish by executing the user provided action. The call to "true" is needed
18240
 
   # because the actions are optional, and we need something inside the block.
18241
 
   if test $ac_vmw_have_lib -eq 1; then
18242
 
 
18243
 
 
18244
 
      true
18245
 
      have_glib_2_14=yes
18246
 
   else
18247
 
      true
18248
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: glib is not recent enough, some features will be disabled." >&5
18249
 
$as_echo "$as_me: WARNING: glib is not recent enough, some features will be disabled." >&2;}
18250
 
   fi
18251
 
 
18252
 
fi
18253
 
 
18254
 
#
18255
 
# Check for fuse.
18256
 
#
18257
 
 
18258
 
 
18259
 
   if test -z "fuse"; then
18260
 
      as_fn_error $? "'library' parameter is required.'" "$LINENO" 5
18261
 
   fi
18262
 
   if test -z "FUSE"; then
18263
 
      as_fn_error $? "'lvar' parameter is required.'" "$LINENO" 5
18264
 
   fi
18265
 
 
18266
 
   ac_vmw_have_lib=0
18267
 
   ac_vmw_have_lib_func=0
18268
 
   ac_vmw_have_lib_header=0
18269
 
   ac_vmw_custom_libs=
18270
 
 
18271
 
   #
18272
 
   # First, try any user-defined CUSTOM_* flags.
18273
 
   #
18274
 
   if test -n "${CUSTOM_FUSE_CPPFLAGS}" || test -n "${CUSTOM_FUSE_LIBS}"; then
18275
 
      ac_vmw_custom_libs="${CUSTOM_FUSE_LIBS} -lfuse"
18276
 
      if test -n "fuse.h"; then
18277
 
         ORIGINAL_CPPFLAGS="$CPPFLAGS"
18278
 
         CPPFLAGS="${CUSTOM_FUSE_CPPFLAGS} $CPPFLAGS"
18279
 
 
18280
 
         ac_fn_c_check_header_mongrel "$LINENO" "fuse.h" "ac_cv_header_fuse_h" "$ac_includes_default"
18281
 
if test "x$ac_cv_header_fuse_h" = xyes; then :
18282
 
  ac_vmw_have_lib_header=1
18283
 
fi
18284
 
 
18285
 
 
18286
 
 
18287
 
         CPPFLAGS="$ORIGINAL_CPPFLAGS"
18288
 
      else
18289
 
         ac_vmw_have_lib_header=1
18290
 
      fi
18291
 
 
18292
 
      # Check a specific function in the library if requested.
18293
 
      # If it hasn't, just pick a random function from libc, just to make
18294
 
      # sure the linker can find the library being tested.
18295
 
      if test $ac_vmw_have_lib_header -eq 1; then
18296
 
         if test -n "fuse_main"; then
18297
 
            ac_vmw_function=fuse_main
18298
 
         else
18299
 
            ac_vmw_function=strlen
18300
 
         fi
18301
 
         as_ac_Lib=`$as_echo "ac_cv_lib_fuse_$ac_vmw_function" | $as_tr_sh`
18302
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_vmw_function in -lfuse" >&5
18303
 
$as_echo_n "checking for $ac_vmw_function in -lfuse... " >&6; }
18304
 
if eval \${$as_ac_Lib+:} false; then :
18305
 
  $as_echo_n "(cached) " >&6
18306
 
else
18307
 
  ac_check_lib_save_LIBS=$LIBS
18308
 
LIBS="-lfuse $ac_vmw_custom_libs $LIBS"
18309
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18310
 
/* end confdefs.h.  */
18311
 
 
18312
 
/* Override any GCC internal prototype to avoid an error.
18313
 
   Use char because int might match the return type of a GCC
18314
 
   builtin and then its argument prototype would still apply.  */
18315
 
#ifdef __cplusplus
18316
 
extern "C"
18317
 
#endif
18318
 
char $ac_vmw_function ();
18319
 
int
18320
 
main ()
18321
 
{
18322
 
return $ac_vmw_function ();
18323
 
  ;
18324
 
  return 0;
18325
 
}
18326
 
_ACEOF
18327
 
if ac_fn_c_try_link "$LINENO"; then :
18328
 
  eval "$as_ac_Lib=yes"
18329
 
else
18330
 
  eval "$as_ac_Lib=no"
18331
 
fi
18332
 
rm -f core conftest.err conftest.$ac_objext \
18333
 
    conftest$ac_exeext conftest.$ac_ext
18334
 
LIBS=$ac_check_lib_save_LIBS
18335
 
fi
18336
 
eval ac_res=\$$as_ac_Lib
18337
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18338
 
$as_echo "$ac_res" >&6; }
18339
 
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18340
 
  ac_vmw_have_lib_func=1
18341
 
fi
18342
 
 
18343
 
      fi
18344
 
 
18345
 
      if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
18346
 
         FUSE_CPPFLAGS="${CUSTOM_FUSE_CPPFLAGS}"
18347
 
         FUSE_LIBS="$ac_vmw_custom_libs"
18348
 
         ac_vmw_have_lib=1
18349
 
      fi
18350
 
   fi
18351
 
 
18352
 
   # If that didn't work, try with pkg-config.
18353
 
   if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n "fuse"; then
18354
 
      if test -n ""; then
18355
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse >=  (via pkg-config)" >&5
18356
 
$as_echo_n "checking for fuse >=  (via pkg-config)... " >&6; }
18357
 
         if pkg-config --exists 'fuse >= '; then
18358
 
            ac_vmw_have_lib=1
18359
 
         fi
18360
 
      else
18361
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse (via pkg-config)" >&5
18362
 
$as_echo_n "checking for fuse (via pkg-config)... " >&6; }
18363
 
         if pkg-config --exists 'fuse'; then
18364
 
            ac_vmw_have_lib=1
18365
 
         fi
18366
 
      fi
18367
 
 
18368
 
      if test $ac_vmw_have_lib -eq 1; then
18369
 
         # Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
18370
 
         # fails on OpenSolaris B71. So be pessimistic.
18371
 
         ac_vmw_cppflags="`pkg-config --cflags fuse`"
18372
 
         ac_vmw_ret1=$?
18373
 
         ac_vmw_libs="`pkg-config --libs fuse`"
18374
 
         ac_vmw_ret2=$?
18375
 
         if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
18376
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18377
 
$as_echo "yes" >&6; }
18378
 
            FUSE_CPPFLAGS="$ac_vmw_cppflags"
18379
 
            FUSE_LIBS="$ac_vmw_libs"
18380
 
         else
18381
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18382
 
$as_echo "no" >&6; }
18383
 
         fi
18384
 
      else
18385
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18386
 
$as_echo "no" >&6; }
18387
 
      fi
18388
 
   fi
18389
 
 
18390
 
   # If we still haven't found the lib, try with the library's custom "config" script.
18391
 
   # Before checking, flush the AC_PATH_PROG cached variable.
18392
 
   unset ac_cv_path_ac_vmw_lib_cfg
18393
 
   unset ac_vmw_lib_cfg
18394
 
   if test $ac_vmw_have_lib -eq 0 && test -n ""; then
18395
 
      # Extract the first word of "", so it can be a program name with args.
18396
 
set dummy ; ac_word=$2
18397
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18398
 
$as_echo_n "checking for $ac_word... " >&6; }
18399
 
if ${ac_cv_path_ac_vmw_lib_cfg+:} false; then :
18400
 
  $as_echo_n "(cached) " >&6
18401
 
else
18402
 
  case $ac_vmw_lib_cfg in
18403
 
  [\\/]* | ?:[\\/]*)
18404
 
  ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
18405
 
  ;;
18406
 
  *)
18407
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18408
 
for as_dir in $PATH
18409
 
do
18410
 
  IFS=$as_save_IFS
18411
 
  test -z "$as_dir" && as_dir=.
18412
 
    for ac_exec_ext in '' $ac_executable_extensions; do
18413
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18414
 
    ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
18415
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18416
 
    break 2
18417
 
  fi
18418
 
done
18419
 
  done
18420
 
IFS=$as_save_IFS
18421
 
 
18422
 
  test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
18423
 
  ;;
18424
 
esac
18425
 
fi
18426
 
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
18427
 
if test -n "$ac_vmw_lib_cfg"; then
18428
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_vmw_lib_cfg" >&5
18429
 
$as_echo "$ac_vmw_lib_cfg" >&6; }
18430
 
else
18431
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18432
 
$as_echo "no" >&6; }
18433
 
fi
18434
 
 
18435
 
 
18436
 
      if test "$ac_vmw_lib_cfg" != "no"; then
18437
 
         # XXX: icu-config does not follow the "--cflags" and "--libs" convention,
18438
 
         # so single it out here to avoid having to replicate all the rest of the
18439
 
         # logic elsewhere.
18440
 
         if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
18441
 
            FUSE_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
18442
 
            FUSE_LIBS="`$ac_vmw_lib_cfg --ldflags`"
18443
 
         else
18444
 
            FUSE_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
18445
 
            FUSE_LIBS="`$ac_vmw_lib_cfg --libs`"
18446
 
         fi
18447
 
         ac_vmw_have_lib=1
18448
 
      fi
18449
 
   fi
18450
 
 
18451
 
   # Finish by executing the user provided action. The call to "true" is needed
18452
 
   # because the actions are optional, and we need something inside the block.
18453
 
   if test $ac_vmw_have_lib -eq 1; then
18454
 
 
18455
 
 
18456
 
      true
18457
 
      have_fuse=yes
18458
 
   else
18459
 
      true
18460
 
      have_fuse=no;
18461
 
                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Fuse is missing, vmblock-fuse will be disabled." >&5
18462
 
$as_echo "$as_me: WARNING: Fuse is missing, vmblock-fuse will be disabled." >&2;}
18463
 
   fi
18464
 
 
18465
 
 
18466
 
#
18467
 
# Check for PAM.
18468
 
#
18469
 
 
18470
 
# Check whether --with-pam was given.
18471
 
if test "${with_pam+set}" = set; then :
18472
 
  withval=$with_pam;
18473
 
else
18474
 
  with_pam=yes
18475
 
fi
18476
 
 
18477
 
 
18478
 
if test "$with_pam" = "yes"; then
18479
 
 
18480
 
   if test -z "$CUSTOM_PAM_CPPFLAGS"; then
18481
 
      if test "$os" = freebsd; then
18482
 
         CUSTOM_PAM_CPPFLAGS="-I/usr/local/include"
18483
 
      else
18484
 
         CUSTOM_PAM_CPPFLAGS="-I/usr/include"
18485
 
      fi
18486
 
      if test -n ""; then
18487
 
         CUSTOM_PAM_CPPFLAGS="${CUSTOM_PAM_CPPFLAGS}/"
18488
 
      fi
18489
 
   fi
18490
 
 
18491
 
 
18492
 
 
18493
 
   if test -z "pam"; then
18494
 
      as_fn_error $? "'library' parameter is required.'" "$LINENO" 5
18495
 
   fi
18496
 
   if test -z "PAM"; then
18497
 
      as_fn_error $? "'lvar' parameter is required.'" "$LINENO" 5
18498
 
   fi
18499
 
 
18500
 
   ac_vmw_have_lib=0
18501
 
   ac_vmw_have_lib_func=0
18502
 
   ac_vmw_have_lib_header=0
18503
 
   ac_vmw_custom_libs=
18504
 
 
18505
 
   #
18506
 
   # First, try any user-defined CUSTOM_* flags.
18507
 
   #
18508
 
   if test -n "${CUSTOM_PAM_CPPFLAGS}" || test -n "${CUSTOM_PAM_LIBS}"; then
18509
 
      ac_vmw_custom_libs="${CUSTOM_PAM_LIBS} -lpam"
18510
 
      if test -n "security/pam_appl.h"; then
18511
 
         ORIGINAL_CPPFLAGS="$CPPFLAGS"
18512
 
         CPPFLAGS="${CUSTOM_PAM_CPPFLAGS} $CPPFLAGS"
18513
 
 
18514
 
         ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
18515
 
if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
18516
 
  ac_vmw_have_lib_header=1
18517
 
fi
18518
 
 
18519
 
 
18520
 
 
18521
 
         CPPFLAGS="$ORIGINAL_CPPFLAGS"
18522
 
      else
18523
 
         ac_vmw_have_lib_header=1
18524
 
      fi
18525
 
 
18526
 
      # Check a specific function in the library if requested.
18527
 
      # If it hasn't, just pick a random function from libc, just to make
18528
 
      # sure the linker can find the library being tested.
18529
 
      if test $ac_vmw_have_lib_header -eq 1; then
18530
 
         if test -n "pam_start"; then
18531
 
            ac_vmw_function=pam_start
18532
 
         else
18533
 
            ac_vmw_function=strlen
18534
 
         fi
18535
 
         as_ac_Lib=`$as_echo "ac_cv_lib_pam_$ac_vmw_function" | $as_tr_sh`
18536
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_vmw_function in -lpam" >&5
18537
 
$as_echo_n "checking for $ac_vmw_function in -lpam... " >&6; }
18538
 
if eval \${$as_ac_Lib+:} false; then :
18539
 
  $as_echo_n "(cached) " >&6
18540
 
else
18541
 
  ac_check_lib_save_LIBS=$LIBS
18542
 
LIBS="-lpam $ac_vmw_custom_libs $LIBS"
18543
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18544
 
/* end confdefs.h.  */
18545
 
 
18546
 
/* Override any GCC internal prototype to avoid an error.
18547
 
   Use char because int might match the return type of a GCC
18548
 
   builtin and then its argument prototype would still apply.  */
18549
 
#ifdef __cplusplus
18550
 
extern "C"
18551
 
#endif
18552
 
char $ac_vmw_function ();
18553
 
int
18554
 
main ()
18555
 
{
18556
 
return $ac_vmw_function ();
18557
 
  ;
18558
 
  return 0;
18559
 
}
18560
 
_ACEOF
18561
 
if ac_fn_c_try_link "$LINENO"; then :
18562
 
  eval "$as_ac_Lib=yes"
18563
 
else
18564
 
  eval "$as_ac_Lib=no"
18565
 
fi
18566
 
rm -f core conftest.err conftest.$ac_objext \
18567
 
    conftest$ac_exeext conftest.$ac_ext
18568
 
LIBS=$ac_check_lib_save_LIBS
18569
 
fi
18570
 
eval ac_res=\$$as_ac_Lib
18571
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18572
 
$as_echo "$ac_res" >&6; }
18573
 
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18574
 
  ac_vmw_have_lib_func=1
18575
 
fi
18576
 
 
18577
 
      fi
18578
 
 
18579
 
      if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
18580
 
         PAM_CPPFLAGS="${CUSTOM_PAM_CPPFLAGS}"
18581
 
         PAM_LIBS="$ac_vmw_custom_libs"
18582
 
         ac_vmw_have_lib=1
18583
 
      fi
18584
 
   fi
18585
 
 
18586
 
   # If that didn't work, try with pkg-config.
18587
 
   if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n ""; then
18588
 
      if test -n ""; then
18589
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for  >=  (via pkg-config)" >&5
18590
 
$as_echo_n "checking for  >=  (via pkg-config)... " >&6; }
18591
 
         if pkg-config --exists ' >= '; then
18592
 
            ac_vmw_have_lib=1
18593
 
         fi
18594
 
      else
18595
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for  (via pkg-config)" >&5
18596
 
$as_echo_n "checking for  (via pkg-config)... " >&6; }
18597
 
         if pkg-config --exists ''; then
18598
 
            ac_vmw_have_lib=1
18599
 
         fi
18600
 
      fi
18601
 
 
18602
 
      if test $ac_vmw_have_lib -eq 1; then
18603
 
         # Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
18604
 
         # fails on OpenSolaris B71. So be pessimistic.
18605
 
         ac_vmw_cppflags="`pkg-config --cflags `"
18606
 
         ac_vmw_ret1=$?
18607
 
         ac_vmw_libs="`pkg-config --libs `"
18608
 
         ac_vmw_ret2=$?
18609
 
         if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
18610
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18611
 
$as_echo "yes" >&6; }
18612
 
            PAM_CPPFLAGS="$ac_vmw_cppflags"
18613
 
            PAM_LIBS="$ac_vmw_libs"
18614
 
         else
18615
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18616
 
$as_echo "no" >&6; }
18617
 
         fi
18618
 
      else
18619
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18620
 
$as_echo "no" >&6; }
18621
 
      fi
18622
 
   fi
18623
 
 
18624
 
   # If we still haven't found the lib, try with the library's custom "config" script.
18625
 
   # Before checking, flush the AC_PATH_PROG cached variable.
18626
 
   unset ac_cv_path_ac_vmw_lib_cfg
18627
 
   unset ac_vmw_lib_cfg
18628
 
   if test $ac_vmw_have_lib -eq 0 && test -n ""; then
18629
 
      # Extract the first word of "", so it can be a program name with args.
18630
 
set dummy ; ac_word=$2
18631
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18632
 
$as_echo_n "checking for $ac_word... " >&6; }
18633
 
if ${ac_cv_path_ac_vmw_lib_cfg+:} false; then :
18634
 
  $as_echo_n "(cached) " >&6
18635
 
else
18636
 
  case $ac_vmw_lib_cfg in
18637
 
  [\\/]* | ?:[\\/]*)
18638
 
  ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
18639
 
  ;;
18640
 
  *)
18641
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18642
 
for as_dir in $PATH
18643
 
do
18644
 
  IFS=$as_save_IFS
18645
 
  test -z "$as_dir" && as_dir=.
18646
 
    for ac_exec_ext in '' $ac_executable_extensions; do
18647
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18648
 
    ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
18649
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18650
 
    break 2
18651
 
  fi
18652
 
done
18653
 
  done
18654
 
IFS=$as_save_IFS
18655
 
 
18656
 
  test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
18657
 
  ;;
18658
 
esac
18659
 
fi
18660
 
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
18661
 
if test -n "$ac_vmw_lib_cfg"; then
18662
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_vmw_lib_cfg" >&5
18663
 
$as_echo "$ac_vmw_lib_cfg" >&6; }
18664
 
else
18665
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18666
 
$as_echo "no" >&6; }
18667
 
fi
18668
 
 
18669
 
 
18670
 
      if test "$ac_vmw_lib_cfg" != "no"; then
18671
 
         # XXX: icu-config does not follow the "--cflags" and "--libs" convention,
18672
 
         # so single it out here to avoid having to replicate all the rest of the
18673
 
         # logic elsewhere.
18674
 
         if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
18675
 
            PAM_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
18676
 
            PAM_LIBS="`$ac_vmw_lib_cfg --ldflags`"
18677
 
         else
18678
 
            PAM_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
18679
 
            PAM_LIBS="`$ac_vmw_lib_cfg --libs`"
18680
 
         fi
18681
 
         ac_vmw_have_lib=1
18682
 
      fi
18683
 
   fi
18684
 
 
18685
 
   # Finish by executing the user provided action. The call to "true" is needed
18686
 
   # because the actions are optional, and we need something inside the block.
18687
 
   if test $ac_vmw_have_lib -eq 1; then
18688
 
 
18689
 
 
18690
 
      true
18691
 
      PAM_CPPFLAGS="$PAM_CPPFLAGS -DUSE_PAM"
18692
 
   else
18693
 
      true
18694
 
 
18695
 
   feature=""
18696
 
   if test -z "$feature"; then
18697
 
      feature="PAM"
18698
 
   fi
18699
 
   as_fn_error $? "Cannot find PAM library. Please configure without $feature (using --without-pam), or install the PAM libraries and devel package(s)." "$LINENO" 5
18700
 
 
18701
 
   fi
18702
 
 
18703
 
fi
18704
 
 
18705
 
#
18706
 
# Check for CUnit and disable test code if not available.
18707
 
#
18708
 
if test "$enable_tests" = "auto" -o "$enable_tests" = "yes"; then
18709
 
 
18710
 
   if test -z "$CUSTOM_CUNIT_CPPFLAGS"; then
18711
 
      if test "$os" = freebsd; then
18712
 
         CUSTOM_CUNIT_CPPFLAGS="-I/usr/local/include"
18713
 
      else
18714
 
         CUSTOM_CUNIT_CPPFLAGS="-I/usr/include"
18715
 
      fi
18716
 
      if test -n ""; then
18717
 
         CUSTOM_CUNIT_CPPFLAGS="${CUSTOM_CUNIT_CPPFLAGS}/"
18718
 
      fi
18719
 
   fi
18720
 
 
18721
 
 
18722
 
 
18723
 
   if test -z "cunit"; then
18724
 
      as_fn_error $? "'library' parameter is required.'" "$LINENO" 5
18725
 
   fi
18726
 
   if test -z "CUNIT"; then
18727
 
      as_fn_error $? "'lvar' parameter is required.'" "$LINENO" 5
18728
 
   fi
18729
 
 
18730
 
   ac_vmw_have_lib=0
18731
 
   ac_vmw_have_lib_func=0
18732
 
   ac_vmw_have_lib_header=0
18733
 
   ac_vmw_custom_libs=
18734
 
 
18735
 
   #
18736
 
   # First, try any user-defined CUSTOM_* flags.
18737
 
   #
18738
 
   if test -n "${CUSTOM_CUNIT_CPPFLAGS}" || test -n "${CUSTOM_CUNIT_LIBS}"; then
18739
 
      ac_vmw_custom_libs="${CUSTOM_CUNIT_LIBS} -lcunit"
18740
 
      if test -n "CUnit/CUnit.h"; then
18741
 
         ORIGINAL_CPPFLAGS="$CPPFLAGS"
18742
 
         CPPFLAGS="${CUSTOM_CUNIT_CPPFLAGS} $CPPFLAGS"
18743
 
 
18744
 
         ac_fn_c_check_header_mongrel "$LINENO" "CUnit/CUnit.h" "ac_cv_header_CUnit_CUnit_h" "$ac_includes_default"
18745
 
if test "x$ac_cv_header_CUnit_CUnit_h" = xyes; then :
18746
 
  ac_vmw_have_lib_header=1
18747
 
fi
18748
 
 
18749
 
 
18750
 
 
18751
 
         CPPFLAGS="$ORIGINAL_CPPFLAGS"
18752
 
      else
18753
 
         ac_vmw_have_lib_header=1
18754
 
      fi
18755
 
 
18756
 
      # Check a specific function in the library if requested.
18757
 
      # If it hasn't, just pick a random function from libc, just to make
18758
 
      # sure the linker can find the library being tested.
18759
 
      if test $ac_vmw_have_lib_header -eq 1; then
18760
 
         if test -n "CU_initialize_registry"; then
18761
 
            ac_vmw_function=CU_initialize_registry
18762
 
         else
18763
 
            ac_vmw_function=strlen
18764
 
         fi
18765
 
         as_ac_Lib=`$as_echo "ac_cv_lib_cunit_$ac_vmw_function" | $as_tr_sh`
18766
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_vmw_function in -lcunit" >&5
18767
 
$as_echo_n "checking for $ac_vmw_function in -lcunit... " >&6; }
18768
 
if eval \${$as_ac_Lib+:} false; then :
18769
 
  $as_echo_n "(cached) " >&6
18770
 
else
18771
 
  ac_check_lib_save_LIBS=$LIBS
18772
 
LIBS="-lcunit $ac_vmw_custom_libs $LIBS"
18773
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18774
 
/* end confdefs.h.  */
18775
 
 
18776
 
/* Override any GCC internal prototype to avoid an error.
18777
 
   Use char because int might match the return type of a GCC
18778
 
   builtin and then its argument prototype would still apply.  */
18779
 
#ifdef __cplusplus
18780
 
extern "C"
18781
 
#endif
18782
 
char $ac_vmw_function ();
18783
 
int
18784
 
main ()
18785
 
{
18786
 
return $ac_vmw_function ();
18787
 
  ;
18788
 
  return 0;
18789
 
}
18790
 
_ACEOF
18791
 
if ac_fn_c_try_link "$LINENO"; then :
18792
 
  eval "$as_ac_Lib=yes"
18793
 
else
18794
 
  eval "$as_ac_Lib=no"
18795
 
fi
18796
 
rm -f core conftest.err conftest.$ac_objext \
18797
 
    conftest$ac_exeext conftest.$ac_ext
18798
 
LIBS=$ac_check_lib_save_LIBS
18799
 
fi
18800
 
eval ac_res=\$$as_ac_Lib
18801
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18802
 
$as_echo "$ac_res" >&6; }
18803
 
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18804
 
  ac_vmw_have_lib_func=1
18805
 
fi
18806
 
 
18807
 
      fi
18808
 
 
18809
 
      if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
18810
 
         CUNIT_CPPFLAGS="${CUSTOM_CUNIT_CPPFLAGS}"
18811
 
         CUNIT_LIBS="$ac_vmw_custom_libs"
18812
 
         ac_vmw_have_lib=1
18813
 
      fi
18814
 
   fi
18815
 
 
18816
 
   # If that didn't work, try with pkg-config.
18817
 
   if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n ""; then
18818
 
      if test -n ""; then
18819
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for  >=  (via pkg-config)" >&5
18820
 
$as_echo_n "checking for  >=  (via pkg-config)... " >&6; }
18821
 
         if pkg-config --exists ' >= '; then
18822
 
            ac_vmw_have_lib=1
18823
 
         fi
18824
 
      else
18825
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for  (via pkg-config)" >&5
18826
 
$as_echo_n "checking for  (via pkg-config)... " >&6; }
18827
 
         if pkg-config --exists ''; then
18828
 
            ac_vmw_have_lib=1
18829
 
         fi
18830
 
      fi
18831
 
 
18832
 
      if test $ac_vmw_have_lib -eq 1; then
18833
 
         # Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
18834
 
         # fails on OpenSolaris B71. So be pessimistic.
18835
 
         ac_vmw_cppflags="`pkg-config --cflags `"
18836
 
         ac_vmw_ret1=$?
18837
 
         ac_vmw_libs="`pkg-config --libs `"
18838
 
         ac_vmw_ret2=$?
18839
 
         if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
18840
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18841
 
$as_echo "yes" >&6; }
18842
 
            CUNIT_CPPFLAGS="$ac_vmw_cppflags"
18843
 
            CUNIT_LIBS="$ac_vmw_libs"
18844
 
         else
18845
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18846
 
$as_echo "no" >&6; }
18847
 
         fi
18848
 
      else
18849
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18850
 
$as_echo "no" >&6; }
18851
 
      fi
18852
 
   fi
18853
 
 
18854
 
   # If we still haven't found the lib, try with the library's custom "config" script.
18855
 
   # Before checking, flush the AC_PATH_PROG cached variable.
18856
 
   unset ac_cv_path_ac_vmw_lib_cfg
18857
 
   unset ac_vmw_lib_cfg
18858
 
   if test $ac_vmw_have_lib -eq 0 && test -n ""; then
18859
 
      # Extract the first word of "", so it can be a program name with args.
18860
 
set dummy ; ac_word=$2
18861
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18862
 
$as_echo_n "checking for $ac_word... " >&6; }
18863
 
if ${ac_cv_path_ac_vmw_lib_cfg+:} false; then :
18864
 
  $as_echo_n "(cached) " >&6
18865
 
else
18866
 
  case $ac_vmw_lib_cfg in
18867
 
  [\\/]* | ?:[\\/]*)
18868
 
  ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
18869
 
  ;;
18870
 
  *)
18871
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18872
 
for as_dir in $PATH
18873
 
do
18874
 
  IFS=$as_save_IFS
18875
 
  test -z "$as_dir" && as_dir=.
18876
 
    for ac_exec_ext in '' $ac_executable_extensions; do
18877
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18878
 
    ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
18879
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18880
 
    break 2
18881
 
  fi
18882
 
done
18883
 
  done
18884
 
IFS=$as_save_IFS
18885
 
 
18886
 
  test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
18887
 
  ;;
18888
 
esac
18889
 
fi
18890
 
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
18891
 
if test -n "$ac_vmw_lib_cfg"; then
18892
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_vmw_lib_cfg" >&5
18893
 
$as_echo "$ac_vmw_lib_cfg" >&6; }
18894
 
else
18895
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18896
 
$as_echo "no" >&6; }
18897
 
fi
18898
 
 
18899
 
 
18900
 
      if test "$ac_vmw_lib_cfg" != "no"; then
18901
 
         # XXX: icu-config does not follow the "--cflags" and "--libs" convention,
18902
 
         # so single it out here to avoid having to replicate all the rest of the
18903
 
         # logic elsewhere.
18904
 
         if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
18905
 
            CUNIT_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
18906
 
            CUNIT_LIBS="`$ac_vmw_lib_cfg --ldflags`"
18907
 
         else
18908
 
            CUNIT_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
18909
 
            CUNIT_LIBS="`$ac_vmw_lib_cfg --libs`"
18910
 
         fi
18911
 
         ac_vmw_have_lib=1
18912
 
      fi
18913
 
   fi
18914
 
 
18915
 
   # Finish by executing the user provided action. The call to "true" is needed
18916
 
   # because the actions are optional, and we need something inside the block.
18917
 
   if test $ac_vmw_have_lib -eq 1; then
18918
 
 
18919
 
 
18920
 
      true
18921
 
      have_cunit=yes
18922
 
   else
18923
 
      true
18924
 
      have_cunit=no
18925
 
   fi
18926
 
 
18927
 
   if test "$have_cunit" = "no"; then
18928
 
      if test "$enable_tests" = "yes"; then
18929
 
 
18930
 
   feature=""
18931
 
   if test -z "$feature"; then
18932
 
      feature="CUNIT"
18933
 
   fi
18934
 
   as_fn_error $? "Cannot find CUNIT library. Please configure without $feature (using --without-cunit), or install the CUNIT libraries and devel package(s)." "$LINENO" 5
18935
 
 
18936
 
      else
18937
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CUnit not found, tests won't be compiled." >&5
18938
 
$as_echo "$as_me: WARNING: CUnit not found, tests won't be compiled." >&2;}
18939
 
      fi
18940
 
   fi
18941
 
fi
18942
 
 
18943
 
# If the user explicitly disables X11, then don't try to detect the X-related libraries
18944
 
if test "$have_x" = "disabled"; then
18945
 
   enable_multimon="no"
18946
 
elif test "$have_x" != "yes"; then
18947
 
   as_fn_error $? "The X11 libraries were not found. Please configure without X11 (using --without-x), or install the libX11 devel package(s)." "$LINENO" 5
18948
 
else
18949
 
   CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18950
 
   COMMON_XLIBS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
18951
 
 
18952
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XeviQueryVersion in -lXext" >&5
18953
 
$as_echo_n "checking for XeviQueryVersion in -lXext... " >&6; }
18954
 
if ${ac_cv_lib_Xext_XeviQueryVersion+:} false; then :
18955
 
  $as_echo_n "(cached) " >&6
18956
 
else
18957
 
  ac_check_lib_save_LIBS=$LIBS
18958
 
LIBS="-lXext $COMMON_XLIBS $LIBS"
18959
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18960
 
/* end confdefs.h.  */
18961
 
 
18962
 
/* Override any GCC internal prototype to avoid an error.
18963
 
   Use char because int might match the return type of a GCC
18964
 
   builtin and then its argument prototype would still apply.  */
18965
 
#ifdef __cplusplus
18966
 
extern "C"
18967
 
#endif
18968
 
char XeviQueryVersion ();
18969
 
int
18970
 
main ()
18971
 
{
18972
 
return XeviQueryVersion ();
18973
 
  ;
18974
 
  return 0;
18975
 
}
18976
 
_ACEOF
18977
 
if ac_fn_c_try_link "$LINENO"; then :
18978
 
  ac_cv_lib_Xext_XeviQueryVersion=yes
18979
 
else
18980
 
  ac_cv_lib_Xext_XeviQueryVersion=no
18981
 
fi
18982
 
rm -f core conftest.err conftest.$ac_objext \
18983
 
    conftest$ac_exeext conftest.$ac_ext
18984
 
LIBS=$ac_check_lib_save_LIBS
18985
 
fi
18986
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XeviQueryVersion" >&5
18987
 
$as_echo "$ac_cv_lib_Xext_XeviQueryVersion" >&6; }
18988
 
if test "x$ac_cv_lib_Xext_XeviQueryVersion" = xyes; then :
18989
 
  COMMON_XLIBS="-lXext $COMMON_XLIBS"
18990
 
else
18991
 
  as_fn_error $? "libXext not found. Please configure without X11 (using --without-x), or install the libXext devel package(s)." "$LINENO" 5
18992
 
fi
18993
 
 
18994
 
 
18995
 
   ac_fn_c_check_header_compile "$LINENO" "X11/extensions/extutil.h" "ac_cv_header_X11_extensions_extutil_h" "#include <X11/Xlib.h>
18996
 
       #include <X11/Xproto.h>
18997
 
"
18998
 
if test "x$ac_cv_header_X11_extensions_extutil_h" = xyes; then :
18999
 
 
19000
 
else
19001
 
  as_fn_error $? "X11/extensions/extutil.h header not found - you're probably on Solaris 10 or older. Please copy that header file onto your system manually, or configure without X11 (using --without-x)." "$LINENO" 5
19002
 
fi
19003
 
 
19004
 
 
19005
 
 
19006
 
   if test "$enable_multimon" != "no"; then
19007
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryVersion in -lXinerama" >&5
19008
 
$as_echo_n "checking for XineramaQueryVersion in -lXinerama... " >&6; }
19009
 
if ${ac_cv_lib_Xinerama_XineramaQueryVersion+:} false; then :
19010
 
  $as_echo_n "(cached) " >&6
19011
 
else
19012
 
  ac_check_lib_save_LIBS=$LIBS
19013
 
LIBS="-lXinerama $COMMON_XLIBS $LIBS"
19014
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19015
 
/* end confdefs.h.  */
19016
 
 
19017
 
/* Override any GCC internal prototype to avoid an error.
19018
 
   Use char because int might match the return type of a GCC
19019
 
   builtin and then its argument prototype would still apply.  */
19020
 
#ifdef __cplusplus
19021
 
extern "C"
19022
 
#endif
19023
 
char XineramaQueryVersion ();
19024
 
int
19025
 
main ()
19026
 
{
19027
 
return XineramaQueryVersion ();
19028
 
  ;
19029
 
  return 0;
19030
 
}
19031
 
_ACEOF
19032
 
if ac_fn_c_try_link "$LINENO"; then :
19033
 
  ac_cv_lib_Xinerama_XineramaQueryVersion=yes
19034
 
else
19035
 
  ac_cv_lib_Xinerama_XineramaQueryVersion=no
19036
 
fi
19037
 
rm -f core conftest.err conftest.$ac_objext \
19038
 
    conftest$ac_exeext conftest.$ac_ext
19039
 
LIBS=$ac_check_lib_save_LIBS
19040
 
fi
19041
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryVersion" >&5
19042
 
$as_echo "$ac_cv_lib_Xinerama_XineramaQueryVersion" >&6; }
19043
 
if test "x$ac_cv_lib_Xinerama_XineramaQueryVersion" = xyes; then :
19044
 
  COMMON_XLIBS="-lXinerama $COMMON_XLIBS"
19045
 
else
19046
 
  as_fn_error $? "libXinerama not found. Please configure without multimon (using --disable-multimon), configure without X11 (using --without-x), or install the libXinerama devel package(s)." "$LINENO" 5
19047
 
fi
19048
 
 
19049
 
   fi
19050
 
 
19051
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
19052
 
$as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
19053
 
if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
19054
 
  $as_echo_n "(cached) " >&6
19055
 
else
19056
 
  ac_check_lib_save_LIBS=$LIBS
19057
 
LIBS="-lXi $COMMON_XLIBS $LIBS"
19058
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19059
 
/* end confdefs.h.  */
19060
 
 
19061
 
/* Override any GCC internal prototype to avoid an error.
19062
 
   Use char because int might match the return type of a GCC
19063
 
   builtin and then its argument prototype would still apply.  */
19064
 
#ifdef __cplusplus
19065
 
extern "C"
19066
 
#endif
19067
 
char XOpenDevice ();
19068
 
int
19069
 
main ()
19070
 
{
19071
 
return XOpenDevice ();
19072
 
  ;
19073
 
  return 0;
19074
 
}
19075
 
_ACEOF
19076
 
if ac_fn_c_try_link "$LINENO"; then :
19077
 
  ac_cv_lib_Xi_XOpenDevice=yes
19078
 
else
19079
 
  ac_cv_lib_Xi_XOpenDevice=no
19080
 
fi
19081
 
rm -f core conftest.err conftest.$ac_objext \
19082
 
    conftest$ac_exeext conftest.$ac_ext
19083
 
LIBS=$ac_check_lib_save_LIBS
19084
 
fi
19085
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
19086
 
$as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
19087
 
if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
19088
 
  COMMON_XLIBS="-lXi $COMMON_XLIBS"
19089
 
else
19090
 
  as_fn_error $? "libXi not found. Please configure without X11 (using --without-x), or install the libXi devel package(s)." "$LINENO" 5
19091
 
fi
19092
 
 
19093
 
 
19094
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryVersion in -lXrender" >&5
19095
 
$as_echo_n "checking for XRenderQueryVersion in -lXrender... " >&6; }
19096
 
if ${ac_cv_lib_Xrender_XRenderQueryVersion+:} false; then :
19097
 
  $as_echo_n "(cached) " >&6
19098
 
else
19099
 
  ac_check_lib_save_LIBS=$LIBS
19100
 
LIBS="-lXrender $COMMON_XLIBS $LIBS"
19101
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19102
 
/* end confdefs.h.  */
19103
 
 
19104
 
/* Override any GCC internal prototype to avoid an error.
19105
 
   Use char because int might match the return type of a GCC
19106
 
   builtin and then its argument prototype would still apply.  */
19107
 
#ifdef __cplusplus
19108
 
extern "C"
19109
 
#endif
19110
 
char XRenderQueryVersion ();
19111
 
int
19112
 
main ()
19113
 
{
19114
 
return XRenderQueryVersion ();
19115
 
  ;
19116
 
  return 0;
19117
 
}
19118
 
_ACEOF
19119
 
if ac_fn_c_try_link "$LINENO"; then :
19120
 
  ac_cv_lib_Xrender_XRenderQueryVersion=yes
19121
 
else
19122
 
  ac_cv_lib_Xrender_XRenderQueryVersion=no
19123
 
fi
19124
 
rm -f core conftest.err conftest.$ac_objext \
19125
 
    conftest$ac_exeext conftest.$ac_ext
19126
 
LIBS=$ac_check_lib_save_LIBS
19127
 
fi
19128
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryVersion" >&5
19129
 
$as_echo "$ac_cv_lib_Xrender_XRenderQueryVersion" >&6; }
19130
 
if test "x$ac_cv_lib_Xrender_XRenderQueryVersion" = xyes; then :
19131
 
  COMMON_XLIBS="-lXrender $COMMON_XLIBS"
19132
 
else
19133
 
  as_fn_error $? "libXrender not found. Please configure without X11 (using --without-x), or install the libXrender devel package(s)." "$LINENO" 5
19134
 
fi
19135
 
 
19136
 
 
19137
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryVersion in -lXrandr" >&5
19138
 
$as_echo_n "checking for XRRQueryVersion in -lXrandr... " >&6; }
19139
 
if ${ac_cv_lib_Xrandr_XRRQueryVersion+:} false; then :
19140
 
  $as_echo_n "(cached) " >&6
19141
 
else
19142
 
  ac_check_lib_save_LIBS=$LIBS
19143
 
LIBS="-lXrandr $COMMON_XLIBS $LIBS"
19144
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19145
 
/* end confdefs.h.  */
19146
 
 
19147
 
/* Override any GCC internal prototype to avoid an error.
19148
 
   Use char because int might match the return type of a GCC
19149
 
   builtin and then its argument prototype would still apply.  */
19150
 
#ifdef __cplusplus
19151
 
extern "C"
19152
 
#endif
19153
 
char XRRQueryVersion ();
19154
 
int
19155
 
main ()
19156
 
{
19157
 
return XRRQueryVersion ();
19158
 
  ;
19159
 
  return 0;
19160
 
}
19161
 
_ACEOF
19162
 
if ac_fn_c_try_link "$LINENO"; then :
19163
 
  ac_cv_lib_Xrandr_XRRQueryVersion=yes
19164
 
else
19165
 
  ac_cv_lib_Xrandr_XRRQueryVersion=no
19166
 
fi
19167
 
rm -f core conftest.err conftest.$ac_objext \
19168
 
    conftest$ac_exeext conftest.$ac_ext
19169
 
LIBS=$ac_check_lib_save_LIBS
19170
 
fi
19171
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryVersion" >&5
19172
 
$as_echo "$ac_cv_lib_Xrandr_XRRQueryVersion" >&6; }
19173
 
if test "x$ac_cv_lib_Xrandr_XRRQueryVersion" = xyes; then :
19174
 
  COMMON_XLIBS="-lXrandr $COMMON_XLIBS"
19175
 
else
19176
 
  as_fn_error $? "libXrandr not found. Please configure without X11 (using --without-x) or install the libXrandr devel package(s)." "$LINENO" 5
19177
 
fi
19178
 
 
19179
 
 
19180
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
19181
 
$as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
19182
 
if ${ac_cv_lib_Xtst_XTestQueryExtension+:} false; then :
19183
 
  $as_echo_n "(cached) " >&6
19184
 
else
19185
 
  ac_check_lib_save_LIBS=$LIBS
19186
 
LIBS="-lXtst $COMMON_XLIBS $LIBS"
19187
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19188
 
/* end confdefs.h.  */
19189
 
 
19190
 
/* Override any GCC internal prototype to avoid an error.
19191
 
   Use char because int might match the return type of a GCC
19192
 
   builtin and then its argument prototype would still apply.  */
19193
 
#ifdef __cplusplus
19194
 
extern "C"
19195
 
#endif
19196
 
char XTestQueryExtension ();
19197
 
int
19198
 
main ()
19199
 
{
19200
 
return XTestQueryExtension ();
19201
 
  ;
19202
 
  return 0;
19203
 
}
19204
 
_ACEOF
19205
 
if ac_fn_c_try_link "$LINENO"; then :
19206
 
  ac_cv_lib_Xtst_XTestQueryExtension=yes
19207
 
else
19208
 
  ac_cv_lib_Xtst_XTestQueryExtension=no
19209
 
fi
19210
 
rm -f core conftest.err conftest.$ac_objext \
19211
 
    conftest$ac_exeext conftest.$ac_ext
19212
 
LIBS=$ac_check_lib_save_LIBS
19213
 
fi
19214
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
19215
 
$as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
19216
 
if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = xyes; then :
19217
 
  COMMON_XLIBS="-lXtst $COMMON_XLIBS"
19218
 
else
19219
 
  as_fn_error $? "libXtst not found. Please configure without X11 (using --without-x) or install the libXtst devel package(s)." "$LINENO" 5
19220
 
fi
19221
 
 
19222
 
 
19223
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
19224
 
$as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
19225
 
if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then :
19226
 
  $as_echo_n "(cached) " >&6
19227
 
else
19228
 
  ac_check_lib_save_LIBS=$LIBS
19229
 
LIBS="-lSM  $LIBS"
19230
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19231
 
/* end confdefs.h.  */
19232
 
 
19233
 
/* Override any GCC internal prototype to avoid an error.
19234
 
   Use char because int might match the return type of a GCC
19235
 
   builtin and then its argument prototype would still apply.  */
19236
 
#ifdef __cplusplus
19237
 
extern "C"
19238
 
#endif
19239
 
char SmcOpenConnection ();
19240
 
int
19241
 
main ()
19242
 
{
19243
 
return SmcOpenConnection ();
19244
 
  ;
19245
 
  return 0;
19246
 
}
19247
 
_ACEOF
19248
 
if ac_fn_c_try_link "$LINENO"; then :
19249
 
  ac_cv_lib_SM_SmcOpenConnection=yes
19250
 
else
19251
 
  ac_cv_lib_SM_SmcOpenConnection=no
19252
 
fi
19253
 
rm -f core conftest.err conftest.$ac_objext \
19254
 
    conftest$ac_exeext conftest.$ac_ext
19255
 
LIBS=$ac_check_lib_save_LIBS
19256
 
fi
19257
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
19258
 
$as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
19259
 
if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then :
19260
 
  XSM_LIBS="-lSM -lICE" && have_xsm_lib="yes"
19261
 
else
19262
 
 
19263
 
      -lICE
19264
 
fi
19265
 
 
19266
 
 
19267
 
   for ac_header in X11/SM/SMlib.h X11/ICE/ICElib.h
19268
 
do :
19269
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19270
 
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19271
 
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19272
 
  cat >>confdefs.h <<_ACEOF
19273
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19274
 
_ACEOF
19275
 
 have_xsm_header="yes"
19276
 
fi
19277
 
 
19278
 
done
19279
 
 
19280
 
   if test "$have_xsm_lib" = "yes" -a "$have_xsm_header" = "yes"; then
19281
 
      have_xsm="yes"
19282
 
   fi
19283
 
 
19284
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCompositeQueryExtension in -lXcomposite" >&5
19285
 
$as_echo_n "checking for XCompositeQueryExtension in -lXcomposite... " >&6; }
19286
 
if ${ac_cv_lib_Xcomposite_XCompositeQueryExtension+:} false; then :
19287
 
  $as_echo_n "(cached) " >&6
19288
 
else
19289
 
  ac_check_lib_save_LIBS=$LIBS
19290
 
LIBS="-lXcomposite  $LIBS"
19291
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19292
 
/* end confdefs.h.  */
19293
 
 
19294
 
/* Override any GCC internal prototype to avoid an error.
19295
 
   Use char because int might match the return type of a GCC
19296
 
   builtin and then its argument prototype would still apply.  */
19297
 
#ifdef __cplusplus
19298
 
extern "C"
19299
 
#endif
19300
 
char XCompositeQueryExtension ();
19301
 
int
19302
 
main ()
19303
 
{
19304
 
return XCompositeQueryExtension ();
19305
 
  ;
19306
 
  return 0;
19307
 
}
19308
 
_ACEOF
19309
 
if ac_fn_c_try_link "$LINENO"; then :
19310
 
  ac_cv_lib_Xcomposite_XCompositeQueryExtension=yes
19311
 
else
19312
 
  ac_cv_lib_Xcomposite_XCompositeQueryExtension=no
19313
 
fi
19314
 
rm -f core conftest.err conftest.$ac_objext \
19315
 
    conftest$ac_exeext conftest.$ac_ext
19316
 
LIBS=$ac_check_lib_save_LIBS
19317
 
fi
19318
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcomposite_XCompositeQueryExtension" >&5
19319
 
$as_echo "$ac_cv_lib_Xcomposite_XCompositeQueryExtension" >&6; }
19320
 
if test "x$ac_cv_lib_Xcomposite_XCompositeQueryExtension" = xyes; then :
19321
 
  XCOMPOSITE_LIBS="-lXcomposite"
19322
 
else
19323
 
  have_xcomposite="no"
19324
 
 
19325
 
fi
19326
 
 
19327
 
   for ac_header in X11/extensions/Xcomposite.h
19328
 
do :
19329
 
  ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xcomposite.h" "ac_cv_header_X11_extensions_Xcomposite_h" "$ac_includes_default"
19330
 
if test "x$ac_cv_header_X11_extensions_Xcomposite_h" = xyes; then :
19331
 
  cat >>confdefs.h <<_ACEOF
19332
 
#define HAVE_X11_EXTENSIONS_XCOMPOSITE_H 1
19333
 
_ACEOF
19334
 
 
19335
 
else
19336
 
  have_xcomposite="no"
19337
 
fi
19338
 
 
19339
 
done
19340
 
 
19341
 
   if test "$have_xcomposite" != "no"; then
19342
 
      have_xcomposite="yes"
19343
 
   fi
19344
 
 
19345
 
   # Check whether we have gtk+ 2.0.
19346
 
   if test "$with_gtk2" != "no"; then
19347
 
      # gdk_display_get_default_group (added in gtk+ 2.4.0) is function currently
19348
 
      # needed by vmware-user.
19349
 
 
19350
 
 
19351
 
   if test -z "gtk-x11-2.0"; then
19352
 
      as_fn_error $? "'library' parameter is required.'" "$LINENO" 5
19353
 
   fi
19354
 
   if test -z "GTK"; then
19355
 
      as_fn_error $? "'lvar' parameter is required.'" "$LINENO" 5
19356
 
   fi
19357
 
 
19358
 
   ac_vmw_have_lib=0
19359
 
   ac_vmw_have_lib_func=0
19360
 
   ac_vmw_have_lib_header=0
19361
 
   ac_vmw_custom_libs=
19362
 
 
19363
 
   #
19364
 
   # First, try any user-defined CUSTOM_* flags.
19365
 
   #
19366
 
   if test -n "${CUSTOM_GTK_CPPFLAGS}" || test -n "${CUSTOM_GTK_LIBS}"; then
19367
 
      ac_vmw_custom_libs="${CUSTOM_GTK_LIBS} -lgtk-x11-2.0"
19368
 
      if test -n "gtk/gtk.h"; then
19369
 
         ORIGINAL_CPPFLAGS="$CPPFLAGS"
19370
 
         CPPFLAGS="${CUSTOM_GTK_CPPFLAGS} $CPPFLAGS"
19371
 
 
19372
 
         ac_fn_c_check_header_mongrel "$LINENO" "gtk/gtk.h" "ac_cv_header_gtk_gtk_h" "$ac_includes_default"
19373
 
if test "x$ac_cv_header_gtk_gtk_h" = xyes; then :
19374
 
  ac_vmw_have_lib_header=1
19375
 
fi
19376
 
 
19377
 
 
19378
 
 
19379
 
         CPPFLAGS="$ORIGINAL_CPPFLAGS"
19380
 
      else
19381
 
         ac_vmw_have_lib_header=1
19382
 
      fi
19383
 
 
19384
 
      # Check a specific function in the library if requested.
19385
 
      # If it hasn't, just pick a random function from libc, just to make
19386
 
      # sure the linker can find the library being tested.
19387
 
      if test $ac_vmw_have_lib_header -eq 1; then
19388
 
         if test -n "gdk_display_get_default_group"; then
19389
 
            ac_vmw_function=gdk_display_get_default_group
19390
 
         else
19391
 
            ac_vmw_function=strlen
19392
 
         fi
19393
 
         as_ac_Lib=`$as_echo "ac_cv_lib_gtk-x11-2.0_$ac_vmw_function" | $as_tr_sh`
19394
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_vmw_function in -lgtk-x11-2.0" >&5
19395
 
$as_echo_n "checking for $ac_vmw_function in -lgtk-x11-2.0... " >&6; }
19396
 
if eval \${$as_ac_Lib+:} false; then :
19397
 
  $as_echo_n "(cached) " >&6
19398
 
else
19399
 
  ac_check_lib_save_LIBS=$LIBS
19400
 
LIBS="-lgtk-x11-2.0 $ac_vmw_custom_libs $LIBS"
19401
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19402
 
/* end confdefs.h.  */
19403
 
 
19404
 
/* Override any GCC internal prototype to avoid an error.
19405
 
   Use char because int might match the return type of a GCC
19406
 
   builtin and then its argument prototype would still apply.  */
19407
 
#ifdef __cplusplus
19408
 
extern "C"
19409
 
#endif
19410
 
char $ac_vmw_function ();
19411
 
int
19412
 
main ()
19413
 
{
19414
 
return $ac_vmw_function ();
19415
 
  ;
19416
 
  return 0;
19417
 
}
19418
 
_ACEOF
19419
 
if ac_fn_c_try_link "$LINENO"; then :
19420
 
  eval "$as_ac_Lib=yes"
19421
 
else
19422
 
  eval "$as_ac_Lib=no"
19423
 
fi
19424
 
rm -f core conftest.err conftest.$ac_objext \
19425
 
    conftest$ac_exeext conftest.$ac_ext
19426
 
LIBS=$ac_check_lib_save_LIBS
19427
 
fi
19428
 
eval ac_res=\$$as_ac_Lib
19429
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19430
 
$as_echo "$ac_res" >&6; }
19431
 
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19432
 
  ac_vmw_have_lib_func=1
19433
 
fi
19434
 
 
19435
 
      fi
19436
 
 
19437
 
      if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
19438
 
         GTK_CPPFLAGS="${CUSTOM_GTK_CPPFLAGS}"
19439
 
         GTK_LIBS="$ac_vmw_custom_libs"
19440
 
         ac_vmw_have_lib=1
19441
 
      fi
19442
 
   fi
19443
 
 
19444
 
   # If that didn't work, try with pkg-config.
19445
 
   if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n "gtk+-2.0"; then
19446
 
      if test -n "2.4.0"; then
19447
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4.0 (via pkg-config)" >&5
19448
 
$as_echo_n "checking for gtk+-2.0 >= 2.4.0 (via pkg-config)... " >&6; }
19449
 
         if pkg-config --exists 'gtk+-2.0 >= 2.4.0'; then
19450
 
            ac_vmw_have_lib=1
19451
 
         fi
19452
 
      else
19453
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 (via pkg-config)" >&5
19454
 
$as_echo_n "checking for gtk+-2.0 (via pkg-config)... " >&6; }
19455
 
         if pkg-config --exists 'gtk+-2.0'; then
19456
 
            ac_vmw_have_lib=1
19457
 
         fi
19458
 
      fi
19459
 
 
19460
 
      if test $ac_vmw_have_lib -eq 1; then
19461
 
         # Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
19462
 
         # fails on OpenSolaris B71. So be pessimistic.
19463
 
         ac_vmw_cppflags="`pkg-config --cflags gtk+-2.0`"
19464
 
         ac_vmw_ret1=$?
19465
 
         ac_vmw_libs="`pkg-config --libs gtk+-2.0`"
19466
 
         ac_vmw_ret2=$?
19467
 
         if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
19468
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19469
 
$as_echo "yes" >&6; }
19470
 
            GTK_CPPFLAGS="$ac_vmw_cppflags"
19471
 
            GTK_LIBS="$ac_vmw_libs"
19472
 
         else
19473
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19474
 
$as_echo "no" >&6; }
19475
 
         fi
19476
 
      else
19477
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19478
 
$as_echo "no" >&6; }
19479
 
      fi
19480
 
   fi
19481
 
 
19482
 
   # If we still haven't found the lib, try with the library's custom "config" script.
19483
 
   # Before checking, flush the AC_PATH_PROG cached variable.
19484
 
   unset ac_cv_path_ac_vmw_lib_cfg
19485
 
   unset ac_vmw_lib_cfg
19486
 
   if test $ac_vmw_have_lib -eq 0 && test -n ""; then
19487
 
      # Extract the first word of "", so it can be a program name with args.
19488
 
set dummy ; ac_word=$2
19489
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19490
 
$as_echo_n "checking for $ac_word... " >&6; }
19491
 
if ${ac_cv_path_ac_vmw_lib_cfg+:} false; then :
19492
 
  $as_echo_n "(cached) " >&6
19493
 
else
19494
 
  case $ac_vmw_lib_cfg in
19495
 
  [\\/]* | ?:[\\/]*)
19496
 
  ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
19497
 
  ;;
19498
 
  *)
19499
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19500
 
for as_dir in $PATH
19501
 
do
19502
 
  IFS=$as_save_IFS
19503
 
  test -z "$as_dir" && as_dir=.
19504
 
    for ac_exec_ext in '' $ac_executable_extensions; do
19505
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19506
 
    ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
19507
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19508
 
    break 2
19509
 
  fi
19510
 
done
19511
 
  done
19512
 
IFS=$as_save_IFS
19513
 
 
19514
 
  test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
19515
 
  ;;
19516
 
esac
19517
 
fi
19518
 
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
19519
 
if test -n "$ac_vmw_lib_cfg"; then
19520
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_vmw_lib_cfg" >&5
19521
 
$as_echo "$ac_vmw_lib_cfg" >&6; }
19522
 
else
19523
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19524
 
$as_echo "no" >&6; }
19525
 
fi
19526
 
 
19527
 
 
19528
 
      if test "$ac_vmw_lib_cfg" != "no"; then
19529
 
         # XXX: icu-config does not follow the "--cflags" and "--libs" convention,
19530
 
         # so single it out here to avoid having to replicate all the rest of the
19531
 
         # logic elsewhere.
19532
 
         if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
19533
 
            GTK_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
19534
 
            GTK_LIBS="`$ac_vmw_lib_cfg --ldflags`"
19535
 
         else
19536
 
            GTK_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
19537
 
            GTK_LIBS="`$ac_vmw_lib_cfg --libs`"
19538
 
         fi
19539
 
         ac_vmw_have_lib=1
19540
 
      fi
19541
 
   fi
19542
 
 
19543
 
   # Finish by executing the user provided action. The call to "true" is needed
19544
 
   # because the actions are optional, and we need something inside the block.
19545
 
   if test $ac_vmw_have_lib -eq 1; then
19546
 
 
19547
 
 
19548
 
      true
19549
 
      GTK_CPPFLAGS="$GTK_CPPFLAGS -DGTK2"
19550
 
   else
19551
 
      true
19552
 
      as_fn_error $? "Gtk+ 2.0 library not found or too old. Please configure without Gtk+ support (using --without-gtk2) or install the Gtk+ 2.0 devel package." "$LINENO" 5
19553
 
   fi
19554
 
 
19555
 
   fi
19556
 
 
19557
 
   #
19558
 
   # Check for gtkmm 2.4.0 or greater.
19559
 
   #
19560
 
 
19561
 
   if test "$with_gtkmm" != "no"; then
19562
 
      CUSTOM_GTKMM_CPPFLAGS="$CUSTOM_GTKMM_CPPFLAGS $GTK_CPPFLAGS"
19563
 
 
19564
 
 
19565
 
 
19566
 
   ac_ext=cpp
19567
 
ac_cpp='$CXXCPP $CPPFLAGS'
19568
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19569
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19570
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19571
 
 
19572
 
 
19573
 
 
19574
 
   if test -z "gtkmm-2.4"; then
19575
 
      as_fn_error $? "'library' parameter is required.'" "$LINENO" 5
19576
 
   fi
19577
 
   if test -z "GTKMM"; then
19578
 
      as_fn_error $? "'lvar' parameter is required.'" "$LINENO" 5
19579
 
   fi
19580
 
 
19581
 
   ac_vmw_have_lib=0
19582
 
   ac_vmw_have_lib_func=0
19583
 
   ac_vmw_have_lib_header=0
19584
 
   ac_vmw_custom_libs=
19585
 
 
19586
 
   #
19587
 
   # First, try any user-defined CUSTOM_* flags.
19588
 
   #
19589
 
   if test -n "${CUSTOM_GTKMM_CPPFLAGS}" || test -n "${CUSTOM_GTKMM_LIBS}"; then
19590
 
      ac_vmw_custom_libs="${CUSTOM_GTKMM_LIBS} -lgtkmm-2.4"
19591
 
      if test -n "gtkmm.h"; then
19592
 
         ORIGINAL_CPPFLAGS="$CPPFLAGS"
19593
 
         CPPFLAGS="${CUSTOM_GTKMM_CPPFLAGS} $CPPFLAGS"
19594
 
 
19595
 
         ac_fn_cxx_check_header_mongrel "$LINENO" "gtkmm.h" "ac_cv_header_gtkmm_h" "$ac_includes_default"
19596
 
if test "x$ac_cv_header_gtkmm_h" = xyes; then :
19597
 
  ac_vmw_have_lib_header=1
19598
 
fi
19599
 
 
19600
 
 
19601
 
 
19602
 
         CPPFLAGS="$ORIGINAL_CPPFLAGS"
19603
 
      else
19604
 
         ac_vmw_have_lib_header=1
19605
 
      fi
19606
 
 
19607
 
      # Check a specific function in the library if requested.
19608
 
      # If it hasn't, just pick a random function from libc, just to make
19609
 
      # sure the linker can find the library being tested.
19610
 
      if test $ac_vmw_have_lib_header -eq 1; then
19611
 
         if test -n ""; then
19612
 
            ac_vmw_function=
19613
 
         else
19614
 
            ac_vmw_function=strlen
19615
 
         fi
19616
 
         as_ac_Lib=`$as_echo "ac_cv_lib_gtkmm-2.4_$ac_vmw_function" | $as_tr_sh`
19617
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_vmw_function in -lgtkmm-2.4" >&5
19618
 
$as_echo_n "checking for $ac_vmw_function in -lgtkmm-2.4... " >&6; }
19619
 
if eval \${$as_ac_Lib+:} false; then :
19620
 
  $as_echo_n "(cached) " >&6
19621
 
else
19622
 
  ac_check_lib_save_LIBS=$LIBS
19623
 
LIBS="-lgtkmm-2.4 $ac_vmw_custom_libs $LIBS"
19624
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19625
 
/* end confdefs.h.  */
19626
 
 
19627
 
/* Override any GCC internal prototype to avoid an error.
19628
 
   Use char because int might match the return type of a GCC
19629
 
   builtin and then its argument prototype would still apply.  */
19630
 
#ifdef __cplusplus
19631
 
extern "C"
19632
 
#endif
19633
 
char $ac_vmw_function ();
19634
 
int
19635
 
main ()
19636
 
{
19637
 
return $ac_vmw_function ();
19638
 
  ;
19639
 
  return 0;
19640
 
}
19641
 
_ACEOF
19642
 
if ac_fn_cxx_try_link "$LINENO"; then :
19643
 
  eval "$as_ac_Lib=yes"
19644
 
else
19645
 
  eval "$as_ac_Lib=no"
19646
 
fi
19647
 
rm -f core conftest.err conftest.$ac_objext \
19648
 
    conftest$ac_exeext conftest.$ac_ext
19649
 
LIBS=$ac_check_lib_save_LIBS
19650
 
fi
19651
 
eval ac_res=\$$as_ac_Lib
19652
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19653
 
$as_echo "$ac_res" >&6; }
19654
 
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19655
 
  ac_vmw_have_lib_func=1
19656
 
fi
19657
 
 
19658
 
      fi
19659
 
 
19660
 
      if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
19661
 
         GTKMM_CPPFLAGS="${CUSTOM_GTKMM_CPPFLAGS}"
19662
 
         GTKMM_LIBS="$ac_vmw_custom_libs"
19663
 
         ac_vmw_have_lib=1
19664
 
      fi
19665
 
   fi
19666
 
 
19667
 
   # If that didn't work, try with pkg-config.
19668
 
   if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n "gtkmm-2.4"; then
19669
 
      if test -n "2.4.0"; then
19670
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtkmm-2.4 >= 2.4.0 (via pkg-config)" >&5
19671
 
$as_echo_n "checking for gtkmm-2.4 >= 2.4.0 (via pkg-config)... " >&6; }
19672
 
         if pkg-config --exists 'gtkmm-2.4 >= 2.4.0'; then
19673
 
            ac_vmw_have_lib=1
19674
 
         fi
19675
 
      else
19676
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtkmm-2.4 (via pkg-config)" >&5
19677
 
$as_echo_n "checking for gtkmm-2.4 (via pkg-config)... " >&6; }
19678
 
         if pkg-config --exists 'gtkmm-2.4'; then
19679
 
            ac_vmw_have_lib=1
19680
 
         fi
19681
 
      fi
19682
 
 
19683
 
      if test $ac_vmw_have_lib -eq 1; then
19684
 
         # Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
19685
 
         # fails on OpenSolaris B71. So be pessimistic.
19686
 
         ac_vmw_cppflags="`pkg-config --cflags gtkmm-2.4`"
19687
 
         ac_vmw_ret1=$?
19688
 
         ac_vmw_libs="`pkg-config --libs gtkmm-2.4`"
19689
 
         ac_vmw_ret2=$?
19690
 
         if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
19691
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19692
 
$as_echo "yes" >&6; }
19693
 
            GTKMM_CPPFLAGS="$ac_vmw_cppflags"
19694
 
            GTKMM_LIBS="$ac_vmw_libs"
19695
 
         else
19696
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19697
 
$as_echo "no" >&6; }
19698
 
         fi
19699
 
      else
19700
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19701
 
$as_echo "no" >&6; }
19702
 
      fi
19703
 
   fi
19704
 
 
19705
 
   # If we still haven't found the lib, try with the library's custom "config" script.
19706
 
   # Before checking, flush the AC_PATH_PROG cached variable.
19707
 
   unset ac_cv_path_ac_vmw_lib_cfg
19708
 
   unset ac_vmw_lib_cfg
19709
 
   if test $ac_vmw_have_lib -eq 0 && test -n ""; then
19710
 
      # Extract the first word of "", so it can be a program name with args.
19711
 
set dummy ; ac_word=$2
19712
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19713
 
$as_echo_n "checking for $ac_word... " >&6; }
19714
 
if ${ac_cv_path_ac_vmw_lib_cfg+:} false; then :
19715
 
  $as_echo_n "(cached) " >&6
19716
 
else
19717
 
  case $ac_vmw_lib_cfg in
19718
 
  [\\/]* | ?:[\\/]*)
19719
 
  ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
19720
 
  ;;
19721
 
  *)
19722
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19723
 
for as_dir in $PATH
19724
 
do
19725
 
  IFS=$as_save_IFS
19726
 
  test -z "$as_dir" && as_dir=.
19727
 
    for ac_exec_ext in '' $ac_executable_extensions; do
19728
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19729
 
    ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
19730
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19731
 
    break 2
19732
 
  fi
19733
 
done
19734
 
  done
19735
 
IFS=$as_save_IFS
19736
 
 
19737
 
  test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
19738
 
  ;;
19739
 
esac
19740
 
fi
19741
 
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
19742
 
if test -n "$ac_vmw_lib_cfg"; then
19743
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_vmw_lib_cfg" >&5
19744
 
$as_echo "$ac_vmw_lib_cfg" >&6; }
19745
 
else
19746
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19747
 
$as_echo "no" >&6; }
19748
 
fi
19749
 
 
19750
 
 
19751
 
      if test "$ac_vmw_lib_cfg" != "no"; then
19752
 
         # XXX: icu-config does not follow the "--cflags" and "--libs" convention,
19753
 
         # so single it out here to avoid having to replicate all the rest of the
19754
 
         # logic elsewhere.
19755
 
         if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
19756
 
            GTKMM_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
19757
 
            GTKMM_LIBS="`$ac_vmw_lib_cfg --ldflags`"
19758
 
         else
19759
 
            GTKMM_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
19760
 
            GTKMM_LIBS="`$ac_vmw_lib_cfg --libs`"
19761
 
         fi
19762
 
         ac_vmw_have_lib=1
19763
 
      fi
19764
 
   fi
19765
 
 
19766
 
   # Finish by executing the user provided action. The call to "true" is needed
19767
 
   # because the actions are optional, and we need something inside the block.
19768
 
   if test $ac_vmw_have_lib -eq 1; then
19769
 
 
19770
 
 
19771
 
      true
19772
 
      GTKMM_CPPFLAGS="$GTKMM_CPPFLAGS -DHAVE_GTKMM"
19773
 
   else
19774
 
      true
19775
 
      as_fn_error $? "gtkmm library not found. Please install the libgtkmm devel package(s), or re-configure using --without-gtkmm." "$LINENO" 5
19776
 
   fi
19777
 
 
19778
 
   ac_ext=c
19779
 
ac_cpp='$CPP $CPPFLAGS'
19780
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19781
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19782
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19783
 
 
19784
 
 
19785
 
   fi
19786
 
fi # End of checks for X libraries
19787
 
 
19788
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
19789
 
$as_echo_n "checking for crypt in -lcrypt... " >&6; }
19790
 
if ${ac_cv_lib_crypt_crypt+:} false; then :
19791
 
  $as_echo_n "(cached) " >&6
19792
 
else
19793
 
  ac_check_lib_save_LIBS=$LIBS
19794
 
LIBS="-lcrypt  $LIBS"
19795
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19796
 
/* end confdefs.h.  */
19797
 
 
19798
 
/* Override any GCC internal prototype to avoid an error.
19799
 
   Use char because int might match the return type of a GCC
19800
 
   builtin and then its argument prototype would still apply.  */
19801
 
#ifdef __cplusplus
19802
 
extern "C"
19803
 
#endif
19804
 
char crypt ();
19805
 
int
19806
 
main ()
19807
 
{
19808
 
return crypt ();
19809
 
  ;
19810
 
  return 0;
19811
 
}
19812
 
_ACEOF
19813
 
if ac_fn_c_try_link "$LINENO"; then :
19814
 
  ac_cv_lib_crypt_crypt=yes
19815
 
else
19816
 
  ac_cv_lib_crypt_crypt=no
19817
 
fi
19818
 
rm -f core conftest.err conftest.$ac_objext \
19819
 
    conftest$ac_exeext conftest.$ac_ext
19820
 
LIBS=$ac_check_lib_save_LIBS
19821
 
fi
19822
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
19823
 
$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
19824
 
if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
19825
 
  HAVE_CRYPT="yes"
19826
 
else
19827
 
  as_fn_error $? "libcrypt not found. Please install the libc/libcrypt devel package(s)." "$LINENO" 5
19828
 
fi
19829
 
 
19830
 
 
19831
 
for ac_func in dlopen
19832
 
do :
19833
 
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19834
 
if test "x$ac_cv_func_dlopen" = xyes; then :
19835
 
  cat >>confdefs.h <<_ACEOF
19836
 
#define HAVE_DLOPEN 1
19837
 
_ACEOF
19838
 
 
19839
 
else
19840
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19841
 
$as_echo_n "checking for dlopen in -ldl... " >&6; }
19842
 
if ${ac_cv_lib_dl_dlopen+:} false; then :
19843
 
  $as_echo_n "(cached) " >&6
19844
 
else
19845
 
  ac_check_lib_save_LIBS=$LIBS
19846
 
LIBS="-ldl  $LIBS"
19847
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19848
 
/* end confdefs.h.  */
19849
 
 
19850
 
/* Override any GCC internal prototype to avoid an error.
19851
 
   Use char because int might match the return type of a GCC
19852
 
   builtin and then its argument prototype would still apply.  */
19853
 
#ifdef __cplusplus
19854
 
extern "C"
19855
 
#endif
19856
 
char dlopen ();
19857
 
int
19858
 
main ()
19859
 
{
19860
 
return dlopen ();
19861
 
  ;
19862
 
  return 0;
19863
 
}
19864
 
_ACEOF
19865
 
if ac_fn_c_try_link "$LINENO"; then :
19866
 
  ac_cv_lib_dl_dlopen=yes
19867
 
else
19868
 
  ac_cv_lib_dl_dlopen=no
19869
 
fi
19870
 
rm -f core conftest.err conftest.$ac_objext \
19871
 
    conftest$ac_exeext conftest.$ac_ext
19872
 
LIBS=$ac_check_lib_save_LIBS
19873
 
fi
19874
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19875
 
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19876
 
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19877
 
  VIX_LIBADD="$VIX_LIBADD -ldl"
19878
 
       LIBVMTOOLS_LIBADD="$LIBVMTOOLS_LIBADD -ldl"
19879
 
else
19880
 
  as_fn_error $? "dlopen was not found, but is required for open-vm-tools to function properly. Please contact your OS vendor." "$LINENO" 5
19881
 
fi
19882
 
 
19883
 
fi
19884
 
done
19885
 
 
19886
 
 
19887
 
for ac_func in ecvt
19888
 
do :
19889
 
  ac_fn_c_check_func "$LINENO" "ecvt" "ac_cv_func_ecvt"
19890
 
if test "x$ac_cv_func_ecvt" = xyes; then :
19891
 
  cat >>confdefs.h <<_ACEOF
19892
 
#define HAVE_ECVT 1
19893
 
_ACEOF
19894
 
 
19895
 
fi
19896
 
done
19897
 
 
19898
 
for ac_func in fcvt
19899
 
do :
19900
 
  ac_fn_c_check_func "$LINENO" "fcvt" "ac_cv_func_fcvt"
19901
 
if test "x$ac_cv_func_fcvt" = xyes; then :
19902
 
  cat >>confdefs.h <<_ACEOF
19903
 
#define HAVE_FCVT 1
19904
 
_ACEOF
19905
 
 
19906
 
fi
19907
 
done
19908
 
 
19909
 
 
19910
 
if test "$os" = "freebsd" -a "$osVersion" -ge 600000; then
19911
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lthr" >&5
19912
 
$as_echo_n "checking for pthread_mutex_init in -lthr... " >&6; }
19913
 
if ${ac_cv_lib_thr_pthread_mutex_init+:} false; then :
19914
 
  $as_echo_n "(cached) " >&6
19915
 
else
19916
 
  ac_check_lib_save_LIBS=$LIBS
19917
 
LIBS="-lthr  $LIBS"
19918
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19919
 
/* end confdefs.h.  */
19920
 
 
19921
 
/* Override any GCC internal prototype to avoid an error.
19922
 
   Use char because int might match the return type of a GCC
19923
 
   builtin and then its argument prototype would still apply.  */
19924
 
#ifdef __cplusplus
19925
 
extern "C"
19926
 
#endif
19927
 
char pthread_mutex_init ();
19928
 
int
19929
 
main ()
19930
 
{
19931
 
return pthread_mutex_init ();
19932
 
  ;
19933
 
  return 0;
19934
 
}
19935
 
_ACEOF
19936
 
if ac_fn_c_try_link "$LINENO"; then :
19937
 
  ac_cv_lib_thr_pthread_mutex_init=yes
19938
 
else
19939
 
  ac_cv_lib_thr_pthread_mutex_init=no
19940
 
fi
19941
 
rm -f core conftest.err conftest.$ac_objext \
19942
 
    conftest$ac_exeext conftest.$ac_ext
19943
 
LIBS=$ac_check_lib_save_LIBS
19944
 
fi
19945
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thr_pthread_mutex_init" >&5
19946
 
$as_echo "$ac_cv_lib_thr_pthread_mutex_init" >&6; }
19947
 
if test "x$ac_cv_lib_thr_pthread_mutex_init" = xyes; then :
19948
 
  THREAD_LIB=-lthr
19949
 
else
19950
 
  as_fn_error $? "Unable to locate required threading library libthr." "$LINENO" 5
19951
 
fi
19952
 
 
19953
 
else
19954
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
19955
 
$as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
19956
 
if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then :
19957
 
  $as_echo_n "(cached) " >&6
19958
 
else
19959
 
  ac_check_lib_save_LIBS=$LIBS
19960
 
LIBS="-lpthread  $LIBS"
19961
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19962
 
/* end confdefs.h.  */
19963
 
 
19964
 
/* Override any GCC internal prototype to avoid an error.
19965
 
   Use char because int might match the return type of a GCC
19966
 
   builtin and then its argument prototype would still apply.  */
19967
 
#ifdef __cplusplus
19968
 
extern "C"
19969
 
#endif
19970
 
char pthread_mutex_init ();
19971
 
int
19972
 
main ()
19973
 
{
19974
 
return pthread_mutex_init ();
19975
 
  ;
19976
 
  return 0;
19977
 
}
19978
 
_ACEOF
19979
 
if ac_fn_c_try_link "$LINENO"; then :
19980
 
  ac_cv_lib_pthread_pthread_mutex_init=yes
19981
 
else
19982
 
  ac_cv_lib_pthread_pthread_mutex_init=no
19983
 
fi
19984
 
rm -f core conftest.err conftest.$ac_objext \
19985
 
    conftest$ac_exeext conftest.$ac_ext
19986
 
LIBS=$ac_check_lib_save_LIBS
19987
 
fi
19988
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
19989
 
$as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
19990
 
if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then :
19991
 
  THREAD_LIB=-lpthread
19992
 
else
19993
 
  as_fn_error $? "libpthread not found. Please install the libc/libpthread devel package(s)." "$LINENO" 5
19994
 
fi
19995
 
 
19996
 
fi
19997
 
 
19998
 
# PAM prefix
19999
 
 
20000
 
# Check whether --with-pam-prefix was given.
20001
 
if test "${with_pam_prefix+set}" = set; then :
20002
 
  withval=$with_pam_prefix; PAM_PREFIX="$withval"
20003
 
else
20004
 
  PAM_PREFIX='$(sysconfdir)'
20005
 
fi
20006
 
 
20007
 
 
20008
 
if test "$os" = "linux"; then
20009
 
 
20010
 
# Check whether --with-procps was given.
20011
 
if test "${with_procps+set}" = set; then :
20012
 
  withval=$with_procps;
20013
 
else
20014
 
  with_procps=yes
20015
 
fi
20016
 
 
20017
 
else
20018
 
        with_procps="no"
20019
 
fi
20020
 
 
20021
 
if test "$with_procps" = "yes"; then
20022
 
   if test -z "$CUSTOM_PROCPS_NAME"; then
20023
 
      CUSTOM_PROCPS_NAME=proc
20024
 
   fi
20025
 
 
20026
 
   # XXX: no pkg-config and no procps-config means we need to
20027
 
   # hard-code a sensible default.
20028
 
   if test -z "$CUSTOM_PROCPS_LIBS"; then
20029
 
      CUSTOM_PROCPS_LIBS="-L/lib"
20030
 
   fi
20031
 
 
20032
 
   # Some distros provide libproc-${version}.so only, others provide the
20033
 
   # libproc.so symlink. Try both to see what sticks (but only try the 3.2.7
20034
 
   # and 3.2.8 versions - adding every possible version here would be a mess).
20035
 
   #
20036
 
   # Users can help by providing CUSTOM_PROCPS_NAME / CUSTOM_PROCPS_LIBS if
20037
 
   # necessary.
20038
 
   have_procps=no
20039
 
 
20040
 
 
20041
 
 
20042
 
   if test -z "$CUSTOM_PROCPS_NAME"; then
20043
 
      as_fn_error $? "'library' parameter is required.'" "$LINENO" 5
20044
 
   fi
20045
 
   if test -z "PROCPS"; then
20046
 
      as_fn_error $? "'lvar' parameter is required.'" "$LINENO" 5
20047
 
   fi
20048
 
 
20049
 
   ac_vmw_have_lib=0
20050
 
   ac_vmw_have_lib_func=0
20051
 
   ac_vmw_have_lib_header=0
20052
 
   ac_vmw_custom_libs=
20053
 
 
20054
 
   #
20055
 
   # First, try any user-defined CUSTOM_* flags.
20056
 
   #
20057
 
   if test -n "${CUSTOM_PROCPS_CPPFLAGS}" || test -n "${CUSTOM_PROCPS_LIBS}"; then
20058
 
      ac_vmw_custom_libs="${CUSTOM_PROCPS_LIBS} -l$CUSTOM_PROCPS_NAME"
20059
 
      if test -n ""; then
20060
 
         ORIGINAL_CPPFLAGS="$CPPFLAGS"
20061
 
         CPPFLAGS="${CUSTOM_PROCPS_CPPFLAGS} $CPPFLAGS"
20062
 
 
20063
 
         ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
20064
 
if test "x$ac_cv_header_" = xyes; then :
20065
 
  ac_vmw_have_lib_header=1
20066
 
fi
20067
 
 
20068
 
 
20069
 
 
20070
 
         CPPFLAGS="$ORIGINAL_CPPFLAGS"
20071
 
      else
20072
 
         ac_vmw_have_lib_header=1
20073
 
      fi
20074
 
 
20075
 
      # Check a specific function in the library if requested.
20076
 
      # If it hasn't, just pick a random function from libc, just to make
20077
 
      # sure the linker can find the library being tested.
20078
 
      if test $ac_vmw_have_lib_header -eq 1; then
20079
 
         if test -n "getstat"; then
20080
 
            ac_vmw_function=getstat
20081
 
         else
20082
 
            ac_vmw_function=strlen
20083
 
         fi
20084
 
         as_ac_Lib=`$as_echo "ac_cv_lib_$CUSTOM_PROCPS_NAME''_$ac_vmw_function" | $as_tr_sh`
20085
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_vmw_function in -l$CUSTOM_PROCPS_NAME" >&5
20086
 
$as_echo_n "checking for $ac_vmw_function in -l$CUSTOM_PROCPS_NAME... " >&6; }
20087
 
if eval \${$as_ac_Lib+:} false; then :
20088
 
  $as_echo_n "(cached) " >&6
20089
 
else
20090
 
  ac_check_lib_save_LIBS=$LIBS
20091
 
LIBS="-l$CUSTOM_PROCPS_NAME $ac_vmw_custom_libs $LIBS"
20092
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20093
 
/* end confdefs.h.  */
20094
 
 
20095
 
/* Override any GCC internal prototype to avoid an error.
20096
 
   Use char because int might match the return type of a GCC
20097
 
   builtin and then its argument prototype would still apply.  */
20098
 
#ifdef __cplusplus
20099
 
extern "C"
20100
 
#endif
20101
 
char $ac_vmw_function ();
20102
 
int
20103
 
main ()
20104
 
{
20105
 
return $ac_vmw_function ();
20106
 
  ;
20107
 
  return 0;
20108
 
}
20109
 
_ACEOF
20110
 
if ac_fn_c_try_link "$LINENO"; then :
20111
 
  eval "$as_ac_Lib=yes"
20112
 
else
20113
 
  eval "$as_ac_Lib=no"
20114
 
fi
20115
 
rm -f core conftest.err conftest.$ac_objext \
20116
 
    conftest$ac_exeext conftest.$ac_ext
20117
 
LIBS=$ac_check_lib_save_LIBS
20118
 
fi
20119
 
eval ac_res=\$$as_ac_Lib
20120
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20121
 
$as_echo "$ac_res" >&6; }
20122
 
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20123
 
  ac_vmw_have_lib_func=1
20124
 
fi
20125
 
 
20126
 
      fi
20127
 
 
20128
 
      if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
20129
 
         PROCPS_CPPFLAGS="${CUSTOM_PROCPS_CPPFLAGS}"
20130
 
         PROCPS_LIBS="$ac_vmw_custom_libs"
20131
 
         ac_vmw_have_lib=1
20132
 
      fi
20133
 
   fi
20134
 
 
20135
 
   # If that didn't work, try with pkg-config.
20136
 
   if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n ""; then
20137
 
      if test -n ""; then
20138
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for  >=  (via pkg-config)" >&5
20139
 
$as_echo_n "checking for  >=  (via pkg-config)... " >&6; }
20140
 
         if pkg-config --exists ' >= '; then
20141
 
            ac_vmw_have_lib=1
20142
 
         fi
20143
 
      else
20144
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for  (via pkg-config)" >&5
20145
 
$as_echo_n "checking for  (via pkg-config)... " >&6; }
20146
 
         if pkg-config --exists ''; then
20147
 
            ac_vmw_have_lib=1
20148
 
         fi
20149
 
      fi
20150
 
 
20151
 
      if test $ac_vmw_have_lib -eq 1; then
20152
 
         # Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
20153
 
         # fails on OpenSolaris B71. So be pessimistic.
20154
 
         ac_vmw_cppflags="`pkg-config --cflags `"
20155
 
         ac_vmw_ret1=$?
20156
 
         ac_vmw_libs="`pkg-config --libs `"
20157
 
         ac_vmw_ret2=$?
20158
 
         if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
20159
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20160
 
$as_echo "yes" >&6; }
20161
 
            PROCPS_CPPFLAGS="$ac_vmw_cppflags"
20162
 
            PROCPS_LIBS="$ac_vmw_libs"
20163
 
         else
20164
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20165
 
$as_echo "no" >&6; }
20166
 
         fi
20167
 
      else
20168
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20169
 
$as_echo "no" >&6; }
20170
 
      fi
20171
 
   fi
20172
 
 
20173
 
   # If we still haven't found the lib, try with the library's custom "config" script.
20174
 
   # Before checking, flush the AC_PATH_PROG cached variable.
20175
 
   unset ac_cv_path_ac_vmw_lib_cfg
20176
 
   unset ac_vmw_lib_cfg
20177
 
   if test $ac_vmw_have_lib -eq 0 && test -n ""; then
20178
 
      # Extract the first word of "", so it can be a program name with args.
20179
 
set dummy ; ac_word=$2
20180
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20181
 
$as_echo_n "checking for $ac_word... " >&6; }
20182
 
if ${ac_cv_path_ac_vmw_lib_cfg+:} false; then :
20183
 
  $as_echo_n "(cached) " >&6
20184
 
else
20185
 
  case $ac_vmw_lib_cfg in
20186
 
  [\\/]* | ?:[\\/]*)
20187
 
  ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
20188
 
  ;;
20189
 
  *)
20190
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20191
 
for as_dir in $PATH
20192
 
do
20193
 
  IFS=$as_save_IFS
20194
 
  test -z "$as_dir" && as_dir=.
20195
 
    for ac_exec_ext in '' $ac_executable_extensions; do
20196
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20197
 
    ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
20198
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20199
 
    break 2
20200
 
  fi
20201
 
done
20202
 
  done
20203
 
IFS=$as_save_IFS
20204
 
 
20205
 
  test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
20206
 
  ;;
20207
 
esac
20208
 
fi
20209
 
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
20210
 
if test -n "$ac_vmw_lib_cfg"; then
20211
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_vmw_lib_cfg" >&5
20212
 
$as_echo "$ac_vmw_lib_cfg" >&6; }
20213
 
else
20214
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20215
 
$as_echo "no" >&6; }
20216
 
fi
20217
 
 
20218
 
 
20219
 
      if test "$ac_vmw_lib_cfg" != "no"; then
20220
 
         # XXX: icu-config does not follow the "--cflags" and "--libs" convention,
20221
 
         # so single it out here to avoid having to replicate all the rest of the
20222
 
         # logic elsewhere.
20223
 
         if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
20224
 
            PROCPS_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
20225
 
            PROCPS_LIBS="`$ac_vmw_lib_cfg --ldflags`"
20226
 
         else
20227
 
            PROCPS_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
20228
 
            PROCPS_LIBS="`$ac_vmw_lib_cfg --libs`"
20229
 
         fi
20230
 
         ac_vmw_have_lib=1
20231
 
      fi
20232
 
   fi
20233
 
 
20234
 
   # Finish by executing the user provided action. The call to "true" is needed
20235
 
   # because the actions are optional, and we need something inside the block.
20236
 
   if test $ac_vmw_have_lib -eq 1; then
20237
 
 
20238
 
 
20239
 
      true
20240
 
 
20241
 
                     have_procps=yes;
20242
 
 
20243
 
   else
20244
 
      true
20245
 
 
20246
 
   fi
20247
 
 
20248
 
 
20249
 
   if test "$have_procps" = "no"; then
20250
 
 
20251
 
 
20252
 
   if test -z "proc-3.2.8"; then
20253
 
      as_fn_error $? "'library' parameter is required.'" "$LINENO" 5
20254
 
   fi
20255
 
   if test -z "PROCPS"; then
20256
 
      as_fn_error $? "'lvar' parameter is required.'" "$LINENO" 5
20257
 
   fi
20258
 
 
20259
 
   ac_vmw_have_lib=0
20260
 
   ac_vmw_have_lib_func=0
20261
 
   ac_vmw_have_lib_header=0
20262
 
   ac_vmw_custom_libs=
20263
 
 
20264
 
   #
20265
 
   # First, try any user-defined CUSTOM_* flags.
20266
 
   #
20267
 
   if test -n "${CUSTOM_PROCPS_CPPFLAGS}" || test -n "${CUSTOM_PROCPS_LIBS}"; then
20268
 
      ac_vmw_custom_libs="${CUSTOM_PROCPS_LIBS} -lproc-3.2.8"
20269
 
      if test -n ""; then
20270
 
         ORIGINAL_CPPFLAGS="$CPPFLAGS"
20271
 
         CPPFLAGS="${CUSTOM_PROCPS_CPPFLAGS} $CPPFLAGS"
20272
 
 
20273
 
         ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
20274
 
if test "x$ac_cv_header_" = xyes; then :
20275
 
  ac_vmw_have_lib_header=1
20276
 
fi
20277
 
 
20278
 
 
20279
 
 
20280
 
         CPPFLAGS="$ORIGINAL_CPPFLAGS"
20281
 
      else
20282
 
         ac_vmw_have_lib_header=1
20283
 
      fi
20284
 
 
20285
 
      # Check a specific function in the library if requested.
20286
 
      # If it hasn't, just pick a random function from libc, just to make
20287
 
      # sure the linker can find the library being tested.
20288
 
      if test $ac_vmw_have_lib_header -eq 1; then
20289
 
         if test -n "getstat"; then
20290
 
            ac_vmw_function=getstat
20291
 
         else
20292
 
            ac_vmw_function=strlen
20293
 
         fi
20294
 
         as_ac_Lib=`$as_echo "ac_cv_lib_proc-3.2.8_$ac_vmw_function" | $as_tr_sh`
20295
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_vmw_function in -lproc-3.2.8" >&5
20296
 
$as_echo_n "checking for $ac_vmw_function in -lproc-3.2.8... " >&6; }
20297
 
if eval \${$as_ac_Lib+:} false; then :
20298
 
  $as_echo_n "(cached) " >&6
20299
 
else
20300
 
  ac_check_lib_save_LIBS=$LIBS
20301
 
LIBS="-lproc-3.2.8 $ac_vmw_custom_libs $LIBS"
20302
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20303
 
/* end confdefs.h.  */
20304
 
 
20305
 
/* Override any GCC internal prototype to avoid an error.
20306
 
   Use char because int might match the return type of a GCC
20307
 
   builtin and then its argument prototype would still apply.  */
20308
 
#ifdef __cplusplus
20309
 
extern "C"
20310
 
#endif
20311
 
char $ac_vmw_function ();
20312
 
int
20313
 
main ()
20314
 
{
20315
 
return $ac_vmw_function ();
20316
 
  ;
20317
 
  return 0;
20318
 
}
20319
 
_ACEOF
20320
 
if ac_fn_c_try_link "$LINENO"; then :
20321
 
  eval "$as_ac_Lib=yes"
20322
 
else
20323
 
  eval "$as_ac_Lib=no"
20324
 
fi
20325
 
rm -f core conftest.err conftest.$ac_objext \
20326
 
    conftest$ac_exeext conftest.$ac_ext
20327
 
LIBS=$ac_check_lib_save_LIBS
20328
 
fi
20329
 
eval ac_res=\$$as_ac_Lib
20330
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20331
 
$as_echo "$ac_res" >&6; }
20332
 
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20333
 
  ac_vmw_have_lib_func=1
20334
 
fi
20335
 
 
20336
 
      fi
20337
 
 
20338
 
      if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
20339
 
         PROCPS_CPPFLAGS="${CUSTOM_PROCPS_CPPFLAGS}"
20340
 
         PROCPS_LIBS="$ac_vmw_custom_libs"
20341
 
         ac_vmw_have_lib=1
20342
 
      fi
20343
 
   fi
20344
 
 
20345
 
   # If that didn't work, try with pkg-config.
20346
 
   if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n ""; then
20347
 
      if test -n ""; then
20348
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for  >=  (via pkg-config)" >&5
20349
 
$as_echo_n "checking for  >=  (via pkg-config)... " >&6; }
20350
 
         if pkg-config --exists ' >= '; then
20351
 
            ac_vmw_have_lib=1
20352
 
         fi
20353
 
      else
20354
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for  (via pkg-config)" >&5
20355
 
$as_echo_n "checking for  (via pkg-config)... " >&6; }
20356
 
         if pkg-config --exists ''; then
20357
 
            ac_vmw_have_lib=1
20358
 
         fi
20359
 
      fi
20360
 
 
20361
 
      if test $ac_vmw_have_lib -eq 1; then
20362
 
         # Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
20363
 
         # fails on OpenSolaris B71. So be pessimistic.
20364
 
         ac_vmw_cppflags="`pkg-config --cflags `"
20365
 
         ac_vmw_ret1=$?
20366
 
         ac_vmw_libs="`pkg-config --libs `"
20367
 
         ac_vmw_ret2=$?
20368
 
         if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
20369
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20370
 
$as_echo "yes" >&6; }
20371
 
            PROCPS_CPPFLAGS="$ac_vmw_cppflags"
20372
 
            PROCPS_LIBS="$ac_vmw_libs"
20373
 
         else
20374
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20375
 
$as_echo "no" >&6; }
20376
 
         fi
20377
 
      else
20378
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20379
 
$as_echo "no" >&6; }
20380
 
      fi
20381
 
   fi
20382
 
 
20383
 
   # If we still haven't found the lib, try with the library's custom "config" script.
20384
 
   # Before checking, flush the AC_PATH_PROG cached variable.
20385
 
   unset ac_cv_path_ac_vmw_lib_cfg
20386
 
   unset ac_vmw_lib_cfg
20387
 
   if test $ac_vmw_have_lib -eq 0 && test -n ""; then
20388
 
      # Extract the first word of "", so it can be a program name with args.
20389
 
set dummy ; ac_word=$2
20390
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20391
 
$as_echo_n "checking for $ac_word... " >&6; }
20392
 
if ${ac_cv_path_ac_vmw_lib_cfg+:} false; then :
20393
 
  $as_echo_n "(cached) " >&6
20394
 
else
20395
 
  case $ac_vmw_lib_cfg in
20396
 
  [\\/]* | ?:[\\/]*)
20397
 
  ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
20398
 
  ;;
20399
 
  *)
20400
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20401
 
for as_dir in $PATH
20402
 
do
20403
 
  IFS=$as_save_IFS
20404
 
  test -z "$as_dir" && as_dir=.
20405
 
    for ac_exec_ext in '' $ac_executable_extensions; do
20406
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20407
 
    ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
20408
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20409
 
    break 2
20410
 
  fi
20411
 
done
20412
 
  done
20413
 
IFS=$as_save_IFS
20414
 
 
20415
 
  test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
20416
 
  ;;
20417
 
esac
20418
 
fi
20419
 
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
20420
 
if test -n "$ac_vmw_lib_cfg"; then
20421
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_vmw_lib_cfg" >&5
20422
 
$as_echo "$ac_vmw_lib_cfg" >&6; }
20423
 
else
20424
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20425
 
$as_echo "no" >&6; }
20426
 
fi
20427
 
 
20428
 
 
20429
 
      if test "$ac_vmw_lib_cfg" != "no"; then
20430
 
         # XXX: icu-config does not follow the "--cflags" and "--libs" convention,
20431
 
         # so single it out here to avoid having to replicate all the rest of the
20432
 
         # logic elsewhere.
20433
 
         if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
20434
 
            PROCPS_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
20435
 
            PROCPS_LIBS="`$ac_vmw_lib_cfg --ldflags`"
20436
 
         else
20437
 
            PROCPS_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
20438
 
            PROCPS_LIBS="`$ac_vmw_lib_cfg --libs`"
20439
 
         fi
20440
 
         ac_vmw_have_lib=1
20441
 
      fi
20442
 
   fi
20443
 
 
20444
 
   # Finish by executing the user provided action. The call to "true" is needed
20445
 
   # because the actions are optional, and we need something inside the block.
20446
 
   if test $ac_vmw_have_lib -eq 1; then
20447
 
 
20448
 
 
20449
 
      true
20450
 
 
20451
 
                        have_procps=yes;
20452
 
 
20453
 
   else
20454
 
      true
20455
 
 
20456
 
   fi
20457
 
 
20458
 
   fi
20459
 
 
20460
 
   if test "$have_procps" = "no"; then
20461
 
 
20462
 
 
20463
 
   if test -z "proc-3.2.7"; then
20464
 
      as_fn_error $? "'library' parameter is required.'" "$LINENO" 5
20465
 
   fi
20466
 
   if test -z "PROCPS"; then
20467
 
      as_fn_error $? "'lvar' parameter is required.'" "$LINENO" 5
20468
 
   fi
20469
 
 
20470
 
   ac_vmw_have_lib=0
20471
 
   ac_vmw_have_lib_func=0
20472
 
   ac_vmw_have_lib_header=0
20473
 
   ac_vmw_custom_libs=
20474
 
 
20475
 
   #
20476
 
   # First, try any user-defined CUSTOM_* flags.
20477
 
   #
20478
 
   if test -n "${CUSTOM_PROCPS_CPPFLAGS}" || test -n "${CUSTOM_PROCPS_LIBS}"; then
20479
 
      ac_vmw_custom_libs="${CUSTOM_PROCPS_LIBS} -lproc-3.2.7"
20480
 
      if test -n ""; then
20481
 
         ORIGINAL_CPPFLAGS="$CPPFLAGS"
20482
 
         CPPFLAGS="${CUSTOM_PROCPS_CPPFLAGS} $CPPFLAGS"
20483
 
 
20484
 
         ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
20485
 
if test "x$ac_cv_header_" = xyes; then :
20486
 
  ac_vmw_have_lib_header=1
20487
 
fi
20488
 
 
20489
 
 
20490
 
 
20491
 
         CPPFLAGS="$ORIGINAL_CPPFLAGS"
20492
 
      else
20493
 
         ac_vmw_have_lib_header=1
20494
 
      fi
20495
 
 
20496
 
      # Check a specific function in the library if requested.
20497
 
      # If it hasn't, just pick a random function from libc, just to make
20498
 
      # sure the linker can find the library being tested.
20499
 
      if test $ac_vmw_have_lib_header -eq 1; then
20500
 
         if test -n "getstat"; then
20501
 
            ac_vmw_function=getstat
20502
 
         else
20503
 
            ac_vmw_function=strlen
20504
 
         fi
20505
 
         as_ac_Lib=`$as_echo "ac_cv_lib_proc-3.2.7_$ac_vmw_function" | $as_tr_sh`
20506
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_vmw_function in -lproc-3.2.7" >&5
20507
 
$as_echo_n "checking for $ac_vmw_function in -lproc-3.2.7... " >&6; }
20508
 
if eval \${$as_ac_Lib+:} false; then :
20509
 
  $as_echo_n "(cached) " >&6
20510
 
else
20511
 
  ac_check_lib_save_LIBS=$LIBS
20512
 
LIBS="-lproc-3.2.7 $ac_vmw_custom_libs $LIBS"
20513
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20514
 
/* end confdefs.h.  */
20515
 
 
20516
 
/* Override any GCC internal prototype to avoid an error.
20517
 
   Use char because int might match the return type of a GCC
20518
 
   builtin and then its argument prototype would still apply.  */
20519
 
#ifdef __cplusplus
20520
 
extern "C"
20521
 
#endif
20522
 
char $ac_vmw_function ();
20523
 
int
20524
 
main ()
20525
 
{
20526
 
return $ac_vmw_function ();
20527
 
  ;
20528
 
  return 0;
20529
 
}
20530
 
_ACEOF
20531
 
if ac_fn_c_try_link "$LINENO"; then :
20532
 
  eval "$as_ac_Lib=yes"
20533
 
else
20534
 
  eval "$as_ac_Lib=no"
20535
 
fi
20536
 
rm -f core conftest.err conftest.$ac_objext \
20537
 
    conftest$ac_exeext conftest.$ac_ext
20538
 
LIBS=$ac_check_lib_save_LIBS
20539
 
fi
20540
 
eval ac_res=\$$as_ac_Lib
20541
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20542
 
$as_echo "$ac_res" >&6; }
20543
 
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20544
 
  ac_vmw_have_lib_func=1
20545
 
fi
20546
 
 
20547
 
      fi
20548
 
 
20549
 
      if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
20550
 
         PROCPS_CPPFLAGS="${CUSTOM_PROCPS_CPPFLAGS}"
20551
 
         PROCPS_LIBS="$ac_vmw_custom_libs"
20552
 
         ac_vmw_have_lib=1
20553
 
      fi
20554
 
   fi
20555
 
 
20556
 
   # If that didn't work, try with pkg-config.
20557
 
   if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n ""; then
20558
 
      if test -n ""; then
20559
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for  >=  (via pkg-config)" >&5
20560
 
$as_echo_n "checking for  >=  (via pkg-config)... " >&6; }
20561
 
         if pkg-config --exists ' >= '; then
20562
 
            ac_vmw_have_lib=1
20563
 
         fi
20564
 
      else
20565
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for  (via pkg-config)" >&5
20566
 
$as_echo_n "checking for  (via pkg-config)... " >&6; }
20567
 
         if pkg-config --exists ''; then
20568
 
            ac_vmw_have_lib=1
20569
 
         fi
20570
 
      fi
20571
 
 
20572
 
      if test $ac_vmw_have_lib -eq 1; then
20573
 
         # Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
20574
 
         # fails on OpenSolaris B71. So be pessimistic.
20575
 
         ac_vmw_cppflags="`pkg-config --cflags `"
20576
 
         ac_vmw_ret1=$?
20577
 
         ac_vmw_libs="`pkg-config --libs `"
20578
 
         ac_vmw_ret2=$?
20579
 
         if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
20580
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20581
 
$as_echo "yes" >&6; }
20582
 
            PROCPS_CPPFLAGS="$ac_vmw_cppflags"
20583
 
            PROCPS_LIBS="$ac_vmw_libs"
20584
 
         else
20585
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20586
 
$as_echo "no" >&6; }
20587
 
         fi
20588
 
      else
20589
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20590
 
$as_echo "no" >&6; }
20591
 
      fi
20592
 
   fi
20593
 
 
20594
 
   # If we still haven't found the lib, try with the library's custom "config" script.
20595
 
   # Before checking, flush the AC_PATH_PROG cached variable.
20596
 
   unset ac_cv_path_ac_vmw_lib_cfg
20597
 
   unset ac_vmw_lib_cfg
20598
 
   if test $ac_vmw_have_lib -eq 0 && test -n ""; then
20599
 
      # Extract the first word of "", so it can be a program name with args.
20600
 
set dummy ; ac_word=$2
20601
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20602
 
$as_echo_n "checking for $ac_word... " >&6; }
20603
 
if ${ac_cv_path_ac_vmw_lib_cfg+:} false; then :
20604
 
  $as_echo_n "(cached) " >&6
20605
 
else
20606
 
  case $ac_vmw_lib_cfg in
20607
 
  [\\/]* | ?:[\\/]*)
20608
 
  ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
20609
 
  ;;
20610
 
  *)
20611
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20612
 
for as_dir in $PATH
20613
 
do
20614
 
  IFS=$as_save_IFS
20615
 
  test -z "$as_dir" && as_dir=.
20616
 
    for ac_exec_ext in '' $ac_executable_extensions; do
20617
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20618
 
    ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
20619
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20620
 
    break 2
20621
 
  fi
20622
 
done
20623
 
  done
20624
 
IFS=$as_save_IFS
20625
 
 
20626
 
  test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
20627
 
  ;;
20628
 
esac
20629
 
fi
20630
 
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
20631
 
if test -n "$ac_vmw_lib_cfg"; then
20632
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_vmw_lib_cfg" >&5
20633
 
$as_echo "$ac_vmw_lib_cfg" >&6; }
20634
 
else
20635
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20636
 
$as_echo "no" >&6; }
20637
 
fi
20638
 
 
20639
 
 
20640
 
      if test "$ac_vmw_lib_cfg" != "no"; then
20641
 
         # XXX: icu-config does not follow the "--cflags" and "--libs" convention,
20642
 
         # so single it out here to avoid having to replicate all the rest of the
20643
 
         # logic elsewhere.
20644
 
         if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
20645
 
            PROCPS_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
20646
 
            PROCPS_LIBS="`$ac_vmw_lib_cfg --ldflags`"
20647
 
         else
20648
 
            PROCPS_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
20649
 
            PROCPS_LIBS="`$ac_vmw_lib_cfg --libs`"
20650
 
         fi
20651
 
         ac_vmw_have_lib=1
20652
 
      fi
20653
 
   fi
20654
 
 
20655
 
   # Finish by executing the user provided action. The call to "true" is needed
20656
 
   # because the actions are optional, and we need something inside the block.
20657
 
   if test $ac_vmw_have_lib -eq 1; then
20658
 
 
20659
 
 
20660
 
      true
20661
 
 
20662
 
   else
20663
 
      true
20664
 
      as_fn_error $? "libproc not found. Please configure without procps (using --without-procps) or install procps - http://procps.sourceforge.net" "$LINENO" 5
20665
 
   fi
20666
 
 
20667
 
   fi
20668
 
fi
20669
 
 
20670
 
if test "$with_procps" != "yes"; then
20671
 
 
20672
 
$as_echo "#define NO_PROCPS 1" >>confdefs.h
20673
 
 
20674
 
fi
20675
 
 
20676
 
 
20677
 
# Check whether --with-dnet was given.
20678
 
if test "${with_dnet+set}" = set; then :
20679
 
  withval=$with_dnet;
20680
 
else
20681
 
  with_dnet=yes
20682
 
fi
20683
 
 
20684
 
 
20685
 
have_dnet="no"
20686
 
if test "$with_dnet" = "yes"; then
20687
 
        # On Debian, dnet is installed via the libdumbnet package. We need to
20688
 
        # detect this so that our source files include dumbnet.h instead of
20689
 
        # dnet.h, which is part of a different package altogether.
20690
 
 
20691
 
 
20692
 
   if test -z "dumbnet"; then
20693
 
      as_fn_error $? "'library' parameter is required.'" "$LINENO" 5
20694
 
   fi
20695
 
   if test -z "DNET"; then
20696
 
      as_fn_error $? "'lvar' parameter is required.'" "$LINENO" 5
20697
 
   fi
20698
 
 
20699
 
   ac_vmw_have_lib=0
20700
 
   ac_vmw_have_lib_func=0
20701
 
   ac_vmw_have_lib_header=0
20702
 
   ac_vmw_custom_libs=
20703
 
 
20704
 
   #
20705
 
   # First, try any user-defined CUSTOM_* flags.
20706
 
   #
20707
 
   if test -n "${CUSTOM_DNET_CPPFLAGS}" || test -n "${CUSTOM_DNET_LIBS}"; then
20708
 
      ac_vmw_custom_libs="${CUSTOM_DNET_LIBS} -ldumbnet"
20709
 
      if test -n "dumbnet.h"; then
20710
 
         ORIGINAL_CPPFLAGS="$CPPFLAGS"
20711
 
         CPPFLAGS="${CUSTOM_DNET_CPPFLAGS} $CPPFLAGS"
20712
 
 
20713
 
         ac_fn_c_check_header_mongrel "$LINENO" "dumbnet.h" "ac_cv_header_dumbnet_h" "$ac_includes_default"
20714
 
if test "x$ac_cv_header_dumbnet_h" = xyes; then :
20715
 
  ac_vmw_have_lib_header=1
20716
 
fi
20717
 
 
20718
 
 
20719
 
 
20720
 
         CPPFLAGS="$ORIGINAL_CPPFLAGS"
20721
 
      else
20722
 
         ac_vmw_have_lib_header=1
20723
 
      fi
20724
 
 
20725
 
      # Check a specific function in the library if requested.
20726
 
      # If it hasn't, just pick a random function from libc, just to make
20727
 
      # sure the linker can find the library being tested.
20728
 
      if test $ac_vmw_have_lib_header -eq 1; then
20729
 
         if test -n "intf_open"; then
20730
 
            ac_vmw_function=intf_open
20731
 
         else
20732
 
            ac_vmw_function=strlen
20733
 
         fi
20734
 
         as_ac_Lib=`$as_echo "ac_cv_lib_dumbnet_$ac_vmw_function" | $as_tr_sh`
20735
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_vmw_function in -ldumbnet" >&5
20736
 
$as_echo_n "checking for $ac_vmw_function in -ldumbnet... " >&6; }
20737
 
if eval \${$as_ac_Lib+:} false; then :
20738
 
  $as_echo_n "(cached) " >&6
20739
 
else
20740
 
  ac_check_lib_save_LIBS=$LIBS
20741
 
LIBS="-ldumbnet $ac_vmw_custom_libs $LIBS"
20742
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20743
 
/* end confdefs.h.  */
20744
 
 
20745
 
/* Override any GCC internal prototype to avoid an error.
20746
 
   Use char because int might match the return type of a GCC
20747
 
   builtin and then its argument prototype would still apply.  */
20748
 
#ifdef __cplusplus
20749
 
extern "C"
20750
 
#endif
20751
 
char $ac_vmw_function ();
20752
 
int
20753
 
main ()
20754
 
{
20755
 
return $ac_vmw_function ();
20756
 
  ;
20757
 
  return 0;
20758
 
}
20759
 
_ACEOF
20760
 
if ac_fn_c_try_link "$LINENO"; then :
20761
 
  eval "$as_ac_Lib=yes"
20762
 
else
20763
 
  eval "$as_ac_Lib=no"
20764
 
fi
20765
 
rm -f core conftest.err conftest.$ac_objext \
20766
 
    conftest$ac_exeext conftest.$ac_ext
20767
 
LIBS=$ac_check_lib_save_LIBS
20768
 
fi
20769
 
eval ac_res=\$$as_ac_Lib
20770
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20771
 
$as_echo "$ac_res" >&6; }
20772
 
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20773
 
  ac_vmw_have_lib_func=1
20774
 
fi
20775
 
 
20776
 
      fi
20777
 
 
20778
 
      if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
20779
 
         DNET_CPPFLAGS="${CUSTOM_DNET_CPPFLAGS}"
20780
 
         DNET_LIBS="$ac_vmw_custom_libs"
20781
 
         ac_vmw_have_lib=1
20782
 
      fi
20783
 
   fi
20784
 
 
20785
 
   # If that didn't work, try with pkg-config.
20786
 
   if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n ""; then
20787
 
      if test -n ""; then
20788
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for  >=  (via pkg-config)" >&5
20789
 
$as_echo_n "checking for  >=  (via pkg-config)... " >&6; }
20790
 
         if pkg-config --exists ' >= '; then
20791
 
            ac_vmw_have_lib=1
20792
 
         fi
20793
 
      else
20794
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for  (via pkg-config)" >&5
20795
 
$as_echo_n "checking for  (via pkg-config)... " >&6; }
20796
 
         if pkg-config --exists ''; then
20797
 
            ac_vmw_have_lib=1
20798
 
         fi
20799
 
      fi
20800
 
 
20801
 
      if test $ac_vmw_have_lib -eq 1; then
20802
 
         # Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
20803
 
         # fails on OpenSolaris B71. So be pessimistic.
20804
 
         ac_vmw_cppflags="`pkg-config --cflags `"
20805
 
         ac_vmw_ret1=$?
20806
 
         ac_vmw_libs="`pkg-config --libs `"
20807
 
         ac_vmw_ret2=$?
20808
 
         if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
20809
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20810
 
$as_echo "yes" >&6; }
20811
 
            DNET_CPPFLAGS="$ac_vmw_cppflags"
20812
 
            DNET_LIBS="$ac_vmw_libs"
20813
 
         else
20814
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20815
 
$as_echo "no" >&6; }
20816
 
         fi
20817
 
      else
20818
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20819
 
$as_echo "no" >&6; }
20820
 
      fi
20821
 
   fi
20822
 
 
20823
 
   # If we still haven't found the lib, try with the library's custom "config" script.
20824
 
   # Before checking, flush the AC_PATH_PROG cached variable.
20825
 
   unset ac_cv_path_ac_vmw_lib_cfg
20826
 
   unset ac_vmw_lib_cfg
20827
 
   if test $ac_vmw_have_lib -eq 0 && test -n "dumbnet-config"; then
20828
 
      # Extract the first word of "dumbnet-config", so it can be a program name with args.
20829
 
set dummy dumbnet-config; ac_word=$2
20830
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20831
 
$as_echo_n "checking for $ac_word... " >&6; }
20832
 
if ${ac_cv_path_ac_vmw_lib_cfg+:} false; then :
20833
 
  $as_echo_n "(cached) " >&6
20834
 
else
20835
 
  case $ac_vmw_lib_cfg in
20836
 
  [\\/]* | ?:[\\/]*)
20837
 
  ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
20838
 
  ;;
20839
 
  *)
20840
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20841
 
for as_dir in $PATH
20842
 
do
20843
 
  IFS=$as_save_IFS
20844
 
  test -z "$as_dir" && as_dir=.
20845
 
    for ac_exec_ext in '' $ac_executable_extensions; do
20846
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20847
 
    ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
20848
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20849
 
    break 2
20850
 
  fi
20851
 
done
20852
 
  done
20853
 
IFS=$as_save_IFS
20854
 
 
20855
 
  test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
20856
 
  ;;
20857
 
esac
20858
 
fi
20859
 
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
20860
 
if test -n "$ac_vmw_lib_cfg"; then
20861
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_vmw_lib_cfg" >&5
20862
 
$as_echo "$ac_vmw_lib_cfg" >&6; }
20863
 
else
20864
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20865
 
$as_echo "no" >&6; }
20866
 
fi
20867
 
 
20868
 
 
20869
 
      if test "$ac_vmw_lib_cfg" != "no"; then
20870
 
         # XXX: icu-config does not follow the "--cflags" and "--libs" convention,
20871
 
         # so single it out here to avoid having to replicate all the rest of the
20872
 
         # logic elsewhere.
20873
 
         if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
20874
 
            DNET_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
20875
 
            DNET_LIBS="`$ac_vmw_lib_cfg --ldflags`"
20876
 
         else
20877
 
            DNET_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
20878
 
            DNET_LIBS="`$ac_vmw_lib_cfg --libs`"
20879
 
         fi
20880
 
         ac_vmw_have_lib=1
20881
 
      fi
20882
 
   fi
20883
 
 
20884
 
   # Finish by executing the user provided action. The call to "true" is needed
20885
 
   # because the actions are optional, and we need something inside the block.
20886
 
   if test $ac_vmw_have_lib -eq 1; then
20887
 
 
20888
 
 
20889
 
      true
20890
 
      have_dnet="yes";
20891
 
 
20892
 
$as_echo "#define DNET_IS_DUMBNET 1" >>confdefs.h
20893
 
 
20894
 
   else
20895
 
      true
20896
 
 
20897
 
   fi
20898
 
 
20899
 
 
20900
 
   if test $have_dnet = "no"; then
20901
 
 
20902
 
 
20903
 
   if test -z "dnet"; then
20904
 
      as_fn_error $? "'library' parameter is required.'" "$LINENO" 5
20905
 
   fi
20906
 
   if test -z "DNET"; then
20907
 
      as_fn_error $? "'lvar' parameter is required.'" "$LINENO" 5
20908
 
   fi
20909
 
 
20910
 
   ac_vmw_have_lib=0
20911
 
   ac_vmw_have_lib_func=0
20912
 
   ac_vmw_have_lib_header=0
20913
 
   ac_vmw_custom_libs=
20914
 
 
20915
 
   #
20916
 
   # First, try any user-defined CUSTOM_* flags.
20917
 
   #
20918
 
   if test -n "${CUSTOM_DNET_CPPFLAGS}" || test -n "${CUSTOM_DNET_LIBS}"; then
20919
 
      ac_vmw_custom_libs="${CUSTOM_DNET_LIBS} -ldnet"
20920
 
      if test -n "dnet.h"; then
20921
 
         ORIGINAL_CPPFLAGS="$CPPFLAGS"
20922
 
         CPPFLAGS="${CUSTOM_DNET_CPPFLAGS} $CPPFLAGS"
20923
 
 
20924
 
         ac_fn_c_check_header_mongrel "$LINENO" "dnet.h" "ac_cv_header_dnet_h" "$ac_includes_default"
20925
 
if test "x$ac_cv_header_dnet_h" = xyes; then :
20926
 
  ac_vmw_have_lib_header=1
20927
 
fi
20928
 
 
20929
 
 
20930
 
 
20931
 
         CPPFLAGS="$ORIGINAL_CPPFLAGS"
20932
 
      else
20933
 
         ac_vmw_have_lib_header=1
20934
 
      fi
20935
 
 
20936
 
      # Check a specific function in the library if requested.
20937
 
      # If it hasn't, just pick a random function from libc, just to make
20938
 
      # sure the linker can find the library being tested.
20939
 
      if test $ac_vmw_have_lib_header -eq 1; then
20940
 
         if test -n "intf_open"; then
20941
 
            ac_vmw_function=intf_open
20942
 
         else
20943
 
            ac_vmw_function=strlen
20944
 
         fi
20945
 
         as_ac_Lib=`$as_echo "ac_cv_lib_dnet_$ac_vmw_function" | $as_tr_sh`
20946
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_vmw_function in -ldnet" >&5
20947
 
$as_echo_n "checking for $ac_vmw_function in -ldnet... " >&6; }
20948
 
if eval \${$as_ac_Lib+:} false; then :
20949
 
  $as_echo_n "(cached) " >&6
20950
 
else
20951
 
  ac_check_lib_save_LIBS=$LIBS
20952
 
LIBS="-ldnet $ac_vmw_custom_libs $LIBS"
20953
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20954
 
/* end confdefs.h.  */
20955
 
 
20956
 
/* Override any GCC internal prototype to avoid an error.
20957
 
   Use char because int might match the return type of a GCC
20958
 
   builtin and then its argument prototype would still apply.  */
20959
 
#ifdef __cplusplus
20960
 
extern "C"
20961
 
#endif
20962
 
char $ac_vmw_function ();
20963
 
int
20964
 
main ()
20965
 
{
20966
 
return $ac_vmw_function ();
20967
 
  ;
20968
 
  return 0;
20969
 
}
20970
 
_ACEOF
20971
 
if ac_fn_c_try_link "$LINENO"; then :
20972
 
  eval "$as_ac_Lib=yes"
20973
 
else
20974
 
  eval "$as_ac_Lib=no"
20975
 
fi
20976
 
rm -f core conftest.err conftest.$ac_objext \
20977
 
    conftest$ac_exeext conftest.$ac_ext
20978
 
LIBS=$ac_check_lib_save_LIBS
20979
 
fi
20980
 
eval ac_res=\$$as_ac_Lib
20981
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20982
 
$as_echo "$ac_res" >&6; }
20983
 
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20984
 
  ac_vmw_have_lib_func=1
20985
 
fi
20986
 
 
20987
 
      fi
20988
 
 
20989
 
      if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
20990
 
         DNET_CPPFLAGS="${CUSTOM_DNET_CPPFLAGS}"
20991
 
         DNET_LIBS="$ac_vmw_custom_libs"
20992
 
         ac_vmw_have_lib=1
20993
 
      fi
20994
 
   fi
20995
 
 
20996
 
   # If that didn't work, try with pkg-config.
20997
 
   if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n ""; then
20998
 
      if test -n ""; then
20999
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for  >=  (via pkg-config)" >&5
21000
 
$as_echo_n "checking for  >=  (via pkg-config)... " >&6; }
21001
 
         if pkg-config --exists ' >= '; then
21002
 
            ac_vmw_have_lib=1
21003
 
         fi
21004
 
      else
21005
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for  (via pkg-config)" >&5
21006
 
$as_echo_n "checking for  (via pkg-config)... " >&6; }
21007
 
         if pkg-config --exists ''; then
21008
 
            ac_vmw_have_lib=1
21009
 
         fi
21010
 
      fi
21011
 
 
21012
 
      if test $ac_vmw_have_lib -eq 1; then
21013
 
         # Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
21014
 
         # fails on OpenSolaris B71. So be pessimistic.
21015
 
         ac_vmw_cppflags="`pkg-config --cflags `"
21016
 
         ac_vmw_ret1=$?
21017
 
         ac_vmw_libs="`pkg-config --libs `"
21018
 
         ac_vmw_ret2=$?
21019
 
         if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
21020
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21021
 
$as_echo "yes" >&6; }
21022
 
            DNET_CPPFLAGS="$ac_vmw_cppflags"
21023
 
            DNET_LIBS="$ac_vmw_libs"
21024
 
         else
21025
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21026
 
$as_echo "no" >&6; }
21027
 
         fi
21028
 
      else
21029
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21030
 
$as_echo "no" >&6; }
21031
 
      fi
21032
 
   fi
21033
 
 
21034
 
   # If we still haven't found the lib, try with the library's custom "config" script.
21035
 
   # Before checking, flush the AC_PATH_PROG cached variable.
21036
 
   unset ac_cv_path_ac_vmw_lib_cfg
21037
 
   unset ac_vmw_lib_cfg
21038
 
   if test $ac_vmw_have_lib -eq 0 && test -n "dnet-config"; then
21039
 
      # Extract the first word of "dnet-config", so it can be a program name with args.
21040
 
set dummy dnet-config; ac_word=$2
21041
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21042
 
$as_echo_n "checking for $ac_word... " >&6; }
21043
 
if ${ac_cv_path_ac_vmw_lib_cfg+:} false; then :
21044
 
  $as_echo_n "(cached) " >&6
21045
 
else
21046
 
  case $ac_vmw_lib_cfg in
21047
 
  [\\/]* | ?:[\\/]*)
21048
 
  ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
21049
 
  ;;
21050
 
  *)
21051
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21052
 
for as_dir in $PATH
21053
 
do
21054
 
  IFS=$as_save_IFS
21055
 
  test -z "$as_dir" && as_dir=.
21056
 
    for ac_exec_ext in '' $ac_executable_extensions; do
21057
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21058
 
    ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
21059
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21060
 
    break 2
21061
 
  fi
21062
 
done
21063
 
  done
21064
 
IFS=$as_save_IFS
21065
 
 
21066
 
  test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
21067
 
  ;;
21068
 
esac
21069
 
fi
21070
 
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
21071
 
if test -n "$ac_vmw_lib_cfg"; then
21072
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_vmw_lib_cfg" >&5
21073
 
$as_echo "$ac_vmw_lib_cfg" >&6; }
21074
 
else
21075
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21076
 
$as_echo "no" >&6; }
21077
 
fi
21078
 
 
21079
 
 
21080
 
      if test "$ac_vmw_lib_cfg" != "no"; then
21081
 
         # XXX: icu-config does not follow the "--cflags" and "--libs" convention,
21082
 
         # so single it out here to avoid having to replicate all the rest of the
21083
 
         # logic elsewhere.
21084
 
         if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
21085
 
            DNET_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
21086
 
            DNET_LIBS="`$ac_vmw_lib_cfg --ldflags`"
21087
 
         else
21088
 
            DNET_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
21089
 
            DNET_LIBS="`$ac_vmw_lib_cfg --libs`"
21090
 
         fi
21091
 
         ac_vmw_have_lib=1
21092
 
      fi
21093
 
   fi
21094
 
 
21095
 
   # Finish by executing the user provided action. The call to "true" is needed
21096
 
   # because the actions are optional, and we need something inside the block.
21097
 
   if test $ac_vmw_have_lib -eq 1; then
21098
 
 
21099
 
 
21100
 
      true
21101
 
      have_dnet="yes"
21102
 
   else
21103
 
      true
21104
 
 
21105
 
   fi
21106
 
 
21107
 
   fi
21108
 
 
21109
 
   if test $have_dnet = "no"; then
21110
 
                as_fn_error $? "dnet-config was not found on your PATH. Please configure without dnet (using --without-dnet) or install dnet - http://libdnet.sourceforge.net" "$LINENO" 5
21111
 
        fi
21112
 
fi
21113
 
 
21114
 
if test "$with_dnet" != "yes"; then
21115
 
 
21116
 
$as_echo "#define NO_DNET 1" >>confdefs.h
21117
 
 
21118
 
fi
21119
 
 
21120
 
 
21121
 
# Check whether --with-icu was given.
21122
 
if test "${with_icu+set}" = set; then :
21123
 
  withval=$with_icu;
21124
 
else
21125
 
  with_icu=yes
21126
 
fi
21127
 
 
21128
 
 
21129
 
if test "$have_x" = "yes" -o "$with_icu" = "yes"; then
21130
 
   if test -n "$ac_tool_prefix"; then
21131
 
  # Extract the first word of "${ac_tool_prefix}$CXX", so it can be a program name with args.
21132
 
set dummy ${ac_tool_prefix}$CXX; ac_word=$2
21133
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21134
 
$as_echo_n "checking for $ac_word... " >&6; }
21135
 
if ${ac_cv_prog_have_cxx+:} false; then :
21136
 
  $as_echo_n "(cached) " >&6
21137
 
else
21138
 
  if test -n "$have_cxx"; then
21139
 
  ac_cv_prog_have_cxx="$have_cxx" # Let the user override the test.
21140
 
else
21141
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21142
 
for as_dir in $PATH
21143
 
do
21144
 
  IFS=$as_save_IFS
21145
 
  test -z "$as_dir" && as_dir=.
21146
 
    for ac_exec_ext in '' $ac_executable_extensions; do
21147
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21148
 
    ac_cv_prog_have_cxx="${ac_tool_prefix}$CXX"
21149
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21150
 
    break 2
21151
 
  fi
21152
 
done
21153
 
  done
21154
 
IFS=$as_save_IFS
21155
 
 
21156
 
fi
21157
 
fi
21158
 
have_cxx=$ac_cv_prog_have_cxx
21159
 
if test -n "$have_cxx"; then
21160
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cxx" >&5
21161
 
$as_echo "$have_cxx" >&6; }
21162
 
else
21163
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21164
 
$as_echo "no" >&6; }
21165
 
fi
21166
 
 
21167
 
 
21168
 
fi
21169
 
if test -z "$ac_cv_prog_have_cxx"; then
21170
 
  ac_ct_have_cxx=$have_cxx
21171
 
  # Extract the first word of "$CXX", so it can be a program name with args.
21172
 
set dummy $CXX; ac_word=$2
21173
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21174
 
$as_echo_n "checking for $ac_word... " >&6; }
21175
 
if ${ac_cv_prog_ac_ct_have_cxx+:} false; then :
21176
 
  $as_echo_n "(cached) " >&6
21177
 
else
21178
 
  if test -n "$ac_ct_have_cxx"; then
21179
 
  ac_cv_prog_ac_ct_have_cxx="$ac_ct_have_cxx" # Let the user override the test.
21180
 
else
21181
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21182
 
for as_dir in $PATH
21183
 
do
21184
 
  IFS=$as_save_IFS
21185
 
  test -z "$as_dir" && as_dir=.
21186
 
    for ac_exec_ext in '' $ac_executable_extensions; do
21187
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21188
 
    ac_cv_prog_ac_ct_have_cxx="$CXX"
21189
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21190
 
    break 2
21191
 
  fi
21192
 
done
21193
 
  done
21194
 
IFS=$as_save_IFS
21195
 
 
21196
 
fi
21197
 
fi
21198
 
ac_ct_have_cxx=$ac_cv_prog_ac_ct_have_cxx
21199
 
if test -n "$ac_ct_have_cxx"; then
21200
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_have_cxx" >&5
21201
 
$as_echo "$ac_ct_have_cxx" >&6; }
21202
 
else
21203
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21204
 
$as_echo "no" >&6; }
21205
 
fi
21206
 
 
21207
 
  if test "x$ac_ct_have_cxx" = x; then
21208
 
    have_cxx="no"
21209
 
  else
21210
 
    case $cross_compiling:$ac_tool_warned in
21211
 
yes:)
21212
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21213
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21214
 
ac_tool_warned=yes ;;
21215
 
esac
21216
 
    have_cxx=$ac_ct_have_cxx
21217
 
  fi
21218
 
else
21219
 
  have_cxx="$ac_cv_prog_have_cxx"
21220
 
fi
21221
 
 
21222
 
   if test "$have_cxx" = "no"; then
21223
 
      as_fn_error $? "C++ compiler not found. Make sure you have a C++ compiler installed or configure without X11 (using --without-x) and without ICU (using --without-icu)." "$LINENO" 5
21224
 
   fi
21225
 
fi
21226
 
 
21227
 
if test "$with_icu" = "yes"; then
21228
 
 
21229
 
 
21230
 
   ac_ext=cpp
21231
 
ac_cpp='$CXXCPP $CPPFLAGS'
21232
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21233
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21234
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21235
 
 
21236
 
 
21237
 
 
21238
 
   if test -z "icuuc"; then
21239
 
      as_fn_error $? "'library' parameter is required.'" "$LINENO" 5
21240
 
   fi
21241
 
   if test -z "ICU"; then
21242
 
      as_fn_error $? "'lvar' parameter is required.'" "$LINENO" 5
21243
 
   fi
21244
 
 
21245
 
   ac_vmw_have_lib=0
21246
 
   ac_vmw_have_lib_func=0
21247
 
   ac_vmw_have_lib_header=0
21248
 
   ac_vmw_custom_libs=
21249
 
 
21250
 
   #
21251
 
   # First, try any user-defined CUSTOM_* flags.
21252
 
   #
21253
 
   if test -n "${CUSTOM_ICU_CPPFLAGS}" || test -n "${CUSTOM_ICU_LIBS}"; then
21254
 
      ac_vmw_custom_libs="${CUSTOM_ICU_LIBS} -licuuc"
21255
 
      if test -n "unicode/utf.h"; then
21256
 
         ORIGINAL_CPPFLAGS="$CPPFLAGS"
21257
 
         CPPFLAGS="${CUSTOM_ICU_CPPFLAGS} $CPPFLAGS"
21258
 
 
21259
 
         ac_fn_cxx_check_header_mongrel "$LINENO" "unicode/utf.h" "ac_cv_header_unicode_utf_h" "$ac_includes_default"
21260
 
if test "x$ac_cv_header_unicode_utf_h" = xyes; then :
21261
 
  ac_vmw_have_lib_header=1
21262
 
fi
21263
 
 
21264
 
 
21265
 
 
21266
 
         CPPFLAGS="$ORIGINAL_CPPFLAGS"
21267
 
      else
21268
 
         ac_vmw_have_lib_header=1
21269
 
      fi
21270
 
 
21271
 
      # Check a specific function in the library if requested.
21272
 
      # If it hasn't, just pick a random function from libc, just to make
21273
 
      # sure the linker can find the library being tested.
21274
 
      if test $ac_vmw_have_lib_header -eq 1; then
21275
 
         if test -n ""; then
21276
 
            ac_vmw_function=
21277
 
         else
21278
 
            ac_vmw_function=strlen
21279
 
         fi
21280
 
         as_ac_Lib=`$as_echo "ac_cv_lib_icuuc_$ac_vmw_function" | $as_tr_sh`
21281
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_vmw_function in -licuuc" >&5
21282
 
$as_echo_n "checking for $ac_vmw_function in -licuuc... " >&6; }
21283
 
if eval \${$as_ac_Lib+:} false; then :
21284
 
  $as_echo_n "(cached) " >&6
21285
 
else
21286
 
  ac_check_lib_save_LIBS=$LIBS
21287
 
LIBS="-licuuc $ac_vmw_custom_libs $LIBS"
21288
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21289
 
/* end confdefs.h.  */
21290
 
 
21291
 
/* Override any GCC internal prototype to avoid an error.
21292
 
   Use char because int might match the return type of a GCC
21293
 
   builtin and then its argument prototype would still apply.  */
21294
 
#ifdef __cplusplus
21295
 
extern "C"
21296
 
#endif
21297
 
char $ac_vmw_function ();
21298
 
int
21299
 
main ()
21300
 
{
21301
 
return $ac_vmw_function ();
21302
 
  ;
21303
 
  return 0;
21304
 
}
21305
 
_ACEOF
21306
 
if ac_fn_cxx_try_link "$LINENO"; then :
21307
 
  eval "$as_ac_Lib=yes"
21308
 
else
21309
 
  eval "$as_ac_Lib=no"
21310
 
fi
21311
 
rm -f core conftest.err conftest.$ac_objext \
21312
 
    conftest$ac_exeext conftest.$ac_ext
21313
 
LIBS=$ac_check_lib_save_LIBS
21314
 
fi
21315
 
eval ac_res=\$$as_ac_Lib
21316
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21317
 
$as_echo "$ac_res" >&6; }
21318
 
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21319
 
  ac_vmw_have_lib_func=1
21320
 
fi
21321
 
 
21322
 
      fi
21323
 
 
21324
 
      if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
21325
 
         ICU_CPPFLAGS="${CUSTOM_ICU_CPPFLAGS}"
21326
 
         ICU_LIBS="$ac_vmw_custom_libs"
21327
 
         ac_vmw_have_lib=1
21328
 
      fi
21329
 
   fi
21330
 
 
21331
 
   # If that didn't work, try with pkg-config.
21332
 
   if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n ""; then
21333
 
      if test -n ""; then
21334
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for  >=  (via pkg-config)" >&5
21335
 
$as_echo_n "checking for  >=  (via pkg-config)... " >&6; }
21336
 
         if pkg-config --exists ' >= '; then
21337
 
            ac_vmw_have_lib=1
21338
 
         fi
21339
 
      else
21340
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for  (via pkg-config)" >&5
21341
 
$as_echo_n "checking for  (via pkg-config)... " >&6; }
21342
 
         if pkg-config --exists ''; then
21343
 
            ac_vmw_have_lib=1
21344
 
         fi
21345
 
      fi
21346
 
 
21347
 
      if test $ac_vmw_have_lib -eq 1; then
21348
 
         # Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
21349
 
         # fails on OpenSolaris B71. So be pessimistic.
21350
 
         ac_vmw_cppflags="`pkg-config --cflags `"
21351
 
         ac_vmw_ret1=$?
21352
 
         ac_vmw_libs="`pkg-config --libs `"
21353
 
         ac_vmw_ret2=$?
21354
 
         if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
21355
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21356
 
$as_echo "yes" >&6; }
21357
 
            ICU_CPPFLAGS="$ac_vmw_cppflags"
21358
 
            ICU_LIBS="$ac_vmw_libs"
21359
 
         else
21360
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21361
 
$as_echo "no" >&6; }
21362
 
         fi
21363
 
      else
21364
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21365
 
$as_echo "no" >&6; }
21366
 
      fi
21367
 
   fi
21368
 
 
21369
 
   # If we still haven't found the lib, try with the library's custom "config" script.
21370
 
   # Before checking, flush the AC_PATH_PROG cached variable.
21371
 
   unset ac_cv_path_ac_vmw_lib_cfg
21372
 
   unset ac_vmw_lib_cfg
21373
 
   if test $ac_vmw_have_lib -eq 0 && test -n "icu-config"; then
21374
 
      # Extract the first word of "icu-config", so it can be a program name with args.
21375
 
set dummy icu-config; ac_word=$2
21376
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21377
 
$as_echo_n "checking for $ac_word... " >&6; }
21378
 
if ${ac_cv_path_ac_vmw_lib_cfg+:} false; then :
21379
 
  $as_echo_n "(cached) " >&6
21380
 
else
21381
 
  case $ac_vmw_lib_cfg in
21382
 
  [\\/]* | ?:[\\/]*)
21383
 
  ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
21384
 
  ;;
21385
 
  *)
21386
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21387
 
for as_dir in $PATH
21388
 
do
21389
 
  IFS=$as_save_IFS
21390
 
  test -z "$as_dir" && as_dir=.
21391
 
    for ac_exec_ext in '' $ac_executable_extensions; do
21392
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21393
 
    ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
21394
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21395
 
    break 2
21396
 
  fi
21397
 
done
21398
 
  done
21399
 
IFS=$as_save_IFS
21400
 
 
21401
 
  test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
21402
 
  ;;
21403
 
esac
21404
 
fi
21405
 
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
21406
 
if test -n "$ac_vmw_lib_cfg"; then
21407
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_vmw_lib_cfg" >&5
21408
 
$as_echo "$ac_vmw_lib_cfg" >&6; }
21409
 
else
21410
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21411
 
$as_echo "no" >&6; }
21412
 
fi
21413
 
 
21414
 
 
21415
 
      if test "$ac_vmw_lib_cfg" != "no"; then
21416
 
         # XXX: icu-config does not follow the "--cflags" and "--libs" convention,
21417
 
         # so single it out here to avoid having to replicate all the rest of the
21418
 
         # logic elsewhere.
21419
 
         if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
21420
 
            ICU_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
21421
 
            ICU_LIBS="`$ac_vmw_lib_cfg --ldflags`"
21422
 
         else
21423
 
            ICU_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
21424
 
            ICU_LIBS="`$ac_vmw_lib_cfg --libs`"
21425
 
         fi
21426
 
         ac_vmw_have_lib=1
21427
 
      fi
21428
 
   fi
21429
 
 
21430
 
   # Finish by executing the user provided action. The call to "true" is needed
21431
 
   # because the actions are optional, and we need something inside the block.
21432
 
   if test $ac_vmw_have_lib -eq 1; then
21433
 
 
21434
 
 
21435
 
      true
21436
 
      ICU_CPPFLAGS="$ICU_CPPFLAGS -DUSE_ICU"
21437
 
   else
21438
 
      true
21439
 
      as_fn_error $? "ICU library not found. Please configure without ICU (using --without-icu) or install ICU - http://www.icu-project.org" "$LINENO" 5
21440
 
   fi
21441
 
 
21442
 
   ac_ext=c
21443
 
ac_cpp='$CPP $CPPFLAGS'
21444
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21445
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21446
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21447
 
 
21448
 
 
21449
 
   # Check whether we have ICU >= 3.8.
21450
 
   ac_ext=cpp
21451
 
ac_cpp='$CXXCPP $CPPFLAGS'
21452
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21453
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21454
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21455
 
 
21456
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucasemap_utf8ToTitle in ICU" >&5
21457
 
$as_echo_n "checking for ucasemap_utf8ToTitle in ICU... " >&6; }
21458
 
   ORIGINAL_CPPFLAGS="$CPPFLAGS"
21459
 
   CPPFLAGS="$CPPFLAGS $ICU_CPPFLAGS"
21460
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21461
 
/* end confdefs.h.  */
21462
 
#include <unicode/ucasemap.h>
21463
 
int
21464
 
main ()
21465
 
{
21466
 
 
21467
 
                     (void) &ucasemap_utf8ToTitle;
21468
 
                     return 0;
21469
 
 
21470
 
  ;
21471
 
  return 0;
21472
 
}
21473
 
_ACEOF
21474
 
if ac_fn_cxx_try_compile "$LINENO"; then :
21475
 
 
21476
 
                     ICU_CPPFLAGS="$ICU_CPPFLAGS -DHAVE_ICU_38"
21477
 
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21478
 
$as_echo "yes" >&6; }
21479
 
 
21480
 
else
21481
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21482
 
$as_echo "no" >&6; }
21483
 
fi
21484
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21485
 
   CPPFLAGS="$ORIGINAL_CPPFLAGS"
21486
 
   ac_ext=c
21487
 
ac_cpp='$CPP $CPPFLAGS'
21488
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21489
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21490
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21491
 
 
21492
 
 
21493
 
   # Easier to give all modules the ICU defines/includes...
21494
 
   CPPFLAGS="$CPPFLAGS $ICU_CPPFLAGS"
21495
 
else
21496
 
   CPPFLAGS="$CPPFLAGS -DNO_ICU"
21497
 
fi
21498
 
 
21499
 
# Extract the first word of "rpcgen", so it can be a program name with args.
21500
 
set dummy rpcgen; ac_word=$2
21501
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21502
 
$as_echo_n "checking for $ac_word... " >&6; }
21503
 
if ${ac_cv_path_RPCGEN+:} false; then :
21504
 
  $as_echo_n "(cached) " >&6
21505
 
else
21506
 
  case $RPCGEN in
21507
 
  [\\/]* | ?:[\\/]*)
21508
 
  ac_cv_path_RPCGEN="$RPCGEN" # Let the user override the test with a path.
21509
 
  ;;
21510
 
  *)
21511
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21512
 
for as_dir in $PATH
21513
 
do
21514
 
  IFS=$as_save_IFS
21515
 
  test -z "$as_dir" && as_dir=.
21516
 
    for ac_exec_ext in '' $ac_executable_extensions; do
21517
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21518
 
    ac_cv_path_RPCGEN="$as_dir/$ac_word$ac_exec_ext"
21519
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21520
 
    break 2
21521
 
  fi
21522
 
done
21523
 
  done
21524
 
IFS=$as_save_IFS
21525
 
 
21526
 
  test -z "$ac_cv_path_RPCGEN" && ac_cv_path_RPCGEN=" as_fn_error $? "rpcgen not found. Please install the libc devel package." "$LINENO" 5 "
21527
 
  ;;
21528
 
esac
21529
 
fi
21530
 
RPCGEN=$ac_cv_path_RPCGEN
21531
 
if test -n "$RPCGEN"; then
21532
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPCGEN" >&5
21533
 
$as_echo "$RPCGEN" >&6; }
21534
 
else
21535
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21536
 
$as_echo "no" >&6; }
21537
 
fi
21538
 
 
21539
 
 
21540
 
 
21541
 
###
21542
 
### Headers
21543
 
###
21544
 
 
21545
 
for ac_header in crypt.h
21546
 
do :
21547
 
  ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
21548
 
if test "x$ac_cv_header_crypt_h" = xyes; then :
21549
 
  cat >>confdefs.h <<_ACEOF
21550
 
#define HAVE_CRYPT_H 1
21551
 
_ACEOF
21552
 
 
21553
 
fi
21554
 
 
21555
 
done
21556
 
 
21557
 
for ac_header in inttypes.h
21558
 
do :
21559
 
  ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
21560
 
if test "x$ac_cv_header_inttypes_h" = xyes; then :
21561
 
  cat >>confdefs.h <<_ACEOF
21562
 
#define HAVE_INTTYPES_H 1
21563
 
_ACEOF
21564
 
 
21565
 
fi
21566
 
 
21567
 
done
21568
 
 
21569
 
for ac_header in stdint.h
21570
 
do :
21571
 
  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
21572
 
if test "x$ac_cv_header_stdint_h" = xyes; then :
21573
 
  cat >>confdefs.h <<_ACEOF
21574
 
#define HAVE_STDINT_H 1
21575
 
_ACEOF
21576
 
 
21577
 
fi
21578
 
 
21579
 
done
21580
 
 
21581
 
for ac_header in stdlib.h
21582
 
do :
21583
 
  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
21584
 
if test "x$ac_cv_header_stdlib_h" = xyes; then :
21585
 
  cat >>confdefs.h <<_ACEOF
21586
 
#define HAVE_STDLIB_H 1
21587
 
_ACEOF
21588
 
 
21589
 
fi
21590
 
 
21591
 
done
21592
 
 
21593
 
for ac_header in wchar.h
21594
 
do :
21595
 
  ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
21596
 
if test "x$ac_cv_header_wchar_h" = xyes; then :
21597
 
  cat >>confdefs.h <<_ACEOF
21598
 
#define HAVE_WCHAR_H 1
21599
 
_ACEOF
21600
 
 
21601
 
fi
21602
 
 
21603
 
done
21604
 
 
21605
 
for ac_header in sys/inttypes.h
21606
 
do :
21607
 
  ac_fn_c_check_header_mongrel "$LINENO" "sys/inttypes.h" "ac_cv_header_sys_inttypes_h" "$ac_includes_default"
21608
 
if test "x$ac_cv_header_sys_inttypes_h" = xyes; then :
21609
 
  cat >>confdefs.h <<_ACEOF
21610
 
#define HAVE_SYS_INTTYPES_H 1
21611
 
_ACEOF
21612
 
 
21613
 
fi
21614
 
 
21615
 
done
21616
 
 
21617
 
for ac_header in sys/io.h
21618
 
do :
21619
 
  ac_fn_c_check_header_mongrel "$LINENO" "sys/io.h" "ac_cv_header_sys_io_h" "$ac_includes_default"
21620
 
if test "x$ac_cv_header_sys_io_h" = xyes; then :
21621
 
  cat >>confdefs.h <<_ACEOF
21622
 
#define HAVE_SYS_IO_H 1
21623
 
_ACEOF
21624
 
 
21625
 
fi
21626
 
 
21627
 
done
21628
 
 
21629
 
for ac_header in sys/param.h
21630
 
do :
21631
 
  ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
21632
 
if test "x$ac_cv_header_sys_param_h" = xyes; then :
21633
 
  cat >>confdefs.h <<_ACEOF
21634
 
#define HAVE_SYS_PARAM_H 1
21635
 
_ACEOF
21636
 
 
21637
 
fi
21638
 
 
21639
 
done
21640
 
 # Required to make the sys/user.h check work correctly on FreeBSD
21641
 
for ac_header in sys/sysinfo.h
21642
 
do :
21643
 
  ac_fn_c_check_header_mongrel "$LINENO" "sys/sysinfo.h" "ac_cv_header_sys_sysinfo_h" "$ac_includes_default"
21644
 
if test "x$ac_cv_header_sys_sysinfo_h" = xyes; then :
21645
 
  cat >>confdefs.h <<_ACEOF
21646
 
#define HAVE_SYS_SYSINFO_H 1
21647
 
_ACEOF
21648
 
 
21649
 
fi
21650
 
 
21651
 
done
21652
 
 
21653
 
for ac_header in sys/types.h
21654
 
do :
21655
 
  ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
21656
 
if test "x$ac_cv_header_sys_types_h" = xyes; then :
21657
 
  cat >>confdefs.h <<_ACEOF
21658
 
#define HAVE_SYS_TYPES_H 1
21659
 
_ACEOF
21660
 
 
21661
 
fi
21662
 
 
21663
 
done
21664
 
 
21665
 
for ac_header in sys/user.h
21666
 
do :
21667
 
  ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "
21668
 
#ifdef HAVE_SYS_PARAM_H
21669
 
#   include <sys/param.h>
21670
 
#endif
21671
 
 
21672
 
"
21673
 
if test "x$ac_cv_header_sys_user_h" = xyes; then :
21674
 
  cat >>confdefs.h <<_ACEOF
21675
 
#define HAVE_SYS_USER_H 1
21676
 
_ACEOF
21677
 
 
21678
 
fi
21679
 
 
21680
 
done
21681
 
 
21682
 
for ac_header in sys/vfs.h
21683
 
do :
21684
 
  ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
21685
 
if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
21686
 
  cat >>confdefs.h <<_ACEOF
21687
 
#define HAVE_SYS_VFS_H 1
21688
 
_ACEOF
21689
 
 
21690
 
fi
21691
 
 
21692
 
done
21693
 
 
21694
 
for ac_header in syslimits.h
21695
 
do :
21696
 
  ac_fn_c_check_header_mongrel "$LINENO" "syslimits.h" "ac_cv_header_syslimits_h" "$ac_includes_default"
21697
 
if test "x$ac_cv_header_syslimits_h" = xyes; then :
21698
 
  cat >>confdefs.h <<_ACEOF
21699
 
#define HAVE_SYSLIMITS_H 1
21700
 
_ACEOF
21701
 
 
21702
 
fi
21703
 
 
21704
 
done
21705
 
 
21706
 
for ac_header in unwind.h
21707
 
do :
21708
 
  ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
21709
 
if test "x$ac_cv_header_unwind_h" = xyes; then :
21710
 
  cat >>confdefs.h <<_ACEOF
21711
 
#define HAVE_UNWIND_H 1
21712
 
_ACEOF
21713
 
 
21714
 
fi
21715
 
 
21716
 
done
21717
 
 
21718
 
 
21719
 
ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
21720
 
if test "x$ac_cv_header_wchar_h" = xyes; then :
21721
 
  HAVE_WCHAR_H="yes"
21722
 
else
21723
 
  HAVE_WCHAR_H="no"
21724
 
fi
21725
 
 
21726
 
 
21727
 
 
21728
 
if test "$os" = "linux"; then
21729
 
   # Make sure kernel-headers package is installed.
21730
 
   ac_fn_c_check_header_mongrel "$LINENO" "linux/unistd.h" "ac_cv_header_linux_unistd_h" "$ac_includes_default"
21731
 
if test "x$ac_cv_header_linux_unistd_h" = xyes; then :
21732
 
 
21733
 
else
21734
 
  as_fn_error $? "linux/unistd.h is not found. Please install kernel-headers/linux-userspace-headers/linux-libc-dev package." "$LINENO" 5
21735
 
fi
21736
 
 
21737
 
 
21738
 
fi
21739
 
 
21740
 
if test "$enable_multimon" != "no"; then
21741
 
   ac_fn_c_check_header_compile "$LINENO" "X11/extensions/panoramiXproto.h" "ac_cv_header_X11_extensions_panoramiXproto_h" "#include <X11/X.h>
21742
 
       #include <X11/Xmd.h>
21743
 
"
21744
 
if test "x$ac_cv_header_X11_extensions_panoramiXproto_h" = xyes; then :
21745
 
 
21746
 
else
21747
 
  as_fn_error $? "panoramiXproto.h not found. Please configure without multimon (using --disable-multimon) or install the libXinerama devel package(s)." "$LINENO" 5
21748
 
fi
21749
 
 
21750
 
 
21751
 
fi
21752
 
 
21753
 
bsdPrintfWrappers=no
21754
 
if test "$os" = "linux"; then
21755
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ecvt in -lc" >&5
21756
 
$as_echo_n "checking for ecvt in -lc... " >&6; }
21757
 
if ${ac_cv_lib_c_ecvt+:} false; then :
21758
 
  $as_echo_n "(cached) " >&6
21759
 
else
21760
 
  ac_check_lib_save_LIBS=$LIBS
21761
 
LIBS="-lc  $LIBS"
21762
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21763
 
/* end confdefs.h.  */
21764
 
 
21765
 
/* Override any GCC internal prototype to avoid an error.
21766
 
   Use char because int might match the return type of a GCC
21767
 
   builtin and then its argument prototype would still apply.  */
21768
 
#ifdef __cplusplus
21769
 
extern "C"
21770
 
#endif
21771
 
char ecvt ();
21772
 
int
21773
 
main ()
21774
 
{
21775
 
return ecvt ();
21776
 
  ;
21777
 
  return 0;
21778
 
}
21779
 
_ACEOF
21780
 
if ac_fn_c_try_link "$LINENO"; then :
21781
 
  ac_cv_lib_c_ecvt=yes
21782
 
else
21783
 
  ac_cv_lib_c_ecvt=no
21784
 
fi
21785
 
rm -f core conftest.err conftest.$ac_objext \
21786
 
    conftest$ac_exeext conftest.$ac_ext
21787
 
LIBS=$ac_check_lib_save_LIBS
21788
 
fi
21789
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_ecvt" >&5
21790
 
$as_echo "$ac_cv_lib_c_ecvt" >&6; }
21791
 
if test "x$ac_cv_lib_c_ecvt" = xyes; then :
21792
 
  bsdPrintfWrappers=yes
21793
 
fi
21794
 
 
21795
 
fi
21796
 
 
21797
 
###
21798
 
### Typdefs, structs, and compiler quarks.
21799
 
###
21800
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
21801
 
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
21802
 
if ${ac_cv_header_stdbool_h+:} false; then :
21803
 
  $as_echo_n "(cached) " >&6
21804
 
else
21805
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21806
 
/* end confdefs.h.  */
21807
 
 
21808
 
#include <stdbool.h>
21809
 
#ifndef bool
21810
 
 "error: bool is not defined"
21811
 
#endif
21812
 
#ifndef false
21813
 
 "error: false is not defined"
21814
 
#endif
21815
 
#if false
21816
 
 "error: false is not 0"
21817
 
#endif
21818
 
#ifndef true
21819
 
 "error: true is not defined"
21820
 
#endif
21821
 
#if true != 1
21822
 
 "error: true is not 1"
21823
 
#endif
21824
 
#ifndef __bool_true_false_are_defined
21825
 
 "error: __bool_true_false_are_defined is not defined"
21826
 
#endif
21827
 
 
21828
 
        struct s { _Bool s: 1; _Bool t; } s;
21829
 
 
21830
 
        char a[true == 1 ? 1 : -1];
21831
 
        char b[false == 0 ? 1 : -1];
21832
 
        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21833
 
        char d[(bool) 0.5 == true ? 1 : -1];
21834
 
        /* See body of main program for 'e'.  */
21835
 
        char f[(_Bool) 0.0 == false ? 1 : -1];
21836
 
        char g[true];
21837
 
        char h[sizeof (_Bool)];
21838
 
        char i[sizeof s.t];
21839
 
        enum { j = false, k = true, l = false * true, m = true * 256 };
21840
 
        /* The following fails for
21841
 
           HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21842
 
        _Bool n[m];
21843
 
        char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21844
 
        char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21845
 
        /* Catch a bug in an HP-UX C compiler.  See
21846
 
           http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21847
 
           http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21848
 
         */
21849
 
        _Bool q = true;
21850
 
        _Bool *pq = &q;
21851
 
 
21852
 
int
21853
 
main ()
21854
 
{
21855
 
 
21856
 
        bool e = &s;
21857
 
        *pq |= q;
21858
 
        *pq |= ! q;
21859
 
        /* Refer to every declared value, to avoid compiler optimizations.  */
21860
 
        return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21861
 
                + !m + !n + !o + !p + !q + !pq);
21862
 
 
21863
 
  ;
21864
 
  return 0;
21865
 
}
21866
 
_ACEOF
21867
 
if ac_fn_c_try_compile "$LINENO"; then :
21868
 
  ac_cv_header_stdbool_h=yes
21869
 
else
21870
 
  ac_cv_header_stdbool_h=no
21871
 
fi
21872
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21873
 
fi
21874
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21875
 
$as_echo "$ac_cv_header_stdbool_h" >&6; }
21876
 
ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21877
 
if test "x$ac_cv_type__Bool" = xyes; then :
21878
 
 
21879
 
cat >>confdefs.h <<_ACEOF
21880
 
#define HAVE__BOOL 1
21881
 
_ACEOF
21882
 
 
21883
 
 
21884
 
fi
21885
 
 
21886
 
if test $ac_cv_header_stdbool_h = yes; then
21887
 
 
21888
 
$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
21889
 
 
21890
 
fi
21891
 
 
21892
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
21893
 
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
21894
 
if ${ac_cv_c_const+:} false; then :
21895
 
  $as_echo_n "(cached) " >&6
21896
 
else
21897
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21898
 
/* end confdefs.h.  */
21899
 
 
21900
 
int
21901
 
main ()
21902
 
{
21903
 
/* FIXME: Include the comments suggested by Paul. */
21904
 
#ifndef __cplusplus
21905
 
  /* Ultrix mips cc rejects this.  */
21906
 
  typedef int charset[2];
21907
 
  const charset cs;
21908
 
  /* SunOS 4.1.1 cc rejects this.  */
21909
 
  char const *const *pcpcc;
21910
 
  char **ppc;
21911
 
  /* NEC SVR4.0.2 mips cc rejects this.  */
21912
 
  struct point {int x, y;};
21913
 
  static struct point const zero = {0,0};
21914
 
  /* AIX XL C 1.02.0.0 rejects this.
21915
 
     It does not let you subtract one const X* pointer from another in
21916
 
     an arm of an if-expression whose if-part is not a constant
21917
 
     expression */
21918
 
  const char *g = "string";
21919
 
  pcpcc = &g + (g ? g-g : 0);
21920
 
  /* HPUX 7.0 cc rejects these. */
21921
 
  ++pcpcc;
21922
 
  ppc = (char**) pcpcc;
21923
 
  pcpcc = (char const *const *) ppc;
21924
 
  { /* SCO 3.2v4 cc rejects this.  */
21925
 
    char *t;
21926
 
    char const *s = 0 ? (char *) 0 : (char const *) 0;
21927
 
 
21928
 
    *t++ = 0;
21929
 
    if (s) return 0;
21930
 
  }
21931
 
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21932
 
    int x[] = {25, 17};
21933
 
    const int *foo = &x[0];
21934
 
    ++foo;
21935
 
  }
21936
 
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21937
 
    typedef const int *iptr;
21938
 
    iptr p = 0;
21939
 
    ++p;
21940
 
  }
21941
 
  { /* AIX XL C 1.02.0.0 rejects this saying
21942
 
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21943
 
    struct s { int j; const int *ap[3]; };
21944
 
    struct s *b; b->j = 5;
21945
 
  }
21946
 
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21947
 
    const int foo = 10;
21948
 
    if (!foo) return 0;
21949
 
  }
21950
 
  return !cs[0] && !zero.x;
21951
 
#endif
21952
 
 
21953
 
  ;
21954
 
  return 0;
21955
 
}
21956
 
_ACEOF
21957
 
if ac_fn_c_try_compile "$LINENO"; then :
21958
 
  ac_cv_c_const=yes
21959
 
else
21960
 
  ac_cv_c_const=no
21961
 
fi
21962
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21963
 
fi
21964
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
21965
 
$as_echo "$ac_cv_c_const" >&6; }
21966
 
if test $ac_cv_c_const = no; then
21967
 
 
21968
 
$as_echo "#define const /**/" >>confdefs.h
21969
 
 
21970
 
fi
21971
 
 
21972
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
21973
 
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
21974
 
if ${ac_cv_type_uid_t+:} false; then :
21975
 
  $as_echo_n "(cached) " >&6
21976
 
else
21977
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21978
 
/* end confdefs.h.  */
21979
 
#include <sys/types.h>
21980
 
 
21981
 
_ACEOF
21982
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21983
 
  $EGREP "uid_t" >/dev/null 2>&1; then :
21984
 
  ac_cv_type_uid_t=yes
21985
 
else
21986
 
  ac_cv_type_uid_t=no
21987
 
fi
21988
 
rm -f conftest*
21989
 
 
21990
 
fi
21991
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
21992
 
$as_echo "$ac_cv_type_uid_t" >&6; }
21993
 
if test $ac_cv_type_uid_t = no; then
21994
 
 
21995
 
$as_echo "#define uid_t int" >>confdefs.h
21996
 
 
21997
 
 
21998
 
$as_echo "#define gid_t int" >>confdefs.h
21999
 
 
22000
 
fi
22001
 
 
22002
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22003
 
$as_echo_n "checking for inline... " >&6; }
22004
 
if ${ac_cv_c_inline+:} false; then :
22005
 
  $as_echo_n "(cached) " >&6
22006
 
else
22007
 
  ac_cv_c_inline=no
22008
 
for ac_kw in inline __inline__ __inline; do
22009
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22010
 
/* end confdefs.h.  */
22011
 
#ifndef __cplusplus
22012
 
typedef int foo_t;
22013
 
static $ac_kw foo_t static_foo () {return 0; }
22014
 
$ac_kw foo_t foo () {return 0; }
22015
 
#endif
22016
 
 
22017
 
_ACEOF
22018
 
if ac_fn_c_try_compile "$LINENO"; then :
22019
 
  ac_cv_c_inline=$ac_kw
22020
 
fi
22021
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22022
 
  test "$ac_cv_c_inline" != no && break
22023
 
done
22024
 
 
22025
 
fi
22026
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22027
 
$as_echo "$ac_cv_c_inline" >&6; }
22028
 
 
22029
 
case $ac_cv_c_inline in
22030
 
  inline | yes) ;;
22031
 
  *)
22032
 
    case $ac_cv_c_inline in
22033
 
      no) ac_val=;;
22034
 
      *) ac_val=$ac_cv_c_inline;;
22035
 
    esac
22036
 
    cat >>confdefs.h <<_ACEOF
22037
 
#ifndef __cplusplus
22038
 
#define inline $ac_val
22039
 
#endif
22040
 
_ACEOF
22041
 
    ;;
22042
 
esac
22043
 
 
22044
 
ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22045
 
if test "x$ac_cv_type_mode_t" = xyes; then :
22046
 
 
22047
 
else
22048
 
 
22049
 
cat >>confdefs.h <<_ACEOF
22050
 
#define mode_t int
22051
 
_ACEOF
22052
 
 
22053
 
fi
22054
 
 
22055
 
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22056
 
if test "x$ac_cv_type_off_t" = xyes; then :
22057
 
 
22058
 
else
22059
 
 
22060
 
cat >>confdefs.h <<_ACEOF
22061
 
#define off_t long int
22062
 
_ACEOF
22063
 
 
22064
 
fi
22065
 
 
22066
 
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22067
 
if test "x$ac_cv_type_pid_t" = xyes; then :
22068
 
 
22069
 
else
22070
 
 
22071
 
cat >>confdefs.h <<_ACEOF
22072
 
#define pid_t int
22073
 
_ACEOF
22074
 
 
22075
 
fi
22076
 
 
22077
 
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22078
 
if test "x$ac_cv_type_size_t" = xyes; then :
22079
 
 
22080
 
else
22081
 
 
22082
 
cat >>confdefs.h <<_ACEOF
22083
 
#define size_t unsigned int
22084
 
_ACEOF
22085
 
 
22086
 
fi
22087
 
 
22088
 
ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
22089
 
if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
22090
 
 
22091
 
cat >>confdefs.h <<_ACEOF
22092
 
#define HAVE_STRUCT_STAT_ST_RDEV 1
22093
 
_ACEOF
22094
 
 
22095
 
 
22096
 
fi
22097
 
 
22098
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22099
 
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22100
 
if ${ac_cv_header_time+:} false; then :
22101
 
  $as_echo_n "(cached) " >&6
22102
 
else
22103
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22104
 
/* end confdefs.h.  */
22105
 
#include <sys/types.h>
22106
 
#include <sys/time.h>
22107
 
#include <time.h>
22108
 
 
22109
 
int
22110
 
main ()
22111
 
{
22112
 
if ((struct tm *) 0)
22113
 
return 0;
22114
 
  ;
22115
 
  return 0;
22116
 
}
22117
 
_ACEOF
22118
 
if ac_fn_c_try_compile "$LINENO"; then :
22119
 
  ac_cv_header_time=yes
22120
 
else
22121
 
  ac_cv_header_time=no
22122
 
fi
22123
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22124
 
fi
22125
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22126
 
$as_echo "$ac_cv_header_time" >&6; }
22127
 
if test $ac_cv_header_time = yes; then
22128
 
 
22129
 
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22130
 
 
22131
 
fi
22132
 
 
22133
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
22134
 
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
22135
 
if ${ac_cv_struct_tm+:} false; then :
22136
 
  $as_echo_n "(cached) " >&6
22137
 
else
22138
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22139
 
/* end confdefs.h.  */
22140
 
#include <sys/types.h>
22141
 
#include <time.h>
22142
 
 
22143
 
int
22144
 
main ()
22145
 
{
22146
 
struct tm tm;
22147
 
                                     int *p = &tm.tm_sec;
22148
 
                                     return !p;
22149
 
  ;
22150
 
  return 0;
22151
 
}
22152
 
_ACEOF
22153
 
if ac_fn_c_try_compile "$LINENO"; then :
22154
 
  ac_cv_struct_tm=time.h
22155
 
else
22156
 
  ac_cv_struct_tm=sys/time.h
22157
 
fi
22158
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22159
 
fi
22160
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
22161
 
$as_echo "$ac_cv_struct_tm" >&6; }
22162
 
if test $ac_cv_struct_tm = sys/time.h; then
22163
 
 
22164
 
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
22165
 
 
22166
 
fi
22167
 
 
22168
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22169
 
$as_echo_n "checking for working volatile... " >&6; }
22170
 
if ${ac_cv_c_volatile+:} false; then :
22171
 
  $as_echo_n "(cached) " >&6
22172
 
else
22173
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22174
 
/* end confdefs.h.  */
22175
 
 
22176
 
int
22177
 
main ()
22178
 
{
22179
 
 
22180
 
volatile int x;
22181
 
int * volatile y = (int *) 0;
22182
 
return !x && !y;
22183
 
  ;
22184
 
  return 0;
22185
 
}
22186
 
_ACEOF
22187
 
if ac_fn_c_try_compile "$LINENO"; then :
22188
 
  ac_cv_c_volatile=yes
22189
 
else
22190
 
  ac_cv_c_volatile=no
22191
 
fi
22192
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22193
 
fi
22194
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22195
 
$as_echo "$ac_cv_c_volatile" >&6; }
22196
 
if test $ac_cv_c_volatile = no; then
22197
 
 
22198
 
$as_echo "#define volatile /**/" >>confdefs.h
22199
 
 
22200
 
fi
22201
 
 
22202
 
 
22203
 
###
22204
 
### Specific features and OS/arch flags / actions
22205
 
###
22206
 
 
22207
 
### General flags / actions
22208
 
CFLAGS="$CFLAGS -Wall"
22209
 
CFLAGS="$CFLAGS -Werror"
22210
 
 
22211
 
# -Wno-unknown-pragmas is due to gcc not understanding '#pragma ident' in Xlib.h on OpenSolaris.
22212
 
for TEST_CFLAG in -Wno-pointer-sign -Wno-unused-value -fno-strict-aliasing \
22213
 
    -Wno-unknown-pragmas -Wno-uninitialized; do
22214
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC flag $TEST_CFLAG" >&5
22215
 
$as_echo_n "checking for GCC flag $TEST_CFLAG... " >&6; }
22216
 
    ORIGINAL_CFLAGS="$CFLAGS"
22217
 
    CFLAGS="$CFLAGS $TEST_CFLAG"
22218
 
    NEW_CFLAG=""
22219
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22220
 
/* end confdefs.h.  */
22221
 
 
22222
 
int
22223
 
main ()
22224
 
{
22225
 
 
22226
 
        return 0;
22227
 
 
22228
 
  ;
22229
 
  return 0;
22230
 
}
22231
 
_ACEOF
22232
 
if ac_fn_c_try_compile "$LINENO"; then :
22233
 
  NEW_CFLAG=" $TEST_CFLAG"
22234
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22235
 
$as_echo "yes" >&6; }
22236
 
else
22237
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22238
 
$as_echo "no" >&6; }
22239
 
fi
22240
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22241
 
   CFLAGS="$ORIGINAL_CFLAGS$NEW_CFLAG"
22242
 
done
22243
 
CPPFLAGS="$CPPFLAGS -DVMX86_TOOLS"
22244
 
CPPFLAGS="$CPPFLAGS"
22245
 
 
22246
 
# -fvisibility is used by "core service" plugins, but not required.
22247
 
ORIGINAL_CFLAGS="$CFLAGS"
22248
 
CFLAGS="$CFLAGS -fvisibility=hidden"
22249
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC flag -fvisibility" >&5
22250
 
$as_echo_n "checking for GCC flag -fvisibility... " >&6; }
22251
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22252
 
/* end confdefs.h.  */
22253
 
 
22254
 
int
22255
 
main ()
22256
 
{
22257
 
return 0;
22258
 
  ;
22259
 
  return 0;
22260
 
}
22261
 
_ACEOF
22262
 
if ac_fn_c_try_compile "$LINENO"; then :
22263
 
  PLUGIN_CPPFLAGS="-fvisibility=hidden -DGCC_EXPLICIT_EXPORT";
22264
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22265
 
$as_echo "yes" >&6; }
22266
 
else
22267
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22268
 
$as_echo "no" >&6; }
22269
 
fi
22270
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22271
 
CFLAGS="$ORIGINAL_CFLAGS"
22272
 
 
22273
 
# Detect "unused-but-set-variable" gcc warning and disable it.
22274
 
ORIGINAL_CFLAGS="$CFLAGS"
22275
 
CFLAGS="$CFLAGS -Wno-unused-but-set-variable"
22276
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC flag -Wno-unused-but-set-variable" >&5
22277
 
$as_echo_n "checking for GCC flag -Wno-unused-but-set-variable... " >&6; }
22278
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22279
 
/* end confdefs.h.  */
22280
 
 
22281
 
int
22282
 
main ()
22283
 
{
22284
 
return 0;
22285
 
  ;
22286
 
  return 0;
22287
 
}
22288
 
_ACEOF
22289
 
if ac_fn_c_try_compile "$LINENO"; then :
22290
 
  ORIGINAL_CFLAGS="$ORIGINAL_CFLAGS -Wno-unused-but-set-variable";
22291
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22292
 
$as_echo "yes" >&6; }
22293
 
else
22294
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22295
 
$as_echo "no" >&6; }
22296
 
fi
22297
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22298
 
CFLAGS="$ORIGINAL_CFLAGS"
22299
 
 
22300
 
 
22301
 
BUILDDIR="`pwd`"
22302
 
 
22303
 
INCLUDE_DIR="`cd $srcdir; pwd`/lib/include"
22304
 
BLD_INCLUDE_DIR="$BUILDDIR/lib/include"
22305
 
CPPFLAGS="-I$INCLUDE_DIR -I$BLD_INCLUDE_DIR $CPPFLAGS"
22306
 
 
22307
 
###
22308
 
### Documentation.
22309
 
###
22310
 
 
22311
 
if test "$enable_docs" = "yes"; then
22312
 
   # Extract the first word of "doxygen", so it can be a program name with args.
22313
 
set dummy doxygen; ac_word=$2
22314
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22315
 
$as_echo_n "checking for $ac_word... " >&6; }
22316
 
if ${ac_cv_prog_have_doxygen+:} false; then :
22317
 
  $as_echo_n "(cached) " >&6
22318
 
else
22319
 
  if test -n "$have_doxygen"; then
22320
 
  ac_cv_prog_have_doxygen="$have_doxygen" # Let the user override the test.
22321
 
else
22322
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22323
 
for as_dir in $PATH
22324
 
do
22325
 
  IFS=$as_save_IFS
22326
 
  test -z "$as_dir" && as_dir=.
22327
 
    for ac_exec_ext in '' $ac_executable_extensions; do
22328
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22329
 
    ac_cv_prog_have_doxygen="yes"
22330
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22331
 
    break 2
22332
 
  fi
22333
 
done
22334
 
  done
22335
 
IFS=$as_save_IFS
22336
 
 
22337
 
  test -z "$ac_cv_prog_have_doxygen" && ac_cv_prog_have_doxygen="no"
22338
 
fi
22339
 
fi
22340
 
have_doxygen=$ac_cv_prog_have_doxygen
22341
 
if test -n "$have_doxygen"; then
22342
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_doxygen" >&5
22343
 
$as_echo "$have_doxygen" >&6; }
22344
 
else
22345
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22346
 
$as_echo "no" >&6; }
22347
 
fi
22348
 
 
22349
 
 
22350
 
   if test "$have_doxygen" = "no"; then
22351
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found; API documentation will not be generated." >&5
22352
 
$as_echo "$as_me: WARNING: doxygen not found; API documentation will not be generated." >&2;}
22353
 
   else
22354
 
      # Extract the first word of "dot", so it can be a program name with args.
22355
 
set dummy dot; ac_word=$2
22356
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22357
 
$as_echo_n "checking for $ac_word... " >&6; }
22358
 
if ${ac_cv_path_DOT+:} false; then :
22359
 
  $as_echo_n "(cached) " >&6
22360
 
else
22361
 
  case $DOT in
22362
 
  [\\/]* | ?:[\\/]*)
22363
 
  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
22364
 
  ;;
22365
 
  *)
22366
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22367
 
for as_dir in $PATH
22368
 
do
22369
 
  IFS=$as_save_IFS
22370
 
  test -z "$as_dir" && as_dir=.
22371
 
    for ac_exec_ext in '' $ac_executable_extensions; do
22372
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22373
 
    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
22374
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22375
 
    break 2
22376
 
  fi
22377
 
done
22378
 
  done
22379
 
IFS=$as_save_IFS
22380
 
 
22381
 
  ;;
22382
 
esac
22383
 
fi
22384
 
DOT=$ac_cv_path_DOT
22385
 
if test -n "$DOT"; then
22386
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
22387
 
$as_echo "$DOT" >&6; }
22388
 
else
22389
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22390
 
$as_echo "no" >&6; }
22391
 
fi
22392
 
 
22393
 
 
22394
 
      if test "$DOT" = ""; then
22395
 
         HAVE_DOT=NO
22396
 
      else
22397
 
         DOT=`dirname $DOT`
22398
 
         HAVE_DOT=YES
22399
 
      fi
22400
 
 
22401
 
 
22402
 
 
22403
 
      # Extract the first word of "mscgen", so it can be a program name with args.
22404
 
set dummy mscgen; ac_word=$2
22405
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22406
 
$as_echo_n "checking for $ac_word... " >&6; }
22407
 
if ${ac_cv_path_MSCGEN+:} false; then :
22408
 
  $as_echo_n "(cached) " >&6
22409
 
else
22410
 
  case $MSCGEN in
22411
 
  [\\/]* | ?:[\\/]*)
22412
 
  ac_cv_path_MSCGEN="$MSCGEN" # Let the user override the test with a path.
22413
 
  ;;
22414
 
  *)
22415
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22416
 
for as_dir in $PATH
22417
 
do
22418
 
  IFS=$as_save_IFS
22419
 
  test -z "$as_dir" && as_dir=.
22420
 
    for ac_exec_ext in '' $ac_executable_extensions; do
22421
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22422
 
    ac_cv_path_MSCGEN="$as_dir/$ac_word$ac_exec_ext"
22423
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22424
 
    break 2
22425
 
  fi
22426
 
done
22427
 
  done
22428
 
IFS=$as_save_IFS
22429
 
 
22430
 
  test -z "$ac_cv_path_MSCGEN" && ac_cv_path_MSCGEN="no"
22431
 
  ;;
22432
 
esac
22433
 
fi
22434
 
MSCGEN=$ac_cv_path_MSCGEN
22435
 
if test -n "$MSCGEN"; then
22436
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSCGEN" >&5
22437
 
$as_echo "$MSCGEN" >&6; }
22438
 
else
22439
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22440
 
$as_echo "no" >&6; }
22441
 
fi
22442
 
 
22443
 
 
22444
 
      if test "$MSCGEN" != "no"; then
22445
 
         MSCGEN_DIR="`dirname $MSCGEN`"
22446
 
      else
22447
 
         MSCGEN_DIR=
22448
 
      fi
22449
 
 
22450
 
   fi
22451
 
fi
22452
 
 
22453
 
###
22454
 
### OS/arch-specific flags / actions
22455
 
###
22456
 
 
22457
 
MODULES=""
22458
 
MODULES_OS="$os"
22459
 
TARGET_OS="$os"
22460
 
MODULES_DIR=""
22461
 
buildHgfsmounter=no
22462
 
 
22463
 
if test "$have_glib_2_14" = "yes"; then
22464
 
   CPPFLAGS="$CPPFLAGS -DHAVE_GLIB_REGEX"
22465
 
fi
22466
 
 
22467
 
if test "$os" = "linux"; then
22468
 
   MODULES_DIR="$LINUXDIR/kernel/"
22469
 
 
22470
 
   CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
22471
 
   CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
22472
 
   CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500"
22473
 
   CPPFLAGS="$CPPFLAGS -D_BSD_SOURCE"
22474
 
   CPPFLAGS="$CPPFLAGS -D_SVID_SOURCE"
22475
 
 
22476
 
   LIBVMTOOLS_LIBADD="$LIBVMTOOLS_LIBADD -lrt"
22477
 
 
22478
 
   MODULES="$MODULES vmci vsock"
22479
 
   MODULES="$MODULES vmxnet vmhgfs"
22480
 
   if test "$osVersion" -lt 300000; then
22481
 
      MODULES="$MODULES vmblock vmsync"
22482
 
   fi
22483
 
   buildHgfsmounter=yes
22484
 
fi
22485
 
 
22486
 
if test "$os" = "freebsd" || test "$os" = "kfreebsd-gnu"; then
22487
 
   LIBVMTOOLS_LIBADD="$LIBVMTOOLS_LIBADD -lkvm"
22488
 
   MODULES_DIR="/boot/modules"
22489
 
 
22490
 
   if test "$osVersion" -ge 302000; then
22491
 
      MODULES="$MODULES vmmemctl"
22492
 
   fi
22493
 
   if test "$osVersion" -ge 409000; then
22494
 
      MODULES="$MODULES vmxnet"
22495
 
   fi
22496
 
   if test "$osVersion" -ge 600000; then
22497
 
      MODULES="$MODULES vmblock vmhgfs"
22498
 
      buildHgfsmounter=yes
22499
 
   fi
22500
 
 
22501
 
   if test "$with_kernel_modules" = "yes"; then
22502
 
      echo "****************************************************************"
22503
 
      echo "   You are building FreeBSD kernel modules. Make sure you use   "
22504
 
      echo "   'make' to build open-vm-tools, and not GNU make ('gmake').   "
22505
 
      echo "****************************************************************"
22506
 
   fi
22507
 
fi
22508
 
 
22509
 
if test "$os" = "solaris"; then
22510
 
   LIB_IMPERSONATE_CPPFLAGS="$LIB_IMPERSONATE_CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
22511
 
   LIB_USER_CPPFLAGS="$LIB_USER_CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
22512
 
 
22513
 
   LIBVMTOOLS_LIBADD="$LIBVMTOOLS_LIBADD -lsocket"
22514
 
   LIBVMTOOLS_LIBADD="$LIBVMTOOLS_LIBADD -lnsl"
22515
 
   LIBVMTOOLS_LIBADD="$LIBVMTOOLS_LIBADD -lresolv"
22516
 
   LIBVMTOOLS_LIBADD="$LIBVMTOOLS_LIBADD -lrpcsvc"
22517
 
 
22518
 
   # Setup defines to identify the OS version.
22519
 
   if test "$osVersion" -eq 509000; then
22520
 
      CPPFLAGS="$CPPFLAGS -DSOL9"
22521
 
   fi
22522
 
   if test "$osVersion" -eq 510000; then
22523
 
      CPPFLAGS="$CPPFLAGS -DSOL10"
22524
 
   fi
22525
 
   if test "$osVersion" -eq 511000; then
22526
 
      CPPFLAGS="$CPPFLAGS -DSOL11"
22527
 
   fi
22528
 
 
22529
 
   MODULES="$MODULES vmxnet vmmemctl"
22530
 
 
22531
 
   # HGFS and vmblock need Solaris 10 at least.
22532
 
   if test "$osVersion" -ge 510000; then
22533
 
      MODULES="$MODULES vmhgfs vmblock"
22534
 
   fi
22535
 
 
22536
 
   # vmxnet3 is built on Solaris 10 / 11 only if GLDv3 is installed.
22537
 
   if test "$osVersion" -gt 510000; then
22538
 
      ac_fn_c_check_header_mongrel "$LINENO" "sys/mac.h" "ac_cv_header_sys_mac_h" "$ac_includes_default"
22539
 
if test "x$ac_cv_header_sys_mac_h" = xyes; then :
22540
 
  MODULES="$MODULES vmxnet3"
22541
 
else
22542
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GLDv3 (sys/mac.h) is not installed, vmxnet3 will not be compiled." >&5
22543
 
$as_echo "$as_me: WARNING: GLDv3 (sys/mac.h) is not installed, vmxnet3 will not be compiled." >&2;}
22544
 
fi
22545
 
 
22546
 
 
22547
 
   fi
22548
 
 
22549
 
   if test "$with_kernel_modules" = "yes"; then
22550
 
      echo "****************************************************************"
22551
 
      echo "   You are building Solaris kernel modules. Make sure you use   "
22552
 
      echo "   GNU make to build open-vm-tools.                             "
22553
 
      echo "****************************************************************"
22554
 
   fi
22555
 
fi
22556
 
 
22557
 
 if test "$buildHgfsmounter" = "yes"; then
22558
 
  BUILD_HGFSMOUNTER_TRUE=
22559
 
  BUILD_HGFSMOUNTER_FALSE='#'
22560
 
else
22561
 
  BUILD_HGFSMOUNTER_TRUE='#'
22562
 
  BUILD_HGFSMOUNTER_FALSE=
22563
 
fi
22564
 
 
22565
 
 if test "$os" = "linux"; then
22566
 
  LINUX_TRUE=
22567
 
  LINUX_FALSE='#'
22568
 
else
22569
 
  LINUX_TRUE='#'
22570
 
  LINUX_FALSE=
22571
 
fi
22572
 
 
22573
 
 if test "$os" = "solaris"; then
22574
 
  SOLARIS_TRUE=
22575
 
  SOLARIS_FALSE='#'
22576
 
else
22577
 
  SOLARIS_TRUE='#'
22578
 
  SOLARIS_FALSE=
22579
 
fi
22580
 
 
22581
 
 if test "$os" = "freebsd" -o "$os" = "kfreebsd-gnu"; then
22582
 
  FREEBSD_TRUE=
22583
 
  FREEBSD_FALSE='#'
22584
 
else
22585
 
  FREEBSD_TRUE='#'
22586
 
  FREEBSD_FALSE=
22587
 
fi
22588
 
 
22589
 
 if test \( "$os" = "freebsd" -o "$os" = "kfreebsd-gnu" \) -a -n "$SYSDIR"; then
22590
 
  FREEBSD_CUSTOM_SYSDIR_TRUE=
22591
 
  FREEBSD_CUSTOM_SYSDIR_FALSE='#'
22592
 
else
22593
 
  FREEBSD_CUSTOM_SYSDIR_TRUE='#'
22594
 
  FREEBSD_CUSTOM_SYSDIR_FALSE=
22595
 
fi
22596
 
 
22597
 
 if test "$userSpaceBitness" = "32"; then
22598
 
  THIRTY_TWO_BIT_USERSPACE_TRUE=
22599
 
  THIRTY_TWO_BIT_USERSPACE_FALSE='#'
22600
 
else
22601
 
  THIRTY_TWO_BIT_USERSPACE_TRUE='#'
22602
 
  THIRTY_TWO_BIT_USERSPACE_FALSE=
22603
 
fi
22604
 
 
22605
 
 if test "$have_x" = "yes"; then
22606
 
  HAVE_X11_TRUE=
22607
 
  HAVE_X11_FALSE='#'
22608
 
else
22609
 
  HAVE_X11_TRUE='#'
22610
 
  HAVE_X11_FALSE=
22611
 
fi
22612
 
 
22613
 
 if test "$with_icu" = "yes"; then
22614
 
  HAVE_ICU_TRUE=
22615
 
  HAVE_ICU_FALSE='#'
22616
 
else
22617
 
  HAVE_ICU_TRUE='#'
22618
 
  HAVE_ICU_FALSE=
22619
 
fi
22620
 
 
22621
 
 if test "$with_kernel_modules" = "yes"; then
22622
 
  WITH_KERNEL_MODULES_TRUE=
22623
 
  WITH_KERNEL_MODULES_FALSE='#'
22624
 
else
22625
 
  WITH_KERNEL_MODULES_TRUE='#'
22626
 
  WITH_KERNEL_MODULES_FALSE=
22627
 
fi
22628
 
 
22629
 
 if test "$have_xsm" = "yes"; then
22630
 
  HAVE_XSM_TRUE=
22631
 
  HAVE_XSM_FALSE='#'
22632
 
else
22633
 
  HAVE_XSM_TRUE='#'
22634
 
  HAVE_XSM_FALSE=
22635
 
fi
22636
 
 
22637
 
 if test "$have_xcomposite" = "yes"; then
22638
 
  HAVE_XCOMPOSITE_TRUE=
22639
 
  HAVE_XCOMPOSITE_FALSE='#'
22640
 
else
22641
 
  HAVE_XCOMPOSITE_TRUE='#'
22642
 
  HAVE_XCOMPOSITE_FALSE=
22643
 
fi
22644
 
 
22645
 
 if test "$have_cunit" = "yes"; then
22646
 
  ENABLE_TESTS_TRUE=
22647
 
  ENABLE_TESTS_FALSE='#'
22648
 
else
22649
 
  ENABLE_TESTS_TRUE='#'
22650
 
  ENABLE_TESTS_FALSE=
22651
 
fi
22652
 
 
22653
 
 if test "$with_root_privileges" = "yes"; then
22654
 
  WITH_ROOT_PRIVILEGES_TRUE=
22655
 
  WITH_ROOT_PRIVILEGES_FALSE='#'
22656
 
else
22657
 
  WITH_ROOT_PRIVILEGES_TRUE='#'
22658
 
  WITH_ROOT_PRIVILEGES_FALSE=
22659
 
fi
22660
 
 
22661
 
 if test "$have_dnet" = "yes"; then
22662
 
  HAVE_DNET_TRUE=
22663
 
  HAVE_DNET_FALSE='#'
22664
 
else
22665
 
  HAVE_DNET_TRUE='#'
22666
 
  HAVE_DNET_FALSE=
22667
 
fi
22668
 
 
22669
 
 if test "$have_doxygen" = "yes"; then
22670
 
  HAVE_DOXYGEN_TRUE=
22671
 
  HAVE_DOXYGEN_FALSE='#'
22672
 
else
22673
 
  HAVE_DOXYGEN_TRUE='#'
22674
 
  HAVE_DOXYGEN_FALSE=
22675
 
fi
22676
 
 
22677
 
 if test "$have_fuse" = "yes"; then
22678
 
  HAVE_FUSE_TRUE=
22679
 
  HAVE_FUSE_FALSE='#'
22680
 
else
22681
 
  HAVE_FUSE_TRUE='#'
22682
 
  HAVE_FUSE_FALSE=
22683
 
fi
22684
 
 
22685
 
 if test "$with_gnu_ld" = "yes"; then
22686
 
  HAVE_GNU_LD_TRUE=
22687
 
  HAVE_GNU_LD_FALSE='#'
22688
 
else
22689
 
  HAVE_GNU_LD_TRUE='#'
22690
 
  HAVE_GNU_LD_FALSE=
22691
 
fi
22692
 
 
22693
 
 if test "$have_x" = "yes" -a "$with_gtkmm" = "yes"; then
22694
 
  HAVE_GTKMM_TRUE=
22695
 
  HAVE_GTKMM_FALSE='#'
22696
 
else
22697
 
  HAVE_GTKMM_TRUE='#'
22698
 
  HAVE_GTKMM_FALSE=
22699
 
fi
22700
 
 
22701
 
 if test "$with_pam" = "yes"; then
22702
 
  HAVE_PAM_TRUE=
22703
 
  HAVE_PAM_FALSE='#'
22704
 
else
22705
 
  HAVE_PAM_TRUE='#'
22706
 
  HAVE_PAM_FALSE=
22707
 
fi
22708
 
 
22709
 
 if test "os" = "linux" -a "$have_glib_2_14" = "yes"; then
22710
 
  USE_SLASH_PROC_TRUE=
22711
 
  USE_SLASH_PROC_FALSE='#'
22712
 
else
22713
 
  USE_SLASH_PROC_TRUE='#'
22714
 
  USE_SLASH_PROC_FALSE=
22715
 
fi
22716
 
 
22717
 
 if test "$bsdPrintfWrappers" = "yes"; then
22718
 
  USE_PRINTF_WRAPPERS_TRUE=
22719
 
  USE_PRINTF_WRAPPERS_FALSE='#'
22720
 
else
22721
 
  USE_PRINTF_WRAPPERS_TRUE='#'
22722
 
  USE_PRINTF_WRAPPERS_FALSE=
22723
 
fi
22724
 
 
22725
 
 
22726
 
if test "$have_xsm" != "yes"; then
22727
 
$as_echo "#define NO_XSM 1" >>confdefs.h
22728
 
 
22729
 
fi
22730
 
 
22731
 
if test "$have_xcomposite" != "yes"; then
22732
 
   $as_echo "#define NO_XCOMPOSITE 1" >>confdefs.h
22733
 
 
22734
 
fi
22735
 
 
22736
 
### Feature-specific flags / actions
22737
 
# Combine where possible
22738
 
 
22739
 
# If control reaches this point and multimon is still enabled, then we know
22740
 
# all of the tests for required components have passed and it's safe to allow
22741
 
# multimon. Otherwise, it should be disabled.
22742
 
if test "$enable_multimon" = "no"; then
22743
 
   # XXX: For consistency, change this to ENABLE_MULTIMON. This will require
22744
 
   # some additional code cleanup.
22745
 
 
22746
 
$as_echo "#define NO_MULTIMON 1" >>confdefs.h
22747
 
 
22748
 
fi
22749
 
 
22750
 
LIB_AUTH_CPPFLAGS="$LIB_AUTH_CPPFLAGS $PAM_CPPFLAGS"
22751
 
if test "$HAVE_CRYPT" = "yes"; then
22752
 
   LIBVMTOOLS_LIBADD="$LIBVMTOOLS_LIBADD -lcrypt"
22753
 
   VIX_LIBADD="$VIX_LIBADD -lcrypt"
22754
 
fi
22755
 
 
22756
 
 
22757
 
LIBVMTOOLS_LIBADD="$LIBVMTOOLS_LIBADD $THREAD_LIB"
22758
 
VIX_LIBADD="$VIX_LIBADD $THREAD_LIB"
22759
 
 
22760
 
### Core Services definitions.
22761
 
 
22762
 
HGFS_LIBS="$BUILDDIR/libhgfs/libhgfs.la"
22763
 
 
22764
 
VMTOOLS_LIBS="$BUILDDIR/libvmtools/libvmtools.la $GLIB2_LIBS"
22765
 
VMTOOLS_CPPFLAGS="-DVMTOOLS_USE_GLIB $GLIB2_CPPFLAGS"
22766
 
 
22767
 
PLUGIN_CPPFLAGS="$VMTOOLS_CPPFLAGS $PLUGIN_CPPFLAGS"
22768
 
PLUGIN_LDFLAGS="-Wl,-z,defs -Wl,-lc -shared -module -avoid-version"
22769
 
 
22770
 
# In Solaris, the XDR-related functions are not in libc like in Linux and
22771
 
# FreeBSD, so binaries need to be linked to some extra libraries.
22772
 
XDR_LIBS=
22773
 
if test "$os" = "solaris"; then
22774
 
   XDR_LIBS="-lnsl -lrpcsvc"
22775
 
fi
22776
 
 
22777
 
# Installation directories for core services plugins.
22778
 
TEST_PLUGIN_INSTALLDIR=$datadir/open-vm-tools/tests
22779
 
COMMON_PLUGIN_INSTALLDIR=$libdir/open-vm-tools/plugins/common
22780
 
VMSVC_PLUGIN_INSTALLDIR=$libdir/open-vm-tools/plugins/vmsvc
22781
 
VMUSR_PLUGIN_INSTALLDIR=$libdir/open-vm-tools/plugins/vmusr
22782
 
 
22783
 
# General definitions
22784
 
INSTVMSG='$(SHELL) $(top_srcdir)/scripts/build/instvmsg.sh'
22785
 
RPCGEN_WRAPPER='$(SHELL) $(top_builddir)/scripts/build/rpcgen_wrapper.sh'
22786
 
 
22787
 
### General substs
22788
 
 
22789
 
 
22790
 
 
22791
 
 
22792
 
 
22793
 
 
22794
 
 
22795
 
 
22796
 
 
22797
 
 
22798
 
 
22799
 
 
22800
 
 
22801
 
 
22802
 
 
22803
 
 
22804
 
 
22805
 
 
22806
 
 
22807
 
 
22808
 
 
22809
 
 
22810
 
 
22811
 
if test "$os" = "freebsd" -a -n "$SYSDIR"; then
22812
 
   # If SYSDIR is not defined, AC_SUBST expands to nothing, so we need something
22813
 
   # inside this block.
22814
 
   true
22815
 
 
22816
 
fi
22817
 
 
22818
 
 
22819
 
 
22820
 
### Lib substs
22821
 
 
22822
 
 
22823
 
 
22824
 
 
22825
 
 
22826
 
 
22827
 
### Program substs
22828
 
 
22829
 
 
22830
 
 
22831
 
###
22832
 
### Create the Makefiles
22833
 
###
22834
 
ac_config_files="$ac_config_files Makefile lib/Makefile lib/appUtil/Makefile lib/auth/Makefile lib/backdoor/Makefile lib/dict/Makefile lib/dynxdr/Makefile lib/err/Makefile lib/file/Makefile lib/foundryMsg/Makefile lib/glibUtils/Makefile lib/guestApp/Makefile lib/guestRpc/Makefile lib/hgfs/Makefile lib/hgfsBd/Makefile lib/hgfsHelper/Makefile lib/hgfsServer/Makefile lib/hgfsServerManagerGuest/Makefile lib/hgfsServerPolicyGuest/Makefile lib/impersonate/Makefile lib/lock/Makefile lib/message/Makefile lib/misc/Makefile lib/netUtil/Makefile lib/panic/Makefile lib/panicDefault/Makefile lib/printer/Makefile lib/procMgr/Makefile lib/rpcChannel/Makefile lib/rpcIn/Makefile lib/rpcOut/Makefile lib/rpcVmx/Makefile lib/slashProc/Makefile lib/string/Makefile lib/stubs/Makefile lib/syncDriver/Makefile lib/system/Makefile lib/unicode/Makefile lib/user/Makefile lib/vmCheck/Makefile lib/vmSignal/Makefile lib/wiper/Makefile lib/xdg/Makefile services/Makefile services/vmtoolsd/Makefile services/plugins/Makefile services/plugins/desktopEvents/Makefile services/plugins/dndcp/Makefile services/plugins/guestInfo/Makefile services/plugins/guestInfo/getlib/Makefile services/plugins/hgfsServer/Makefile services/plugins/powerOps/Makefile services/plugins/resolutionSet/Makefile services/plugins/timeSync/Makefile services/plugins/vix/Makefile services/plugins/vmbackup/Makefile vmware-user-suid-wrapper/Makefile toolbox/Makefile hgfsclient/Makefile hgfsmounter/Makefile checkvm/Makefile rpctool/Makefile libguestlib/Makefile libguestlib/vmguestlib.pc libhgfs/Makefile libvmtools/Makefile xferlogs/Makefile modules/Makefile vmblock-fuse/Makefile vmblockmounter/Makefile tests/Makefile tests/vmrpcdbg/Makefile tests/testDebug/Makefile tests/testPlugin/Makefile tests/testVmblock/Makefile docs/Makefile docs/api/Makefile scripts/Makefile scripts/build/rpcgen_wrapper.sh"
22835
 
 
22836
 
 
22837
 
###
22838
 
### Output
22839
 
###
22840
 
cat >confcache <<\_ACEOF
22841
 
# This file is a shell script that caches the results of configure
22842
 
# tests run on this system so they can be shared between configure
22843
 
# scripts and configure runs, see configure's option --config-cache.
22844
 
# It is not useful on other systems.  If it contains results you don't
22845
 
# want to keep, you may remove or edit it.
22846
 
#
22847
 
# config.status only pays attention to the cache file if you give it
22848
 
# the --recheck option to rerun configure.
22849
 
#
22850
 
# `ac_cv_env_foo' variables (set or unset) will be overridden when
22851
 
# loading this file, other *unset* `ac_cv_foo' will be assigned the
22852
 
# following values.
22853
 
 
22854
 
_ACEOF
22855
 
 
22856
 
# The following way of writing the cache mishandles newlines in values,
22857
 
# but we know of no workaround that is simple, portable, and efficient.
22858
 
# So, we kill variables containing newlines.
22859
 
# Ultrix sh set writes to stderr and can't be redirected directly,
22860
 
# and sets the high bit in the cache file unless we assign to the vars.
22861
 
(
22862
 
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22863
 
    eval ac_val=\$$ac_var
22864
 
    case $ac_val in #(
22865
 
    *${as_nl}*)
22866
 
      case $ac_var in #(
22867
 
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22868
 
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22869
 
      esac
22870
 
      case $ac_var in #(
22871
 
      _ | IFS | as_nl) ;; #(
22872
 
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22873
 
      *) { eval $ac_var=; unset $ac_var;} ;;
22874
 
      esac ;;
22875
 
    esac
22876
 
  done
22877
 
 
22878
 
  (set) 2>&1 |
22879
 
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22880
 
    *${as_nl}ac_space=\ *)
22881
 
      # `set' does not quote correctly, so add quotes: double-quote
22882
 
      # substitution turns \\\\ into \\, and sed turns \\ into \.
22883
 
      sed -n \
22884
 
        "s/'/'\\\\''/g;
22885
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22886
 
      ;; #(
22887
 
    *)
22888
 
      # `set' quotes correctly as required by POSIX, so do not add quotes.
22889
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22890
 
      ;;
22891
 
    esac |
22892
 
    sort
22893
 
) |
22894
 
  sed '
22895
 
     /^ac_cv_env_/b end
22896
 
     t clear
22897
 
     :clear
22898
 
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22899
 
     t end
22900
 
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22901
 
     :end' >>confcache
22902
 
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22903
 
  if test -w "$cache_file"; then
22904
 
    if test "x$cache_file" != "x/dev/null"; then
22905
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22906
 
$as_echo "$as_me: updating cache $cache_file" >&6;}
22907
 
      if test ! -f "$cache_file" || test -h "$cache_file"; then
22908
 
        cat confcache >"$cache_file"
22909
 
      else
22910
 
        case $cache_file in #(
22911
 
        */* | ?:*)
22912
 
          mv -f confcache "$cache_file"$$ &&
22913
 
          mv -f "$cache_file"$$ "$cache_file" ;; #(
22914
 
        *)
22915
 
          mv -f confcache "$cache_file" ;;
22916
 
        esac
22917
 
      fi
22918
 
    fi
22919
 
  else
22920
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22921
 
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22922
 
  fi
22923
 
fi
22924
 
rm -f confcache
22925
 
 
22926
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
22927
 
# Let make expand exec_prefix.
22928
 
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22929
 
 
22930
 
# Transform confdefs.h into DEFS.
22931
 
# Protect against shell expansion while executing Makefile rules.
22932
 
# Protect against Makefile macro expansion.
22933
 
#
22934
 
# If the first sed substitution is executed (which looks for macros that
22935
 
# take arguments), then branch to the quote section.  Otherwise,
22936
 
# look for a macro that doesn't take arguments.
22937
 
ac_script='
22938
 
:mline
22939
 
/\\$/{
22940
 
 N
22941
 
 s,\\\n,,
22942
 
 b mline
22943
 
}
22944
 
t clear
22945
 
:clear
22946
 
s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
22947
 
t quote
22948
 
s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
22949
 
t quote
22950
 
b any
22951
 
:quote
22952
 
s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
22953
 
s/\[/\\&/g
22954
 
s/\]/\\&/g
22955
 
s/\$/$$/g
22956
 
H
22957
 
:any
22958
 
${
22959
 
        g
22960
 
        s/^\n//
22961
 
        s/\n/ /g
22962
 
        p
22963
 
}
22964
 
'
22965
 
DEFS=`sed -n "$ac_script" confdefs.h`
22966
 
 
22967
 
 
22968
 
ac_libobjs=
22969
 
ac_ltlibobjs=
22970
 
U=
22971
 
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22972
 
  # 1. Remove the extension, and $U if already installed.
22973
 
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22974
 
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22975
 
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22976
 
  #    will be set to the directory where LIBOBJS objects are built.
22977
 
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22978
 
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22979
 
done
22980
 
LIBOBJS=$ac_libobjs
22981
 
 
22982
 
LTLIBOBJS=$ac_ltlibobjs
22983
 
 
22984
 
 
22985
 
 if test -n "$EXEEXT"; then
22986
 
  am__EXEEXT_TRUE=
22987
 
  am__EXEEXT_FALSE='#'
22988
 
else
22989
 
  am__EXEEXT_TRUE='#'
22990
 
  am__EXEEXT_FALSE=
22991
 
fi
22992
 
 
22993
 
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22994
 
  as_fn_error $? "conditional \"AMDEP\" was never defined.
22995
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22996
 
fi
22997
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22998
 
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22999
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23000
 
fi
23001
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23002
 
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23003
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23004
 
fi
23005
 
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23006
 
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
23007
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23008
 
fi
23009
 
if test -z "${BUILD_HGFSMOUNTER_TRUE}" && test -z "${BUILD_HGFSMOUNTER_FALSE}"; then
23010
 
  as_fn_error $? "conditional \"BUILD_HGFSMOUNTER\" was never defined.
23011
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23012
 
fi
23013
 
if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
23014
 
  as_fn_error $? "conditional \"LINUX\" was never defined.
23015
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23016
 
fi
23017
 
if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
23018
 
  as_fn_error $? "conditional \"SOLARIS\" was never defined.
23019
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23020
 
fi
23021
 
if test -z "${FREEBSD_TRUE}" && test -z "${FREEBSD_FALSE}"; then
23022
 
  as_fn_error $? "conditional \"FREEBSD\" was never defined.
23023
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23024
 
fi
23025
 
if test -z "${FREEBSD_CUSTOM_SYSDIR_TRUE}" && test -z "${FREEBSD_CUSTOM_SYSDIR_FALSE}"; then
23026
 
  as_fn_error $? "conditional \"FREEBSD_CUSTOM_SYSDIR\" was never defined.
23027
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23028
 
fi
23029
 
if test -z "${THIRTY_TWO_BIT_USERSPACE_TRUE}" && test -z "${THIRTY_TWO_BIT_USERSPACE_FALSE}"; then
23030
 
  as_fn_error $? "conditional \"THIRTY_TWO_BIT_USERSPACE\" was never defined.
23031
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23032
 
fi
23033
 
if test -z "${HAVE_X11_TRUE}" && test -z "${HAVE_X11_FALSE}"; then
23034
 
  as_fn_error $? "conditional \"HAVE_X11\" was never defined.
23035
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23036
 
fi
23037
 
if test -z "${HAVE_ICU_TRUE}" && test -z "${HAVE_ICU_FALSE}"; then
23038
 
  as_fn_error $? "conditional \"HAVE_ICU\" was never defined.
23039
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23040
 
fi
23041
 
if test -z "${WITH_KERNEL_MODULES_TRUE}" && test -z "${WITH_KERNEL_MODULES_FALSE}"; then
23042
 
  as_fn_error $? "conditional \"WITH_KERNEL_MODULES\" was never defined.
23043
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23044
 
fi
23045
 
if test -z "${HAVE_XSM_TRUE}" && test -z "${HAVE_XSM_FALSE}"; then
23046
 
  as_fn_error $? "conditional \"HAVE_XSM\" was never defined.
23047
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23048
 
fi
23049
 
if test -z "${HAVE_XCOMPOSITE_TRUE}" && test -z "${HAVE_XCOMPOSITE_FALSE}"; then
23050
 
  as_fn_error $? "conditional \"HAVE_XCOMPOSITE\" was never defined.
23051
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23052
 
fi
23053
 
if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
23054
 
  as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined.
23055
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23056
 
fi
23057
 
if test -z "${WITH_ROOT_PRIVILEGES_TRUE}" && test -z "${WITH_ROOT_PRIVILEGES_FALSE}"; then
23058
 
  as_fn_error $? "conditional \"WITH_ROOT_PRIVILEGES\" was never defined.
23059
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23060
 
fi
23061
 
if test -z "${HAVE_DNET_TRUE}" && test -z "${HAVE_DNET_FALSE}"; then
23062
 
  as_fn_error $? "conditional \"HAVE_DNET\" was never defined.
23063
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23064
 
fi
23065
 
if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
23066
 
  as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
23067
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23068
 
fi
23069
 
if test -z "${HAVE_FUSE_TRUE}" && test -z "${HAVE_FUSE_FALSE}"; then
23070
 
  as_fn_error $? "conditional \"HAVE_FUSE\" was never defined.
23071
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23072
 
fi
23073
 
if test -z "${HAVE_GNU_LD_TRUE}" && test -z "${HAVE_GNU_LD_FALSE}"; then
23074
 
  as_fn_error $? "conditional \"HAVE_GNU_LD\" was never defined.
23075
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23076
 
fi
23077
 
if test -z "${HAVE_GTKMM_TRUE}" && test -z "${HAVE_GTKMM_FALSE}"; then
23078
 
  as_fn_error $? "conditional \"HAVE_GTKMM\" was never defined.
23079
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23080
 
fi
23081
 
if test -z "${HAVE_PAM_TRUE}" && test -z "${HAVE_PAM_FALSE}"; then
23082
 
  as_fn_error $? "conditional \"HAVE_PAM\" was never defined.
23083
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23084
 
fi
23085
 
if test -z "${USE_SLASH_PROC_TRUE}" && test -z "${USE_SLASH_PROC_FALSE}"; then
23086
 
  as_fn_error $? "conditional \"USE_SLASH_PROC\" was never defined.
23087
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23088
 
fi
23089
 
if test -z "${USE_PRINTF_WRAPPERS_TRUE}" && test -z "${USE_PRINTF_WRAPPERS_FALSE}"; then
23090
 
  as_fn_error $? "conditional \"USE_PRINTF_WRAPPERS\" was never defined.
23091
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23092
 
fi
23093
 
 
23094
 
: "${CONFIG_STATUS=./config.status}"
23095
 
ac_write_fail=0
23096
 
ac_clean_files_save=$ac_clean_files
23097
 
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23098
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23099
 
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23100
 
as_write_fail=0
23101
 
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23102
 
#! $SHELL
23103
 
# Generated by $as_me.
23104
 
# Run this file to recreate the current configuration.
23105
 
# Compiler output produced by configure, useful for debugging
23106
 
# configure, is in config.log if it exists.
23107
 
 
23108
 
debug=false
23109
 
ac_cs_recheck=false
23110
 
ac_cs_silent=false
23111
 
 
23112
 
SHELL=\${CONFIG_SHELL-$SHELL}
23113
 
export SHELL
23114
 
_ASEOF
23115
 
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23116
 
## -------------------- ##
23117
 
## M4sh Initialization. ##
23118
 
## -------------------- ##
23119
 
 
23120
 
# Be more Bourne compatible
23121
 
DUALCASE=1; export DUALCASE # for MKS sh
23122
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23123
 
  emulate sh
23124
 
  NULLCMD=:
23125
 
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23126
 
  # is contrary to our usage.  Disable this feature.
23127
 
  alias -g '${1+"$@"}'='"$@"'
23128
 
  setopt NO_GLOB_SUBST
23129
 
else
23130
 
  case `(set -o) 2>/dev/null` in #(
23131
 
  *posix*) :
23132
 
    set -o posix ;; #(
23133
 
  *) :
23134
 
     ;;
23135
 
esac
23136
 
fi
23137
 
 
23138
 
 
23139
 
as_nl='
23140
 
'
23141
 
export as_nl
23142
 
# Printing a long string crashes Solaris 7 /usr/bin/printf.
23143
 
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23144
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23145
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23146
 
# Prefer a ksh shell builtin over an external printf program on Solaris,
23147
 
# but without wasting forks for bash or zsh.
23148
 
if test -z "$BASH_VERSION$ZSH_VERSION" \
23149
 
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23150
 
  as_echo='print -r --'
23151
 
  as_echo_n='print -rn --'
23152
 
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23153
 
  as_echo='printf %s\n'
23154
 
  as_echo_n='printf %s'
23155
 
else
23156
 
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23157
 
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23158
 
    as_echo_n='/usr/ucb/echo -n'
23159
 
  else
23160
 
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23161
 
    as_echo_n_body='eval
23162
 
      arg=$1;
23163
 
      case $arg in #(
23164
 
      *"$as_nl"*)
23165
 
        expr "X$arg" : "X\\(.*\\)$as_nl";
23166
 
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23167
 
      esac;
23168
 
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23169
 
    '
23170
 
    export as_echo_n_body
23171
 
    as_echo_n='sh -c $as_echo_n_body as_echo'
23172
 
  fi
23173
 
  export as_echo_body
23174
 
  as_echo='sh -c $as_echo_body as_echo'
23175
 
fi
23176
 
 
23177
 
# The user is always right.
23178
 
if test "${PATH_SEPARATOR+set}" != set; then
23179
 
  PATH_SEPARATOR=:
23180
 
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23181
 
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23182
 
      PATH_SEPARATOR=';'
23183
 
  }
23184
 
fi
23185
 
 
23186
 
 
23187
 
# IFS
23188
 
# We need space, tab and new line, in precisely that order.  Quoting is
23189
 
# there to prevent editors from complaining about space-tab.
23190
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
23191
 
# splitting by setting IFS to empty value.)
23192
 
IFS=" ""        $as_nl"
23193
 
 
23194
 
# Find who we are.  Look in the path if we contain no directory separator.
23195
 
as_myself=
23196
 
case $0 in #((
23197
 
  *[\\/]* ) as_myself=$0 ;;
23198
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23199
 
for as_dir in $PATH
23200
 
do
23201
 
  IFS=$as_save_IFS
23202
 
  test -z "$as_dir" && as_dir=.
23203
 
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23204
 
  done
23205
 
IFS=$as_save_IFS
23206
 
 
23207
 
     ;;
23208
 
esac
23209
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
23210
 
# in which case we are not to be found in the path.
23211
 
if test "x$as_myself" = x; then
23212
 
  as_myself=$0
23213
 
fi
23214
 
if test ! -f "$as_myself"; then
23215
 
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23216
 
  exit 1
23217
 
fi
23218
 
 
23219
 
# Unset variables that we do not need and which cause bugs (e.g. in
23220
 
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
23221
 
# suppresses any "Segmentation fault" message there.  '((' could
23222
 
# trigger a bug in pdksh 5.2.14.
23223
 
for as_var in BASH_ENV ENV MAIL MAILPATH
23224
 
do eval test x\${$as_var+set} = xset \
23225
 
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23226
 
done
23227
 
PS1='$ '
23228
 
PS2='> '
23229
 
PS4='+ '
23230
 
 
23231
 
# NLS nuisances.
23232
 
LC_ALL=C
23233
 
export LC_ALL
23234
 
LANGUAGE=C
23235
 
export LANGUAGE
23236
 
 
23237
 
# CDPATH.
23238
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23239
 
 
23240
 
 
23241
 
# as_fn_error STATUS ERROR [LINENO LOG_FD]
23242
 
# ----------------------------------------
23243
 
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23244
 
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23245
 
# script with STATUS, using 1 if that was 0.
23246
 
as_fn_error ()
23247
 
{
23248
 
  as_status=$1; test $as_status -eq 0 && as_status=1
23249
 
  if test "$4"; then
23250
 
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23251
 
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23252
 
  fi
23253
 
  $as_echo "$as_me: error: $2" >&2
23254
 
  as_fn_exit $as_status
23255
 
} # as_fn_error
23256
 
 
23257
 
 
23258
 
# as_fn_set_status STATUS
23259
 
# -----------------------
23260
 
# Set $? to STATUS, without forking.
23261
 
as_fn_set_status ()
23262
 
{
23263
 
  return $1
23264
 
} # as_fn_set_status
23265
 
 
23266
 
# as_fn_exit STATUS
23267
 
# -----------------
23268
 
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23269
 
as_fn_exit ()
23270
 
{
23271
 
  set +e
23272
 
  as_fn_set_status $1
23273
 
  exit $1
23274
 
} # as_fn_exit
23275
 
 
23276
 
# as_fn_unset VAR
23277
 
# ---------------
23278
 
# Portably unset VAR.
23279
 
as_fn_unset ()
23280
 
{
23281
 
  { eval $1=; unset $1;}
23282
 
}
23283
 
as_unset=as_fn_unset
23284
 
# as_fn_append VAR VALUE
23285
 
# ----------------------
23286
 
# Append the text in VALUE to the end of the definition contained in VAR. Take
23287
 
# advantage of any shell optimizations that allow amortized linear growth over
23288
 
# repeated appends, instead of the typical quadratic growth present in naive
23289
 
# implementations.
23290
 
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23291
 
  eval 'as_fn_append ()
23292
 
  {
23293
 
    eval $1+=\$2
23294
 
  }'
23295
 
else
23296
 
  as_fn_append ()
23297
 
  {
23298
 
    eval $1=\$$1\$2
23299
 
  }
23300
 
fi # as_fn_append
23301
 
 
23302
 
# as_fn_arith ARG...
23303
 
# ------------------
23304
 
# Perform arithmetic evaluation on the ARGs, and store the result in the
23305
 
# global $as_val. Take advantage of shells that can avoid forks. The arguments
23306
 
# must be portable across $(()) and expr.
23307
 
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23308
 
  eval 'as_fn_arith ()
23309
 
  {
23310
 
    as_val=$(( $* ))
23311
 
  }'
23312
 
else
23313
 
  as_fn_arith ()
23314
 
  {
23315
 
    as_val=`expr "$@" || test $? -eq 1`
23316
 
  }
23317
 
fi # as_fn_arith
23318
 
 
23319
 
 
23320
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
23321
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23322
 
  as_expr=expr
23323
 
else
23324
 
  as_expr=false
23325
 
fi
23326
 
 
23327
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23328
 
  as_basename=basename
23329
 
else
23330
 
  as_basename=false
23331
 
fi
23332
 
 
23333
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23334
 
  as_dirname=dirname
23335
 
else
23336
 
  as_dirname=false
23337
 
fi
23338
 
 
23339
 
as_me=`$as_basename -- "$0" ||
23340
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23341
 
         X"$0" : 'X\(//\)$' \| \
23342
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23343
 
$as_echo X/"$0" |
23344
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
23345
 
            s//\1/
23346
 
            q
23347
 
          }
23348
 
          /^X\/\(\/\/\)$/{
23349
 
            s//\1/
23350
 
            q
23351
 
          }
23352
 
          /^X\/\(\/\).*/{
23353
 
            s//\1/
23354
 
            q
23355
 
          }
23356
 
          s/.*/./; q'`
23357
 
 
23358
 
# Avoid depending upon Character Ranges.
23359
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23360
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23361
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23362
 
as_cr_digits='0123456789'
23363
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
23364
 
 
23365
 
ECHO_C= ECHO_N= ECHO_T=
23366
 
case `echo -n x` in #(((((
23367
 
-n*)
23368
 
  case `echo 'xy\c'` in
23369
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23370
 
  xy)  ECHO_C='\c';;
23371
 
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
23372
 
       ECHO_T=' ';;
23373
 
  esac;;
23374
 
*)
23375
 
  ECHO_N='-n';;
23376
 
esac
23377
 
 
23378
 
rm -f conf$$ conf$$.exe conf$$.file
23379
 
if test -d conf$$.dir; then
23380
 
  rm -f conf$$.dir/conf$$.file
23381
 
else
23382
 
  rm -f conf$$.dir
23383
 
  mkdir conf$$.dir 2>/dev/null
23384
 
fi
23385
 
if (echo >conf$$.file) 2>/dev/null; then
23386
 
  if ln -s conf$$.file conf$$ 2>/dev/null; then
23387
 
    as_ln_s='ln -s'
23388
 
    # ... but there are two gotchas:
23389
 
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23390
 
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23391
 
    # In both cases, we have to default to `cp -p'.
23392
 
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23393
 
      as_ln_s='cp -p'
23394
 
  elif ln conf$$.file conf$$ 2>/dev/null; then
23395
 
    as_ln_s=ln
23396
 
  else
23397
 
    as_ln_s='cp -p'
23398
 
  fi
23399
 
else
23400
 
  as_ln_s='cp -p'
23401
 
fi
23402
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23403
 
rmdir conf$$.dir 2>/dev/null
23404
 
 
23405
 
 
23406
 
# as_fn_mkdir_p
23407
 
# -------------
23408
 
# Create "$as_dir" as a directory, including parents if necessary.
23409
 
as_fn_mkdir_p ()
23410
 
{
23411
 
 
23412
 
  case $as_dir in #(
23413
 
  -*) as_dir=./$as_dir;;
23414
 
  esac
23415
 
  test -d "$as_dir" || eval $as_mkdir_p || {
23416
 
    as_dirs=
23417
 
    while :; do
23418
 
      case $as_dir in #(
23419
 
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23420
 
      *) as_qdir=$as_dir;;
23421
 
      esac
23422
 
      as_dirs="'$as_qdir' $as_dirs"
23423
 
      as_dir=`$as_dirname -- "$as_dir" ||
23424
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23425
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
23426
 
         X"$as_dir" : 'X\(//\)$' \| \
23427
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23428
 
$as_echo X"$as_dir" |
23429
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23430
 
            s//\1/
23431
 
            q
23432
 
          }
23433
 
          /^X\(\/\/\)[^/].*/{
23434
 
            s//\1/
23435
 
            q
23436
 
          }
23437
 
          /^X\(\/\/\)$/{
23438
 
            s//\1/
23439
 
            q
23440
 
          }
23441
 
          /^X\(\/\).*/{
23442
 
            s//\1/
23443
 
            q
23444
 
          }
23445
 
          s/.*/./; q'`
23446
 
      test -d "$as_dir" && break
23447
 
    done
23448
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
23449
 
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23450
 
 
23451
 
 
23452
 
} # as_fn_mkdir_p
23453
 
if mkdir -p . 2>/dev/null; then
23454
 
  as_mkdir_p='mkdir -p "$as_dir"'
23455
 
else
23456
 
  test -d ./-p && rmdir ./-p
23457
 
  as_mkdir_p=false
23458
 
fi
23459
 
 
23460
 
if test -x / >/dev/null 2>&1; then
23461
 
  as_test_x='test -x'
23462
 
else
23463
 
  if ls -dL / >/dev/null 2>&1; then
23464
 
    as_ls_L_option=L
23465
 
  else
23466
 
    as_ls_L_option=
23467
 
  fi
23468
 
  as_test_x='
23469
 
    eval sh -c '\''
23470
 
      if test -d "$1"; then
23471
 
        test -d "$1/.";
23472
 
      else
23473
 
        case $1 in #(
23474
 
        -*)set "./$1";;
23475
 
        esac;
23476
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23477
 
        ???[sx]*):;;*)false;;esac;fi
23478
 
    '\'' sh
23479
 
  '
23480
 
fi
23481
 
as_executable_p=$as_test_x
23482
 
 
23483
 
# Sed expression to map a string onto a valid CPP name.
23484
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23485
 
 
23486
 
# Sed expression to map a string onto a valid variable name.
23487
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23488
 
 
23489
 
 
23490
 
exec 6>&1
23491
 
## ----------------------------------- ##
23492
 
## Main body of $CONFIG_STATUS script. ##
23493
 
## ----------------------------------- ##
23494
 
_ASEOF
23495
 
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23496
 
 
23497
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23498
 
# Save the log message, to keep $0 and so on meaningful, and to
23499
 
# report actual input values of CONFIG_FILES etc. instead of their
23500
 
# values after options handling.
23501
 
ac_log="
23502
 
This file was extended by open-vm-tools $as_me 2012.12.26, which was
23503
 
generated by GNU Autoconf 2.68.  Invocation command line was
23504
 
 
23505
 
  CONFIG_FILES    = $CONFIG_FILES
23506
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
23507
 
  CONFIG_LINKS    = $CONFIG_LINKS
23508
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
23509
 
  $ $0 $@
23510
 
 
23511
 
on `(hostname || uname -n) 2>/dev/null | sed 1q`
23512
 
"
23513
 
 
23514
 
_ACEOF
23515
 
 
23516
 
case $ac_config_files in *"
23517
 
"*) set x $ac_config_files; shift; ac_config_files=$*;;
23518
 
esac
23519
 
 
23520
 
 
23521
 
 
23522
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23523
 
# Files that config.status was made for.
23524
 
config_files="$ac_config_files"
23525
 
config_commands="$ac_config_commands"
23526
 
 
23527
 
_ACEOF
23528
 
 
23529
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23530
 
ac_cs_usage="\
23531
 
\`$as_me' instantiates files and other configuration actions
23532
 
from templates according to the current configuration.  Unless the files
23533
 
and actions are specified as TAGs, all are instantiated by default.
23534
 
 
23535
 
Usage: $0 [OPTION]... [TAG]...
23536
 
 
23537
 
  -h, --help       print this help, then exit
23538
 
  -V, --version    print version number and configuration settings, then exit
23539
 
      --config     print configuration, then exit
23540
 
  -q, --quiet, --silent
23541
 
                   do not print progress messages
23542
 
  -d, --debug      don't remove temporary files
23543
 
      --recheck    update $as_me by reconfiguring in the same conditions
23544
 
      --file=FILE[:TEMPLATE]
23545
 
                   instantiate the configuration file FILE
23546
 
 
23547
 
Configuration files:
23548
 
$config_files
23549
 
 
23550
 
Configuration commands:
23551
 
$config_commands
23552
 
 
23553
 
Report bugs to <open-vm-tools-devel@lists.sourceforge.net>."
23554
 
 
23555
 
_ACEOF
23556
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23557
 
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23558
 
ac_cs_version="\\
23559
 
open-vm-tools config.status 2012.12.26
23560
 
configured by $0, generated by GNU Autoconf 2.68,
23561
 
  with options \\"\$ac_cs_config\\"
23562
 
 
23563
 
Copyright (C) 2010 Free Software Foundation, Inc.
23564
 
This config.status script is free software; the Free Software Foundation
23565
 
gives unlimited permission to copy, distribute and modify it."
23566
 
 
23567
 
ac_pwd='$ac_pwd'
23568
 
srcdir='$srcdir'
23569
 
INSTALL='$INSTALL'
23570
 
MKDIR_P='$MKDIR_P'
23571
 
AWK='$AWK'
23572
 
test -n "\$AWK" || AWK=awk
23573
 
_ACEOF
23574
 
 
23575
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23576
 
# The default lists apply if the user does not specify any file.
23577
 
ac_need_defaults=:
23578
 
while test $# != 0
23579
 
do
23580
 
  case $1 in
23581
 
  --*=?*)
23582
 
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23583
 
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23584
 
    ac_shift=:
23585
 
    ;;
23586
 
  --*=)
23587
 
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23588
 
    ac_optarg=
23589
 
    ac_shift=:
23590
 
    ;;
23591
 
  *)
23592
 
    ac_option=$1
23593
 
    ac_optarg=$2
23594
 
    ac_shift=shift
23595
 
    ;;
23596
 
  esac
23597
 
 
23598
 
  case $ac_option in
23599
 
  # Handling of the options.
23600
 
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23601
 
    ac_cs_recheck=: ;;
23602
 
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23603
 
    $as_echo "$ac_cs_version"; exit ;;
23604
 
  --config | --confi | --conf | --con | --co | --c )
23605
 
    $as_echo "$ac_cs_config"; exit ;;
23606
 
  --debug | --debu | --deb | --de | --d | -d )
23607
 
    debug=: ;;
23608
 
  --file | --fil | --fi | --f )
23609
 
    $ac_shift
23610
 
    case $ac_optarg in
23611
 
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23612
 
    '') as_fn_error $? "missing file argument" ;;
23613
 
    esac
23614
 
    as_fn_append CONFIG_FILES " '$ac_optarg'"
23615
 
    ac_need_defaults=false;;
23616
 
  --he | --h |  --help | --hel | -h )
23617
 
    $as_echo "$ac_cs_usage"; exit ;;
23618
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23619
 
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23620
 
    ac_cs_silent=: ;;
23621
 
 
23622
 
  # This is an error.
23623
 
  -*) as_fn_error $? "unrecognized option: \`$1'
23624
 
Try \`$0 --help' for more information." ;;
23625
 
 
23626
 
  *) as_fn_append ac_config_targets " $1"
23627
 
     ac_need_defaults=false ;;
23628
 
 
23629
 
  esac
23630
 
  shift
23631
 
done
23632
 
 
23633
 
ac_configure_extra_args=
23634
 
 
23635
 
if $ac_cs_silent; then
23636
 
  exec 6>/dev/null
23637
 
  ac_configure_extra_args="$ac_configure_extra_args --silent"
23638
 
fi
23639
 
 
23640
 
_ACEOF
23641
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23642
 
if \$ac_cs_recheck; then
23643
 
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23644
 
  shift
23645
 
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23646
 
  CONFIG_SHELL='$SHELL'
23647
 
  export CONFIG_SHELL
23648
 
  exec "\$@"
23649
 
fi
23650
 
 
23651
 
_ACEOF
23652
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23653
 
exec 5>>config.log
23654
 
{
23655
 
  echo
23656
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23657
 
## Running $as_me. ##
23658
 
_ASBOX
23659
 
  $as_echo "$ac_log"
23660
 
} >&5
23661
 
 
23662
 
_ACEOF
23663
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23664
 
#
23665
 
# INIT-COMMANDS
23666
 
#
23667
 
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23668
 
 
23669
 
 
23670
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
23671
 
# if CDPATH is set.
23672
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23673
 
 
23674
 
sed_quote_subst='$sed_quote_subst'
23675
 
double_quote_subst='$double_quote_subst'
23676
 
delay_variable_subst='$delay_variable_subst'
23677
 
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23678
 
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23679
 
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23680
 
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23681
 
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23682
 
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23683
 
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23684
 
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23685
 
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23686
 
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23687
 
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23688
 
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23689
 
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23690
 
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23691
 
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23692
 
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23693
 
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23694
 
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23695
 
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23696
 
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23697
 
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23698
 
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23699
 
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23700
 
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23701
 
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23702
 
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23703
 
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23704
 
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23705
 
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23706
 
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23707
 
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23708
 
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23709
 
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23710
 
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23711
 
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23712
 
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23713
 
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23714
 
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23715
 
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23716
 
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23717
 
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23718
 
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23719
 
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23720
 
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23721
 
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23722
 
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23723
 
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23724
 
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23725
 
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23726
 
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23727
 
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23728
 
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23729
 
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23730
 
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23731
 
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23732
 
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23733
 
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"`'
23734
 
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23735
 
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23736
 
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23737
 
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23738
 
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23739
 
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23740
 
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23741
 
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23742
 
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23743
 
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23744
 
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23745
 
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23746
 
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23747
 
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23748
 
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23749
 
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23750
 
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23751
 
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23752
 
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23753
 
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23754
 
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23755
 
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23756
 
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23757
 
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23758
 
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23759
 
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23760
 
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23761
 
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23762
 
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23763
 
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23764
 
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23765
 
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23766
 
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23767
 
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23768
 
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23769
 
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23770
 
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23771
 
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23772
 
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23773
 
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23774
 
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23775
 
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23776
 
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23777
 
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23778
 
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23779
 
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23780
 
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23781
 
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23782
 
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23783
 
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23784
 
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23785
 
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23786
 
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23787
 
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23788
 
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23789
 
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23790
 
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23791
 
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23792
 
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23793
 
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23794
 
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23795
 
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23796
 
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23797
 
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23798
 
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23799
 
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23800
 
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
23801
 
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23802
 
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23803
 
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23804
 
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23805
 
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23806
 
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23807
 
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
23808
 
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
23809
 
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
23810
 
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
23811
 
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
23812
 
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
23813
 
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
23814
 
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
23815
 
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23816
 
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23817
 
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
23818
 
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
23819
 
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
23820
 
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
23821
 
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
23822
 
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
23823
 
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
23824
 
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
23825
 
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
23826
 
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23827
 
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23828
 
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
23829
 
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23830
 
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23831
 
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23832
 
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23833
 
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23834
 
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23835
 
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
23836
 
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23837
 
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23838
 
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23839
 
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
23840
 
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
23841
 
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
23842
 
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
23843
 
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
23844
 
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
23845
 
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
23846
 
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
23847
 
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
23848
 
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23849
 
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23850
 
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23851
 
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23852
 
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23853
 
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
23854
 
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
23855
 
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
23856
 
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23857
 
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23858
 
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
23859
 
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
23860
 
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
23861
 
 
23862
 
LTCC='$LTCC'
23863
 
LTCFLAGS='$LTCFLAGS'
23864
 
compiler='$compiler_DEFAULT'
23865
 
 
23866
 
# A function that is used when there is no print builtin or printf.
23867
 
func_fallback_echo ()
23868
 
{
23869
 
  eval 'cat <<_LTECHO_EOF
23870
 
\$1
23871
 
_LTECHO_EOF'
23872
 
}
23873
 
 
23874
 
# Quote evaled strings.
23875
 
for var in SHELL \
23876
 
ECHO \
23877
 
PATH_SEPARATOR \
23878
 
SED \
23879
 
GREP \
23880
 
EGREP \
23881
 
FGREP \
23882
 
LD \
23883
 
NM \
23884
 
LN_S \
23885
 
lt_SP2NL \
23886
 
lt_NL2SP \
23887
 
reload_flag \
23888
 
OBJDUMP \
23889
 
deplibs_check_method \
23890
 
file_magic_cmd \
23891
 
file_magic_glob \
23892
 
want_nocaseglob \
23893
 
DLLTOOL \
23894
 
sharedlib_from_linklib_cmd \
23895
 
AR \
23896
 
AR_FLAGS \
23897
 
archiver_list_spec \
23898
 
STRIP \
23899
 
RANLIB \
23900
 
CC \
23901
 
CFLAGS \
23902
 
compiler \
23903
 
lt_cv_sys_global_symbol_pipe \
23904
 
lt_cv_sys_global_symbol_to_cdecl \
23905
 
lt_cv_sys_global_symbol_to_c_name_address \
23906
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23907
 
nm_file_list_spec \
23908
 
lt_prog_compiler_no_builtin_flag \
23909
 
lt_prog_compiler_pic \
23910
 
lt_prog_compiler_wl \
23911
 
lt_prog_compiler_static \
23912
 
lt_cv_prog_compiler_c_o \
23913
 
need_locks \
23914
 
MANIFEST_TOOL \
23915
 
DSYMUTIL \
23916
 
NMEDIT \
23917
 
LIPO \
23918
 
OTOOL \
23919
 
OTOOL64 \
23920
 
shrext_cmds \
23921
 
export_dynamic_flag_spec \
23922
 
whole_archive_flag_spec \
23923
 
compiler_needs_object \
23924
 
with_gnu_ld \
23925
 
allow_undefined_flag \
23926
 
no_undefined_flag \
23927
 
hardcode_libdir_flag_spec \
23928
 
hardcode_libdir_separator \
23929
 
exclude_expsyms \
23930
 
include_expsyms \
23931
 
file_list_spec \
23932
 
variables_saved_for_relink \
23933
 
libname_spec \
23934
 
library_names_spec \
23935
 
soname_spec \
23936
 
install_override_mode \
23937
 
finish_eval \
23938
 
old_striplib \
23939
 
striplib \
23940
 
compiler_lib_search_dirs \
23941
 
predep_objects \
23942
 
postdep_objects \
23943
 
predeps \
23944
 
postdeps \
23945
 
compiler_lib_search_path \
23946
 
LD_CXX \
23947
 
reload_flag_CXX \
23948
 
compiler_CXX \
23949
 
lt_prog_compiler_no_builtin_flag_CXX \
23950
 
lt_prog_compiler_pic_CXX \
23951
 
lt_prog_compiler_wl_CXX \
23952
 
lt_prog_compiler_static_CXX \
23953
 
lt_cv_prog_compiler_c_o_CXX \
23954
 
export_dynamic_flag_spec_CXX \
23955
 
whole_archive_flag_spec_CXX \
23956
 
compiler_needs_object_CXX \
23957
 
with_gnu_ld_CXX \
23958
 
allow_undefined_flag_CXX \
23959
 
no_undefined_flag_CXX \
23960
 
hardcode_libdir_flag_spec_CXX \
23961
 
hardcode_libdir_separator_CXX \
23962
 
exclude_expsyms_CXX \
23963
 
include_expsyms_CXX \
23964
 
file_list_spec_CXX \
23965
 
compiler_lib_search_dirs_CXX \
23966
 
predep_objects_CXX \
23967
 
postdep_objects_CXX \
23968
 
predeps_CXX \
23969
 
postdeps_CXX \
23970
 
compiler_lib_search_path_CXX; do
23971
 
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23972
 
    *[\\\\\\\`\\"\\\$]*)
23973
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
23974
 
      ;;
23975
 
    *)
23976
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23977
 
      ;;
23978
 
    esac
23979
 
done
23980
 
 
23981
 
# Double-quote double-evaled strings.
23982
 
for var in reload_cmds \
23983
 
old_postinstall_cmds \
23984
 
old_postuninstall_cmds \
23985
 
old_archive_cmds \
23986
 
extract_expsyms_cmds \
23987
 
old_archive_from_new_cmds \
23988
 
old_archive_from_expsyms_cmds \
23989
 
archive_cmds \
23990
 
archive_expsym_cmds \
23991
 
module_cmds \
23992
 
module_expsym_cmds \
23993
 
export_symbols_cmds \
23994
 
prelink_cmds \
23995
 
postlink_cmds \
23996
 
postinstall_cmds \
23997
 
postuninstall_cmds \
23998
 
finish_cmds \
23999
 
sys_lib_search_path_spec \
24000
 
sys_lib_dlsearch_path_spec \
24001
 
reload_cmds_CXX \
24002
 
old_archive_cmds_CXX \
24003
 
old_archive_from_new_cmds_CXX \
24004
 
old_archive_from_expsyms_cmds_CXX \
24005
 
archive_cmds_CXX \
24006
 
archive_expsym_cmds_CXX \
24007
 
module_cmds_CXX \
24008
 
module_expsym_cmds_CXX \
24009
 
export_symbols_cmds_CXX \
24010
 
prelink_cmds_CXX \
24011
 
postlink_cmds_CXX; do
24012
 
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24013
 
    *[\\\\\\\`\\"\\\$]*)
24014
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
24015
 
      ;;
24016
 
    *)
24017
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24018
 
      ;;
24019
 
    esac
24020
 
done
24021
 
 
24022
 
ac_aux_dir='$ac_aux_dir'
24023
 
xsi_shell='$xsi_shell'
24024
 
lt_shell_append='$lt_shell_append'
24025
 
 
24026
 
# See if we are running on zsh, and set the options which allow our
24027
 
# commands through without removal of \ escapes INIT.
24028
 
if test -n "\${ZSH_VERSION+set}" ; then
24029
 
   setopt NO_GLOB_SUBST
24030
 
fi
24031
 
 
24032
 
 
24033
 
    PACKAGE='$PACKAGE'
24034
 
    VERSION='$VERSION'
24035
 
    TIMESTAMP='$TIMESTAMP'
24036
 
    RM='$RM'
24037
 
    ofile='$ofile'
24038
 
 
24039
 
 
24040
 
 
24041
 
 
24042
 
 
24043
 
 
24044
 
_ACEOF
24045
 
 
24046
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24047
 
 
24048
 
# Handling of arguments.
24049
 
for ac_config_target in $ac_config_targets
24050
 
do
24051
 
  case $ac_config_target in
24052
 
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24053
 
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24054
 
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24055
 
    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
24056
 
    "lib/appUtil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/appUtil/Makefile" ;;
24057
 
    "lib/auth/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;;
24058
 
    "lib/backdoor/Makefile") CONFIG_FILES="$CONFIG_FILES lib/backdoor/Makefile" ;;
24059
 
    "lib/dict/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dict/Makefile" ;;
24060
 
    "lib/dynxdr/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dynxdr/Makefile" ;;
24061
 
    "lib/err/Makefile") CONFIG_FILES="$CONFIG_FILES lib/err/Makefile" ;;
24062
 
    "lib/file/Makefile") CONFIG_FILES="$CONFIG_FILES lib/file/Makefile" ;;
24063
 
    "lib/foundryMsg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/foundryMsg/Makefile" ;;
24064
 
    "lib/glibUtils/Makefile") CONFIG_FILES="$CONFIG_FILES lib/glibUtils/Makefile" ;;
24065
 
    "lib/guestApp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/guestApp/Makefile" ;;
24066
 
    "lib/guestRpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/guestRpc/Makefile" ;;
24067
 
    "lib/hgfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hgfs/Makefile" ;;
24068
 
    "lib/hgfsBd/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hgfsBd/Makefile" ;;
24069
 
    "lib/hgfsHelper/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hgfsHelper/Makefile" ;;
24070
 
    "lib/hgfsServer/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hgfsServer/Makefile" ;;
24071
 
    "lib/hgfsServerManagerGuest/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hgfsServerManagerGuest/Makefile" ;;
24072
 
    "lib/hgfsServerPolicyGuest/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hgfsServerPolicyGuest/Makefile" ;;
24073
 
    "lib/impersonate/Makefile") CONFIG_FILES="$CONFIG_FILES lib/impersonate/Makefile" ;;
24074
 
    "lib/lock/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lock/Makefile" ;;
24075
 
    "lib/message/Makefile") CONFIG_FILES="$CONFIG_FILES lib/message/Makefile" ;;
24076
 
    "lib/misc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/misc/Makefile" ;;
24077
 
    "lib/netUtil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/netUtil/Makefile" ;;
24078
 
    "lib/panic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/panic/Makefile" ;;
24079
 
    "lib/panicDefault/Makefile") CONFIG_FILES="$CONFIG_FILES lib/panicDefault/Makefile" ;;
24080
 
    "lib/printer/Makefile") CONFIG_FILES="$CONFIG_FILES lib/printer/Makefile" ;;
24081
 
    "lib/procMgr/Makefile") CONFIG_FILES="$CONFIG_FILES lib/procMgr/Makefile" ;;
24082
 
    "lib/rpcChannel/Makefile") CONFIG_FILES="$CONFIG_FILES lib/rpcChannel/Makefile" ;;
24083
 
    "lib/rpcIn/Makefile") CONFIG_FILES="$CONFIG_FILES lib/rpcIn/Makefile" ;;
24084
 
    "lib/rpcOut/Makefile") CONFIG_FILES="$CONFIG_FILES lib/rpcOut/Makefile" ;;
24085
 
    "lib/rpcVmx/Makefile") CONFIG_FILES="$CONFIG_FILES lib/rpcVmx/Makefile" ;;
24086
 
    "lib/slashProc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/slashProc/Makefile" ;;
24087
 
    "lib/string/Makefile") CONFIG_FILES="$CONFIG_FILES lib/string/Makefile" ;;
24088
 
    "lib/stubs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/stubs/Makefile" ;;
24089
 
    "lib/syncDriver/Makefile") CONFIG_FILES="$CONFIG_FILES lib/syncDriver/Makefile" ;;
24090
 
    "lib/system/Makefile") CONFIG_FILES="$CONFIG_FILES lib/system/Makefile" ;;
24091
 
    "lib/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/unicode/Makefile" ;;
24092
 
    "lib/user/Makefile") CONFIG_FILES="$CONFIG_FILES lib/user/Makefile" ;;
24093
 
    "lib/vmCheck/Makefile") CONFIG_FILES="$CONFIG_FILES lib/vmCheck/Makefile" ;;
24094
 
    "lib/vmSignal/Makefile") CONFIG_FILES="$CONFIG_FILES lib/vmSignal/Makefile" ;;
24095
 
    "lib/wiper/Makefile") CONFIG_FILES="$CONFIG_FILES lib/wiper/Makefile" ;;
24096
 
    "lib/xdg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/xdg/Makefile" ;;
24097
 
    "services/Makefile") CONFIG_FILES="$CONFIG_FILES services/Makefile" ;;
24098
 
    "services/vmtoolsd/Makefile") CONFIG_FILES="$CONFIG_FILES services/vmtoolsd/Makefile" ;;
24099
 
    "services/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES services/plugins/Makefile" ;;
24100
 
    "services/plugins/desktopEvents/Makefile") CONFIG_FILES="$CONFIG_FILES services/plugins/desktopEvents/Makefile" ;;
24101
 
    "services/plugins/dndcp/Makefile") CONFIG_FILES="$CONFIG_FILES services/plugins/dndcp/Makefile" ;;
24102
 
    "services/plugins/guestInfo/Makefile") CONFIG_FILES="$CONFIG_FILES services/plugins/guestInfo/Makefile" ;;
24103
 
    "services/plugins/guestInfo/getlib/Makefile") CONFIG_FILES="$CONFIG_FILES services/plugins/guestInfo/getlib/Makefile" ;;
24104
 
    "services/plugins/hgfsServer/Makefile") CONFIG_FILES="$CONFIG_FILES services/plugins/hgfsServer/Makefile" ;;
24105
 
    "services/plugins/powerOps/Makefile") CONFIG_FILES="$CONFIG_FILES services/plugins/powerOps/Makefile" ;;
24106
 
    "services/plugins/resolutionSet/Makefile") CONFIG_FILES="$CONFIG_FILES services/plugins/resolutionSet/Makefile" ;;
24107
 
    "services/plugins/timeSync/Makefile") CONFIG_FILES="$CONFIG_FILES services/plugins/timeSync/Makefile" ;;
24108
 
    "services/plugins/vix/Makefile") CONFIG_FILES="$CONFIG_FILES services/plugins/vix/Makefile" ;;
24109
 
    "services/plugins/vmbackup/Makefile") CONFIG_FILES="$CONFIG_FILES services/plugins/vmbackup/Makefile" ;;
24110
 
    "vmware-user-suid-wrapper/Makefile") CONFIG_FILES="$CONFIG_FILES vmware-user-suid-wrapper/Makefile" ;;
24111
 
    "toolbox/Makefile") CONFIG_FILES="$CONFIG_FILES toolbox/Makefile" ;;
24112
 
    "hgfsclient/Makefile") CONFIG_FILES="$CONFIG_FILES hgfsclient/Makefile" ;;
24113
 
    "hgfsmounter/Makefile") CONFIG_FILES="$CONFIG_FILES hgfsmounter/Makefile" ;;
24114
 
    "checkvm/Makefile") CONFIG_FILES="$CONFIG_FILES checkvm/Makefile" ;;
24115
 
    "rpctool/Makefile") CONFIG_FILES="$CONFIG_FILES rpctool/Makefile" ;;
24116
 
    "libguestlib/Makefile") CONFIG_FILES="$CONFIG_FILES libguestlib/Makefile" ;;
24117
 
    "libguestlib/vmguestlib.pc") CONFIG_FILES="$CONFIG_FILES libguestlib/vmguestlib.pc" ;;
24118
 
    "libhgfs/Makefile") CONFIG_FILES="$CONFIG_FILES libhgfs/Makefile" ;;
24119
 
    "libvmtools/Makefile") CONFIG_FILES="$CONFIG_FILES libvmtools/Makefile" ;;
24120
 
    "xferlogs/Makefile") CONFIG_FILES="$CONFIG_FILES xferlogs/Makefile" ;;
24121
 
    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
24122
 
    "vmblock-fuse/Makefile") CONFIG_FILES="$CONFIG_FILES vmblock-fuse/Makefile" ;;
24123
 
    "vmblockmounter/Makefile") CONFIG_FILES="$CONFIG_FILES vmblockmounter/Makefile" ;;
24124
 
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
24125
 
    "tests/vmrpcdbg/Makefile") CONFIG_FILES="$CONFIG_FILES tests/vmrpcdbg/Makefile" ;;
24126
 
    "tests/testDebug/Makefile") CONFIG_FILES="$CONFIG_FILES tests/testDebug/Makefile" ;;
24127
 
    "tests/testPlugin/Makefile") CONFIG_FILES="$CONFIG_FILES tests/testPlugin/Makefile" ;;
24128
 
    "tests/testVmblock/Makefile") CONFIG_FILES="$CONFIG_FILES tests/testVmblock/Makefile" ;;
24129
 
    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
24130
 
    "docs/api/Makefile") CONFIG_FILES="$CONFIG_FILES docs/api/Makefile" ;;
24131
 
    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
24132
 
    "scripts/build/rpcgen_wrapper.sh") CONFIG_FILES="$CONFIG_FILES scripts/build/rpcgen_wrapper.sh" ;;
24133
 
 
24134
 
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24135
 
  esac
24136
 
done
24137
 
 
24138
 
 
24139
 
# If the user did not use the arguments to specify the items to instantiate,
24140
 
# then the envvar interface is used.  Set only those that are not.
24141
 
# We use the long form for the default assignment because of an extremely
24142
 
# bizarre bug on SunOS 4.1.3.
24143
 
if $ac_need_defaults; then
24144
 
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24145
 
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24146
 
fi
24147
 
 
24148
 
# Have a temporary directory for convenience.  Make it in the build tree
24149
 
# simply because there is no reason against having it here, and in addition,
24150
 
# creating and moving files from /tmp can sometimes cause problems.
24151
 
# Hook for its removal unless debugging.
24152
 
# Note that there is a small window in which the directory will not be cleaned:
24153
 
# after its creation but before its name has been assigned to `$tmp'.
24154
 
$debug ||
24155
 
{
24156
 
  tmp= ac_tmp=
24157
 
  trap 'exit_status=$?
24158
 
  : "${ac_tmp:=$tmp}"
24159
 
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24160
 
' 0
24161
 
  trap 'as_fn_exit 1' 1 2 13 15
24162
 
}
24163
 
# Create a (secure) tmp directory for tmp files.
24164
 
 
24165
 
{
24166
 
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24167
 
  test -d "$tmp"
24168
 
}  ||
24169
 
{
24170
 
  tmp=./conf$$-$RANDOM
24171
 
  (umask 077 && mkdir "$tmp")
24172
 
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24173
 
ac_tmp=$tmp
24174
 
 
24175
 
# Set up the scripts for CONFIG_FILES section.
24176
 
# No need to generate them if there are no CONFIG_FILES.
24177
 
# This happens for instance with `./config.status config.h'.
24178
 
if test -n "$CONFIG_FILES"; then
24179
 
 
24180
 
 
24181
 
ac_cr=`echo X | tr X '\015'`
24182
 
# On cygwin, bash can eat \r inside `` if the user requested igncr.
24183
 
# But we know of no other shell where ac_cr would be empty at this
24184
 
# point, so we can use a bashism as a fallback.
24185
 
if test "x$ac_cr" = x; then
24186
 
  eval ac_cr=\$\'\\r\'
24187
 
fi
24188
 
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24189
 
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24190
 
  ac_cs_awk_cr='\\r'
24191
 
else
24192
 
  ac_cs_awk_cr=$ac_cr
24193
 
fi
24194
 
 
24195
 
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24196
 
_ACEOF
24197
 
 
24198
 
 
24199
 
{
24200
 
  echo "cat >conf$$subs.awk <<_ACEOF" &&
24201
 
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24202
 
  echo "_ACEOF"
24203
 
} >conf$$subs.sh ||
24204
 
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24205
 
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24206
 
ac_delim='%!_!# '
24207
 
for ac_last_try in false false false false false :; do
24208
 
  . ./conf$$subs.sh ||
24209
 
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24210
 
 
24211
 
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24212
 
  if test $ac_delim_n = $ac_delim_num; then
24213
 
    break
24214
 
  elif $ac_last_try; then
24215
 
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24216
 
  else
24217
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24218
 
  fi
24219
 
done
24220
 
rm -f conf$$subs.sh
24221
 
 
24222
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24223
 
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24224
 
_ACEOF
24225
 
sed -n '
24226
 
h
24227
 
s/^/S["/; s/!.*/"]=/
24228
 
p
24229
 
g
24230
 
s/^[^!]*!//
24231
 
:repl
24232
 
t repl
24233
 
s/'"$ac_delim"'$//
24234
 
t delim
24235
 
:nl
24236
 
h
24237
 
s/\(.\{148\}\)..*/\1/
24238
 
t more1
24239
 
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24240
 
p
24241
 
n
24242
 
b repl
24243
 
:more1
24244
 
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24245
 
p
24246
 
g
24247
 
s/.\{148\}//
24248
 
t nl
24249
 
:delim
24250
 
h
24251
 
s/\(.\{148\}\)..*/\1/
24252
 
t more2
24253
 
s/["\\]/\\&/g; s/^/"/; s/$/"/
24254
 
p
24255
 
b
24256
 
:more2
24257
 
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24258
 
p
24259
 
g
24260
 
s/.\{148\}//
24261
 
t delim
24262
 
' <conf$$subs.awk | sed '
24263
 
/^[^""]/{
24264
 
  N
24265
 
  s/\n//
24266
 
}
24267
 
' >>$CONFIG_STATUS || ac_write_fail=1
24268
 
rm -f conf$$subs.awk
24269
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24270
 
_ACAWK
24271
 
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24272
 
  for (key in S) S_is_set[key] = 1
24273
 
  FS = ""
24274
 
 
24275
 
}
24276
 
{
24277
 
  line = $ 0
24278
 
  nfields = split(line, field, "@")
24279
 
  substed = 0
24280
 
  len = length(field[1])
24281
 
  for (i = 2; i < nfields; i++) {
24282
 
    key = field[i]
24283
 
    keylen = length(key)
24284
 
    if (S_is_set[key]) {
24285
 
      value = S[key]
24286
 
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24287
 
      len += length(value) + length(field[++i])
24288
 
      substed = 1
24289
 
    } else
24290
 
      len += 1 + keylen
24291
 
  }
24292
 
 
24293
 
  print line
24294
 
}
24295
 
 
24296
 
_ACAWK
24297
 
_ACEOF
24298
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24299
 
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24300
 
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24301
 
else
24302
 
  cat
24303
 
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24304
 
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24305
 
_ACEOF
24306
 
 
24307
 
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24308
 
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24309
 
# trailing colons and then remove the whole line if VPATH becomes empty
24310
 
# (actually we leave an empty line to preserve line numbers).
24311
 
if test "x$srcdir" = x.; then
24312
 
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
24313
 
h
24314
 
s///
24315
 
s/^/:/
24316
 
s/[      ]*$/:/
24317
 
s/:\$(srcdir):/:/g
24318
 
s/:\${srcdir}:/:/g
24319
 
s/:@srcdir@:/:/g
24320
 
s/^:*//
24321
 
s/:*$//
24322
 
x
24323
 
s/\(=[   ]*\).*/\1/
24324
 
G
24325
 
s/\n//
24326
 
s/^[^=]*=[       ]*$//
24327
 
}'
24328
 
fi
24329
 
 
24330
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24331
 
fi # test -n "$CONFIG_FILES"
24332
 
 
24333
 
 
24334
 
eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
24335
 
shift
24336
 
for ac_tag
24337
 
do
24338
 
  case $ac_tag in
24339
 
  :[FHLC]) ac_mode=$ac_tag; continue;;
24340
 
  esac
24341
 
  case $ac_mode$ac_tag in
24342
 
  :[FHL]*:*);;
24343
 
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
24344
 
  :[FH]-) ac_tag=-:-;;
24345
 
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24346
 
  esac
24347
 
  ac_save_IFS=$IFS
24348
 
  IFS=:
24349
 
  set x $ac_tag
24350
 
  IFS=$ac_save_IFS
24351
 
  shift
24352
 
  ac_file=$1
24353
 
  shift
24354
 
 
24355
 
  case $ac_mode in
24356
 
  :L) ac_source=$1;;
24357
 
  :[FH])
24358
 
    ac_file_inputs=
24359
 
    for ac_f
24360
 
    do
24361
 
      case $ac_f in
24362
 
      -) ac_f="$ac_tmp/stdin";;
24363
 
      *) # Look for the file first in the build tree, then in the source tree
24364
 
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
24365
 
         # because $ac_f cannot contain `:'.
24366
 
         test -f "$ac_f" ||
24367
 
           case $ac_f in
24368
 
           [\\/$]*) false;;
24369
 
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24370
 
           esac ||
24371
 
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24372
 
      esac
24373
 
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24374
 
      as_fn_append ac_file_inputs " '$ac_f'"
24375
 
    done
24376
 
 
24377
 
    # Let's still pretend it is `configure' which instantiates (i.e., don't
24378
 
    # use $as_me), people would be surprised to read:
24379
 
    #    /* config.h.  Generated by config.status.  */
24380
 
    configure_input='Generated from '`
24381
 
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24382
 
        `' by configure.'
24383
 
    if test x"$ac_file" != x-; then
24384
 
      configure_input="$ac_file.  $configure_input"
24385
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24386
 
$as_echo "$as_me: creating $ac_file" >&6;}
24387
 
    fi
24388
 
    # Neutralize special characters interpreted by sed in replacement strings.
24389
 
    case $configure_input in #(
24390
 
    *\&* | *\|* | *\\* )
24391
 
       ac_sed_conf_input=`$as_echo "$configure_input" |
24392
 
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
24393
 
    *) ac_sed_conf_input=$configure_input;;
24394
 
    esac
24395
 
 
24396
 
    case $ac_tag in
24397
 
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
24398
 
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24399
 
    esac
24400
 
    ;;
24401
 
  esac
24402
 
 
24403
 
  ac_dir=`$as_dirname -- "$ac_file" ||
24404
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24405
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
24406
 
         X"$ac_file" : 'X\(//\)$' \| \
24407
 
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24408
 
$as_echo X"$ac_file" |
24409
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24410
 
            s//\1/
24411
 
            q
24412
 
          }
24413
 
          /^X\(\/\/\)[^/].*/{
24414
 
            s//\1/
24415
 
            q
24416
 
          }
24417
 
          /^X\(\/\/\)$/{
24418
 
            s//\1/
24419
 
            q
24420
 
          }
24421
 
          /^X\(\/\).*/{
24422
 
            s//\1/
24423
 
            q
24424
 
          }
24425
 
          s/.*/./; q'`
24426
 
  as_dir="$ac_dir"; as_fn_mkdir_p
24427
 
  ac_builddir=.
24428
 
 
24429
 
case "$ac_dir" in
24430
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24431
 
*)
24432
 
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24433
 
  # A ".." for each directory in $ac_dir_suffix.
24434
 
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24435
 
  case $ac_top_builddir_sub in
24436
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24437
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24438
 
  esac ;;
24439
 
esac
24440
 
ac_abs_top_builddir=$ac_pwd
24441
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
24442
 
# for backward compatibility:
24443
 
ac_top_builddir=$ac_top_build_prefix
24444
 
 
24445
 
case $srcdir in
24446
 
  .)  # We are building in place.
24447
 
    ac_srcdir=.
24448
 
    ac_top_srcdir=$ac_top_builddir_sub
24449
 
    ac_abs_top_srcdir=$ac_pwd ;;
24450
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
24451
 
    ac_srcdir=$srcdir$ac_dir_suffix;
24452
 
    ac_top_srcdir=$srcdir
24453
 
    ac_abs_top_srcdir=$srcdir ;;
24454
 
  *) # Relative name.
24455
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24456
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
24457
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24458
 
esac
24459
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24460
 
 
24461
 
 
24462
 
  case $ac_mode in
24463
 
  :F)
24464
 
  #
24465
 
  # CONFIG_FILE
24466
 
  #
24467
 
 
24468
 
  case $INSTALL in
24469
 
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24470
 
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24471
 
  esac
24472
 
  ac_MKDIR_P=$MKDIR_P
24473
 
  case $MKDIR_P in
24474
 
  [\\/$]* | ?:[\\/]* ) ;;
24475
 
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24476
 
  esac
24477
 
_ACEOF
24478
 
 
24479
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24480
 
# If the template does not know about datarootdir, expand it.
24481
 
# FIXME: This hack should be removed a few years after 2.60.
24482
 
ac_datarootdir_hack=; ac_datarootdir_seen=
24483
 
ac_sed_dataroot='
24484
 
/datarootdir/ {
24485
 
  p
24486
 
  q
24487
 
}
24488
 
/@datadir@/p
24489
 
/@docdir@/p
24490
 
/@infodir@/p
24491
 
/@localedir@/p
24492
 
/@mandir@/p'
24493
 
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24494
 
*datarootdir*) ac_datarootdir_seen=yes;;
24495
 
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24496
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24497
 
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24498
 
_ACEOF
24499
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24500
 
  ac_datarootdir_hack='
24501
 
  s&@datadir@&$datadir&g
24502
 
  s&@docdir@&$docdir&g
24503
 
  s&@infodir@&$infodir&g
24504
 
  s&@localedir@&$localedir&g
24505
 
  s&@mandir@&$mandir&g
24506
 
  s&\\\${datarootdir}&$datarootdir&g' ;;
24507
 
esac
24508
 
_ACEOF
24509
 
 
24510
 
# Neutralize VPATH when `$srcdir' = `.'.
24511
 
# Shell code in configure.ac might set extrasub.
24512
 
# FIXME: do we really want to maintain this feature?
24513
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24514
 
ac_sed_extra="$ac_vpsub
24515
 
$extrasub
24516
 
_ACEOF
24517
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24518
 
:t
24519
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24520
 
s|@configure_input@|$ac_sed_conf_input|;t t
24521
 
s&@top_builddir@&$ac_top_builddir_sub&;t t
24522
 
s&@top_build_prefix@&$ac_top_build_prefix&;t t
24523
 
s&@srcdir@&$ac_srcdir&;t t
24524
 
s&@abs_srcdir@&$ac_abs_srcdir&;t t
24525
 
s&@top_srcdir@&$ac_top_srcdir&;t t
24526
 
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24527
 
s&@builddir@&$ac_builddir&;t t
24528
 
s&@abs_builddir@&$ac_abs_builddir&;t t
24529
 
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24530
 
s&@INSTALL@&$ac_INSTALL&;t t
24531
 
s&@MKDIR_P@&$ac_MKDIR_P&;t t
24532
 
$ac_datarootdir_hack
24533
 
"
24534
 
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24535
 
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24536
 
 
24537
 
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24538
 
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24539
 
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
24540
 
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
24541
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24542
 
which seems to be undefined.  Please make sure it is defined" >&5
24543
 
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24544
 
which seems to be undefined.  Please make sure it is defined" >&2;}
24545
 
 
24546
 
  rm -f "$ac_tmp/stdin"
24547
 
  case $ac_file in
24548
 
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24549
 
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24550
 
  esac \
24551
 
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24552
 
 ;;
24553
 
 
24554
 
 
24555
 
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24556
 
$as_echo "$as_me: executing $ac_file commands" >&6;}
24557
 
 ;;
24558
 
  esac
24559
 
 
24560
 
 
24561
 
  case $ac_file$ac_mode in
24562
 
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24563
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
24564
 
  # are listed without --file.  Let's play safe and only enable the eval
24565
 
  # if we detect the quoting.
24566
 
  case $CONFIG_FILES in
24567
 
  *\'*) eval set x "$CONFIG_FILES" ;;
24568
 
  *)   set x $CONFIG_FILES ;;
24569
 
  esac
24570
 
  shift
24571
 
  for mf
24572
 
  do
24573
 
    # Strip MF so we end up with the name of the file.
24574
 
    mf=`echo "$mf" | sed -e 's/:.*$//'`
24575
 
    # Check whether this is an Automake generated Makefile or not.
24576
 
    # We used to match only the files named `Makefile.in', but
24577
 
    # some people rename them; so instead we look at the file content.
24578
 
    # Grep'ing the first line is not enough: some people post-process
24579
 
    # each Makefile.in and add a new line on top of each file to say so.
24580
 
    # Grep'ing the whole file is not good either: AIX grep has a line
24581
 
    # limit of 2048, but all sed's we know have understand at least 4000.
24582
 
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24583
 
      dirpart=`$as_dirname -- "$mf" ||
24584
 
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24585
 
         X"$mf" : 'X\(//\)[^/]' \| \
24586
 
         X"$mf" : 'X\(//\)$' \| \
24587
 
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24588
 
$as_echo X"$mf" |
24589
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24590
 
            s//\1/
24591
 
            q
24592
 
          }
24593
 
          /^X\(\/\/\)[^/].*/{
24594
 
            s//\1/
24595
 
            q
24596
 
          }
24597
 
          /^X\(\/\/\)$/{
24598
 
            s//\1/
24599
 
            q
24600
 
          }
24601
 
          /^X\(\/\).*/{
24602
 
            s//\1/
24603
 
            q
24604
 
          }
24605
 
          s/.*/./; q'`
24606
 
    else
24607
 
      continue
24608
 
    fi
24609
 
    # Extract the definition of DEPDIR, am__include, and am__quote
24610
 
    # from the Makefile without running `make'.
24611
 
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24612
 
    test -z "$DEPDIR" && continue
24613
 
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
24614
 
    test -z "am__include" && continue
24615
 
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24616
 
    # When using ansi2knr, U may be empty or an underscore; expand it
24617
 
    U=`sed -n 's/^U = //p' < "$mf"`
24618
 
    # Find all dependency output files, they are included files with
24619
 
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
24620
 
    # simplest approach to changing $(DEPDIR) to its actual value in the
24621
 
    # expansion.
24622
 
    for file in `sed -n "
24623
 
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24624
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24625
 
      # Make sure the directory exists.
24626
 
      test -f "$dirpart/$file" && continue
24627
 
      fdir=`$as_dirname -- "$file" ||
24628
 
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24629
 
         X"$file" : 'X\(//\)[^/]' \| \
24630
 
         X"$file" : 'X\(//\)$' \| \
24631
 
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24632
 
$as_echo X"$file" |
24633
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24634
 
            s//\1/
24635
 
            q
24636
 
          }
24637
 
          /^X\(\/\/\)[^/].*/{
24638
 
            s//\1/
24639
 
            q
24640
 
          }
24641
 
          /^X\(\/\/\)$/{
24642
 
            s//\1/
24643
 
            q
24644
 
          }
24645
 
          /^X\(\/\).*/{
24646
 
            s//\1/
24647
 
            q
24648
 
          }
24649
 
          s/.*/./; q'`
24650
 
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
24651
 
      # echo "creating $dirpart/$file"
24652
 
      echo '# dummy' > "$dirpart/$file"
24653
 
    done
24654
 
  done
24655
 
}
24656
 
 ;;
24657
 
    "libtool":C)
24658
 
 
24659
 
    # See if we are running on zsh, and set the options which allow our
24660
 
    # commands through without removal of \ escapes.
24661
 
    if test -n "${ZSH_VERSION+set}" ; then
24662
 
      setopt NO_GLOB_SUBST
24663
 
    fi
24664
 
 
24665
 
    cfgfile="${ofile}T"
24666
 
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24667
 
    $RM "$cfgfile"
24668
 
 
24669
 
    cat <<_LT_EOF >> "$cfgfile"
24670
 
#! $SHELL
24671
 
 
24672
 
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
24673
 
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
24674
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24675
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
24676
 
#
24677
 
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
24678
 
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
24679
 
#                 Foundation, Inc.
24680
 
#   Written by Gordon Matzigkeit, 1996
24681
 
#
24682
 
#   This file is part of GNU Libtool.
24683
 
#
24684
 
# GNU Libtool is free software; you can redistribute it and/or
24685
 
# modify it under the terms of the GNU General Public License as
24686
 
# published by the Free Software Foundation; either version 2 of
24687
 
# the License, or (at your option) any later version.
24688
 
#
24689
 
# As a special exception to the GNU General Public License,
24690
 
# if you distribute this file as part of a program or library that
24691
 
# is built using GNU Libtool, you may include this file under the
24692
 
# same distribution terms that you use for the rest of that program.
24693
 
#
24694
 
# GNU Libtool is distributed in the hope that it will be useful,
24695
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
24696
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24697
 
# GNU General Public License for more details.
24698
 
#
24699
 
# You should have received a copy of the GNU General Public License
24700
 
# along with GNU Libtool; see the file COPYING.  If not, a copy
24701
 
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
24702
 
# obtained by writing to the Free Software Foundation, Inc.,
24703
 
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24704
 
 
24705
 
 
24706
 
# The names of the tagged configurations supported by this script.
24707
 
available_tags="CXX "
24708
 
 
24709
 
# ### BEGIN LIBTOOL CONFIG
24710
 
 
24711
 
# Which release of libtool.m4 was used?
24712
 
macro_version=$macro_version
24713
 
macro_revision=$macro_revision
24714
 
 
24715
 
# Whether or not to build shared libraries.
24716
 
build_libtool_libs=$enable_shared
24717
 
 
24718
 
# Whether or not to build static libraries.
24719
 
build_old_libs=$enable_static
24720
 
 
24721
 
# What type of objects to build.
24722
 
pic_mode=$pic_mode
24723
 
 
24724
 
# Whether or not to optimize for fast installation.
24725
 
fast_install=$enable_fast_install
24726
 
 
24727
 
# Shell to use when invoking shell scripts.
24728
 
SHELL=$lt_SHELL
24729
 
 
24730
 
# An echo program that protects backslashes.
24731
 
ECHO=$lt_ECHO
24732
 
 
24733
 
# The PATH separator for the build system.
24734
 
PATH_SEPARATOR=$lt_PATH_SEPARATOR
24735
 
 
24736
 
# The host system.
24737
 
host_alias=$host_alias
24738
 
host=$host
24739
 
host_os=$host_os
24740
 
 
24741
 
# The build system.
24742
 
build_alias=$build_alias
24743
 
build=$build
24744
 
build_os=$build_os
24745
 
 
24746
 
# A sed program that does not truncate output.
24747
 
SED=$lt_SED
24748
 
 
24749
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
24750
 
Xsed="\$SED -e 1s/^X//"
24751
 
 
24752
 
# A grep program that handles long lines.
24753
 
GREP=$lt_GREP
24754
 
 
24755
 
# An ERE matcher.
24756
 
EGREP=$lt_EGREP
24757
 
 
24758
 
# A literal string matcher.
24759
 
FGREP=$lt_FGREP
24760
 
 
24761
 
# A BSD- or MS-compatible name lister.
24762
 
NM=$lt_NM
24763
 
 
24764
 
# Whether we need soft or hard links.
24765
 
LN_S=$lt_LN_S
24766
 
 
24767
 
# What is the maximum length of a command?
24768
 
max_cmd_len=$max_cmd_len
24769
 
 
24770
 
# Object file suffix (normally "o").
24771
 
objext=$ac_objext
24772
 
 
24773
 
# Executable file suffix (normally "").
24774
 
exeext=$exeext
24775
 
 
24776
 
# whether the shell understands "unset".
24777
 
lt_unset=$lt_unset
24778
 
 
24779
 
# turn spaces into newlines.
24780
 
SP2NL=$lt_lt_SP2NL
24781
 
 
24782
 
# turn newlines into spaces.
24783
 
NL2SP=$lt_lt_NL2SP
24784
 
 
24785
 
# convert \$build file names to \$host format.
24786
 
to_host_file_cmd=$lt_cv_to_host_file_cmd
24787
 
 
24788
 
# convert \$build files to toolchain format.
24789
 
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24790
 
 
24791
 
# An object symbol dumper.
24792
 
OBJDUMP=$lt_OBJDUMP
24793
 
 
24794
 
# Method to check whether dependent libraries are shared objects.
24795
 
deplibs_check_method=$lt_deplibs_check_method
24796
 
 
24797
 
# Command to use when deplibs_check_method = "file_magic".
24798
 
file_magic_cmd=$lt_file_magic_cmd
24799
 
 
24800
 
# How to find potential files when deplibs_check_method = "file_magic".
24801
 
file_magic_glob=$lt_file_magic_glob
24802
 
 
24803
 
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24804
 
want_nocaseglob=$lt_want_nocaseglob
24805
 
 
24806
 
# DLL creation program.
24807
 
DLLTOOL=$lt_DLLTOOL
24808
 
 
24809
 
# Command to associate shared and link libraries.
24810
 
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24811
 
 
24812
 
# The archiver.
24813
 
AR=$lt_AR
24814
 
 
24815
 
# Flags to create an archive.
24816
 
AR_FLAGS=$lt_AR_FLAGS
24817
 
 
24818
 
# How to feed a file listing to the archiver.
24819
 
archiver_list_spec=$lt_archiver_list_spec
24820
 
 
24821
 
# A symbol stripping program.
24822
 
STRIP=$lt_STRIP
24823
 
 
24824
 
# Commands used to install an old-style archive.
24825
 
RANLIB=$lt_RANLIB
24826
 
old_postinstall_cmds=$lt_old_postinstall_cmds
24827
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
24828
 
 
24829
 
# Whether to use a lock for old archive extraction.
24830
 
lock_old_archive_extraction=$lock_old_archive_extraction
24831
 
 
24832
 
# A C compiler.
24833
 
LTCC=$lt_CC
24834
 
 
24835
 
# LTCC compiler flags.
24836
 
LTCFLAGS=$lt_CFLAGS
24837
 
 
24838
 
# Take the output of nm and produce a listing of raw symbols and C names.
24839
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24840
 
 
24841
 
# Transform the output of nm in a proper C declaration.
24842
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24843
 
 
24844
 
# Transform the output of nm in a C name address pair.
24845
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24846
 
 
24847
 
# Transform the output of nm in a C name address pair when lib prefix is needed.
24848
 
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24849
 
 
24850
 
# Specify filename containing input files for \$NM.
24851
 
nm_file_list_spec=$lt_nm_file_list_spec
24852
 
 
24853
 
# The root where to search for dependent libraries,and in which our libraries should be installed.
24854
 
lt_sysroot=$lt_sysroot
24855
 
 
24856
 
# The name of the directory that contains temporary libtool files.
24857
 
objdir=$objdir
24858
 
 
24859
 
# Used to examine libraries when file_magic_cmd begins with "file".
24860
 
MAGIC_CMD=$MAGIC_CMD
24861
 
 
24862
 
# Must we lock files when doing compilation?
24863
 
need_locks=$lt_need_locks
24864
 
 
24865
 
# Manifest tool.
24866
 
MANIFEST_TOOL=$lt_MANIFEST_TOOL
24867
 
 
24868
 
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24869
 
DSYMUTIL=$lt_DSYMUTIL
24870
 
 
24871
 
# Tool to change global to local symbols on Mac OS X.
24872
 
NMEDIT=$lt_NMEDIT
24873
 
 
24874
 
# Tool to manipulate fat objects and archives on Mac OS X.
24875
 
LIPO=$lt_LIPO
24876
 
 
24877
 
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
24878
 
OTOOL=$lt_OTOOL
24879
 
 
24880
 
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24881
 
OTOOL64=$lt_OTOOL64
24882
 
 
24883
 
# Old archive suffix (normally "a").
24884
 
libext=$libext
24885
 
 
24886
 
# Shared library suffix (normally ".so").
24887
 
shrext_cmds=$lt_shrext_cmds
24888
 
 
24889
 
# The commands to extract the exported symbol list from a shared archive.
24890
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
24891
 
 
24892
 
# Variables whose values should be saved in libtool wrapper scripts and
24893
 
# restored at link time.
24894
 
variables_saved_for_relink=$lt_variables_saved_for_relink
24895
 
 
24896
 
# Do we need the "lib" prefix for modules?
24897
 
need_lib_prefix=$need_lib_prefix
24898
 
 
24899
 
# Do we need a version for libraries?
24900
 
need_version=$need_version
24901
 
 
24902
 
# Library versioning type.
24903
 
version_type=$version_type
24904
 
 
24905
 
# Shared library runtime path variable.
24906
 
runpath_var=$runpath_var
24907
 
 
24908
 
# Shared library path variable.
24909
 
shlibpath_var=$shlibpath_var
24910
 
 
24911
 
# Is shlibpath searched before the hard-coded library search path?
24912
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24913
 
 
24914
 
# Format of library name prefix.
24915
 
libname_spec=$lt_libname_spec
24916
 
 
24917
 
# List of archive names.  First name is the real one, the rest are links.
24918
 
# The last name is the one that the linker finds with -lNAME
24919
 
library_names_spec=$lt_library_names_spec
24920
 
 
24921
 
# The coded name of the library, if different from the real name.
24922
 
soname_spec=$lt_soname_spec
24923
 
 
24924
 
# Permission mode override for installation of shared libraries.
24925
 
install_override_mode=$lt_install_override_mode
24926
 
 
24927
 
# Command to use after installation of a shared archive.
24928
 
postinstall_cmds=$lt_postinstall_cmds
24929
 
 
24930
 
# Command to use after uninstallation of a shared archive.
24931
 
postuninstall_cmds=$lt_postuninstall_cmds
24932
 
 
24933
 
# Commands used to finish a libtool library installation in a directory.
24934
 
finish_cmds=$lt_finish_cmds
24935
 
 
24936
 
# As "finish_cmds", except a single script fragment to be evaled but
24937
 
# not shown.
24938
 
finish_eval=$lt_finish_eval
24939
 
 
24940
 
# Whether we should hardcode library paths into libraries.
24941
 
hardcode_into_libs=$hardcode_into_libs
24942
 
 
24943
 
# Compile-time system search path for libraries.
24944
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24945
 
 
24946
 
# Run-time system search path for libraries.
24947
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24948
 
 
24949
 
# Whether dlopen is supported.
24950
 
dlopen_support=$enable_dlopen
24951
 
 
24952
 
# Whether dlopen of programs is supported.
24953
 
dlopen_self=$enable_dlopen_self
24954
 
 
24955
 
# Whether dlopen of statically linked programs is supported.
24956
 
dlopen_self_static=$enable_dlopen_self_static
24957
 
 
24958
 
# Commands to strip libraries.
24959
 
old_striplib=$lt_old_striplib
24960
 
striplib=$lt_striplib
24961
 
 
24962
 
 
24963
 
# The linker used to build libraries.
24964
 
LD=$lt_LD
24965
 
 
24966
 
# How to create reloadable object files.
24967
 
reload_flag=$lt_reload_flag
24968
 
reload_cmds=$lt_reload_cmds
24969
 
 
24970
 
# Commands used to build an old-style archive.
24971
 
old_archive_cmds=$lt_old_archive_cmds
24972
 
 
24973
 
# A language specific compiler.
24974
 
CC=$lt_compiler
24975
 
 
24976
 
# Is the compiler the GNU compiler?
24977
 
with_gcc=$GCC
24978
 
 
24979
 
# Compiler flag to turn off builtin functions.
24980
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24981
 
 
24982
 
# Additional compiler flags for building library objects.
24983
 
pic_flag=$lt_lt_prog_compiler_pic
24984
 
 
24985
 
# How to pass a linker flag through the compiler.
24986
 
wl=$lt_lt_prog_compiler_wl
24987
 
 
24988
 
# Compiler flag to prevent dynamic linking.
24989
 
link_static_flag=$lt_lt_prog_compiler_static
24990
 
 
24991
 
# Does compiler simultaneously support -c and -o options?
24992
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24993
 
 
24994
 
# Whether or not to add -lc for building shared libraries.
24995
 
build_libtool_need_lc=$archive_cmds_need_lc
24996
 
 
24997
 
# Whether or not to disallow shared libs when runtime libs are static.
24998
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24999
 
 
25000
 
# Compiler flag to allow reflexive dlopens.
25001
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25002
 
 
25003
 
# Compiler flag to generate shared objects directly from archives.
25004
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
25005
 
 
25006
 
# Whether the compiler copes with passing no objects directly.
25007
 
compiler_needs_object=$lt_compiler_needs_object
25008
 
 
25009
 
# Create an old-style archive from a shared archive.
25010
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25011
 
 
25012
 
# Create a temporary old-style archive to link instead of a shared archive.
25013
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25014
 
 
25015
 
# Commands used to build a shared archive.
25016
 
archive_cmds=$lt_archive_cmds
25017
 
archive_expsym_cmds=$lt_archive_expsym_cmds
25018
 
 
25019
 
# Commands used to build a loadable module if different from building
25020
 
# a shared archive.
25021
 
module_cmds=$lt_module_cmds
25022
 
module_expsym_cmds=$lt_module_expsym_cmds
25023
 
 
25024
 
# Whether we are building with GNU ld or not.
25025
 
with_gnu_ld=$lt_with_gnu_ld
25026
 
 
25027
 
# Flag that allows shared libraries with undefined symbols to be built.
25028
 
allow_undefined_flag=$lt_allow_undefined_flag
25029
 
 
25030
 
# Flag that enforces no undefined symbols.
25031
 
no_undefined_flag=$lt_no_undefined_flag
25032
 
 
25033
 
# Flag to hardcode \$libdir into a binary during linking.
25034
 
# This must work even if \$libdir does not exist
25035
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25036
 
 
25037
 
# Whether we need a single "-rpath" flag with a separated argument.
25038
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
25039
 
 
25040
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25041
 
# DIR into the resulting binary.
25042
 
hardcode_direct=$hardcode_direct
25043
 
 
25044
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25045
 
# DIR into the resulting binary and the resulting library dependency is
25046
 
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
25047
 
# library is relocated.
25048
 
hardcode_direct_absolute=$hardcode_direct_absolute
25049
 
 
25050
 
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25051
 
# into the resulting binary.
25052
 
hardcode_minus_L=$hardcode_minus_L
25053
 
 
25054
 
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25055
 
# into the resulting binary.
25056
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
25057
 
 
25058
 
# Set to "yes" if building a shared library automatically hardcodes DIR
25059
 
# into the library and all subsequent libraries and executables linked
25060
 
# against it.
25061
 
hardcode_automatic=$hardcode_automatic
25062
 
 
25063
 
# Set to yes if linker adds runtime paths of dependent libraries
25064
 
# to runtime path list.
25065
 
inherit_rpath=$inherit_rpath
25066
 
 
25067
 
# Whether libtool must link a program against all its dependency libraries.
25068
 
link_all_deplibs=$link_all_deplibs
25069
 
 
25070
 
# Set to "yes" if exported symbols are required.
25071
 
always_export_symbols=$always_export_symbols
25072
 
 
25073
 
# The commands to list exported symbols.
25074
 
export_symbols_cmds=$lt_export_symbols_cmds
25075
 
 
25076
 
# Symbols that should not be listed in the preloaded symbols.
25077
 
exclude_expsyms=$lt_exclude_expsyms
25078
 
 
25079
 
# Symbols that must always be exported.
25080
 
include_expsyms=$lt_include_expsyms
25081
 
 
25082
 
# Commands necessary for linking programs (against libraries) with templates.
25083
 
prelink_cmds=$lt_prelink_cmds
25084
 
 
25085
 
# Commands necessary for finishing linking programs.
25086
 
postlink_cmds=$lt_postlink_cmds
25087
 
 
25088
 
# Specify filename containing input files.
25089
 
file_list_spec=$lt_file_list_spec
25090
 
 
25091
 
# How to hardcode a shared library path into an executable.
25092
 
hardcode_action=$hardcode_action
25093
 
 
25094
 
# The directories searched by this compiler when creating a shared library.
25095
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
25096
 
 
25097
 
# Dependencies to place before and after the objects being linked to
25098
 
# create a shared library.
25099
 
predep_objects=$lt_predep_objects
25100
 
postdep_objects=$lt_postdep_objects
25101
 
predeps=$lt_predeps
25102
 
postdeps=$lt_postdeps
25103
 
 
25104
 
# The library search path used internally by the compiler when linking
25105
 
# a shared library.
25106
 
compiler_lib_search_path=$lt_compiler_lib_search_path
25107
 
 
25108
 
# ### END LIBTOOL CONFIG
25109
 
 
25110
 
_LT_EOF
25111
 
 
25112
 
  case $host_os in
25113
 
  aix3*)
25114
 
    cat <<\_LT_EOF >> "$cfgfile"
25115
 
# AIX sometimes has problems with the GCC collect2 program.  For some
25116
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
25117
 
# vanish in a puff of smoke.
25118
 
if test "X${COLLECT_NAMES+set}" != Xset; then
25119
 
  COLLECT_NAMES=
25120
 
  export COLLECT_NAMES
25121
 
fi
25122
 
_LT_EOF
25123
 
    ;;
25124
 
  esac
25125
 
 
25126
 
 
25127
 
ltmain="$ac_aux_dir/ltmain.sh"
25128
 
 
25129
 
 
25130
 
  # We use sed instead of cat because bash on DJGPP gets confused if
25131
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
25132
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
25133
 
  # is reportedly fixed, but why not run on old versions too?
25134
 
  sed '$q' "$ltmain" >> "$cfgfile" \
25135
 
     || (rm -f "$cfgfile"; exit 1)
25136
 
 
25137
 
  if test x"$xsi_shell" = xyes; then
25138
 
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
25139
 
func_dirname ()\
25140
 
{\
25141
 
\    case ${1} in\
25142
 
\      */*) func_dirname_result="${1%/*}${2}" ;;\
25143
 
\      *  ) func_dirname_result="${3}" ;;\
25144
 
\    esac\
25145
 
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
25146
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
25147
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25148
 
test 0 -eq $? || _lt_function_replace_fail=:
25149
 
 
25150
 
 
25151
 
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
25152
 
func_basename ()\
25153
 
{\
25154
 
\    func_basename_result="${1##*/}"\
25155
 
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
25156
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
25157
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25158
 
test 0 -eq $? || _lt_function_replace_fail=:
25159
 
 
25160
 
 
25161
 
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
25162
 
func_dirname_and_basename ()\
25163
 
{\
25164
 
\    case ${1} in\
25165
 
\      */*) func_dirname_result="${1%/*}${2}" ;;\
25166
 
\      *  ) func_dirname_result="${3}" ;;\
25167
 
\    esac\
25168
 
\    func_basename_result="${1##*/}"\
25169
 
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
25170
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
25171
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25172
 
test 0 -eq $? || _lt_function_replace_fail=:
25173
 
 
25174
 
 
25175
 
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
25176
 
func_stripname ()\
25177
 
{\
25178
 
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
25179
 
\    # positional parameters, so assign one to ordinary parameter first.\
25180
 
\    func_stripname_result=${3}\
25181
 
\    func_stripname_result=${func_stripname_result#"${1}"}\
25182
 
\    func_stripname_result=${func_stripname_result%"${2}"}\
25183
 
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
25184
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
25185
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25186
 
test 0 -eq $? || _lt_function_replace_fail=:
25187
 
 
25188
 
 
25189
 
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
25190
 
func_split_long_opt ()\
25191
 
{\
25192
 
\    func_split_long_opt_name=${1%%=*}\
25193
 
\    func_split_long_opt_arg=${1#*=}\
25194
 
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
25195
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
25196
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25197
 
test 0 -eq $? || _lt_function_replace_fail=:
25198
 
 
25199
 
 
25200
 
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
25201
 
func_split_short_opt ()\
25202
 
{\
25203
 
\    func_split_short_opt_arg=${1#??}\
25204
 
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
25205
 
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
25206
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
25207
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25208
 
test 0 -eq $? || _lt_function_replace_fail=:
25209
 
 
25210
 
 
25211
 
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
25212
 
func_lo2o ()\
25213
 
{\
25214
 
\    case ${1} in\
25215
 
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
25216
 
\      *)    func_lo2o_result=${1} ;;\
25217
 
\    esac\
25218
 
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
25219
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
25220
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25221
 
test 0 -eq $? || _lt_function_replace_fail=:
25222
 
 
25223
 
 
25224
 
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
25225
 
func_xform ()\
25226
 
{\
25227
 
    func_xform_result=${1%.*}.lo\
25228
 
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
25229
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
25230
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25231
 
test 0 -eq $? || _lt_function_replace_fail=:
25232
 
 
25233
 
 
25234
 
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
25235
 
func_arith ()\
25236
 
{\
25237
 
    func_arith_result=$(( $* ))\
25238
 
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
25239
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
25240
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25241
 
test 0 -eq $? || _lt_function_replace_fail=:
25242
 
 
25243
 
 
25244
 
  sed -e '/^func_len ()$/,/^} # func_len /c\
25245
 
func_len ()\
25246
 
{\
25247
 
    func_len_result=${#1}\
25248
 
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
25249
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
25250
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25251
 
test 0 -eq $? || _lt_function_replace_fail=:
25252
 
 
25253
 
fi
25254
 
 
25255
 
if test x"$lt_shell_append" = xyes; then
25256
 
  sed -e '/^func_append ()$/,/^} # func_append /c\
25257
 
func_append ()\
25258
 
{\
25259
 
    eval "${1}+=\\${2}"\
25260
 
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
25261
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
25262
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25263
 
test 0 -eq $? || _lt_function_replace_fail=:
25264
 
 
25265
 
 
25266
 
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
25267
 
func_append_quoted ()\
25268
 
{\
25269
 
\    func_quote_for_eval "${2}"\
25270
 
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
25271
 
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
25272
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
25273
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25274
 
test 0 -eq $? || _lt_function_replace_fail=:
25275
 
 
25276
 
 
25277
 
  # Save a `func_append' function call where possible by direct use of '+='
25278
 
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
25279
 
    && mv -f "$cfgfile.tmp" "$cfgfile" \
25280
 
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25281
 
  test 0 -eq $? || _lt_function_replace_fail=:
25282
 
else
25283
 
  # Save a `func_append' function call even when '+=' is not available
25284
 
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
25285
 
    && mv -f "$cfgfile.tmp" "$cfgfile" \
25286
 
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25287
 
  test 0 -eq $? || _lt_function_replace_fail=:
25288
 
fi
25289
 
 
25290
 
if test x"$_lt_function_replace_fail" = x":"; then
25291
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
25292
 
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
25293
 
fi
25294
 
 
25295
 
 
25296
 
   mv -f "$cfgfile" "$ofile" ||
25297
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25298
 
  chmod +x "$ofile"
25299
 
 
25300
 
 
25301
 
    cat <<_LT_EOF >> "$ofile"
25302
 
 
25303
 
# ### BEGIN LIBTOOL TAG CONFIG: CXX
25304
 
 
25305
 
# The linker used to build libraries.
25306
 
LD=$lt_LD_CXX
25307
 
 
25308
 
# How to create reloadable object files.
25309
 
reload_flag=$lt_reload_flag_CXX
25310
 
reload_cmds=$lt_reload_cmds_CXX
25311
 
 
25312
 
# Commands used to build an old-style archive.
25313
 
old_archive_cmds=$lt_old_archive_cmds_CXX
25314
 
 
25315
 
# A language specific compiler.
25316
 
CC=$lt_compiler_CXX
25317
 
 
25318
 
# Is the compiler the GNU compiler?
25319
 
with_gcc=$GCC_CXX
25320
 
 
25321
 
# Compiler flag to turn off builtin functions.
25322
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
25323
 
 
25324
 
# Additional compiler flags for building library objects.
25325
 
pic_flag=$lt_lt_prog_compiler_pic_CXX
25326
 
 
25327
 
# How to pass a linker flag through the compiler.
25328
 
wl=$lt_lt_prog_compiler_wl_CXX
25329
 
 
25330
 
# Compiler flag to prevent dynamic linking.
25331
 
link_static_flag=$lt_lt_prog_compiler_static_CXX
25332
 
 
25333
 
# Does compiler simultaneously support -c and -o options?
25334
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
25335
 
 
25336
 
# Whether or not to add -lc for building shared libraries.
25337
 
build_libtool_need_lc=$archive_cmds_need_lc_CXX
25338
 
 
25339
 
# Whether or not to disallow shared libs when runtime libs are static.
25340
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
25341
 
 
25342
 
# Compiler flag to allow reflexive dlopens.
25343
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
25344
 
 
25345
 
# Compiler flag to generate shared objects directly from archives.
25346
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
25347
 
 
25348
 
# Whether the compiler copes with passing no objects directly.
25349
 
compiler_needs_object=$lt_compiler_needs_object_CXX
25350
 
 
25351
 
# Create an old-style archive from a shared archive.
25352
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
25353
 
 
25354
 
# Create a temporary old-style archive to link instead of a shared archive.
25355
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
25356
 
 
25357
 
# Commands used to build a shared archive.
25358
 
archive_cmds=$lt_archive_cmds_CXX
25359
 
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
25360
 
 
25361
 
# Commands used to build a loadable module if different from building
25362
 
# a shared archive.
25363
 
module_cmds=$lt_module_cmds_CXX
25364
 
module_expsym_cmds=$lt_module_expsym_cmds_CXX
25365
 
 
25366
 
# Whether we are building with GNU ld or not.
25367
 
with_gnu_ld=$lt_with_gnu_ld_CXX
25368
 
 
25369
 
# Flag that allows shared libraries with undefined symbols to be built.
25370
 
allow_undefined_flag=$lt_allow_undefined_flag_CXX
25371
 
 
25372
 
# Flag that enforces no undefined symbols.
25373
 
no_undefined_flag=$lt_no_undefined_flag_CXX
25374
 
 
25375
 
# Flag to hardcode \$libdir into a binary during linking.
25376
 
# This must work even if \$libdir does not exist
25377
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
25378
 
 
25379
 
# Whether we need a single "-rpath" flag with a separated argument.
25380
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
25381
 
 
25382
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25383
 
# DIR into the resulting binary.
25384
 
hardcode_direct=$hardcode_direct_CXX
25385
 
 
25386
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25387
 
# DIR into the resulting binary and the resulting library dependency is
25388
 
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
25389
 
# library is relocated.
25390
 
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
25391
 
 
25392
 
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25393
 
# into the resulting binary.
25394
 
hardcode_minus_L=$hardcode_minus_L_CXX
25395
 
 
25396
 
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25397
 
# into the resulting binary.
25398
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
25399
 
 
25400
 
# Set to "yes" if building a shared library automatically hardcodes DIR
25401
 
# into the library and all subsequent libraries and executables linked
25402
 
# against it.
25403
 
hardcode_automatic=$hardcode_automatic_CXX
25404
 
 
25405
 
# Set to yes if linker adds runtime paths of dependent libraries
25406
 
# to runtime path list.
25407
 
inherit_rpath=$inherit_rpath_CXX
25408
 
 
25409
 
# Whether libtool must link a program against all its dependency libraries.
25410
 
link_all_deplibs=$link_all_deplibs_CXX
25411
 
 
25412
 
# Set to "yes" if exported symbols are required.
25413
 
always_export_symbols=$always_export_symbols_CXX
25414
 
 
25415
 
# The commands to list exported symbols.
25416
 
export_symbols_cmds=$lt_export_symbols_cmds_CXX
25417
 
 
25418
 
# Symbols that should not be listed in the preloaded symbols.
25419
 
exclude_expsyms=$lt_exclude_expsyms_CXX
25420
 
 
25421
 
# Symbols that must always be exported.
25422
 
include_expsyms=$lt_include_expsyms_CXX
25423
 
 
25424
 
# Commands necessary for linking programs (against libraries) with templates.
25425
 
prelink_cmds=$lt_prelink_cmds_CXX
25426
 
 
25427
 
# Commands necessary for finishing linking programs.
25428
 
postlink_cmds=$lt_postlink_cmds_CXX
25429
 
 
25430
 
# Specify filename containing input files.
25431
 
file_list_spec=$lt_file_list_spec_CXX
25432
 
 
25433
 
# How to hardcode a shared library path into an executable.
25434
 
hardcode_action=$hardcode_action_CXX
25435
 
 
25436
 
# The directories searched by this compiler when creating a shared library.
25437
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
25438
 
 
25439
 
# Dependencies to place before and after the objects being linked to
25440
 
# create a shared library.
25441
 
predep_objects=$lt_predep_objects_CXX
25442
 
postdep_objects=$lt_postdep_objects_CXX
25443
 
predeps=$lt_predeps_CXX
25444
 
postdeps=$lt_postdeps_CXX
25445
 
 
25446
 
# The library search path used internally by the compiler when linking
25447
 
# a shared library.
25448
 
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
25449
 
 
25450
 
# ### END LIBTOOL TAG CONFIG: CXX
25451
 
_LT_EOF
25452
 
 
25453
 
 ;;
25454
 
 
25455
 
  esac
25456
 
done # for ac_tag
25457
 
 
25458
 
 
25459
 
as_fn_exit 0
25460
 
_ACEOF
25461
 
ac_clean_files=$ac_clean_files_save
25462
 
 
25463
 
test $ac_write_fail = 0 ||
25464
 
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25465
 
 
25466
 
 
25467
 
# configure is writing to config.log, and then calls config.status.
25468
 
# config.status does its own redirection, appending to config.log.
25469
 
# Unfortunately, on DOS this fails, as config.log is still kept open
25470
 
# by configure, so config.status won't be able to write to it; its
25471
 
# output is simply discarded.  So we exec the FD to /dev/null,
25472
 
# effectively closing config.log, so it can be properly (re)opened and
25473
 
# appended to by config.status.  When coming back to configure, we
25474
 
# need to make the FD available again.
25475
 
if test "$no_create" != yes; then
25476
 
  ac_cs_success=:
25477
 
  ac_config_status_args=
25478
 
  test "$silent" = yes &&
25479
 
    ac_config_status_args="$ac_config_status_args --quiet"
25480
 
  exec 5>/dev/null
25481
 
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25482
 
  exec 5>>config.log
25483
 
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25484
 
  # would make configure fail if this is the last instruction.
25485
 
  $ac_cs_success || as_fn_exit 1
25486
 
fi
25487
 
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25488
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25489
 
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25490
 
fi
25491