~ubuntu-branches/ubuntu/edgy/xft/edgy

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Rodrigo Parra Novo
  • Date: 2006-07-25 14:49:22 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060725144922-v6h05wk1rvrbmnxu
Tags: 2.1.10-1ubuntu1
* Merged with Debian experimental
* Fixed libfreetype6-dev Build-Depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.59 for libXft 2.1.8.2.
 
3
# Generated by GNU Autoconf 2.60 for libXft 2.1.10.
4
4
#
5
5
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6
6
#
7
 
# Copyright (C) 2003 Free Software Foundation, Inc.
 
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
8
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8
9
# This configure script is free software; the Free Software Foundation
9
10
# gives unlimited permission to copy, distribute and modify it.
10
11
## --------------------- ##
18
19
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
20
  # is contrary to our usage.  Disable this feature.
20
21
  alias -g '${1+"$@"}'='"$@"'
21
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22
 
  set -o posix
 
22
  setopt NO_GLOB_SUBST
 
23
else
 
24
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23
25
fi
 
26
BIN_SH=xpg4; export BIN_SH # for Tru64
24
27
DUALCASE=1; export DUALCASE # for MKS sh
25
28
 
 
29
 
 
30
# PATH needs CR
 
31
# Avoid depending upon Character Ranges.
 
32
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
33
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
34
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
35
as_cr_digits='0123456789'
 
36
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
37
 
 
38
# The user is always right.
 
39
if test "${PATH_SEPARATOR+set}" != set; then
 
40
  echo "#! /bin/sh" >conf$$.sh
 
41
  echo  "exit 0"   >>conf$$.sh
 
42
  chmod +x conf$$.sh
 
43
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
44
    PATH_SEPARATOR=';'
 
45
  else
 
46
    PATH_SEPARATOR=:
 
47
  fi
 
48
  rm -f conf$$.sh
 
49
fi
 
50
 
26
51
# Support unset when possible.
27
52
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28
53
  as_unset=unset
31
56
fi
32
57
 
33
58
 
 
59
# IFS
 
60
# We need space, tab and new line, in precisely that order.  Quoting is
 
61
# there to prevent editors from complaining about space-tab.
 
62
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
63
# splitting by setting IFS to empty value.)
 
64
as_nl='
 
65
'
 
66
IFS=" ""        $as_nl"
 
67
 
 
68
# Find who we are.  Look in the path if we contain no directory separator.
 
69
case $0 in
 
70
  *[\\/]* ) as_myself=$0 ;;
 
71
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
72
for as_dir in $PATH
 
73
do
 
74
  IFS=$as_save_IFS
 
75
  test -z "$as_dir" && as_dir=.
 
76
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
77
done
 
78
IFS=$as_save_IFS
 
79
 
 
80
     ;;
 
81
esac
 
82
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
83
# in which case we are not to be found in the path.
 
84
if test "x$as_myself" = x; then
 
85
  as_myself=$0
 
86
fi
 
87
if test ! -f "$as_myself"; then
 
88
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
89
  { (exit 1); exit 1; }
 
90
fi
 
91
 
34
92
# Work around bugs in pre-3.0 UWIN ksh.
35
 
$as_unset ENV MAIL MAILPATH
 
93
for as_var in ENV MAIL MAILPATH
 
94
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
95
done
36
96
PS1='$ '
37
97
PS2='> '
38
98
PS4='+ '
46
106
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47
107
    eval $as_var=C; export $as_var
48
108
  else
49
 
    $as_unset $as_var
 
109
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
50
110
  fi
51
111
done
52
112
 
53
113
# Required to use basename.
54
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
114
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
115
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
55
116
  as_expr=expr
56
117
else
57
118
  as_expr=false
58
119
fi
59
120
 
60
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
121
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
61
122
  as_basename=basename
62
123
else
63
124
  as_basename=false
65
126
 
66
127
 
67
128
# Name of the executable.
68
 
as_me=`$as_basename "$0" ||
 
129
as_me=`$as_basename -- "$0" ||
69
130
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70
131
         X"$0" : 'X\(//\)$' \| \
71
 
         X"$0" : 'X\(/\)$' \| \
72
 
         .     : '\(.\)' 2>/dev/null ||
 
132
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
73
133
echo X/"$0" |
74
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
76
 
          /^X\/\(\/\).*/{ s//\1/; q; }
77
 
          s/.*/./; q'`
78
 
 
79
 
 
80
 
# PATH needs CR, and LINENO needs CR and PATH.
81
 
# Avoid depending upon Character Ranges.
82
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85
 
as_cr_digits='0123456789'
86
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
87
 
 
88
 
# The user is always right.
89
 
if test "${PATH_SEPARATOR+set}" != set; then
90
 
  echo "#! /bin/sh" >conf$$.sh
91
 
  echo  "exit 0"   >>conf$$.sh
92
 
  chmod +x conf$$.sh
93
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94
 
    PATH_SEPARATOR=';'
95
 
  else
96
 
    PATH_SEPARATOR=:
97
 
  fi
98
 
  rm -f conf$$.sh
99
 
fi
100
 
 
101
 
 
102
 
  as_lineno_1=$LINENO
103
 
  as_lineno_2=$LINENO
104
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
106
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107
 
  # Find who we are.  Look in the path if we contain no path at all
108
 
  # relative or not.
109
 
  case $0 in
110
 
    *[\\/]* ) as_myself=$0 ;;
111
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112
 
for as_dir in $PATH
113
 
do
114
 
  IFS=$as_save_IFS
115
 
  test -z "$as_dir" && as_dir=.
116
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117
 
done
118
 
 
119
 
       ;;
120
 
  esac
121
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
122
 
  # in which case we are not to be found in the path.
123
 
  if test "x$as_myself" = x; then
124
 
    as_myself=$0
125
 
  fi
126
 
  if test ! -f "$as_myself"; then
127
 
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128
 
   { (exit 1); exit 1; }; }
129
 
  fi
130
 
  case $CONFIG_SHELL in
131
 
  '')
 
134
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
135
            s//\1/
 
136
            q
 
137
          }
 
138
          /^X\/\(\/\/\)$/{
 
139
            s//\1/
 
140
            q
 
141
          }
 
142
          /^X\/\(\/\).*/{
 
143
            s//\1/
 
144
            q
 
145
          }
 
146
          s/.*/./; q'`
 
147
 
 
148
# CDPATH.
 
149
$as_unset CDPATH
 
150
 
 
151
 
 
152
if test "x$CONFIG_SHELL" = x; then
 
153
  if (eval ":") 2>/dev/null; then
 
154
  as_have_required=yes
 
155
else
 
156
  as_have_required=no
 
157
fi
 
158
 
 
159
  if test $as_have_required = yes &&     (eval ":
 
160
(as_func_return () {
 
161
  (exit \$1)
 
162
}
 
163
as_func_success () {
 
164
  as_func_return 0
 
165
}
 
166
as_func_failure () {
 
167
  as_func_return 1
 
168
}
 
169
as_func_ret_success () {
 
170
  return 0
 
171
}
 
172
as_func_ret_failure () {
 
173
  return 1
 
174
}
 
175
 
 
176
exitcode=0
 
177
if as_func_success; then
 
178
  :
 
179
else
 
180
  exitcode=1
 
181
  echo as_func_success failed.
 
182
fi
 
183
 
 
184
if as_func_failure; then
 
185
  exitcode=1
 
186
  echo as_func_failure succeeded.
 
187
fi
 
188
 
 
189
if as_func_ret_success; then
 
190
  :
 
191
else
 
192
  exitcode=1
 
193
  echo as_func_ret_success failed.
 
194
fi
 
195
 
 
196
if as_func_ret_failure; then
 
197
  exitcode=1
 
198
  echo as_func_ret_failure succeeded.
 
199
fi
 
200
 
 
201
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
202
  :
 
203
else
 
204
  exitcode=1
 
205
  echo positional parameters were not saved.
 
206
fi
 
207
 
 
208
test \$exitcode = 0) || { (exit 1); exit 1; }
 
209
 
 
210
(
 
211
  as_lineno_1=\$LINENO
 
212
  as_lineno_2=\$LINENO
 
213
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
214
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
215
") 2> /dev/null; then
 
216
  :
 
217
else
 
218
  as_candidate_shells=
132
219
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
220
for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
221
do
135
222
  IFS=$as_save_IFS
136
223
  test -z "$as_dir" && as_dir=.
137
 
  for as_base in sh bash ksh sh5; do
138
 
         case $as_dir in
 
224
  case $as_dir in
139
225
         /*)
140
 
           if ("$as_dir/$as_base" -c '
141
 
  as_lineno_1=$LINENO
142
 
  as_lineno_2=$LINENO
143
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
145
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148
 
             CONFIG_SHELL=$as_dir/$as_base
149
 
             export CONFIG_SHELL
150
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151
 
           fi;;
152
 
         esac
153
 
       done
 
226
           for as_base in sh bash ksh sh5; do
 
227
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
228
           done;;
 
229
       esac
154
230
done
155
 
;;
156
 
  esac
 
231
IFS=$as_save_IFS
 
232
 
 
233
 
 
234
      for as_shell in $as_candidate_shells $SHELL; do
 
235
         # Try only shells that exist, to save several forks.
 
236
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
237
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
238
# Be Bourne compatible
 
239
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
240
  emulate sh
 
241
  NULLCMD=:
 
242
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
243
  # is contrary to our usage.  Disable this feature.
 
244
  alias -g '${1+"$@"}'='"$@"'
 
245
  setopt NO_GLOB_SUBST
 
246
else
 
247
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
 
248
fi
 
249
BIN_SH=xpg4; export BIN_SH # for Tru64
 
250
DUALCASE=1; export DUALCASE # for MKS sh
 
251
 
 
252
:
 
253
_ASEOF
 
254
}; then
 
255
  CONFIG_SHELL=$as_shell
 
256
               as_have_required=yes
 
257
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
258
# Be Bourne compatible
 
259
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
260
  emulate sh
 
261
  NULLCMD=:
 
262
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
263
  # is contrary to our usage.  Disable this feature.
 
264
  alias -g '${1+"$@"}'='"$@"'
 
265
  setopt NO_GLOB_SUBST
 
266
else
 
267
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
 
268
fi
 
269
BIN_SH=xpg4; export BIN_SH # for Tru64
 
270
DUALCASE=1; export DUALCASE # for MKS sh
 
271
 
 
272
:
 
273
(as_func_return () {
 
274
  (exit $1)
 
275
}
 
276
as_func_success () {
 
277
  as_func_return 0
 
278
}
 
279
as_func_failure () {
 
280
  as_func_return 1
 
281
}
 
282
as_func_ret_success () {
 
283
  return 0
 
284
}
 
285
as_func_ret_failure () {
 
286
  return 1
 
287
}
 
288
 
 
289
exitcode=0
 
290
if as_func_success; then
 
291
  :
 
292
else
 
293
  exitcode=1
 
294
  echo as_func_success failed.
 
295
fi
 
296
 
 
297
if as_func_failure; then
 
298
  exitcode=1
 
299
  echo as_func_failure succeeded.
 
300
fi
 
301
 
 
302
if as_func_ret_success; then
 
303
  :
 
304
else
 
305
  exitcode=1
 
306
  echo as_func_ret_success failed.
 
307
fi
 
308
 
 
309
if as_func_ret_failure; then
 
310
  exitcode=1
 
311
  echo as_func_ret_failure succeeded.
 
312
fi
 
313
 
 
314
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
315
  :
 
316
else
 
317
  exitcode=1
 
318
  echo positional parameters were not saved.
 
319
fi
 
320
 
 
321
test $exitcode = 0) || { (exit 1); exit 1; }
 
322
 
 
323
(
 
324
  as_lineno_1=$LINENO
 
325
  as_lineno_2=$LINENO
 
326
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
327
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
328
 
 
329
_ASEOF
 
330
}; then
 
331
  break
 
332
fi
 
333
 
 
334
fi
 
335
 
 
336
      done
 
337
 
 
338
      if test "x$CONFIG_SHELL" != x; then
 
339
  for as_var in BASH_ENV ENV
 
340
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
341
        done
 
342
        export CONFIG_SHELL
 
343
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
344
fi
 
345
 
 
346
 
 
347
    if test $as_have_required = no; then
 
348
  echo This script requires a shell more modern than all the
 
349
      echo shells that I found on your system.  Please install a
 
350
      echo modern shell, or manually run the script under such a
 
351
      echo shell if you do have one.
 
352
      { (exit 1); exit 1; }
 
353
fi
 
354
 
 
355
 
 
356
fi
 
357
 
 
358
fi
 
359
 
 
360
 
 
361
 
 
362
(eval "as_func_return () {
 
363
  (exit \$1)
 
364
}
 
365
as_func_success () {
 
366
  as_func_return 0
 
367
}
 
368
as_func_failure () {
 
369
  as_func_return 1
 
370
}
 
371
as_func_ret_success () {
 
372
  return 0
 
373
}
 
374
as_func_ret_failure () {
 
375
  return 1
 
376
}
 
377
 
 
378
exitcode=0
 
379
if as_func_success; then
 
380
  :
 
381
else
 
382
  exitcode=1
 
383
  echo as_func_success failed.
 
384
fi
 
385
 
 
386
if as_func_failure; then
 
387
  exitcode=1
 
388
  echo as_func_failure succeeded.
 
389
fi
 
390
 
 
391
if as_func_ret_success; then
 
392
  :
 
393
else
 
394
  exitcode=1
 
395
  echo as_func_ret_success failed.
 
396
fi
 
397
 
 
398
if as_func_ret_failure; then
 
399
  exitcode=1
 
400
  echo as_func_ret_failure succeeded.
 
401
fi
 
402
 
 
403
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
404
  :
 
405
else
 
406
  exitcode=1
 
407
  echo positional parameters were not saved.
 
408
fi
 
409
 
 
410
test \$exitcode = 0") || {
 
411
  echo No shell found that supports shell functions.
 
412
  echo Please tell autoconf@gnu.org about your system,
 
413
  echo including any error possibly output before this
 
414
  echo message
 
415
}
 
416
 
 
417
 
 
418
 
 
419
  as_lineno_1=$LINENO
 
420
  as_lineno_2=$LINENO
 
421
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
422
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
157
423
 
158
424
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159
425
  # uniformly replaced by the line number.  The first 'sed' inserts a
160
 
  # line-number line before each line; the second 'sed' does the real
161
 
  # work.  The second script uses 'N' to pair each line-number line
162
 
  # with the numbered line, and appends trailing '-' during
163
 
  # substitution so that $LINENO is not a special case at line end.
 
426
  # line-number line after each line using $LINENO; the second 'sed'
 
427
  # does the real work.  The second script uses 'N' to pair each
 
428
  # line-number line with the line containing $LINENO, and appends
 
429
  # trailing '-' during substitution so that $LINENO is not a special
 
430
  # case at line end.
164
431
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166
 
  sed '=' <$as_myself |
 
432
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
433
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
434
  sed -n '
 
435
    p
 
436
    /[$]LINENO/=
 
437
  ' <$as_myself |
167
438
    sed '
 
439
      s/[$]LINENO.*/&-/
 
440
      t lineno
 
441
      b
 
442
      :lineno
168
443
      N
169
 
      s,$,-,
170
 
      : loop
171
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
444
      :loop
 
445
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
172
446
      t loop
173
 
      s,-$,,
174
 
      s,^['$as_cr_digits']*\n,,
 
447
      s/-\n.*//
175
448
    ' >$as_me.lineno &&
176
 
  chmod +x $as_me.lineno ||
 
449
  chmod +x "$as_me.lineno" ||
177
450
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178
451
   { (exit 1); exit 1; }; }
179
452
 
180
453
  # Don't try to exec as it changes $[0], causing all sort of problems
181
454
  # (the dirname of $[0] is not the place where we might find the
182
 
  # original and so on.  Autoconf is especially sensible to this).
183
 
  . ./$as_me.lineno
 
455
  # original and so on.  Autoconf is especially sensitive to this).
 
456
  . "./$as_me.lineno"
184
457
  # Exit status is that of the last command.
185
458
  exit
186
459
}
187
460
 
188
461
 
189
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190
 
  *c*,-n*) ECHO_N= ECHO_C='
191
 
' ECHO_T='      ' ;;
192
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
462
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
463
  as_dirname=dirname
 
464
else
 
465
  as_dirname=false
 
466
fi
 
467
 
 
468
ECHO_C= ECHO_N= ECHO_T=
 
469
case `echo -n x` in
 
470
-n*)
 
471
  case `echo 'x\c'` in
 
472
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
473
  *)   ECHO_C='\c';;
 
474
  esac;;
 
475
*)
 
476
  ECHO_N='-n';;
194
477
esac
195
478
 
196
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
479
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
480
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
197
481
  as_expr=expr
198
482
else
199
483
  as_expr=false
200
484
fi
201
485
 
202
486
rm -f conf$$ conf$$.exe conf$$.file
 
487
if test -d conf$$.dir; then
 
488
  rm -f conf$$.dir/conf$$.file
 
489
else
 
490
  rm -f conf$$.dir
 
491
  mkdir conf$$.dir
 
492
fi
203
493
echo >conf$$.file
204
494
if ln -s conf$$.file conf$$ 2>/dev/null; then
205
 
  # We could just check for DJGPP; but this test a) works b) is more generic
206
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207
 
  if test -f conf$$.exe; then
208
 
    # Don't use ln at all; we don't have any links
 
495
  as_ln_s='ln -s'
 
496
  # ... but there are two gotchas:
 
497
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
498
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
499
  # In both cases, we have to default to `cp -p'.
 
500
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
209
501
    as_ln_s='cp -p'
210
 
  else
211
 
    as_ln_s='ln -s'
212
 
  fi
213
502
elif ln conf$$.file conf$$ 2>/dev/null; then
214
503
  as_ln_s=ln
215
504
else
216
505
  as_ln_s='cp -p'
217
506
fi
218
 
rm -f conf$$ conf$$.exe conf$$.file
 
507
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
508
rmdir conf$$.dir 2>/dev/null
219
509
 
220
510
if mkdir -p . 2>/dev/null; then
221
511
  as_mkdir_p=:
224
514
  as_mkdir_p=false
225
515
fi
226
516
 
227
 
as_executable_p="test -f"
 
517
# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
 
518
# systems may use methods other than mode bits to determine executability.
 
519
cat >conf$$.file <<_ASEOF
 
520
#! /bin/sh
 
521
exit 0
 
522
_ASEOF
 
523
chmod +x conf$$.file
 
524
if test -x conf$$.file >/dev/null 2>&1; then
 
525
  as_executable_p="test -x"
 
526
else
 
527
  as_executable_p=:
 
528
fi
 
529
rm -f conf$$.file
228
530
 
229
531
# Sed expression to map a string onto a valid CPP name.
230
532
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
535
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
536
 
235
537
 
236
 
# IFS
237
 
# We need space, tab and new line, in precisely that order.
238
 
as_nl='
239
 
'
240
 
IFS="   $as_nl"
241
 
 
242
 
# CDPATH.
243
 
$as_unset CDPATH
244
 
 
245
538
 
246
539
 
247
540
# Check that we are running under the correct shell.
280
573
 
281
574
# The HP-UX ksh and POSIX shell print the target directory to stdout
282
575
# if CDPATH is set.
283
 
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
576
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
577
 
285
578
if test -z "$ECHO"; then
286
579
if test "X${echo_test_string+set}" != Xset; then
287
580
# find a string as large as possible, as long as the shell can cope with it
288
581
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289
582
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291
 
       echo_test_string="`eval $cmd`" &&
 
583
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
584
       echo_test_string=`eval $cmd` &&
292
585
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293
586
    then
294
587
      break
397
690
 
398
691
tagnames=${tagnames+${tagnames},}F77
399
692
 
 
693
exec 7<&0 </dev/null 6>&1
 
694
 
400
695
# Name of the host.
401
696
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402
697
# so uname gets run too.
403
698
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
699
 
405
 
exec 6>&1
406
 
 
407
700
#
408
701
# Initializations.
409
702
#
410
703
ac_default_prefix=/usr/local
 
704
ac_clean_files=
411
705
ac_config_libobj_dir=.
 
706
LIBOBJS=
412
707
cross_compiling=no
413
708
subdirs=
414
709
MFLAGS=
415
710
MAKEFLAGS=
416
711
SHELL=${CONFIG_SHELL-/bin/sh}
417
712
 
418
 
# Maximum number of lines to put in a shell here document.
419
 
# This variable seems obsolete.  It should probably be removed, and
420
 
# only ac_max_sed_lines should be used.
421
 
: ${ac_max_here_lines=38}
422
 
 
423
713
# Identity of this package.
424
714
PACKAGE_NAME='libXft'
425
715
PACKAGE_TARNAME='libXft'
426
 
PACKAGE_VERSION='2.1.8.2'
427
 
PACKAGE_STRING='libXft 2.1.8.2'
 
716
PACKAGE_VERSION='2.1.10'
 
717
PACKAGE_STRING='libXft 2.1.10'
428
718
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
429
719
 
430
720
# Factoring default headers for most tests.
455
745
#endif
456
746
#if HAVE_INTTYPES_H
457
747
# include <inttypes.h>
458
 
#else
459
 
# if HAVE_STDINT_H
460
 
#  include <stdint.h>
461
 
# endif
 
748
#endif
 
749
#if HAVE_STDINT_H
 
750
# include <stdint.h>
462
751
#endif
463
752
#if HAVE_UNISTD_H
464
753
# include <unistd.h>
465
754
#endif"
466
755
 
467
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG ac_pt_PKG_CONFIG XRENDER_CFLAGS XRENDER_LIBS FREETYPE_CFLAGS FREETYPE_LIBS ft_config FONTCONFIG_CFLAGS FONTCONFIG_LIBS WARN_CFLAGS LIBOBJS LTLIBOBJS'
 
756
ac_subst_vars='SHELL
 
757
PATH_SEPARATOR
 
758
PACKAGE_NAME
 
759
PACKAGE_TARNAME
 
760
PACKAGE_VERSION
 
761
PACKAGE_STRING
 
762
PACKAGE_BUGREPORT
 
763
exec_prefix
 
764
prefix
 
765
program_transform_name
 
766
bindir
 
767
sbindir
 
768
libexecdir
 
769
datarootdir
 
770
datadir
 
771
sysconfdir
 
772
sharedstatedir
 
773
localstatedir
 
774
includedir
 
775
oldincludedir
 
776
docdir
 
777
infodir
 
778
htmldir
 
779
dvidir
 
780
pdfdir
 
781
psdir
 
782
libdir
 
783
localedir
 
784
mandir
 
785
DEFS
 
786
ECHO_C
 
787
ECHO_N
 
788
ECHO_T
 
789
LIBS
 
790
build_alias
 
791
host_alias
 
792
target_alias
 
793
INSTALL_PROGRAM
 
794
INSTALL_SCRIPT
 
795
INSTALL_DATA
 
796
CYGPATH_W
 
797
PACKAGE
 
798
VERSION
 
799
ACLOCAL
 
800
AUTOCONF
 
801
AUTOMAKE
 
802
AUTOHEADER
 
803
MAKEINFO
 
804
install_sh
 
805
STRIP
 
806
INSTALL_STRIP_PROGRAM
 
807
mkdir_p
 
808
AWK
 
809
SET_MAKE
 
810
am__leading_dot
 
811
AMTAR
 
812
am__tar
 
813
am__untar
 
814
MAINTAINER_MODE_TRUE
 
815
MAINTAINER_MODE_FALSE
 
816
MAINT
 
817
CC
 
818
CFLAGS
 
819
LDFLAGS
 
820
CPPFLAGS
 
821
ac_ct_CC
 
822
EXEEXT
 
823
OBJEXT
 
824
DEPDIR
 
825
am__include
 
826
am__quote
 
827
AMDEP_TRUE
 
828
AMDEP_FALSE
 
829
AMDEPBACKSLASH
 
830
CCDEPMODE
 
831
am__fastdepCC_TRUE
 
832
am__fastdepCC_FALSE
 
833
build
 
834
build_cpu
 
835
build_vendor
 
836
build_os
 
837
host
 
838
host_cpu
 
839
host_vendor
 
840
host_os
 
841
GREP
 
842
EGREP
 
843
LN_S
 
844
ECHO
 
845
AR
 
846
RANLIB
 
847
CPP
 
848
CXX
 
849
CXXFLAGS
 
850
ac_ct_CXX
 
851
CXXDEPMODE
 
852
am__fastdepCXX_TRUE
 
853
am__fastdepCXX_FALSE
 
854
CXXCPP
 
855
F77
 
856
FFLAGS
 
857
ac_ct_F77
 
858
LIBTOOL
 
859
PKG_CONFIG
 
860
XRENDER_CFLAGS
 
861
XRENDER_LIBS
 
862
XMKMF
 
863
FREETYPE_CFLAGS
 
864
FREETYPE_LIBS
 
865
ft_config
 
866
FONTCONFIG_CFLAGS
 
867
FONTCONFIG_LIBS
 
868
WARN_CFLAGS
 
869
LIBOBJS
 
870
LTLIBOBJS'
468
871
ac_subst_files=''
 
872
      ac_precious_vars='build_alias
 
873
host_alias
 
874
target_alias
 
875
CC
 
876
CFLAGS
 
877
LDFLAGS
 
878
CPPFLAGS
 
879
CPP
 
880
CXX
 
881
CXXFLAGS
 
882
CCC
 
883
CXXCPP
 
884
F77
 
885
FFLAGS
 
886
PKG_CONFIG
 
887
XRENDER_CFLAGS
 
888
XRENDER_LIBS
 
889
XMKMF
 
890
FREETYPE_CFLAGS
 
891
FREETYPE_LIBS
 
892
FONTCONFIG_CFLAGS
 
893
FONTCONFIG_LIBS'
 
894
 
469
895
 
470
896
# Initialize some variables set by options.
471
897
ac_init_help=
492
918
# and all the variables that are supposed to be based on exec_prefix
493
919
# by default will actually change.
494
920
# Use braces instead of parens because sh, perl, etc. also accept them.
 
921
# (The list follows the same order as the GNU Coding Standards.)
495
922
bindir='${exec_prefix}/bin'
496
923
sbindir='${exec_prefix}/sbin'
497
924
libexecdir='${exec_prefix}/libexec'
498
 
datadir='${prefix}/share'
 
925
datarootdir='${prefix}/share'
 
926
datadir='${datarootdir}'
499
927
sysconfdir='${prefix}/etc'
500
928
sharedstatedir='${prefix}/com'
501
929
localstatedir='${prefix}/var'
502
 
libdir='${exec_prefix}/lib'
503
930
includedir='${prefix}/include'
504
931
oldincludedir='/usr/include'
505
 
infodir='${prefix}/info'
506
 
mandir='${prefix}/man'
 
932
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
933
infodir='${datarootdir}/info'
 
934
htmldir='${docdir}'
 
935
dvidir='${docdir}'
 
936
pdfdir='${docdir}'
 
937
psdir='${docdir}'
 
938
libdir='${exec_prefix}/lib'
 
939
localedir='${datarootdir}/locale'
 
940
mandir='${datarootdir}/man'
507
941
 
508
942
ac_prev=
 
943
ac_dashdash=
509
944
for ac_option
510
945
do
511
946
  # If the previous option needs an argument, assign it.
512
947
  if test -n "$ac_prev"; then
513
 
    eval "$ac_prev=\$ac_option"
 
948
    eval $ac_prev=\$ac_option
514
949
    ac_prev=
515
950
    continue
516
951
  fi
517
952
 
518
 
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
953
  case $ac_option in
 
954
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
955
  *)    ac_optarg=yes ;;
 
956
  esac
519
957
 
520
958
  # Accept the important Cygnus configure options, so we can diagnose typos.
521
959
 
522
 
  case $ac_option in
 
960
  case $ac_dashdash$ac_option in
 
961
  --)
 
962
    ac_dashdash=yes ;;
523
963
 
524
964
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
525
965
    ac_prev=bindir ;;
541
981
  --config-cache | -C)
542
982
    cache_file=config.cache ;;
543
983
 
544
 
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
984
  -datadir | --datadir | --datadi | --datad)
545
985
    ac_prev=datadir ;;
546
 
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547
 
  | --da=*)
 
986
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
548
987
    datadir=$ac_optarg ;;
549
988
 
 
989
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
990
  | --dataroo | --dataro | --datar)
 
991
    ac_prev=datarootdir ;;
 
992
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
993
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
994
    datarootdir=$ac_optarg ;;
 
995
 
550
996
  -disable-* | --disable-*)
551
997
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552
998
    # Reject names that are not valid shell variable names.
554
1000
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555
1001
   { (exit 1); exit 1; }; }
556
1002
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557
 
    eval "enable_$ac_feature=no" ;;
 
1003
    eval enable_$ac_feature=no ;;
 
1004
 
 
1005
  -docdir | --docdir | --docdi | --doc | --do)
 
1006
    ac_prev=docdir ;;
 
1007
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1008
    docdir=$ac_optarg ;;
 
1009
 
 
1010
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1011
    ac_prev=dvidir ;;
 
1012
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1013
    dvidir=$ac_optarg ;;
558
1014
 
559
1015
  -enable-* | --enable-*)
560
1016
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563
1019
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564
1020
   { (exit 1); exit 1; }; }
565
1021
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566
 
    case $ac_option in
567
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568
 
      *) ac_optarg=yes ;;
569
 
    esac
570
 
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
1022
    eval enable_$ac_feature=\$ac_optarg ;;
571
1023
 
572
1024
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573
1025
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
594
1046
  -host=* | --host=* | --hos=* | --ho=*)
595
1047
    host_alias=$ac_optarg ;;
596
1048
 
 
1049
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1050
    ac_prev=htmldir ;;
 
1051
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1052
  | --ht=*)
 
1053
    htmldir=$ac_optarg ;;
 
1054
 
597
1055
  -includedir | --includedir | --includedi | --included | --include \
598
1056
  | --includ | --inclu | --incl | --inc)
599
1057
    ac_prev=includedir ;;
618
1076
  | --libexe=* | --libex=* | --libe=*)
619
1077
    libexecdir=$ac_optarg ;;
620
1078
 
 
1079
  -localedir | --localedir | --localedi | --localed | --locale)
 
1080
    ac_prev=localedir ;;
 
1081
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1082
    localedir=$ac_optarg ;;
 
1083
 
621
1084
  -localstatedir | --localstatedir | --localstatedi | --localstated \
622
 
  | --localstate | --localstat | --localsta | --localst \
623
 
  | --locals | --local | --loca | --loc | --lo)
 
1085
  | --localstate | --localstat | --localsta | --localst | --locals)
624
1086
    ac_prev=localstatedir ;;
625
1087
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627
 
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
1088
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
628
1089
    localstatedir=$ac_optarg ;;
629
1090
 
630
1091
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
689
1150
  | --progr-tra=* | --program-tr=* | --program-t=*)
690
1151
    program_transform_name=$ac_optarg ;;
691
1152
 
 
1153
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1154
    ac_prev=pdfdir ;;
 
1155
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1156
    pdfdir=$ac_optarg ;;
 
1157
 
 
1158
  -psdir | --psdir | --psdi | --psd | --ps)
 
1159
    ac_prev=psdir ;;
 
1160
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1161
    psdir=$ac_optarg ;;
 
1162
 
692
1163
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693
1164
  | -silent | --silent | --silen | --sile | --sil)
694
1165
    silent=yes ;;
745
1216
      { echo "$as_me: error: invalid package name: $ac_package" >&2
746
1217
   { (exit 1); exit 1; }; }
747
1218
    ac_package=`echo $ac_package| sed 's/-/_/g'`
748
 
    case $ac_option in
749
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750
 
      *) ac_optarg=yes ;;
751
 
    esac
752
 
    eval "with_$ac_package='$ac_optarg'" ;;
 
1219
    eval with_$ac_package=\$ac_optarg ;;
753
1220
 
754
1221
  -without-* | --without-*)
755
1222
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758
1225
      { echo "$as_me: error: invalid package name: $ac_package" >&2
759
1226
   { (exit 1); exit 1; }; }
760
1227
    ac_package=`echo $ac_package | sed 's/-/_/g'`
761
 
    eval "with_$ac_package=no" ;;
 
1228
    eval with_$ac_package=no ;;
762
1229
 
763
1230
  --x)
764
1231
    # Obsolete; use --with-x.
789
1256
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790
1257
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791
1258
   { (exit 1); exit 1; }; }
792
 
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793
 
    eval "$ac_envvar='$ac_optarg'"
 
1259
    eval $ac_envvar=\$ac_optarg
794
1260
    export $ac_envvar ;;
795
1261
 
796
1262
  *)
810
1276
   { (exit 1); exit 1; }; }
811
1277
fi
812
1278
 
813
 
# Be sure to have absolute paths.
814
 
for ac_var in exec_prefix prefix
815
 
do
816
 
  eval ac_val=$`echo $ac_var`
817
 
  case $ac_val in
818
 
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820
 
   { (exit 1); exit 1; }; };;
821
 
  esac
822
 
done
823
 
 
824
 
# Be sure to have absolute paths.
825
 
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826
 
              localstatedir libdir includedir oldincludedir infodir mandir
827
 
do
828
 
  eval ac_val=$`echo $ac_var`
829
 
  case $ac_val in
830
 
    [\\/$]* | ?:[\\/]* ) ;;
831
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832
 
   { (exit 1); exit 1; }; };;
833
 
  esac
 
1279
# Be sure to have absolute directory names.
 
1280
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1281
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1282
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1283
                libdir localedir mandir
 
1284
do
 
1285
  eval ac_val=\$$ac_var
 
1286
  case $ac_val in
 
1287
    [\\/$]* | ?:[\\/]* )  continue;;
 
1288
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1289
  esac
 
1290
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1291
   { (exit 1); exit 1; }; }
834
1292
done
835
1293
 
836
1294
# There might be people who depend on the old broken behavior: `$host'
857
1315
test "$silent" = yes && exec 6>/dev/null
858
1316
 
859
1317
 
 
1318
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1319
ac_ls_di=`ls -di .` &&
 
1320
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1321
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1322
   { (exit 1); exit 1; }; }
 
1323
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1324
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1325
   { (exit 1); exit 1; }; }
 
1326
 
 
1327
 
860
1328
# Find the source files, if location was not specified.
861
1329
if test -z "$srcdir"; then
862
1330
  ac_srcdir_defaulted=yes
863
 
  # Try the directory containing this script, then its parent.
864
 
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
1331
  # Try the directory containing this script, then the parent directory.
 
1332
  ac_confdir=`$as_dirname -- "$0" ||
865
1333
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866
1334
         X"$0" : 'X\(//\)[^/]' \| \
867
1335
         X"$0" : 'X\(//\)$' \| \
868
 
         X"$0" : 'X\(/\)' \| \
869
 
         .     : '\(.\)' 2>/dev/null ||
 
1336
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
870
1337
echo X"$0" |
871
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873
 
          /^X\(\/\/\)$/{ s//\1/; q; }
874
 
          /^X\(\/\).*/{ s//\1/; q; }
875
 
          s/.*/./; q'`
 
1338
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1339
            s//\1/
 
1340
            q
 
1341
          }
 
1342
          /^X\(\/\/\)[^/].*/{
 
1343
            s//\1/
 
1344
            q
 
1345
          }
 
1346
          /^X\(\/\/\)$/{
 
1347
            s//\1/
 
1348
            q
 
1349
          }
 
1350
          /^X\(\/\).*/{
 
1351
            s//\1/
 
1352
            q
 
1353
          }
 
1354
          s/.*/./; q'`
876
1355
  srcdir=$ac_confdir
877
 
  if test ! -r $srcdir/$ac_unique_file; then
 
1356
  if test ! -r "$srcdir/$ac_unique_file"; then
878
1357
    srcdir=..
879
1358
  fi
880
1359
else
881
1360
  ac_srcdir_defaulted=no
882
1361
fi
883
 
if test ! -r $srcdir/$ac_unique_file; then
884
 
  if test "$ac_srcdir_defaulted" = yes; then
885
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886
 
   { (exit 1); exit 1; }; }
887
 
  else
888
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889
 
   { (exit 1); exit 1; }; }
890
 
  fi
891
 
fi
892
 
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893
 
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894
 
   { (exit 1); exit 1; }; }
895
 
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896
 
ac_env_build_alias_set=${build_alias+set}
897
 
ac_env_build_alias_value=$build_alias
898
 
ac_cv_env_build_alias_set=${build_alias+set}
899
 
ac_cv_env_build_alias_value=$build_alias
900
 
ac_env_host_alias_set=${host_alias+set}
901
 
ac_env_host_alias_value=$host_alias
902
 
ac_cv_env_host_alias_set=${host_alias+set}
903
 
ac_cv_env_host_alias_value=$host_alias
904
 
ac_env_target_alias_set=${target_alias+set}
905
 
ac_env_target_alias_value=$target_alias
906
 
ac_cv_env_target_alias_set=${target_alias+set}
907
 
ac_cv_env_target_alias_value=$target_alias
908
 
ac_env_CC_set=${CC+set}
909
 
ac_env_CC_value=$CC
910
 
ac_cv_env_CC_set=${CC+set}
911
 
ac_cv_env_CC_value=$CC
912
 
ac_env_CFLAGS_set=${CFLAGS+set}
913
 
ac_env_CFLAGS_value=$CFLAGS
914
 
ac_cv_env_CFLAGS_set=${CFLAGS+set}
915
 
ac_cv_env_CFLAGS_value=$CFLAGS
916
 
ac_env_LDFLAGS_set=${LDFLAGS+set}
917
 
ac_env_LDFLAGS_value=$LDFLAGS
918
 
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919
 
ac_cv_env_LDFLAGS_value=$LDFLAGS
920
 
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921
 
ac_env_CPPFLAGS_value=$CPPFLAGS
922
 
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923
 
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924
 
ac_env_CPP_set=${CPP+set}
925
 
ac_env_CPP_value=$CPP
926
 
ac_cv_env_CPP_set=${CPP+set}
927
 
ac_cv_env_CPP_value=$CPP
928
 
ac_env_CXX_set=${CXX+set}
929
 
ac_env_CXX_value=$CXX
930
 
ac_cv_env_CXX_set=${CXX+set}
931
 
ac_cv_env_CXX_value=$CXX
932
 
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933
 
ac_env_CXXFLAGS_value=$CXXFLAGS
934
 
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935
 
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936
 
ac_env_CXXCPP_set=${CXXCPP+set}
937
 
ac_env_CXXCPP_value=$CXXCPP
938
 
ac_cv_env_CXXCPP_set=${CXXCPP+set}
939
 
ac_cv_env_CXXCPP_value=$CXXCPP
940
 
ac_env_F77_set=${F77+set}
941
 
ac_env_F77_value=$F77
942
 
ac_cv_env_F77_set=${F77+set}
943
 
ac_cv_env_F77_value=$F77
944
 
ac_env_FFLAGS_set=${FFLAGS+set}
945
 
ac_env_FFLAGS_value=$FFLAGS
946
 
ac_cv_env_FFLAGS_set=${FFLAGS+set}
947
 
ac_cv_env_FFLAGS_value=$FFLAGS
948
 
ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
949
 
ac_env_PKG_CONFIG_value=$PKG_CONFIG
950
 
ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
951
 
ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
952
 
ac_env_XRENDER_CFLAGS_set=${XRENDER_CFLAGS+set}
953
 
ac_env_XRENDER_CFLAGS_value=$XRENDER_CFLAGS
954
 
ac_cv_env_XRENDER_CFLAGS_set=${XRENDER_CFLAGS+set}
955
 
ac_cv_env_XRENDER_CFLAGS_value=$XRENDER_CFLAGS
956
 
ac_env_XRENDER_LIBS_set=${XRENDER_LIBS+set}
957
 
ac_env_XRENDER_LIBS_value=$XRENDER_LIBS
958
 
ac_cv_env_XRENDER_LIBS_set=${XRENDER_LIBS+set}
959
 
ac_cv_env_XRENDER_LIBS_value=$XRENDER_LIBS
960
 
ac_env_FREETYPE_CFLAGS_set=${FREETYPE_CFLAGS+set}
961
 
ac_env_FREETYPE_CFLAGS_value=$FREETYPE_CFLAGS
962
 
ac_cv_env_FREETYPE_CFLAGS_set=${FREETYPE_CFLAGS+set}
963
 
ac_cv_env_FREETYPE_CFLAGS_value=$FREETYPE_CFLAGS
964
 
ac_env_FREETYPE_LIBS_set=${FREETYPE_LIBS+set}
965
 
ac_env_FREETYPE_LIBS_value=$FREETYPE_LIBS
966
 
ac_cv_env_FREETYPE_LIBS_set=${FREETYPE_LIBS+set}
967
 
ac_cv_env_FREETYPE_LIBS_value=$FREETYPE_LIBS
968
 
ac_env_FONTCONFIG_CFLAGS_set=${FONTCONFIG_CFLAGS+set}
969
 
ac_env_FONTCONFIG_CFLAGS_value=$FONTCONFIG_CFLAGS
970
 
ac_cv_env_FONTCONFIG_CFLAGS_set=${FONTCONFIG_CFLAGS+set}
971
 
ac_cv_env_FONTCONFIG_CFLAGS_value=$FONTCONFIG_CFLAGS
972
 
ac_env_FONTCONFIG_LIBS_set=${FONTCONFIG_LIBS+set}
973
 
ac_env_FONTCONFIG_LIBS_value=$FONTCONFIG_LIBS
974
 
ac_cv_env_FONTCONFIG_LIBS_set=${FONTCONFIG_LIBS+set}
975
 
ac_cv_env_FONTCONFIG_LIBS_value=$FONTCONFIG_LIBS
 
1362
if test ! -r "$srcdir/$ac_unique_file"; then
 
1363
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1364
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1365
   { (exit 1); exit 1; }; }
 
1366
fi
 
1367
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1368
ac_abs_confdir=`(
 
1369
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1370
   { (exit 1); exit 1; }; }
 
1371
        pwd)`
 
1372
# When building in place, set srcdir=.
 
1373
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1374
  srcdir=.
 
1375
fi
 
1376
# Remove unnecessary trailing slashes from srcdir.
 
1377
# Double slashes in file names in object file debugging info
 
1378
# mess up M-x gdb in Emacs.
 
1379
case $srcdir in
 
1380
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1381
esac
 
1382
for ac_var in $ac_precious_vars; do
 
1383
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1384
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1385
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1386
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1387
done
976
1388
 
977
1389
#
978
1390
# Report the --help message.
981
1393
  # Omit some internal or obsolete options to make the list less imposing.
982
1394
  # This message is too long to be a string in the A/UX 3.1 sh.
983
1395
  cat <<_ACEOF
984
 
\`configure' configures libXft 2.1.8.2 to adapt to many kinds of systems.
 
1396
\`configure' configures libXft 2.1.10 to adapt to many kinds of systems.
985
1397
 
986
1398
Usage: $0 [OPTION]... [VAR=VALUE]...
987
1399
 
1001
1413
  -n, --no-create         do not create output files
1002
1414
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1003
1415
 
1004
 
_ACEOF
1005
 
 
1006
 
  cat <<_ACEOF
1007
1416
Installation directories:
1008
1417
  --prefix=PREFIX         install architecture-independent files in PREFIX
1009
1418
                          [$ac_default_prefix]
1021
1430
  --bindir=DIR           user executables [EPREFIX/bin]
1022
1431
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1023
1432
  --libexecdir=DIR       program executables [EPREFIX/libexec]
1024
 
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1025
1433
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1026
1434
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1027
1435
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1028
1436
  --libdir=DIR           object code libraries [EPREFIX/lib]
1029
1437
  --includedir=DIR       C header files [PREFIX/include]
1030
1438
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1031
 
  --infodir=DIR          info documentation [PREFIX/info]
1032
 
  --mandir=DIR           man documentation [PREFIX/man]
 
1439
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1440
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1441
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1442
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1443
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1444
  --docdir=DIR           documentation root [DATAROOTDIR/doc/libXft]
 
1445
  --htmldir=DIR          html documentation [DOCDIR]
 
1446
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1447
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1448
  --psdir=DIR            ps documentation [DOCDIR]
1033
1449
_ACEOF
1034
1450
 
1035
1451
  cat <<\_ACEOF
1051
1467
 
1052
1468
if test -n "$ac_init_help"; then
1053
1469
  case $ac_init_help in
1054
 
     short | recursive ) echo "Configuration of libXft 2.1.8.2:";;
 
1470
     short | recursive ) echo "Configuration of libXft 2.1.10:";;
1055
1471
   esac
1056
1472
  cat <<\_ACEOF
1057
1473
 
1058
1474
Optional Features:
1059
1475
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1060
1476
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1061
 
  --enable-maintainer-mode enable make rules and dependencies not useful
1062
 
                          (and sometimes confusing) to the casual installer
1063
 
  --disable-dependency-tracking Speeds up one-time builds
1064
 
  --enable-dependency-tracking  Do not reject slow dependency extractors
1065
 
  --enable-shared[=PKGS]
1066
 
                          build shared libraries [default=yes]
1067
 
  --enable-static[=PKGS]
1068
 
                          build static libraries [default=yes]
 
1477
  --enable-maintainer-mode  enable make rules and dependencies not useful
 
1478
                          (and sometimes confusing) to the casual installer
 
1479
  --disable-dependency-tracking  speeds up one-time build
 
1480
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1481
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1482
  --enable-static[=PKGS]  build static libraries [default=yes]
1069
1483
  --enable-fast-install[=PKGS]
1070
1484
                          optimize for fast installation [default=yes]
1071
1485
  --disable-libtool-lock  avoid locking (might break parallel builds)
1076
1490
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1077
1491
  --with-pic              try to use only PIC/non-PIC objects [default=use
1078
1492
                          both]
1079
 
  --with-tags[=TAGS]
1080
 
                          include additional configurations [automatic]
 
1493
  --with-tags[=TAGS]      include additional configurations [automatic]
1081
1494
  --with-x                use the X Window System
1082
1495
  --with-freetype-config=PROG   Use FreeType configuration program PROG
1083
1496
  --with-release-version=STRING
1088
1501
  CFLAGS      C compiler flags
1089
1502
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1090
1503
              nonstandard directory <lib dir>
1091
 
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1092
 
              headers in a nonstandard directory <include dir>
 
1504
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1505
              you have headers in a nonstandard directory <include dir>
1093
1506
  CPP         C preprocessor
1094
1507
  CXX         C++ compiler command
1095
1508
  CXXFLAGS    C++ compiler flags
1101
1514
              C compiler flags for XRENDER, overriding pkg-config
1102
1515
  XRENDER_LIBS
1103
1516
              linker flags for XRENDER, overriding pkg-config
 
1517
  XMKMF       Path to xmkmf, Makefile generator for X Window System
1104
1518
  FREETYPE_CFLAGS
1105
1519
              C compiler flags for FREETYPE, overriding pkg-config
1106
1520
  FREETYPE_LIBS
1115
1529
 
1116
1530
Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1117
1531
_ACEOF
 
1532
ac_status=$?
1118
1533
fi
1119
1534
 
1120
1535
if test "$ac_init_help" = "recursive"; then
1121
1536
  # If there are subdirs, report their specific --help.
1122
 
  ac_popdir=`pwd`
1123
1537
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1124
 
    test -d $ac_dir || continue
 
1538
    test -d "$ac_dir" || continue
1125
1539
    ac_builddir=.
1126
1540
 
1127
 
if test "$ac_dir" != .; then
 
1541
case "$ac_dir" in
 
1542
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1543
*)
1128
1544
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1129
 
  # A "../" for each directory in $ac_dir_suffix.
1130
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1131
 
else
1132
 
  ac_dir_suffix= ac_top_builddir=
1133
 
fi
 
1545
  # A ".." for each directory in $ac_dir_suffix.
 
1546
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1547
  case $ac_top_builddir_sub in
 
1548
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1549
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1550
  esac ;;
 
1551
esac
 
1552
ac_abs_top_builddir=$ac_pwd
 
1553
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1554
# for backward compatibility:
 
1555
ac_top_builddir=$ac_top_build_prefix
1134
1556
 
1135
1557
case $srcdir in
1136
 
  .)  # No --srcdir option.  We are building in place.
 
1558
  .)  # We are building in place.
1137
1559
    ac_srcdir=.
1138
 
    if test -z "$ac_top_builddir"; then
1139
 
       ac_top_srcdir=.
1140
 
    else
1141
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1142
 
    fi ;;
1143
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1560
    ac_top_srcdir=$ac_top_builddir_sub
 
1561
    ac_abs_top_srcdir=$ac_pwd ;;
 
1562
  [\\/]* | ?:[\\/]* )  # Absolute name.
1144
1563
    ac_srcdir=$srcdir$ac_dir_suffix;
1145
 
    ac_top_srcdir=$srcdir ;;
1146
 
  *) # Relative path.
1147
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1148
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1149
 
esac
1150
 
 
1151
 
# Do not use `cd foo && pwd` to compute absolute paths, because
1152
 
# the directories may not exist.
1153
 
case `pwd` in
1154
 
.) ac_abs_builddir="$ac_dir";;
1155
 
*)
1156
 
  case "$ac_dir" in
1157
 
  .) ac_abs_builddir=`pwd`;;
1158
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1159
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1160
 
  esac;;
1161
 
esac
1162
 
case $ac_abs_builddir in
1163
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1164
 
*)
1165
 
  case ${ac_top_builddir}. in
1166
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
1167
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1168
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1169
 
  esac;;
1170
 
esac
1171
 
case $ac_abs_builddir in
1172
 
.) ac_abs_srcdir=$ac_srcdir;;
1173
 
*)
1174
 
  case $ac_srcdir in
1175
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
1176
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1177
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1178
 
  esac;;
1179
 
esac
1180
 
case $ac_abs_builddir in
1181
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1182
 
*)
1183
 
  case $ac_top_srcdir in
1184
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1185
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1186
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1187
 
  esac;;
1188
 
esac
1189
 
 
1190
 
    cd $ac_dir
1191
 
    # Check for guested configure; otherwise get Cygnus style configure.
1192
 
    if test -f $ac_srcdir/configure.gnu; then
1193
 
      echo
1194
 
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1195
 
    elif test -f $ac_srcdir/configure; then
1196
 
      echo
1197
 
      $SHELL $ac_srcdir/configure  --help=recursive
1198
 
    elif test -f $ac_srcdir/configure.ac ||
1199
 
           test -f $ac_srcdir/configure.in; then
1200
 
      echo
1201
 
      $ac_configure --help
 
1564
    ac_top_srcdir=$srcdir
 
1565
    ac_abs_top_srcdir=$srcdir ;;
 
1566
  *) # Relative name.
 
1567
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1568
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1569
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1570
esac
 
1571
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1572
 
 
1573
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1574
    # Check for guested configure.
 
1575
    if test -f "$ac_srcdir/configure.gnu"; then
 
1576
      echo &&
 
1577
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1578
    elif test -f "$ac_srcdir/configure"; then
 
1579
      echo &&
 
1580
      $SHELL "$ac_srcdir/configure" --help=recursive
1202
1581
    else
1203
1582
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1204
 
    fi
1205
 
    cd $ac_popdir
 
1583
    fi || ac_status=$?
 
1584
    cd "$ac_pwd" || { ac_status=$?; break; }
1206
1585
  done
1207
1586
fi
1208
1587
 
1209
 
test -n "$ac_init_help" && exit 0
 
1588
test -n "$ac_init_help" && exit $ac_status
1210
1589
if $ac_init_version; then
1211
1590
  cat <<\_ACEOF
1212
 
libXft configure 2.1.8.2
1213
 
generated by GNU Autoconf 2.59
 
1591
libXft configure 2.1.10
 
1592
generated by GNU Autoconf 2.60
1214
1593
 
1215
 
Copyright (C) 2003 Free Software Foundation, Inc.
 
1594
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1595
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1216
1596
This configure script is free software; the Free Software Foundation
1217
1597
gives unlimited permission to copy, distribute and modify it.
1218
1598
_ACEOF
1219
 
  exit 0
 
1599
  exit
1220
1600
fi
1221
 
exec 5>config.log
1222
 
cat >&5 <<_ACEOF
 
1601
cat >config.log <<_ACEOF
1223
1602
This file contains any messages produced by compilers while
1224
1603
running configure, to aid debugging if configure makes a mistake.
1225
1604
 
1226
 
It was created by libXft $as_me 2.1.8.2, which was
1227
 
generated by GNU Autoconf 2.59.  Invocation command line was
 
1605
It was created by libXft $as_me 2.1.10, which was
 
1606
generated by GNU Autoconf 2.60.  Invocation command line was
1228
1607
 
1229
1608
  $ $0 $@
1230
1609
 
1231
1610
_ACEOF
 
1611
exec 5>>config.log
1232
1612
{
1233
1613
cat <<_ASUNAME
1234
1614
## --------- ##
1247
1627
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1248
1628
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1249
1629
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1250
 
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1630
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1251
1631
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1252
1632
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1253
1633
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1261
1641
  test -z "$as_dir" && as_dir=.
1262
1642
  echo "PATH: $as_dir"
1263
1643
done
 
1644
IFS=$as_save_IFS
1264
1645
 
1265
1646
} >&5
1266
1647
 
1282
1663
ac_configure_args=
1283
1664
ac_configure_args0=
1284
1665
ac_configure_args1=
1285
 
ac_sep=
1286
1666
ac_must_keep_next=false
1287
1667
for ac_pass in 1 2
1288
1668
do
1293
1673
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1294
1674
    | -silent | --silent | --silen | --sile | --sil)
1295
1675
      continue ;;
1296
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1676
    *\'*)
1297
1677
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1298
1678
    esac
1299
1679
    case $ac_pass in
1315
1695
          -* ) ac_must_keep_next=true ;;
1316
1696
        esac
1317
1697
      fi
1318
 
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1319
 
      # Get rid of the leading space.
1320
 
      ac_sep=" "
 
1698
      ac_configure_args="$ac_configure_args '$ac_arg'"
1321
1699
      ;;
1322
1700
    esac
1323
1701
  done
1328
1706
# When interrupted or exit'd, cleanup temporary files, and complete
1329
1707
# config.log.  We remove comments because anyway the quotes in there
1330
1708
# would cause problems or look ugly.
1331
 
# WARNING: Be sure not to use single quotes in there, as some shells,
1332
 
# such as our DU 5.0 friend, will then `close' the trap.
 
1709
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1710
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1333
1711
trap 'exit_status=$?
1334
1712
  # Save into config.log some information that might help in debugging.
1335
1713
  {
1342
1720
_ASBOX
1343
1721
    echo
1344
1722
    # The following way of writing the cache mishandles newlines in values,
1345
 
{
 
1723
(
 
1724
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1725
    eval ac_val=\$$ac_var
 
1726
    case $ac_val in #(
 
1727
    *${as_nl}*)
 
1728
      case $ac_var in #(
 
1729
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1730
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1731
      esac
 
1732
      case $ac_var in #(
 
1733
      _ | IFS | as_nl) ;; #(
 
1734
      *) $as_unset $ac_var ;;
 
1735
      esac ;;
 
1736
    esac
 
1737
  done
1346
1738
  (set) 2>&1 |
1347
 
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1348
 
    *ac_space=\ *)
 
1739
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1740
    *${as_nl}ac_space=\ *)
1349
1741
      sed -n \
1350
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1351
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1352
 
      ;;
 
1742
        "s/'\''/'\''\\\\'\'''\''/g;
 
1743
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1744
      ;; #(
1353
1745
    *)
1354
 
      sed -n \
1355
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1746
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1356
1747
      ;;
1357
 
    esac;
1358
 
}
 
1748
    esac |
 
1749
    sort
 
1750
)
1359
1751
    echo
1360
1752
 
1361
1753
    cat <<\_ASBOX
1366
1758
    echo
1367
1759
    for ac_var in $ac_subst_vars
1368
1760
    do
1369
 
      eval ac_val=$`echo $ac_var`
1370
 
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1761
      eval ac_val=\$$ac_var
 
1762
      case $ac_val in
 
1763
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1764
      esac
 
1765
      echo "$ac_var='\''$ac_val'\''"
1371
1766
    done | sort
1372
1767
    echo
1373
1768
 
1374
1769
    if test -n "$ac_subst_files"; then
1375
1770
      cat <<\_ASBOX
1376
 
## ------------- ##
1377
 
## Output files. ##
1378
 
## ------------- ##
 
1771
## ------------------- ##
 
1772
## File substitutions. ##
 
1773
## ------------------- ##
1379
1774
_ASBOX
1380
1775
      echo
1381
1776
      for ac_var in $ac_subst_files
1382
1777
      do
1383
 
        eval ac_val=$`echo $ac_var`
1384
 
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1778
        eval ac_val=\$$ac_var
 
1779
        case $ac_val in
 
1780
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1781
        esac
 
1782
        echo "$ac_var='\''$ac_val'\''"
1385
1783
      done | sort
1386
1784
      echo
1387
1785
    fi
1393
1791
## ----------- ##
1394
1792
_ASBOX
1395
1793
      echo
1396
 
      sed "/^$/d" confdefs.h | sort
 
1794
      cat confdefs.h
1397
1795
      echo
1398
1796
    fi
1399
1797
    test "$ac_signal" != 0 &&
1400
1798
      echo "$as_me: caught signal $ac_signal"
1401
1799
    echo "$as_me: exit $exit_status"
1402
1800
  } >&5
1403
 
  rm -f core *.core &&
1404
 
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1801
  rm -f core *.core core.conftest.* &&
 
1802
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1405
1803
    exit $exit_status
1406
 
     ' 0
 
1804
' 0
1407
1805
for ac_signal in 1 2 13 15; do
1408
1806
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1409
1807
done
1410
1808
ac_signal=0
1411
1809
 
1412
1810
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1413
 
rm -rf conftest* confdefs.h
1414
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1415
 
echo >confdefs.h
 
1811
rm -f -r conftest* confdefs.h
1416
1812
 
1417
1813
# Predefined preprocessor variables.
1418
1814
 
1443
1839
 
1444
1840
# Let the site file select an alternate cache file if it wants to.
1445
1841
# Prefer explicitly selected file to automatically selected ones.
1446
 
if test -z "$CONFIG_SITE"; then
1447
 
  if test "x$prefix" != xNONE; then
1448
 
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1449
 
  else
1450
 
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1451
 
  fi
 
1842
if test -n "$CONFIG_SITE"; then
 
1843
  set x "$CONFIG_SITE"
 
1844
elif test "x$prefix" != xNONE; then
 
1845
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1846
else
 
1847
  set x "$ac_default_prefix/share/config.site" \
 
1848
        "$ac_default_prefix/etc/config.site"
1452
1849
fi
1453
 
for ac_site_file in $CONFIG_SITE; do
 
1850
shift
 
1851
for ac_site_file
 
1852
do
1454
1853
  if test -r "$ac_site_file"; then
1455
1854
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1456
1855
echo "$as_me: loading site script $ac_site_file" >&6;}
1466
1865
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1467
1866
echo "$as_me: loading cache $cache_file" >&6;}
1468
1867
    case $cache_file in
1469
 
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1470
 
      *)                      . ./$cache_file;;
 
1868
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1869
      *)                      . "./$cache_file";;
1471
1870
    esac
1472
1871
  fi
1473
1872
else
1479
1878
# Check that the precious variables saved in the cache have kept the same
1480
1879
# value.
1481
1880
ac_cache_corrupted=false
1482
 
for ac_var in `(set) 2>&1 |
1483
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1881
for ac_var in $ac_precious_vars; do
1484
1882
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1485
1883
  eval ac_new_set=\$ac_env_${ac_var}_set
1486
 
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1487
 
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1884
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1885
  eval ac_new_val=\$ac_env_${ac_var}_value
1488
1886
  case $ac_old_set,$ac_new_set in
1489
1887
    set,)
1490
1888
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1509
1907
  # Pass precious variables to config.status.
1510
1908
  if test "$ac_new_set" = set; then
1511
1909
    case $ac_new_val in
1512
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1513
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1910
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1514
1911
    *) ac_arg=$ac_var=$ac_new_val ;;
1515
1912
    esac
1516
1913
    case " $ac_configure_args " in
1527
1924
   { (exit 1); exit 1; }; }
1528
1925
fi
1529
1926
 
 
1927
 
 
1928
 
 
1929
 
 
1930
 
 
1931
 
 
1932
 
 
1933
 
 
1934
 
 
1935
 
 
1936
 
 
1937
 
 
1938
 
 
1939
 
 
1940
 
 
1941
 
 
1942
 
 
1943
 
 
1944
 
 
1945
 
 
1946
 
 
1947
 
 
1948
 
 
1949
 
 
1950
 
1530
1951
ac_ext=c
1531
1952
ac_cpp='$CPP $CPPFLAGS'
1532
1953
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1534
1955
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1535
1956
 
1536
1957
 
1537
 
 
1538
 
 
1539
 
 
1540
 
 
1541
 
 
1542
 
 
1543
 
 
1544
 
 
1545
 
 
1546
 
 
1547
 
 
1548
 
 
1549
 
 
1550
 
 
1551
 
 
1552
 
 
1553
 
 
1554
 
 
1555
 
 
1556
 
 
1557
 
 
1558
 
 
1559
 
 
1560
 
 
1561
 
 
1562
1958
ac_aux_dir=
1563
 
for ac_dir in . $srcdir/.; do
1564
 
  if test -f $ac_dir/install-sh; then
 
1959
for ac_dir in . "$srcdir"/.; do
 
1960
  if test -f "$ac_dir/install-sh"; then
1565
1961
    ac_aux_dir=$ac_dir
1566
1962
    ac_install_sh="$ac_aux_dir/install-sh -c"
1567
1963
    break
1568
 
  elif test -f $ac_dir/install.sh; then
 
1964
  elif test -f "$ac_dir/install.sh"; then
1569
1965
    ac_aux_dir=$ac_dir
1570
1966
    ac_install_sh="$ac_aux_dir/install.sh -c"
1571
1967
    break
1572
 
  elif test -f $ac_dir/shtool; then
 
1968
  elif test -f "$ac_dir/shtool"; then
1573
1969
    ac_aux_dir=$ac_dir
1574
1970
    ac_install_sh="$ac_aux_dir/shtool install -c"
1575
1971
    break
1576
1972
  fi
1577
1973
done
1578
1974
if test -z "$ac_aux_dir"; then
1579
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1580
 
echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
 
1975
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
 
1976
echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
1581
1977
   { (exit 1); exit 1; }; }
1582
1978
fi
1583
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1584
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1585
 
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1586
 
 
1587
 
 
1588
 
am__api_version="1.7"
 
1979
 
 
1980
# These three variables are undocumented and unsupported,
 
1981
# and are intended to be withdrawn in a future Autoconf release.
 
1982
# They can cause serious problems if a builder's source tree is in a directory
 
1983
# whose full name contains unusual characters.
 
1984
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
1985
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
1986
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
1987
 
 
1988
 
 
1989
 
 
1990
am__api_version="1.9"
1589
1991
# Find a good install program.  We prefer a C program (faster),
1590
1992
# so one script is as good as another.  But avoid the broken or
1591
1993
# incompatible versions:
1599
2001
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1600
2002
# OS/2's system install, which has a completely different semantic
1601
2003
# ./install, which can be erroneously created by make from ./install.sh.
1602
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1603
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
2004
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2005
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1604
2006
if test -z "$INSTALL"; then
1605
2007
if test "${ac_cv_path_install+set}" = set; then
1606
2008
  echo $ECHO_N "(cached) $ECHO_C" >&6
1622
2024
    # by default.
1623
2025
    for ac_prog in ginstall scoinst install; do
1624
2026
      for ac_exec_ext in '' $ac_executable_extensions; do
1625
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
2027
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
1626
2028
          if test $ac_prog = install &&
1627
2029
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1628
2030
            # AIX install.  It has an incompatible calling convention.
1641
2043
    ;;
1642
2044
esac
1643
2045
done
 
2046
IFS=$as_save_IFS
1644
2047
 
1645
2048
 
1646
2049
fi
1647
2050
  if test "${ac_cv_path_install+set}" = set; then
1648
2051
    INSTALL=$ac_cv_path_install
1649
2052
  else
1650
 
    # As a last resort, use the slow shell script.  We don't cache a
1651
 
    # path for INSTALL within a source directory, because that will
 
2053
    # As a last resort, use the slow shell script.  Don't cache a
 
2054
    # value for INSTALL within a source directory, because that will
1652
2055
    # break other packages using the cache if that directory is
1653
 
    # removed, or if the path is relative.
 
2056
    # removed, or if the value is a relative name.
1654
2057
    INSTALL=$ac_install_sh
1655
2058
  fi
1656
2059
fi
1657
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
1658
 
echo "${ECHO_T}$INSTALL" >&6
 
2060
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2061
echo "${ECHO_T}$INSTALL" >&6; }
1659
2062
 
1660
2063
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1661
2064
# It thinks the first close brace ends the variable substitution.
1665
2068
 
1666
2069
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1667
2070
 
1668
 
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1669
 
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
2071
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2072
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1670
2073
# Just in case
1671
2074
sleep 1
1672
2075
echo timestamp > conftest.file
1708
2111
Check your system clock" >&2;}
1709
2112
   { (exit 1); exit 1; }; }
1710
2113
fi
1711
 
echo "$as_me:$LINENO: result: yes" >&5
1712
 
echo "${ECHO_T}yes" >&6
 
2114
{ echo "$as_me:$LINENO: result: yes" >&5
 
2115
echo "${ECHO_T}yes" >&6; }
1713
2116
test "$program_prefix" != NONE &&
1714
 
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
2117
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
1715
2118
# Use a double $ so make ignores it.
1716
2119
test "$program_suffix" != NONE &&
1717
 
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
2120
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1718
2121
# Double any \ or $.  echo might interpret backslashes.
1719
2122
# By default was `s,x,x', remove it if useless.
1720
2123
cat <<\_ACEOF >conftest.sed
1721
2124
s/[\\$]/&&/g;s/;s,x,x,$//
1722
2125
_ACEOF
1723
2126
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1724
 
rm conftest.sed
1725
 
 
 
2127
rm -f conftest.sed
1726
2128
 
1727
2129
# expand $ac_aux_dir to an absolute path
1728
2130
am_aux_dir=`cd $ac_aux_dir && pwd`
1737
2139
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1738
2140
fi
1739
2141
 
 
2142
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
2143
  # We used to keeping the `.' as first argument, in order to
 
2144
  # allow $(mkdir_p) to be used without argument.  As in
 
2145
  #   $(mkdir_p) $(somedir)
 
2146
  # where $(somedir) is conditionally defined.  However this is wrong
 
2147
  # for two reasons:
 
2148
  #  1. if the package is installed by a user who cannot write `.'
 
2149
  #     make install will fail,
 
2150
  #  2. the above comment should most certainly read
 
2151
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
2152
  #     so it does not work when $(somedir) is undefined and
 
2153
  #     $(DESTDIR) is not.
 
2154
  #  To support the latter case, we have to write
 
2155
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
2156
  #  so the `.' trick is pointless.
 
2157
  mkdir_p='mkdir -p --'
 
2158
else
 
2159
  # On NextStep and OpenStep, the `mkdir' command does not
 
2160
  # recognize any option.  It will interpret all options as
 
2161
  # directories to create, and then abort because `.' already
 
2162
  # exists.
 
2163
  for d in ./-p ./--version;
 
2164
  do
 
2165
    test -d $d && rmdir $d
 
2166
  done
 
2167
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
2168
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
2169
    mkdir_p='$(mkinstalldirs)'
 
2170
  else
 
2171
    mkdir_p='$(install_sh) -d'
 
2172
  fi
 
2173
fi
 
2174
 
1740
2175
for ac_prog in gawk mawk nawk awk
1741
2176
do
1742
2177
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1743
2178
set dummy $ac_prog; ac_word=$2
1744
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1745
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2179
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2180
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1746
2181
if test "${ac_cv_prog_AWK+set}" = set; then
1747
2182
  echo $ECHO_N "(cached) $ECHO_C" >&6
1748
2183
else
1755
2190
  IFS=$as_save_IFS
1756
2191
  test -z "$as_dir" && as_dir=.
1757
2192
  for ac_exec_ext in '' $ac_executable_extensions; do
1758
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2193
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1759
2194
    ac_cv_prog_AWK="$ac_prog"
1760
2195
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1761
2196
    break 2
1762
2197
  fi
1763
2198
done
1764
2199
done
 
2200
IFS=$as_save_IFS
1765
2201
 
1766
2202
fi
1767
2203
fi
1768
2204
AWK=$ac_cv_prog_AWK
1769
2205
if test -n "$AWK"; then
1770
 
  echo "$as_me:$LINENO: result: $AWK" >&5
1771
 
echo "${ECHO_T}$AWK" >&6
 
2206
  { echo "$as_me:$LINENO: result: $AWK" >&5
 
2207
echo "${ECHO_T}$AWK" >&6; }
1772
2208
else
1773
 
  echo "$as_me:$LINENO: result: no" >&5
1774
 
echo "${ECHO_T}no" >&6
 
2209
  { echo "$as_me:$LINENO: result: no" >&5
 
2210
echo "${ECHO_T}no" >&6; }
1775
2211
fi
1776
2212
 
 
2213
 
1777
2214
  test -n "$AWK" && break
1778
2215
done
1779
2216
 
1780
 
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1781
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1782
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1783
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
2217
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2218
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
2219
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2220
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1784
2221
  echo $ECHO_N "(cached) $ECHO_C" >&6
1785
2222
else
1786
2223
  cat >conftest.make <<\_ACEOF
 
2224
SHELL = /bin/sh
1787
2225
all:
1788
 
        @echo 'ac_maketemp="$(MAKE)"'
 
2226
        @echo '@@@%%%=$(MAKE)=@@@%%%'
1789
2227
_ACEOF
1790
2228
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1791
 
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1792
 
if test -n "$ac_maketemp"; then
1793
 
  eval ac_cv_prog_make_${ac_make}_set=yes
1794
 
else
1795
 
  eval ac_cv_prog_make_${ac_make}_set=no
1796
 
fi
 
2229
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2230
  *@@@%%%=?*=@@@%%%*)
 
2231
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2232
  *)
 
2233
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2234
esac
1797
2235
rm -f conftest.make
1798
2236
fi
1799
 
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1800
 
  echo "$as_me:$LINENO: result: yes" >&5
1801
 
echo "${ECHO_T}yes" >&6
 
2237
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2238
  { echo "$as_me:$LINENO: result: yes" >&5
 
2239
echo "${ECHO_T}yes" >&6; }
1802
2240
  SET_MAKE=
1803
2241
else
1804
 
  echo "$as_me:$LINENO: result: no" >&5
1805
 
echo "${ECHO_T}no" >&6
 
2242
  { echo "$as_me:$LINENO: result: no" >&5
 
2243
echo "${ECHO_T}no" >&6; }
1806
2244
  SET_MAKE="MAKE=${MAKE-make}"
1807
2245
fi
1808
2246
 
1815
2253
fi
1816
2254
rmdir .tst 2>/dev/null
1817
2255
 
1818
 
 # test to see if srcdir already configured
 
2256
# test to see if srcdir already configured
1819
2257
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1820
2258
   test -f $srcdir/config.status; then
1821
2259
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1835
2273
 
1836
2274
# Define the identity of the package.
1837
2275
 PACKAGE='libXft'
1838
 
 VERSION='2.1.8.2'
 
2276
 VERSION='2.1.10'
1839
2277
 
1840
2278
 
1841
2279
cat >>confdefs.h <<_ACEOF
1863
2301
 
1864
2302
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1865
2303
 
1866
 
 
1867
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
1868
 
 
1869
2304
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1870
2305
 
1871
2306
# Installed binaries are usually stripped using `strip' when the user
1876
2311
  if test -n "$ac_tool_prefix"; then
1877
2312
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1878
2313
set dummy ${ac_tool_prefix}strip; ac_word=$2
1879
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1880
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2314
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2315
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1881
2316
if test "${ac_cv_prog_STRIP+set}" = set; then
1882
2317
  echo $ECHO_N "(cached) $ECHO_C" >&6
1883
2318
else
1890
2325
  IFS=$as_save_IFS
1891
2326
  test -z "$as_dir" && as_dir=.
1892
2327
  for ac_exec_ext in '' $ac_executable_extensions; do
1893
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2328
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1894
2329
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1895
2330
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1896
2331
    break 2
1897
2332
  fi
1898
2333
done
1899
2334
done
 
2335
IFS=$as_save_IFS
1900
2336
 
1901
2337
fi
1902
2338
fi
1903
2339
STRIP=$ac_cv_prog_STRIP
1904
2340
if test -n "$STRIP"; then
1905
 
  echo "$as_me:$LINENO: result: $STRIP" >&5
1906
 
echo "${ECHO_T}$STRIP" >&6
 
2341
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
2342
echo "${ECHO_T}$STRIP" >&6; }
1907
2343
else
1908
 
  echo "$as_me:$LINENO: result: no" >&5
1909
 
echo "${ECHO_T}no" >&6
 
2344
  { echo "$as_me:$LINENO: result: no" >&5
 
2345
echo "${ECHO_T}no" >&6; }
1910
2346
fi
 
2347
 
1911
2348
 
1912
2349
fi
1913
2350
if test -z "$ac_cv_prog_STRIP"; then
1914
2351
  ac_ct_STRIP=$STRIP
1915
2352
  # Extract the first word of "strip", so it can be a program name with args.
1916
2353
set dummy strip; ac_word=$2
1917
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1918
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2354
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2355
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1919
2356
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1920
2357
  echo $ECHO_N "(cached) $ECHO_C" >&6
1921
2358
else
1928
2365
  IFS=$as_save_IFS
1929
2366
  test -z "$as_dir" && as_dir=.
1930
2367
  for ac_exec_ext in '' $ac_executable_extensions; do
1931
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2368
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1932
2369
    ac_cv_prog_ac_ct_STRIP="strip"
1933
2370
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934
2371
    break 2
1935
2372
  fi
1936
2373
done
1937
2374
done
 
2375
IFS=$as_save_IFS
1938
2376
 
1939
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1940
2377
fi
1941
2378
fi
1942
2379
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1943
2380
if test -n "$ac_ct_STRIP"; then
1944
 
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1945
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
2381
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2382
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
1946
2383
else
1947
 
  echo "$as_me:$LINENO: result: no" >&5
1948
 
echo "${ECHO_T}no" >&6
 
2384
  { echo "$as_me:$LINENO: result: no" >&5
 
2385
echo "${ECHO_T}no" >&6; }
1949
2386
fi
1950
2387
 
1951
 
  STRIP=$ac_ct_STRIP
 
2388
  if test "x$ac_ct_STRIP" = x; then
 
2389
    STRIP=":"
 
2390
  else
 
2391
    case $cross_compiling:$ac_tool_warned in
 
2392
yes:)
 
2393
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2394
whose name does not start with the host triplet.  If you think this
 
2395
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2396
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2397
whose name does not start with the host triplet.  If you think this
 
2398
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2399
ac_tool_warned=yes ;;
 
2400
esac
 
2401
    STRIP=$ac_ct_STRIP
 
2402
  fi
1952
2403
else
1953
2404
  STRIP="$ac_cv_prog_STRIP"
1954
2405
fi
1958
2409
 
1959
2410
# We need awk for the "check" target.  The system "awk" is bad on
1960
2411
# some platforms.
1961
 
 
1962
 
 
1963
 
 
1964
 
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1965
 
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1966
 
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
 
2412
# Always define AMTAR for backward compatibility.
 
2413
 
 
2414
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2415
 
 
2416
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2417
 
 
2418
 
 
2419
 
 
2420
 
 
2421
 
 
2422
{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
2423
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
 
2424
    # Check whether --enable-maintainer-mode was given.
1967
2425
if test "${enable_maintainer_mode+set}" = set; then
1968
 
  enableval="$enable_maintainer_mode"
1969
 
  USE_MAINTAINER_MODE=$enableval
 
2426
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1970
2427
else
1971
2428
  USE_MAINTAINER_MODE=no
1972
 
fi;
1973
 
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1974
 
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
 
2429
fi
 
2430
 
 
2431
  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
2432
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
1975
2433
 
1976
2434
 
1977
2435
if test $USE_MAINTAINER_MODE = yes; then
1986
2444
 
1987
2445
 
1988
2446
 
1989
 
          ac_config_headers="$ac_config_headers config.h"
 
2447
ac_config_headers="$ac_config_headers config.h"
1990
2448
 
1991
2449
 
1992
2450
# checks for progs
1998
2456
if test -n "$ac_tool_prefix"; then
1999
2457
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2000
2458
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2001
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2002
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2459
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2460
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2003
2461
if test "${ac_cv_prog_CC+set}" = set; then
2004
2462
  echo $ECHO_N "(cached) $ECHO_C" >&6
2005
2463
else
2012
2470
  IFS=$as_save_IFS
2013
2471
  test -z "$as_dir" && as_dir=.
2014
2472
  for ac_exec_ext in '' $ac_executable_extensions; do
2015
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2473
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2016
2474
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2017
2475
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2018
2476
    break 2
2019
2477
  fi
2020
2478
done
2021
2479
done
 
2480
IFS=$as_save_IFS
2022
2481
 
2023
2482
fi
2024
2483
fi
2025
2484
CC=$ac_cv_prog_CC
2026
2485
if test -n "$CC"; then
2027
 
  echo "$as_me:$LINENO: result: $CC" >&5
2028
 
echo "${ECHO_T}$CC" >&6
 
2486
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2487
echo "${ECHO_T}$CC" >&6; }
2029
2488
else
2030
 
  echo "$as_me:$LINENO: result: no" >&5
2031
 
echo "${ECHO_T}no" >&6
 
2489
  { echo "$as_me:$LINENO: result: no" >&5
 
2490
echo "${ECHO_T}no" >&6; }
2032
2491
fi
 
2492
 
2033
2493
 
2034
2494
fi
2035
2495
if test -z "$ac_cv_prog_CC"; then
2036
2496
  ac_ct_CC=$CC
2037
2497
  # Extract the first word of "gcc", so it can be a program name with args.
2038
2498
set dummy gcc; ac_word=$2
2039
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2040
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2499
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2500
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2041
2501
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2042
2502
  echo $ECHO_N "(cached) $ECHO_C" >&6
2043
2503
else
2050
2510
  IFS=$as_save_IFS
2051
2511
  test -z "$as_dir" && as_dir=.
2052
2512
  for ac_exec_ext in '' $ac_executable_extensions; do
2053
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2513
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2054
2514
    ac_cv_prog_ac_ct_CC="gcc"
2055
2515
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056
2516
    break 2
2057
2517
  fi
2058
2518
done
2059
2519
done
 
2520
IFS=$as_save_IFS
2060
2521
 
2061
2522
fi
2062
2523
fi
2063
2524
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2064
2525
if test -n "$ac_ct_CC"; then
2065
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2066
 
echo "${ECHO_T}$ac_ct_CC" >&6
 
2526
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2527
echo "${ECHO_T}$ac_ct_CC" >&6; }
2067
2528
else
2068
 
  echo "$as_me:$LINENO: result: no" >&5
2069
 
echo "${ECHO_T}no" >&6
 
2529
  { echo "$as_me:$LINENO: result: no" >&5
 
2530
echo "${ECHO_T}no" >&6; }
2070
2531
fi
2071
2532
 
2072
 
  CC=$ac_ct_CC
 
2533
  if test "x$ac_ct_CC" = x; then
 
2534
    CC=""
 
2535
  else
 
2536
    case $cross_compiling:$ac_tool_warned in
 
2537
yes:)
 
2538
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2539
whose name does not start with the host triplet.  If you think this
 
2540
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2541
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2542
whose name does not start with the host triplet.  If you think this
 
2543
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2544
ac_tool_warned=yes ;;
 
2545
esac
 
2546
    CC=$ac_ct_CC
 
2547
  fi
2073
2548
else
2074
2549
  CC="$ac_cv_prog_CC"
2075
2550
fi
2076
2551
 
2077
2552
if test -z "$CC"; then
2078
 
  if test -n "$ac_tool_prefix"; then
2079
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2553
          if test -n "$ac_tool_prefix"; then
 
2554
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2080
2555
set dummy ${ac_tool_prefix}cc; ac_word=$2
2081
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2082
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2556
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2557
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2083
2558
if test "${ac_cv_prog_CC+set}" = set; then
2084
2559
  echo $ECHO_N "(cached) $ECHO_C" >&6
2085
2560
else
2092
2567
  IFS=$as_save_IFS
2093
2568
  test -z "$as_dir" && as_dir=.
2094
2569
  for ac_exec_ext in '' $ac_executable_extensions; do
2095
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2570
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2096
2571
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2097
2572
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098
2573
    break 2
2099
2574
  fi
2100
2575
done
2101
2576
done
 
2577
IFS=$as_save_IFS
2102
2578
 
2103
2579
fi
2104
2580
fi
2105
2581
CC=$ac_cv_prog_CC
2106
2582
if test -n "$CC"; then
2107
 
  echo "$as_me:$LINENO: result: $CC" >&5
2108
 
echo "${ECHO_T}$CC" >&6
2109
 
else
2110
 
  echo "$as_me:$LINENO: result: no" >&5
2111
 
echo "${ECHO_T}no" >&6
2112
 
fi
2113
 
 
2114
 
fi
2115
 
if test -z "$ac_cv_prog_CC"; then
2116
 
  ac_ct_CC=$CC
2117
 
  # Extract the first word of "cc", so it can be a program name with args.
2118
 
set dummy cc; ac_word=$2
2119
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2120
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2121
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2122
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2123
 
else
2124
 
  if test -n "$ac_ct_CC"; then
2125
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2126
 
else
2127
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128
 
for as_dir in $PATH
2129
 
do
2130
 
  IFS=$as_save_IFS
2131
 
  test -z "$as_dir" && as_dir=.
2132
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2133
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2134
 
    ac_cv_prog_ac_ct_CC="cc"
2135
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2136
 
    break 2
 
2583
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2584
echo "${ECHO_T}$CC" >&6; }
 
2585
else
 
2586
  { echo "$as_me:$LINENO: result: no" >&5
 
2587
echo "${ECHO_T}no" >&6; }
 
2588
fi
 
2589
 
 
2590
 
2137
2591
  fi
2138
 
done
2139
 
done
2140
 
 
2141
 
fi
2142
 
fi
2143
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2144
 
if test -n "$ac_ct_CC"; then
2145
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2146
 
echo "${ECHO_T}$ac_ct_CC" >&6
2147
 
else
2148
 
  echo "$as_me:$LINENO: result: no" >&5
2149
 
echo "${ECHO_T}no" >&6
2150
 
fi
2151
 
 
2152
 
  CC=$ac_ct_CC
2153
 
else
2154
 
  CC="$ac_cv_prog_CC"
2155
 
fi
2156
 
 
2157
2592
fi
2158
2593
if test -z "$CC"; then
2159
2594
  # Extract the first word of "cc", so it can be a program name with args.
2160
2595
set dummy cc; ac_word=$2
2161
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2162
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2596
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2597
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2163
2598
if test "${ac_cv_prog_CC+set}" = set; then
2164
2599
  echo $ECHO_N "(cached) $ECHO_C" >&6
2165
2600
else
2173
2608
  IFS=$as_save_IFS
2174
2609
  test -z "$as_dir" && as_dir=.
2175
2610
  for ac_exec_ext in '' $ac_executable_extensions; do
2176
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2611
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2177
2612
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2178
2613
       ac_prog_rejected=yes
2179
2614
       continue
2184
2619
  fi
2185
2620
done
2186
2621
done
 
2622
IFS=$as_save_IFS
2187
2623
 
2188
2624
if test $ac_prog_rejected = yes; then
2189
2625
  # We found a bogon in the path, so make sure we never use it.
2201
2637
fi
2202
2638
CC=$ac_cv_prog_CC
2203
2639
if test -n "$CC"; then
2204
 
  echo "$as_me:$LINENO: result: $CC" >&5
2205
 
echo "${ECHO_T}$CC" >&6
 
2640
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2641
echo "${ECHO_T}$CC" >&6; }
2206
2642
else
2207
 
  echo "$as_me:$LINENO: result: no" >&5
2208
 
echo "${ECHO_T}no" >&6
 
2643
  { echo "$as_me:$LINENO: result: no" >&5
 
2644
echo "${ECHO_T}no" >&6; }
2209
2645
fi
 
2646
 
2210
2647
 
2211
2648
fi
2212
2649
if test -z "$CC"; then
2213
2650
  if test -n "$ac_tool_prefix"; then
2214
 
  for ac_prog in cl
 
2651
  for ac_prog in cl.exe
2215
2652
  do
2216
2653
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2217
2654
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2218
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2219
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2655
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2656
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2220
2657
if test "${ac_cv_prog_CC+set}" = set; then
2221
2658
  echo $ECHO_N "(cached) $ECHO_C" >&6
2222
2659
else
2229
2666
  IFS=$as_save_IFS
2230
2667
  test -z "$as_dir" && as_dir=.
2231
2668
  for ac_exec_ext in '' $ac_executable_extensions; do
2232
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2669
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2233
2670
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2234
2671
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2235
2672
    break 2
2236
2673
  fi
2237
2674
done
2238
2675
done
 
2676
IFS=$as_save_IFS
2239
2677
 
2240
2678
fi
2241
2679
fi
2242
2680
CC=$ac_cv_prog_CC
2243
2681
if test -n "$CC"; then
2244
 
  echo "$as_me:$LINENO: result: $CC" >&5
2245
 
echo "${ECHO_T}$CC" >&6
 
2682
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2683
echo "${ECHO_T}$CC" >&6; }
2246
2684
else
2247
 
  echo "$as_me:$LINENO: result: no" >&5
2248
 
echo "${ECHO_T}no" >&6
 
2685
  { echo "$as_me:$LINENO: result: no" >&5
 
2686
echo "${ECHO_T}no" >&6; }
2249
2687
fi
2250
2688
 
 
2689
 
2251
2690
    test -n "$CC" && break
2252
2691
  done
2253
2692
fi
2254
2693
if test -z "$CC"; then
2255
2694
  ac_ct_CC=$CC
2256
 
  for ac_prog in cl
 
2695
  for ac_prog in cl.exe
2257
2696
do
2258
2697
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2259
2698
set dummy $ac_prog; ac_word=$2
2260
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2261
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2699
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2700
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2262
2701
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2263
2702
  echo $ECHO_N "(cached) $ECHO_C" >&6
2264
2703
else
2271
2710
  IFS=$as_save_IFS
2272
2711
  test -z "$as_dir" && as_dir=.
2273
2712
  for ac_exec_ext in '' $ac_executable_extensions; do
2274
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2713
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2275
2714
    ac_cv_prog_ac_ct_CC="$ac_prog"
2276
2715
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2277
2716
    break 2
2278
2717
  fi
2279
2718
done
2280
2719
done
 
2720
IFS=$as_save_IFS
2281
2721
 
2282
2722
fi
2283
2723
fi
2284
2724
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2285
2725
if test -n "$ac_ct_CC"; then
2286
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2287
 
echo "${ECHO_T}$ac_ct_CC" >&6
 
2726
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2727
echo "${ECHO_T}$ac_ct_CC" >&6; }
2288
2728
else
2289
 
  echo "$as_me:$LINENO: result: no" >&5
2290
 
echo "${ECHO_T}no" >&6
 
2729
  { echo "$as_me:$LINENO: result: no" >&5
 
2730
echo "${ECHO_T}no" >&6; }
2291
2731
fi
2292
2732
 
 
2733
 
2293
2734
  test -n "$ac_ct_CC" && break
2294
2735
done
2295
2736
 
2296
 
  CC=$ac_ct_CC
 
2737
  if test "x$ac_ct_CC" = x; then
 
2738
    CC=""
 
2739
  else
 
2740
    case $cross_compiling:$ac_tool_warned in
 
2741
yes:)
 
2742
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2743
whose name does not start with the host triplet.  If you think this
 
2744
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2745
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2746
whose name does not start with the host triplet.  If you think this
 
2747
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2748
ac_tool_warned=yes ;;
 
2749
esac
 
2750
    CC=$ac_ct_CC
 
2751
  fi
2297
2752
fi
2298
2753
 
2299
2754
fi
2306
2761
   { (exit 1); exit 1; }; }
2307
2762
 
2308
2763
# Provide some information about the compiler.
2309
 
echo "$as_me:$LINENO:" \
2310
 
     "checking for C compiler version" >&5
 
2764
echo "$as_me:$LINENO: checking for C compiler version" >&5
2311
2765
ac_compiler=`set X $ac_compile; echo $2`
2312
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2313
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
2314
 
  ac_status=$?
2315
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316
 
  (exit $ac_status); }
2317
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2318
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
2319
 
  ac_status=$?
2320
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321
 
  (exit $ac_status); }
2322
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2323
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2766
{ (ac_try="$ac_compiler --version >&5"
 
2767
case "(($ac_try" in
 
2768
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2769
  *) ac_try_echo=$ac_try;;
 
2770
esac
 
2771
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2772
  (eval "$ac_compiler --version >&5") 2>&5
 
2773
  ac_status=$?
 
2774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2775
  (exit $ac_status); }
 
2776
{ (ac_try="$ac_compiler -v >&5"
 
2777
case "(($ac_try" in
 
2778
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2779
  *) ac_try_echo=$ac_try;;
 
2780
esac
 
2781
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2782
  (eval "$ac_compiler -v >&5") 2>&5
 
2783
  ac_status=$?
 
2784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2785
  (exit $ac_status); }
 
2786
{ (ac_try="$ac_compiler -V >&5"
 
2787
case "(($ac_try" in
 
2788
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2789
  *) ac_try_echo=$ac_try;;
 
2790
esac
 
2791
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2792
  (eval "$ac_compiler -V >&5") 2>&5
2324
2793
  ac_status=$?
2325
2794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326
2795
  (exit $ac_status); }
2345
2814
# Try to create an executable without -o first, disregard a.out.
2346
2815
# It will help us diagnose broken compilers, and finding out an intuition
2347
2816
# of exeext.
2348
 
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2349
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2817
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2818
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2350
2819
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2351
 
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2352
 
  (eval $ac_link_default) 2>&5
 
2820
#
 
2821
# List of possible output files, starting from the most likely.
 
2822
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
2823
# only as a last resort.  b.out is created by i960 compilers.
 
2824
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
2825
#
 
2826
# The IRIX 6 linker writes into existing files which may not be
 
2827
# executable, retaining their permissions.  Remove them first so a
 
2828
# subsequent execution test works.
 
2829
ac_rmfiles=
 
2830
for ac_file in $ac_files
 
2831
do
 
2832
  case $ac_file in
 
2833
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2834
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2835
  esac
 
2836
done
 
2837
rm -f $ac_rmfiles
 
2838
 
 
2839
if { (ac_try="$ac_link_default"
 
2840
case "(($ac_try" in
 
2841
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2842
  *) ac_try_echo=$ac_try;;
 
2843
esac
 
2844
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2845
  (eval "$ac_link_default") 2>&5
2353
2846
  ac_status=$?
2354
2847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355
2848
  (exit $ac_status); }; then
2356
 
  # Find the output, starting from the most likely.  This scheme is
2357
 
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2358
 
# resort.
2359
 
 
2360
 
# Be careful to initialize this variable, since it used to be cached.
2361
 
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2362
 
ac_cv_exeext=
2363
 
# b.out is created by i960 compilers.
2364
 
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2849
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2850
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2851
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2852
# so that the user can short-circuit this test for compilers unknown to
 
2853
# Autoconf.
 
2854
for ac_file in $ac_files
2365
2855
do
2366
2856
  test -f "$ac_file" || continue
2367
2857
  case $ac_file in
2368
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2369
 
        ;;
2370
 
    conftest.$ac_ext )
2371
 
        # This is the source file.
 
2858
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2372
2859
        ;;
2373
2860
    [ab].out )
2374
2861
        # We found the default executable, but exeext='' is most
2375
2862
        # certainly right.
2376
2863
        break;;
2377
2864
    *.* )
2378
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2379
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
2380
 
        # but it would be cool to find out if it's true.  Does anybody
2381
 
        # maintain Libtool? --akim.
2382
 
        export ac_cv_exeext
 
2865
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
2866
        then :; else
 
2867
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2868
        fi
 
2869
        # We set ac_cv_exeext here because the later test for it is not
 
2870
        # safe: cross compilers may not add the suffix if given an `-o'
 
2871
        # argument, so we may need to know it at that point already.
 
2872
        # Even if this section looks crufty: it has the advantage of
 
2873
        # actually working.
2383
2874
        break;;
2384
2875
    * )
2385
2876
        break;;
2386
2877
  esac
2387
2878
done
 
2879
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
2880
 
2388
2881
else
2389
2882
  echo "$as_me: failed program was:" >&5
2390
2883
sed 's/^/| /' conftest.$ac_ext >&5
2397
2890
fi
2398
2891
 
2399
2892
ac_exeext=$ac_cv_exeext
2400
 
echo "$as_me:$LINENO: result: $ac_file" >&5
2401
 
echo "${ECHO_T}$ac_file" >&6
 
2893
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
2894
echo "${ECHO_T}$ac_file" >&6; }
2402
2895
 
2403
 
# Check the compiler produces executables we can run.  If not, either
 
2896
# Check that the compiler produces executables we can run.  If not, either
2404
2897
# the compiler is broken, or we cross compile.
2405
 
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2406
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2898
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2899
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2407
2900
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2408
2901
# If not cross compiling, check that we can run a simple program.
2409
2902
if test "$cross_compiling" != yes; then
2410
2903
  if { ac_try='./$ac_file'
2411
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412
 
  (eval $ac_try) 2>&5
 
2904
  { (case "(($ac_try" in
 
2905
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2906
  *) ac_try_echo=$ac_try;;
 
2907
esac
 
2908
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2909
  (eval "$ac_try") 2>&5
2413
2910
  ac_status=$?
2414
2911
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415
2912
  (exit $ac_status); }; }; then
2428
2925
    fi
2429
2926
  fi
2430
2927
fi
2431
 
echo "$as_me:$LINENO: result: yes" >&5
2432
 
echo "${ECHO_T}yes" >&6
 
2928
{ echo "$as_me:$LINENO: result: yes" >&5
 
2929
echo "${ECHO_T}yes" >&6; }
2433
2930
 
2434
2931
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2435
2932
ac_clean_files=$ac_clean_files_save
2436
 
# Check the compiler produces executables we can run.  If not, either
 
2933
# Check that the compiler produces executables we can run.  If not, either
2437
2934
# the compiler is broken, or we cross compile.
2438
 
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2439
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2440
 
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2441
 
echo "${ECHO_T}$cross_compiling" >&6
 
2935
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2936
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
2937
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2938
echo "${ECHO_T}$cross_compiling" >&6; }
2442
2939
 
2443
 
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2444
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2445
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2446
 
  (eval $ac_link) 2>&5
 
2940
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2941
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
2942
if { (ac_try="$ac_link"
 
2943
case "(($ac_try" in
 
2944
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2945
  *) ac_try_echo=$ac_try;;
 
2946
esac
 
2947
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2948
  (eval "$ac_link") 2>&5
2447
2949
  ac_status=$?
2448
2950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449
2951
  (exit $ac_status); }; then
2454
2956
for ac_file in conftest.exe conftest conftest.*; do
2455
2957
  test -f "$ac_file" || continue
2456
2958
  case $ac_file in
2457
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2959
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2458
2960
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2459
 
          export ac_cv_exeext
2460
2961
          break;;
2461
2962
    * ) break;;
2462
2963
  esac
2470
2971
fi
2471
2972
 
2472
2973
rm -f conftest$ac_cv_exeext
2473
 
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2474
 
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2974
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2975
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2475
2976
 
2476
2977
rm -f conftest.$ac_ext
2477
2978
EXEEXT=$ac_cv_exeext
2478
2979
ac_exeext=$EXEEXT
2479
 
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2480
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2980
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2981
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2481
2982
if test "${ac_cv_objext+set}" = set; then
2482
2983
  echo $ECHO_N "(cached) $ECHO_C" >&6
2483
2984
else
2497
2998
}
2498
2999
_ACEOF
2499
3000
rm -f conftest.o conftest.obj
2500
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501
 
  (eval $ac_compile) 2>&5
 
3001
if { (ac_try="$ac_compile"
 
3002
case "(($ac_try" in
 
3003
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3004
  *) ac_try_echo=$ac_try;;
 
3005
esac
 
3006
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3007
  (eval "$ac_compile") 2>&5
2502
3008
  ac_status=$?
2503
3009
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504
3010
  (exit $ac_status); }; then
2505
 
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
3011
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3012
  test -f "$ac_file" || continue;
2506
3013
  case $ac_file in
2507
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
3014
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2508
3015
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2509
3016
       break;;
2510
3017
  esac
2522
3029
 
2523
3030
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2524
3031
fi
2525
 
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2526
 
echo "${ECHO_T}$ac_cv_objext" >&6
 
3032
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3033
echo "${ECHO_T}$ac_cv_objext" >&6; }
2527
3034
OBJEXT=$ac_cv_objext
2528
3035
ac_objext=$OBJEXT
2529
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2530
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
3036
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3037
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2531
3038
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2532
3039
  echo $ECHO_N "(cached) $ECHO_C" >&6
2533
3040
else
2550
3057
}
2551
3058
_ACEOF
2552
3059
rm -f conftest.$ac_objext
2553
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554
 
  (eval $ac_compile) 2>conftest.er1
 
3060
if { (ac_try="$ac_compile"
 
3061
case "(($ac_try" in
 
3062
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3063
  *) ac_try_echo=$ac_try;;
 
3064
esac
 
3065
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3066
  (eval "$ac_compile") 2>conftest.er1
2555
3067
  ac_status=$?
2556
3068
  grep -v '^ *+' conftest.er1 >conftest.err
2557
3069
  rm -f conftest.er1
2558
3070
  cat conftest.err >&5
2559
3071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560
3072
  (exit $ac_status); } &&
2561
 
         { ac_try='test -z "$ac_c_werror_flag"
2562
 
                         || test ! -s conftest.err'
2563
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564
 
  (eval $ac_try) 2>&5
 
3073
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
3074
  { (case "(($ac_try" in
 
3075
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3076
  *) ac_try_echo=$ac_try;;
 
3077
esac
 
3078
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3079
  (eval "$ac_try") 2>&5
2565
3080
  ac_status=$?
2566
3081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567
3082
  (exit $ac_status); }; } &&
2568
3083
         { ac_try='test -s conftest.$ac_objext'
2569
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570
 
  (eval $ac_try) 2>&5
 
3084
  { (case "(($ac_try" in
 
3085
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3086
  *) ac_try_echo=$ac_try;;
 
3087
esac
 
3088
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3089
  (eval "$ac_try") 2>&5
2571
3090
  ac_status=$?
2572
3091
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573
3092
  (exit $ac_status); }; }; then
2576
3095
  echo "$as_me: failed program was:" >&5
2577
3096
sed 's/^/| /' conftest.$ac_ext >&5
2578
3097
 
2579
 
ac_compiler_gnu=no
 
3098
        ac_compiler_gnu=no
2580
3099
fi
2581
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3100
 
 
3101
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582
3102
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2583
3103
 
2584
3104
fi
2585
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2586
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
3105
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3106
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2587
3107
GCC=`test $ac_compiler_gnu = yes && echo yes`
2588
3108
ac_test_CFLAGS=${CFLAGS+set}
2589
3109
ac_save_CFLAGS=$CFLAGS
2590
 
CFLAGS="-g"
2591
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2592
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
3110
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3111
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2593
3112
if test "${ac_cv_prog_cc_g+set}" = set; then
2594
3113
  echo $ECHO_N "(cached) $ECHO_C" >&6
2595
3114
else
2596
 
  cat >conftest.$ac_ext <<_ACEOF
2597
 
/* confdefs.h.  */
2598
 
_ACEOF
2599
 
cat confdefs.h >>conftest.$ac_ext
2600
 
cat >>conftest.$ac_ext <<_ACEOF
2601
 
/* end confdefs.h.  */
2602
 
 
2603
 
int
2604
 
main ()
2605
 
{
2606
 
 
2607
 
  ;
2608
 
  return 0;
2609
 
}
2610
 
_ACEOF
2611
 
rm -f conftest.$ac_objext
2612
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613
 
  (eval $ac_compile) 2>conftest.er1
2614
 
  ac_status=$?
2615
 
  grep -v '^ *+' conftest.er1 >conftest.err
2616
 
  rm -f conftest.er1
2617
 
  cat conftest.err >&5
2618
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619
 
  (exit $ac_status); } &&
2620
 
         { ac_try='test -z "$ac_c_werror_flag"
2621
 
                         || test ! -s conftest.err'
2622
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623
 
  (eval $ac_try) 2>&5
2624
 
  ac_status=$?
2625
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626
 
  (exit $ac_status); }; } &&
2627
 
         { ac_try='test -s conftest.$ac_objext'
2628
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629
 
  (eval $ac_try) 2>&5
2630
 
  ac_status=$?
2631
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632
 
  (exit $ac_status); }; }; then
2633
 
  ac_cv_prog_cc_g=yes
2634
 
else
2635
 
  echo "$as_me: failed program was:" >&5
2636
 
sed 's/^/| /' conftest.$ac_ext >&5
2637
 
 
2638
 
ac_cv_prog_cc_g=no
2639
 
fi
2640
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2641
 
fi
2642
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2643
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
3115
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3116
   ac_c_werror_flag=yes
 
3117
   ac_cv_prog_cc_g=no
 
3118
   CFLAGS="-g"
 
3119
   cat >conftest.$ac_ext <<_ACEOF
 
3120
/* confdefs.h.  */
 
3121
_ACEOF
 
3122
cat confdefs.h >>conftest.$ac_ext
 
3123
cat >>conftest.$ac_ext <<_ACEOF
 
3124
/* end confdefs.h.  */
 
3125
 
 
3126
int
 
3127
main ()
 
3128
{
 
3129
 
 
3130
  ;
 
3131
  return 0;
 
3132
}
 
3133
_ACEOF
 
3134
rm -f conftest.$ac_objext
 
3135
if { (ac_try="$ac_compile"
 
3136
case "(($ac_try" in
 
3137
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3138
  *) ac_try_echo=$ac_try;;
 
3139
esac
 
3140
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3141
  (eval "$ac_compile") 2>conftest.er1
 
3142
  ac_status=$?
 
3143
  grep -v '^ *+' conftest.er1 >conftest.err
 
3144
  rm -f conftest.er1
 
3145
  cat conftest.err >&5
 
3146
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3147
  (exit $ac_status); } &&
 
3148
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
3149
  { (case "(($ac_try" in
 
3150
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3151
  *) ac_try_echo=$ac_try;;
 
3152
esac
 
3153
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3154
  (eval "$ac_try") 2>&5
 
3155
  ac_status=$?
 
3156
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3157
  (exit $ac_status); }; } &&
 
3158
         { ac_try='test -s conftest.$ac_objext'
 
3159
  { (case "(($ac_try" in
 
3160
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3161
  *) ac_try_echo=$ac_try;;
 
3162
esac
 
3163
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3164
  (eval "$ac_try") 2>&5
 
3165
  ac_status=$?
 
3166
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3167
  (exit $ac_status); }; }; then
 
3168
  ac_cv_prog_cc_g=yes
 
3169
else
 
3170
  echo "$as_me: failed program was:" >&5
 
3171
sed 's/^/| /' conftest.$ac_ext >&5
 
3172
 
 
3173
        CFLAGS=""
 
3174
      cat >conftest.$ac_ext <<_ACEOF
 
3175
/* confdefs.h.  */
 
3176
_ACEOF
 
3177
cat confdefs.h >>conftest.$ac_ext
 
3178
cat >>conftest.$ac_ext <<_ACEOF
 
3179
/* end confdefs.h.  */
 
3180
 
 
3181
int
 
3182
main ()
 
3183
{
 
3184
 
 
3185
  ;
 
3186
  return 0;
 
3187
}
 
3188
_ACEOF
 
3189
rm -f conftest.$ac_objext
 
3190
if { (ac_try="$ac_compile"
 
3191
case "(($ac_try" in
 
3192
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3193
  *) ac_try_echo=$ac_try;;
 
3194
esac
 
3195
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3196
  (eval "$ac_compile") 2>conftest.er1
 
3197
  ac_status=$?
 
3198
  grep -v '^ *+' conftest.er1 >conftest.err
 
3199
  rm -f conftest.er1
 
3200
  cat conftest.err >&5
 
3201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3202
  (exit $ac_status); } &&
 
3203
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
3204
  { (case "(($ac_try" in
 
3205
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3206
  *) ac_try_echo=$ac_try;;
 
3207
esac
 
3208
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3209
  (eval "$ac_try") 2>&5
 
3210
  ac_status=$?
 
3211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3212
  (exit $ac_status); }; } &&
 
3213
         { ac_try='test -s conftest.$ac_objext'
 
3214
  { (case "(($ac_try" in
 
3215
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3216
  *) ac_try_echo=$ac_try;;
 
3217
esac
 
3218
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3219
  (eval "$ac_try") 2>&5
 
3220
  ac_status=$?
 
3221
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3222
  (exit $ac_status); }; }; then
 
3223
  :
 
3224
else
 
3225
  echo "$as_me: failed program was:" >&5
 
3226
sed 's/^/| /' conftest.$ac_ext >&5
 
3227
 
 
3228
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3229
         CFLAGS="-g"
 
3230
         cat >conftest.$ac_ext <<_ACEOF
 
3231
/* confdefs.h.  */
 
3232
_ACEOF
 
3233
cat confdefs.h >>conftest.$ac_ext
 
3234
cat >>conftest.$ac_ext <<_ACEOF
 
3235
/* end confdefs.h.  */
 
3236
 
 
3237
int
 
3238
main ()
 
3239
{
 
3240
 
 
3241
  ;
 
3242
  return 0;
 
3243
}
 
3244
_ACEOF
 
3245
rm -f conftest.$ac_objext
 
3246
if { (ac_try="$ac_compile"
 
3247
case "(($ac_try" in
 
3248
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3249
  *) ac_try_echo=$ac_try;;
 
3250
esac
 
3251
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3252
  (eval "$ac_compile") 2>conftest.er1
 
3253
  ac_status=$?
 
3254
  grep -v '^ *+' conftest.er1 >conftest.err
 
3255
  rm -f conftest.er1
 
3256
  cat conftest.err >&5
 
3257
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3258
  (exit $ac_status); } &&
 
3259
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
3260
  { (case "(($ac_try" in
 
3261
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3262
  *) ac_try_echo=$ac_try;;
 
3263
esac
 
3264
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3265
  (eval "$ac_try") 2>&5
 
3266
  ac_status=$?
 
3267
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3268
  (exit $ac_status); }; } &&
 
3269
         { ac_try='test -s conftest.$ac_objext'
 
3270
  { (case "(($ac_try" in
 
3271
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3272
  *) ac_try_echo=$ac_try;;
 
3273
esac
 
3274
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3275
  (eval "$ac_try") 2>&5
 
3276
  ac_status=$?
 
3277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3278
  (exit $ac_status); }; }; then
 
3279
  ac_cv_prog_cc_g=yes
 
3280
else
 
3281
  echo "$as_me: failed program was:" >&5
 
3282
sed 's/^/| /' conftest.$ac_ext >&5
 
3283
 
 
3284
 
 
3285
fi
 
3286
 
 
3287
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3288
fi
 
3289
 
 
3290
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3291
fi
 
3292
 
 
3293
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3294
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3295
fi
 
3296
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3297
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2644
3298
if test "$ac_test_CFLAGS" = set; then
2645
3299
  CFLAGS=$ac_save_CFLAGS
2646
3300
elif test $ac_cv_prog_cc_g = yes; then
2656
3310
    CFLAGS=
2657
3311
  fi
2658
3312
fi
2659
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2660
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2661
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
3313
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3314
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
3315
if test "${ac_cv_prog_cc_c89+set}" = set; then
2662
3316
  echo $ECHO_N "(cached) $ECHO_C" >&6
2663
3317
else
2664
 
  ac_cv_prog_cc_stdc=no
 
3318
  ac_cv_prog_cc_c89=no
2665
3319
ac_save_CC=$CC
2666
3320
cat >conftest.$ac_ext <<_ACEOF
2667
3321
/* confdefs.h.  */
2695
3349
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2696
3350
   function prototypes and stuff, but not '\xHH' hex character constants.
2697
3351
   These don't provoke an error unfortunately, instead are silently treated
2698
 
   as 'x'.  The following induces an error, until -std1 is added to get
 
3352
   as 'x'.  The following induces an error, until -std is added to get
2699
3353
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2700
3354
   array size at least.  It's necessary to write '\x00'==0 to get something
2701
 
   that's true only with -std1.  */
 
3355
   that's true only with -std.  */
2702
3356
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2703
3357
 
 
3358
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3359
   inside strings and character constants.  */
 
3360
#define FOO(x) 'x'
 
3361
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3362
 
2704
3363
int test (int i, double x);
2705
3364
struct s1 {int (*f) (int a);};
2706
3365
struct s2 {int (*f) (double a);};
2715
3374
  return 0;
2716
3375
}
2717
3376
_ACEOF
2718
 
# Don't try gcc -ansi; that turns off useful extensions and
2719
 
# breaks some systems' header files.
2720
 
# AIX                   -qlanglvl=ansi
2721
 
# Ultrix and OSF/1      -std1
2722
 
# HP-UX 10.20 and later -Ae
2723
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2724
 
# SVR4                  -Xc -D__EXTENSIONS__
2725
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3377
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3378
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2726
3379
do
2727
3380
  CC="$ac_save_CC $ac_arg"
2728
3381
  rm -f conftest.$ac_objext
2729
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2730
 
  (eval $ac_compile) 2>conftest.er1
 
3382
if { (ac_try="$ac_compile"
 
3383
case "(($ac_try" in
 
3384
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3385
  *) ac_try_echo=$ac_try;;
 
3386
esac
 
3387
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3388
  (eval "$ac_compile") 2>conftest.er1
2731
3389
  ac_status=$?
2732
3390
  grep -v '^ *+' conftest.er1 >conftest.err
2733
3391
  rm -f conftest.er1
2734
3392
  cat conftest.err >&5
2735
3393
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736
3394
  (exit $ac_status); } &&
2737
 
         { ac_try='test -z "$ac_c_werror_flag"
2738
 
                         || test ! -s conftest.err'
2739
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740
 
  (eval $ac_try) 2>&5
 
3395
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
3396
  { (case "(($ac_try" in
 
3397
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3398
  *) ac_try_echo=$ac_try;;
 
3399
esac
 
3400
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3401
  (eval "$ac_try") 2>&5
2741
3402
  ac_status=$?
2742
3403
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743
3404
  (exit $ac_status); }; } &&
2744
3405
         { ac_try='test -s conftest.$ac_objext'
2745
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746
 
  (eval $ac_try) 2>&5
 
3406
  { (case "(($ac_try" in
 
3407
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3408
  *) ac_try_echo=$ac_try;;
 
3409
esac
 
3410
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3411
  (eval "$ac_try") 2>&5
2747
3412
  ac_status=$?
2748
3413
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749
3414
  (exit $ac_status); }; }; then
2750
 
  ac_cv_prog_cc_stdc=$ac_arg
2751
 
break
 
3415
  ac_cv_prog_cc_c89=$ac_arg
2752
3416
else
2753
3417
  echo "$as_me: failed program was:" >&5
2754
3418
sed 's/^/| /' conftest.$ac_ext >&5
2755
3419
 
 
3420
 
2756
3421
fi
2757
 
rm -f conftest.err conftest.$ac_objext
 
3422
 
 
3423
rm -f core conftest.err conftest.$ac_objext
 
3424
  test "x$ac_cv_prog_cc_c89" != "xno" && break
2758
3425
done
2759
 
rm -f conftest.$ac_ext conftest.$ac_objext
 
3426
rm -f conftest.$ac_ext
2760
3427
CC=$ac_save_CC
2761
3428
 
2762
3429
fi
2763
 
 
2764
 
case "x$ac_cv_prog_cc_stdc" in
2765
 
  x|xno)
2766
 
    echo "$as_me:$LINENO: result: none needed" >&5
2767
 
echo "${ECHO_T}none needed" >&6 ;;
 
3430
# AC_CACHE_VAL
 
3431
case "x$ac_cv_prog_cc_c89" in
 
3432
  x)
 
3433
    { echo "$as_me:$LINENO: result: none needed" >&5
 
3434
echo "${ECHO_T}none needed" >&6; } ;;
 
3435
  xno)
 
3436
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
3437
echo "${ECHO_T}unsupported" >&6; } ;;
2768
3438
  *)
2769
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2770
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2771
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
3439
    CC="$CC $ac_cv_prog_cc_c89"
 
3440
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
3441
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2772
3442
esac
2773
3443
 
2774
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
2775
 
# in C++ we need to declare it.  In case someone uses the same compiler
2776
 
# for both compiling C and C++ we need to have the C++ compiler decide
2777
 
# the declaration of exit, since it's the most demanding environment.
2778
 
cat >conftest.$ac_ext <<_ACEOF
2779
 
#ifndef __cplusplus
2780
 
  choke me
2781
 
#endif
2782
 
_ACEOF
2783
 
rm -f conftest.$ac_objext
2784
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785
 
  (eval $ac_compile) 2>conftest.er1
2786
 
  ac_status=$?
2787
 
  grep -v '^ *+' conftest.er1 >conftest.err
2788
 
  rm -f conftest.er1
2789
 
  cat conftest.err >&5
2790
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791
 
  (exit $ac_status); } &&
2792
 
         { ac_try='test -z "$ac_c_werror_flag"
2793
 
                         || test ! -s conftest.err'
2794
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795
 
  (eval $ac_try) 2>&5
2796
 
  ac_status=$?
2797
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798
 
  (exit $ac_status); }; } &&
2799
 
         { ac_try='test -s conftest.$ac_objext'
2800
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801
 
  (eval $ac_try) 2>&5
2802
 
  ac_status=$?
2803
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804
 
  (exit $ac_status); }; }; then
2805
 
  for ac_declaration in \
2806
 
   '' \
2807
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2808
 
   'extern "C" void std::exit (int); using std::exit;' \
2809
 
   'extern "C" void exit (int) throw ();' \
2810
 
   'extern "C" void exit (int);' \
2811
 
   'void exit (int);'
2812
 
do
2813
 
  cat >conftest.$ac_ext <<_ACEOF
2814
 
/* confdefs.h.  */
2815
 
_ACEOF
2816
 
cat confdefs.h >>conftest.$ac_ext
2817
 
cat >>conftest.$ac_ext <<_ACEOF
2818
 
/* end confdefs.h.  */
2819
 
$ac_declaration
2820
 
#include <stdlib.h>
2821
 
int
2822
 
main ()
2823
 
{
2824
 
exit (42);
2825
 
  ;
2826
 
  return 0;
2827
 
}
2828
 
_ACEOF
2829
 
rm -f conftest.$ac_objext
2830
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2831
 
  (eval $ac_compile) 2>conftest.er1
2832
 
  ac_status=$?
2833
 
  grep -v '^ *+' conftest.er1 >conftest.err
2834
 
  rm -f conftest.er1
2835
 
  cat conftest.err >&5
2836
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837
 
  (exit $ac_status); } &&
2838
 
         { ac_try='test -z "$ac_c_werror_flag"
2839
 
                         || test ! -s conftest.err'
2840
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841
 
  (eval $ac_try) 2>&5
2842
 
  ac_status=$?
2843
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844
 
  (exit $ac_status); }; } &&
2845
 
         { ac_try='test -s conftest.$ac_objext'
2846
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847
 
  (eval $ac_try) 2>&5
2848
 
  ac_status=$?
2849
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850
 
  (exit $ac_status); }; }; then
2851
 
  :
2852
 
else
2853
 
  echo "$as_me: failed program was:" >&5
2854
 
sed 's/^/| /' conftest.$ac_ext >&5
2855
 
 
2856
 
continue
2857
 
fi
2858
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2859
 
  cat >conftest.$ac_ext <<_ACEOF
2860
 
/* confdefs.h.  */
2861
 
_ACEOF
2862
 
cat confdefs.h >>conftest.$ac_ext
2863
 
cat >>conftest.$ac_ext <<_ACEOF
2864
 
/* end confdefs.h.  */
2865
 
$ac_declaration
2866
 
int
2867
 
main ()
2868
 
{
2869
 
exit (42);
2870
 
  ;
2871
 
  return 0;
2872
 
}
2873
 
_ACEOF
2874
 
rm -f conftest.$ac_objext
2875
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2876
 
  (eval $ac_compile) 2>conftest.er1
2877
 
  ac_status=$?
2878
 
  grep -v '^ *+' conftest.er1 >conftest.err
2879
 
  rm -f conftest.er1
2880
 
  cat conftest.err >&5
2881
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882
 
  (exit $ac_status); } &&
2883
 
         { ac_try='test -z "$ac_c_werror_flag"
2884
 
                         || test ! -s conftest.err'
2885
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886
 
  (eval $ac_try) 2>&5
2887
 
  ac_status=$?
2888
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889
 
  (exit $ac_status); }; } &&
2890
 
         { ac_try='test -s conftest.$ac_objext'
2891
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892
 
  (eval $ac_try) 2>&5
2893
 
  ac_status=$?
2894
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895
 
  (exit $ac_status); }; }; then
2896
 
  break
2897
 
else
2898
 
  echo "$as_me: failed program was:" >&5
2899
 
sed 's/^/| /' conftest.$ac_ext >&5
2900
 
 
2901
 
fi
2902
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2903
 
done
2904
 
rm -f conftest*
2905
 
if test -n "$ac_declaration"; then
2906
 
  echo '#ifdef __cplusplus' >>confdefs.h
2907
 
  echo $ac_declaration      >>confdefs.h
2908
 
  echo '#endif'             >>confdefs.h
2909
 
fi
2910
 
 
2911
 
else
2912
 
  echo "$as_me: failed program was:" >&5
2913
 
sed 's/^/| /' conftest.$ac_ext >&5
2914
 
 
2915
 
fi
2916
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3444
 
2917
3445
ac_ext=c
2918
3446
ac_cpp='$CPP $CPPFLAGS'
2919
3447
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2921
3449
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2922
3450
DEPDIR="${am__leading_dot}deps"
2923
3451
 
2924
 
          ac_config_commands="$ac_config_commands depfiles"
 
3452
ac_config_commands="$ac_config_commands depfiles"
2925
3453
 
2926
3454
 
2927
3455
am_make=${MAKE-make}
2931
3459
.PHONY: am__doit
2932
3460
END
2933
3461
# If we don't find an include directive, just comment out the code.
2934
 
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2935
 
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
3462
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
3463
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2936
3464
am__include="#"
2937
3465
am__quote=
2938
3466
_am_result=none
2959
3487
fi
2960
3488
 
2961
3489
 
2962
 
echo "$as_me:$LINENO: result: $_am_result" >&5
2963
 
echo "${ECHO_T}$_am_result" >&6
 
3490
{ echo "$as_me:$LINENO: result: $_am_result" >&5
 
3491
echo "${ECHO_T}$_am_result" >&6; }
2964
3492
rm -f confinc confmf
2965
3493
 
2966
 
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
3494
# Check whether --enable-dependency-tracking was given.
2967
3495
if test "${enable_dependency_tracking+set}" = set; then
2968
 
  enableval="$enable_dependency_tracking"
 
3496
  enableval=$enable_dependency_tracking;
 
3497
fi
2969
3498
 
2970
 
fi;
2971
3499
if test "x$enable_dependency_tracking" != xno; then
2972
3500
  am_depcomp="$ac_aux_dir/depcomp"
2973
3501
  AMDEPBACKSLASH='\'
2987
3515
 
2988
3516
depcc="$CC"   am_compiler_list=
2989
3517
 
2990
 
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2991
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3518
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3519
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2992
3520
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2993
3521
  echo $ECHO_N "(cached) $ECHO_C" >&6
2994
3522
else
3026
3554
    : > sub/conftest.c
3027
3555
    for i in 1 2 3 4 5 6; do
3028
3556
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3029
 
      : > sub/conftst$i.h
 
3557
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3558
      # Solaris 8's {/usr,}/bin/sh.
 
3559
      touch sub/conftst$i.h
3030
3560
    done
3031
3561
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3032
3562
 
3054
3584
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3055
3585
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3056
3586
      # icc doesn't choke on unknown options, it will just issue warnings
3057
 
      # (even with -Werror).  So we grep stderr for any message
3058
 
      # that says an option was ignored.
3059
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
3587
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3588
      # that says an option was ignored or not supported.
 
3589
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3590
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3591
      # The diagnosis changed in icc 8.0:
 
3592
      #   icc: Command line remark: option '-MP' not supported
 
3593
      if (grep 'ignoring option' conftest.err ||
 
3594
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3060
3595
        am_cv_CC_dependencies_compiler_type=$depmode
3061
3596
        break
3062
3597
      fi
3070
3605
fi
3071
3606
 
3072
3607
fi
3073
 
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3074
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3608
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3609
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3075
3610
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3076
3611
 
3077
3612
 
3087
3622
fi
3088
3623
 
3089
3624
 
3090
 
# Check whether --enable-shared or --disable-shared was given.
 
3625
# Check whether --enable-shared was given.
3091
3626
if test "${enable_shared+set}" = set; then
3092
 
  enableval="$enable_shared"
3093
 
  p=${PACKAGE-default}
 
3627
  enableval=$enable_shared; p=${PACKAGE-default}
3094
3628
    case $enableval in
3095
3629
    yes) enable_shared=yes ;;
3096
3630
    no) enable_shared=no ;;
3109
3643
    esac
3110
3644
else
3111
3645
  enable_shared=yes
3112
 
fi;
3113
 
 
3114
 
# Check whether --enable-static or --disable-static was given.
 
3646
fi
 
3647
 
 
3648
 
 
3649
# Check whether --enable-static was given.
3115
3650
if test "${enable_static+set}" = set; then
3116
 
  enableval="$enable_static"
3117
 
  p=${PACKAGE-default}
 
3651
  enableval=$enable_static; p=${PACKAGE-default}
3118
3652
    case $enableval in
3119
3653
    yes) enable_static=yes ;;
3120
3654
    no) enable_static=no ;;
3133
3667
    esac
3134
3668
else
3135
3669
  enable_static=yes
3136
 
fi;
3137
 
 
3138
 
# Check whether --enable-fast-install or --disable-fast-install was given.
 
3670
fi
 
3671
 
 
3672
 
 
3673
# Check whether --enable-fast-install was given.
3139
3674
if test "${enable_fast_install+set}" = set; then
3140
 
  enableval="$enable_fast_install"
3141
 
  p=${PACKAGE-default}
 
3675
  enableval=$enable_fast_install; p=${PACKAGE-default}
3142
3676
    case $enableval in
3143
3677
    yes) enable_fast_install=yes ;;
3144
3678
    no) enable_fast_install=no ;;
3157
3691
    esac
3158
3692
else
3159
3693
  enable_fast_install=yes
3160
 
fi;
 
3694
fi
 
3695
 
3161
3696
 
3162
3697
# Make sure we can run config.sub.
3163
 
$ac_config_sub sun4 >/dev/null 2>&1 ||
3164
 
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3165
 
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
3698
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
3699
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
3700
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3166
3701
   { (exit 1); exit 1; }; }
3167
3702
 
3168
 
echo "$as_me:$LINENO: checking build system type" >&5
3169
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
3703
{ echo "$as_me:$LINENO: checking build system type" >&5
 
3704
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3170
3705
if test "${ac_cv_build+set}" = set; then
3171
3706
  echo $ECHO_N "(cached) $ECHO_C" >&6
3172
3707
else
3173
 
  ac_cv_build_alias=$build_alias
3174
 
test -z "$ac_cv_build_alias" &&
3175
 
  ac_cv_build_alias=`$ac_config_guess`
3176
 
test -z "$ac_cv_build_alias" &&
 
3708
  ac_build_alias=$build_alias
 
3709
test "x$ac_build_alias" = x &&
 
3710
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
3711
test "x$ac_build_alias" = x &&
3177
3712
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3178
3713
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3179
3714
   { (exit 1); exit 1; }; }
3180
 
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3181
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3182
 
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
3715
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
3716
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
3717
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3183
3718
   { (exit 1); exit 1; }; }
3184
3719
 
3185
3720
fi
3186
 
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3187
 
echo "${ECHO_T}$ac_cv_build" >&6
 
3721
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
3722
echo "${ECHO_T}$ac_cv_build" >&6; }
 
3723
case $ac_cv_build in
 
3724
*-*-*) ;;
 
3725
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
3726
echo "$as_me: error: invalid value of canonical build" >&2;}
 
3727
   { (exit 1); exit 1; }; };;
 
3728
esac
3188
3729
build=$ac_cv_build
3189
 
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3190
 
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3191
 
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3192
 
 
3193
 
 
3194
 
echo "$as_me:$LINENO: checking host system type" >&5
3195
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
3730
ac_save_IFS=$IFS; IFS='-'
 
3731
set x $ac_cv_build
 
3732
shift
 
3733
build_cpu=$1
 
3734
build_vendor=$2
 
3735
shift; shift
 
3736
# Remember, the first character of IFS is used to create $*,
 
3737
# except with old shells:
 
3738
build_os=$*
 
3739
IFS=$ac_save_IFS
 
3740
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
3741
 
 
3742
 
 
3743
{ echo "$as_me:$LINENO: checking host system type" >&5
 
3744
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3196
3745
if test "${ac_cv_host+set}" = set; then
3197
3746
  echo $ECHO_N "(cached) $ECHO_C" >&6
3198
3747
else
3199
 
  ac_cv_host_alias=$host_alias
3200
 
test -z "$ac_cv_host_alias" &&
3201
 
  ac_cv_host_alias=$ac_cv_build_alias
3202
 
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3203
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3204
 
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
3748
  if test "x$host_alias" = x; then
 
3749
  ac_cv_host=$ac_cv_build
 
3750
else
 
3751
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
3752
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
3753
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3205
3754
   { (exit 1); exit 1; }; }
 
3755
fi
3206
3756
 
3207
3757
fi
3208
 
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3209
 
echo "${ECHO_T}$ac_cv_host" >&6
 
3758
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
3759
echo "${ECHO_T}$ac_cv_host" >&6; }
 
3760
case $ac_cv_host in
 
3761
*-*-*) ;;
 
3762
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
3763
echo "$as_me: error: invalid value of canonical host" >&2;}
 
3764
   { (exit 1); exit 1; }; };;
 
3765
esac
3210
3766
host=$ac_cv_host
3211
 
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3212
 
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3213
 
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3214
 
 
3215
 
 
3216
 
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3217
 
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
3767
ac_save_IFS=$IFS; IFS='-'
 
3768
set x $ac_cv_host
 
3769
shift
 
3770
host_cpu=$1
 
3771
host_vendor=$2
 
3772
shift; shift
 
3773
# Remember, the first character of IFS is used to create $*,
 
3774
# except with old shells:
 
3775
host_os=$*
 
3776
IFS=$ac_save_IFS
 
3777
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
3778
 
 
3779
 
 
3780
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3781
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3218
3782
if test "${lt_cv_path_SED+set}" = set; then
3219
3783
  echo $ECHO_N "(cached) $ECHO_C" >&6
3220
3784
else
3238
3802
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3239
3803
# along with /bin/sed that truncates output.
3240
3804
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3241
 
  test ! -f $lt_ac_sed && break
 
3805
  test ! -f $lt_ac_sed && continue
3242
3806
  cat /dev/null > conftest.in
3243
3807
  lt_ac_count=0
3244
3808
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3263
3827
    fi
3264
3828
  done
3265
3829
done
 
3830
 
 
3831
fi
 
3832
 
3266
3833
SED=$lt_cv_path_SED
3267
 
 
3268
 
fi
3269
 
 
3270
 
echo "$as_me:$LINENO: result: $SED" >&5
3271
 
echo "${ECHO_T}$SED" >&6
3272
 
 
3273
 
echo "$as_me:$LINENO: checking for egrep" >&5
3274
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3275
 
if test "${ac_cv_prog_egrep+set}" = set; then
3276
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3277
 
else
3278
 
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3279
 
    then ac_cv_prog_egrep='grep -E'
3280
 
    else ac_cv_prog_egrep='egrep'
3281
 
    fi
3282
 
fi
3283
 
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3284
 
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3285
 
 EGREP=$ac_cv_prog_egrep
3286
 
 
3287
 
 
3288
 
 
3289
 
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
3834
{ echo "$as_me:$LINENO: result: $SED" >&5
 
3835
echo "${ECHO_T}$SED" >&6; }
 
3836
 
 
3837
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
3838
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
3839
if test "${ac_cv_path_GREP+set}" = set; then
 
3840
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3841
else
 
3842
  # Extract the first word of "grep ggrep" to use in msg output
 
3843
if test -z "$GREP"; then
 
3844
set dummy grep ggrep; ac_prog_name=$2
 
3845
if test "${ac_cv_path_GREP+set}" = set; then
 
3846
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3847
else
 
3848
  ac_path_GREP_found=false
 
3849
# Loop through the user's path and test for each of PROGNAME-LIST
 
3850
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3851
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3852
do
 
3853
  IFS=$as_save_IFS
 
3854
  test -z "$as_dir" && as_dir=.
 
3855
  for ac_prog in grep ggrep; do
 
3856
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3857
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3858
    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
 
3859
    # Check for GNU ac_path_GREP and select it if it is found.
 
3860
  # Check for GNU $ac_path_GREP
 
3861
case `"$ac_path_GREP" --version 2>&1` in
 
3862
*GNU*)
 
3863
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3864
*)
 
3865
  ac_count=0
 
3866
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
3867
  while :
 
3868
  do
 
3869
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3870
    mv "conftest.tmp" "conftest.in"
 
3871
    cp "conftest.in" "conftest.nl"
 
3872
    echo 'GREP' >> "conftest.nl"
 
3873
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3874
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3875
    ac_count=`expr $ac_count + 1`
 
3876
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3877
      # Best one so far, save it but keep looking for a better one
 
3878
      ac_cv_path_GREP="$ac_path_GREP"
 
3879
      ac_path_GREP_max=$ac_count
 
3880
    fi
 
3881
    # 10*(2^10) chars as input seems more than enough
 
3882
    test $ac_count -gt 10 && break
 
3883
  done
 
3884
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3885
esac
 
3886
 
 
3887
 
 
3888
    $ac_path_GREP_found && break 3
 
3889
  done
 
3890
done
 
3891
 
 
3892
done
 
3893
IFS=$as_save_IFS
 
3894
 
 
3895
 
 
3896
fi
 
3897
 
 
3898
GREP="$ac_cv_path_GREP"
 
3899
if test -z "$GREP"; then
 
3900
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3901
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3902
   { (exit 1); exit 1; }; }
 
3903
fi
 
3904
 
 
3905
else
 
3906
  ac_cv_path_GREP=$GREP
 
3907
fi
 
3908
 
 
3909
 
 
3910
fi
 
3911
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
3912
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
3913
 GREP="$ac_cv_path_GREP"
 
3914
 
 
3915
 
 
3916
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
3917
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
3918
if test "${ac_cv_path_EGREP+set}" = set; then
 
3919
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3920
else
 
3921
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
3922
   then ac_cv_path_EGREP="$GREP -E"
 
3923
   else
 
3924
     # Extract the first word of "egrep" to use in msg output
 
3925
if test -z "$EGREP"; then
 
3926
set dummy egrep; ac_prog_name=$2
 
3927
if test "${ac_cv_path_EGREP+set}" = set; then
 
3928
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3929
else
 
3930
  ac_path_EGREP_found=false
 
3931
# Loop through the user's path and test for each of PROGNAME-LIST
 
3932
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3933
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3934
do
 
3935
  IFS=$as_save_IFS
 
3936
  test -z "$as_dir" && as_dir=.
 
3937
  for ac_prog in egrep; do
 
3938
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3939
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
3940
    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
 
3941
    # Check for GNU ac_path_EGREP and select it if it is found.
 
3942
  # Check for GNU $ac_path_EGREP
 
3943
case `"$ac_path_EGREP" --version 2>&1` in
 
3944
*GNU*)
 
3945
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
3946
*)
 
3947
  ac_count=0
 
3948
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
3949
  while :
 
3950
  do
 
3951
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3952
    mv "conftest.tmp" "conftest.in"
 
3953
    cp "conftest.in" "conftest.nl"
 
3954
    echo 'EGREP' >> "conftest.nl"
 
3955
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3956
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3957
    ac_count=`expr $ac_count + 1`
 
3958
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
3959
      # Best one so far, save it but keep looking for a better one
 
3960
      ac_cv_path_EGREP="$ac_path_EGREP"
 
3961
      ac_path_EGREP_max=$ac_count
 
3962
    fi
 
3963
    # 10*(2^10) chars as input seems more than enough
 
3964
    test $ac_count -gt 10 && break
 
3965
  done
 
3966
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3967
esac
 
3968
 
 
3969
 
 
3970
    $ac_path_EGREP_found && break 3
 
3971
  done
 
3972
done
 
3973
 
 
3974
done
 
3975
IFS=$as_save_IFS
 
3976
 
 
3977
 
 
3978
fi
 
3979
 
 
3980
EGREP="$ac_cv_path_EGREP"
 
3981
if test -z "$EGREP"; then
 
3982
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3983
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3984
   { (exit 1); exit 1; }; }
 
3985
fi
 
3986
 
 
3987
else
 
3988
  ac_cv_path_EGREP=$EGREP
 
3989
fi
 
3990
 
 
3991
 
 
3992
   fi
 
3993
fi
 
3994
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
3995
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
3996
 EGREP="$ac_cv_path_EGREP"
 
3997
 
 
3998
 
 
3999
 
 
4000
# Check whether --with-gnu-ld was given.
3290
4001
if test "${with_gnu_ld+set}" = set; then
3291
 
  withval="$with_gnu_ld"
3292
 
  test "$withval" = no || with_gnu_ld=yes
 
4002
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3293
4003
else
3294
4004
  with_gnu_ld=no
3295
 
fi;
 
4005
fi
 
4006
 
3296
4007
ac_prog=ld
3297
4008
if test "$GCC" = yes; then
3298
4009
  # Check if gcc -print-prog-name=ld gives a path.
3299
 
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3300
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
4010
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
4011
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3301
4012
  case $host in
3302
4013
  *-*-mingw*)
3303
4014
    # gcc leaves a trailing carriage return which upsets mingw
3326
4037
    ;;
3327
4038
  esac
3328
4039
elif test "$with_gnu_ld" = yes; then
3329
 
  echo "$as_me:$LINENO: checking for GNU ld" >&5
3330
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
4040
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
4041
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3331
4042
else
3332
 
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3333
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
4043
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
4044
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3334
4045
fi
3335
4046
if test "${lt_cv_path_LD+set}" = set; then
3336
4047
  echo $ECHO_N "(cached) $ECHO_C" >&6
3343
4054
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3344
4055
      lt_cv_path_LD="$ac_dir/$ac_prog"
3345
4056
      # Check to see if the program is GNU ld.  I'd rather use --version,
3346
 
      # but apparently some GNU ld's only accept -v.
 
4057
      # but apparently some variants of GNU ld only accept -v.
3347
4058
      # Break only if it was the GNU/non-GNU ld that we prefer.
3348
4059
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3349
4060
      *GNU* | *'with BFD'*)
3363
4074
 
3364
4075
LD="$lt_cv_path_LD"
3365
4076
if test -n "$LD"; then
3366
 
  echo "$as_me:$LINENO: result: $LD" >&5
3367
 
echo "${ECHO_T}$LD" >&6
 
4077
  { echo "$as_me:$LINENO: result: $LD" >&5
 
4078
echo "${ECHO_T}$LD" >&6; }
3368
4079
else
3369
 
  echo "$as_me:$LINENO: result: no" >&5
3370
 
echo "${ECHO_T}no" >&6
 
4080
  { echo "$as_me:$LINENO: result: no" >&5
 
4081
echo "${ECHO_T}no" >&6; }
3371
4082
fi
3372
4083
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3373
4084
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3374
4085
   { (exit 1); exit 1; }; }
3375
 
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3376
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
4086
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4087
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3377
4088
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3378
4089
  echo $ECHO_N "(cached) $ECHO_C" >&6
3379
4090
else
3380
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
4091
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3381
4092
case `$LD -v 2>&1 </dev/null` in
3382
4093
*GNU* | *'with BFD'*)
3383
4094
  lt_cv_prog_gnu_ld=yes
3387
4098
  ;;
3388
4099
esac
3389
4100
fi
3390
 
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3391
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
4101
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4102
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3392
4103
with_gnu_ld=$lt_cv_prog_gnu_ld
3393
4104
 
3394
4105
 
3395
 
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3396
 
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
4106
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4107
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3397
4108
if test "${lt_cv_ld_reload_flag+set}" = set; then
3398
4109
  echo $ECHO_N "(cached) $ECHO_C" >&6
3399
4110
else
3400
4111
  lt_cv_ld_reload_flag='-r'
3401
4112
fi
3402
 
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3403
 
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
4113
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4114
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3404
4115
reload_flag=$lt_cv_ld_reload_flag
3405
4116
case $reload_flag in
3406
4117
"" | " "*) ;;
3407
4118
*) reload_flag=" $reload_flag" ;;
3408
4119
esac
3409
4120
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4121
case $host_os in
 
4122
  darwin*)
 
4123
    if test "$GCC" = yes; then
 
4124
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4125
    else
 
4126
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4127
    fi
 
4128
    ;;
 
4129
esac
3410
4130
 
3411
 
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3412
 
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
4131
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4132
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3413
4133
if test "${lt_cv_path_NM+set}" = set; then
3414
4134
  echo $ECHO_N "(cached) $ECHO_C" >&6
3415
4135
else
3417
4137
  # Let the user override the test.
3418
4138
  lt_cv_path_NM="$NM"
3419
4139
else
3420
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3421
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3422
 
    IFS="$lt_save_ifs"
3423
 
    test -z "$ac_dir" && ac_dir=.
3424
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3425
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3426
 
      # Check to see if the nm accepts a BSD-compat flag.
3427
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3428
 
      #   nm: unknown option "B" ignored
3429
 
      # Tru64's nm complains that /dev/null is an invalid object file
3430
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3431
 
      */dev/null* | *'Invalid file or object type'*)
3432
 
        lt_cv_path_NM="$tmp_nm -B"
3433
 
        break
3434
 
        ;;
3435
 
      *)
3436
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3437
 
        */dev/null*)
3438
 
          lt_cv_path_NM="$tmp_nm -p"
 
4140
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4141
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4142
    lt_nm_to_check="$lt_nm_to_check nm"
 
4143
  fi
 
4144
  for lt_tmp_nm in $lt_nm_to_check; do
 
4145
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4146
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4147
      IFS="$lt_save_ifs"
 
4148
      test -z "$ac_dir" && ac_dir=.
 
4149
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4150
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4151
        # Check to see if the nm accepts a BSD-compat flag.
 
4152
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4153
        #   nm: unknown option "B" ignored
 
4154
        # Tru64's nm complains that /dev/null is an invalid object file
 
4155
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4156
        */dev/null* | *'Invalid file or object type'*)
 
4157
          lt_cv_path_NM="$tmp_nm -B"
3439
4158
          break
3440
4159
          ;;
3441
4160
        *)
3442
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3443
 
          continue # so that we can try to find one that supports BSD flags
 
4161
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4162
          */dev/null*)
 
4163
            lt_cv_path_NM="$tmp_nm -p"
 
4164
            break
 
4165
            ;;
 
4166
          *)
 
4167
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4168
            continue # so that we can try to find one that supports BSD flags
 
4169
            ;;
 
4170
          esac
3444
4171
          ;;
3445
4172
        esac
3446
 
      esac
3447
 
    fi
 
4173
      fi
 
4174
    done
 
4175
    IFS="$lt_save_ifs"
3448
4176
  done
3449
 
  IFS="$lt_save_ifs"
3450
4177
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3451
4178
fi
3452
4179
fi
3453
 
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3454
 
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
4180
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4181
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3455
4182
NM="$lt_cv_path_NM"
3456
4183
 
3457
 
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3458
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
4184
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4185
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3459
4186
LN_S=$as_ln_s
3460
4187
if test "$LN_S" = "ln -s"; then
3461
 
  echo "$as_me:$LINENO: result: yes" >&5
3462
 
echo "${ECHO_T}yes" >&6
 
4188
  { echo "$as_me:$LINENO: result: yes" >&5
 
4189
echo "${ECHO_T}yes" >&6; }
3463
4190
else
3464
 
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3465
 
echo "${ECHO_T}no, using $LN_S" >&6
 
4191
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4192
echo "${ECHO_T}no, using $LN_S" >&6; }
3466
4193
fi
3467
4194
 
3468
 
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3469
 
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
4195
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
4196
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
3470
4197
if test "${lt_cv_deplibs_check_method+set}" = set; then
3471
4198
  echo $ECHO_N "(cached) $ECHO_C" >&6
3472
4199
else
3493
4220
  lt_cv_deplibs_check_method=pass_all
3494
4221
  ;;
3495
4222
 
3496
 
bsdi4*)
 
4223
bsdi[45]*)
3497
4224
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3498
4225
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3499
4226
  lt_cv_file_magic_test_file=/shlib/libc.so
3516
4243
  lt_cv_deplibs_check_method=pass_all
3517
4244
  ;;
3518
4245
 
3519
 
freebsd* | kfreebsd*-gnu)
 
4246
freebsd* | dragonfly*)
3520
4247
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3521
4248
    case $host_cpu in
3522
4249
    i*86 )
3523
4250
      # Not sure whether the presence of OpenBSD here was a mistake.
3524
4251
      # Let's accept both of them until this is cleared up.
3525
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
4252
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3526
4253
      lt_cv_file_magic_cmd=/usr/bin/file
3527
4254
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3528
4255
      ;;
3538
4265
 
3539
4266
hpux10.20* | hpux11*)
3540
4267
  lt_cv_file_magic_cmd=/usr/bin/file
3541
 
  case "$host_cpu" in
 
4268
  case $host_cpu in
3542
4269
  ia64*)
3543
4270
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3544
4271
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3554
4281
  esac
3555
4282
  ;;
3556
4283
 
 
4284
interix3*)
 
4285
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
4286
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
4287
  ;;
 
4288
 
3557
4289
irix5* | irix6* | nonstopux*)
3558
4290
  case $LD in
3559
4291
  *-32|*"-32 ") libmagic=32-bit;;
3565
4297
  ;;
3566
4298
 
3567
4299
# This must be Linux ELF.
3568
 
linux*)
3569
 
  case $host_cpu in
3570
 
  alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
3571
 
    lt_cv_deplibs_check_method=pass_all ;;
3572
 
  *)
3573
 
    # glibc up to 2.1.1 does not perform some relocations on ARM
3574
 
    # this will be overridden with pass_all, but let us keep it just in case
3575
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3576
 
  esac
3577
 
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 
4300
linux* | k*bsd*-gnu)
3578
4301
  lt_cv_deplibs_check_method=pass_all
3579
4302
  ;;
3580
4303
 
3581
 
netbsd*)
 
4304
netbsd* | netbsdelf*-gnu)
3582
4305
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3583
4306
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3584
4307
  else
3597
4320
  ;;
3598
4321
 
3599
4322
openbsd*)
3600
 
  lt_cv_file_magic_cmd=/usr/bin/file
3601
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3602
4323
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3603
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
4324
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3604
4325
  else
3605
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
4326
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3606
4327
  fi
3607
4328
  ;;
3608
4329
 
3610
4331
  lt_cv_deplibs_check_method=pass_all
3611
4332
  ;;
3612
4333
 
3613
 
sco3.2v5*)
3614
 
  lt_cv_deplibs_check_method=pass_all
3615
 
  ;;
3616
 
 
3617
4334
solaris*)
3618
4335
  lt_cv_deplibs_check_method=pass_all
3619
4336
  ;;
3620
4337
 
3621
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
4338
sysv4 | sysv4.3*)
3622
4339
  case $host_vendor in
3623
4340
  motorola)
3624
4341
    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]'
3639
4356
  siemens)
3640
4357
    lt_cv_deplibs_check_method=pass_all
3641
4358
    ;;
 
4359
  pc)
 
4360
    lt_cv_deplibs_check_method=pass_all
 
4361
    ;;
3642
4362
  esac
3643
4363
  ;;
3644
4364
 
3645
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
4365
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3646
4366
  lt_cv_deplibs_check_method=pass_all
3647
4367
  ;;
3648
4368
esac
3649
4369
 
3650
4370
fi
3651
 
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3652
 
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
4371
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
4372
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
3653
4373
file_magic_cmd=$lt_cv_file_magic_cmd
3654
4374
deplibs_check_method=$lt_cv_deplibs_check_method
3655
4375
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3660
4380
# If no C compiler was specified, use CC.
3661
4381
LTCC=${LTCC-"$CC"}
3662
4382
 
 
4383
# If no C compiler flags were specified, use CFLAGS.
 
4384
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
4385
 
3663
4386
# Allow CC to be a program name with arguments.
3664
4387
compiler=$CC
3665
4388
 
3666
4389
 
3667
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
4390
# Check whether --enable-libtool-lock was given.
3668
4391
if test "${enable_libtool_lock+set}" = set; then
3669
 
  enableval="$enable_libtool_lock"
 
4392
  enableval=$enable_libtool_lock;
 
4393
fi
3670
4394
 
3671
 
fi;
3672
4395
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3673
4396
 
3674
4397
# Some flags need to be propagated to the compiler or linker for good
3695
4418
  ;;
3696
4419
*-*-irix6*)
3697
4420
  # Find out which ABI we are using.
3698
 
  echo '#line 3698 "configure"' > conftest.$ac_ext
 
4421
  echo '#line 4421 "configure"' > conftest.$ac_ext
3699
4422
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3700
4423
  (eval $ac_compile) 2>&5
3701
4424
  ac_status=$?
3738
4461
  ac_status=$?
3739
4462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740
4463
  (exit $ac_status); }; then
3741
 
    case "`/usr/bin/file conftest.o`" in
 
4464
    case `/usr/bin/file conftest.o` in
3742
4465
    *32-bit*)
3743
4466
      case $host in
3744
4467
        x86_64-*linux*)
3780
4503
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3781
4504
  SAVE_CFLAGS="$CFLAGS"
3782
4505
  CFLAGS="$CFLAGS -belf"
3783
 
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3784
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
4506
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
4507
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
3785
4508
if test "${lt_cv_cc_needs_belf+set}" = set; then
3786
4509
  echo $ECHO_N "(cached) $ECHO_C" >&6
3787
4510
else
3807
4530
}
3808
4531
_ACEOF
3809
4532
rm -f conftest.$ac_objext conftest$ac_exeext
3810
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3811
 
  (eval $ac_link) 2>conftest.er1
 
4533
if { (ac_try="$ac_link"
 
4534
case "(($ac_try" in
 
4535
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4536
  *) ac_try_echo=$ac_try;;
 
4537
esac
 
4538
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4539
  (eval "$ac_link") 2>conftest.er1
3812
4540
  ac_status=$?
3813
4541
  grep -v '^ *+' conftest.er1 >conftest.err
3814
4542
  rm -f conftest.er1
3815
4543
  cat conftest.err >&5
3816
4544
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817
4545
  (exit $ac_status); } &&
3818
 
         { ac_try='test -z "$ac_c_werror_flag"
3819
 
                         || test ! -s conftest.err'
3820
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3821
 
  (eval $ac_try) 2>&5
 
4546
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
4547
  { (case "(($ac_try" in
 
4548
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4549
  *) ac_try_echo=$ac_try;;
 
4550
esac
 
4551
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4552
  (eval "$ac_try") 2>&5
3822
4553
  ac_status=$?
3823
4554
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824
4555
  (exit $ac_status); }; } &&
3825
4556
         { ac_try='test -s conftest$ac_exeext'
3826
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3827
 
  (eval $ac_try) 2>&5
 
4557
  { (case "(($ac_try" in
 
4558
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4559
  *) ac_try_echo=$ac_try;;
 
4560
esac
 
4561
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4562
  (eval "$ac_try") 2>&5
3828
4563
  ac_status=$?
3829
4564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830
4565
  (exit $ac_status); }; }; then
3833
4568
  echo "$as_me: failed program was:" >&5
3834
4569
sed 's/^/| /' conftest.$ac_ext >&5
3835
4570
 
3836
 
lt_cv_cc_needs_belf=no
 
4571
        lt_cv_cc_needs_belf=no
3837
4572
fi
3838
 
rm -f conftest.err conftest.$ac_objext \
 
4573
 
 
4574
rm -f core conftest.err conftest.$ac_objext \
3839
4575
      conftest$ac_exeext conftest.$ac_ext
3840
4576
     ac_ext=c
3841
4577
ac_cpp='$CPP $CPPFLAGS'
3844
4580
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3845
4581
 
3846
4582
fi
3847
 
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3848
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
4583
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
4584
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
3849
4585
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3850
4586
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3851
4587
    CFLAGS="$SAVE_CFLAGS"
3852
4588
  fi
3853
4589
  ;;
 
4590
sparc*-*solaris*)
 
4591
  # Find out which ABI we are using.
 
4592
  echo 'int i;' > conftest.$ac_ext
 
4593
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4594
  (eval $ac_compile) 2>&5
 
4595
  ac_status=$?
 
4596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4597
  (exit $ac_status); }; then
 
4598
    case `/usr/bin/file conftest.o` in
 
4599
    *64-bit*)
 
4600
      case $lt_cv_prog_gnu_ld in
 
4601
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
4602
      *)    LD="${LD-ld} -64" ;;
 
4603
      esac
 
4604
      ;;
 
4605
    esac
 
4606
  fi
 
4607
  rm -rf conftest*
 
4608
  ;;
 
4609
 
3854
4610
 
3855
4611
esac
3856
4612
 
3862
4618
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3863
4619
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3864
4620
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3865
 
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3866
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
4621
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4622
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3867
4623
# On Suns, sometimes $CPP names a directory.
3868
4624
if test -n "$CPP" && test -d "$CPP"; then
3869
4625
  CPP=
3897
4653
#endif
3898
4654
                     Syntax error
3899
4655
_ACEOF
3900
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3901
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4656
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4657
case "(($ac_try" in
 
4658
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4659
  *) ac_try_echo=$ac_try;;
 
4660
esac
 
4661
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4662
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3902
4663
  ac_status=$?
3903
4664
  grep -v '^ *+' conftest.er1 >conftest.err
3904
4665
  rm -f conftest.er1
3923
4684
  # Broken: fails on valid input.
3924
4685
continue
3925
4686
fi
 
4687
 
3926
4688
rm -f conftest.err conftest.$ac_ext
3927
4689
 
3928
 
  # OK, works on sane cases.  Now check whether non-existent headers
 
4690
  # OK, works on sane cases.  Now check whether nonexistent headers
3929
4691
  # can be detected and how.
3930
4692
  cat >conftest.$ac_ext <<_ACEOF
3931
4693
/* confdefs.h.  */
3935
4697
/* end confdefs.h.  */
3936
4698
#include <ac_nonexistent.h>
3937
4699
_ACEOF
3938
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3939
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4700
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4701
case "(($ac_try" in
 
4702
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4703
  *) ac_try_echo=$ac_try;;
 
4704
esac
 
4705
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4706
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3940
4707
  ac_status=$?
3941
4708
  grep -v '^ *+' conftest.er1 >conftest.err
3942
4709
  rm -f conftest.er1
3963
4730
ac_preproc_ok=:
3964
4731
break
3965
4732
fi
 
4733
 
3966
4734
rm -f conftest.err conftest.$ac_ext
3967
4735
 
3968
4736
done
3980
4748
else
3981
4749
  ac_cv_prog_CPP=$CPP
3982
4750
fi
3983
 
echo "$as_me:$LINENO: result: $CPP" >&5
3984
 
echo "${ECHO_T}$CPP" >&6
 
4751
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
4752
echo "${ECHO_T}$CPP" >&6; }
3985
4753
ac_preproc_ok=false
3986
4754
for ac_c_preproc_warn_flag in '' yes
3987
4755
do
4004
4772
#endif
4005
4773
                     Syntax error
4006
4774
_ACEOF
4007
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4008
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4775
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4776
case "(($ac_try" in
 
4777
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4778
  *) ac_try_echo=$ac_try;;
 
4779
esac
 
4780
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4781
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4009
4782
  ac_status=$?
4010
4783
  grep -v '^ *+' conftest.er1 >conftest.err
4011
4784
  rm -f conftest.er1
4030
4803
  # Broken: fails on valid input.
4031
4804
continue
4032
4805
fi
 
4806
 
4033
4807
rm -f conftest.err conftest.$ac_ext
4034
4808
 
4035
 
  # OK, works on sane cases.  Now check whether non-existent headers
 
4809
  # OK, works on sane cases.  Now check whether nonexistent headers
4036
4810
  # can be detected and how.
4037
4811
  cat >conftest.$ac_ext <<_ACEOF
4038
4812
/* confdefs.h.  */
4042
4816
/* end confdefs.h.  */
4043
4817
#include <ac_nonexistent.h>
4044
4818
_ACEOF
4045
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4046
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4819
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4820
case "(($ac_try" in
 
4821
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4822
  *) ac_try_echo=$ac_try;;
 
4823
esac
 
4824
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4825
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4047
4826
  ac_status=$?
4048
4827
  grep -v '^ *+' conftest.er1 >conftest.err
4049
4828
  rm -f conftest.er1
4070
4849
ac_preproc_ok=:
4071
4850
break
4072
4851
fi
 
4852
 
4073
4853
rm -f conftest.err conftest.$ac_ext
4074
4854
 
4075
4855
done
4092
4872
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4093
4873
 
4094
4874
 
4095
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4096
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
4875
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4876
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4097
4877
if test "${ac_cv_header_stdc+set}" = set; then
4098
4878
  echo $ECHO_N "(cached) $ECHO_C" >&6
4099
4879
else
4117
4897
}
4118
4898
_ACEOF
4119
4899
rm -f conftest.$ac_objext
4120
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4121
 
  (eval $ac_compile) 2>conftest.er1
 
4900
if { (ac_try="$ac_compile"
 
4901
case "(($ac_try" in
 
4902
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4903
  *) ac_try_echo=$ac_try;;
 
4904
esac
 
4905
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4906
  (eval "$ac_compile") 2>conftest.er1
4122
4907
  ac_status=$?
4123
4908
  grep -v '^ *+' conftest.er1 >conftest.err
4124
4909
  rm -f conftest.er1
4125
4910
  cat conftest.err >&5
4126
4911
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127
4912
  (exit $ac_status); } &&
4128
 
         { ac_try='test -z "$ac_c_werror_flag"
4129
 
                         || test ! -s conftest.err'
4130
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4131
 
  (eval $ac_try) 2>&5
 
4913
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
4914
  { (case "(($ac_try" in
 
4915
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4916
  *) ac_try_echo=$ac_try;;
 
4917
esac
 
4918
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4919
  (eval "$ac_try") 2>&5
4132
4920
  ac_status=$?
4133
4921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134
4922
  (exit $ac_status); }; } &&
4135
4923
         { ac_try='test -s conftest.$ac_objext'
4136
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4137
 
  (eval $ac_try) 2>&5
 
4924
  { (case "(($ac_try" in
 
4925
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4926
  *) ac_try_echo=$ac_try;;
 
4927
esac
 
4928
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4929
  (eval "$ac_try") 2>&5
4138
4930
  ac_status=$?
4139
4931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140
4932
  (exit $ac_status); }; }; then
4143
4935
  echo "$as_me: failed program was:" >&5
4144
4936
sed 's/^/| /' conftest.$ac_ext >&5
4145
4937
 
4146
 
ac_cv_header_stdc=no
 
4938
        ac_cv_header_stdc=no
4147
4939
fi
4148
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4940
 
 
4941
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4149
4942
 
4150
4943
if test $ac_cv_header_stdc = yes; then
4151
4944
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4201
4994
cat >>conftest.$ac_ext <<_ACEOF
4202
4995
/* end confdefs.h.  */
4203
4996
#include <ctype.h>
 
4997
#include <stdlib.h>
4204
4998
#if ((' ' & 0x0FF) == 0x020)
4205
4999
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4206
5000
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4220
5014
  for (i = 0; i < 256; i++)
4221
5015
    if (XOR (islower (i), ISLOWER (i))
4222
5016
        || toupper (i) != TOUPPER (i))
4223
 
      exit(2);
4224
 
  exit (0);
 
5017
      return 2;
 
5018
  return 0;
4225
5019
}
4226
5020
_ACEOF
4227
5021
rm -f conftest$ac_exeext
4228
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4229
 
  (eval $ac_link) 2>&5
 
5022
if { (ac_try="$ac_link"
 
5023
case "(($ac_try" in
 
5024
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5025
  *) ac_try_echo=$ac_try;;
 
5026
esac
 
5027
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5028
  (eval "$ac_link") 2>&5
4230
5029
  ac_status=$?
4231
5030
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232
5031
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4233
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234
 
  (eval $ac_try) 2>&5
 
5032
  { (case "(($ac_try" in
 
5033
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5034
  *) ac_try_echo=$ac_try;;
 
5035
esac
 
5036
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5037
  (eval "$ac_try") 2>&5
4235
5038
  ac_status=$?
4236
5039
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237
5040
  (exit $ac_status); }; }; then
4244
5047
( exit $ac_status )
4245
5048
ac_cv_header_stdc=no
4246
5049
fi
4247
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4248
 
fi
4249
 
fi
4250
 
fi
4251
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4252
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
5050
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5051
fi
 
5052
 
 
5053
 
 
5054
fi
 
5055
fi
 
5056
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
5057
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4253
5058
if test $ac_cv_header_stdc = yes; then
4254
5059
 
4255
5060
cat >>confdefs.h <<\_ACEOF
4272
5077
                  inttypes.h stdint.h unistd.h
4273
5078
do
4274
5079
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4275
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
4276
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4277
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5080
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5081
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5082
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4278
5083
  echo $ECHO_N "(cached) $ECHO_C" >&6
4279
5084
else
4280
5085
  cat >conftest.$ac_ext <<_ACEOF
4288
5093
#include <$ac_header>
4289
5094
_ACEOF
4290
5095
rm -f conftest.$ac_objext
4291
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4292
 
  (eval $ac_compile) 2>conftest.er1
 
5096
if { (ac_try="$ac_compile"
 
5097
case "(($ac_try" in
 
5098
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5099
  *) ac_try_echo=$ac_try;;
 
5100
esac
 
5101
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5102
  (eval "$ac_compile") 2>conftest.er1
4293
5103
  ac_status=$?
4294
5104
  grep -v '^ *+' conftest.er1 >conftest.err
4295
5105
  rm -f conftest.er1
4296
5106
  cat conftest.err >&5
4297
5107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298
5108
  (exit $ac_status); } &&
4299
 
         { ac_try='test -z "$ac_c_werror_flag"
4300
 
                         || test ! -s conftest.err'
4301
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302
 
  (eval $ac_try) 2>&5
 
5109
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
5110
  { (case "(($ac_try" in
 
5111
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5112
  *) ac_try_echo=$ac_try;;
 
5113
esac
 
5114
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5115
  (eval "$ac_try") 2>&5
4303
5116
  ac_status=$?
4304
5117
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305
5118
  (exit $ac_status); }; } &&
4306
5119
         { ac_try='test -s conftest.$ac_objext'
4307
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308
 
  (eval $ac_try) 2>&5
 
5120
  { (case "(($ac_try" in
 
5121
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5122
  *) ac_try_echo=$ac_try;;
 
5123
esac
 
5124
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5125
  (eval "$ac_try") 2>&5
4309
5126
  ac_status=$?
4310
5127
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311
5128
  (exit $ac_status); }; }; then
4314
5131
  echo "$as_me: failed program was:" >&5
4315
5132
sed 's/^/| /' conftest.$ac_ext >&5
4316
5133
 
4317
 
eval "$as_ac_Header=no"
4318
 
fi
4319
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4320
 
fi
4321
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4322
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5134
        eval "$as_ac_Header=no"
 
5135
fi
 
5136
 
 
5137
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5138
fi
 
5139
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5140
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5141
echo "${ECHO_T}$ac_res" >&6; }
4323
5142
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4324
5143
  cat >>confdefs.h <<_ACEOF
4325
5144
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4334
5153
for ac_header in dlfcn.h
4335
5154
do
4336
5155
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4337
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4338
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
4339
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4340
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5156
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5157
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5158
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5159
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4341
5160
  echo $ECHO_N "(cached) $ECHO_C" >&6
4342
5161
fi
4343
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4344
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5162
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5163
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5164
echo "${ECHO_T}$ac_res" >&6; }
4345
5165
else
4346
5166
  # Is the header compilable?
4347
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4348
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
5167
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5168
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4349
5169
cat >conftest.$ac_ext <<_ACEOF
4350
5170
/* confdefs.h.  */
4351
5171
_ACEOF
4356
5176
#include <$ac_header>
4357
5177
_ACEOF
4358
5178
rm -f conftest.$ac_objext
4359
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4360
 
  (eval $ac_compile) 2>conftest.er1
 
5179
if { (ac_try="$ac_compile"
 
5180
case "(($ac_try" in
 
5181
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5182
  *) ac_try_echo=$ac_try;;
 
5183
esac
 
5184
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5185
  (eval "$ac_compile") 2>conftest.er1
4361
5186
  ac_status=$?
4362
5187
  grep -v '^ *+' conftest.er1 >conftest.err
4363
5188
  rm -f conftest.er1
4364
5189
  cat conftest.err >&5
4365
5190
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366
5191
  (exit $ac_status); } &&
4367
 
         { ac_try='test -z "$ac_c_werror_flag"
4368
 
                         || test ! -s conftest.err'
4369
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370
 
  (eval $ac_try) 2>&5
 
5192
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
5193
  { (case "(($ac_try" in
 
5194
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5195
  *) ac_try_echo=$ac_try;;
 
5196
esac
 
5197
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5198
  (eval "$ac_try") 2>&5
4371
5199
  ac_status=$?
4372
5200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373
5201
  (exit $ac_status); }; } &&
4374
5202
         { ac_try='test -s conftest.$ac_objext'
4375
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376
 
  (eval $ac_try) 2>&5
 
5203
  { (case "(($ac_try" in
 
5204
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5205
  *) ac_try_echo=$ac_try;;
 
5206
esac
 
5207
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5208
  (eval "$ac_try") 2>&5
4377
5209
  ac_status=$?
4378
5210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379
5211
  (exit $ac_status); }; }; then
4382
5214
  echo "$as_me: failed program was:" >&5
4383
5215
sed 's/^/| /' conftest.$ac_ext >&5
4384
5216
 
4385
 
ac_header_compiler=no
 
5217
        ac_header_compiler=no
4386
5218
fi
4387
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4388
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4389
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
5219
 
 
5220
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5221
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5222
echo "${ECHO_T}$ac_header_compiler" >&6; }
4390
5223
 
4391
5224
# Is the header present?
4392
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4393
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
5225
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5226
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4394
5227
cat >conftest.$ac_ext <<_ACEOF
4395
5228
/* confdefs.h.  */
4396
5229
_ACEOF
4399
5232
/* end confdefs.h.  */
4400
5233
#include <$ac_header>
4401
5234
_ACEOF
4402
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4403
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5235
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5236
case "(($ac_try" in
 
5237
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5238
  *) ac_try_echo=$ac_try;;
 
5239
esac
 
5240
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5241
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4404
5242
  ac_status=$?
4405
5243
  grep -v '^ *+' conftest.er1 >conftest.err
4406
5244
  rm -f conftest.er1
4424
5262
 
4425
5263
  ac_header_preproc=no
4426
5264
fi
 
5265
 
4427
5266
rm -f conftest.err conftest.$ac_ext
4428
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4429
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
5267
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5268
echo "${ECHO_T}$ac_header_preproc" >&6; }
4430
5269
 
4431
5270
# So?  What about this header?
4432
5271
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4450
5289
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4451
5290
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4452
5291
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4453
 
    (
4454
 
      cat <<\_ASBOX
 
5292
    ( cat <<\_ASBOX
4455
5293
## ---------------------------------------------------------------------- ##
4456
5294
## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
4457
5295
## ---------------------------------------------------------------------- ##
4458
5296
_ASBOX
4459
 
    ) |
4460
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
5297
     ) | sed "s/^/$as_me: WARNING:     /" >&2
4461
5298
    ;;
4462
5299
esac
4463
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
4464
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4465
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5300
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5301
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5302
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4466
5303
  echo $ECHO_N "(cached) $ECHO_C" >&6
4467
5304
else
4468
5305
  eval "$as_ac_Header=\$ac_header_preproc"
4469
5306
fi
4470
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4471
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5307
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5308
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5309
echo "${ECHO_T}$ac_res" >&6; }
4472
5310
 
4473
5311
fi
4474
5312
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4480
5318
 
4481
5319
done
4482
5320
 
4483
 
ac_ext=cc
 
5321
ac_ext=cpp
4484
5322
ac_cpp='$CXXCPP $CPPFLAGS'
4485
5323
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4486
5324
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4487
5325
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4488
 
if test -n "$ac_tool_prefix"; then
4489
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
5326
if test -z "$CXX"; then
 
5327
  if test -n "$CCC"; then
 
5328
    CXX=$CCC
 
5329
  else
 
5330
    if test -n "$ac_tool_prefix"; then
 
5331
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4490
5332
  do
4491
5333
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4492
5334
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4493
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4494
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5335
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5336
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4495
5337
if test "${ac_cv_prog_CXX+set}" = set; then
4496
5338
  echo $ECHO_N "(cached) $ECHO_C" >&6
4497
5339
else
4504
5346
  IFS=$as_save_IFS
4505
5347
  test -z "$as_dir" && as_dir=.
4506
5348
  for ac_exec_ext in '' $ac_executable_extensions; do
4507
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5349
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4508
5350
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4509
5351
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4510
5352
    break 2
4511
5353
  fi
4512
5354
done
4513
5355
done
 
5356
IFS=$as_save_IFS
4514
5357
 
4515
5358
fi
4516
5359
fi
4517
5360
CXX=$ac_cv_prog_CXX
4518
5361
if test -n "$CXX"; then
4519
 
  echo "$as_me:$LINENO: result: $CXX" >&5
4520
 
echo "${ECHO_T}$CXX" >&6
 
5362
  { echo "$as_me:$LINENO: result: $CXX" >&5
 
5363
echo "${ECHO_T}$CXX" >&6; }
4521
5364
else
4522
 
  echo "$as_me:$LINENO: result: no" >&5
4523
 
echo "${ECHO_T}no" >&6
 
5365
  { echo "$as_me:$LINENO: result: no" >&5
 
5366
echo "${ECHO_T}no" >&6; }
4524
5367
fi
4525
5368
 
 
5369
 
4526
5370
    test -n "$CXX" && break
4527
5371
  done
4528
5372
fi
4529
5373
if test -z "$CXX"; then
4530
5374
  ac_ct_CXX=$CXX
4531
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
5375
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4532
5376
do
4533
5377
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4534
5378
set dummy $ac_prog; ac_word=$2
4535
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4536
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5379
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5380
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4537
5381
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4538
5382
  echo $ECHO_N "(cached) $ECHO_C" >&6
4539
5383
else
4546
5390
  IFS=$as_save_IFS
4547
5391
  test -z "$as_dir" && as_dir=.
4548
5392
  for ac_exec_ext in '' $ac_executable_extensions; do
4549
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5393
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4550
5394
    ac_cv_prog_ac_ct_CXX="$ac_prog"
4551
5395
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4552
5396
    break 2
4553
5397
  fi
4554
5398
done
4555
5399
done
 
5400
IFS=$as_save_IFS
4556
5401
 
4557
5402
fi
4558
5403
fi
4559
5404
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4560
5405
if test -n "$ac_ct_CXX"; then
4561
 
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4562
 
echo "${ECHO_T}$ac_ct_CXX" >&6
 
5406
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
5407
echo "${ECHO_T}$ac_ct_CXX" >&6; }
4563
5408
else
4564
 
  echo "$as_me:$LINENO: result: no" >&5
4565
 
echo "${ECHO_T}no" >&6
 
5409
  { echo "$as_me:$LINENO: result: no" >&5
 
5410
echo "${ECHO_T}no" >&6; }
4566
5411
fi
4567
5412
 
 
5413
 
4568
5414
  test -n "$ac_ct_CXX" && break
4569
5415
done
4570
 
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4571
 
 
4572
 
  CXX=$ac_ct_CXX
4573
 
fi
4574
 
 
4575
 
 
 
5416
 
 
5417
  if test "x$ac_ct_CXX" = x; then
 
5418
    CXX="g++"
 
5419
  else
 
5420
    case $cross_compiling:$ac_tool_warned in
 
5421
yes:)
 
5422
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5423
whose name does not start with the host triplet.  If you think this
 
5424
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5425
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5426
whose name does not start with the host triplet.  If you think this
 
5427
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5428
ac_tool_warned=yes ;;
 
5429
esac
 
5430
    CXX=$ac_ct_CXX
 
5431
  fi
 
5432
fi
 
5433
 
 
5434
  fi
 
5435
fi
4576
5436
# Provide some information about the compiler.
4577
 
echo "$as_me:$LINENO:" \
4578
 
     "checking for C++ compiler version" >&5
 
5437
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4579
5438
ac_compiler=`set X $ac_compile; echo $2`
4580
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4581
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
4582
 
  ac_status=$?
4583
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584
 
  (exit $ac_status); }
4585
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4586
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
4587
 
  ac_status=$?
4588
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589
 
  (exit $ac_status); }
4590
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4591
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
5439
{ (ac_try="$ac_compiler --version >&5"
 
5440
case "(($ac_try" in
 
5441
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5442
  *) ac_try_echo=$ac_try;;
 
5443
esac
 
5444
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5445
  (eval "$ac_compiler --version >&5") 2>&5
 
5446
  ac_status=$?
 
5447
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5448
  (exit $ac_status); }
 
5449
{ (ac_try="$ac_compiler -v >&5"
 
5450
case "(($ac_try" in
 
5451
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5452
  *) ac_try_echo=$ac_try;;
 
5453
esac
 
5454
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5455
  (eval "$ac_compiler -v >&5") 2>&5
 
5456
  ac_status=$?
 
5457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5458
  (exit $ac_status); }
 
5459
{ (ac_try="$ac_compiler -V >&5"
 
5460
case "(($ac_try" in
 
5461
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5462
  *) ac_try_echo=$ac_try;;
 
5463
esac
 
5464
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5465
  (eval "$ac_compiler -V >&5") 2>&5
4592
5466
  ac_status=$?
4593
5467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594
5468
  (exit $ac_status); }
4595
5469
 
4596
 
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4597
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
5470
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
5471
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4598
5472
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4599
5473
  echo $ECHO_N "(cached) $ECHO_C" >&6
4600
5474
else
4617
5491
}
4618
5492
_ACEOF
4619
5493
rm -f conftest.$ac_objext
4620
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4621
 
  (eval $ac_compile) 2>conftest.er1
 
5494
if { (ac_try="$ac_compile"
 
5495
case "(($ac_try" in
 
5496
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5497
  *) ac_try_echo=$ac_try;;
 
5498
esac
 
5499
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5500
  (eval "$ac_compile") 2>conftest.er1
4622
5501
  ac_status=$?
4623
5502
  grep -v '^ *+' conftest.er1 >conftest.err
4624
5503
  rm -f conftest.er1
4625
5504
  cat conftest.err >&5
4626
5505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627
5506
  (exit $ac_status); } &&
4628
 
         { ac_try='test -z "$ac_cxx_werror_flag"
4629
 
                         || test ! -s conftest.err'
4630
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631
 
  (eval $ac_try) 2>&5
 
5507
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
 
5508
  { (case "(($ac_try" in
 
5509
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5510
  *) ac_try_echo=$ac_try;;
 
5511
esac
 
5512
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5513
  (eval "$ac_try") 2>&5
4632
5514
  ac_status=$?
4633
5515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634
5516
  (exit $ac_status); }; } &&
4635
5517
         { ac_try='test -s conftest.$ac_objext'
4636
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4637
 
  (eval $ac_try) 2>&5
 
5518
  { (case "(($ac_try" in
 
5519
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5520
  *) ac_try_echo=$ac_try;;
 
5521
esac
 
5522
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5523
  (eval "$ac_try") 2>&5
4638
5524
  ac_status=$?
4639
5525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640
5526
  (exit $ac_status); }; }; then
4643
5529
  echo "$as_me: failed program was:" >&5
4644
5530
sed 's/^/| /' conftest.$ac_ext >&5
4645
5531
 
4646
 
ac_compiler_gnu=no
 
5532
        ac_compiler_gnu=no
4647
5533
fi
4648
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5534
 
 
5535
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4649
5536
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4650
5537
 
4651
5538
fi
4652
 
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4653
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
5539
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
5540
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4654
5541
GXX=`test $ac_compiler_gnu = yes && echo yes`
4655
5542
ac_test_CXXFLAGS=${CXXFLAGS+set}
4656
5543
ac_save_CXXFLAGS=$CXXFLAGS
4657
 
CXXFLAGS="-g"
4658
 
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4659
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
5544
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
5545
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4660
5546
if test "${ac_cv_prog_cxx_g+set}" = set; then
4661
5547
  echo $ECHO_N "(cached) $ECHO_C" >&6
4662
5548
else
4663
 
  cat >conftest.$ac_ext <<_ACEOF
4664
 
/* confdefs.h.  */
4665
 
_ACEOF
4666
 
cat confdefs.h >>conftest.$ac_ext
4667
 
cat >>conftest.$ac_ext <<_ACEOF
4668
 
/* end confdefs.h.  */
4669
 
 
4670
 
int
4671
 
main ()
4672
 
{
4673
 
 
4674
 
  ;
4675
 
  return 0;
4676
 
}
4677
 
_ACEOF
4678
 
rm -f conftest.$ac_objext
4679
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4680
 
  (eval $ac_compile) 2>conftest.er1
4681
 
  ac_status=$?
4682
 
  grep -v '^ *+' conftest.er1 >conftest.err
4683
 
  rm -f conftest.er1
4684
 
  cat conftest.err >&5
4685
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686
 
  (exit $ac_status); } &&
4687
 
         { ac_try='test -z "$ac_cxx_werror_flag"
4688
 
                         || test ! -s conftest.err'
4689
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690
 
  (eval $ac_try) 2>&5
4691
 
  ac_status=$?
4692
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693
 
  (exit $ac_status); }; } &&
4694
 
         { ac_try='test -s conftest.$ac_objext'
4695
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696
 
  (eval $ac_try) 2>&5
4697
 
  ac_status=$?
4698
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699
 
  (exit $ac_status); }; }; then
4700
 
  ac_cv_prog_cxx_g=yes
4701
 
else
4702
 
  echo "$as_me: failed program was:" >&5
4703
 
sed 's/^/| /' conftest.$ac_ext >&5
4704
 
 
4705
 
ac_cv_prog_cxx_g=no
4706
 
fi
4707
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4708
 
fi
4709
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4710
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
5549
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
5550
   ac_cxx_werror_flag=yes
 
5551
   ac_cv_prog_cxx_g=no
 
5552
   CXXFLAGS="-g"
 
5553
   cat >conftest.$ac_ext <<_ACEOF
 
5554
/* confdefs.h.  */
 
5555
_ACEOF
 
5556
cat confdefs.h >>conftest.$ac_ext
 
5557
cat >>conftest.$ac_ext <<_ACEOF
 
5558
/* end confdefs.h.  */
 
5559
 
 
5560
int
 
5561
main ()
 
5562
{
 
5563
 
 
5564
  ;
 
5565
  return 0;
 
5566
}
 
5567
_ACEOF
 
5568
rm -f conftest.$ac_objext
 
5569
if { (ac_try="$ac_compile"
 
5570
case "(($ac_try" in
 
5571
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5572
  *) ac_try_echo=$ac_try;;
 
5573
esac
 
5574
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5575
  (eval "$ac_compile") 2>conftest.er1
 
5576
  ac_status=$?
 
5577
  grep -v '^ *+' conftest.er1 >conftest.err
 
5578
  rm -f conftest.er1
 
5579
  cat conftest.err >&5
 
5580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5581
  (exit $ac_status); } &&
 
5582
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
 
5583
  { (case "(($ac_try" in
 
5584
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5585
  *) ac_try_echo=$ac_try;;
 
5586
esac
 
5587
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5588
  (eval "$ac_try") 2>&5
 
5589
  ac_status=$?
 
5590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5591
  (exit $ac_status); }; } &&
 
5592
         { ac_try='test -s conftest.$ac_objext'
 
5593
  { (case "(($ac_try" in
 
5594
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5595
  *) ac_try_echo=$ac_try;;
 
5596
esac
 
5597
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5598
  (eval "$ac_try") 2>&5
 
5599
  ac_status=$?
 
5600
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5601
  (exit $ac_status); }; }; then
 
5602
  ac_cv_prog_cxx_g=yes
 
5603
else
 
5604
  echo "$as_me: failed program was:" >&5
 
5605
sed 's/^/| /' conftest.$ac_ext >&5
 
5606
 
 
5607
        CXXFLAGS=""
 
5608
      cat >conftest.$ac_ext <<_ACEOF
 
5609
/* confdefs.h.  */
 
5610
_ACEOF
 
5611
cat confdefs.h >>conftest.$ac_ext
 
5612
cat >>conftest.$ac_ext <<_ACEOF
 
5613
/* end confdefs.h.  */
 
5614
 
 
5615
int
 
5616
main ()
 
5617
{
 
5618
 
 
5619
  ;
 
5620
  return 0;
 
5621
}
 
5622
_ACEOF
 
5623
rm -f conftest.$ac_objext
 
5624
if { (ac_try="$ac_compile"
 
5625
case "(($ac_try" in
 
5626
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5627
  *) ac_try_echo=$ac_try;;
 
5628
esac
 
5629
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5630
  (eval "$ac_compile") 2>conftest.er1
 
5631
  ac_status=$?
 
5632
  grep -v '^ *+' conftest.er1 >conftest.err
 
5633
  rm -f conftest.er1
 
5634
  cat conftest.err >&5
 
5635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5636
  (exit $ac_status); } &&
 
5637
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
 
5638
  { (case "(($ac_try" in
 
5639
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5640
  *) ac_try_echo=$ac_try;;
 
5641
esac
 
5642
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5643
  (eval "$ac_try") 2>&5
 
5644
  ac_status=$?
 
5645
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5646
  (exit $ac_status); }; } &&
 
5647
         { ac_try='test -s conftest.$ac_objext'
 
5648
  { (case "(($ac_try" in
 
5649
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5650
  *) ac_try_echo=$ac_try;;
 
5651
esac
 
5652
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5653
  (eval "$ac_try") 2>&5
 
5654
  ac_status=$?
 
5655
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5656
  (exit $ac_status); }; }; then
 
5657
  :
 
5658
else
 
5659
  echo "$as_me: failed program was:" >&5
 
5660
sed 's/^/| /' conftest.$ac_ext >&5
 
5661
 
 
5662
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5663
         CXXFLAGS="-g"
 
5664
         cat >conftest.$ac_ext <<_ACEOF
 
5665
/* confdefs.h.  */
 
5666
_ACEOF
 
5667
cat confdefs.h >>conftest.$ac_ext
 
5668
cat >>conftest.$ac_ext <<_ACEOF
 
5669
/* end confdefs.h.  */
 
5670
 
 
5671
int
 
5672
main ()
 
5673
{
 
5674
 
 
5675
  ;
 
5676
  return 0;
 
5677
}
 
5678
_ACEOF
 
5679
rm -f conftest.$ac_objext
 
5680
if { (ac_try="$ac_compile"
 
5681
case "(($ac_try" in
 
5682
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5683
  *) ac_try_echo=$ac_try;;
 
5684
esac
 
5685
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5686
  (eval "$ac_compile") 2>conftest.er1
 
5687
  ac_status=$?
 
5688
  grep -v '^ *+' conftest.er1 >conftest.err
 
5689
  rm -f conftest.er1
 
5690
  cat conftest.err >&5
 
5691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5692
  (exit $ac_status); } &&
 
5693
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
 
5694
  { (case "(($ac_try" in
 
5695
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5696
  *) ac_try_echo=$ac_try;;
 
5697
esac
 
5698
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5699
  (eval "$ac_try") 2>&5
 
5700
  ac_status=$?
 
5701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5702
  (exit $ac_status); }; } &&
 
5703
         { ac_try='test -s conftest.$ac_objext'
 
5704
  { (case "(($ac_try" in
 
5705
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5706
  *) ac_try_echo=$ac_try;;
 
5707
esac
 
5708
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5709
  (eval "$ac_try") 2>&5
 
5710
  ac_status=$?
 
5711
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5712
  (exit $ac_status); }; }; then
 
5713
  ac_cv_prog_cxx_g=yes
 
5714
else
 
5715
  echo "$as_me: failed program was:" >&5
 
5716
sed 's/^/| /' conftest.$ac_ext >&5
 
5717
 
 
5718
 
 
5719
fi
 
5720
 
 
5721
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5722
fi
 
5723
 
 
5724
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5725
fi
 
5726
 
 
5727
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5728
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5729
fi
 
5730
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
5731
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4711
5732
if test "$ac_test_CXXFLAGS" = set; then
4712
5733
  CXXFLAGS=$ac_save_CXXFLAGS
4713
5734
elif test $ac_cv_prog_cxx_g = yes; then
4723
5744
    CXXFLAGS=
4724
5745
  fi
4725
5746
fi
4726
 
for ac_declaration in \
4727
 
   '' \
4728
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
4729
 
   'extern "C" void std::exit (int); using std::exit;' \
4730
 
   'extern "C" void exit (int) throw ();' \
4731
 
   'extern "C" void exit (int);' \
4732
 
   'void exit (int);'
4733
 
do
4734
 
  cat >conftest.$ac_ext <<_ACEOF
4735
 
/* confdefs.h.  */
4736
 
_ACEOF
4737
 
cat confdefs.h >>conftest.$ac_ext
4738
 
cat >>conftest.$ac_ext <<_ACEOF
4739
 
/* end confdefs.h.  */
4740
 
$ac_declaration
4741
 
#include <stdlib.h>
4742
 
int
4743
 
main ()
4744
 
{
4745
 
exit (42);
4746
 
  ;
4747
 
  return 0;
4748
 
}
4749
 
_ACEOF
4750
 
rm -f conftest.$ac_objext
4751
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4752
 
  (eval $ac_compile) 2>conftest.er1
4753
 
  ac_status=$?
4754
 
  grep -v '^ *+' conftest.er1 >conftest.err
4755
 
  rm -f conftest.er1
4756
 
  cat conftest.err >&5
4757
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758
 
  (exit $ac_status); } &&
4759
 
         { ac_try='test -z "$ac_cxx_werror_flag"
4760
 
                         || test ! -s conftest.err'
4761
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762
 
  (eval $ac_try) 2>&5
4763
 
  ac_status=$?
4764
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765
 
  (exit $ac_status); }; } &&
4766
 
         { ac_try='test -s conftest.$ac_objext'
4767
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768
 
  (eval $ac_try) 2>&5
4769
 
  ac_status=$?
4770
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771
 
  (exit $ac_status); }; }; then
4772
 
  :
4773
 
else
4774
 
  echo "$as_me: failed program was:" >&5
4775
 
sed 's/^/| /' conftest.$ac_ext >&5
4776
 
 
4777
 
continue
4778
 
fi
4779
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4780
 
  cat >conftest.$ac_ext <<_ACEOF
4781
 
/* confdefs.h.  */
4782
 
_ACEOF
4783
 
cat confdefs.h >>conftest.$ac_ext
4784
 
cat >>conftest.$ac_ext <<_ACEOF
4785
 
/* end confdefs.h.  */
4786
 
$ac_declaration
4787
 
int
4788
 
main ()
4789
 
{
4790
 
exit (42);
4791
 
  ;
4792
 
  return 0;
4793
 
}
4794
 
_ACEOF
4795
 
rm -f conftest.$ac_objext
4796
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4797
 
  (eval $ac_compile) 2>conftest.er1
4798
 
  ac_status=$?
4799
 
  grep -v '^ *+' conftest.er1 >conftest.err
4800
 
  rm -f conftest.er1
4801
 
  cat conftest.err >&5
4802
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803
 
  (exit $ac_status); } &&
4804
 
         { ac_try='test -z "$ac_cxx_werror_flag"
4805
 
                         || test ! -s conftest.err'
4806
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807
 
  (eval $ac_try) 2>&5
4808
 
  ac_status=$?
4809
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810
 
  (exit $ac_status); }; } &&
4811
 
         { ac_try='test -s conftest.$ac_objext'
4812
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813
 
  (eval $ac_try) 2>&5
4814
 
  ac_status=$?
4815
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816
 
  (exit $ac_status); }; }; then
4817
 
  break
4818
 
else
4819
 
  echo "$as_me: failed program was:" >&5
4820
 
sed 's/^/| /' conftest.$ac_ext >&5
4821
 
 
4822
 
fi
4823
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4824
 
done
4825
 
rm -f conftest*
4826
 
if test -n "$ac_declaration"; then
4827
 
  echo '#ifdef __cplusplus' >>confdefs.h
4828
 
  echo $ac_declaration      >>confdefs.h
4829
 
  echo '#endif'             >>confdefs.h
4830
 
fi
4831
 
 
4832
 
ac_ext=cc
 
5747
ac_ext=cpp
4833
5748
ac_cpp='$CXXCPP $CPPFLAGS'
4834
5749
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4835
5750
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4837
5752
 
4838
5753
depcc="$CXX"  am_compiler_list=
4839
5754
 
4840
 
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4841
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
5755
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
5756
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4842
5757
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4843
5758
  echo $ECHO_N "(cached) $ECHO_C" >&6
4844
5759
else
4876
5791
    : > sub/conftest.c
4877
5792
    for i in 1 2 3 4 5 6; do
4878
5793
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4879
 
      : > sub/conftst$i.h
 
5794
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
5795
      # Solaris 8's {/usr,}/bin/sh.
 
5796
      touch sub/conftst$i.h
4880
5797
    done
4881
5798
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4882
5799
 
4904
5821
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4905
5822
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4906
5823
      # icc doesn't choke on unknown options, it will just issue warnings
4907
 
      # (even with -Werror).  So we grep stderr for any message
4908
 
      # that says an option was ignored.
4909
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
5824
      # or remarks (even with -Werror).  So we grep stderr for any message
 
5825
      # that says an option was ignored or not supported.
 
5826
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
5827
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
5828
      # The diagnosis changed in icc 8.0:
 
5829
      #   icc: Command line remark: option '-MP' not supported
 
5830
      if (grep 'ignoring option' conftest.err ||
 
5831
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4910
5832
        am_cv_CXX_dependencies_compiler_type=$depmode
4911
5833
        break
4912
5834
      fi
4920
5842
fi
4921
5843
 
4922
5844
fi
4923
 
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4924
 
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
5845
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
5846
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4925
5847
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4926
5848
 
4927
5849
 
4937
5859
fi
4938
5860
 
4939
5861
 
4940
 
ac_ext=cc
 
5862
 
 
5863
 
 
5864
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
5865
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
5866
    (test "X$CXX" != "Xg++"))) ; then
 
5867
  ac_ext=cpp
4941
5868
ac_cpp='$CXXCPP $CPPFLAGS'
4942
5869
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4943
5870
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4944
5871
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4945
 
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4946
 
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
5872
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
5873
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4947
5874
if test -z "$CXXCPP"; then
4948
5875
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4949
5876
  echo $ECHO_N "(cached) $ECHO_C" >&6
4973
5900
#endif
4974
5901
                     Syntax error
4975
5902
_ACEOF
4976
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4977
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5903
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5904
case "(($ac_try" in
 
5905
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5906
  *) ac_try_echo=$ac_try;;
 
5907
esac
 
5908
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5909
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4978
5910
  ac_status=$?
4979
5911
  grep -v '^ *+' conftest.er1 >conftest.err
4980
5912
  rm -f conftest.er1
4999
5931
  # Broken: fails on valid input.
5000
5932
continue
5001
5933
fi
 
5934
 
5002
5935
rm -f conftest.err conftest.$ac_ext
5003
5936
 
5004
 
  # OK, works on sane cases.  Now check whether non-existent headers
 
5937
  # OK, works on sane cases.  Now check whether nonexistent headers
5005
5938
  # can be detected and how.
5006
5939
  cat >conftest.$ac_ext <<_ACEOF
5007
5940
/* confdefs.h.  */
5011
5944
/* end confdefs.h.  */
5012
5945
#include <ac_nonexistent.h>
5013
5946
_ACEOF
5014
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5015
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5947
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5948
case "(($ac_try" in
 
5949
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5950
  *) ac_try_echo=$ac_try;;
 
5951
esac
 
5952
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5953
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5016
5954
  ac_status=$?
5017
5955
  grep -v '^ *+' conftest.er1 >conftest.err
5018
5956
  rm -f conftest.er1
5039
5977
ac_preproc_ok=:
5040
5978
break
5041
5979
fi
 
5980
 
5042
5981
rm -f conftest.err conftest.$ac_ext
5043
5982
 
5044
5983
done
5056
5995
else
5057
5996
  ac_cv_prog_CXXCPP=$CXXCPP
5058
5997
fi
5059
 
echo "$as_me:$LINENO: result: $CXXCPP" >&5
5060
 
echo "${ECHO_T}$CXXCPP" >&6
 
5998
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
5999
echo "${ECHO_T}$CXXCPP" >&6; }
5061
6000
ac_preproc_ok=false
5062
6001
for ac_cxx_preproc_warn_flag in '' yes
5063
6002
do
5080
6019
#endif
5081
6020
                     Syntax error
5082
6021
_ACEOF
5083
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5084
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6022
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6023
case "(($ac_try" in
 
6024
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6025
  *) ac_try_echo=$ac_try;;
 
6026
esac
 
6027
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6028
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5085
6029
  ac_status=$?
5086
6030
  grep -v '^ *+' conftest.er1 >conftest.err
5087
6031
  rm -f conftest.er1
5106
6050
  # Broken: fails on valid input.
5107
6051
continue
5108
6052
fi
 
6053
 
5109
6054
rm -f conftest.err conftest.$ac_ext
5110
6055
 
5111
 
  # OK, works on sane cases.  Now check whether non-existent headers
 
6056
  # OK, works on sane cases.  Now check whether nonexistent headers
5112
6057
  # can be detected and how.
5113
6058
  cat >conftest.$ac_ext <<_ACEOF
5114
6059
/* confdefs.h.  */
5118
6063
/* end confdefs.h.  */
5119
6064
#include <ac_nonexistent.h>
5120
6065
_ACEOF
5121
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5122
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6066
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6067
case "(($ac_try" in
 
6068
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6069
  *) ac_try_echo=$ac_try;;
 
6070
esac
 
6071
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6072
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5123
6073
  ac_status=$?
5124
6074
  grep -v '^ *+' conftest.er1 >conftest.err
5125
6075
  rm -f conftest.er1
5146
6096
ac_preproc_ok=:
5147
6097
break
5148
6098
fi
 
6099
 
5149
6100
rm -f conftest.err conftest.$ac_ext
5150
6101
 
5151
6102
done
5161
6112
   { (exit 1); exit 1; }; }
5162
6113
fi
5163
6114
 
5164
 
ac_ext=cc
 
6115
ac_ext=cpp
5165
6116
ac_cpp='$CXXCPP $CPPFLAGS'
5166
6117
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5167
6118
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5168
6119
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5169
6120
 
 
6121
fi
 
6122
 
5170
6123
 
5171
6124
ac_ext=f
5172
6125
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5173
6126
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5174
6127
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5175
6128
if test -n "$ac_tool_prefix"; then
5176
 
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
6129
  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
5177
6130
  do
5178
6131
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5179
6132
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5180
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5181
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6133
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6134
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5182
6135
if test "${ac_cv_prog_F77+set}" = set; then
5183
6136
  echo $ECHO_N "(cached) $ECHO_C" >&6
5184
6137
else
5191
6144
  IFS=$as_save_IFS
5192
6145
  test -z "$as_dir" && as_dir=.
5193
6146
  for ac_exec_ext in '' $ac_executable_extensions; do
5194
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6147
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5195
6148
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5196
6149
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5197
6150
    break 2
5198
6151
  fi
5199
6152
done
5200
6153
done
 
6154
IFS=$as_save_IFS
5201
6155
 
5202
6156
fi
5203
6157
fi
5204
6158
F77=$ac_cv_prog_F77
5205
6159
if test -n "$F77"; then
5206
 
  echo "$as_me:$LINENO: result: $F77" >&5
5207
 
echo "${ECHO_T}$F77" >&6
 
6160
  { echo "$as_me:$LINENO: result: $F77" >&5
 
6161
echo "${ECHO_T}$F77" >&6; }
5208
6162
else
5209
 
  echo "$as_me:$LINENO: result: no" >&5
5210
 
echo "${ECHO_T}no" >&6
 
6163
  { echo "$as_me:$LINENO: result: no" >&5
 
6164
echo "${ECHO_T}no" >&6; }
5211
6165
fi
5212
6166
 
 
6167
 
5213
6168
    test -n "$F77" && break
5214
6169
  done
5215
6170
fi
5216
6171
if test -z "$F77"; then
5217
6172
  ac_ct_F77=$F77
5218
 
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
6173
  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
5219
6174
do
5220
6175
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5221
6176
set dummy $ac_prog; ac_word=$2
5222
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5223
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6177
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6178
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5224
6179
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5225
6180
  echo $ECHO_N "(cached) $ECHO_C" >&6
5226
6181
else
5233
6188
  IFS=$as_save_IFS
5234
6189
  test -z "$as_dir" && as_dir=.
5235
6190
  for ac_exec_ext in '' $ac_executable_extensions; do
5236
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6191
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5237
6192
    ac_cv_prog_ac_ct_F77="$ac_prog"
5238
6193
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239
6194
    break 2
5240
6195
  fi
5241
6196
done
5242
6197
done
 
6198
IFS=$as_save_IFS
5243
6199
 
5244
6200
fi
5245
6201
fi
5246
6202
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5247
6203
if test -n "$ac_ct_F77"; then
5248
 
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5249
 
echo "${ECHO_T}$ac_ct_F77" >&6
 
6204
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
6205
echo "${ECHO_T}$ac_ct_F77" >&6; }
5250
6206
else
5251
 
  echo "$as_me:$LINENO: result: no" >&5
5252
 
echo "${ECHO_T}no" >&6
 
6207
  { echo "$as_me:$LINENO: result: no" >&5
 
6208
echo "${ECHO_T}no" >&6; }
5253
6209
fi
5254
6210
 
 
6211
 
5255
6212
  test -n "$ac_ct_F77" && break
5256
6213
done
5257
6214
 
5258
 
  F77=$ac_ct_F77
 
6215
  if test "x$ac_ct_F77" = x; then
 
6216
    F77=""
 
6217
  else
 
6218
    case $cross_compiling:$ac_tool_warned in
 
6219
yes:)
 
6220
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6221
whose name does not start with the host triplet.  If you think this
 
6222
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6223
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6224
whose name does not start with the host triplet.  If you think this
 
6225
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6226
ac_tool_warned=yes ;;
 
6227
esac
 
6228
    F77=$ac_ct_F77
 
6229
  fi
5259
6230
fi
5260
6231
 
5261
6232
 
5262
6233
# Provide some information about the compiler.
5263
 
echo "$as_me:5263:" \
5264
 
     "checking for Fortran 77 compiler version" >&5
 
6234
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5265
6235
ac_compiler=`set X $ac_compile; echo $2`
5266
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5267
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
5268
 
  ac_status=$?
5269
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270
 
  (exit $ac_status); }
5271
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5272
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
5273
 
  ac_status=$?
5274
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275
 
  (exit $ac_status); }
5276
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5277
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
6236
{ (ac_try="$ac_compiler --version >&5"
 
6237
case "(($ac_try" in
 
6238
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6239
  *) ac_try_echo=$ac_try;;
 
6240
esac
 
6241
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6242
  (eval "$ac_compiler --version >&5") 2>&5
 
6243
  ac_status=$?
 
6244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6245
  (exit $ac_status); }
 
6246
{ (ac_try="$ac_compiler -v >&5"
 
6247
case "(($ac_try" in
 
6248
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6249
  *) ac_try_echo=$ac_try;;
 
6250
esac
 
6251
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6252
  (eval "$ac_compiler -v >&5") 2>&5
 
6253
  ac_status=$?
 
6254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6255
  (exit $ac_status); }
 
6256
{ (ac_try="$ac_compiler -V >&5"
 
6257
case "(($ac_try" in
 
6258
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6259
  *) ac_try_echo=$ac_try;;
 
6260
esac
 
6261
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6262
  (eval "$ac_compiler -V >&5") 2>&5
5278
6263
  ac_status=$?
5279
6264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280
6265
  (exit $ac_status); }
5284
6269
# input file.  (Note that this only needs to work for GNU compilers.)
5285
6270
ac_save_ext=$ac_ext
5286
6271
ac_ext=F
5287
 
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5288
 
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
6272
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
6273
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5289
6274
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5290
6275
  echo $ECHO_N "(cached) $ECHO_C" >&6
5291
6276
else
5298
6283
      end
5299
6284
_ACEOF
5300
6285
rm -f conftest.$ac_objext
5301
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5302
 
  (eval $ac_compile) 2>conftest.er1
 
6286
if { (ac_try="$ac_compile"
 
6287
case "(($ac_try" in
 
6288
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6289
  *) ac_try_echo=$ac_try;;
 
6290
esac
 
6291
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6292
  (eval "$ac_compile") 2>conftest.er1
5303
6293
  ac_status=$?
5304
6294
  grep -v '^ *+' conftest.er1 >conftest.err
5305
6295
  rm -f conftest.er1
5306
6296
  cat conftest.err >&5
5307
6297
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308
6298
  (exit $ac_status); } &&
5309
 
         { ac_try='test -z "$ac_f77_werror_flag"
5310
 
                         || test ! -s conftest.err'
5311
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312
 
  (eval $ac_try) 2>&5
 
6299
         { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
 
6300
  { (case "(($ac_try" in
 
6301
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6302
  *) ac_try_echo=$ac_try;;
 
6303
esac
 
6304
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6305
  (eval "$ac_try") 2>&5
5313
6306
  ac_status=$?
5314
6307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315
6308
  (exit $ac_status); }; } &&
5316
6309
         { ac_try='test -s conftest.$ac_objext'
5317
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318
 
  (eval $ac_try) 2>&5
 
6310
  { (case "(($ac_try" in
 
6311
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6312
  *) ac_try_echo=$ac_try;;
 
6313
esac
 
6314
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6315
  (eval "$ac_try") 2>&5
5319
6316
  ac_status=$?
5320
6317
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321
6318
  (exit $ac_status); }; }; then
5324
6321
  echo "$as_me: failed program was:" >&5
5325
6322
sed 's/^/| /' conftest.$ac_ext >&5
5326
6323
 
5327
 
ac_compiler_gnu=no
 
6324
        ac_compiler_gnu=no
5328
6325
fi
5329
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6326
 
 
6327
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5330
6328
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5331
6329
 
5332
6330
fi
5333
 
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5334
 
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
6331
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6332
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5335
6333
ac_ext=$ac_save_ext
5336
6334
ac_test_FFLAGS=${FFLAGS+set}
5337
6335
ac_save_FFLAGS=$FFLAGS
5338
6336
FFLAGS=
5339
 
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5340
 
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
6337
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6338
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5341
6339
if test "${ac_cv_prog_f77_g+set}" = set; then
5342
6340
  echo $ECHO_N "(cached) $ECHO_C" >&6
5343
6341
else
5348
6346
      end
5349
6347
_ACEOF
5350
6348
rm -f conftest.$ac_objext
5351
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5352
 
  (eval $ac_compile) 2>conftest.er1
 
6349
if { (ac_try="$ac_compile"
 
6350
case "(($ac_try" in
 
6351
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6352
  *) ac_try_echo=$ac_try;;
 
6353
esac
 
6354
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6355
  (eval "$ac_compile") 2>conftest.er1
5353
6356
  ac_status=$?
5354
6357
  grep -v '^ *+' conftest.er1 >conftest.err
5355
6358
  rm -f conftest.er1
5356
6359
  cat conftest.err >&5
5357
6360
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358
6361
  (exit $ac_status); } &&
5359
 
         { ac_try='test -z "$ac_f77_werror_flag"
5360
 
                         || test ! -s conftest.err'
5361
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5362
 
  (eval $ac_try) 2>&5
 
6362
         { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
 
6363
  { (case "(($ac_try" in
 
6364
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6365
  *) ac_try_echo=$ac_try;;
 
6366
esac
 
6367
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6368
  (eval "$ac_try") 2>&5
5363
6369
  ac_status=$?
5364
6370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365
6371
  (exit $ac_status); }; } &&
5366
6372
         { ac_try='test -s conftest.$ac_objext'
5367
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368
 
  (eval $ac_try) 2>&5
 
6373
  { (case "(($ac_try" in
 
6374
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6375
  *) ac_try_echo=$ac_try;;
 
6376
esac
 
6377
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6378
  (eval "$ac_try") 2>&5
5369
6379
  ac_status=$?
5370
6380
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371
6381
  (exit $ac_status); }; }; then
5374
6384
  echo "$as_me: failed program was:" >&5
5375
6385
sed 's/^/| /' conftest.$ac_ext >&5
5376
6386
 
5377
 
ac_cv_prog_f77_g=no
5378
 
fi
5379
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5380
 
 
5381
 
fi
5382
 
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5383
 
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
6387
        ac_cv_prog_f77_g=no
 
6388
fi
 
6389
 
 
6390
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6391
 
 
6392
fi
 
6393
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6394
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5384
6395
if test "$ac_test_FFLAGS" = set; then
5385
6396
  FFLAGS=$ac_save_FFLAGS
5386
6397
elif test $ac_cv_prog_f77_g = yes; then
5409
6420
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5410
6421
 
5411
6422
# find the maximum length of command line arguments
5412
 
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5413
 
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
6423
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6424
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5414
6425
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5415
6426
  echo $ECHO_N "(cached) $ECHO_C" >&6
5416
6427
else
5450
6461
    lt_cv_sys_max_cmd_len=8192;
5451
6462
    ;;
5452
6463
 
5453
 
 *)
 
6464
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6465
    # This has been around since 386BSD, at least.  Likely further.
 
6466
    if test -x /sbin/sysctl; then
 
6467
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6468
    elif test -x /usr/sbin/sysctl; then
 
6469
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6470
    else
 
6471
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
6472
    fi
 
6473
    # And add a safety zone
 
6474
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6475
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6476
    ;;
 
6477
 
 
6478
  interix*)
 
6479
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
6480
    lt_cv_sys_max_cmd_len=196608
 
6481
    ;;
 
6482
 
 
6483
  osf*)
 
6484
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
6485
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
6486
    # nice to cause kernel panics so lets avoid the loop below.
 
6487
    # First set a reasonable default.
 
6488
    lt_cv_sys_max_cmd_len=16384
 
6489
    #
 
6490
    if test -x /sbin/sysconfig; then
 
6491
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
6492
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
6493
      esac
 
6494
    fi
 
6495
    ;;
 
6496
  sco3.2v5*)
 
6497
    lt_cv_sys_max_cmd_len=102400
 
6498
    ;;
 
6499
  sysv5* | sco5v6* | sysv4.2uw2*)
 
6500
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
6501
    if test -n "$kargmax"; then
 
6502
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
6503
    else
 
6504
      lt_cv_sys_max_cmd_len=32768
 
6505
    fi
 
6506
    ;;
 
6507
  *)
5454
6508
    # If test is not a shell built-in, we'll probably end up computing a
5455
6509
    # maximum length that is only half of the actual maximum length, but
5456
6510
    # we can't tell.
5457
 
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6511
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6512
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5458
6513
               = "XX$teststring") >/dev/null 2>&1 &&
5459
6514
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
5460
6515
            lt_cv_sys_max_cmd_len=$new_result &&
5474
6529
fi
5475
6530
 
5476
6531
if test -n $lt_cv_sys_max_cmd_len ; then
5477
 
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5478
 
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
6532
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6533
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5479
6534
else
5480
 
  echo "$as_me:$LINENO: result: none" >&5
5481
 
echo "${ECHO_T}none" >&6
 
6535
  { echo "$as_me:$LINENO: result: none" >&5
 
6536
echo "${ECHO_T}none" >&6; }
5482
6537
fi
5483
6538
 
5484
6539
 
5485
6540
 
5486
6541
 
5487
6542
# Check for command to grab the raw symbol name followed by C symbol from nm.
5488
 
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5489
 
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
6543
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
6544
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5490
6545
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5491
6546
  echo $ECHO_N "(cached) $ECHO_C" >&6
5492
6547
else
5500
6555
# Regexp to match symbols that can be accessed directly from C.
5501
6556
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5502
6557
 
5503
 
# Transform the above into a raw symbol and a C symbol.
5504
 
symxfrm='\1 \2\3 \3'
5505
 
 
5506
6558
# Transform an extracted symbol line into a proper C declaration
5507
6559
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5508
6560
 
5524
6576
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5525
6577
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5526
6578
  ;;
 
6579
linux* | k*bsd*-gnu)
 
6580
  if test "$host_cpu" = ia64; then
 
6581
    symcode='[ABCDGIRSTW]'
 
6582
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6583
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
6584
  fi
 
6585
  ;;
5527
6586
irix* | nonstopux*)
5528
6587
  symcode='[BCDEGRST]'
5529
6588
  ;;
5530
6589
osf*)
5531
6590
  symcode='[BCDEGQRST]'
5532
6591
  ;;
5533
 
solaris* | sysv5*)
 
6592
solaris*)
5534
6593
  symcode='[BDRT]'
5535
6594
  ;;
 
6595
sco3.2v5*)
 
6596
  symcode='[DT]'
 
6597
  ;;
 
6598
sysv4.2uw2*)
 
6599
  symcode='[DT]'
 
6600
  ;;
 
6601
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6602
  symcode='[ABDT]'
 
6603
  ;;
5536
6604
sysv4)
5537
6605
  symcode='[DFNSTU]'
5538
6606
  ;;
5555
6623
# Try without a prefix undercore, then with it.
5556
6624
for ac_symprfx in "" "_"; do
5557
6625
 
 
6626
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6627
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6628
 
5558
6629
  # Write the raw and C identifiers.
5559
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
6630
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5560
6631
 
5561
6632
  # Check to see that the pipe works correctly.
5562
6633
  pipe_works=no
5674
6745
  lt_cv_sys_global_symbol_to_cdecl=
5675
6746
fi
5676
6747
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5677
 
  echo "$as_me:$LINENO: result: failed" >&5
5678
 
echo "${ECHO_T}failed" >&6
 
6748
  { echo "$as_me:$LINENO: result: failed" >&5
 
6749
echo "${ECHO_T}failed" >&6; }
5679
6750
else
5680
 
  echo "$as_me:$LINENO: result: ok" >&5
5681
 
echo "${ECHO_T}ok" >&6
 
6751
  { echo "$as_me:$LINENO: result: ok" >&5
 
6752
echo "${ECHO_T}ok" >&6; }
5682
6753
fi
5683
6754
 
5684
 
echo "$as_me:$LINENO: checking for objdir" >&5
5685
 
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
6755
{ echo "$as_me:$LINENO: checking for objdir" >&5
 
6756
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5686
6757
if test "${lt_cv_objdir+set}" = set; then
5687
6758
  echo $ECHO_N "(cached) $ECHO_C" >&6
5688
6759
else
5696
6767
fi
5697
6768
rmdir .libs 2>/dev/null
5698
6769
fi
5699
 
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5700
 
echo "${ECHO_T}$lt_cv_objdir" >&6
 
6770
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6771
echo "${ECHO_T}$lt_cv_objdir" >&6; }
5701
6772
objdir=$lt_cv_objdir
5702
6773
 
5703
6774
 
5718
6789
 
5719
6790
# Sed substitution that helps us do robust quoting.  It backslashifies
5720
6791
# metacharacters that are still active within double-quoted strings.
5721
 
Xsed='sed -e s/^X//'
 
6792
Xsed='sed -e 1s/^X//'
5722
6793
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5723
6794
 
5724
6795
# Same as above, but do not quote variable references.
5738
6809
default_ofile=libtool
5739
6810
can_build_shared=yes
5740
6811
 
5741
 
# All known linkers require a `.a' archive for static linking (except M$VC,
 
6812
# All known linkers require a `.a' archive for static linking (except MSVC,
5742
6813
# which needs '.lib').
5743
6814
libext=a
5744
6815
ltmain="$ac_aux_dir/ltmain.sh"
5748
6819
if test -n "$ac_tool_prefix"; then
5749
6820
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5750
6821
set dummy ${ac_tool_prefix}ar; ac_word=$2
5751
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5752
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6822
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6823
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5753
6824
if test "${ac_cv_prog_AR+set}" = set; then
5754
6825
  echo $ECHO_N "(cached) $ECHO_C" >&6
5755
6826
else
5762
6833
  IFS=$as_save_IFS
5763
6834
  test -z "$as_dir" && as_dir=.
5764
6835
  for ac_exec_ext in '' $ac_executable_extensions; do
5765
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6836
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5766
6837
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5767
6838
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5768
6839
    break 2
5769
6840
  fi
5770
6841
done
5771
6842
done
 
6843
IFS=$as_save_IFS
5772
6844
 
5773
6845
fi
5774
6846
fi
5775
6847
AR=$ac_cv_prog_AR
5776
6848
if test -n "$AR"; then
5777
 
  echo "$as_me:$LINENO: result: $AR" >&5
5778
 
echo "${ECHO_T}$AR" >&6
 
6849
  { echo "$as_me:$LINENO: result: $AR" >&5
 
6850
echo "${ECHO_T}$AR" >&6; }
5779
6851
else
5780
 
  echo "$as_me:$LINENO: result: no" >&5
5781
 
echo "${ECHO_T}no" >&6
 
6852
  { echo "$as_me:$LINENO: result: no" >&5
 
6853
echo "${ECHO_T}no" >&6; }
5782
6854
fi
 
6855
 
5783
6856
 
5784
6857
fi
5785
6858
if test -z "$ac_cv_prog_AR"; then
5786
6859
  ac_ct_AR=$AR
5787
6860
  # Extract the first word of "ar", so it can be a program name with args.
5788
6861
set dummy ar; ac_word=$2
5789
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5790
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6862
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6863
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5791
6864
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5792
6865
  echo $ECHO_N "(cached) $ECHO_C" >&6
5793
6866
else
5800
6873
  IFS=$as_save_IFS
5801
6874
  test -z "$as_dir" && as_dir=.
5802
6875
  for ac_exec_ext in '' $ac_executable_extensions; do
5803
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6876
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5804
6877
    ac_cv_prog_ac_ct_AR="ar"
5805
6878
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5806
6879
    break 2
5807
6880
  fi
5808
6881
done
5809
6882
done
 
6883
IFS=$as_save_IFS
5810
6884
 
5811
 
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5812
6885
fi
5813
6886
fi
5814
6887
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5815
6888
if test -n "$ac_ct_AR"; then
5816
 
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5817
 
echo "${ECHO_T}$ac_ct_AR" >&6
 
6889
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6890
echo "${ECHO_T}$ac_ct_AR" >&6; }
5818
6891
else
5819
 
  echo "$as_me:$LINENO: result: no" >&5
5820
 
echo "${ECHO_T}no" >&6
 
6892
  { echo "$as_me:$LINENO: result: no" >&5
 
6893
echo "${ECHO_T}no" >&6; }
5821
6894
fi
5822
6895
 
5823
 
  AR=$ac_ct_AR
 
6896
  if test "x$ac_ct_AR" = x; then
 
6897
    AR="false"
 
6898
  else
 
6899
    case $cross_compiling:$ac_tool_warned in
 
6900
yes:)
 
6901
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6902
whose name does not start with the host triplet.  If you think this
 
6903
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6904
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6905
whose name does not start with the host triplet.  If you think this
 
6906
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6907
ac_tool_warned=yes ;;
 
6908
esac
 
6909
    AR=$ac_ct_AR
 
6910
  fi
5824
6911
else
5825
6912
  AR="$ac_cv_prog_AR"
5826
6913
fi
5828
6915
if test -n "$ac_tool_prefix"; then
5829
6916
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5830
6917
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5831
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5832
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6918
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6919
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5833
6920
if test "${ac_cv_prog_RANLIB+set}" = set; then
5834
6921
  echo $ECHO_N "(cached) $ECHO_C" >&6
5835
6922
else
5842
6929
  IFS=$as_save_IFS
5843
6930
  test -z "$as_dir" && as_dir=.
5844
6931
  for ac_exec_ext in '' $ac_executable_extensions; do
5845
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6932
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5846
6933
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5847
6934
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5848
6935
    break 2
5849
6936
  fi
5850
6937
done
5851
6938
done
 
6939
IFS=$as_save_IFS
5852
6940
 
5853
6941
fi
5854
6942
fi
5855
6943
RANLIB=$ac_cv_prog_RANLIB
5856
6944
if test -n "$RANLIB"; then
5857
 
  echo "$as_me:$LINENO: result: $RANLIB" >&5
5858
 
echo "${ECHO_T}$RANLIB" >&6
 
6945
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
6946
echo "${ECHO_T}$RANLIB" >&6; }
5859
6947
else
5860
 
  echo "$as_me:$LINENO: result: no" >&5
5861
 
echo "${ECHO_T}no" >&6
 
6948
  { echo "$as_me:$LINENO: result: no" >&5
 
6949
echo "${ECHO_T}no" >&6; }
5862
6950
fi
 
6951
 
5863
6952
 
5864
6953
fi
5865
6954
if test -z "$ac_cv_prog_RANLIB"; then
5866
6955
  ac_ct_RANLIB=$RANLIB
5867
6956
  # Extract the first word of "ranlib", so it can be a program name with args.
5868
6957
set dummy ranlib; ac_word=$2
5869
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5870
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6958
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6959
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5871
6960
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5872
6961
  echo $ECHO_N "(cached) $ECHO_C" >&6
5873
6962
else
5880
6969
  IFS=$as_save_IFS
5881
6970
  test -z "$as_dir" && as_dir=.
5882
6971
  for ac_exec_ext in '' $ac_executable_extensions; do
5883
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6972
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5884
6973
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5885
6974
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5886
6975
    break 2
5887
6976
  fi
5888
6977
done
5889
6978
done
 
6979
IFS=$as_save_IFS
5890
6980
 
5891
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5892
6981
fi
5893
6982
fi
5894
6983
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5895
6984
if test -n "$ac_ct_RANLIB"; then
5896
 
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5897
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
6985
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
6986
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5898
6987
else
5899
 
  echo "$as_me:$LINENO: result: no" >&5
5900
 
echo "${ECHO_T}no" >&6
 
6988
  { echo "$as_me:$LINENO: result: no" >&5
 
6989
echo "${ECHO_T}no" >&6; }
5901
6990
fi
5902
6991
 
5903
 
  RANLIB=$ac_ct_RANLIB
 
6992
  if test "x$ac_ct_RANLIB" = x; then
 
6993
    RANLIB=":"
 
6994
  else
 
6995
    case $cross_compiling:$ac_tool_warned in
 
6996
yes:)
 
6997
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6998
whose name does not start with the host triplet.  If you think this
 
6999
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7000
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7001
whose name does not start with the host triplet.  If you think this
 
7002
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7003
ac_tool_warned=yes ;;
 
7004
esac
 
7005
    RANLIB=$ac_ct_RANLIB
 
7006
  fi
5904
7007
else
5905
7008
  RANLIB="$ac_cv_prog_RANLIB"
5906
7009
fi
5908
7011
if test -n "$ac_tool_prefix"; then
5909
7012
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5910
7013
set dummy ${ac_tool_prefix}strip; ac_word=$2
5911
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5912
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7014
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7015
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5913
7016
if test "${ac_cv_prog_STRIP+set}" = set; then
5914
7017
  echo $ECHO_N "(cached) $ECHO_C" >&6
5915
7018
else
5922
7025
  IFS=$as_save_IFS
5923
7026
  test -z "$as_dir" && as_dir=.
5924
7027
  for ac_exec_ext in '' $ac_executable_extensions; do
5925
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7028
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5926
7029
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5927
7030
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5928
7031
    break 2
5929
7032
  fi
5930
7033
done
5931
7034
done
 
7035
IFS=$as_save_IFS
5932
7036
 
5933
7037
fi
5934
7038
fi
5935
7039
STRIP=$ac_cv_prog_STRIP
5936
7040
if test -n "$STRIP"; then
5937
 
  echo "$as_me:$LINENO: result: $STRIP" >&5
5938
 
echo "${ECHO_T}$STRIP" >&6
 
7041
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
7042
echo "${ECHO_T}$STRIP" >&6; }
5939
7043
else
5940
 
  echo "$as_me:$LINENO: result: no" >&5
5941
 
echo "${ECHO_T}no" >&6
 
7044
  { echo "$as_me:$LINENO: result: no" >&5
 
7045
echo "${ECHO_T}no" >&6; }
5942
7046
fi
 
7047
 
5943
7048
 
5944
7049
fi
5945
7050
if test -z "$ac_cv_prog_STRIP"; then
5946
7051
  ac_ct_STRIP=$STRIP
5947
7052
  # Extract the first word of "strip", so it can be a program name with args.
5948
7053
set dummy strip; ac_word=$2
5949
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5950
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7054
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7055
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5951
7056
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5952
7057
  echo $ECHO_N "(cached) $ECHO_C" >&6
5953
7058
else
5960
7065
  IFS=$as_save_IFS
5961
7066
  test -z "$as_dir" && as_dir=.
5962
7067
  for ac_exec_ext in '' $ac_executable_extensions; do
5963
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7068
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5964
7069
    ac_cv_prog_ac_ct_STRIP="strip"
5965
7070
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5966
7071
    break 2
5967
7072
  fi
5968
7073
done
5969
7074
done
 
7075
IFS=$as_save_IFS
5970
7076
 
5971
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5972
7077
fi
5973
7078
fi
5974
7079
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5975
7080
if test -n "$ac_ct_STRIP"; then
5976
 
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5977
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
7081
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
7082
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5978
7083
else
5979
 
  echo "$as_me:$LINENO: result: no" >&5
5980
 
echo "${ECHO_T}no" >&6
 
7084
  { echo "$as_me:$LINENO: result: no" >&5
 
7085
echo "${ECHO_T}no" >&6; }
5981
7086
fi
5982
7087
 
5983
 
  STRIP=$ac_ct_STRIP
 
7088
  if test "x$ac_ct_STRIP" = x; then
 
7089
    STRIP=":"
 
7090
  else
 
7091
    case $cross_compiling:$ac_tool_warned in
 
7092
yes:)
 
7093
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7094
whose name does not start with the host triplet.  If you think this
 
7095
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7096
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7097
whose name does not start with the host triplet.  If you think this
 
7098
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7099
ac_tool_warned=yes ;;
 
7100
esac
 
7101
    STRIP=$ac_ct_STRIP
 
7102
  fi
5984
7103
else
5985
7104
  STRIP="$ac_cv_prog_STRIP"
5986
7105
fi
5995
7114
test -z "$AS" && AS=as
5996
7115
test -z "$CC" && CC=cc
5997
7116
test -z "$LTCC" && LTCC=$CC
 
7117
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5998
7118
test -z "$DLLTOOL" && DLLTOOL=dlltool
5999
7119
test -z "$LD" && LD=ld
6000
7120
test -z "$LN_S" && LN_S="ln -s"
6014
7134
if test -n "$RANLIB"; then
6015
7135
  case $host_os in
6016
7136
  openbsd*)
6017
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
7137
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6018
7138
    ;;
6019
7139
  *)
6020
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
7140
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6021
7141
    ;;
6022
7142
  esac
6023
7143
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6024
7144
fi
6025
7145
 
 
7146
for cc_temp in $compiler""; do
 
7147
  case $cc_temp in
 
7148
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7149
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7150
    \-*) ;;
 
7151
    *) break;;
 
7152
  esac
 
7153
done
 
7154
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7155
 
 
7156
 
6026
7157
# Only perform the check for file, if the check method requires it
6027
7158
case $deplibs_check_method in
6028
7159
file_magic*)
6029
7160
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6030
 
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6031
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
7161
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7162
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6032
7163
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6033
7164
  echo $ECHO_N "(cached) $ECHO_C" >&6
6034
7165
else
6048
7179
      if test -n "$file_magic_test_file"; then
6049
7180
        case $deplibs_check_method in
6050
7181
        "file_magic "*)
6051
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
7182
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6052
7183
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6053
7184
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6054
7185
            $EGREP "$file_magic_regex" > /dev/null; then
6080
7211
 
6081
7212
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6082
7213
if test -n "$MAGIC_CMD"; then
6083
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6084
 
echo "${ECHO_T}$MAGIC_CMD" >&6
 
7214
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7215
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6085
7216
else
6086
 
  echo "$as_me:$LINENO: result: no" >&5
6087
 
echo "${ECHO_T}no" >&6
 
7217
  { echo "$as_me:$LINENO: result: no" >&5
 
7218
echo "${ECHO_T}no" >&6; }
6088
7219
fi
6089
7220
 
6090
7221
if test -z "$lt_cv_path_MAGIC_CMD"; then
6091
7222
  if test -n "$ac_tool_prefix"; then
6092
 
    echo "$as_me:$LINENO: checking for file" >&5
6093
 
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
7223
    { echo "$as_me:$LINENO: checking for file" >&5
 
7224
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6094
7225
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6095
7226
  echo $ECHO_N "(cached) $ECHO_C" >&6
6096
7227
else
6110
7241
      if test -n "$file_magic_test_file"; then
6111
7242
        case $deplibs_check_method in
6112
7243
        "file_magic "*)
6113
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
7244
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6114
7245
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6115
7246
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6116
7247
            $EGREP "$file_magic_regex" > /dev/null; then
6142
7273
 
6143
7274
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6144
7275
if test -n "$MAGIC_CMD"; then
6145
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6146
 
echo "${ECHO_T}$MAGIC_CMD" >&6
 
7276
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7277
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6147
7278
else
6148
 
  echo "$as_me:$LINENO: result: no" >&5
6149
 
echo "${ECHO_T}no" >&6
 
7279
  { echo "$as_me:$LINENO: result: no" >&5
 
7280
echo "${ECHO_T}no" >&6; }
6150
7281
fi
6151
7282
 
6152
7283
  else
6161
7292
enable_dlopen=no
6162
7293
enable_win32_dll=no
6163
7294
 
6164
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
7295
# Check whether --enable-libtool-lock was given.
6165
7296
if test "${enable_libtool_lock+set}" = set; then
6166
 
  enableval="$enable_libtool_lock"
 
7297
  enableval=$enable_libtool_lock;
 
7298
fi
6167
7299
 
6168
 
fi;
6169
7300
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6170
7301
 
6171
7302
 
6172
 
# Check whether --with-pic or --without-pic was given.
 
7303
# Check whether --with-pic was given.
6173
7304
if test "${with_pic+set}" = set; then
6174
 
  withval="$with_pic"
6175
 
  pic_mode="$withval"
 
7305
  withval=$with_pic; pic_mode="$withval"
6176
7306
else
6177
7307
  pic_mode=default
6178
 
fi;
 
7308
fi
 
7309
 
6179
7310
test -z "$pic_mode" && pic_mode=default
6180
7311
 
6181
7312
# Use C for the default configuration in the libtool script
6205
7336
# If no C compiler was specified, use CC.
6206
7337
LTCC=${LTCC-"$CC"}
6207
7338
 
 
7339
# If no C compiler flags were specified, use CFLAGS.
 
7340
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7341
 
6208
7342
# Allow CC to be a program name with arguments.
6209
7343
compiler=$CC
6210
7344
 
6211
7345
 
6212
 
#
6213
 
# Check for any special shared library compilation flags.
6214
 
#
6215
 
lt_prog_cc_shlib=
6216
 
if test "$GCC" = no; then
6217
 
  case $host_os in
6218
 
  sco3.2v5*)
6219
 
    lt_prog_cc_shlib='-belf'
6220
 
    ;;
6221
 
  esac
6222
 
fi
6223
 
if test -n "$lt_prog_cc_shlib"; then
6224
 
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6225
 
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6226
 
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6227
 
  else
6228
 
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6229
 
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6230
 
    lt_cv_prog_cc_can_build_shared=no
6231
 
  fi
6232
 
fi
6233
 
 
6234
 
 
6235
 
#
6236
 
# Check to make sure the static flag actually works.
6237
 
#
6238
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6239
 
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6240
 
if test "${lt_prog_compiler_static_works+set}" = set; then
6241
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6242
 
else
6243
 
  lt_prog_compiler_static_works=no
6244
 
   save_LDFLAGS="$LDFLAGS"
6245
 
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6246
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6247
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6248
 
     # The compiler can only warn and ignore the option if not recognized
6249
 
     # So say no if there are warnings
6250
 
     if test -s conftest.err; then
6251
 
       # Append any errors to the config.log.
6252
 
       cat conftest.err 1>&5
6253
 
     else
6254
 
       lt_prog_compiler_static_works=yes
6255
 
     fi
6256
 
   fi
6257
 
   $rm conftest*
6258
 
   LDFLAGS="$save_LDFLAGS"
6259
 
 
6260
 
fi
6261
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6262
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6263
 
 
6264
 
if test x"$lt_prog_compiler_static_works" = xyes; then
6265
 
    :
6266
 
else
6267
 
    lt_prog_compiler_static=
6268
 
fi
6269
 
 
 
7346
# save warnings/boilerplate of simple test code
 
7347
ac_outfile=conftest.$ac_objext
 
7348
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7349
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7350
_lt_compiler_boilerplate=`cat conftest.err`
 
7351
$rm conftest*
 
7352
 
 
7353
ac_outfile=conftest.$ac_objext
 
7354
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
7355
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7356
_lt_linker_boilerplate=`cat conftest.err`
 
7357
$rm conftest*
6270
7358
 
6271
7359
 
6272
7360
 
6276
7364
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6277
7365
 
6278
7366
 
6279
 
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6280
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
7367
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7368
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6281
7369
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6282
7370
  echo $ECHO_N "(cached) $ECHO_C" >&6
6283
7371
else
6291
7379
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6292
7380
   # The option is referenced via a variable to avoid confusing sed.
6293
7381
   lt_compile=`echo "$ac_compile" | $SED \
6294
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7382
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6295
7383
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6296
7384
   -e 's:$: $lt_compiler_flag:'`
6297
 
   (eval echo "\"\$as_me:6297: $lt_compile\"" >&5)
 
7385
   (eval echo "\"\$as_me:7385: $lt_compile\"" >&5)
6298
7386
   (eval "$lt_compile" 2>conftest.err)
6299
7387
   ac_status=$?
6300
7388
   cat conftest.err >&5
6301
 
   echo "$as_me:6301: \$? = $ac_status" >&5
 
7389
   echo "$as_me:7389: \$? = $ac_status" >&5
6302
7390
   if (exit $ac_status) && test -s "$ac_outfile"; then
6303
7391
     # The compiler can only warn and ignore the option if not recognized
6304
 
     # So say no if there are warnings
6305
 
     if test ! -s conftest.err; then
 
7392
     # So say no if there are warnings other than the usual output.
 
7393
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7394
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7395
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6306
7396
       lt_cv_prog_compiler_rtti_exceptions=yes
6307
7397
     fi
6308
7398
   fi
6309
7399
   $rm conftest*
6310
7400
 
6311
7401
fi
6312
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6313
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
7402
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7403
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6314
7404
 
6315
7405
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6316
7406
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6324
7414
lt_prog_compiler_pic=
6325
7415
lt_prog_compiler_static=
6326
7416
 
6327
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6328
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
7417
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7418
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6329
7419
 
6330
7420
  if test "$GCC" = yes; then
6331
7421
    lt_prog_compiler_wl='-Wl,'
6363
7453
      lt_prog_compiler_pic='-fno-common'
6364
7454
      ;;
6365
7455
 
 
7456
    interix3*)
 
7457
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7458
      # Instead, we relocate shared libraries at runtime.
 
7459
      ;;
 
7460
 
6366
7461
    msdosdjgpp*)
6367
7462
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6368
7463
      # on systems that don't support them.
6379
7474
    hpux*)
6380
7475
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6381
7476
      # not for PA HP-UX.
6382
 
      case "$host_cpu" in
 
7477
      case $host_cpu in
6383
7478
      hppa*64*|ia64*)
6384
7479
        # +Z the default
6385
7480
        ;;
6405
7500
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6406
7501
      fi
6407
7502
      ;;
 
7503
      darwin*)
 
7504
        # PIC is the default on this platform
 
7505
        # Common symbols not allowed in MH_DYLIB files
 
7506
       case $cc_basename in
 
7507
         xlc*)
 
7508
         lt_prog_compiler_pic='-qnocommon'
 
7509
         lt_prog_compiler_wl='-Wl,'
 
7510
         ;;
 
7511
       esac
 
7512
       ;;
6408
7513
 
6409
7514
    mingw* | pw32* | os2*)
6410
7515
      # This hack is so that the source file can tell whether it is being
6416
7521
      lt_prog_compiler_wl='-Wl,'
6417
7522
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6418
7523
      # not for PA HP-UX.
6419
 
      case "$host_cpu" in
 
7524
      case $host_cpu in
6420
7525
      hppa*64*|ia64*)
6421
7526
        # +Z the default
6422
7527
        ;;
6439
7544
      lt_prog_compiler_static='-Bstatic'
6440
7545
      ;;
6441
7546
 
6442
 
    linux*)
6443
 
      case $CC in
 
7547
    linux* | k*bsd*-gnu)
 
7548
      case $cc_basename in
6444
7549
      icc* | ecc*)
6445
7550
        lt_prog_compiler_wl='-Wl,'
6446
7551
        lt_prog_compiler_pic='-KPIC'
6447
7552
        lt_prog_compiler_static='-static'
6448
7553
        ;;
 
7554
      pgcc* | pgf77* | pgf90* | pgf95*)
 
7555
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
7556
        # which looks to be a dead project)
 
7557
        lt_prog_compiler_wl='-Wl,'
 
7558
        lt_prog_compiler_pic='-fpic'
 
7559
        lt_prog_compiler_static='-Bstatic'
 
7560
        ;;
6449
7561
      ccc*)
6450
7562
        lt_prog_compiler_wl='-Wl,'
6451
7563
        # All Alpha code is PIC.
6460
7572
      lt_prog_compiler_static='-non_shared'
6461
7573
      ;;
6462
7574
 
6463
 
    sco3.2v5*)
6464
 
      lt_prog_compiler_pic='-Kpic'
6465
 
      lt_prog_compiler_static='-dn'
6466
 
      ;;
6467
 
 
6468
7575
    solaris*)
6469
 
      lt_prog_compiler_wl='-Wl,'
6470
7576
      lt_prog_compiler_pic='-KPIC'
6471
7577
      lt_prog_compiler_static='-Bstatic'
 
7578
      case $cc_basename in
 
7579
      f77* | f90* | f95*)
 
7580
        lt_prog_compiler_wl='-Qoption ld ';;
 
7581
      *)
 
7582
        lt_prog_compiler_wl='-Wl,';;
 
7583
      esac
6472
7584
      ;;
6473
7585
 
6474
7586
    sunos4*)
6477
7589
      lt_prog_compiler_static='-Bstatic'
6478
7590
      ;;
6479
7591
 
6480
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
7592
    sysv4 | sysv4.2uw2* | sysv4.3*)
6481
7593
      lt_prog_compiler_wl='-Wl,'
6482
7594
      lt_prog_compiler_pic='-KPIC'
6483
7595
      lt_prog_compiler_static='-Bstatic'
6490
7602
      fi
6491
7603
      ;;
6492
7604
 
 
7605
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
7606
      lt_prog_compiler_wl='-Wl,'
 
7607
      lt_prog_compiler_pic='-KPIC'
 
7608
      lt_prog_compiler_static='-Bstatic'
 
7609
      ;;
 
7610
 
 
7611
    unicos*)
 
7612
      lt_prog_compiler_wl='-Wl,'
 
7613
      lt_prog_compiler_can_build_shared=no
 
7614
      ;;
 
7615
 
6493
7616
    uts4*)
6494
7617
      lt_prog_compiler_pic='-pic'
6495
7618
      lt_prog_compiler_static='-Bstatic'
6501
7624
    esac
6502
7625
  fi
6503
7626
 
6504
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6505
 
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
7627
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
7628
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6506
7629
 
6507
7630
#
6508
7631
# Check to make sure the PIC flag actually works.
6509
7632
#
6510
7633
if test -n "$lt_prog_compiler_pic"; then
6511
7634
 
6512
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6513
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
7635
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7636
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6514
7637
if test "${lt_prog_compiler_pic_works+set}" = set; then
6515
7638
  echo $ECHO_N "(cached) $ECHO_C" >&6
6516
7639
else
6524
7647
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6525
7648
   # The option is referenced via a variable to avoid confusing sed.
6526
7649
   lt_compile=`echo "$ac_compile" | $SED \
6527
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7650
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6528
7651
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6529
7652
   -e 's:$: $lt_compiler_flag:'`
6530
 
   (eval echo "\"\$as_me:6530: $lt_compile\"" >&5)
 
7653
   (eval echo "\"\$as_me:7653: $lt_compile\"" >&5)
6531
7654
   (eval "$lt_compile" 2>conftest.err)
6532
7655
   ac_status=$?
6533
7656
   cat conftest.err >&5
6534
 
   echo "$as_me:6534: \$? = $ac_status" >&5
 
7657
   echo "$as_me:7657: \$? = $ac_status" >&5
6535
7658
   if (exit $ac_status) && test -s "$ac_outfile"; then
6536
7659
     # The compiler can only warn and ignore the option if not recognized
6537
 
     # So say no if there are warnings
6538
 
     if test ! -s conftest.err; then
 
7660
     # So say no if there are warnings other than the usual output.
 
7661
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7662
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7663
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6539
7664
       lt_prog_compiler_pic_works=yes
6540
7665
     fi
6541
7666
   fi
6542
7667
   $rm conftest*
6543
7668
 
6544
7669
fi
6545
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6546
 
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
7670
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
7671
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6547
7672
 
6548
7673
if test x"$lt_prog_compiler_pic_works" = xyes; then
6549
7674
    case $lt_prog_compiler_pic in
6556
7681
fi
6557
7682
 
6558
7683
fi
6559
 
case "$host_os" in
 
7684
case $host_os in
6560
7685
  # For platforms which do not support PIC, -DPIC is meaningless:
6561
7686
  *djgpp*)
6562
7687
    lt_prog_compiler_pic=
6566
7691
    ;;
6567
7692
esac
6568
7693
 
6569
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6570
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
7694
#
 
7695
# Check to make sure the static flag actually works.
 
7696
#
 
7697
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
7698
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
7699
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
7700
if test "${lt_prog_compiler_static_works+set}" = set; then
 
7701
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7702
else
 
7703
  lt_prog_compiler_static_works=no
 
7704
   save_LDFLAGS="$LDFLAGS"
 
7705
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
7706
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
7707
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
7708
     # The linker can only warn and ignore the option if not recognized
 
7709
     # So say no if there are warnings
 
7710
     if test -s conftest.err; then
 
7711
       # Append any errors to the config.log.
 
7712
       cat conftest.err 1>&5
 
7713
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
7714
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7715
       if diff conftest.exp conftest.er2 >/dev/null; then
 
7716
         lt_prog_compiler_static_works=yes
 
7717
       fi
 
7718
     else
 
7719
       lt_prog_compiler_static_works=yes
 
7720
     fi
 
7721
   fi
 
7722
   $rm conftest*
 
7723
   LDFLAGS="$save_LDFLAGS"
 
7724
 
 
7725
fi
 
7726
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
7727
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
 
7728
 
 
7729
if test x"$lt_prog_compiler_static_works" = xyes; then
 
7730
    :
 
7731
else
 
7732
    lt_prog_compiler_static=
 
7733
fi
 
7734
 
 
7735
 
 
7736
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7737
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6571
7738
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6572
7739
  echo $ECHO_N "(cached) $ECHO_C" >&6
6573
7740
else
6584
7751
   # Note that $ac_compile itself does not contain backslashes and begins
6585
7752
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6586
7753
   lt_compile=`echo "$ac_compile" | $SED \
6587
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7754
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6588
7755
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6589
7756
   -e 's:$: $lt_compiler_flag:'`
6590
 
   (eval echo "\"\$as_me:6590: $lt_compile\"" >&5)
 
7757
   (eval echo "\"\$as_me:7757: $lt_compile\"" >&5)
6591
7758
   (eval "$lt_compile" 2>out/conftest.err)
6592
7759
   ac_status=$?
6593
7760
   cat out/conftest.err >&5
6594
 
   echo "$as_me:6594: \$? = $ac_status" >&5
 
7761
   echo "$as_me:7761: \$? = $ac_status" >&5
6595
7762
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6596
7763
   then
6597
7764
     # The compiler can only warn and ignore the option if not recognized
6598
7765
     # So say no if there are warnings
6599
 
     if test ! -s out/conftest.err; then
 
7766
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
7767
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
7768
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6600
7769
       lt_cv_prog_compiler_c_o=yes
6601
7770
     fi
6602
7771
   fi
6603
 
   chmod u+w .
 
7772
   chmod u+w . 2>&5
6604
7773
   $rm conftest*
6605
7774
   # SGI C++ compiler will create directory out/ii_files/ for
6606
7775
   # template instantiation
6611
7780
   $rm conftest*
6612
7781
 
6613
7782
fi
6614
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6615
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
7783
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
7784
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
6616
7785
 
6617
7786
 
6618
7787
hard_links="nottested"
6619
7788
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6620
7789
  # do not overwrite the value of need_locks provided by the user
6621
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6622
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
7790
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
7791
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6623
7792
  hard_links=yes
6624
7793
  $rm conftest*
6625
7794
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6626
7795
  touch conftest.a
6627
7796
  ln conftest.a conftest.b 2>&5 || hard_links=no
6628
7797
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6629
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
6630
 
echo "${ECHO_T}$hard_links" >&6
 
7798
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
7799
echo "${ECHO_T}$hard_links" >&6; }
6631
7800
  if test "$hard_links" = no; then
6632
7801
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6633
7802
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6637
7806
  need_locks=no
6638
7807
fi
6639
7808
 
6640
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6641
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
7809
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
7810
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6642
7811
 
6643
7812
  runpath_var=
6644
7813
  allow_undefined_flag=
6676
7845
  # rely on this symbol name, it's probably fine to never include it in
6677
7846
  # preloaded symbol tables.
6678
7847
  extract_expsyms_cmds=
 
7848
  # Just being paranoid about ensuring that cc_basename is set.
 
7849
  for cc_temp in $compiler""; do
 
7850
  case $cc_temp in
 
7851
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7852
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7853
    \-*) ;;
 
7854
    *) break;;
 
7855
  esac
 
7856
done
 
7857
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6679
7858
 
6680
7859
  case $host_os in
6681
7860
  cygwin* | mingw* | pw32*)
6686
7865
      with_gnu_ld=no
6687
7866
    fi
6688
7867
    ;;
 
7868
  interix*)
 
7869
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
7870
    with_gnu_ld=yes
 
7871
    ;;
6689
7872
  openbsd*)
6690
7873
    with_gnu_ld=no
6691
7874
    ;;
6696
7879
    # If archive_cmds runs LD, not CC, wlarc should be empty
6697
7880
    wlarc='${wl}'
6698
7881
 
 
7882
    # Set some defaults for GNU ld with shared library support. These
 
7883
    # are reset later if shared libraries are not supported. Putting them
 
7884
    # here allows them to be overridden if necessary.
 
7885
    runpath_var=LD_RUN_PATH
 
7886
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
7887
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
7888
    # ancient GNU ld didn't support --whole-archive et. al.
 
7889
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
7890
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7891
      else
 
7892
        whole_archive_flag_spec=
 
7893
    fi
 
7894
    supports_anon_versioning=no
 
7895
    case `$LD -v 2>/dev/null` in
 
7896
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
7897
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
7898
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
7899
      *\ 2.11.*) ;; # other 2.11 versions
 
7900
      *) supports_anon_versioning=yes ;;
 
7901
    esac
 
7902
 
6699
7903
    # See if GNU ld supports shared libraries.
6700
7904
    case $host_os in
6701
7905
    aix3* | aix4* | aix5*)
6746
7950
      allow_undefined_flag=unsupported
6747
7951
      always_export_symbols=no
6748
7952
      enable_shared_with_static_runtimes=yes
6749
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
7953
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6750
7954
 
6751
7955
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6752
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
7956
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6753
7957
        # If the export-symbols file already is a .def file (1st line
6754
7958
        # is EXPORTS), use it as is; otherwise, prepend...
6755
7959
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6758
7962
          echo EXPORTS > $output_objdir/$soname.def;
6759
7963
          cat $export_symbols >> $output_objdir/$soname.def;
6760
7964
        fi~
6761
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6762
 
      else
6763
 
        ld_shlibs=no
6764
 
      fi
6765
 
      ;;
6766
 
 
6767
 
    netbsd*)
 
7965
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
7966
      else
 
7967
        ld_shlibs=no
 
7968
      fi
 
7969
      ;;
 
7970
 
 
7971
    interix3*)
 
7972
      hardcode_direct=no
 
7973
      hardcode_shlibpath_var=no
 
7974
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7975
      export_dynamic_flag_spec='${wl}-E'
 
7976
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
7977
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
7978
      # default) and relocated if they conflict, which is a slow very memory
 
7979
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
7980
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
7981
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
7982
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
7983
      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'
 
7984
      ;;
 
7985
 
 
7986
    linux* | k*bsd*-gnu)
 
7987
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7988
        tmp_addflag=
 
7989
        case $cc_basename,$host_cpu in
 
7990
        pgcc*)                          # Portland Group C compiler
 
7991
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
7992
          tmp_addflag=' $pic_flag'
 
7993
          ;;
 
7994
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
7995
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
7996
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
7997
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
7998
          tmp_addflag=' -i_dynamic' ;;
 
7999
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8000
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8001
        ifc* | ifort*)                  # Intel Fortran compiler
 
8002
          tmp_addflag=' -nofor_main' ;;
 
8003
        esac
 
8004
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8005
 
 
8006
        if test $supports_anon_versioning = yes; then
 
8007
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
8008
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8009
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
8010
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8011
        fi
 
8012
        link_all_deplibs=no
 
8013
      else
 
8014
        ld_shlibs=no
 
8015
      fi
 
8016
      ;;
 
8017
 
 
8018
    netbsd* | netbsdelf*-gnu)
6768
8019
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6769
8020
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6770
8021
        wlarc=
6774
8025
      fi
6775
8026
      ;;
6776
8027
 
6777
 
    solaris* | sysv5*)
 
8028
    solaris*)
6778
8029
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6779
8030
        ld_shlibs=no
6780
8031
        cat <<EOF 1>&2
6795
8046
      fi
6796
8047
      ;;
6797
8048
 
 
8049
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8050
      case `$LD -v 2>&1` in
 
8051
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8052
        ld_shlibs=no
 
8053
        cat <<_LT_EOF 1>&2
 
8054
 
 
8055
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8056
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8057
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8058
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8059
*** your PATH or compiler configuration so that the native linker is
 
8060
*** used, and then restart.
 
8061
 
 
8062
_LT_EOF
 
8063
        ;;
 
8064
        *)
 
8065
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8066
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
8067
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
8068
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
8069
          else
 
8070
            ld_shlibs=no
 
8071
          fi
 
8072
        ;;
 
8073
      esac
 
8074
      ;;
 
8075
 
6798
8076
    sunos4*)
6799
8077
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6800
8078
      wlarc=
6802
8080
      hardcode_shlibpath_var=no
6803
8081
      ;;
6804
8082
 
6805
 
  linux*)
6806
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6807
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6808
 
        archive_cmds="$tmp_archive_cmds"
6809
 
      supports_anon_versioning=no
6810
 
      case `$LD -v 2>/dev/null` in
6811
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6812
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6813
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6814
 
        *\ 2.11.*) ;; # other 2.11 versions
6815
 
        *) supports_anon_versioning=yes ;;
6816
 
      esac
6817
 
      if test $supports_anon_versioning = yes; then
6818
 
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6819
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6820
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
6821
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6822
 
      else
6823
 
        archive_expsym_cmds="$tmp_archive_cmds"
6824
 
      fi
6825
 
    else
6826
 
      ld_shlibs=no
6827
 
    fi
6828
 
    ;;
6829
 
 
6830
8083
    *)
6831
8084
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6832
8085
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6837
8090
      ;;
6838
8091
    esac
6839
8092
 
6840
 
    if test "$ld_shlibs" = yes; then
6841
 
      runpath_var=LD_RUN_PATH
6842
 
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6843
 
      export_dynamic_flag_spec='${wl}--export-dynamic'
6844
 
      # ancient GNU ld didn't support --whole-archive et. al.
6845
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6846
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6847
 
      else
6848
 
        whole_archive_flag_spec=
6849
 
      fi
 
8093
    if test "$ld_shlibs" = no; then
 
8094
      runpath_var=
 
8095
      hardcode_libdir_flag_spec=
 
8096
      export_dynamic_flag_spec=
 
8097
      whole_archive_flag_spec=
6850
8098
    fi
6851
8099
  else
6852
8100
    # PORTME fill in a description of your system's linker (not GNU ld)
6858
8106
      # Note: this linker hardcodes the directories in LIBPATH if there
6859
8107
      # are no directories specified by -L.
6860
8108
      hardcode_minus_L=yes
6861
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
8109
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6862
8110
        # Neither direct hardcoding nor static linking is supported with a
6863
8111
        # broken collect2.
6864
8112
        hardcode_direct=unsupported
6892
8140
            break
6893
8141
          fi
6894
8142
          done
 
8143
          ;;
6895
8144
        esac
6896
8145
 
6897
8146
        exp_sym_flag='-bexport'
6910
8159
      link_all_deplibs=yes
6911
8160
 
6912
8161
      if test "$GCC" = yes; then
6913
 
        case $host_os in aix4.012|aix4.012.*)
 
8162
        case $host_os in aix4.[012]|aix4.[012].*)
6914
8163
        # We only want to do this on AIX 4.2 and lower, the check
6915
8164
        # below for broken collect2 doesn't work under 4.3+
6916
8165
          collect2name=`${CC} -print-prog-name=collect2`
6929
8178
          hardcode_libdir_flag_spec='-L$libdir'
6930
8179
          hardcode_libdir_separator=
6931
8180
          fi
 
8181
          ;;
6932
8182
        esac
6933
8183
        shared_flag='-shared'
 
8184
        if test "$aix_use_runtimelinking" = yes; then
 
8185
          shared_flag="$shared_flag "'${wl}-G'
 
8186
        fi
6934
8187
      else
6935
8188
        # not using gcc
6936
8189
        if test "$host_cpu" = ia64; then
6938
8191
        # chokes on -Wl,-G. The following line is correct:
6939
8192
          shared_flag='-G'
6940
8193
        else
6941
 
        if test "$aix_use_runtimelinking" = yes; then
 
8194
          if test "$aix_use_runtimelinking" = yes; then
6942
8195
            shared_flag='${wl}-G'
6943
8196
          else
6944
8197
            shared_flag='${wl}-bM:SRE'
6945
 
        fi
 
8198
          fi
6946
8199
        fi
6947
8200
      fi
6948
8201
 
6970
8223
}
6971
8224
_ACEOF
6972
8225
rm -f conftest.$ac_objext conftest$ac_exeext
6973
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6974
 
  (eval $ac_link) 2>conftest.er1
 
8226
if { (ac_try="$ac_link"
 
8227
case "(($ac_try" in
 
8228
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8229
  *) ac_try_echo=$ac_try;;
 
8230
esac
 
8231
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8232
  (eval "$ac_link") 2>conftest.er1
6975
8233
  ac_status=$?
6976
8234
  grep -v '^ *+' conftest.er1 >conftest.err
6977
8235
  rm -f conftest.er1
6978
8236
  cat conftest.err >&5
6979
8237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980
8238
  (exit $ac_status); } &&
6981
 
         { ac_try='test -z "$ac_c_werror_flag"
6982
 
                         || test ! -s conftest.err'
6983
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984
 
  (eval $ac_try) 2>&5
 
8239
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
8240
  { (case "(($ac_try" in
 
8241
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8242
  *) ac_try_echo=$ac_try;;
 
8243
esac
 
8244
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8245
  (eval "$ac_try") 2>&5
6985
8246
  ac_status=$?
6986
8247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987
8248
  (exit $ac_status); }; } &&
6988
8249
         { ac_try='test -s conftest$ac_exeext'
6989
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990
 
  (eval $ac_try) 2>&5
 
8250
  { (case "(($ac_try" in
 
8251
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8252
  *) ac_try_echo=$ac_try;;
 
8253
esac
 
8254
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8255
  (eval "$ac_try") 2>&5
6991
8256
  ac_status=$?
6992
8257
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993
8258
  (exit $ac_status); }; }; then
7001
8266
  echo "$as_me: failed program was:" >&5
7002
8267
sed 's/^/| /' conftest.$ac_ext >&5
7003
8268
 
 
8269
 
7004
8270
fi
7005
 
rm -f conftest.err conftest.$ac_objext \
 
8271
 
 
8272
rm -f core conftest.err conftest.$ac_objext \
7006
8273
      conftest$ac_exeext conftest.$ac_ext
7007
8274
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7008
8275
 
7009
8276
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7010
 
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
8277
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7011
8278
       else
7012
8279
        if test "$host_cpu" = ia64; then
7013
8280
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7014
8281
          allow_undefined_flag="-z nodefs"
7015
 
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
8282
          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"
7016
8283
        else
7017
8284
         # Determine the default libpath from the value encoded in an empty executable.
7018
8285
         cat >conftest.$ac_ext <<_ACEOF
7031
8298
}
7032
8299
_ACEOF
7033
8300
rm -f conftest.$ac_objext conftest$ac_exeext
7034
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7035
 
  (eval $ac_link) 2>conftest.er1
 
8301
if { (ac_try="$ac_link"
 
8302
case "(($ac_try" in
 
8303
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8304
  *) ac_try_echo=$ac_try;;
 
8305
esac
 
8306
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8307
  (eval "$ac_link") 2>conftest.er1
7036
8308
  ac_status=$?
7037
8309
  grep -v '^ *+' conftest.er1 >conftest.err
7038
8310
  rm -f conftest.er1
7039
8311
  cat conftest.err >&5
7040
8312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041
8313
  (exit $ac_status); } &&
7042
 
         { ac_try='test -z "$ac_c_werror_flag"
7043
 
                         || test ! -s conftest.err'
7044
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045
 
  (eval $ac_try) 2>&5
 
8314
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
8315
  { (case "(($ac_try" in
 
8316
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8317
  *) ac_try_echo=$ac_try;;
 
8318
esac
 
8319
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8320
  (eval "$ac_try") 2>&5
7046
8321
  ac_status=$?
7047
8322
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048
8323
  (exit $ac_status); }; } &&
7049
8324
         { ac_try='test -s conftest$ac_exeext'
7050
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051
 
  (eval $ac_try) 2>&5
 
8325
  { (case "(($ac_try" in
 
8326
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8327
  *) ac_try_echo=$ac_try;;
 
8328
esac
 
8329
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8330
  (eval "$ac_try") 2>&5
7052
8331
  ac_status=$?
7053
8332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054
8333
  (exit $ac_status); }; }; then
7062
8341
  echo "$as_me: failed program was:" >&5
7063
8342
sed 's/^/| /' conftest.$ac_ext >&5
7064
8343
 
 
8344
 
7065
8345
fi
7066
 
rm -f conftest.err conftest.$ac_objext \
 
8346
 
 
8347
rm -f core conftest.err conftest.$ac_objext \
7067
8348
      conftest$ac_exeext conftest.$ac_ext
7068
8349
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7069
8350
 
7072
8353
          # -berok will link without error, but may produce a broken library.
7073
8354
          no_undefined_flag=' ${wl}-bernotok'
7074
8355
          allow_undefined_flag=' ${wl}-berok'
7075
 
          # -bexpall does not export symbols beginning with underscore (_)
7076
 
          always_export_symbols=yes
7077
8356
          # Exported symbols can be pulled into shared objects from archives
7078
 
          whole_archive_flag_spec=' '
 
8357
          whole_archive_flag_spec='$convenience'
7079
8358
          archive_cmds_need_lc=yes
7080
 
          # This is similar to how AIX traditionally builds it's shared libraries.
7081
 
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
8359
          # This is similar to how AIX traditionally builds its shared libraries.
 
8360
          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'
7082
8361
        fi
7083
8362
      fi
7084
8363
      ;;
7091
8370
      ld_shlibs=no
7092
8371
      ;;
7093
8372
 
7094
 
    bsdi4*)
 
8373
    bsdi[45]*)
7095
8374
      export_dynamic_flag_spec=-rdynamic
7096
8375
      ;;
7097
8376
 
7117
8396
      ;;
7118
8397
 
7119
8398
    darwin* | rhapsody*)
7120
 
    if test "$GXX" = yes ; then
 
8399
      case $host_os in
 
8400
        rhapsody* | darwin1.[012])
 
8401
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
8402
         ;;
 
8403
       *) # Darwin 1.3 on
 
8404
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8405
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8406
         else
 
8407
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
8408
             10.[012])
 
8409
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8410
               ;;
 
8411
             10.*)
 
8412
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
8413
               ;;
 
8414
           esac
 
8415
         fi
 
8416
         ;;
 
8417
      esac
7121
8418
      archive_cmds_need_lc=no
7122
 
      case "$host_os" in
7123
 
      rhapsody* | darwin1.[012])
7124
 
        allow_undefined_flag='-undefined suppress'
7125
 
        ;;
7126
 
      *) # Darwin 1.3 on
7127
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7128
 
        allow_undefined_flag='-flat_namespace -undefined suppress'
7129
 
      else
7130
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
7131
 
          10.[012])
7132
 
            allow_undefined_flag='-flat_namespace -undefined suppress'
7133
 
            ;;
7134
 
          10.*)
7135
 
            allow_undefined_flag='-undefined dynamic_lookup'
7136
 
            ;;
7137
 
        esac
7138
 
      fi
7139
 
        ;;
7140
 
      esac
7141
 
        lt_int_apple_cc_single_mod=no
7142
 
        output_verbose_link_cmd='echo'
7143
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7144
 
          lt_int_apple_cc_single_mod=yes
7145
 
        fi
7146
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7147
 
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7148
 
        else
7149
 
        archive_cmds='$CC -r ${wl}-bind_at_load -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'
7150
 
      fi
7151
 
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7152
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7153
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7154
 
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7155
 
        else
7156
 
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7157
 
        fi
7158
 
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7159
8419
      hardcode_direct=no
7160
8420
      hardcode_automatic=yes
7161
8421
      hardcode_shlibpath_var=unsupported
7162
 
      whole_archive_flag_spec='-all_load $convenience'
 
8422
      whole_archive_flag_spec=''
7163
8423
      link_all_deplibs=yes
 
8424
    if test "$GCC" = yes ; then
 
8425
        output_verbose_link_cmd='echo'
 
8426
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
8427
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8428
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8429
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8430
      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7164
8431
    else
7165
 
      ld_shlibs=no
 
8432
      case $cc_basename in
 
8433
        xlc*)
 
8434
         output_verbose_link_cmd='echo'
 
8435
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
8436
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8437
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8438
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8439
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8440
          ;;
 
8441
       *)
 
8442
         ld_shlibs=no
 
8443
          ;;
 
8444
      esac
7166
8445
    fi
7167
8446
      ;;
7168
8447
 
7196
8475
      ;;
7197
8476
 
7198
8477
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7199
 
    freebsd* | kfreebsd*-gnu)
 
8478
    freebsd* | dragonfly*)
7200
8479
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7201
8480
      hardcode_libdir_flag_spec='-R$libdir'
7202
8481
      hardcode_direct=yes
7219
8498
      export_dynamic_flag_spec='${wl}-E'
7220
8499
      ;;
7221
8500
 
7222
 
    hpux10* | hpux11*)
7223
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7224
 
        case "$host_cpu" in
7225
 
        hppa*64*|ia64*)
 
8501
    hpux10*)
 
8502
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8503
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8504
      else
 
8505
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8506
      fi
 
8507
      if test "$with_gnu_ld" = no; then
 
8508
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8509
        hardcode_libdir_separator=:
 
8510
 
 
8511
        hardcode_direct=yes
 
8512
        export_dynamic_flag_spec='${wl}-E'
 
8513
 
 
8514
        # hardcode_minus_L: Not really in the search PATH,
 
8515
        # but as the default location of the library.
 
8516
        hardcode_minus_L=yes
 
8517
      fi
 
8518
      ;;
 
8519
 
 
8520
    hpux11*)
 
8521
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8522
        case $host_cpu in
 
8523
        hppa*64*)
7226
8524
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7227
8525
          ;;
 
8526
        ia64*)
 
8527
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8528
          ;;
7228
8529
        *)
7229
8530
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7230
8531
          ;;
7231
8532
        esac
7232
8533
      else
7233
 
        case "$host_cpu" in
7234
 
        hppa*64*|ia64*)
7235
 
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8534
        case $host_cpu in
 
8535
        hppa*64*)
 
8536
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8537
          ;;
 
8538
        ia64*)
 
8539
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7236
8540
          ;;
7237
8541
        *)
7238
 
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8542
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7239
8543
          ;;
7240
8544
        esac
7241
8545
      fi
7242
8546
      if test "$with_gnu_ld" = no; then
7243
 
        case "$host_cpu" in
7244
 
        hppa*64*)
7245
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8547
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8548
        hardcode_libdir_separator=:
 
8549
 
 
8550
        case $host_cpu in
 
8551
        hppa*64*|ia64*)
7246
8552
          hardcode_libdir_flag_spec_ld='+b $libdir'
7247
 
          hardcode_libdir_separator=:
7248
 
          hardcode_direct=no
7249
 
          hardcode_shlibpath_var=no
7250
 
          ;;
7251
 
        ia64*)
7252
 
          hardcode_libdir_flag_spec='-L$libdir'
7253
 
          hardcode_direct=no
7254
 
          hardcode_shlibpath_var=no
7255
 
 
7256
 
          # hardcode_minus_L: Not really in the search PATH,
7257
 
          # but as the default location of the library.
7258
 
          hardcode_minus_L=yes
 
8553
          hardcode_direct=no
 
8554
          hardcode_shlibpath_var=no
7259
8555
          ;;
7260
8556
        *)
7261
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7262
 
          hardcode_libdir_separator=:
7263
8557
          hardcode_direct=yes
7264
8558
          export_dynamic_flag_spec='${wl}-E'
7265
8559
 
7283
8577
      link_all_deplibs=yes
7284
8578
      ;;
7285
8579
 
7286
 
    netbsd*)
 
8580
    netbsd* | netbsdelf*-gnu)
7287
8581
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7288
8582
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7289
8583
      else
7307
8601
      hardcode_shlibpath_var=no
7308
8602
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7309
8603
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8604
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7310
8605
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7311
8606
        export_dynamic_flag_spec='${wl}-E'
7312
8607
      else
7352
8647
        allow_undefined_flag=' -expect_unresolved \*'
7353
8648
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7354
8649
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7355
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
8650
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7356
8651
 
7357
8652
        # Both c and cxx compiler support -rpath directly
7358
8653
        hardcode_libdir_flag_spec='-rpath $libdir'
7360
8655
      hardcode_libdir_separator=:
7361
8656
      ;;
7362
8657
 
7363
 
    sco3.2v5*)
7364
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7365
 
      hardcode_shlibpath_var=no
7366
 
      export_dynamic_flag_spec='${wl}-Bexport'
7367
 
      runpath_var=LD_RUN_PATH
7368
 
      hardcode_runpath_var=yes
7369
 
      ;;
7370
 
 
7371
8658
    solaris*)
7372
8659
      no_undefined_flag=' -z text'
7373
8660
      if test "$GCC" = yes; then
 
8661
        wlarc='${wl}'
7374
8662
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7375
8663
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7376
8664
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7377
8665
      else
 
8666
        wlarc=''
7378
8667
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7379
8668
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7380
8669
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7383
8672
      hardcode_shlibpath_var=no
7384
8673
      case $host_os in
7385
8674
      solaris2.[0-5] | solaris2.[0-5].*) ;;
7386
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7387
 
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
8675
      *)
 
8676
        # The compiler driver will combine linker options so we
 
8677
        # cannot just pass the convience library names through
 
8678
        # without $wl, iff we do not link with $LD.
 
8679
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
8680
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8681
        case $wlarc in
 
8682
        '')
 
8683
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
8684
        *)
 
8685
          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
8686
        esac ;;
7388
8687
      esac
7389
8688
      link_all_deplibs=yes
7390
8689
      ;;
7441
8740
      fi
7442
8741
      ;;
7443
8742
 
7444
 
    sysv4.2uw2*)
7445
 
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7446
 
      hardcode_direct=yes
7447
 
      hardcode_minus_L=no
7448
 
      hardcode_shlibpath_var=no
7449
 
      hardcode_runpath_var=yes
7450
 
      runpath_var=LD_RUN_PATH
7451
 
      ;;
7452
 
 
7453
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7454
 
      no_undefined_flag='${wl}-z ${wl}text'
7455
 
      if test "$GCC" = yes; then
7456
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7457
 
      else
7458
 
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7459
 
      fi
7460
 
      runpath_var='LD_RUN_PATH'
7461
 
      hardcode_shlibpath_var=no
7462
 
      ;;
7463
 
 
7464
 
    sysv5*)
7465
 
      no_undefined_flag=' -z text'
7466
 
      # $CC -shared without GNU ld will not create a library from C++
7467
 
      # object files and a static libstdc++, better avoid it by now
7468
 
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7469
 
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7470
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7471
 
      hardcode_libdir_flag_spec=
7472
 
      hardcode_shlibpath_var=no
7473
 
      runpath_var='LD_RUN_PATH'
 
8743
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
8744
      no_undefined_flag='${wl}-z,text'
 
8745
      archive_cmds_need_lc=no
 
8746
      hardcode_shlibpath_var=no
 
8747
      runpath_var='LD_RUN_PATH'
 
8748
 
 
8749
      if test "$GCC" = yes; then
 
8750
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8751
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8752
      else
 
8753
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8754
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8755
      fi
 
8756
      ;;
 
8757
 
 
8758
    sysv5* | sco3.2v5* | sco5v6*)
 
8759
      # Note: We can NOT use -z defs as we might desire, because we do not
 
8760
      # link with -lc, and that would cause any symbols used from libc to
 
8761
      # always be unresolved, which means just about no library would
 
8762
      # ever link correctly.  If we're not using GNU ld we use -z text
 
8763
      # though, which does catch some bad symbols but isn't as heavy-handed
 
8764
      # as -z defs.
 
8765
      no_undefined_flag='${wl}-z,text'
 
8766
      allow_undefined_flag='${wl}-z,nodefs'
 
8767
      archive_cmds_need_lc=no
 
8768
      hardcode_shlibpath_var=no
 
8769
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
8770
      hardcode_libdir_separator=':'
 
8771
      link_all_deplibs=yes
 
8772
      export_dynamic_flag_spec='${wl}-Bexport'
 
8773
      runpath_var='LD_RUN_PATH'
 
8774
 
 
8775
      if test "$GCC" = yes; then
 
8776
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8777
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8778
      else
 
8779
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8780
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8781
      fi
7474
8782
      ;;
7475
8783
 
7476
8784
    uts4*)
7485
8793
    esac
7486
8794
  fi
7487
8795
 
7488
 
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7489
 
echo "${ECHO_T}$ld_shlibs" >&6
 
8796
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
8797
echo "${ECHO_T}$ld_shlibs" >&6; }
7490
8798
test "$ld_shlibs" = no && can_build_shared=no
7491
8799
 
7492
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7493
 
if test "$GCC" = yes; then
7494
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7495
 
fi
7496
 
 
7497
8800
#
7498
8801
# Do we need to explicitly link libc?
7499
8802
#
7511
8814
      # Test whether the compiler implicitly links with -lc since on some
7512
8815
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7513
8816
      # to ld, don't add -lc before -lgcc.
7514
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7515
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
8817
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
8818
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7516
8819
      $rm conftest*
7517
8820
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7518
8821
 
7526
8829
        libobjs=conftest.$ac_objext
7527
8830
        deplibs=
7528
8831
        wl=$lt_prog_compiler_wl
 
8832
        pic_flag=$lt_prog_compiler_pic
7529
8833
        compiler_flags=-v
7530
8834
        linker_flags=-v
7531
8835
        verstring=
7548
8852
        cat conftest.err 1>&5
7549
8853
      fi
7550
8854
      $rm conftest*
7551
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7552
 
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
8855
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
8856
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7553
8857
      ;;
7554
8858
    esac
7555
8859
  fi
7556
8860
  ;;
7557
8861
esac
7558
8862
 
7559
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7560
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
8863
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
8864
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7561
8865
library_names_spec=
7562
8866
libname_spec='lib$name'
7563
8867
soname_spec=
7658
8962
  shlibpath_var=LIBRARY_PATH
7659
8963
  ;;
7660
8964
 
7661
 
bsdi4*)
 
8965
bsdi[45]*)
7662
8966
  version_type=linux
7663
8967
  need_version=no
7664
8968
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7686
8990
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7687
8991
      dldir=$destdir/`dirname \$dlpath`~
7688
8992
      test -d \$dldir || mkdir -p \$dldir~
7689
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
8993
      $install_prog $dir/$dlname \$dldir/$dlname~
 
8994
      chmod a+x \$dldir/$dlname'
7690
8995
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7691
8996
      dlpath=$dir/\$dldll~
7692
8997
       $rm \$dlpath'
7716
9021
      ;;
7717
9022
    pw32*)
7718
9023
      # pw32 DLLs use 'pw' prefix rather than 'lib'
7719
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
9024
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7720
9025
      ;;
7721
9026
    esac
7722
9027
    ;;
7739
9044
  soname_spec='${libname}${release}${major}$shared_ext'
7740
9045
  shlibpath_overrides_runpath=yes
7741
9046
  shlibpath_var=DYLD_LIBRARY_PATH
7742
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
9047
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7743
9048
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7744
9049
  if test "$GCC" = yes; then
7745
9050
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7762
9067
  dynamic_linker=no
7763
9068
  ;;
7764
9069
 
7765
 
kfreebsd*-gnu)
7766
 
  version_type=linux
7767
 
  need_lib_prefix=no
7768
 
  need_version=no
7769
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7770
 
  soname_spec='${libname}${release}${shared_ext}$major'
7771
 
  shlibpath_var=LD_LIBRARY_PATH
7772
 
  shlibpath_overrides_runpath=no
7773
 
  hardcode_into_libs=yes
7774
 
  dynamic_linker='GNU ld.so'
7775
 
  ;;
7776
 
 
7777
 
freebsd*)
7778
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
9070
freebsd* | dragonfly*)
 
9071
  # DragonFly does not have aout.  When/if they implement a new
 
9072
  # versioning mechanism, adjust this.
 
9073
  if test -x /usr/bin/objformat; then
 
9074
    objformat=`/usr/bin/objformat`
 
9075
  else
 
9076
    case $host_os in
 
9077
    freebsd[123]*) objformat=aout ;;
 
9078
    *) objformat=elf ;;
 
9079
    esac
 
9080
  fi
7779
9081
  version_type=freebsd-$objformat
7780
9082
  case $version_type in
7781
9083
    freebsd-elf*)
7793
9095
  freebsd2*)
7794
9096
    shlibpath_overrides_runpath=yes
7795
9097
    ;;
7796
 
  freebsd3.01* | freebsdelf3.01*)
 
9098
  freebsd3.[01]* | freebsdelf3.[01]*)
7797
9099
    shlibpath_overrides_runpath=yes
7798
9100
    hardcode_into_libs=yes
7799
9101
    ;;
7800
 
  *) # from 3.2 on
 
9102
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
9103
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7801
9104
    shlibpath_overrides_runpath=no
7802
9105
    hardcode_into_libs=yes
7803
9106
    ;;
 
9107
  freebsd*) # from 4.6 on
 
9108
    shlibpath_overrides_runpath=yes
 
9109
    hardcode_into_libs=yes
 
9110
    ;;
7804
9111
  esac
7805
9112
  ;;
7806
9113
 
7820
9127
  version_type=sunos
7821
9128
  need_lib_prefix=no
7822
9129
  need_version=no
7823
 
  case "$host_cpu" in
 
9130
  case $host_cpu in
7824
9131
  ia64*)
7825
9132
    shrext_cmds='.so'
7826
9133
    hardcode_into_libs=yes
7860
9167
  postinstall_cmds='chmod 555 $lib'
7861
9168
  ;;
7862
9169
 
 
9170
interix3*)
 
9171
  version_type=linux
 
9172
  need_lib_prefix=no
 
9173
  need_version=no
 
9174
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9175
  soname_spec='${libname}${release}${shared_ext}$major'
 
9176
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
9177
  shlibpath_var=LD_LIBRARY_PATH
 
9178
  shlibpath_overrides_runpath=no
 
9179
  hardcode_into_libs=yes
 
9180
  ;;
 
9181
 
7863
9182
irix5* | irix6* | nonstopux*)
7864
9183
  case $host_os in
7865
9184
    nonstopux*) version_type=nonstopux ;;
7903
9222
  ;;
7904
9223
 
7905
9224
# This must be Linux ELF.
7906
 
linux*)
 
9225
linux* | k*bsd*-gnu)
7907
9226
  version_type=linux
7908
9227
  need_lib_prefix=no
7909
9228
  need_version=no
7917
9236
  # before this can be enabled.
7918
9237
  hardcode_into_libs=yes
7919
9238
 
7920
 
  # find out which ABI we are using
7921
 
  libsuff=
7922
 
  case "$host_cpu" in
7923
 
  x86_64*|s390x*|powerpc64*)
7924
 
    echo '#line 7924 "configure"' > conftest.$ac_ext
7925
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7926
 
  (eval $ac_compile) 2>&5
7927
 
  ac_status=$?
7928
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929
 
  (exit $ac_status); }; then
7930
 
      case `/usr/bin/file conftest.$ac_objext` in
7931
 
      *64-bit*)
7932
 
        libsuff=64
7933
 
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7934
 
        ;;
7935
 
      esac
7936
 
    fi
7937
 
    rm -rf conftest*
7938
 
    ;;
7939
 
  esac
7940
 
 
7941
9239
  # Append ld.so.conf contents to the search path
7942
9240
  if test -f /etc/ld.so.conf; then
7943
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7944
 
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
9241
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
9242
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7945
9243
  fi
7946
9244
 
7947
9245
  # We used to test for /lib/ld.so.1 and disable shared libraries on
7953
9251
  dynamic_linker='GNU/Linux ld.so'
7954
9252
  ;;
7955
9253
 
7956
 
knetbsd*-gnu)
 
9254
netbsdelf*-gnu)
7957
9255
  version_type=linux
7958
9256
  need_lib_prefix=no
7959
9257
  need_version=no
7962
9260
  shlibpath_var=LD_LIBRARY_PATH
7963
9261
  shlibpath_overrides_runpath=no
7964
9262
  hardcode_into_libs=yes
7965
 
  dynamic_linker='GNU ld.so'
 
9263
  dynamic_linker='NetBSD ld.elf_so'
7966
9264
  ;;
7967
9265
 
7968
9266
netbsd*)
8002
9300
 
8003
9301
openbsd*)
8004
9302
  version_type=sunos
 
9303
  sys_lib_dlsearch_path_spec="/usr/lib"
8005
9304
  need_lib_prefix=no
8006
 
  need_version=yes
 
9305
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
9306
  case $host_os in
 
9307
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
9308
    *)                         need_version=no  ;;
 
9309
  esac
8007
9310
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8008
9311
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8009
9312
  shlibpath_var=LD_LIBRARY_PATH
8041
9344
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8042
9345
  ;;
8043
9346
 
8044
 
sco3.2v5*)
8045
 
  version_type=osf
8046
 
  soname_spec='${libname}${release}${shared_ext}$major'
8047
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8048
 
  shlibpath_var=LD_LIBRARY_PATH
8049
 
  ;;
8050
 
 
8051
9347
solaris*)
8052
9348
  version_type=linux
8053
9349
  need_lib_prefix=no
8073
9369
  need_version=yes
8074
9370
  ;;
8075
9371
 
8076
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9372
sysv4 | sysv4.3*)
8077
9373
  version_type=linux
8078
9374
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8079
9375
  soname_spec='${libname}${release}${shared_ext}$major'
8106
9402
  fi
8107
9403
  ;;
8108
9404
 
 
9405
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
9406
  version_type=freebsd-elf
 
9407
  need_lib_prefix=no
 
9408
  need_version=no
 
9409
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9410
  soname_spec='${libname}${release}${shared_ext}$major'
 
9411
  shlibpath_var=LD_LIBRARY_PATH
 
9412
  hardcode_into_libs=yes
 
9413
  if test "$with_gnu_ld" = yes; then
 
9414
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
9415
    shlibpath_overrides_runpath=no
 
9416
  else
 
9417
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
9418
    shlibpath_overrides_runpath=yes
 
9419
    case $host_os in
 
9420
      sco3.2v5*)
 
9421
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
9422
        ;;
 
9423
    esac
 
9424
  fi
 
9425
  sys_lib_dlsearch_path_spec='/usr/lib'
 
9426
  ;;
 
9427
 
8109
9428
uts4*)
8110
9429
  version_type=linux
8111
9430
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8117
9436
  dynamic_linker=no
8118
9437
  ;;
8119
9438
esac
8120
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8121
 
echo "${ECHO_T}$dynamic_linker" >&6
 
9439
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
9440
echo "${ECHO_T}$dynamic_linker" >&6; }
8122
9441
test "$dynamic_linker" = no && can_build_shared=no
8123
9442
 
8124
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8125
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
9443
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
9444
if test "$GCC" = yes; then
 
9445
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
9446
fi
 
9447
 
 
9448
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
9449
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8126
9450
hardcode_action=
8127
9451
if test -n "$hardcode_libdir_flag_spec" || \
8128
 
   test -n "$runpath_var " || \
8129
 
   test "X$hardcode_automatic"="Xyes" ; then
 
9452
   test -n "$runpath_var" || \
 
9453
   test "X$hardcode_automatic" = "Xyes" ; then
8130
9454
 
8131
9455
  # We can hardcode non-existant directories.
8132
9456
  if test "$hardcode_direct" != no &&
8146
9470
  # directories.
8147
9471
  hardcode_action=unsupported
8148
9472
fi
8149
 
echo "$as_me:$LINENO: result: $hardcode_action" >&5
8150
 
echo "${ECHO_T}$hardcode_action" >&6
 
9473
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
9474
echo "${ECHO_T}$hardcode_action" >&6; }
8151
9475
 
8152
9476
if test "$hardcode_action" = relink; then
8153
9477
  # Fast installation is not supported
8160
9484
 
8161
9485
striplib=
8162
9486
old_striplib=
8163
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8164
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
9487
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
9488
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8165
9489
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8166
9490
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8167
9491
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8168
 
  echo "$as_me:$LINENO: result: yes" >&5
8169
 
echo "${ECHO_T}yes" >&6
 
9492
  { echo "$as_me:$LINENO: result: yes" >&5
 
9493
echo "${ECHO_T}yes" >&6; }
8170
9494
else
8171
9495
# FIXME - insert some real tests, host_os isn't really good enough
8172
9496
  case $host_os in
8173
9497
   darwin*)
8174
9498
       if test -n "$STRIP" ; then
8175
9499
         striplib="$STRIP -x"
8176
 
         echo "$as_me:$LINENO: result: yes" >&5
8177
 
echo "${ECHO_T}yes" >&6
 
9500
         { echo "$as_me:$LINENO: result: yes" >&5
 
9501
echo "${ECHO_T}yes" >&6; }
8178
9502
       else
8179
 
  echo "$as_me:$LINENO: result: no" >&5
8180
 
echo "${ECHO_T}no" >&6
 
9503
  { echo "$as_me:$LINENO: result: no" >&5
 
9504
echo "${ECHO_T}no" >&6; }
8181
9505
fi
8182
9506
       ;;
8183
9507
   *)
8184
 
  echo "$as_me:$LINENO: result: no" >&5
8185
 
echo "${ECHO_T}no" >&6
 
9508
  { echo "$as_me:$LINENO: result: no" >&5
 
9509
echo "${ECHO_T}no" >&6; }
8186
9510
    ;;
8187
9511
  esac
8188
9512
fi
8214
9538
 
8215
9539
  darwin*)
8216
9540
  # if libdl is installed we need to link against it
8217
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8218
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
9541
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9542
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8219
9543
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8220
9544
  echo $ECHO_N "(cached) $ECHO_C" >&6
8221
9545
else
8228
9552
cat >>conftest.$ac_ext <<_ACEOF
8229
9553
/* end confdefs.h.  */
8230
9554
 
8231
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
9555
/* Override any GCC internal prototype to avoid an error.
 
9556
   Use char because int might match the return type of a GCC
 
9557
   builtin and then its argument prototype would still apply.  */
8232
9558
#ifdef __cplusplus
8233
9559
extern "C"
8234
9560
#endif
8235
 
/* We use char because int might match the return type of a gcc2
8236
 
   builtin and then its argument prototype would still apply.  */
8237
9561
char dlopen ();
8238
9562
int
8239
9563
main ()
8240
9564
{
8241
 
dlopen ();
 
9565
return dlopen ();
8242
9566
  ;
8243
9567
  return 0;
8244
9568
}
8245
9569
_ACEOF
8246
9570
rm -f conftest.$ac_objext conftest$ac_exeext
8247
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8248
 
  (eval $ac_link) 2>conftest.er1
 
9571
if { (ac_try="$ac_link"
 
9572
case "(($ac_try" in
 
9573
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9574
  *) ac_try_echo=$ac_try;;
 
9575
esac
 
9576
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9577
  (eval "$ac_link") 2>conftest.er1
8249
9578
  ac_status=$?
8250
9579
  grep -v '^ *+' conftest.er1 >conftest.err
8251
9580
  rm -f conftest.er1
8252
9581
  cat conftest.err >&5
8253
9582
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254
9583
  (exit $ac_status); } &&
8255
 
         { ac_try='test -z "$ac_c_werror_flag"
8256
 
                         || test ! -s conftest.err'
8257
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258
 
  (eval $ac_try) 2>&5
 
9584
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
9585
  { (case "(($ac_try" in
 
9586
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9587
  *) ac_try_echo=$ac_try;;
 
9588
esac
 
9589
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9590
  (eval "$ac_try") 2>&5
8259
9591
  ac_status=$?
8260
9592
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261
9593
  (exit $ac_status); }; } &&
8262
9594
         { ac_try='test -s conftest$ac_exeext'
8263
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264
 
  (eval $ac_try) 2>&5
 
9595
  { (case "(($ac_try" in
 
9596
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9597
  *) ac_try_echo=$ac_try;;
 
9598
esac
 
9599
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9600
  (eval "$ac_try") 2>&5
8265
9601
  ac_status=$?
8266
9602
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267
9603
  (exit $ac_status); }; }; then
8270
9606
  echo "$as_me: failed program was:" >&5
8271
9607
sed 's/^/| /' conftest.$ac_ext >&5
8272
9608
 
8273
 
ac_cv_lib_dl_dlopen=no
 
9609
        ac_cv_lib_dl_dlopen=no
8274
9610
fi
8275
 
rm -f conftest.err conftest.$ac_objext \
 
9611
 
 
9612
rm -f core conftest.err conftest.$ac_objext \
8276
9613
      conftest$ac_exeext conftest.$ac_ext
8277
9614
LIBS=$ac_check_lib_save_LIBS
8278
9615
fi
8279
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8280
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
9616
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9617
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8281
9618
if test $ac_cv_lib_dl_dlopen = yes; then
8282
9619
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8283
9620
else
8291
9628
   ;;
8292
9629
 
8293
9630
  *)
8294
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
8295
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
9631
    { echo "$as_me:$LINENO: checking for shl_load" >&5
 
9632
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8296
9633
if test "${ac_cv_func_shl_load+set}" = set; then
8297
9634
  echo $ECHO_N "(cached) $ECHO_C" >&6
8298
9635
else
8319
9656
 
8320
9657
#undef shl_load
8321
9658
 
8322
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
9659
/* Override any GCC internal prototype to avoid an error.
 
9660
   Use char because int might match the return type of a GCC
 
9661
   builtin and then its argument prototype would still apply.  */
8323
9662
#ifdef __cplusplus
8324
9663
extern "C"
8325
 
{
8326
9664
#endif
8327
 
/* We use char because int might match the return type of a gcc2
8328
 
   builtin and then its argument prototype would still apply.  */
8329
9665
char shl_load ();
8330
9666
/* The GNU C library defines this for functions which it implements
8331
9667
    to always fail with ENOSYS.  Some functions are actually named
8332
9668
    something starting with __ and the normal name is an alias.  */
8333
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
9669
#if defined __stub_shl_load || defined __stub___shl_load
8334
9670
choke me
8335
 
#else
8336
 
char (*f) () = shl_load;
8337
 
#endif
8338
 
#ifdef __cplusplus
8339
 
}
8340
9671
#endif
8341
9672
 
8342
9673
int
8343
9674
main ()
8344
9675
{
8345
 
return f != shl_load;
 
9676
return shl_load ();
8346
9677
  ;
8347
9678
  return 0;
8348
9679
}
8349
9680
_ACEOF
8350
9681
rm -f conftest.$ac_objext conftest$ac_exeext
8351
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8352
 
  (eval $ac_link) 2>conftest.er1
 
9682
if { (ac_try="$ac_link"
 
9683
case "(($ac_try" in
 
9684
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9685
  *) ac_try_echo=$ac_try;;
 
9686
esac
 
9687
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9688
  (eval "$ac_link") 2>conftest.er1
8353
9689
  ac_status=$?
8354
9690
  grep -v '^ *+' conftest.er1 >conftest.err
8355
9691
  rm -f conftest.er1
8356
9692
  cat conftest.err >&5
8357
9693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358
9694
  (exit $ac_status); } &&
8359
 
         { ac_try='test -z "$ac_c_werror_flag"
8360
 
                         || test ! -s conftest.err'
8361
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8362
 
  (eval $ac_try) 2>&5
 
9695
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
9696
  { (case "(($ac_try" in
 
9697
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9698
  *) ac_try_echo=$ac_try;;
 
9699
esac
 
9700
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9701
  (eval "$ac_try") 2>&5
8363
9702
  ac_status=$?
8364
9703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365
9704
  (exit $ac_status); }; } &&
8366
9705
         { ac_try='test -s conftest$ac_exeext'
8367
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368
 
  (eval $ac_try) 2>&5
 
9706
  { (case "(($ac_try" in
 
9707
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9708
  *) ac_try_echo=$ac_try;;
 
9709
esac
 
9710
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9711
  (eval "$ac_try") 2>&5
8369
9712
  ac_status=$?
8370
9713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371
9714
  (exit $ac_status); }; }; then
8374
9717
  echo "$as_me: failed program was:" >&5
8375
9718
sed 's/^/| /' conftest.$ac_ext >&5
8376
9719
 
8377
 
ac_cv_func_shl_load=no
 
9720
        ac_cv_func_shl_load=no
8378
9721
fi
8379
 
rm -f conftest.err conftest.$ac_objext \
 
9722
 
 
9723
rm -f core conftest.err conftest.$ac_objext \
8380
9724
      conftest$ac_exeext conftest.$ac_ext
8381
9725
fi
8382
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8383
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
9726
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
9727
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8384
9728
if test $ac_cv_func_shl_load = yes; then
8385
9729
  lt_cv_dlopen="shl_load"
8386
9730
else
8387
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8388
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
9731
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
9732
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8389
9733
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8390
9734
  echo $ECHO_N "(cached) $ECHO_C" >&6
8391
9735
else
8398
9742
cat >>conftest.$ac_ext <<_ACEOF
8399
9743
/* end confdefs.h.  */
8400
9744
 
8401
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
9745
/* Override any GCC internal prototype to avoid an error.
 
9746
   Use char because int might match the return type of a GCC
 
9747
   builtin and then its argument prototype would still apply.  */
8402
9748
#ifdef __cplusplus
8403
9749
extern "C"
8404
9750
#endif
8405
 
/* We use char because int might match the return type of a gcc2
8406
 
   builtin and then its argument prototype would still apply.  */
8407
9751
char shl_load ();
8408
9752
int
8409
9753
main ()
8410
9754
{
8411
 
shl_load ();
 
9755
return shl_load ();
8412
9756
  ;
8413
9757
  return 0;
8414
9758
}
8415
9759
_ACEOF
8416
9760
rm -f conftest.$ac_objext conftest$ac_exeext
8417
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8418
 
  (eval $ac_link) 2>conftest.er1
 
9761
if { (ac_try="$ac_link"
 
9762
case "(($ac_try" in
 
9763
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9764
  *) ac_try_echo=$ac_try;;
 
9765
esac
 
9766
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9767
  (eval "$ac_link") 2>conftest.er1
8419
9768
  ac_status=$?
8420
9769
  grep -v '^ *+' conftest.er1 >conftest.err
8421
9770
  rm -f conftest.er1
8422
9771
  cat conftest.err >&5
8423
9772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424
9773
  (exit $ac_status); } &&
8425
 
         { ac_try='test -z "$ac_c_werror_flag"
8426
 
                         || test ! -s conftest.err'
8427
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428
 
  (eval $ac_try) 2>&5
 
9774
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
9775
  { (case "(($ac_try" in
 
9776
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9777
  *) ac_try_echo=$ac_try;;
 
9778
esac
 
9779
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9780
  (eval "$ac_try") 2>&5
8429
9781
  ac_status=$?
8430
9782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431
9783
  (exit $ac_status); }; } &&
8432
9784
         { ac_try='test -s conftest$ac_exeext'
8433
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434
 
  (eval $ac_try) 2>&5
 
9785
  { (case "(($ac_try" in
 
9786
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9787
  *) ac_try_echo=$ac_try;;
 
9788
esac
 
9789
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9790
  (eval "$ac_try") 2>&5
8435
9791
  ac_status=$?
8436
9792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437
9793
  (exit $ac_status); }; }; then
8440
9796
  echo "$as_me: failed program was:" >&5
8441
9797
sed 's/^/| /' conftest.$ac_ext >&5
8442
9798
 
8443
 
ac_cv_lib_dld_shl_load=no
 
9799
        ac_cv_lib_dld_shl_load=no
8444
9800
fi
8445
 
rm -f conftest.err conftest.$ac_objext \
 
9801
 
 
9802
rm -f core conftest.err conftest.$ac_objext \
8446
9803
      conftest$ac_exeext conftest.$ac_ext
8447
9804
LIBS=$ac_check_lib_save_LIBS
8448
9805
fi
8449
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8450
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
9806
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
9807
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8451
9808
if test $ac_cv_lib_dld_shl_load = yes; then
8452
9809
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8453
9810
else
8454
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
8455
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
9811
  { echo "$as_me:$LINENO: checking for dlopen" >&5
 
9812
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8456
9813
if test "${ac_cv_func_dlopen+set}" = set; then
8457
9814
  echo $ECHO_N "(cached) $ECHO_C" >&6
8458
9815
else
8479
9836
 
8480
9837
#undef dlopen
8481
9838
 
8482
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
9839
/* Override any GCC internal prototype to avoid an error.
 
9840
   Use char because int might match the return type of a GCC
 
9841
   builtin and then its argument prototype would still apply.  */
8483
9842
#ifdef __cplusplus
8484
9843
extern "C"
8485
 
{
8486
9844
#endif
8487
 
/* We use char because int might match the return type of a gcc2
8488
 
   builtin and then its argument prototype would still apply.  */
8489
9845
char dlopen ();
8490
9846
/* The GNU C library defines this for functions which it implements
8491
9847
    to always fail with ENOSYS.  Some functions are actually named
8492
9848
    something starting with __ and the normal name is an alias.  */
8493
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
9849
#if defined __stub_dlopen || defined __stub___dlopen
8494
9850
choke me
8495
 
#else
8496
 
char (*f) () = dlopen;
8497
 
#endif
8498
 
#ifdef __cplusplus
8499
 
}
8500
9851
#endif
8501
9852
 
8502
9853
int
8503
9854
main ()
8504
9855
{
8505
 
return f != dlopen;
 
9856
return dlopen ();
8506
9857
  ;
8507
9858
  return 0;
8508
9859
}
8509
9860
_ACEOF
8510
9861
rm -f conftest.$ac_objext conftest$ac_exeext
8511
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8512
 
  (eval $ac_link) 2>conftest.er1
 
9862
if { (ac_try="$ac_link"
 
9863
case "(($ac_try" in
 
9864
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9865
  *) ac_try_echo=$ac_try;;
 
9866
esac
 
9867
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9868
  (eval "$ac_link") 2>conftest.er1
8513
9869
  ac_status=$?
8514
9870
  grep -v '^ *+' conftest.er1 >conftest.err
8515
9871
  rm -f conftest.er1
8516
9872
  cat conftest.err >&5
8517
9873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518
9874
  (exit $ac_status); } &&
8519
 
         { ac_try='test -z "$ac_c_werror_flag"
8520
 
                         || test ! -s conftest.err'
8521
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8522
 
  (eval $ac_try) 2>&5
 
9875
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
9876
  { (case "(($ac_try" in
 
9877
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9878
  *) ac_try_echo=$ac_try;;
 
9879
esac
 
9880
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9881
  (eval "$ac_try") 2>&5
8523
9882
  ac_status=$?
8524
9883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525
9884
  (exit $ac_status); }; } &&
8526
9885
         { ac_try='test -s conftest$ac_exeext'
8527
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528
 
  (eval $ac_try) 2>&5
 
9886
  { (case "(($ac_try" in
 
9887
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9888
  *) ac_try_echo=$ac_try;;
 
9889
esac
 
9890
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9891
  (eval "$ac_try") 2>&5
8529
9892
  ac_status=$?
8530
9893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531
9894
  (exit $ac_status); }; }; then
8534
9897
  echo "$as_me: failed program was:" >&5
8535
9898
sed 's/^/| /' conftest.$ac_ext >&5
8536
9899
 
8537
 
ac_cv_func_dlopen=no
 
9900
        ac_cv_func_dlopen=no
8538
9901
fi
8539
 
rm -f conftest.err conftest.$ac_objext \
 
9902
 
 
9903
rm -f core conftest.err conftest.$ac_objext \
8540
9904
      conftest$ac_exeext conftest.$ac_ext
8541
9905
fi
8542
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8543
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
9906
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
9907
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8544
9908
if test $ac_cv_func_dlopen = yes; then
8545
9909
  lt_cv_dlopen="dlopen"
8546
9910
else
8547
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8548
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
9911
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9912
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8549
9913
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8550
9914
  echo $ECHO_N "(cached) $ECHO_C" >&6
8551
9915
else
8558
9922
cat >>conftest.$ac_ext <<_ACEOF
8559
9923
/* end confdefs.h.  */
8560
9924
 
8561
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
9925
/* Override any GCC internal prototype to avoid an error.
 
9926
   Use char because int might match the return type of a GCC
 
9927
   builtin and then its argument prototype would still apply.  */
8562
9928
#ifdef __cplusplus
8563
9929
extern "C"
8564
9930
#endif
8565
 
/* We use char because int might match the return type of a gcc2
8566
 
   builtin and then its argument prototype would still apply.  */
8567
9931
char dlopen ();
8568
9932
int
8569
9933
main ()
8570
9934
{
8571
 
dlopen ();
 
9935
return dlopen ();
8572
9936
  ;
8573
9937
  return 0;
8574
9938
}
8575
9939
_ACEOF
8576
9940
rm -f conftest.$ac_objext conftest$ac_exeext
8577
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8578
 
  (eval $ac_link) 2>conftest.er1
 
9941
if { (ac_try="$ac_link"
 
9942
case "(($ac_try" in
 
9943
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9944
  *) ac_try_echo=$ac_try;;
 
9945
esac
 
9946
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9947
  (eval "$ac_link") 2>conftest.er1
8579
9948
  ac_status=$?
8580
9949
  grep -v '^ *+' conftest.er1 >conftest.err
8581
9950
  rm -f conftest.er1
8582
9951
  cat conftest.err >&5
8583
9952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584
9953
  (exit $ac_status); } &&
8585
 
         { ac_try='test -z "$ac_c_werror_flag"
8586
 
                         || test ! -s conftest.err'
8587
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588
 
  (eval $ac_try) 2>&5
 
9954
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
9955
  { (case "(($ac_try" in
 
9956
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9957
  *) ac_try_echo=$ac_try;;
 
9958
esac
 
9959
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9960
  (eval "$ac_try") 2>&5
8589
9961
  ac_status=$?
8590
9962
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591
9963
  (exit $ac_status); }; } &&
8592
9964
         { ac_try='test -s conftest$ac_exeext'
8593
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594
 
  (eval $ac_try) 2>&5
 
9965
  { (case "(($ac_try" in
 
9966
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9967
  *) ac_try_echo=$ac_try;;
 
9968
esac
 
9969
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9970
  (eval "$ac_try") 2>&5
8595
9971
  ac_status=$?
8596
9972
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597
9973
  (exit $ac_status); }; }; then
8600
9976
  echo "$as_me: failed program was:" >&5
8601
9977
sed 's/^/| /' conftest.$ac_ext >&5
8602
9978
 
8603
 
ac_cv_lib_dl_dlopen=no
 
9979
        ac_cv_lib_dl_dlopen=no
8604
9980
fi
8605
 
rm -f conftest.err conftest.$ac_objext \
 
9981
 
 
9982
rm -f core conftest.err conftest.$ac_objext \
8606
9983
      conftest$ac_exeext conftest.$ac_ext
8607
9984
LIBS=$ac_check_lib_save_LIBS
8608
9985
fi
8609
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8610
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
9986
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9987
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8611
9988
if test $ac_cv_lib_dl_dlopen = yes; then
8612
9989
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8613
9990
else
8614
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8615
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
9991
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
9992
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
8616
9993
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8617
9994
  echo $ECHO_N "(cached) $ECHO_C" >&6
8618
9995
else
8625
10002
cat >>conftest.$ac_ext <<_ACEOF
8626
10003
/* end confdefs.h.  */
8627
10004
 
8628
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
10005
/* Override any GCC internal prototype to avoid an error.
 
10006
   Use char because int might match the return type of a GCC
 
10007
   builtin and then its argument prototype would still apply.  */
8629
10008
#ifdef __cplusplus
8630
10009
extern "C"
8631
10010
#endif
8632
 
/* We use char because int might match the return type of a gcc2
8633
 
   builtin and then its argument prototype would still apply.  */
8634
10011
char dlopen ();
8635
10012
int
8636
10013
main ()
8637
10014
{
8638
 
dlopen ();
 
10015
return dlopen ();
8639
10016
  ;
8640
10017
  return 0;
8641
10018
}
8642
10019
_ACEOF
8643
10020
rm -f conftest.$ac_objext conftest$ac_exeext
8644
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8645
 
  (eval $ac_link) 2>conftest.er1
 
10021
if { (ac_try="$ac_link"
 
10022
case "(($ac_try" in
 
10023
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10024
  *) ac_try_echo=$ac_try;;
 
10025
esac
 
10026
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10027
  (eval "$ac_link") 2>conftest.er1
8646
10028
  ac_status=$?
8647
10029
  grep -v '^ *+' conftest.er1 >conftest.err
8648
10030
  rm -f conftest.er1
8649
10031
  cat conftest.err >&5
8650
10032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651
10033
  (exit $ac_status); } &&
8652
 
         { ac_try='test -z "$ac_c_werror_flag"
8653
 
                         || test ! -s conftest.err'
8654
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655
 
  (eval $ac_try) 2>&5
 
10034
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
10035
  { (case "(($ac_try" in
 
10036
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10037
  *) ac_try_echo=$ac_try;;
 
10038
esac
 
10039
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10040
  (eval "$ac_try") 2>&5
8656
10041
  ac_status=$?
8657
10042
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658
10043
  (exit $ac_status); }; } &&
8659
10044
         { ac_try='test -s conftest$ac_exeext'
8660
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661
 
  (eval $ac_try) 2>&5
 
10045
  { (case "(($ac_try" in
 
10046
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10047
  *) ac_try_echo=$ac_try;;
 
10048
esac
 
10049
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10050
  (eval "$ac_try") 2>&5
8662
10051
  ac_status=$?
8663
10052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664
10053
  (exit $ac_status); }; }; then
8667
10056
  echo "$as_me: failed program was:" >&5
8668
10057
sed 's/^/| /' conftest.$ac_ext >&5
8669
10058
 
8670
 
ac_cv_lib_svld_dlopen=no
 
10059
        ac_cv_lib_svld_dlopen=no
8671
10060
fi
8672
 
rm -f conftest.err conftest.$ac_objext \
 
10061
 
 
10062
rm -f core conftest.err conftest.$ac_objext \
8673
10063
      conftest$ac_exeext conftest.$ac_ext
8674
10064
LIBS=$ac_check_lib_save_LIBS
8675
10065
fi
8676
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8677
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
10066
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
10067
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
8678
10068
if test $ac_cv_lib_svld_dlopen = yes; then
8679
10069
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8680
10070
else
8681
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8682
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
10071
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
10072
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
8683
10073
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8684
10074
  echo $ECHO_N "(cached) $ECHO_C" >&6
8685
10075
else
8692
10082
cat >>conftest.$ac_ext <<_ACEOF
8693
10083
/* end confdefs.h.  */
8694
10084
 
8695
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
10085
/* Override any GCC internal prototype to avoid an error.
 
10086
   Use char because int might match the return type of a GCC
 
10087
   builtin and then its argument prototype would still apply.  */
8696
10088
#ifdef __cplusplus
8697
10089
extern "C"
8698
10090
#endif
8699
 
/* We use char because int might match the return type of a gcc2
8700
 
   builtin and then its argument prototype would still apply.  */
8701
10091
char dld_link ();
8702
10092
int
8703
10093
main ()
8704
10094
{
8705
 
dld_link ();
 
10095
return dld_link ();
8706
10096
  ;
8707
10097
  return 0;
8708
10098
}
8709
10099
_ACEOF
8710
10100
rm -f conftest.$ac_objext conftest$ac_exeext
8711
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8712
 
  (eval $ac_link) 2>conftest.er1
 
10101
if { (ac_try="$ac_link"
 
10102
case "(($ac_try" in
 
10103
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10104
  *) ac_try_echo=$ac_try;;
 
10105
esac
 
10106
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10107
  (eval "$ac_link") 2>conftest.er1
8713
10108
  ac_status=$?
8714
10109
  grep -v '^ *+' conftest.er1 >conftest.err
8715
10110
  rm -f conftest.er1
8716
10111
  cat conftest.err >&5
8717
10112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718
10113
  (exit $ac_status); } &&
8719
 
         { ac_try='test -z "$ac_c_werror_flag"
8720
 
                         || test ! -s conftest.err'
8721
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722
 
  (eval $ac_try) 2>&5
 
10114
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
10115
  { (case "(($ac_try" in
 
10116
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10117
  *) ac_try_echo=$ac_try;;
 
10118
esac
 
10119
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10120
  (eval "$ac_try") 2>&5
8723
10121
  ac_status=$?
8724
10122
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725
10123
  (exit $ac_status); }; } &&
8726
10124
         { ac_try='test -s conftest$ac_exeext'
8727
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728
 
  (eval $ac_try) 2>&5
 
10125
  { (case "(($ac_try" in
 
10126
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10127
  *) ac_try_echo=$ac_try;;
 
10128
esac
 
10129
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10130
  (eval "$ac_try") 2>&5
8729
10131
  ac_status=$?
8730
10132
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731
10133
  (exit $ac_status); }; }; then
8734
10136
  echo "$as_me: failed program was:" >&5
8735
10137
sed 's/^/| /' conftest.$ac_ext >&5
8736
10138
 
8737
 
ac_cv_lib_dld_dld_link=no
 
10139
        ac_cv_lib_dld_dld_link=no
8738
10140
fi
8739
 
rm -f conftest.err conftest.$ac_objext \
 
10141
 
 
10142
rm -f core conftest.err conftest.$ac_objext \
8740
10143
      conftest$ac_exeext conftest.$ac_ext
8741
10144
LIBS=$ac_check_lib_save_LIBS
8742
10145
fi
8743
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8744
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
10146
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
10147
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
8745
10148
if test $ac_cv_lib_dld_dld_link = yes; then
8746
10149
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8747
10150
fi
8776
10179
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8777
10180
 
8778
10181
    save_LDFLAGS="$LDFLAGS"
8779
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10182
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8780
10183
 
8781
10184
    save_LIBS="$LIBS"
8782
10185
    LIBS="$lt_cv_dlopen_libs $LIBS"
8783
10186
 
8784
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8785
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
10187
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
10188
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
8786
10189
if test "${lt_cv_dlopen_self+set}" = set; then
8787
10190
  echo $ECHO_N "(cached) $ECHO_C" >&6
8788
10191
else
8792
10195
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8793
10196
  lt_status=$lt_dlunknown
8794
10197
  cat > conftest.$ac_ext <<EOF
8795
 
#line 8795 "configure"
 
10198
#line 10198 "configure"
8796
10199
#include "confdefs.h"
8797
10200
 
8798
10201
#if HAVE_DLFCN_H
8849
10252
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8850
10253
      /* dlclose (self); */
8851
10254
    }
 
10255
  else
 
10256
    puts (dlerror ());
8852
10257
 
8853
10258
    exit (status);
8854
10259
}
8858
10263
  ac_status=$?
8859
10264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860
10265
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8861
 
    (./conftest; exit; ) 2>/dev/null
 
10266
    (./conftest; exit; ) >&5 2>/dev/null
8862
10267
    lt_status=$?
8863
10268
    case x$lt_status in
8864
10269
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8865
10270
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8866
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
10271
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
8867
10272
    esac
8868
10273
  else :
8869
10274
    # compilation failed
8874
10279
 
8875
10280
 
8876
10281
fi
8877
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8878
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
10282
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
10283
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
8879
10284
 
8880
10285
    if test "x$lt_cv_dlopen_self" = xyes; then
8881
 
      LDFLAGS="$LDFLAGS $link_static_flag"
8882
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8883
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
10286
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
10287
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
10288
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
8884
10289
if test "${lt_cv_dlopen_self_static+set}" = set; then
8885
10290
  echo $ECHO_N "(cached) $ECHO_C" >&6
8886
10291
else
8890
10295
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8891
10296
  lt_status=$lt_dlunknown
8892
10297
  cat > conftest.$ac_ext <<EOF
8893
 
#line 8893 "configure"
 
10298
#line 10298 "configure"
8894
10299
#include "confdefs.h"
8895
10300
 
8896
10301
#if HAVE_DLFCN_H
8947
10352
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8948
10353
      /* dlclose (self); */
8949
10354
    }
 
10355
  else
 
10356
    puts (dlerror ());
8950
10357
 
8951
10358
    exit (status);
8952
10359
}
8956
10363
  ac_status=$?
8957
10364
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958
10365
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8959
 
    (./conftest; exit; ) 2>/dev/null
 
10366
    (./conftest; exit; ) >&5 2>/dev/null
8960
10367
    lt_status=$?
8961
10368
    case x$lt_status in
8962
10369
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8963
10370
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8964
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
10371
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
8965
10372
    esac
8966
10373
  else :
8967
10374
    # compilation failed
8972
10379
 
8973
10380
 
8974
10381
fi
8975
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8976
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
10382
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
10383
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
8977
10384
    fi
8978
10385
 
8979
10386
    CPPFLAGS="$save_CPPFLAGS"
8994
10401
fi
8995
10402
 
8996
10403
 
8997
 
# Report which librarie types wil actually be built
8998
 
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8999
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9000
 
echo "$as_me:$LINENO: result: $can_build_shared" >&5
9001
 
echo "${ECHO_T}$can_build_shared" >&6
 
10404
# Report which library types will actually be built
 
10405
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
10406
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
10407
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
10408
echo "${ECHO_T}$can_build_shared" >&6; }
9002
10409
 
9003
 
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9004
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
10410
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
10411
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9005
10412
test "$can_build_shared" = "no" && enable_shared=no
9006
10413
 
9007
10414
# On AIX, shared libraries and static libraries use the same namespace, and
9008
10415
# are all built from PIC.
9009
 
case "$host_os" in
 
10416
case $host_os in
9010
10417
aix3*)
9011
10418
  test "$enable_shared" = yes && enable_static=no
9012
10419
  if test -n "$RANLIB"; then
9019
10426
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9020
10427
    test "$enable_shared" = yes && enable_static=no
9021
10428
  fi
9022
 
  ;;
9023
 
  darwin* | rhapsody*)
9024
 
  if test "$GCC" = yes; then
9025
 
    archive_cmds_need_lc=no
9026
 
    case "$host_os" in
9027
 
    rhapsody* | darwin1.[012])
9028
 
      allow_undefined_flag='-undefined suppress'
9029
 
      ;;
9030
 
    *) # Darwin 1.3 on
9031
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9032
 
        allow_undefined_flag='-flat_namespace -undefined suppress'
9033
 
      else
9034
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
9035
 
          10.[012])
9036
 
            allow_undefined_flag='-flat_namespace -undefined suppress'
9037
 
            ;;
9038
 
          10.*)
9039
 
            allow_undefined_flag='-undefined dynamic_lookup'
9040
 
            ;;
9041
 
        esac
9042
 
      fi
9043
 
      ;;
9044
 
    esac
9045
 
    output_verbose_link_cmd='echo'
9046
 
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9047
 
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9048
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9049
 
    archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9050
 
    module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9051
 
    hardcode_direct=no
9052
 
    hardcode_automatic=yes
9053
 
    hardcode_shlibpath_var=unsupported
9054
 
    whole_archive_flag_spec='-all_load $convenience'
9055
 
    link_all_deplibs=yes
9056
 
  else
9057
 
    ld_shlibs=no
9058
 
  fi
9059
10429
    ;;
9060
10430
esac
9061
 
echo "$as_me:$LINENO: result: $enable_shared" >&5
9062
 
echo "${ECHO_T}$enable_shared" >&6
 
10431
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10432
echo "${ECHO_T}$enable_shared" >&6; }
9063
10433
 
9064
 
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9065
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
10434
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10435
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9066
10436
# Make sure either enable_shared or enable_static is yes.
9067
10437
test "$enable_shared" = yes || enable_static=yes
9068
 
echo "$as_me:$LINENO: result: $enable_static" >&5
9069
 
echo "${ECHO_T}$enable_static" >&6
 
10438
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
10439
echo "${ECHO_T}$enable_static" >&6; }
9070
10440
 
9071
10441
# The else clause should only fire when bootstrapping the
9072
10442
# libtool distribution, otherwise you forgot to ship ltmain.sh
9081
10451
  # Now quote all the things that may contain metacharacters while being
9082
10452
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9083
10453
  # variables and quote the copies for generation of the libtool script.
9084
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
10454
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9085
10455
    SED SHELL STRIP \
9086
10456
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9087
10457
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9185
10555
#
9186
10556
# You should have received a copy of the GNU General Public License
9187
10557
# along with this program; if not, write to the Free Software
9188
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
10558
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9189
10559
#
9190
10560
# As a special exception to the GNU General Public License, if you
9191
10561
# distribute this file as part of a program that contains a
9196
10566
SED=$lt_SED
9197
10567
 
9198
10568
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9199
 
Xsed="$SED -e s/^X//"
 
10569
Xsed="$SED -e 1s/^X//"
9200
10570
 
9201
10571
# The HP-UX ksh and POSIX shell print the target directory to stdout
9202
10572
# if CDPATH is set.
9203
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
10573
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9204
10574
 
9205
10575
# The names of the tagged configurations supported by this script.
9206
10576
available_tags=
9230
10600
# The host system.
9231
10601
host_alias=$host_alias
9232
10602
host=$host
 
10603
host_os=$host_os
 
10604
 
 
10605
# The build system.
 
10606
build_alias=$build_alias
 
10607
build=$build
 
10608
build_os=$build_os
9233
10609
 
9234
10610
# An echo program that does not interpret backslashes.
9235
10611
echo=$lt_echo
9241
10617
# A C compiler.
9242
10618
LTCC=$lt_LTCC
9243
10619
 
 
10620
# LTCC compiler flags.
 
10621
LTCFLAGS=$lt_LTCFLAGS
 
10622
 
9244
10623
# A language-specific compiler.
9245
10624
CC=$lt_compiler
9246
10625
 
9306
10685
# Does compiler simultaneously support -c and -o options?
9307
10686
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9308
10687
 
9309
 
# Must we lock files when doing compilation ?
 
10688
# Must we lock files when doing compilation?
9310
10689
need_locks=$lt_need_locks
9311
10690
 
9312
10691
# Do we need the lib prefix for modules?
9549
10928
CC="$lt_save_CC"
9550
10929
 
9551
10930
 
9552
 
# Check whether --with-tags or --without-tags was given.
 
10931
# Check whether --with-tags was given.
9553
10932
if test "${with_tags+set}" = set; then
9554
 
  withval="$with_tags"
9555
 
  tagnames="$withval"
9556
 
fi;
 
10933
  withval=$with_tags; tagnames="$withval"
 
10934
fi
 
10935
 
9557
10936
 
9558
10937
if test -f "$ltmain" && test -n "$tagnames"; then
9559
10938
  if test ! -f "${ofile}"; then
9571
10950
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9572
10951
    fi
9573
10952
  fi
 
10953
  if test -z "$LTCFLAGS"; then
 
10954
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
10955
  fi
9574
10956
 
9575
10957
  # Extract list of available tagged configurations in $ofile.
9576
10958
  # Note that this assumes the entire list is on one line.
9601
10983
 
9602
10984
      case $tagname in
9603
10985
      CXX)
9604
 
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
9605
 
          ac_ext=cc
 
10986
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
10987
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
10988
            (test "X$CXX" != "Xg++"))) ; then
 
10989
          ac_ext=cpp
9606
10990
ac_cpp='$CXXCPP $CPPFLAGS'
9607
10991
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9608
10992
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9621
11005
hardcode_libdir_flag_spec_ld_CXX=
9622
11006
hardcode_libdir_separator_CXX=
9623
11007
hardcode_minus_L_CXX=no
 
11008
hardcode_shlibpath_var_CXX=unsupported
9624
11009
hardcode_automatic_CXX=no
9625
11010
module_cmds_CXX=
9626
11011
module_expsym_cmds_CXX=
9638
11023
compiler_lib_search_path_CXX=
9639
11024
 
9640
11025
# Source file extension for C++ test sources.
9641
 
ac_ext=cc
 
11026
ac_ext=cpp
9642
11027
 
9643
11028
# Object file extension for compiled C++ test sources.
9644
11029
objext=o
9648
11033
lt_simple_compile_test_code="int some_variable = 0;\n"
9649
11034
 
9650
11035
# Code to be used in simple link tests
9651
 
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
11036
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9652
11037
 
9653
11038
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9654
11039
 
9655
11040
# If no C compiler was specified, use CC.
9656
11041
LTCC=${LTCC-"$CC"}
9657
11042
 
 
11043
# If no C compiler flags were specified, use CFLAGS.
 
11044
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
11045
 
9658
11046
# Allow CC to be a program name with arguments.
9659
11047
compiler=$CC
9660
11048
 
9661
11049
 
 
11050
# save warnings/boilerplate of simple test code
 
11051
ac_outfile=conftest.$ac_objext
 
11052
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
11053
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11054
_lt_compiler_boilerplate=`cat conftest.err`
 
11055
$rm conftest*
 
11056
 
 
11057
ac_outfile=conftest.$ac_objext
 
11058
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
11059
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11060
_lt_linker_boilerplate=`cat conftest.err`
 
11061
$rm conftest*
 
11062
 
 
11063
 
9662
11064
# Allow CC to be a program name with arguments.
9663
11065
lt_save_CC=$CC
9664
11066
lt_save_LD=$LD
9669
11071
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9670
11072
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9671
11073
else
9672
 
  unset lt_cv_prog_gnu_ld
 
11074
  $as_unset lt_cv_prog_gnu_ld
9673
11075
fi
9674
11076
if test -n "${lt_cv_path_LDCXX+set}"; then
9675
11077
  lt_cv_path_LD=$lt_cv_path_LDCXX
9676
11078
else
9677
 
  unset lt_cv_path_LD
 
11079
  $as_unset lt_cv_path_LD
9678
11080
fi
9679
11081
test -z "${LDCXX+set}" || LD=$LDCXX
9680
11082
CC=${CXX-"c++"}
9681
11083
compiler=$CC
9682
11084
compiler_CXX=$CC
9683
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
11085
for cc_temp in $compiler""; do
 
11086
  case $cc_temp in
 
11087
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
11088
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
11089
    \-*) ;;
 
11090
    *) break;;
 
11091
  esac
 
11092
done
 
11093
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
11094
 
9684
11095
 
9685
11096
# We don't want -fno-exception wen compiling C++ code, so set the
9686
11097
# no_builtin_flag separately
9694
11105
  # Set up default GNU C++ configuration
9695
11106
 
9696
11107
 
9697
 
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
11108
# Check whether --with-gnu-ld was given.
9698
11109
if test "${with_gnu_ld+set}" = set; then
9699
 
  withval="$with_gnu_ld"
9700
 
  test "$withval" = no || with_gnu_ld=yes
 
11110
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9701
11111
else
9702
11112
  with_gnu_ld=no
9703
 
fi;
 
11113
fi
 
11114
 
9704
11115
ac_prog=ld
9705
11116
if test "$GCC" = yes; then
9706
11117
  # Check if gcc -print-prog-name=ld gives a path.
9707
 
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9708
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
11118
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
11119
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
9709
11120
  case $host in
9710
11121
  *-*-mingw*)
9711
11122
    # gcc leaves a trailing carriage return which upsets mingw
9734
11145
    ;;
9735
11146
  esac
9736
11147
elif test "$with_gnu_ld" = yes; then
9737
 
  echo "$as_me:$LINENO: checking for GNU ld" >&5
9738
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
11148
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
11149
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
9739
11150
else
9740
 
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9741
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
11151
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
11152
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
9742
11153
fi
9743
11154
if test "${lt_cv_path_LD+set}" = set; then
9744
11155
  echo $ECHO_N "(cached) $ECHO_C" >&6
9751
11162
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9752
11163
      lt_cv_path_LD="$ac_dir/$ac_prog"
9753
11164
      # Check to see if the program is GNU ld.  I'd rather use --version,
9754
 
      # but apparently some GNU ld's only accept -v.
 
11165
      # but apparently some variants of GNU ld only accept -v.
9755
11166
      # Break only if it was the GNU/non-GNU ld that we prefer.
9756
11167
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9757
11168
      *GNU* | *'with BFD'*)
9771
11182
 
9772
11183
LD="$lt_cv_path_LD"
9773
11184
if test -n "$LD"; then
9774
 
  echo "$as_me:$LINENO: result: $LD" >&5
9775
 
echo "${ECHO_T}$LD" >&6
 
11185
  { echo "$as_me:$LINENO: result: $LD" >&5
 
11186
echo "${ECHO_T}$LD" >&6; }
9776
11187
else
9777
 
  echo "$as_me:$LINENO: result: no" >&5
9778
 
echo "${ECHO_T}no" >&6
 
11188
  { echo "$as_me:$LINENO: result: no" >&5
 
11189
echo "${ECHO_T}no" >&6; }
9779
11190
fi
9780
11191
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9781
11192
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9782
11193
   { (exit 1); exit 1; }; }
9783
 
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9784
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
11194
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
11195
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
9785
11196
if test "${lt_cv_prog_gnu_ld+set}" = set; then
9786
11197
  echo $ECHO_N "(cached) $ECHO_C" >&6
9787
11198
else
9788
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
11199
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
9789
11200
case `$LD -v 2>&1 </dev/null` in
9790
11201
*GNU* | *'with BFD'*)
9791
11202
  lt_cv_prog_gnu_ld=yes
9795
11206
  ;;
9796
11207
esac
9797
11208
fi
9798
 
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9799
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
11209
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
11210
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
9800
11211
with_gnu_ld=$lt_cv_prog_gnu_ld
9801
11212
 
9802
11213
 
9846
11257
fi
9847
11258
 
9848
11259
# PORTME: fill in a description of your system's C++ link characteristics
9849
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9850
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
11260
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11261
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9851
11262
ld_shlibs_CXX=yes
9852
11263
case $host_os in
9853
11264
  aix3*)
9876
11287
            ;;
9877
11288
          esac
9878
11289
        done
 
11290
        ;;
9879
11291
      esac
9880
11292
 
9881
11293
      exp_sym_flag='-bexport'
9894
11306
    link_all_deplibs_CXX=yes
9895
11307
 
9896
11308
    if test "$GXX" = yes; then
9897
 
      case $host_os in aix4.012|aix4.012.*)
 
11309
      case $host_os in aix4.[012]|aix4.[012].*)
9898
11310
      # We only want to do this on AIX 4.2 and lower, the check
9899
11311
      # below for broken collect2 doesn't work under 4.3+
9900
11312
        collect2name=`${CC} -print-prog-name=collect2`
9913
11325
          hardcode_libdir_flag_spec_CXX='-L$libdir'
9914
11326
          hardcode_libdir_separator_CXX=
9915
11327
        fi
 
11328
        ;;
9916
11329
      esac
9917
11330
      shared_flag='-shared'
 
11331
      if test "$aix_use_runtimelinking" = yes; then
 
11332
        shared_flag="$shared_flag "'${wl}-G'
 
11333
      fi
9918
11334
    else
9919
11335
      # not using gcc
9920
11336
      if test "$host_cpu" = ia64; then
9954
11370
}
9955
11371
_ACEOF
9956
11372
rm -f conftest.$ac_objext conftest$ac_exeext
9957
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9958
 
  (eval $ac_link) 2>conftest.er1
 
11373
if { (ac_try="$ac_link"
 
11374
case "(($ac_try" in
 
11375
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11376
  *) ac_try_echo=$ac_try;;
 
11377
esac
 
11378
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11379
  (eval "$ac_link") 2>conftest.er1
9959
11380
  ac_status=$?
9960
11381
  grep -v '^ *+' conftest.er1 >conftest.err
9961
11382
  rm -f conftest.er1
9962
11383
  cat conftest.err >&5
9963
11384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964
11385
  (exit $ac_status); } &&
9965
 
         { ac_try='test -z "$ac_cxx_werror_flag"
9966
 
                         || test ! -s conftest.err'
9967
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968
 
  (eval $ac_try) 2>&5
 
11386
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
 
11387
  { (case "(($ac_try" in
 
11388
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11389
  *) ac_try_echo=$ac_try;;
 
11390
esac
 
11391
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11392
  (eval "$ac_try") 2>&5
9969
11393
  ac_status=$?
9970
11394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971
11395
  (exit $ac_status); }; } &&
9972
11396
         { ac_try='test -s conftest$ac_exeext'
9973
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974
 
  (eval $ac_try) 2>&5
 
11397
  { (case "(($ac_try" in
 
11398
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11399
  *) ac_try_echo=$ac_try;;
 
11400
esac
 
11401
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11402
  (eval "$ac_try") 2>&5
9975
11403
  ac_status=$?
9976
11404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977
11405
  (exit $ac_status); }; }; then
9985
11413
  echo "$as_me: failed program was:" >&5
9986
11414
sed 's/^/| /' conftest.$ac_ext >&5
9987
11415
 
 
11416
 
9988
11417
fi
9989
 
rm -f conftest.err conftest.$ac_objext \
 
11418
 
 
11419
rm -f core conftest.err conftest.$ac_objext \
9990
11420
      conftest$ac_exeext conftest.$ac_ext
9991
11421
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9992
11422
 
9993
11423
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9994
11424
 
9995
 
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
11425
      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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9996
11426
     else
9997
11427
      if test "$host_cpu" = ia64; then
9998
11428
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9999
11429
        allow_undefined_flag_CXX="-z nodefs"
10000
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
11430
        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"
10001
11431
      else
10002
11432
        # Determine the default libpath from the value encoded in an empty executable.
10003
11433
        cat >conftest.$ac_ext <<_ACEOF
10016
11446
}
10017
11447
_ACEOF
10018
11448
rm -f conftest.$ac_objext conftest$ac_exeext
10019
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10020
 
  (eval $ac_link) 2>conftest.er1
 
11449
if { (ac_try="$ac_link"
 
11450
case "(($ac_try" in
 
11451
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11452
  *) ac_try_echo=$ac_try;;
 
11453
esac
 
11454
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11455
  (eval "$ac_link") 2>conftest.er1
10021
11456
  ac_status=$?
10022
11457
  grep -v '^ *+' conftest.er1 >conftest.err
10023
11458
  rm -f conftest.er1
10024
11459
  cat conftest.err >&5
10025
11460
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026
11461
  (exit $ac_status); } &&
10027
 
         { ac_try='test -z "$ac_cxx_werror_flag"
10028
 
                         || test ! -s conftest.err'
10029
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030
 
  (eval $ac_try) 2>&5
 
11462
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
 
11463
  { (case "(($ac_try" in
 
11464
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11465
  *) ac_try_echo=$ac_try;;
 
11466
esac
 
11467
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11468
  (eval "$ac_try") 2>&5
10031
11469
  ac_status=$?
10032
11470
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033
11471
  (exit $ac_status); }; } &&
10034
11472
         { ac_try='test -s conftest$ac_exeext'
10035
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036
 
  (eval $ac_try) 2>&5
 
11473
  { (case "(($ac_try" in
 
11474
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11475
  *) ac_try_echo=$ac_try;;
 
11476
esac
 
11477
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11478
  (eval "$ac_try") 2>&5
10037
11479
  ac_status=$?
10038
11480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039
11481
  (exit $ac_status); }; }; then
10047
11489
  echo "$as_me: failed program was:" >&5
10048
11490
sed 's/^/| /' conftest.$ac_ext >&5
10049
11491
 
 
11492
 
10050
11493
fi
10051
 
rm -f conftest.err conftest.$ac_objext \
 
11494
 
 
11495
rm -f core conftest.err conftest.$ac_objext \
10052
11496
      conftest$ac_exeext conftest.$ac_ext
10053
11497
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10054
11498
 
10057
11501
        # -berok will link without error, but may produce a broken library.
10058
11502
        no_undefined_flag_CXX=' ${wl}-bernotok'
10059
11503
        allow_undefined_flag_CXX=' ${wl}-berok'
10060
 
        # -bexpall does not export symbols beginning with underscore (_)
10061
 
        always_export_symbols_CXX=yes
10062
11504
        # Exported symbols can be pulled into shared objects from archives
10063
 
        whole_archive_flag_spec_CXX=' '
 
11505
        whole_archive_flag_spec_CXX='$convenience'
10064
11506
        archive_cmds_need_lc_CXX=yes
10065
 
        # This is similar to how AIX traditionally builds it's shared libraries.
10066
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
11507
        # This is similar to how AIX traditionally builds its shared libraries.
 
11508
        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'
10067
11509
      fi
10068
11510
    fi
10069
11511
    ;;
 
11512
 
 
11513
  beos*)
 
11514
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
11515
      allow_undefined_flag_CXX=unsupported
 
11516
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
11517
      # support --undefined.  This deserves some investigation.  FIXME
 
11518
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11519
    else
 
11520
      ld_shlibs_CXX=no
 
11521
    fi
 
11522
    ;;
 
11523
 
10070
11524
  chorus*)
10071
11525
    case $cc_basename in
10072
11526
      *)
10085
11539
    enable_shared_with_static_runtimes_CXX=yes
10086
11540
 
10087
11541
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10088
 
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
11542
      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'
10089
11543
      # If the export-symbols file already is a .def file (1st line
10090
11544
      # is EXPORTS), use it as is; otherwise, prepend...
10091
11545
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10094
11548
        echo EXPORTS > $output_objdir/$soname.def;
10095
11549
        cat $export_symbols >> $output_objdir/$soname.def;
10096
11550
      fi~
10097
 
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
11551
      $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'
10098
11552
    else
10099
11553
      ld_shlibs_CXX=no
10100
11554
    fi
10101
11555
  ;;
10102
 
 
10103
 
  darwin* | rhapsody*)
10104
 
  if test "$GXX" = yes; then
10105
 
    archive_cmds_need_lc_CXX=no
10106
 
    case "$host_os" in
10107
 
    rhapsody* | darwin1.[012])
10108
 
      allow_undefined_flag_CXX='-undefined suppress'
10109
 
      ;;
10110
 
    *) # Darwin 1.3 on
10111
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10112
 
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10113
 
      else
10114
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
10115
 
          10.[012])
10116
 
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10117
 
            ;;
10118
 
          10.*)
10119
 
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
10120
 
            ;;
 
11556
      darwin* | rhapsody*)
 
11557
        case $host_os in
 
11558
        rhapsody* | darwin1.[012])
 
11559
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
11560
         ;;
 
11561
       *) # Darwin 1.3 on
 
11562
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
11563
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11564
         else
 
11565
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
11566
             10.[012])
 
11567
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11568
               ;;
 
11569
             10.*)
 
11570
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
11571
               ;;
 
11572
           esac
 
11573
         fi
 
11574
         ;;
10121
11575
        esac
10122
 
      fi
10123
 
      ;;
10124
 
    esac
10125
 
    lt_int_apple_cc_single_mod=no
10126
 
    output_verbose_link_cmd='echo'
10127
 
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10128
 
      lt_int_apple_cc_single_mod=yes
10129
 
    fi
10130
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10131
 
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10132
 
    else
10133
 
      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
10134
 
    fi
10135
 
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11576
      archive_cmds_need_lc_CXX=no
 
11577
      hardcode_direct_CXX=no
 
11578
      hardcode_automatic_CXX=yes
 
11579
      hardcode_shlibpath_var_CXX=unsupported
 
11580
      whole_archive_flag_spec_CXX=''
 
11581
      link_all_deplibs_CXX=yes
10136
11582
 
10137
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10138
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10139
 
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10140
 
    else
10141
 
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10142
 
    fi
10143
 
    module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10144
 
    hardcode_direct_CXX=no
10145
 
    hardcode_automatic_CXX=yes
10146
 
    hardcode_shlibpath_var_CXX=unsupported
10147
 
    whole_archive_flag_spec_CXX='-all_load $convenience'
10148
 
    link_all_deplibs_CXX=yes
10149
 
  else
10150
 
    ld_shlibs_CXX=no
10151
 
  fi
10152
 
    ;;
 
11583
    if test "$GXX" = yes ; then
 
11584
      lt_int_apple_cc_single_mod=no
 
11585
      output_verbose_link_cmd='echo'
 
11586
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
11587
       lt_int_apple_cc_single_mod=yes
 
11588
      fi
 
11589
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11590
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
11591
      else
 
11592
          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'
 
11593
        fi
 
11594
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11595
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11596
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11597
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11598
          else
 
11599
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11600
          fi
 
11601
            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11602
      else
 
11603
      case $cc_basename in
 
11604
        xlc*)
 
11605
         output_verbose_link_cmd='echo'
 
11606
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
11607
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11608
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11609
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11610
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11611
          ;;
 
11612
       *)
 
11613
         ld_shlibs_CXX=no
 
11614
          ;;
 
11615
      esac
 
11616
      fi
 
11617
        ;;
10153
11618
 
10154
11619
  dgux*)
10155
11620
    case $cc_basename in
10156
 
      ec++)
 
11621
      ec++*)
10157
11622
        # FIXME: insert proper C++ library support
10158
11623
        ld_shlibs_CXX=no
10159
11624
        ;;
10160
 
      ghcx)
 
11625
      ghcx*)
10161
11626
        # Green Hills C++ Compiler
10162
11627
        # FIXME: insert proper C++ library support
10163
11628
        ld_shlibs_CXX=no
10168
11633
        ;;
10169
11634
    esac
10170
11635
    ;;
10171
 
  freebsd12*)
 
11636
  freebsd[12]*)
10172
11637
    # C++ shared libraries reported to be fairly broken before switch to ELF
10173
11638
    ld_shlibs_CXX=no
10174
11639
    ;;
10175
11640
  freebsd-elf*)
10176
11641
    archive_cmds_need_lc_CXX=no
10177
11642
    ;;
10178
 
  freebsd* | kfreebsd*-gnu)
 
11643
  freebsd* | dragonfly*)
10179
11644
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10180
11645
    # conventions
10181
11646
    ld_shlibs_CXX=yes
10192
11657
                                # location of the library.
10193
11658
 
10194
11659
    case $cc_basename in
10195
 
    CC)
 
11660
    CC*)
10196
11661
      # FIXME: insert proper C++ library support
10197
11662
      ld_shlibs_CXX=no
10198
11663
      ;;
10199
 
    aCC)
 
11664
    aCC*)
10200
11665
      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'
10201
11666
      # Commands to make compiler produce verbose output that lists
10202
11667
      # what "hidden" libraries, object files and flags are used when
10206
11671
      # explicitly linking system object files so we need to strip them
10207
11672
      # from the output so that they don't get included in the library
10208
11673
      # dependencies.
10209
 
      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; echo $list'
 
11674
      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; echo $list'
10210
11675
      ;;
10211
11676
    *)
10212
11677
      if test "$GXX" = yes; then
10220
11685
    ;;
10221
11686
  hpux10*|hpux11*)
10222
11687
    if test $with_gnu_ld = no; then
10223
 
      case "$host_cpu" in
10224
 
      hppa*64*)
10225
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11688
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11689
      hardcode_libdir_separator_CXX=:
 
11690
 
 
11691
      case $host_cpu in
 
11692
      hppa*64*|ia64*)
10226
11693
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10227
 
        hardcode_libdir_separator_CXX=:
10228
 
        ;;
10229
 
      ia64*)
10230
 
        hardcode_libdir_flag_spec_CXX='-L$libdir'
10231
11694
        ;;
10232
11695
      *)
10233
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10234
 
        hardcode_libdir_separator_CXX=:
10235
11696
        export_dynamic_flag_spec_CXX='${wl}-E'
10236
11697
        ;;
10237
11698
      esac
10238
11699
    fi
10239
 
    case "$host_cpu" in
10240
 
    hppa*64*)
10241
 
      hardcode_direct_CXX=no
10242
 
      hardcode_shlibpath_var_CXX=no
10243
 
      ;;
10244
 
    ia64*)
10245
 
      hardcode_direct_CXX=no
10246
 
      hardcode_shlibpath_var_CXX=no
10247
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
10248
 
                                              # but as the default
10249
 
                                              # location of the library.
 
11700
    case $host_cpu in
 
11701
    hppa*64*|ia64*)
 
11702
      hardcode_direct_CXX=no
 
11703
      hardcode_shlibpath_var_CXX=no
10250
11704
      ;;
10251
11705
    *)
10252
11706
      hardcode_direct_CXX=yes
10257
11711
    esac
10258
11712
 
10259
11713
    case $cc_basename in
10260
 
      CC)
 
11714
      CC*)
10261
11715
        # FIXME: insert proper C++ library support
10262
11716
        ld_shlibs_CXX=no
10263
11717
        ;;
10264
 
      aCC)
10265
 
        case "$host_cpu" in
10266
 
        hppa*64*|ia64*)
10267
 
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
11718
      aCC*)
 
11719
        case $host_cpu in
 
11720
        hppa*64*)
 
11721
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11722
          ;;
 
11723
        ia64*)
 
11724
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10268
11725
          ;;
10269
11726
        *)
10270
11727
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10283
11740
      *)
10284
11741
        if test "$GXX" = yes; then
10285
11742
          if test $with_gnu_ld = no; then
10286
 
            case "$host_cpu" in
10287
 
            ia64*|hppa*64*)
10288
 
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
11743
            case $host_cpu in
 
11744
            hppa*64*)
 
11745
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11746
              ;;
 
11747
            ia64*)
 
11748
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10289
11749
              ;;
10290
11750
            *)
10291
11751
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10299
11759
        ;;
10300
11760
    esac
10301
11761
    ;;
 
11762
  interix3*)
 
11763
    hardcode_direct_CXX=no
 
11764
    hardcode_shlibpath_var_CXX=no
 
11765
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11766
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11767
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
11768
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
11769
    # default) and relocated if they conflict, which is a slow very memory
 
11770
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
11771
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
11772
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
11773
    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'
 
11774
    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'
 
11775
    ;;
10302
11776
  irix5* | irix6*)
10303
11777
    case $cc_basename in
10304
 
      CC)
 
11778
      CC*)
10305
11779
        # SGI C++
10306
 
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
11780
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10307
11781
 
10308
11782
        # Archives containing C++ object files must be created using
10309
11783
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10314
11788
      *)
10315
11789
        if test "$GXX" = yes; then
10316
11790
          if test "$with_gnu_ld" = no; then
10317
 
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
11791
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10318
11792
          else
10319
11793
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10320
11794
          fi
10325
11799
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10326
11800
    hardcode_libdir_separator_CXX=:
10327
11801
    ;;
10328
 
  linux*)
 
11802
  linux* | k*bsd*-gnu)
10329
11803
    case $cc_basename in
10330
 
      KCC)
 
11804
      KCC*)
10331
11805
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10332
11806
 
10333
11807
        # KCC will only create a shared library if the output file
10352
11826
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10353
11827
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10354
11828
        ;;
10355
 
      icpc)
 
11829
      icpc*)
10356
11830
        # Intel C++
10357
11831
        with_gnu_ld=yes
 
11832
        # version 8.0 and above of icpc choke on multiply defined symbols
 
11833
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
11834
        # earlier do not add the objects themselves.
 
11835
        case `$CC -V 2>&1` in
 
11836
        *"Version 7."*)
 
11837
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11838
          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'
 
11839
          ;;
 
11840
        *)  # Version 8.0 or newer
 
11841
          tmp_idyn=
 
11842
          case $host_cpu in
 
11843
            ia64*) tmp_idyn=' -i_dynamic';;
 
11844
          esac
 
11845
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11846
          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'
 
11847
          ;;
 
11848
        esac
10358
11849
        archive_cmds_need_lc_CXX=no
10359
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10360
 
        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'
10361
11850
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10362
11851
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10363
11852
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10364
11853
        ;;
10365
 
      cxx)
 
11854
      pgCC*)
 
11855
        # Portland Group C++ compiler
 
11856
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
11857
        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'
 
11858
 
 
11859
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11860
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11861
        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
11862
        ;;
 
11863
      cxx*)
10366
11864
        # Compaq C++
10367
11865
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10368
11866
        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'
10393
11891
    ;;
10394
11892
  mvs*)
10395
11893
    case $cc_basename in
10396
 
      cxx)
 
11894
      cxx*)
10397
11895
        # FIXME: insert proper C++ library support
10398
11896
        ld_shlibs_CXX=no
10399
11897
        ;;
10403
11901
        ;;
10404
11902
    esac
10405
11903
    ;;
10406
 
  netbsd*)
 
11904
  netbsd* | netbsdelf*-gnu)
10407
11905
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10408
11906
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10409
11907
      wlarc=
10414
11912
    # Workaround some broken pre-1.5 toolchains
10415
11913
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10416
11914
    ;;
 
11915
  openbsd2*)
 
11916
    # C++ shared libraries are fairly broken
 
11917
    ld_shlibs_CXX=no
 
11918
    ;;
 
11919
  openbsd*)
 
11920
    hardcode_direct_CXX=yes
 
11921
    hardcode_shlibpath_var_CXX=no
 
11922
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11923
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11924
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11925
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
11926
      export_dynamic_flag_spec_CXX='${wl}-E'
 
11927
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11928
    fi
 
11929
    output_verbose_link_cmd='echo'
 
11930
    ;;
10417
11931
  osf3*)
10418
11932
    case $cc_basename in
10419
 
      KCC)
 
11933
      KCC*)
10420
11934
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10421
11935
 
10422
11936
        # KCC will only create a shared library if the output file
10432
11946
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10433
11947
 
10434
11948
        ;;
10435
 
      RCC)
 
11949
      RCC*)
10436
11950
        # Rational C++ 2.4.1
10437
11951
        # FIXME: insert proper C++ library support
10438
11952
        ld_shlibs_CXX=no
10439
11953
        ;;
10440
 
      cxx)
 
11954
      cxx*)
10441
11955
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10442
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
11956
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10443
11957
 
10444
11958
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10445
11959
        hardcode_libdir_separator_CXX=:
10457
11971
      *)
10458
11972
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10459
11973
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10460
 
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
11974
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10461
11975
 
10462
11976
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10463
11977
          hardcode_libdir_separator_CXX=:
10476
11990
    ;;
10477
11991
  osf4* | osf5*)
10478
11992
    case $cc_basename in
10479
 
      KCC)
 
11993
      KCC*)
10480
11994
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10481
11995
 
10482
11996
        # KCC will only create a shared library if the output file
10491
12005
        # the KAI C++ compiler.
10492
12006
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10493
12007
        ;;
10494
 
      RCC)
 
12008
      RCC*)
10495
12009
        # Rational C++ 2.4.1
10496
12010
        # FIXME: insert proper C++ library support
10497
12011
        ld_shlibs_CXX=no
10498
12012
        ;;
10499
 
      cxx)
 
12013
      cxx*)
10500
12014
        allow_undefined_flag_CXX=' -expect_unresolved \*'
10501
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
12015
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10502
12016
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10503
12017
          echo "-hidden">> $lib.exp~
10504
 
          $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 $objdir/so_locations -o $lib~
 
12018
          $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~
10505
12019
          $rm $lib.exp'
10506
12020
 
10507
12021
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10520
12034
      *)
10521
12035
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10522
12036
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10523
 
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
12037
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10524
12038
 
10525
12039
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10526
12040
          hardcode_libdir_separator_CXX=:
10541
12055
    # FIXME: insert proper C++ library support
10542
12056
    ld_shlibs_CXX=no
10543
12057
    ;;
10544
 
  sco*)
10545
 
    archive_cmds_need_lc_CXX=no
10546
 
    case $cc_basename in
10547
 
      CC)
10548
 
        # FIXME: insert proper C++ library support
10549
 
        ld_shlibs_CXX=no
10550
 
        ;;
10551
 
      *)
10552
 
        # FIXME: insert proper C++ library support
10553
 
        ld_shlibs_CXX=no
10554
 
        ;;
10555
 
    esac
10556
 
    ;;
10557
12058
  sunos4*)
10558
12059
    case $cc_basename in
10559
 
      CC)
 
12060
      CC*)
10560
12061
        # Sun C++ 4.x
10561
12062
        # FIXME: insert proper C++ library support
10562
12063
        ld_shlibs_CXX=no
10563
12064
        ;;
10564
 
      lcc)
 
12065
      lcc*)
10565
12066
        # Lucid
10566
12067
        # FIXME: insert proper C++ library support
10567
12068
        ld_shlibs_CXX=no
10574
12075
    ;;
10575
12076
  solaris*)
10576
12077
    case $cc_basename in
10577
 
      CC)
 
12078
      CC*)
10578
12079
        # Sun C++ 4.2, 5.x and Centerline C++
 
12080
        archive_cmds_need_lc_CXX=yes
10579
12081
        no_undefined_flag_CXX=' -zdefs'
10580
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12082
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10581
12083
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10582
 
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12084
        $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'
10583
12085
 
10584
12086
        hardcode_libdir_flag_spec_CXX='-R$libdir'
10585
12087
        hardcode_shlibpath_var_CXX=no
10586
12088
        case $host_os in
10587
 
          solaris2.0-5 | solaris2.0-5.*) ;;
 
12089
          solaris2.[0-5] | solaris2.[0-5].*) ;;
10588
12090
          *)
10589
12091
            # The C++ compiler is used as linker so we must use $wl
10590
12092
            # flag to pass the commands to the underlying system
10591
 
            # linker.
 
12093
            # linker. We must also pass each convience library through
 
12094
            # to the system linker between allextract/defaultextract.
 
12095
            # The C++ compiler will combine linker options so we
 
12096
            # cannot just pass the convience library names through
 
12097
            # without $wl.
10592
12098
            # Supported since Solaris 2.6 (maybe 2.5.1?)
10593
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
12099
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10594
12100
            ;;
10595
12101
        esac
10596
12102
        link_all_deplibs_CXX=yes
10597
12103
 
10598
 
        # Commands to make compiler produce verbose output that lists
10599
 
        # what "hidden" libraries, object files and flags are used when
10600
 
        # linking a shared library.
10601
 
        #
10602
 
        # There doesn't appear to be a way to prevent this compiler from
10603
 
        # explicitly linking system object files so we need to strip them
10604
 
        # from the output so that they don't get included in the library
10605
 
        # dependencies.
10606
 
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
12104
        output_verbose_link_cmd='echo'
10607
12105
 
10608
12106
        # Archives containing C++ object files must be created using
10609
12107
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10611
12109
        # in the archive.
10612
12110
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10613
12111
        ;;
10614
 
      gcx)
 
12112
      gcx*)
10615
12113
        # Green Hills C++ Compiler
10616
12114
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10617
12115
 
10649
12147
        ;;
10650
12148
    esac
10651
12149
    ;;
10652
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10653
 
    archive_cmds_need_lc_CXX=no
 
12150
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
12151
    no_undefined_flag_CXX='${wl}-z,text'
 
12152
    archive_cmds_need_lc_CXX=no
 
12153
    hardcode_shlibpath_var_CXX=no
 
12154
    runpath_var='LD_RUN_PATH'
 
12155
 
 
12156
    case $cc_basename in
 
12157
      CC*)
 
12158
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12159
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12160
        ;;
 
12161
      *)
 
12162
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12163
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12164
        ;;
 
12165
    esac
 
12166
    ;;
 
12167
  sysv5* | sco3.2v5* | sco5v6*)
 
12168
    # Note: We can NOT use -z defs as we might desire, because we do not
 
12169
    # link with -lc, and that would cause any symbols used from libc to
 
12170
    # always be unresolved, which means just about no library would
 
12171
    # ever link correctly.  If we're not using GNU ld we use -z text
 
12172
    # though, which does catch some bad symbols but isn't as heavy-handed
 
12173
    # as -z defs.
 
12174
    # For security reasons, it is highly recommended that you always
 
12175
    # use absolute paths for naming shared libraries, and exclude the
 
12176
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
12177
    # requires that you compile everything twice, which is a pain.
 
12178
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
12179
    # non-empty value in the environment.  Most likely only useful for
 
12180
    # creating official distributions of packages.
 
12181
    # This is a hack until libtool officially supports absolute path
 
12182
    # names for shared libraries.
 
12183
    no_undefined_flag_CXX='${wl}-z,text'
 
12184
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
12185
    archive_cmds_need_lc_CXX=no
 
12186
    hardcode_shlibpath_var_CXX=no
 
12187
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
12188
    hardcode_libdir_separator_CXX=':'
 
12189
    link_all_deplibs_CXX=yes
 
12190
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
12191
    runpath_var='LD_RUN_PATH'
 
12192
 
 
12193
    case $cc_basename in
 
12194
      CC*)
 
12195
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12196
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12197
        ;;
 
12198
      *)
 
12199
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12200
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12201
        ;;
 
12202
    esac
10654
12203
    ;;
10655
12204
  tandem*)
10656
12205
    case $cc_basename in
10657
 
      NCC)
 
12206
      NCC*)
10658
12207
        # NonStop-UX NCC 3.20
10659
12208
        # FIXME: insert proper C++ library support
10660
12209
        ld_shlibs_CXX=no
10674
12223
    ld_shlibs_CXX=no
10675
12224
    ;;
10676
12225
esac
10677
 
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10678
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
12226
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12227
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
10679
12228
test "$ld_shlibs_CXX" = no && can_build_shared=no
10680
12229
 
10681
12230
GCC_CXX="$GXX"
10707
12256
  # The `*' in the case matches for architectures that use `case' in
10708
12257
  # $output_verbose_cmd can trigger glob expansion during the loop
10709
12258
  # eval without this substitution.
10710
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
12259
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10711
12260
 
10712
12261
  for p in `eval $output_verbose_link_cmd`; do
10713
12262
    case $p in
10783
12332
 
10784
12333
$rm -f confest.$objext
10785
12334
 
 
12335
# PORTME: override above test on systems where it is broken
 
12336
case $host_os in
 
12337
interix3*)
 
12338
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
12339
  # hack all around it, let's just trust "g++" to DTRT.
 
12340
  predep_objects_CXX=
 
12341
  postdep_objects_CXX=
 
12342
  postdeps_CXX=
 
12343
  ;;
 
12344
 
 
12345
solaris*)
 
12346
  case $cc_basename in
 
12347
  CC*)
 
12348
    # Adding this requires a known-good setup of shared libraries for
 
12349
    # Sun compiler versions before 5.6, else PIC objects from an old
 
12350
    # archive will be linked into the output, leading to subtle bugs.
 
12351
    postdeps_CXX='-lCstd -lCrun'
 
12352
    ;;
 
12353
  esac
 
12354
  ;;
 
12355
esac
 
12356
 
 
12357
 
10786
12358
case " $postdeps_CXX " in
10787
12359
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10788
12360
esac
10791
12363
lt_prog_compiler_pic_CXX=
10792
12364
lt_prog_compiler_static_CXX=
10793
12365
 
10794
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10795
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
12366
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12367
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
10796
12368
 
10797
12369
  # C++ specific cases for pic, static, wl, etc.
10798
12370
  if test "$GXX" = yes; then
10830
12402
      # DJGPP does not support shared libraries at all
10831
12403
      lt_prog_compiler_pic_CXX=
10832
12404
      ;;
 
12405
    interix3*)
 
12406
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
12407
      # Instead, we relocate shared libraries at runtime.
 
12408
      ;;
10833
12409
    sysv4*MP*)
10834
12410
      if test -d /usr/nec; then
10835
12411
        lt_prog_compiler_pic_CXX=-Kconform_pic
10838
12414
    hpux*)
10839
12415
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10840
12416
      # not for PA HP-UX.
10841
 
      case "$host_cpu" in
 
12417
      case $host_cpu in
10842
12418
      hppa*64*|ia64*)
10843
12419
        ;;
10844
12420
      *)
10863
12439
        ;;
10864
12440
      chorus*)
10865
12441
        case $cc_basename in
10866
 
        cxch68)
 
12442
        cxch68*)
10867
12443
          # Green Hills C++ Compiler
10868
12444
          # _LT_AC_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"
10869
12445
          ;;
10870
12446
        esac
10871
12447
        ;;
 
12448
       darwin*)
 
12449
         # PIC is the default on this platform
 
12450
         # Common symbols not allowed in MH_DYLIB files
 
12451
         case $cc_basename in
 
12452
           xlc*)
 
12453
           lt_prog_compiler_pic_CXX='-qnocommon'
 
12454
           lt_prog_compiler_wl_CXX='-Wl,'
 
12455
           ;;
 
12456
         esac
 
12457
       ;;
10872
12458
      dgux*)
10873
12459
        case $cc_basename in
10874
 
          ec++)
 
12460
          ec++*)
10875
12461
            lt_prog_compiler_pic_CXX='-KPIC'
10876
12462
            ;;
10877
 
          ghcx)
 
12463
          ghcx*)
10878
12464
            # Green Hills C++ Compiler
10879
12465
            lt_prog_compiler_pic_CXX='-pic'
10880
12466
            ;;
10882
12468
            ;;
10883
12469
        esac
10884
12470
        ;;
10885
 
      freebsd* | kfreebsd*-gnu)
 
12471
      freebsd* | dragonfly*)
10886
12472
        # FreeBSD uses GNU C++
10887
12473
        ;;
10888
12474
      hpux9* | hpux10* | hpux11*)
10889
12475
        case $cc_basename in
10890
 
          CC)
 
12476
          CC*)
10891
12477
            lt_prog_compiler_wl_CXX='-Wl,'
10892
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
12478
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
10893
12479
            if test "$host_cpu" != ia64; then
10894
12480
              lt_prog_compiler_pic_CXX='+Z'
10895
12481
            fi
10896
12482
            ;;
10897
 
          aCC)
 
12483
          aCC*)
10898
12484
            lt_prog_compiler_wl_CXX='-Wl,'
10899
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10900
 
            case "$host_cpu" in
 
12485
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12486
            case $host_cpu in
10901
12487
            hppa*64*|ia64*)
10902
12488
              # +Z the default
10903
12489
              ;;
10910
12496
            ;;
10911
12497
        esac
10912
12498
        ;;
 
12499
      interix*)
 
12500
        # This is c89, which is MS Visual C++ (no shared libs)
 
12501
        # Anyone wants to do a port?
 
12502
        ;;
10913
12503
      irix5* | irix6* | nonstopux*)
10914
12504
        case $cc_basename in
10915
 
          CC)
 
12505
          CC*)
10916
12506
            lt_prog_compiler_wl_CXX='-Wl,'
10917
12507
            lt_prog_compiler_static_CXX='-non_shared'
10918
12508
            # CC pic flag -KPIC is the default.
10921
12511
            ;;
10922
12512
        esac
10923
12513
        ;;
10924
 
      linux*)
 
12514
      linux* | k*bsd*-gnu)
10925
12515
        case $cc_basename in
10926
 
          KCC)
 
12516
          KCC*)
10927
12517
            # KAI C++ Compiler
10928
12518
            lt_prog_compiler_wl_CXX='--backend -Wl,'
10929
12519
            lt_prog_compiler_pic_CXX='-fPIC'
10930
12520
            ;;
10931
 
          icpc)
 
12521
          icpc* | ecpc*)
10932
12522
            # Intel C++
10933
12523
            lt_prog_compiler_wl_CXX='-Wl,'
10934
12524
            lt_prog_compiler_pic_CXX='-KPIC'
10935
12525
            lt_prog_compiler_static_CXX='-static'
10936
12526
            ;;
10937
 
          cxx)
 
12527
          pgCC*)
 
12528
            # Portland Group C++ compiler.
 
12529
            lt_prog_compiler_wl_CXX='-Wl,'
 
12530
            lt_prog_compiler_pic_CXX='-fpic'
 
12531
            lt_prog_compiler_static_CXX='-Bstatic'
 
12532
            ;;
 
12533
          cxx*)
10938
12534
            # Compaq C++
10939
12535
            # Make sure the PIC flag is empty.  It appears that all Alpha
10940
12536
            # Linux and Compaq Tru64 Unix objects are PIC.
10951
12547
        ;;
10952
12548
      mvs*)
10953
12549
        case $cc_basename in
10954
 
          cxx)
 
12550
          cxx*)
10955
12551
            lt_prog_compiler_pic_CXX='-W c,exportall'
10956
12552
            ;;
10957
12553
          *)
10958
12554
            ;;
10959
12555
        esac
10960
12556
        ;;
10961
 
      netbsd*)
 
12557
      netbsd* | netbsdelf*-gnu)
10962
12558
        ;;
10963
12559
      osf3* | osf4* | osf5*)
10964
12560
        case $cc_basename in
10965
 
          KCC)
 
12561
          KCC*)
10966
12562
            lt_prog_compiler_wl_CXX='--backend -Wl,'
10967
12563
            ;;
10968
 
          RCC)
 
12564
          RCC*)
10969
12565
            # Rational C++ 2.4.1
10970
12566
            lt_prog_compiler_pic_CXX='-pic'
10971
12567
            ;;
10972
 
          cxx)
 
12568
          cxx*)
10973
12569
            # Digital/Compaq C++
10974
12570
            lt_prog_compiler_wl_CXX='-Wl,'
10975
12571
            # Make sure the PIC flag is empty.  It appears that all Alpha
10983
12579
        ;;
10984
12580
      psos*)
10985
12581
        ;;
10986
 
      sco*)
10987
 
        case $cc_basename in
10988
 
          CC)
10989
 
            lt_prog_compiler_pic_CXX='-fPIC'
10990
 
            ;;
10991
 
          *)
10992
 
            ;;
10993
 
        esac
10994
 
        ;;
10995
12582
      solaris*)
10996
12583
        case $cc_basename in
10997
 
          CC)
 
12584
          CC*)
10998
12585
            # Sun C++ 4.2, 5.x and Centerline C++
10999
12586
            lt_prog_compiler_pic_CXX='-KPIC'
11000
12587
            lt_prog_compiler_static_CXX='-Bstatic'
11001
12588
            lt_prog_compiler_wl_CXX='-Qoption ld '
11002
12589
            ;;
11003
 
          gcx)
 
12590
          gcx*)
11004
12591
            # Green Hills C++ Compiler
11005
12592
            lt_prog_compiler_pic_CXX='-PIC'
11006
12593
            ;;
11010
12597
        ;;
11011
12598
      sunos4*)
11012
12599
        case $cc_basename in
11013
 
          CC)
 
12600
          CC*)
11014
12601
            # Sun C++ 4.x
11015
12602
            lt_prog_compiler_pic_CXX='-pic'
11016
12603
            lt_prog_compiler_static_CXX='-Bstatic'
11017
12604
            ;;
11018
 
          lcc)
 
12605
          lcc*)
11019
12606
            # Lucid
11020
12607
            lt_prog_compiler_pic_CXX='-pic'
11021
12608
            ;;
11025
12612
        ;;
11026
12613
      tandem*)
11027
12614
        case $cc_basename in
11028
 
          NCC)
 
12615
          NCC*)
11029
12616
            # NonStop-UX NCC 3.20
11030
12617
            lt_prog_compiler_pic_CXX='-KPIC'
11031
12618
            ;;
11033
12620
            ;;
11034
12621
        esac
11035
12622
        ;;
11036
 
      unixware*)
 
12623
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
12624
        case $cc_basename in
 
12625
          CC*)
 
12626
            lt_prog_compiler_wl_CXX='-Wl,'
 
12627
            lt_prog_compiler_pic_CXX='-KPIC'
 
12628
            lt_prog_compiler_static_CXX='-Bstatic'
 
12629
            ;;
 
12630
        esac
11037
12631
        ;;
11038
12632
      vxworks*)
11039
12633
        ;;
11043
12637
    esac
11044
12638
  fi
11045
12639
 
11046
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11047
 
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
12640
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
12641
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11048
12642
 
11049
12643
#
11050
12644
# Check to make sure the PIC flag actually works.
11051
12645
#
11052
12646
if test -n "$lt_prog_compiler_pic_CXX"; then
11053
12647
 
11054
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11055
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
12648
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
12649
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11056
12650
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11057
12651
  echo $ECHO_N "(cached) $ECHO_C" >&6
11058
12652
else
11066
12660
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11067
12661
   # The option is referenced via a variable to avoid confusing sed.
11068
12662
   lt_compile=`echo "$ac_compile" | $SED \
11069
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
12663
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11070
12664
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11071
12665
   -e 's:$: $lt_compiler_flag:'`
11072
 
   (eval echo "\"\$as_me:11072: $lt_compile\"" >&5)
 
12666
   (eval echo "\"\$as_me:12666: $lt_compile\"" >&5)
11073
12667
   (eval "$lt_compile" 2>conftest.err)
11074
12668
   ac_status=$?
11075
12669
   cat conftest.err >&5
11076
 
   echo "$as_me:11076: \$? = $ac_status" >&5
 
12670
   echo "$as_me:12670: \$? = $ac_status" >&5
11077
12671
   if (exit $ac_status) && test -s "$ac_outfile"; then
11078
12672
     # The compiler can only warn and ignore the option if not recognized
11079
 
     # So say no if there are warnings
11080
 
     if test ! -s conftest.err; then
 
12673
     # So say no if there are warnings other than the usual output.
 
12674
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
12675
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12676
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11081
12677
       lt_prog_compiler_pic_works_CXX=yes
11082
12678
     fi
11083
12679
   fi
11084
12680
   $rm conftest*
11085
12681
 
11086
12682
fi
11087
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11088
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
12683
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
12684
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11089
12685
 
11090
12686
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11091
12687
    case $lt_prog_compiler_pic_CXX in
11098
12694
fi
11099
12695
 
11100
12696
fi
11101
 
case "$host_os" in
 
12697
case $host_os in
11102
12698
  # For platforms which do not support PIC, -DPIC is meaningless:
11103
12699
  *djgpp*)
11104
12700
    lt_prog_compiler_pic_CXX=
11108
12704
    ;;
11109
12705
esac
11110
12706
 
11111
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11112
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
12707
#
 
12708
# Check to make sure the static flag actually works.
 
12709
#
 
12710
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
12711
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
12712
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
12713
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
12714
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12715
else
 
12716
  lt_prog_compiler_static_works_CXX=no
 
12717
   save_LDFLAGS="$LDFLAGS"
 
12718
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
12719
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
12720
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
12721
     # The linker can only warn and ignore the option if not recognized
 
12722
     # So say no if there are warnings
 
12723
     if test -s conftest.err; then
 
12724
       # Append any errors to the config.log.
 
12725
       cat conftest.err 1>&5
 
12726
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
12727
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12728
       if diff conftest.exp conftest.er2 >/dev/null; then
 
12729
         lt_prog_compiler_static_works_CXX=yes
 
12730
       fi
 
12731
     else
 
12732
       lt_prog_compiler_static_works_CXX=yes
 
12733
     fi
 
12734
   fi
 
12735
   $rm conftest*
 
12736
   LDFLAGS="$save_LDFLAGS"
 
12737
 
 
12738
fi
 
12739
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
 
12740
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
 
12741
 
 
12742
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
12743
    :
 
12744
else
 
12745
    lt_prog_compiler_static_CXX=
 
12746
fi
 
12747
 
 
12748
 
 
12749
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
12750
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11113
12751
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11114
12752
  echo $ECHO_N "(cached) $ECHO_C" >&6
11115
12753
else
11126
12764
   # Note that $ac_compile itself does not contain backslashes and begins
11127
12765
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11128
12766
   lt_compile=`echo "$ac_compile" | $SED \
11129
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
12767
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11130
12768
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11131
12769
   -e 's:$: $lt_compiler_flag:'`
11132
 
   (eval echo "\"\$as_me:11132: $lt_compile\"" >&5)
 
12770
   (eval echo "\"\$as_me:12770: $lt_compile\"" >&5)
11133
12771
   (eval "$lt_compile" 2>out/conftest.err)
11134
12772
   ac_status=$?
11135
12773
   cat out/conftest.err >&5
11136
 
   echo "$as_me:11136: \$? = $ac_status" >&5
 
12774
   echo "$as_me:12774: \$? = $ac_status" >&5
11137
12775
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11138
12776
   then
11139
12777
     # The compiler can only warn and ignore the option if not recognized
11140
12778
     # So say no if there are warnings
11141
 
     if test ! -s out/conftest.err; then
 
12779
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
12780
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
12781
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11142
12782
       lt_cv_prog_compiler_c_o_CXX=yes
11143
12783
     fi
11144
12784
   fi
11145
 
   chmod u+w .
 
12785
   chmod u+w . 2>&5
11146
12786
   $rm conftest*
11147
12787
   # SGI C++ compiler will create directory out/ii_files/ for
11148
12788
   # template instantiation
11153
12793
   $rm conftest*
11154
12794
 
11155
12795
fi
11156
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11157
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
12796
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
12797
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11158
12798
 
11159
12799
 
11160
12800
hard_links="nottested"
11161
12801
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11162
12802
  # do not overwrite the value of need_locks provided by the user
11163
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11164
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
12803
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
12804
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11165
12805
  hard_links=yes
11166
12806
  $rm conftest*
11167
12807
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11168
12808
  touch conftest.a
11169
12809
  ln conftest.a conftest.b 2>&5 || hard_links=no
11170
12810
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11171
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
11172
 
echo "${ECHO_T}$hard_links" >&6
 
12811
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
12812
echo "${ECHO_T}$hard_links" >&6; }
11173
12813
  if test "$hard_links" = no; then
11174
12814
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11175
12815
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11179
12819
  need_locks=no
11180
12820
fi
11181
12821
 
11182
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11183
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
12822
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12823
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11184
12824
 
11185
12825
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11186
12826
  case $host_os in
11197
12837
    export_symbols_cmds_CXX="$ltdll_cmds"
11198
12838
  ;;
11199
12839
  cygwin* | mingw*)
11200
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
12840
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
12841
  ;;
 
12842
  linux* | k*bsd*-gnu)
 
12843
    link_all_deplibs_CXX=no
11201
12844
  ;;
11202
12845
  *)
11203
12846
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11204
12847
  ;;
11205
12848
  esac
11206
12849
 
11207
 
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11208
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
12850
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12851
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11209
12852
test "$ld_shlibs_CXX" = no && can_build_shared=no
11210
12853
 
11211
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11212
 
if test "$GCC" = yes; then
11213
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11214
 
fi
11215
 
 
11216
12854
#
11217
12855
# Do we need to explicitly link libc?
11218
12856
#
11230
12868
      # Test whether the compiler implicitly links with -lc since on some
11231
12869
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11232
12870
      # to ld, don't add -lc before -lgcc.
11233
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11234
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
12871
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
12872
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11235
12873
      $rm conftest*
11236
12874
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11237
12875
 
11245
12883
        libobjs=conftest.$ac_objext
11246
12884
        deplibs=
11247
12885
        wl=$lt_prog_compiler_wl_CXX
 
12886
        pic_flag=$lt_prog_compiler_pic_CXX
11248
12887
        compiler_flags=-v
11249
12888
        linker_flags=-v
11250
12889
        verstring=
11267
12906
        cat conftest.err 1>&5
11268
12907
      fi
11269
12908
      $rm conftest*
11270
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11271
 
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
12909
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
12910
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11272
12911
      ;;
11273
12912
    esac
11274
12913
  fi
11275
12914
  ;;
11276
12915
esac
11277
12916
 
11278
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11279
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
12917
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
12918
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11280
12919
library_names_spec=
11281
12920
libname_spec='lib$name'
11282
12921
soname_spec=
11377
13016
  shlibpath_var=LIBRARY_PATH
11378
13017
  ;;
11379
13018
 
11380
 
bsdi4*)
 
13019
bsdi[45]*)
11381
13020
  version_type=linux
11382
13021
  need_version=no
11383
13022
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11405
13044
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11406
13045
      dldir=$destdir/`dirname \$dlpath`~
11407
13046
      test -d \$dldir || mkdir -p \$dldir~
11408
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
13047
      $install_prog $dir/$dlname \$dldir/$dlname~
 
13048
      chmod a+x \$dldir/$dlname'
11409
13049
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11410
13050
      dlpath=$dir/\$dldll~
11411
13051
       $rm \$dlpath'
11435
13075
      ;;
11436
13076
    pw32*)
11437
13077
      # pw32 DLLs use 'pw' prefix rather than 'lib'
11438
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
13078
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11439
13079
      ;;
11440
13080
    esac
11441
13081
    ;;
11458
13098
  soname_spec='${libname}${release}${major}$shared_ext'
11459
13099
  shlibpath_overrides_runpath=yes
11460
13100
  shlibpath_var=DYLD_LIBRARY_PATH
11461
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
13101
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11462
13102
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11463
13103
  if test "$GCC" = yes; then
11464
13104
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11481
13121
  dynamic_linker=no
11482
13122
  ;;
11483
13123
 
11484
 
kfreebsd*-gnu)
11485
 
  version_type=linux
11486
 
  need_lib_prefix=no
11487
 
  need_version=no
11488
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11489
 
  soname_spec='${libname}${release}${shared_ext}$major'
11490
 
  shlibpath_var=LD_LIBRARY_PATH
11491
 
  shlibpath_overrides_runpath=no
11492
 
  hardcode_into_libs=yes
11493
 
  dynamic_linker='GNU ld.so'
11494
 
  ;;
11495
 
 
11496
 
freebsd*)
11497
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
13124
freebsd* | dragonfly*)
 
13125
  # DragonFly does not have aout.  When/if they implement a new
 
13126
  # versioning mechanism, adjust this.
 
13127
  if test -x /usr/bin/objformat; then
 
13128
    objformat=`/usr/bin/objformat`
 
13129
  else
 
13130
    case $host_os in
 
13131
    freebsd[123]*) objformat=aout ;;
 
13132
    *) objformat=elf ;;
 
13133
    esac
 
13134
  fi
11498
13135
  version_type=freebsd-$objformat
11499
13136
  case $version_type in
11500
13137
    freebsd-elf*)
11512
13149
  freebsd2*)
11513
13150
    shlibpath_overrides_runpath=yes
11514
13151
    ;;
11515
 
  freebsd3.01* | freebsdelf3.01*)
 
13152
  freebsd3.[01]* | freebsdelf3.[01]*)
11516
13153
    shlibpath_overrides_runpath=yes
11517
13154
    hardcode_into_libs=yes
11518
13155
    ;;
11519
 
  *) # from 3.2 on
 
13156
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
13157
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11520
13158
    shlibpath_overrides_runpath=no
11521
13159
    hardcode_into_libs=yes
11522
13160
    ;;
 
13161
  freebsd*) # from 4.6 on
 
13162
    shlibpath_overrides_runpath=yes
 
13163
    hardcode_into_libs=yes
 
13164
    ;;
11523
13165
  esac
11524
13166
  ;;
11525
13167
 
11539
13181
  version_type=sunos
11540
13182
  need_lib_prefix=no
11541
13183
  need_version=no
11542
 
  case "$host_cpu" in
 
13184
  case $host_cpu in
11543
13185
  ia64*)
11544
13186
    shrext_cmds='.so'
11545
13187
    hardcode_into_libs=yes
11579
13221
  postinstall_cmds='chmod 555 $lib'
11580
13222
  ;;
11581
13223
 
 
13224
interix3*)
 
13225
  version_type=linux
 
13226
  need_lib_prefix=no
 
13227
  need_version=no
 
13228
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13229
  soname_spec='${libname}${release}${shared_ext}$major'
 
13230
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
13231
  shlibpath_var=LD_LIBRARY_PATH
 
13232
  shlibpath_overrides_runpath=no
 
13233
  hardcode_into_libs=yes
 
13234
  ;;
 
13235
 
11582
13236
irix5* | irix6* | nonstopux*)
11583
13237
  case $host_os in
11584
13238
    nonstopux*) version_type=nonstopux ;;
11622
13276
  ;;
11623
13277
 
11624
13278
# This must be Linux ELF.
11625
 
linux*)
 
13279
linux* | k*bsd*-gnu)
11626
13280
  version_type=linux
11627
13281
  need_lib_prefix=no
11628
13282
  need_version=no
11636
13290
  # before this can be enabled.
11637
13291
  hardcode_into_libs=yes
11638
13292
 
11639
 
  # find out which ABI we are using
11640
 
  libsuff=
11641
 
  case "$host_cpu" in
11642
 
  x86_64*|s390x*|powerpc64*)
11643
 
    echo '#line 11643 "configure"' > conftest.$ac_ext
11644
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11645
 
  (eval $ac_compile) 2>&5
11646
 
  ac_status=$?
11647
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648
 
  (exit $ac_status); }; then
11649
 
      case `/usr/bin/file conftest.$ac_objext` in
11650
 
      *64-bit*)
11651
 
        libsuff=64
11652
 
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11653
 
        ;;
11654
 
      esac
11655
 
    fi
11656
 
    rm -rf conftest*
11657
 
    ;;
11658
 
  esac
11659
 
 
11660
13293
  # Append ld.so.conf contents to the search path
11661
13294
  if test -f /etc/ld.so.conf; then
11662
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11663
 
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
13295
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
13296
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11664
13297
  fi
11665
13298
 
11666
13299
  # We used to test for /lib/ld.so.1 and disable shared libraries on
11672
13305
  dynamic_linker='GNU/Linux ld.so'
11673
13306
  ;;
11674
13307
 
11675
 
knetbsd*-gnu)
 
13308
netbsdelf*-gnu)
11676
13309
  version_type=linux
11677
13310
  need_lib_prefix=no
11678
13311
  need_version=no
11681
13314
  shlibpath_var=LD_LIBRARY_PATH
11682
13315
  shlibpath_overrides_runpath=no
11683
13316
  hardcode_into_libs=yes
11684
 
  dynamic_linker='GNU ld.so'
 
13317
  dynamic_linker='NetBSD ld.elf_so'
11685
13318
  ;;
11686
13319
 
11687
13320
netbsd*)
11721
13354
 
11722
13355
openbsd*)
11723
13356
  version_type=sunos
 
13357
  sys_lib_dlsearch_path_spec="/usr/lib"
11724
13358
  need_lib_prefix=no
11725
 
  need_version=yes
 
13359
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
13360
  case $host_os in
 
13361
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
13362
    *)                         need_version=no  ;;
 
13363
  esac
11726
13364
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11727
13365
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11728
13366
  shlibpath_var=LD_LIBRARY_PATH
11760
13398
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11761
13399
  ;;
11762
13400
 
11763
 
sco3.2v5*)
11764
 
  version_type=osf
11765
 
  soname_spec='${libname}${release}${shared_ext}$major'
11766
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11767
 
  shlibpath_var=LD_LIBRARY_PATH
11768
 
  ;;
11769
 
 
11770
13401
solaris*)
11771
13402
  version_type=linux
11772
13403
  need_lib_prefix=no
11792
13423
  need_version=yes
11793
13424
  ;;
11794
13425
 
11795
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
13426
sysv4 | sysv4.3*)
11796
13427
  version_type=linux
11797
13428
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11798
13429
  soname_spec='${libname}${release}${shared_ext}$major'
11825
13456
  fi
11826
13457
  ;;
11827
13458
 
 
13459
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
13460
  version_type=freebsd-elf
 
13461
  need_lib_prefix=no
 
13462
  need_version=no
 
13463
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13464
  soname_spec='${libname}${release}${shared_ext}$major'
 
13465
  shlibpath_var=LD_LIBRARY_PATH
 
13466
  hardcode_into_libs=yes
 
13467
  if test "$with_gnu_ld" = yes; then
 
13468
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
13469
    shlibpath_overrides_runpath=no
 
13470
  else
 
13471
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
13472
    shlibpath_overrides_runpath=yes
 
13473
    case $host_os in
 
13474
      sco3.2v5*)
 
13475
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
13476
        ;;
 
13477
    esac
 
13478
  fi
 
13479
  sys_lib_dlsearch_path_spec='/usr/lib'
 
13480
  ;;
 
13481
 
11828
13482
uts4*)
11829
13483
  version_type=linux
11830
13484
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11836
13490
  dynamic_linker=no
11837
13491
  ;;
11838
13492
esac
11839
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11840
 
echo "${ECHO_T}$dynamic_linker" >&6
 
13493
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
13494
echo "${ECHO_T}$dynamic_linker" >&6; }
11841
13495
test "$dynamic_linker" = no && can_build_shared=no
11842
13496
 
11843
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11844
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
13497
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13498
if test "$GCC" = yes; then
 
13499
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13500
fi
 
13501
 
 
13502
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
13503
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
11845
13504
hardcode_action_CXX=
11846
13505
if test -n "$hardcode_libdir_flag_spec_CXX" || \
11847
 
   test -n "$runpath_var CXX" || \
11848
 
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
13506
   test -n "$runpath_var_CXX" || \
 
13507
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
11849
13508
 
11850
13509
  # We can hardcode non-existant directories.
11851
13510
  if test "$hardcode_direct_CXX" != no &&
11865
13524
  # directories.
11866
13525
  hardcode_action_CXX=unsupported
11867
13526
fi
11868
 
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11869
 
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
13527
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
13528
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
11870
13529
 
11871
13530
if test "$hardcode_action_CXX" = relink; then
11872
13531
  # Fast installation is not supported
11877
13536
  enable_fast_install=needless
11878
13537
fi
11879
13538
 
11880
 
striplib=
11881
 
old_striplib=
11882
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11883
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11884
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11885
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11886
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11887
 
  echo "$as_me:$LINENO: result: yes" >&5
11888
 
echo "${ECHO_T}yes" >&6
11889
 
else
11890
 
# FIXME - insert some real tests, host_os isn't really good enough
11891
 
  case $host_os in
11892
 
   darwin*)
11893
 
       if test -n "$STRIP" ; then
11894
 
         striplib="$STRIP -x"
11895
 
         echo "$as_me:$LINENO: result: yes" >&5
11896
 
echo "${ECHO_T}yes" >&6
11897
 
       else
11898
 
  echo "$as_me:$LINENO: result: no" >&5
11899
 
echo "${ECHO_T}no" >&6
11900
 
fi
11901
 
       ;;
11902
 
   *)
11903
 
  echo "$as_me:$LINENO: result: no" >&5
11904
 
echo "${ECHO_T}no" >&6
11905
 
    ;;
11906
 
  esac
11907
 
fi
11908
 
 
11909
 
if test "x$enable_dlopen" != xyes; then
11910
 
  enable_dlopen=unknown
11911
 
  enable_dlopen_self=unknown
11912
 
  enable_dlopen_self_static=unknown
11913
 
else
11914
 
  lt_cv_dlopen=no
11915
 
  lt_cv_dlopen_libs=
11916
 
 
11917
 
  case $host_os in
11918
 
  beos*)
11919
 
    lt_cv_dlopen="load_add_on"
11920
 
    lt_cv_dlopen_libs=
11921
 
    lt_cv_dlopen_self=yes
11922
 
    ;;
11923
 
 
11924
 
  mingw* | pw32*)
11925
 
    lt_cv_dlopen="LoadLibrary"
11926
 
    lt_cv_dlopen_libs=
11927
 
   ;;
11928
 
 
11929
 
  cygwin*)
11930
 
    lt_cv_dlopen="dlopen"
11931
 
    lt_cv_dlopen_libs=
11932
 
   ;;
11933
 
 
11934
 
  darwin*)
11935
 
  # if libdl is installed we need to link against it
11936
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11937
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11938
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11939
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11940
 
else
11941
 
  ac_check_lib_save_LIBS=$LIBS
11942
 
LIBS="-ldl  $LIBS"
11943
 
cat >conftest.$ac_ext <<_ACEOF
11944
 
/* confdefs.h.  */
11945
 
_ACEOF
11946
 
cat confdefs.h >>conftest.$ac_ext
11947
 
cat >>conftest.$ac_ext <<_ACEOF
11948
 
/* end confdefs.h.  */
11949
 
 
11950
 
/* Override any gcc2 internal prototype to avoid an error.  */
11951
 
#ifdef __cplusplus
11952
 
extern "C"
11953
 
#endif
11954
 
/* We use char because int might match the return type of a gcc2
11955
 
   builtin and then its argument prototype would still apply.  */
11956
 
char dlopen ();
11957
 
int
11958
 
main ()
11959
 
{
11960
 
dlopen ();
11961
 
  ;
11962
 
  return 0;
11963
 
}
11964
 
_ACEOF
11965
 
rm -f conftest.$ac_objext conftest$ac_exeext
11966
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11967
 
  (eval $ac_link) 2>conftest.er1
11968
 
  ac_status=$?
11969
 
  grep -v '^ *+' conftest.er1 >conftest.err
11970
 
  rm -f conftest.er1
11971
 
  cat conftest.err >&5
11972
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973
 
  (exit $ac_status); } &&
11974
 
         { ac_try='test -z "$ac_cxx_werror_flag"
11975
 
                         || test ! -s conftest.err'
11976
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977
 
  (eval $ac_try) 2>&5
11978
 
  ac_status=$?
11979
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980
 
  (exit $ac_status); }; } &&
11981
 
         { ac_try='test -s conftest$ac_exeext'
11982
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983
 
  (eval $ac_try) 2>&5
11984
 
  ac_status=$?
11985
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986
 
  (exit $ac_status); }; }; then
11987
 
  ac_cv_lib_dl_dlopen=yes
11988
 
else
11989
 
  echo "$as_me: failed program was:" >&5
11990
 
sed 's/^/| /' conftest.$ac_ext >&5
11991
 
 
11992
 
ac_cv_lib_dl_dlopen=no
11993
 
fi
11994
 
rm -f conftest.err conftest.$ac_objext \
11995
 
      conftest$ac_exeext conftest.$ac_ext
11996
 
LIBS=$ac_check_lib_save_LIBS
11997
 
fi
11998
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11999
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12000
 
if test $ac_cv_lib_dl_dlopen = yes; then
12001
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12002
 
else
12003
 
 
12004
 
    lt_cv_dlopen="dyld"
12005
 
    lt_cv_dlopen_libs=
12006
 
    lt_cv_dlopen_self=yes
12007
 
 
12008
 
fi
12009
 
 
12010
 
   ;;
12011
 
 
12012
 
  *)
12013
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
12014
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12015
 
if test "${ac_cv_func_shl_load+set}" = set; then
12016
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12017
 
else
12018
 
  cat >conftest.$ac_ext <<_ACEOF
12019
 
/* confdefs.h.  */
12020
 
_ACEOF
12021
 
cat confdefs.h >>conftest.$ac_ext
12022
 
cat >>conftest.$ac_ext <<_ACEOF
12023
 
/* end confdefs.h.  */
12024
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12025
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12026
 
#define shl_load innocuous_shl_load
12027
 
 
12028
 
/* System header to define __stub macros and hopefully few prototypes,
12029
 
    which can conflict with char shl_load (); below.
12030
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12031
 
    <limits.h> exists even on freestanding compilers.  */
12032
 
 
12033
 
#ifdef __STDC__
12034
 
# include <limits.h>
12035
 
#else
12036
 
# include <assert.h>
12037
 
#endif
12038
 
 
12039
 
#undef shl_load
12040
 
 
12041
 
/* Override any gcc2 internal prototype to avoid an error.  */
12042
 
#ifdef __cplusplus
12043
 
extern "C"
12044
 
{
12045
 
#endif
12046
 
/* We use char because int might match the return type of a gcc2
12047
 
   builtin and then its argument prototype would still apply.  */
12048
 
char shl_load ();
12049
 
/* The GNU C library defines this for functions which it implements
12050
 
    to always fail with ENOSYS.  Some functions are actually named
12051
 
    something starting with __ and the normal name is an alias.  */
12052
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12053
 
choke me
12054
 
#else
12055
 
char (*f) () = shl_load;
12056
 
#endif
12057
 
#ifdef __cplusplus
12058
 
}
12059
 
#endif
12060
 
 
12061
 
int
12062
 
main ()
12063
 
{
12064
 
return f != shl_load;
12065
 
  ;
12066
 
  return 0;
12067
 
}
12068
 
_ACEOF
12069
 
rm -f conftest.$ac_objext conftest$ac_exeext
12070
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12071
 
  (eval $ac_link) 2>conftest.er1
12072
 
  ac_status=$?
12073
 
  grep -v '^ *+' conftest.er1 >conftest.err
12074
 
  rm -f conftest.er1
12075
 
  cat conftest.err >&5
12076
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077
 
  (exit $ac_status); } &&
12078
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12079
 
                         || test ! -s conftest.err'
12080
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12081
 
  (eval $ac_try) 2>&5
12082
 
  ac_status=$?
12083
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084
 
  (exit $ac_status); }; } &&
12085
 
         { ac_try='test -s conftest$ac_exeext'
12086
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12087
 
  (eval $ac_try) 2>&5
12088
 
  ac_status=$?
12089
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090
 
  (exit $ac_status); }; }; then
12091
 
  ac_cv_func_shl_load=yes
12092
 
else
12093
 
  echo "$as_me: failed program was:" >&5
12094
 
sed 's/^/| /' conftest.$ac_ext >&5
12095
 
 
12096
 
ac_cv_func_shl_load=no
12097
 
fi
12098
 
rm -f conftest.err conftest.$ac_objext \
12099
 
      conftest$ac_exeext conftest.$ac_ext
12100
 
fi
12101
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12102
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12103
 
if test $ac_cv_func_shl_load = yes; then
12104
 
  lt_cv_dlopen="shl_load"
12105
 
else
12106
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12107
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12108
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12109
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12110
 
else
12111
 
  ac_check_lib_save_LIBS=$LIBS
12112
 
LIBS="-ldld  $LIBS"
12113
 
cat >conftest.$ac_ext <<_ACEOF
12114
 
/* confdefs.h.  */
12115
 
_ACEOF
12116
 
cat confdefs.h >>conftest.$ac_ext
12117
 
cat >>conftest.$ac_ext <<_ACEOF
12118
 
/* end confdefs.h.  */
12119
 
 
12120
 
/* Override any gcc2 internal prototype to avoid an error.  */
12121
 
#ifdef __cplusplus
12122
 
extern "C"
12123
 
#endif
12124
 
/* We use char because int might match the return type of a gcc2
12125
 
   builtin and then its argument prototype would still apply.  */
12126
 
char shl_load ();
12127
 
int
12128
 
main ()
12129
 
{
12130
 
shl_load ();
12131
 
  ;
12132
 
  return 0;
12133
 
}
12134
 
_ACEOF
12135
 
rm -f conftest.$ac_objext conftest$ac_exeext
12136
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12137
 
  (eval $ac_link) 2>conftest.er1
12138
 
  ac_status=$?
12139
 
  grep -v '^ *+' conftest.er1 >conftest.err
12140
 
  rm -f conftest.er1
12141
 
  cat conftest.err >&5
12142
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143
 
  (exit $ac_status); } &&
12144
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12145
 
                         || test ! -s conftest.err'
12146
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12147
 
  (eval $ac_try) 2>&5
12148
 
  ac_status=$?
12149
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150
 
  (exit $ac_status); }; } &&
12151
 
         { ac_try='test -s conftest$ac_exeext'
12152
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12153
 
  (eval $ac_try) 2>&5
12154
 
  ac_status=$?
12155
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156
 
  (exit $ac_status); }; }; then
12157
 
  ac_cv_lib_dld_shl_load=yes
12158
 
else
12159
 
  echo "$as_me: failed program was:" >&5
12160
 
sed 's/^/| /' conftest.$ac_ext >&5
12161
 
 
12162
 
ac_cv_lib_dld_shl_load=no
12163
 
fi
12164
 
rm -f conftest.err conftest.$ac_objext \
12165
 
      conftest$ac_exeext conftest.$ac_ext
12166
 
LIBS=$ac_check_lib_save_LIBS
12167
 
fi
12168
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12169
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12170
 
if test $ac_cv_lib_dld_shl_load = yes; then
12171
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12172
 
else
12173
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
12174
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12175
 
if test "${ac_cv_func_dlopen+set}" = set; then
12176
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12177
 
else
12178
 
  cat >conftest.$ac_ext <<_ACEOF
12179
 
/* confdefs.h.  */
12180
 
_ACEOF
12181
 
cat confdefs.h >>conftest.$ac_ext
12182
 
cat >>conftest.$ac_ext <<_ACEOF
12183
 
/* end confdefs.h.  */
12184
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12185
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12186
 
#define dlopen innocuous_dlopen
12187
 
 
12188
 
/* System header to define __stub macros and hopefully few prototypes,
12189
 
    which can conflict with char dlopen (); below.
12190
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12191
 
    <limits.h> exists even on freestanding compilers.  */
12192
 
 
12193
 
#ifdef __STDC__
12194
 
# include <limits.h>
12195
 
#else
12196
 
# include <assert.h>
12197
 
#endif
12198
 
 
12199
 
#undef dlopen
12200
 
 
12201
 
/* Override any gcc2 internal prototype to avoid an error.  */
12202
 
#ifdef __cplusplus
12203
 
extern "C"
12204
 
{
12205
 
#endif
12206
 
/* We use char because int might match the return type of a gcc2
12207
 
   builtin and then its argument prototype would still apply.  */
12208
 
char dlopen ();
12209
 
/* The GNU C library defines this for functions which it implements
12210
 
    to always fail with ENOSYS.  Some functions are actually named
12211
 
    something starting with __ and the normal name is an alias.  */
12212
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12213
 
choke me
12214
 
#else
12215
 
char (*f) () = dlopen;
12216
 
#endif
12217
 
#ifdef __cplusplus
12218
 
}
12219
 
#endif
12220
 
 
12221
 
int
12222
 
main ()
12223
 
{
12224
 
return f != dlopen;
12225
 
  ;
12226
 
  return 0;
12227
 
}
12228
 
_ACEOF
12229
 
rm -f conftest.$ac_objext conftest$ac_exeext
12230
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12231
 
  (eval $ac_link) 2>conftest.er1
12232
 
  ac_status=$?
12233
 
  grep -v '^ *+' conftest.er1 >conftest.err
12234
 
  rm -f conftest.er1
12235
 
  cat conftest.err >&5
12236
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237
 
  (exit $ac_status); } &&
12238
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12239
 
                         || test ! -s conftest.err'
12240
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12241
 
  (eval $ac_try) 2>&5
12242
 
  ac_status=$?
12243
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244
 
  (exit $ac_status); }; } &&
12245
 
         { ac_try='test -s conftest$ac_exeext'
12246
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12247
 
  (eval $ac_try) 2>&5
12248
 
  ac_status=$?
12249
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250
 
  (exit $ac_status); }; }; then
12251
 
  ac_cv_func_dlopen=yes
12252
 
else
12253
 
  echo "$as_me: failed program was:" >&5
12254
 
sed 's/^/| /' conftest.$ac_ext >&5
12255
 
 
12256
 
ac_cv_func_dlopen=no
12257
 
fi
12258
 
rm -f conftest.err conftest.$ac_objext \
12259
 
      conftest$ac_exeext conftest.$ac_ext
12260
 
fi
12261
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12262
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12263
 
if test $ac_cv_func_dlopen = yes; then
12264
 
  lt_cv_dlopen="dlopen"
12265
 
else
12266
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12267
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12268
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12269
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12270
 
else
12271
 
  ac_check_lib_save_LIBS=$LIBS
12272
 
LIBS="-ldl  $LIBS"
12273
 
cat >conftest.$ac_ext <<_ACEOF
12274
 
/* confdefs.h.  */
12275
 
_ACEOF
12276
 
cat confdefs.h >>conftest.$ac_ext
12277
 
cat >>conftest.$ac_ext <<_ACEOF
12278
 
/* end confdefs.h.  */
12279
 
 
12280
 
/* Override any gcc2 internal prototype to avoid an error.  */
12281
 
#ifdef __cplusplus
12282
 
extern "C"
12283
 
#endif
12284
 
/* We use char because int might match the return type of a gcc2
12285
 
   builtin and then its argument prototype would still apply.  */
12286
 
char dlopen ();
12287
 
int
12288
 
main ()
12289
 
{
12290
 
dlopen ();
12291
 
  ;
12292
 
  return 0;
12293
 
}
12294
 
_ACEOF
12295
 
rm -f conftest.$ac_objext conftest$ac_exeext
12296
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12297
 
  (eval $ac_link) 2>conftest.er1
12298
 
  ac_status=$?
12299
 
  grep -v '^ *+' conftest.er1 >conftest.err
12300
 
  rm -f conftest.er1
12301
 
  cat conftest.err >&5
12302
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303
 
  (exit $ac_status); } &&
12304
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12305
 
                         || test ! -s conftest.err'
12306
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307
 
  (eval $ac_try) 2>&5
12308
 
  ac_status=$?
12309
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310
 
  (exit $ac_status); }; } &&
12311
 
         { ac_try='test -s conftest$ac_exeext'
12312
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313
 
  (eval $ac_try) 2>&5
12314
 
  ac_status=$?
12315
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316
 
  (exit $ac_status); }; }; then
12317
 
  ac_cv_lib_dl_dlopen=yes
12318
 
else
12319
 
  echo "$as_me: failed program was:" >&5
12320
 
sed 's/^/| /' conftest.$ac_ext >&5
12321
 
 
12322
 
ac_cv_lib_dl_dlopen=no
12323
 
fi
12324
 
rm -f conftest.err conftest.$ac_objext \
12325
 
      conftest$ac_exeext conftest.$ac_ext
12326
 
LIBS=$ac_check_lib_save_LIBS
12327
 
fi
12328
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12329
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12330
 
if test $ac_cv_lib_dl_dlopen = yes; then
12331
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12332
 
else
12333
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12334
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12335
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12336
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12337
 
else
12338
 
  ac_check_lib_save_LIBS=$LIBS
12339
 
LIBS="-lsvld  $LIBS"
12340
 
cat >conftest.$ac_ext <<_ACEOF
12341
 
/* confdefs.h.  */
12342
 
_ACEOF
12343
 
cat confdefs.h >>conftest.$ac_ext
12344
 
cat >>conftest.$ac_ext <<_ACEOF
12345
 
/* end confdefs.h.  */
12346
 
 
12347
 
/* Override any gcc2 internal prototype to avoid an error.  */
12348
 
#ifdef __cplusplus
12349
 
extern "C"
12350
 
#endif
12351
 
/* We use char because int might match the return type of a gcc2
12352
 
   builtin and then its argument prototype would still apply.  */
12353
 
char dlopen ();
12354
 
int
12355
 
main ()
12356
 
{
12357
 
dlopen ();
12358
 
  ;
12359
 
  return 0;
12360
 
}
12361
 
_ACEOF
12362
 
rm -f conftest.$ac_objext conftest$ac_exeext
12363
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12364
 
  (eval $ac_link) 2>conftest.er1
12365
 
  ac_status=$?
12366
 
  grep -v '^ *+' conftest.er1 >conftest.err
12367
 
  rm -f conftest.er1
12368
 
  cat conftest.err >&5
12369
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370
 
  (exit $ac_status); } &&
12371
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12372
 
                         || test ! -s conftest.err'
12373
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374
 
  (eval $ac_try) 2>&5
12375
 
  ac_status=$?
12376
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377
 
  (exit $ac_status); }; } &&
12378
 
         { ac_try='test -s conftest$ac_exeext'
12379
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12380
 
  (eval $ac_try) 2>&5
12381
 
  ac_status=$?
12382
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383
 
  (exit $ac_status); }; }; then
12384
 
  ac_cv_lib_svld_dlopen=yes
12385
 
else
12386
 
  echo "$as_me: failed program was:" >&5
12387
 
sed 's/^/| /' conftest.$ac_ext >&5
12388
 
 
12389
 
ac_cv_lib_svld_dlopen=no
12390
 
fi
12391
 
rm -f conftest.err conftest.$ac_objext \
12392
 
      conftest$ac_exeext conftest.$ac_ext
12393
 
LIBS=$ac_check_lib_save_LIBS
12394
 
fi
12395
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12396
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12397
 
if test $ac_cv_lib_svld_dlopen = yes; then
12398
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12399
 
else
12400
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12401
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12402
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12403
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12404
 
else
12405
 
  ac_check_lib_save_LIBS=$LIBS
12406
 
LIBS="-ldld  $LIBS"
12407
 
cat >conftest.$ac_ext <<_ACEOF
12408
 
/* confdefs.h.  */
12409
 
_ACEOF
12410
 
cat confdefs.h >>conftest.$ac_ext
12411
 
cat >>conftest.$ac_ext <<_ACEOF
12412
 
/* end confdefs.h.  */
12413
 
 
12414
 
/* Override any gcc2 internal prototype to avoid an error.  */
12415
 
#ifdef __cplusplus
12416
 
extern "C"
12417
 
#endif
12418
 
/* We use char because int might match the return type of a gcc2
12419
 
   builtin and then its argument prototype would still apply.  */
12420
 
char dld_link ();
12421
 
int
12422
 
main ()
12423
 
{
12424
 
dld_link ();
12425
 
  ;
12426
 
  return 0;
12427
 
}
12428
 
_ACEOF
12429
 
rm -f conftest.$ac_objext conftest$ac_exeext
12430
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12431
 
  (eval $ac_link) 2>conftest.er1
12432
 
  ac_status=$?
12433
 
  grep -v '^ *+' conftest.er1 >conftest.err
12434
 
  rm -f conftest.er1
12435
 
  cat conftest.err >&5
12436
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437
 
  (exit $ac_status); } &&
12438
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12439
 
                         || test ! -s conftest.err'
12440
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12441
 
  (eval $ac_try) 2>&5
12442
 
  ac_status=$?
12443
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444
 
  (exit $ac_status); }; } &&
12445
 
         { ac_try='test -s conftest$ac_exeext'
12446
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447
 
  (eval $ac_try) 2>&5
12448
 
  ac_status=$?
12449
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450
 
  (exit $ac_status); }; }; then
12451
 
  ac_cv_lib_dld_dld_link=yes
12452
 
else
12453
 
  echo "$as_me: failed program was:" >&5
12454
 
sed 's/^/| /' conftest.$ac_ext >&5
12455
 
 
12456
 
ac_cv_lib_dld_dld_link=no
12457
 
fi
12458
 
rm -f conftest.err conftest.$ac_objext \
12459
 
      conftest$ac_exeext conftest.$ac_ext
12460
 
LIBS=$ac_check_lib_save_LIBS
12461
 
fi
12462
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12463
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12464
 
if test $ac_cv_lib_dld_dld_link = yes; then
12465
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12466
 
fi
12467
 
 
12468
 
 
12469
 
fi
12470
 
 
12471
 
 
12472
 
fi
12473
 
 
12474
 
 
12475
 
fi
12476
 
 
12477
 
 
12478
 
fi
12479
 
 
12480
 
 
12481
 
fi
12482
 
 
12483
 
    ;;
12484
 
  esac
12485
 
 
12486
 
  if test "x$lt_cv_dlopen" != xno; then
12487
 
    enable_dlopen=yes
12488
 
  else
12489
 
    enable_dlopen=no
12490
 
  fi
12491
 
 
12492
 
  case $lt_cv_dlopen in
12493
 
  dlopen)
12494
 
    save_CPPFLAGS="$CPPFLAGS"
12495
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12496
 
 
12497
 
    save_LDFLAGS="$LDFLAGS"
12498
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12499
 
 
12500
 
    save_LIBS="$LIBS"
12501
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
12502
 
 
12503
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12504
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12505
 
if test "${lt_cv_dlopen_self+set}" = set; then
12506
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12507
 
else
12508
 
          if test "$cross_compiling" = yes; then :
12509
 
  lt_cv_dlopen_self=cross
12510
 
else
12511
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12512
 
  lt_status=$lt_dlunknown
12513
 
  cat > conftest.$ac_ext <<EOF
12514
 
#line 12514 "configure"
12515
 
#include "confdefs.h"
12516
 
 
12517
 
#if HAVE_DLFCN_H
12518
 
#include <dlfcn.h>
12519
 
#endif
12520
 
 
12521
 
#include <stdio.h>
12522
 
 
12523
 
#ifdef RTLD_GLOBAL
12524
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
12525
 
#else
12526
 
#  ifdef DL_GLOBAL
12527
 
#    define LT_DLGLOBAL         DL_GLOBAL
12528
 
#  else
12529
 
#    define LT_DLGLOBAL         0
12530
 
#  endif
12531
 
#endif
12532
 
 
12533
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12534
 
   find out it does not work in some platform. */
12535
 
#ifndef LT_DLLAZY_OR_NOW
12536
 
#  ifdef RTLD_LAZY
12537
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12538
 
#  else
12539
 
#    ifdef DL_LAZY
12540
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12541
 
#    else
12542
 
#      ifdef RTLD_NOW
12543
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12544
 
#      else
12545
 
#        ifdef DL_NOW
12546
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
12547
 
#        else
12548
 
#          define LT_DLLAZY_OR_NOW      0
12549
 
#        endif
12550
 
#      endif
12551
 
#    endif
12552
 
#  endif
12553
 
#endif
12554
 
 
12555
 
#ifdef __cplusplus
12556
 
extern "C" void exit (int);
12557
 
#endif
12558
 
 
12559
 
void fnord() { int i=42;}
12560
 
int main ()
12561
 
{
12562
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12563
 
  int status = $lt_dlunknown;
12564
 
 
12565
 
  if (self)
12566
 
    {
12567
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12568
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12569
 
      /* dlclose (self); */
12570
 
    }
12571
 
 
12572
 
    exit (status);
12573
 
}
12574
 
EOF
12575
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12576
 
  (eval $ac_link) 2>&5
12577
 
  ac_status=$?
12578
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12580
 
    (./conftest; exit; ) 2>/dev/null
12581
 
    lt_status=$?
12582
 
    case x$lt_status in
12583
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12584
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12585
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12586
 
    esac
12587
 
  else :
12588
 
    # compilation failed
12589
 
    lt_cv_dlopen_self=no
12590
 
  fi
12591
 
fi
12592
 
rm -fr conftest*
12593
 
 
12594
 
 
12595
 
fi
12596
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12597
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12598
 
 
12599
 
    if test "x$lt_cv_dlopen_self" = xyes; then
12600
 
      LDFLAGS="$LDFLAGS $link_static_flag"
12601
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12602
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12603
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
12604
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12605
 
else
12606
 
          if test "$cross_compiling" = yes; then :
12607
 
  lt_cv_dlopen_self_static=cross
12608
 
else
12609
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12610
 
  lt_status=$lt_dlunknown
12611
 
  cat > conftest.$ac_ext <<EOF
12612
 
#line 12612 "configure"
12613
 
#include "confdefs.h"
12614
 
 
12615
 
#if HAVE_DLFCN_H
12616
 
#include <dlfcn.h>
12617
 
#endif
12618
 
 
12619
 
#include <stdio.h>
12620
 
 
12621
 
#ifdef RTLD_GLOBAL
12622
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
12623
 
#else
12624
 
#  ifdef DL_GLOBAL
12625
 
#    define LT_DLGLOBAL         DL_GLOBAL
12626
 
#  else
12627
 
#    define LT_DLGLOBAL         0
12628
 
#  endif
12629
 
#endif
12630
 
 
12631
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12632
 
   find out it does not work in some platform. */
12633
 
#ifndef LT_DLLAZY_OR_NOW
12634
 
#  ifdef RTLD_LAZY
12635
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12636
 
#  else
12637
 
#    ifdef DL_LAZY
12638
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12639
 
#    else
12640
 
#      ifdef RTLD_NOW
12641
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12642
 
#      else
12643
 
#        ifdef DL_NOW
12644
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
12645
 
#        else
12646
 
#          define LT_DLLAZY_OR_NOW      0
12647
 
#        endif
12648
 
#      endif
12649
 
#    endif
12650
 
#  endif
12651
 
#endif
12652
 
 
12653
 
#ifdef __cplusplus
12654
 
extern "C" void exit (int);
12655
 
#endif
12656
 
 
12657
 
void fnord() { int i=42;}
12658
 
int main ()
12659
 
{
12660
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12661
 
  int status = $lt_dlunknown;
12662
 
 
12663
 
  if (self)
12664
 
    {
12665
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12666
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12667
 
      /* dlclose (self); */
12668
 
    }
12669
 
 
12670
 
    exit (status);
12671
 
}
12672
 
EOF
12673
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12674
 
  (eval $ac_link) 2>&5
12675
 
  ac_status=$?
12676
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12678
 
    (./conftest; exit; ) 2>/dev/null
12679
 
    lt_status=$?
12680
 
    case x$lt_status in
12681
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12682
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12683
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12684
 
    esac
12685
 
  else :
12686
 
    # compilation failed
12687
 
    lt_cv_dlopen_self_static=no
12688
 
  fi
12689
 
fi
12690
 
rm -fr conftest*
12691
 
 
12692
 
 
12693
 
fi
12694
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12695
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12696
 
    fi
12697
 
 
12698
 
    CPPFLAGS="$save_CPPFLAGS"
12699
 
    LDFLAGS="$save_LDFLAGS"
12700
 
    LIBS="$save_LIBS"
12701
 
    ;;
12702
 
  esac
12703
 
 
12704
 
  case $lt_cv_dlopen_self in
12705
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12706
 
  *) enable_dlopen_self=unknown ;;
12707
 
  esac
12708
 
 
12709
 
  case $lt_cv_dlopen_self_static in
12710
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12711
 
  *) enable_dlopen_self_static=unknown ;;
12712
 
  esac
12713
 
fi
12714
 
 
12715
13539
 
12716
13540
# The else clause should only fire when bootstrapping the
12717
13541
# libtool distribution, otherwise you forgot to ship ltmain.sh
12726
13550
  # Now quote all the things that may contain metacharacters while being
12727
13551
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12728
13552
  # variables and quote the copies for generation of the libtool script.
12729
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
13553
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12730
13554
    SED SHELL STRIP \
12731
13555
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12732
13556
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12827
13651
# The host system.
12828
13652
host_alias=$host_alias
12829
13653
host=$host
 
13654
host_os=$host_os
 
13655
 
 
13656
# The build system.
 
13657
build_alias=$build_alias
 
13658
build=$build
 
13659
build_os=$build_os
12830
13660
 
12831
13661
# An echo program that does not interpret backslashes.
12832
13662
echo=$lt_echo
12838
13668
# A C compiler.
12839
13669
LTCC=$lt_LTCC
12840
13670
 
 
13671
# LTCC compiler flags.
 
13672
LTCFLAGS=$lt_LTCFLAGS
 
13673
 
12841
13674
# A language-specific compiler.
12842
13675
CC=$lt_compiler_CXX
12843
13676
 
12903
13736
# Does compiler simultaneously support -c and -o options?
12904
13737
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12905
13738
 
12906
 
# Must we lock files when doing compilation ?
 
13739
# Must we lock files when doing compilation?
12907
13740
need_locks=$lt_need_locks
12908
13741
 
12909
13742
# Do we need the lib prefix for modules?
13180
14013
# If no C compiler was specified, use CC.
13181
14014
LTCC=${LTCC-"$CC"}
13182
14015
 
 
14016
# If no C compiler flags were specified, use CFLAGS.
 
14017
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
14018
 
13183
14019
# Allow CC to be a program name with arguments.
13184
14020
compiler=$CC
13185
14021
 
13186
14022
 
 
14023
# save warnings/boilerplate of simple test code
 
14024
ac_outfile=conftest.$ac_objext
 
14025
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
14026
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14027
_lt_compiler_boilerplate=`cat conftest.err`
 
14028
$rm conftest*
 
14029
 
 
14030
ac_outfile=conftest.$ac_objext
 
14031
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
14032
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14033
_lt_linker_boilerplate=`cat conftest.err`
 
14034
$rm conftest*
 
14035
 
 
14036
 
13187
14037
# Allow CC to be a program name with arguments.
13188
14038
lt_save_CC="$CC"
13189
14039
CC=${F77-"f77"}
13190
14040
compiler=$CC
13191
14041
compiler_F77=$CC
13192
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13193
 
 
13194
 
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13195
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13196
 
echo "$as_me:$LINENO: result: $can_build_shared" >&5
13197
 
echo "${ECHO_T}$can_build_shared" >&6
13198
 
 
13199
 
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13200
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
14042
for cc_temp in $compiler""; do
 
14043
  case $cc_temp in
 
14044
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14045
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14046
    \-*) ;;
 
14047
    *) break;;
 
14048
  esac
 
14049
done
 
14050
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14051
 
 
14052
 
 
14053
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
14054
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
14055
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
14056
echo "${ECHO_T}$can_build_shared" >&6; }
 
14057
 
 
14058
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
14059
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13201
14060
test "$can_build_shared" = "no" && enable_shared=no
13202
14061
 
13203
14062
# On AIX, shared libraries and static libraries use the same namespace, and
13204
14063
# are all built from PIC.
13205
 
case "$host_os" in
 
14064
case $host_os in
13206
14065
aix3*)
13207
14066
  test "$enable_shared" = yes && enable_static=no
13208
14067
  if test -n "$RANLIB"; then
13211
14070
  fi
13212
14071
  ;;
13213
14072
aix4* | aix5*)
13214
 
  test "$enable_shared" = yes && enable_static=no
 
14073
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
14074
    test "$enable_shared" = yes && enable_static=no
 
14075
  fi
13215
14076
  ;;
13216
14077
esac
13217
 
echo "$as_me:$LINENO: result: $enable_shared" >&5
13218
 
echo "${ECHO_T}$enable_shared" >&6
 
14078
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
14079
echo "${ECHO_T}$enable_shared" >&6; }
13219
14080
 
13220
 
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13221
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
14081
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
14082
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13222
14083
# Make sure either enable_shared or enable_static is yes.
13223
14084
test "$enable_shared" = yes || enable_static=yes
13224
 
echo "$as_me:$LINENO: result: $enable_static" >&5
13225
 
echo "${ECHO_T}$enable_static" >&6
13226
 
 
13227
 
test "$ld_shlibs_F77" = no && can_build_shared=no
 
14085
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
14086
echo "${ECHO_T}$enable_static" >&6; }
13228
14087
 
13229
14088
GCC_F77="$G77"
13230
14089
LD_F77="$LD"
13233
14092
lt_prog_compiler_pic_F77=
13234
14093
lt_prog_compiler_static_F77=
13235
14094
 
13236
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13237
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
14095
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
14096
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13238
14097
 
13239
14098
  if test "$GCC" = yes; then
13240
14099
    lt_prog_compiler_wl_F77='-Wl,'
13272
14131
      lt_prog_compiler_pic_F77='-fno-common'
13273
14132
      ;;
13274
14133
 
 
14134
    interix3*)
 
14135
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
14136
      # Instead, we relocate shared libraries at runtime.
 
14137
      ;;
 
14138
 
13275
14139
    msdosdjgpp*)
13276
14140
      # Just because we use GCC doesn't mean we suddenly get shared libraries
13277
14141
      # on systems that don't support them.
13288
14152
    hpux*)
13289
14153
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13290
14154
      # not for PA HP-UX.
13291
 
      case "$host_cpu" in
 
14155
      case $host_cpu in
13292
14156
      hppa*64*|ia64*)
13293
14157
        # +Z the default
13294
14158
        ;;
13314
14178
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13315
14179
      fi
13316
14180
      ;;
 
14181
      darwin*)
 
14182
        # PIC is the default on this platform
 
14183
        # Common symbols not allowed in MH_DYLIB files
 
14184
       case $cc_basename in
 
14185
         xlc*)
 
14186
         lt_prog_compiler_pic_F77='-qnocommon'
 
14187
         lt_prog_compiler_wl_F77='-Wl,'
 
14188
         ;;
 
14189
       esac
 
14190
       ;;
13317
14191
 
13318
14192
    mingw* | pw32* | os2*)
13319
14193
      # This hack is so that the source file can tell whether it is being
13325
14199
      lt_prog_compiler_wl_F77='-Wl,'
13326
14200
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13327
14201
      # not for PA HP-UX.
13328
 
      case "$host_cpu" in
 
14202
      case $host_cpu in
13329
14203
      hppa*64*|ia64*)
13330
14204
        # +Z the default
13331
14205
        ;;
13348
14222
      lt_prog_compiler_static_F77='-Bstatic'
13349
14223
      ;;
13350
14224
 
13351
 
    linux*)
13352
 
      case $CC in
 
14225
    linux* | k*bsd*-gnu)
 
14226
      case $cc_basename in
13353
14227
      icc* | ecc*)
13354
14228
        lt_prog_compiler_wl_F77='-Wl,'
13355
14229
        lt_prog_compiler_pic_F77='-KPIC'
13356
14230
        lt_prog_compiler_static_F77='-static'
13357
14231
        ;;
 
14232
      pgcc* | pgf77* | pgf90* | pgf95*)
 
14233
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
14234
        # which looks to be a dead project)
 
14235
        lt_prog_compiler_wl_F77='-Wl,'
 
14236
        lt_prog_compiler_pic_F77='-fpic'
 
14237
        lt_prog_compiler_static_F77='-Bstatic'
 
14238
        ;;
13358
14239
      ccc*)
13359
14240
        lt_prog_compiler_wl_F77='-Wl,'
13360
14241
        # All Alpha code is PIC.
13369
14250
      lt_prog_compiler_static_F77='-non_shared'
13370
14251
      ;;
13371
14252
 
13372
 
    sco3.2v5*)
13373
 
      lt_prog_compiler_pic_F77='-Kpic'
13374
 
      lt_prog_compiler_static_F77='-dn'
13375
 
      ;;
13376
 
 
13377
14253
    solaris*)
13378
 
      lt_prog_compiler_wl_F77='-Wl,'
13379
14254
      lt_prog_compiler_pic_F77='-KPIC'
13380
14255
      lt_prog_compiler_static_F77='-Bstatic'
 
14256
      case $cc_basename in
 
14257
      f77* | f90* | f95*)
 
14258
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
14259
      *)
 
14260
        lt_prog_compiler_wl_F77='-Wl,';;
 
14261
      esac
13381
14262
      ;;
13382
14263
 
13383
14264
    sunos4*)
13386
14267
      lt_prog_compiler_static_F77='-Bstatic'
13387
14268
      ;;
13388
14269
 
13389
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
14270
    sysv4 | sysv4.2uw2* | sysv4.3*)
13390
14271
      lt_prog_compiler_wl_F77='-Wl,'
13391
14272
      lt_prog_compiler_pic_F77='-KPIC'
13392
14273
      lt_prog_compiler_static_F77='-Bstatic'
13399
14280
      fi
13400
14281
      ;;
13401
14282
 
 
14283
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14284
      lt_prog_compiler_wl_F77='-Wl,'
 
14285
      lt_prog_compiler_pic_F77='-KPIC'
 
14286
      lt_prog_compiler_static_F77='-Bstatic'
 
14287
      ;;
 
14288
 
 
14289
    unicos*)
 
14290
      lt_prog_compiler_wl_F77='-Wl,'
 
14291
      lt_prog_compiler_can_build_shared_F77=no
 
14292
      ;;
 
14293
 
13402
14294
    uts4*)
13403
14295
      lt_prog_compiler_pic_F77='-pic'
13404
14296
      lt_prog_compiler_static_F77='-Bstatic'
13410
14302
    esac
13411
14303
  fi
13412
14304
 
13413
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13414
 
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
14305
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
14306
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13415
14307
 
13416
14308
#
13417
14309
# Check to make sure the PIC flag actually works.
13418
14310
#
13419
14311
if test -n "$lt_prog_compiler_pic_F77"; then
13420
14312
 
13421
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13422
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
14313
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
14314
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13423
14315
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13424
14316
  echo $ECHO_N "(cached) $ECHO_C" >&6
13425
14317
else
13433
14325
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13434
14326
   # The option is referenced via a variable to avoid confusing sed.
13435
14327
   lt_compile=`echo "$ac_compile" | $SED \
13436
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
14328
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13437
14329
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13438
14330
   -e 's:$: $lt_compiler_flag:'`
13439
 
   (eval echo "\"\$as_me:13439: $lt_compile\"" >&5)
 
14331
   (eval echo "\"\$as_me:14331: $lt_compile\"" >&5)
13440
14332
   (eval "$lt_compile" 2>conftest.err)
13441
14333
   ac_status=$?
13442
14334
   cat conftest.err >&5
13443
 
   echo "$as_me:13443: \$? = $ac_status" >&5
 
14335
   echo "$as_me:14335: \$? = $ac_status" >&5
13444
14336
   if (exit $ac_status) && test -s "$ac_outfile"; then
13445
14337
     # The compiler can only warn and ignore the option if not recognized
13446
 
     # So say no if there are warnings
13447
 
     if test ! -s conftest.err; then
 
14338
     # So say no if there are warnings other than the usual output.
 
14339
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
14340
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14341
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13448
14342
       lt_prog_compiler_pic_works_F77=yes
13449
14343
     fi
13450
14344
   fi
13451
14345
   $rm conftest*
13452
14346
 
13453
14347
fi
13454
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13455
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
14348
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
14349
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13456
14350
 
13457
14351
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13458
14352
    case $lt_prog_compiler_pic_F77 in
13465
14359
fi
13466
14360
 
13467
14361
fi
13468
 
case "$host_os" in
 
14362
case $host_os in
13469
14363
  # For platforms which do not support PIC, -DPIC is meaningless:
13470
14364
  *djgpp*)
13471
14365
    lt_prog_compiler_pic_F77=
13475
14369
    ;;
13476
14370
esac
13477
14371
 
13478
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13479
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
14372
#
 
14373
# Check to make sure the static flag actually works.
 
14374
#
 
14375
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
14376
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14377
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
14378
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
14379
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14380
else
 
14381
  lt_prog_compiler_static_works_F77=no
 
14382
   save_LDFLAGS="$LDFLAGS"
 
14383
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14384
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
14385
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14386
     # The linker can only warn and ignore the option if not recognized
 
14387
     # So say no if there are warnings
 
14388
     if test -s conftest.err; then
 
14389
       # Append any errors to the config.log.
 
14390
       cat conftest.err 1>&5
 
14391
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
14392
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14393
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14394
         lt_prog_compiler_static_works_F77=yes
 
14395
       fi
 
14396
     else
 
14397
       lt_prog_compiler_static_works_F77=yes
 
14398
     fi
 
14399
   fi
 
14400
   $rm conftest*
 
14401
   LDFLAGS="$save_LDFLAGS"
 
14402
 
 
14403
fi
 
14404
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
 
14405
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
 
14406
 
 
14407
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
14408
    :
 
14409
else
 
14410
    lt_prog_compiler_static_F77=
 
14411
fi
 
14412
 
 
14413
 
 
14414
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14415
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13480
14416
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13481
14417
  echo $ECHO_N "(cached) $ECHO_C" >&6
13482
14418
else
13493
14429
   # Note that $ac_compile itself does not contain backslashes and begins
13494
14430
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13495
14431
   lt_compile=`echo "$ac_compile" | $SED \
13496
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
14432
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13497
14433
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13498
14434
   -e 's:$: $lt_compiler_flag:'`
13499
 
   (eval echo "\"\$as_me:13499: $lt_compile\"" >&5)
 
14435
   (eval echo "\"\$as_me:14435: $lt_compile\"" >&5)
13500
14436
   (eval "$lt_compile" 2>out/conftest.err)
13501
14437
   ac_status=$?
13502
14438
   cat out/conftest.err >&5
13503
 
   echo "$as_me:13503: \$? = $ac_status" >&5
 
14439
   echo "$as_me:14439: \$? = $ac_status" >&5
13504
14440
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13505
14441
   then
13506
14442
     # The compiler can only warn and ignore the option if not recognized
13507
14443
     # So say no if there are warnings
13508
 
     if test ! -s out/conftest.err; then
 
14444
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14445
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14446
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13509
14447
       lt_cv_prog_compiler_c_o_F77=yes
13510
14448
     fi
13511
14449
   fi
13512
 
   chmod u+w .
 
14450
   chmod u+w . 2>&5
13513
14451
   $rm conftest*
13514
14452
   # SGI C++ compiler will create directory out/ii_files/ for
13515
14453
   # template instantiation
13520
14458
   $rm conftest*
13521
14459
 
13522
14460
fi
13523
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13524
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
14461
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
14462
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13525
14463
 
13526
14464
 
13527
14465
hard_links="nottested"
13528
14466
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13529
14467
  # do not overwrite the value of need_locks provided by the user
13530
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13531
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
14468
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14469
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13532
14470
  hard_links=yes
13533
14471
  $rm conftest*
13534
14472
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13535
14473
  touch conftest.a
13536
14474
  ln conftest.a conftest.b 2>&5 || hard_links=no
13537
14475
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13538
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
13539
 
echo "${ECHO_T}$hard_links" >&6
 
14476
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
14477
echo "${ECHO_T}$hard_links" >&6; }
13540
14478
  if test "$hard_links" = no; then
13541
14479
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13542
14480
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13546
14484
  need_locks=no
13547
14485
fi
13548
14486
 
13549
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13550
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
14487
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14488
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13551
14489
 
13552
14490
  runpath_var=
13553
14491
  allow_undefined_flag_F77=
13585
14523
  # rely on this symbol name, it's probably fine to never include it in
13586
14524
  # preloaded symbol tables.
13587
14525
  extract_expsyms_cmds=
 
14526
  # Just being paranoid about ensuring that cc_basename is set.
 
14527
  for cc_temp in $compiler""; do
 
14528
  case $cc_temp in
 
14529
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14530
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14531
    \-*) ;;
 
14532
    *) break;;
 
14533
  esac
 
14534
done
 
14535
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13588
14536
 
13589
14537
  case $host_os in
13590
14538
  cygwin* | mingw* | pw32*)
13595
14543
      with_gnu_ld=no
13596
14544
    fi
13597
14545
    ;;
 
14546
  interix*)
 
14547
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
14548
    with_gnu_ld=yes
 
14549
    ;;
13598
14550
  openbsd*)
13599
14551
    with_gnu_ld=no
13600
14552
    ;;
13605
14557
    # If archive_cmds runs LD, not CC, wlarc should be empty
13606
14558
    wlarc='${wl}'
13607
14559
 
 
14560
    # Set some defaults for GNU ld with shared library support. These
 
14561
    # are reset later if shared libraries are not supported. Putting them
 
14562
    # here allows them to be overridden if necessary.
 
14563
    runpath_var=LD_RUN_PATH
 
14564
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
14565
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
14566
    # ancient GNU ld didn't support --whole-archive et. al.
 
14567
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
14568
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14569
      else
 
14570
        whole_archive_flag_spec_F77=
 
14571
    fi
 
14572
    supports_anon_versioning=no
 
14573
    case `$LD -v 2>/dev/null` in
 
14574
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14575
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14576
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14577
      *\ 2.11.*) ;; # other 2.11 versions
 
14578
      *) supports_anon_versioning=yes ;;
 
14579
    esac
 
14580
 
13608
14581
    # See if GNU ld supports shared libraries.
13609
14582
    case $host_os in
13610
14583
    aix3* | aix4* | aix5*)
13655
14628
      allow_undefined_flag_F77=unsupported
13656
14629
      always_export_symbols_F77=no
13657
14630
      enable_shared_with_static_runtimes_F77=yes
13658
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
14631
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13659
14632
 
13660
14633
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13661
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
14634
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13662
14635
        # If the export-symbols file already is a .def file (1st line
13663
14636
        # is EXPORTS), use it as is; otherwise, prepend...
13664
14637
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13667
14640
          echo EXPORTS > $output_objdir/$soname.def;
13668
14641
          cat $export_symbols >> $output_objdir/$soname.def;
13669
14642
        fi~
13670
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13671
 
      else
13672
 
        ld_shlibs=no
13673
 
      fi
13674
 
      ;;
13675
 
 
13676
 
    netbsd*)
 
14643
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14644
      else
 
14645
        ld_shlibs_F77=no
 
14646
      fi
 
14647
      ;;
 
14648
 
 
14649
    interix3*)
 
14650
      hardcode_direct_F77=no
 
14651
      hardcode_shlibpath_var_F77=no
 
14652
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14653
      export_dynamic_flag_spec_F77='${wl}-E'
 
14654
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
14655
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
14656
      # default) and relocated if they conflict, which is a slow very memory
 
14657
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
14658
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
14659
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
14660
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
14661
      archive_expsym_cmds_F77='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'
 
14662
      ;;
 
14663
 
 
14664
    linux* | k*bsd*-gnu)
 
14665
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14666
        tmp_addflag=
 
14667
        case $cc_basename,$host_cpu in
 
14668
        pgcc*)                          # Portland Group C compiler
 
14669
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
14670
          tmp_addflag=' $pic_flag'
 
14671
          ;;
 
14672
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
14673
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
14674
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
14675
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
14676
          tmp_addflag=' -i_dynamic' ;;
 
14677
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
14678
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
14679
        ifc* | ifort*)                  # Intel Fortran compiler
 
14680
          tmp_addflag=' -nofor_main' ;;
 
14681
        esac
 
14682
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14683
 
 
14684
        if test $supports_anon_versioning = yes; then
 
14685
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
14686
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14687
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
14688
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14689
        fi
 
14690
        link_all_deplibs_F77=no
 
14691
      else
 
14692
        ld_shlibs_F77=no
 
14693
      fi
 
14694
      ;;
 
14695
 
 
14696
    netbsd* | netbsdelf*-gnu)
13677
14697
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13678
14698
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13679
14699
        wlarc=
13683
14703
      fi
13684
14704
      ;;
13685
14705
 
13686
 
    solaris* | sysv5*)
 
14706
    solaris*)
13687
14707
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13688
14708
        ld_shlibs_F77=no
13689
14709
        cat <<EOF 1>&2
13704
14724
      fi
13705
14725
      ;;
13706
14726
 
 
14727
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
14728
      case `$LD -v 2>&1` in
 
14729
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
14730
        ld_shlibs_F77=no
 
14731
        cat <<_LT_EOF 1>&2
 
14732
 
 
14733
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
14734
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
14735
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14736
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
14737
*** your PATH or compiler configuration so that the native linker is
 
14738
*** used, and then restart.
 
14739
 
 
14740
_LT_EOF
 
14741
        ;;
 
14742
        *)
 
14743
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14744
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
14745
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
14746
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
14747
          else
 
14748
            ld_shlibs_F77=no
 
14749
          fi
 
14750
        ;;
 
14751
      esac
 
14752
      ;;
 
14753
 
13707
14754
    sunos4*)
13708
14755
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13709
14756
      wlarc=
13711
14758
      hardcode_shlibpath_var_F77=no
13712
14759
      ;;
13713
14760
 
13714
 
  linux*)
13715
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13716
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13717
 
        archive_cmds_F77="$tmp_archive_cmds"
13718
 
      supports_anon_versioning=no
13719
 
      case `$LD -v 2>/dev/null` in
13720
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13721
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13722
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13723
 
        *\ 2.11.*) ;; # other 2.11 versions
13724
 
        *) supports_anon_versioning=yes ;;
13725
 
      esac
13726
 
      if test $supports_anon_versioning = yes; then
13727
 
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13728
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13729
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
13730
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13731
 
      else
13732
 
        archive_expsym_cmds_F77="$tmp_archive_cmds"
13733
 
      fi
13734
 
    else
13735
 
      ld_shlibs_F77=no
13736
 
    fi
13737
 
    ;;
13738
 
 
13739
14761
    *)
13740
14762
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13741
14763
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13746
14768
      ;;
13747
14769
    esac
13748
14770
 
13749
 
    if test "$ld_shlibs_F77" = yes; then
13750
 
      runpath_var=LD_RUN_PATH
13751
 
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13752
 
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13753
 
      # ancient GNU ld didn't support --whole-archive et. al.
13754
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13755
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13756
 
      else
13757
 
        whole_archive_flag_spec_F77=
13758
 
      fi
 
14771
    if test "$ld_shlibs_F77" = no; then
 
14772
      runpath_var=
 
14773
      hardcode_libdir_flag_spec_F77=
 
14774
      export_dynamic_flag_spec_F77=
 
14775
      whole_archive_flag_spec_F77=
13759
14776
    fi
13760
14777
  else
13761
14778
    # PORTME fill in a description of your system's linker (not GNU ld)
13767
14784
      # Note: this linker hardcodes the directories in LIBPATH if there
13768
14785
      # are no directories specified by -L.
13769
14786
      hardcode_minus_L_F77=yes
13770
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
14787
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13771
14788
        # Neither direct hardcoding nor static linking is supported with a
13772
14789
        # broken collect2.
13773
14790
        hardcode_direct_F77=unsupported
13801
14818
            break
13802
14819
          fi
13803
14820
          done
 
14821
          ;;
13804
14822
        esac
13805
14823
 
13806
14824
        exp_sym_flag='-bexport'
13819
14837
      link_all_deplibs_F77=yes
13820
14838
 
13821
14839
      if test "$GCC" = yes; then
13822
 
        case $host_os in aix4.012|aix4.012.*)
 
14840
        case $host_os in aix4.[012]|aix4.[012].*)
13823
14841
        # We only want to do this on AIX 4.2 and lower, the check
13824
14842
        # below for broken collect2 doesn't work under 4.3+
13825
14843
          collect2name=`${CC} -print-prog-name=collect2`
13838
14856
          hardcode_libdir_flag_spec_F77='-L$libdir'
13839
14857
          hardcode_libdir_separator_F77=
13840
14858
          fi
 
14859
          ;;
13841
14860
        esac
13842
14861
        shared_flag='-shared'
 
14862
        if test "$aix_use_runtimelinking" = yes; then
 
14863
          shared_flag="$shared_flag "'${wl}-G'
 
14864
        fi
13843
14865
      else
13844
14866
        # not using gcc
13845
14867
        if test "$host_cpu" = ia64; then
13847
14869
        # chokes on -Wl,-G. The following line is correct:
13848
14870
          shared_flag='-G'
13849
14871
        else
13850
 
        if test "$aix_use_runtimelinking" = yes; then
 
14872
          if test "$aix_use_runtimelinking" = yes; then
13851
14873
            shared_flag='${wl}-G'
13852
14874
          else
13853
14875
            shared_flag='${wl}-bM:SRE'
13854
 
        fi
 
14876
          fi
13855
14877
        fi
13856
14878
      fi
13857
14879
 
13869
14891
      end
13870
14892
_ACEOF
13871
14893
rm -f conftest.$ac_objext conftest$ac_exeext
13872
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13873
 
  (eval $ac_link) 2>conftest.er1
 
14894
if { (ac_try="$ac_link"
 
14895
case "(($ac_try" in
 
14896
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14897
  *) ac_try_echo=$ac_try;;
 
14898
esac
 
14899
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14900
  (eval "$ac_link") 2>conftest.er1
13874
14901
  ac_status=$?
13875
14902
  grep -v '^ *+' conftest.er1 >conftest.err
13876
14903
  rm -f conftest.er1
13877
14904
  cat conftest.err >&5
13878
14905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879
14906
  (exit $ac_status); } &&
13880
 
         { ac_try='test -z "$ac_f77_werror_flag"
13881
 
                         || test ! -s conftest.err'
13882
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883
 
  (eval $ac_try) 2>&5
 
14907
         { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
 
14908
  { (case "(($ac_try" in
 
14909
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14910
  *) ac_try_echo=$ac_try;;
 
14911
esac
 
14912
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14913
  (eval "$ac_try") 2>&5
13884
14914
  ac_status=$?
13885
14915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886
14916
  (exit $ac_status); }; } &&
13887
14917
         { ac_try='test -s conftest$ac_exeext'
13888
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889
 
  (eval $ac_try) 2>&5
 
14918
  { (case "(($ac_try" in
 
14919
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14920
  *) ac_try_echo=$ac_try;;
 
14921
esac
 
14922
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14923
  (eval "$ac_try") 2>&5
13890
14924
  ac_status=$?
13891
14925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892
14926
  (exit $ac_status); }; }; then
13900
14934
  echo "$as_me: failed program was:" >&5
13901
14935
sed 's/^/| /' conftest.$ac_ext >&5
13902
14936
 
 
14937
 
13903
14938
fi
13904
 
rm -f conftest.err conftest.$ac_objext \
 
14939
 
 
14940
rm -f core conftest.err conftest.$ac_objext \
13905
14941
      conftest$ac_exeext conftest.$ac_ext
13906
14942
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13907
14943
 
13908
14944
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13909
 
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
14945
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13910
14946
       else
13911
14947
        if test "$host_cpu" = ia64; then
13912
14948
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13913
14949
          allow_undefined_flag_F77="-z nodefs"
13914
 
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
14950
          archive_expsym_cmds_F77="\$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"
13915
14951
        else
13916
14952
         # Determine the default libpath from the value encoded in an empty executable.
13917
14953
         cat >conftest.$ac_ext <<_ACEOF
13920
14956
      end
13921
14957
_ACEOF
13922
14958
rm -f conftest.$ac_objext conftest$ac_exeext
13923
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13924
 
  (eval $ac_link) 2>conftest.er1
 
14959
if { (ac_try="$ac_link"
 
14960
case "(($ac_try" in
 
14961
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14962
  *) ac_try_echo=$ac_try;;
 
14963
esac
 
14964
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14965
  (eval "$ac_link") 2>conftest.er1
13925
14966
  ac_status=$?
13926
14967
  grep -v '^ *+' conftest.er1 >conftest.err
13927
14968
  rm -f conftest.er1
13928
14969
  cat conftest.err >&5
13929
14970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930
14971
  (exit $ac_status); } &&
13931
 
         { ac_try='test -z "$ac_f77_werror_flag"
13932
 
                         || test ! -s conftest.err'
13933
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13934
 
  (eval $ac_try) 2>&5
 
14972
         { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
 
14973
  { (case "(($ac_try" in
 
14974
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14975
  *) ac_try_echo=$ac_try;;
 
14976
esac
 
14977
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14978
  (eval "$ac_try") 2>&5
13935
14979
  ac_status=$?
13936
14980
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937
14981
  (exit $ac_status); }; } &&
13938
14982
         { ac_try='test -s conftest$ac_exeext'
13939
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13940
 
  (eval $ac_try) 2>&5
 
14983
  { (case "(($ac_try" in
 
14984
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14985
  *) ac_try_echo=$ac_try;;
 
14986
esac
 
14987
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14988
  (eval "$ac_try") 2>&5
13941
14989
  ac_status=$?
13942
14990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943
14991
  (exit $ac_status); }; }; then
13951
14999
  echo "$as_me: failed program was:" >&5
13952
15000
sed 's/^/| /' conftest.$ac_ext >&5
13953
15001
 
 
15002
 
13954
15003
fi
13955
 
rm -f conftest.err conftest.$ac_objext \
 
15004
 
 
15005
rm -f core conftest.err conftest.$ac_objext \
13956
15006
      conftest$ac_exeext conftest.$ac_ext
13957
15007
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13958
15008
 
13961
15011
          # -berok will link without error, but may produce a broken library.
13962
15012
          no_undefined_flag_F77=' ${wl}-bernotok'
13963
15013
          allow_undefined_flag_F77=' ${wl}-berok'
13964
 
          # -bexpall does not export symbols beginning with underscore (_)
13965
 
          always_export_symbols_F77=yes
13966
15014
          # Exported symbols can be pulled into shared objects from archives
13967
 
          whole_archive_flag_spec_F77=' '
 
15015
          whole_archive_flag_spec_F77='$convenience'
13968
15016
          archive_cmds_need_lc_F77=yes
13969
 
          # This is similar to how AIX traditionally builds it's shared libraries.
13970
 
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
15017
          # This is similar to how AIX traditionally builds its shared libraries.
 
15018
          archive_expsym_cmds_F77="\$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'
13971
15019
        fi
13972
15020
      fi
13973
15021
      ;;
13980
15028
      ld_shlibs_F77=no
13981
15029
      ;;
13982
15030
 
13983
 
    bsdi4*)
 
15031
    bsdi[45]*)
13984
15032
      export_dynamic_flag_spec_F77=-rdynamic
13985
15033
      ;;
13986
15034
 
14001
15049
      old_archive_From_new_cmds_F77='true'
14002
15050
      # FIXME: Should let the user specify the lib program.
14003
15051
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14004
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
15052
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14005
15053
      enable_shared_with_static_runtimes_F77=yes
14006
15054
      ;;
14007
15055
 
14008
15056
    darwin* | rhapsody*)
14009
 
    if test "$GXX" = yes ; then
 
15057
      case $host_os in
 
15058
        rhapsody* | darwin1.[012])
 
15059
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
15060
         ;;
 
15061
       *) # Darwin 1.3 on
 
15062
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
15063
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15064
         else
 
15065
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
15066
             10.[012])
 
15067
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15068
               ;;
 
15069
             10.*)
 
15070
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
15071
               ;;
 
15072
           esac
 
15073
         fi
 
15074
         ;;
 
15075
      esac
14010
15076
      archive_cmds_need_lc_F77=no
14011
 
      case "$host_os" in
14012
 
      rhapsody* | darwin1.[012])
14013
 
        allow_undefined_flag_F77='-undefined suppress'
14014
 
        ;;
14015
 
      *) # Darwin 1.3 on
14016
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14017
 
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14018
 
      else
14019
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
14020
 
          10.[012])
14021
 
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14022
 
            ;;
14023
 
          10.*)
14024
 
            allow_undefined_flag_F77='-undefined dynamic_lookup'
14025
 
            ;;
14026
 
        esac
14027
 
      fi
14028
 
        ;;
14029
 
      esac
14030
 
        lt_int_apple_cc_single_mod=no
14031
 
        output_verbose_link_cmd='echo'
14032
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14033
 
          lt_int_apple_cc_single_mod=yes
14034
 
        fi
14035
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14036
 
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14037
 
        else
14038
 
        archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
14039
 
      fi
14040
 
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14041
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14042
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14043
 
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14044
 
        else
14045
 
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14046
 
        fi
14047
 
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14048
15077
      hardcode_direct_F77=no
14049
15078
      hardcode_automatic_F77=yes
14050
15079
      hardcode_shlibpath_var_F77=unsupported
14051
 
      whole_archive_flag_spec_F77='-all_load $convenience'
 
15080
      whole_archive_flag_spec_F77=''
14052
15081
      link_all_deplibs_F77=yes
 
15082
    if test "$GCC" = yes ; then
 
15083
        output_verbose_link_cmd='echo'
 
15084
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
15085
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15086
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
15087
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
15088
      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14053
15089
    else
14054
 
      ld_shlibs_F77=no
 
15090
      case $cc_basename in
 
15091
        xlc*)
 
15092
         output_verbose_link_cmd='echo'
 
15093
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
15094
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15095
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
15096
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
15097
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
15098
          ;;
 
15099
       *)
 
15100
         ld_shlibs_F77=no
 
15101
          ;;
 
15102
      esac
14055
15103
    fi
14056
15104
      ;;
14057
15105
 
14085
15133
      ;;
14086
15134
 
14087
15135
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14088
 
    freebsd* | kfreebsd*-gnu)
 
15136
    freebsd* | dragonfly*)
14089
15137
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14090
15138
      hardcode_libdir_flag_spec_F77='-R$libdir'
14091
15139
      hardcode_direct_F77=yes
14108
15156
      export_dynamic_flag_spec_F77='${wl}-E'
14109
15157
      ;;
14110
15158
 
14111
 
    hpux10* | hpux11*)
14112
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14113
 
        case "$host_cpu" in
14114
 
        hppa*64*|ia64*)
 
15159
    hpux10*)
 
15160
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15161
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15162
      else
 
15163
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15164
      fi
 
15165
      if test "$with_gnu_ld" = no; then
 
15166
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15167
        hardcode_libdir_separator_F77=:
 
15168
 
 
15169
        hardcode_direct_F77=yes
 
15170
        export_dynamic_flag_spec_F77='${wl}-E'
 
15171
 
 
15172
        # hardcode_minus_L: Not really in the search PATH,
 
15173
        # but as the default location of the library.
 
15174
        hardcode_minus_L_F77=yes
 
15175
      fi
 
15176
      ;;
 
15177
 
 
15178
    hpux11*)
 
15179
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15180
        case $host_cpu in
 
15181
        hppa*64*)
14115
15182
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14116
15183
          ;;
 
15184
        ia64*)
 
15185
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15186
          ;;
14117
15187
        *)
14118
15188
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14119
15189
          ;;
14120
15190
        esac
14121
15191
      else
14122
 
        case "$host_cpu" in
14123
 
        hppa*64*|ia64*)
14124
 
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15192
        case $host_cpu in
 
15193
        hppa*64*)
 
15194
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15195
          ;;
 
15196
        ia64*)
 
15197
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14125
15198
          ;;
14126
15199
        *)
14127
 
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15200
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14128
15201
          ;;
14129
15202
        esac
14130
15203
      fi
14131
15204
      if test "$with_gnu_ld" = no; then
14132
 
        case "$host_cpu" in
14133
 
        hppa*64*)
14134
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15205
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15206
        hardcode_libdir_separator_F77=:
 
15207
 
 
15208
        case $host_cpu in
 
15209
        hppa*64*|ia64*)
14135
15210
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14136
 
          hardcode_libdir_separator_F77=:
14137
 
          hardcode_direct_F77=no
14138
 
          hardcode_shlibpath_var_F77=no
14139
 
          ;;
14140
 
        ia64*)
14141
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
14142
 
          hardcode_direct_F77=no
14143
 
          hardcode_shlibpath_var_F77=no
14144
 
 
14145
 
          # hardcode_minus_L: Not really in the search PATH,
14146
 
          # but as the default location of the library.
14147
 
          hardcode_minus_L_F77=yes
 
15211
          hardcode_direct_F77=no
 
15212
          hardcode_shlibpath_var_F77=no
14148
15213
          ;;
14149
15214
        *)
14150
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14151
 
          hardcode_libdir_separator_F77=:
14152
15215
          hardcode_direct_F77=yes
14153
15216
          export_dynamic_flag_spec_F77='${wl}-E'
14154
15217
 
14172
15235
      link_all_deplibs_F77=yes
14173
15236
      ;;
14174
15237
 
14175
 
    netbsd*)
 
15238
    netbsd* | netbsdelf*-gnu)
14176
15239
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14177
15240
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14178
15241
      else
14196
15259
      hardcode_shlibpath_var_F77=no
14197
15260
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14198
15261
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15262
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14199
15263
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14200
15264
        export_dynamic_flag_spec_F77='${wl}-E'
14201
15265
      else
14241
15305
        allow_undefined_flag_F77=' -expect_unresolved \*'
14242
15306
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14243
15307
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14244
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
15308
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14245
15309
 
14246
15310
        # Both c and cxx compiler support -rpath directly
14247
15311
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
14249
15313
      hardcode_libdir_separator_F77=:
14250
15314
      ;;
14251
15315
 
14252
 
    sco3.2v5*)
14253
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14254
 
      hardcode_shlibpath_var_F77=no
14255
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
14256
 
      runpath_var=LD_RUN_PATH
14257
 
      hardcode_runpath_var=yes
14258
 
      ;;
14259
 
 
14260
15316
    solaris*)
14261
15317
      no_undefined_flag_F77=' -z text'
14262
15318
      if test "$GCC" = yes; then
 
15319
        wlarc='${wl}'
14263
15320
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14264
15321
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14265
15322
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14266
15323
      else
 
15324
        wlarc=''
14267
15325
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14268
15326
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14269
15327
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14272
15330
      hardcode_shlibpath_var_F77=no
14273
15331
      case $host_os in
14274
15332
      solaris2.[0-5] | solaris2.[0-5].*) ;;
14275
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14276
 
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
15333
      *)
 
15334
        # The compiler driver will combine linker options so we
 
15335
        # cannot just pass the convience library names through
 
15336
        # without $wl, iff we do not link with $LD.
 
15337
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
15338
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15339
        case $wlarc in
 
15340
        '')
 
15341
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
15342
        *)
 
15343
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
15344
        esac ;;
14277
15345
      esac
14278
15346
      link_all_deplibs_F77=yes
14279
15347
      ;;
14330
15398
      fi
14331
15399
      ;;
14332
15400
 
14333
 
    sysv4.2uw2*)
14334
 
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14335
 
      hardcode_direct_F77=yes
14336
 
      hardcode_minus_L_F77=no
14337
 
      hardcode_shlibpath_var_F77=no
14338
 
      hardcode_runpath_var=yes
14339
 
      runpath_var=LD_RUN_PATH
14340
 
      ;;
14341
 
 
14342
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14343
 
      no_undefined_flag_F77='${wl}-z ${wl}text'
14344
 
      if test "$GCC" = yes; then
14345
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14346
 
      else
14347
 
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14348
 
      fi
14349
 
      runpath_var='LD_RUN_PATH'
14350
 
      hardcode_shlibpath_var_F77=no
14351
 
      ;;
14352
 
 
14353
 
    sysv5*)
14354
 
      no_undefined_flag_F77=' -z text'
14355
 
      # $CC -shared without GNU ld will not create a library from C++
14356
 
      # object files and a static libstdc++, better avoid it by now
14357
 
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14358
 
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14359
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14360
 
      hardcode_libdir_flag_spec_F77=
14361
 
      hardcode_shlibpath_var_F77=no
14362
 
      runpath_var='LD_RUN_PATH'
 
15401
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
15402
      no_undefined_flag_F77='${wl}-z,text'
 
15403
      archive_cmds_need_lc_F77=no
 
15404
      hardcode_shlibpath_var_F77=no
 
15405
      runpath_var='LD_RUN_PATH'
 
15406
 
 
15407
      if test "$GCC" = yes; then
 
15408
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15409
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15410
      else
 
15411
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15412
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15413
      fi
 
15414
      ;;
 
15415
 
 
15416
    sysv5* | sco3.2v5* | sco5v6*)
 
15417
      # Note: We can NOT use -z defs as we might desire, because we do not
 
15418
      # link with -lc, and that would cause any symbols used from libc to
 
15419
      # always be unresolved, which means just about no library would
 
15420
      # ever link correctly.  If we're not using GNU ld we use -z text
 
15421
      # though, which does catch some bad symbols but isn't as heavy-handed
 
15422
      # as -z defs.
 
15423
      no_undefined_flag_F77='${wl}-z,text'
 
15424
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
15425
      archive_cmds_need_lc_F77=no
 
15426
      hardcode_shlibpath_var_F77=no
 
15427
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
15428
      hardcode_libdir_separator_F77=':'
 
15429
      link_all_deplibs_F77=yes
 
15430
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
15431
      runpath_var='LD_RUN_PATH'
 
15432
 
 
15433
      if test "$GCC" = yes; then
 
15434
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15435
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15436
      else
 
15437
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15438
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15439
      fi
14363
15440
      ;;
14364
15441
 
14365
15442
    uts4*)
14374
15451
    esac
14375
15452
  fi
14376
15453
 
14377
 
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14378
 
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
15454
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
15455
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14379
15456
test "$ld_shlibs_F77" = no && can_build_shared=no
14380
15457
 
14381
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14382
 
if test "$GCC" = yes; then
14383
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14384
 
fi
14385
 
 
14386
15458
#
14387
15459
# Do we need to explicitly link libc?
14388
15460
#
14400
15472
      # Test whether the compiler implicitly links with -lc since on some
14401
15473
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14402
15474
      # to ld, don't add -lc before -lgcc.
14403
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14404
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
15475
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
15476
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14405
15477
      $rm conftest*
14406
15478
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14407
15479
 
14415
15487
        libobjs=conftest.$ac_objext
14416
15488
        deplibs=
14417
15489
        wl=$lt_prog_compiler_wl_F77
 
15490
        pic_flag=$lt_prog_compiler_pic_F77
14418
15491
        compiler_flags=-v
14419
15492
        linker_flags=-v
14420
15493
        verstring=
14437
15510
        cat conftest.err 1>&5
14438
15511
      fi
14439
15512
      $rm conftest*
14440
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14441
 
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
15513
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
15514
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14442
15515
      ;;
14443
15516
    esac
14444
15517
  fi
14445
15518
  ;;
14446
15519
esac
14447
15520
 
14448
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14449
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
15521
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
15522
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14450
15523
library_names_spec=
14451
15524
libname_spec='lib$name'
14452
15525
soname_spec=
14547
15620
  shlibpath_var=LIBRARY_PATH
14548
15621
  ;;
14549
15622
 
14550
 
bsdi4*)
 
15623
bsdi[45]*)
14551
15624
  version_type=linux
14552
15625
  need_version=no
14553
15626
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14575
15648
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14576
15649
      dldir=$destdir/`dirname \$dlpath`~
14577
15650
      test -d \$dldir || mkdir -p \$dldir~
14578
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
15651
      $install_prog $dir/$dlname \$dldir/$dlname~
 
15652
      chmod a+x \$dldir/$dlname'
14579
15653
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14580
15654
      dlpath=$dir/\$dldll~
14581
15655
       $rm \$dlpath'
14605
15679
      ;;
14606
15680
    pw32*)
14607
15681
      # pw32 DLLs use 'pw' prefix rather than 'lib'
14608
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
15682
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14609
15683
      ;;
14610
15684
    esac
14611
15685
    ;;
14628
15702
  soname_spec='${libname}${release}${major}$shared_ext'
14629
15703
  shlibpath_overrides_runpath=yes
14630
15704
  shlibpath_var=DYLD_LIBRARY_PATH
14631
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
15705
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14632
15706
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14633
15707
  if test "$GCC" = yes; then
14634
15708
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14651
15725
  dynamic_linker=no
14652
15726
  ;;
14653
15727
 
14654
 
kfreebsd*-gnu)
14655
 
  version_type=linux
14656
 
  need_lib_prefix=no
14657
 
  need_version=no
14658
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14659
 
  soname_spec='${libname}${release}${shared_ext}$major'
14660
 
  shlibpath_var=LD_LIBRARY_PATH
14661
 
  shlibpath_overrides_runpath=no
14662
 
  hardcode_into_libs=yes
14663
 
  dynamic_linker='GNU ld.so'
14664
 
  ;;
14665
 
 
14666
 
freebsd*)
14667
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
15728
freebsd* | dragonfly*)
 
15729
  # DragonFly does not have aout.  When/if they implement a new
 
15730
  # versioning mechanism, adjust this.
 
15731
  if test -x /usr/bin/objformat; then
 
15732
    objformat=`/usr/bin/objformat`
 
15733
  else
 
15734
    case $host_os in
 
15735
    freebsd[123]*) objformat=aout ;;
 
15736
    *) objformat=elf ;;
 
15737
    esac
 
15738
  fi
14668
15739
  version_type=freebsd-$objformat
14669
15740
  case $version_type in
14670
15741
    freebsd-elf*)
14682
15753
  freebsd2*)
14683
15754
    shlibpath_overrides_runpath=yes
14684
15755
    ;;
14685
 
  freebsd3.01* | freebsdelf3.01*)
 
15756
  freebsd3.[01]* | freebsdelf3.[01]*)
14686
15757
    shlibpath_overrides_runpath=yes
14687
15758
    hardcode_into_libs=yes
14688
15759
    ;;
14689
 
  *) # from 3.2 on
 
15760
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
15761
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14690
15762
    shlibpath_overrides_runpath=no
14691
15763
    hardcode_into_libs=yes
14692
15764
    ;;
 
15765
  freebsd*) # from 4.6 on
 
15766
    shlibpath_overrides_runpath=yes
 
15767
    hardcode_into_libs=yes
 
15768
    ;;
14693
15769
  esac
14694
15770
  ;;
14695
15771
 
14709
15785
  version_type=sunos
14710
15786
  need_lib_prefix=no
14711
15787
  need_version=no
14712
 
  case "$host_cpu" in
 
15788
  case $host_cpu in
14713
15789
  ia64*)
14714
15790
    shrext_cmds='.so'
14715
15791
    hardcode_into_libs=yes
14749
15825
  postinstall_cmds='chmod 555 $lib'
14750
15826
  ;;
14751
15827
 
 
15828
interix3*)
 
15829
  version_type=linux
 
15830
  need_lib_prefix=no
 
15831
  need_version=no
 
15832
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15833
  soname_spec='${libname}${release}${shared_ext}$major'
 
15834
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
15835
  shlibpath_var=LD_LIBRARY_PATH
 
15836
  shlibpath_overrides_runpath=no
 
15837
  hardcode_into_libs=yes
 
15838
  ;;
 
15839
 
14752
15840
irix5* | irix6* | nonstopux*)
14753
15841
  case $host_os in
14754
15842
    nonstopux*) version_type=nonstopux ;;
14792
15880
  ;;
14793
15881
 
14794
15882
# This must be Linux ELF.
14795
 
linux*)
 
15883
linux* | k*bsd*-gnu)
14796
15884
  version_type=linux
14797
15885
  need_lib_prefix=no
14798
15886
  need_version=no
14806
15894
  # before this can be enabled.
14807
15895
  hardcode_into_libs=yes
14808
15896
 
14809
 
  # find out which ABI we are using
14810
 
  libsuff=
14811
 
  case "$host_cpu" in
14812
 
  x86_64*|s390x*|powerpc64*)
14813
 
    echo '#line 14813 "configure"' > conftest.$ac_ext
14814
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14815
 
  (eval $ac_compile) 2>&5
14816
 
  ac_status=$?
14817
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818
 
  (exit $ac_status); }; then
14819
 
      case `/usr/bin/file conftest.$ac_objext` in
14820
 
      *64-bit*)
14821
 
        libsuff=64
14822
 
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14823
 
        ;;
14824
 
      esac
14825
 
    fi
14826
 
    rm -rf conftest*
14827
 
    ;;
14828
 
  esac
14829
 
 
14830
15897
  # Append ld.so.conf contents to the search path
14831
15898
  if test -f /etc/ld.so.conf; then
14832
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14833
 
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
15899
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
15900
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14834
15901
  fi
14835
15902
 
14836
15903
  # We used to test for /lib/ld.so.1 and disable shared libraries on
14842
15909
  dynamic_linker='GNU/Linux ld.so'
14843
15910
  ;;
14844
15911
 
14845
 
knetbsd*-gnu)
 
15912
netbsdelf*-gnu)
14846
15913
  version_type=linux
14847
15914
  need_lib_prefix=no
14848
15915
  need_version=no
14851
15918
  shlibpath_var=LD_LIBRARY_PATH
14852
15919
  shlibpath_overrides_runpath=no
14853
15920
  hardcode_into_libs=yes
14854
 
  dynamic_linker='GNU ld.so'
 
15921
  dynamic_linker='NetBSD ld.elf_so'
14855
15922
  ;;
14856
15923
 
14857
15924
netbsd*)
14891
15958
 
14892
15959
openbsd*)
14893
15960
  version_type=sunos
 
15961
  sys_lib_dlsearch_path_spec="/usr/lib"
14894
15962
  need_lib_prefix=no
14895
 
  need_version=yes
 
15963
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
15964
  case $host_os in
 
15965
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
15966
    *)                         need_version=no  ;;
 
15967
  esac
14896
15968
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14897
15969
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14898
15970
  shlibpath_var=LD_LIBRARY_PATH
14930
16002
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14931
16003
  ;;
14932
16004
 
14933
 
sco3.2v5*)
14934
 
  version_type=osf
14935
 
  soname_spec='${libname}${release}${shared_ext}$major'
14936
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937
 
  shlibpath_var=LD_LIBRARY_PATH
14938
 
  ;;
14939
 
 
14940
16005
solaris*)
14941
16006
  version_type=linux
14942
16007
  need_lib_prefix=no
14962
16027
  need_version=yes
14963
16028
  ;;
14964
16029
 
14965
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16030
sysv4 | sysv4.3*)
14966
16031
  version_type=linux
14967
16032
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14968
16033
  soname_spec='${libname}${release}${shared_ext}$major'
14995
16060
  fi
14996
16061
  ;;
14997
16062
 
 
16063
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
16064
  version_type=freebsd-elf
 
16065
  need_lib_prefix=no
 
16066
  need_version=no
 
16067
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16068
  soname_spec='${libname}${release}${shared_ext}$major'
 
16069
  shlibpath_var=LD_LIBRARY_PATH
 
16070
  hardcode_into_libs=yes
 
16071
  if test "$with_gnu_ld" = yes; then
 
16072
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
16073
    shlibpath_overrides_runpath=no
 
16074
  else
 
16075
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
16076
    shlibpath_overrides_runpath=yes
 
16077
    case $host_os in
 
16078
      sco3.2v5*)
 
16079
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
16080
        ;;
 
16081
    esac
 
16082
  fi
 
16083
  sys_lib_dlsearch_path_spec='/usr/lib'
 
16084
  ;;
 
16085
 
14998
16086
uts4*)
14999
16087
  version_type=linux
15000
16088
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15006
16094
  dynamic_linker=no
15007
16095
  ;;
15008
16096
esac
15009
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15010
 
echo "${ECHO_T}$dynamic_linker" >&6
 
16097
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16098
echo "${ECHO_T}$dynamic_linker" >&6; }
15011
16099
test "$dynamic_linker" = no && can_build_shared=no
15012
16100
 
15013
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15014
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
16101
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16102
if test "$GCC" = yes; then
 
16103
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16104
fi
 
16105
 
 
16106
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16107
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15015
16108
hardcode_action_F77=
15016
16109
if test -n "$hardcode_libdir_flag_spec_F77" || \
15017
 
   test -n "$runpath_var F77" || \
15018
 
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
16110
   test -n "$runpath_var_F77" || \
 
16111
   test "X$hardcode_automatic_F77" = "Xyes" ; then
15019
16112
 
15020
16113
  # We can hardcode non-existant directories.
15021
16114
  if test "$hardcode_direct_F77" != no &&
15035
16128
  # directories.
15036
16129
  hardcode_action_F77=unsupported
15037
16130
fi
15038
 
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15039
 
echo "${ECHO_T}$hardcode_action_F77" >&6
 
16131
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
16132
echo "${ECHO_T}$hardcode_action_F77" >&6; }
15040
16133
 
15041
16134
if test "$hardcode_action_F77" = relink; then
15042
16135
  # Fast installation is not supported
15047
16140
  enable_fast_install=needless
15048
16141
fi
15049
16142
 
15050
 
striplib=
15051
 
old_striplib=
15052
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15053
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15054
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15055
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15056
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15057
 
  echo "$as_me:$LINENO: result: yes" >&5
15058
 
echo "${ECHO_T}yes" >&6
15059
 
else
15060
 
# FIXME - insert some real tests, host_os isn't really good enough
15061
 
  case $host_os in
15062
 
   darwin*)
15063
 
       if test -n "$STRIP" ; then
15064
 
         striplib="$STRIP -x"
15065
 
         echo "$as_me:$LINENO: result: yes" >&5
15066
 
echo "${ECHO_T}yes" >&6
15067
 
       else
15068
 
  echo "$as_me:$LINENO: result: no" >&5
15069
 
echo "${ECHO_T}no" >&6
15070
 
fi
15071
 
       ;;
15072
 
   *)
15073
 
  echo "$as_me:$LINENO: result: no" >&5
15074
 
echo "${ECHO_T}no" >&6
15075
 
    ;;
15076
 
  esac
15077
 
fi
15078
 
 
15079
 
 
15080
16143
 
15081
16144
# The else clause should only fire when bootstrapping the
15082
16145
# libtool distribution, otherwise you forgot to ship ltmain.sh
15091
16154
  # Now quote all the things that may contain metacharacters while being
15092
16155
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15093
16156
  # variables and quote the copies for generation of the libtool script.
15094
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
16157
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15095
16158
    SED SHELL STRIP \
15096
16159
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15097
16160
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15192
16255
# The host system.
15193
16256
host_alias=$host_alias
15194
16257
host=$host
 
16258
host_os=$host_os
 
16259
 
 
16260
# The build system.
 
16261
build_alias=$build_alias
 
16262
build=$build
 
16263
build_os=$build_os
15195
16264
 
15196
16265
# An echo program that does not interpret backslashes.
15197
16266
echo=$lt_echo
15203
16272
# A C compiler.
15204
16273
LTCC=$lt_LTCC
15205
16274
 
 
16275
# LTCC compiler flags.
 
16276
LTCFLAGS=$lt_LTCFLAGS
 
16277
 
15206
16278
# A language-specific compiler.
15207
16279
CC=$lt_compiler_F77
15208
16280
 
15268
16340
# Does compiler simultaneously support -c and -o options?
15269
16341
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15270
16342
 
15271
 
# Must we lock files when doing compilation ?
 
16343
# Must we lock files when doing compilation?
15272
16344
need_locks=$lt_need_locks
15273
16345
 
15274
16346
# Do we need the lib prefix for modules?
15494
16566
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15495
16567
 
15496
16568
 
15497
 
 
15498
16569
# Source file extension for Java test sources.
15499
16570
ac_ext=java
15500
16571
 
15506
16577
lt_simple_compile_test_code="class foo {}\n"
15507
16578
 
15508
16579
# Code to be used in simple link tests
15509
 
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
16580
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15510
16581
 
15511
16582
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15512
16583
 
15513
16584
# If no C compiler was specified, use CC.
15514
16585
LTCC=${LTCC-"$CC"}
15515
16586
 
 
16587
# If no C compiler flags were specified, use CFLAGS.
 
16588
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
16589
 
15516
16590
# Allow CC to be a program name with arguments.
15517
16591
compiler=$CC
15518
16592
 
15519
16593
 
 
16594
# save warnings/boilerplate of simple test code
 
16595
ac_outfile=conftest.$ac_objext
 
16596
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
16597
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16598
_lt_compiler_boilerplate=`cat conftest.err`
 
16599
$rm conftest*
 
16600
 
 
16601
ac_outfile=conftest.$ac_objext
 
16602
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
16603
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16604
_lt_linker_boilerplate=`cat conftest.err`
 
16605
$rm conftest*
 
16606
 
 
16607
 
15520
16608
# Allow CC to be a program name with arguments.
15521
16609
lt_save_CC="$CC"
15522
16610
CC=${GCJ-"gcj"}
15523
16611
compiler=$CC
15524
16612
compiler_GCJ=$CC
 
16613
for cc_temp in $compiler""; do
 
16614
  case $cc_temp in
 
16615
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16616
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16617
    \-*) ;;
 
16618
    *) break;;
 
16619
  esac
 
16620
done
 
16621
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16622
 
15525
16623
 
15526
16624
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15527
16625
archive_cmds_need_lc_GCJ=no
15528
16626
 
 
16627
old_archive_cmds_GCJ=$old_archive_cmds
 
16628
 
15529
16629
 
15530
16630
lt_prog_compiler_no_builtin_flag_GCJ=
15531
16631
 
15533
16633
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15534
16634
 
15535
16635
 
15536
 
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15537
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
16636
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
16637
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15538
16638
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15539
16639
  echo $ECHO_N "(cached) $ECHO_C" >&6
15540
16640
else
15548
16648
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15549
16649
   # The option is referenced via a variable to avoid confusing sed.
15550
16650
   lt_compile=`echo "$ac_compile" | $SED \
15551
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16651
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15552
16652
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15553
16653
   -e 's:$: $lt_compiler_flag:'`
15554
 
   (eval echo "\"\$as_me:15554: $lt_compile\"" >&5)
 
16654
   (eval echo "\"\$as_me:16654: $lt_compile\"" >&5)
15555
16655
   (eval "$lt_compile" 2>conftest.err)
15556
16656
   ac_status=$?
15557
16657
   cat conftest.err >&5
15558
 
   echo "$as_me:15558: \$? = $ac_status" >&5
 
16658
   echo "$as_me:16658: \$? = $ac_status" >&5
15559
16659
   if (exit $ac_status) && test -s "$ac_outfile"; then
15560
16660
     # The compiler can only warn and ignore the option if not recognized
15561
 
     # So say no if there are warnings
15562
 
     if test ! -s conftest.err; then
 
16661
     # So say no if there are warnings other than the usual output.
 
16662
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16663
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16664
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15563
16665
       lt_cv_prog_compiler_rtti_exceptions=yes
15564
16666
     fi
15565
16667
   fi
15566
16668
   $rm conftest*
15567
16669
 
15568
16670
fi
15569
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15570
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
16671
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
16672
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15571
16673
 
15572
16674
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15573
16675
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15581
16683
lt_prog_compiler_pic_GCJ=
15582
16684
lt_prog_compiler_static_GCJ=
15583
16685
 
15584
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15585
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
16686
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
16687
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15586
16688
 
15587
16689
  if test "$GCC" = yes; then
15588
16690
    lt_prog_compiler_wl_GCJ='-Wl,'
15620
16722
      lt_prog_compiler_pic_GCJ='-fno-common'
15621
16723
      ;;
15622
16724
 
 
16725
    interix3*)
 
16726
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
16727
      # Instead, we relocate shared libraries at runtime.
 
16728
      ;;
 
16729
 
15623
16730
    msdosdjgpp*)
15624
16731
      # Just because we use GCC doesn't mean we suddenly get shared libraries
15625
16732
      # on systems that don't support them.
15636
16743
    hpux*)
15637
16744
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15638
16745
      # not for PA HP-UX.
15639
 
      case "$host_cpu" in
 
16746
      case $host_cpu in
15640
16747
      hppa*64*|ia64*)
15641
16748
        # +Z the default
15642
16749
        ;;
15662
16769
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15663
16770
      fi
15664
16771
      ;;
 
16772
      darwin*)
 
16773
        # PIC is the default on this platform
 
16774
        # Common symbols not allowed in MH_DYLIB files
 
16775
       case $cc_basename in
 
16776
         xlc*)
 
16777
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
16778
         lt_prog_compiler_wl_GCJ='-Wl,'
 
16779
         ;;
 
16780
       esac
 
16781
       ;;
15665
16782
 
15666
16783
    mingw* | pw32* | os2*)
15667
16784
      # This hack is so that the source file can tell whether it is being
15673
16790
      lt_prog_compiler_wl_GCJ='-Wl,'
15674
16791
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15675
16792
      # not for PA HP-UX.
15676
 
      case "$host_cpu" in
 
16793
      case $host_cpu in
15677
16794
      hppa*64*|ia64*)
15678
16795
        # +Z the default
15679
16796
        ;;
15696
16813
      lt_prog_compiler_static_GCJ='-Bstatic'
15697
16814
      ;;
15698
16815
 
15699
 
    linux*)
15700
 
      case $CC in
 
16816
    linux* | k*bsd*-gnu)
 
16817
      case $cc_basename in
15701
16818
      icc* | ecc*)
15702
16819
        lt_prog_compiler_wl_GCJ='-Wl,'
15703
16820
        lt_prog_compiler_pic_GCJ='-KPIC'
15704
16821
        lt_prog_compiler_static_GCJ='-static'
15705
16822
        ;;
 
16823
      pgcc* | pgf77* | pgf90* | pgf95*)
 
16824
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
16825
        # which looks to be a dead project)
 
16826
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16827
        lt_prog_compiler_pic_GCJ='-fpic'
 
16828
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16829
        ;;
15706
16830
      ccc*)
15707
16831
        lt_prog_compiler_wl_GCJ='-Wl,'
15708
16832
        # All Alpha code is PIC.
15717
16841
      lt_prog_compiler_static_GCJ='-non_shared'
15718
16842
      ;;
15719
16843
 
15720
 
    sco3.2v5*)
15721
 
      lt_prog_compiler_pic_GCJ='-Kpic'
15722
 
      lt_prog_compiler_static_GCJ='-dn'
15723
 
      ;;
15724
 
 
15725
16844
    solaris*)
15726
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15727
16845
      lt_prog_compiler_pic_GCJ='-KPIC'
15728
16846
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16847
      case $cc_basename in
 
16848
      f77* | f90* | f95*)
 
16849
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
16850
      *)
 
16851
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
16852
      esac
15729
16853
      ;;
15730
16854
 
15731
16855
    sunos4*)
15734
16858
      lt_prog_compiler_static_GCJ='-Bstatic'
15735
16859
      ;;
15736
16860
 
15737
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16861
    sysv4 | sysv4.2uw2* | sysv4.3*)
15738
16862
      lt_prog_compiler_wl_GCJ='-Wl,'
15739
16863
      lt_prog_compiler_pic_GCJ='-KPIC'
15740
16864
      lt_prog_compiler_static_GCJ='-Bstatic'
15747
16871
      fi
15748
16872
      ;;
15749
16873
 
 
16874
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
16875
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16876
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16877
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16878
      ;;
 
16879
 
 
16880
    unicos*)
 
16881
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16882
      lt_prog_compiler_can_build_shared_GCJ=no
 
16883
      ;;
 
16884
 
15750
16885
    uts4*)
15751
16886
      lt_prog_compiler_pic_GCJ='-pic'
15752
16887
      lt_prog_compiler_static_GCJ='-Bstatic'
15758
16893
    esac
15759
16894
  fi
15760
16895
 
15761
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15762
 
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
16896
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
16897
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
15763
16898
 
15764
16899
#
15765
16900
# Check to make sure the PIC flag actually works.
15766
16901
#
15767
16902
if test -n "$lt_prog_compiler_pic_GCJ"; then
15768
16903
 
15769
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15770
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
16904
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
16905
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
15771
16906
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15772
16907
  echo $ECHO_N "(cached) $ECHO_C" >&6
15773
16908
else
15781
16916
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15782
16917
   # The option is referenced via a variable to avoid confusing sed.
15783
16918
   lt_compile=`echo "$ac_compile" | $SED \
15784
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16919
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15785
16920
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15786
16921
   -e 's:$: $lt_compiler_flag:'`
15787
 
   (eval echo "\"\$as_me:15787: $lt_compile\"" >&5)
 
16922
   (eval echo "\"\$as_me:16922: $lt_compile\"" >&5)
15788
16923
   (eval "$lt_compile" 2>conftest.err)
15789
16924
   ac_status=$?
15790
16925
   cat conftest.err >&5
15791
 
   echo "$as_me:15791: \$? = $ac_status" >&5
 
16926
   echo "$as_me:16926: \$? = $ac_status" >&5
15792
16927
   if (exit $ac_status) && test -s "$ac_outfile"; then
15793
16928
     # The compiler can only warn and ignore the option if not recognized
15794
 
     # So say no if there are warnings
15795
 
     if test ! -s conftest.err; then
 
16929
     # So say no if there are warnings other than the usual output.
 
16930
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16931
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16932
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15796
16933
       lt_prog_compiler_pic_works_GCJ=yes
15797
16934
     fi
15798
16935
   fi
15799
16936
   $rm conftest*
15800
16937
 
15801
16938
fi
15802
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15803
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
16939
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
16940
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
15804
16941
 
15805
16942
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15806
16943
    case $lt_prog_compiler_pic_GCJ in
15813
16950
fi
15814
16951
 
15815
16952
fi
15816
 
case "$host_os" in
 
16953
case $host_os in
15817
16954
  # For platforms which do not support PIC, -DPIC is meaningless:
15818
16955
  *djgpp*)
15819
16956
    lt_prog_compiler_pic_GCJ=
15823
16960
    ;;
15824
16961
esac
15825
16962
 
15826
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15827
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
16963
#
 
16964
# Check to make sure the static flag actually works.
 
16965
#
 
16966
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
16967
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
16968
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
16969
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
16970
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16971
else
 
16972
  lt_prog_compiler_static_works_GCJ=no
 
16973
   save_LDFLAGS="$LDFLAGS"
 
16974
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
16975
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
16976
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
16977
     # The linker can only warn and ignore the option if not recognized
 
16978
     # So say no if there are warnings
 
16979
     if test -s conftest.err; then
 
16980
       # Append any errors to the config.log.
 
16981
       cat conftest.err 1>&5
 
16982
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
16983
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16984
       if diff conftest.exp conftest.er2 >/dev/null; then
 
16985
         lt_prog_compiler_static_works_GCJ=yes
 
16986
       fi
 
16987
     else
 
16988
       lt_prog_compiler_static_works_GCJ=yes
 
16989
     fi
 
16990
   fi
 
16991
   $rm conftest*
 
16992
   LDFLAGS="$save_LDFLAGS"
 
16993
 
 
16994
fi
 
16995
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
 
16996
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
 
16997
 
 
16998
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
16999
    :
 
17000
else
 
17001
    lt_prog_compiler_static_GCJ=
 
17002
fi
 
17003
 
 
17004
 
 
17005
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
17006
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15828
17007
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15829
17008
  echo $ECHO_N "(cached) $ECHO_C" >&6
15830
17009
else
15841
17020
   # Note that $ac_compile itself does not contain backslashes and begins
15842
17021
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15843
17022
   lt_compile=`echo "$ac_compile" | $SED \
15844
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
17023
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15845
17024
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15846
17025
   -e 's:$: $lt_compiler_flag:'`
15847
 
   (eval echo "\"\$as_me:15847: $lt_compile\"" >&5)
 
17026
   (eval echo "\"\$as_me:17026: $lt_compile\"" >&5)
15848
17027
   (eval "$lt_compile" 2>out/conftest.err)
15849
17028
   ac_status=$?
15850
17029
   cat out/conftest.err >&5
15851
 
   echo "$as_me:15851: \$? = $ac_status" >&5
 
17030
   echo "$as_me:17030: \$? = $ac_status" >&5
15852
17031
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15853
17032
   then
15854
17033
     # The compiler can only warn and ignore the option if not recognized
15855
17034
     # So say no if there are warnings
15856
 
     if test ! -s out/conftest.err; then
 
17035
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
17036
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
17037
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15857
17038
       lt_cv_prog_compiler_c_o_GCJ=yes
15858
17039
     fi
15859
17040
   fi
15860
 
   chmod u+w .
 
17041
   chmod u+w . 2>&5
15861
17042
   $rm conftest*
15862
17043
   # SGI C++ compiler will create directory out/ii_files/ for
15863
17044
   # template instantiation
15868
17049
   $rm conftest*
15869
17050
 
15870
17051
fi
15871
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15872
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
17052
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
17053
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
15873
17054
 
15874
17055
 
15875
17056
hard_links="nottested"
15876
17057
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15877
17058
  # do not overwrite the value of need_locks provided by the user
15878
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15879
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
17059
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
17060
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15880
17061
  hard_links=yes
15881
17062
  $rm conftest*
15882
17063
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15883
17064
  touch conftest.a
15884
17065
  ln conftest.a conftest.b 2>&5 || hard_links=no
15885
17066
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15886
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
15887
 
echo "${ECHO_T}$hard_links" >&6
 
17067
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
17068
echo "${ECHO_T}$hard_links" >&6; }
15888
17069
  if test "$hard_links" = no; then
15889
17070
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15890
17071
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15894
17075
  need_locks=no
15895
17076
fi
15896
17077
 
15897
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15898
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
17078
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
17079
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15899
17080
 
15900
17081
  runpath_var=
15901
17082
  allow_undefined_flag_GCJ=
15933
17114
  # rely on this symbol name, it's probably fine to never include it in
15934
17115
  # preloaded symbol tables.
15935
17116
  extract_expsyms_cmds=
 
17117
  # Just being paranoid about ensuring that cc_basename is set.
 
17118
  for cc_temp in $compiler""; do
 
17119
  case $cc_temp in
 
17120
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17121
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17122
    \-*) ;;
 
17123
    *) break;;
 
17124
  esac
 
17125
done
 
17126
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15936
17127
 
15937
17128
  case $host_os in
15938
17129
  cygwin* | mingw* | pw32*)
15943
17134
      with_gnu_ld=no
15944
17135
    fi
15945
17136
    ;;
 
17137
  interix*)
 
17138
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
17139
    with_gnu_ld=yes
 
17140
    ;;
15946
17141
  openbsd*)
15947
17142
    with_gnu_ld=no
15948
17143
    ;;
15953
17148
    # If archive_cmds runs LD, not CC, wlarc should be empty
15954
17149
    wlarc='${wl}'
15955
17150
 
 
17151
    # Set some defaults for GNU ld with shared library support. These
 
17152
    # are reset later if shared libraries are not supported. Putting them
 
17153
    # here allows them to be overridden if necessary.
 
17154
    runpath_var=LD_RUN_PATH
 
17155
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
17156
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
17157
    # ancient GNU ld didn't support --whole-archive et. al.
 
17158
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
17159
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
17160
      else
 
17161
        whole_archive_flag_spec_GCJ=
 
17162
    fi
 
17163
    supports_anon_versioning=no
 
17164
    case `$LD -v 2>/dev/null` in
 
17165
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
17166
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
17167
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
17168
      *\ 2.11.*) ;; # other 2.11 versions
 
17169
      *) supports_anon_versioning=yes ;;
 
17170
    esac
 
17171
 
15956
17172
    # See if GNU ld supports shared libraries.
15957
17173
    case $host_os in
15958
17174
    aix3* | aix4* | aix5*)
16003
17219
      allow_undefined_flag_GCJ=unsupported
16004
17220
      always_export_symbols_GCJ=no
16005
17221
      enable_shared_with_static_runtimes_GCJ=yes
16006
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
17222
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16007
17223
 
16008
17224
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16009
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
17225
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16010
17226
        # If the export-symbols file already is a .def file (1st line
16011
17227
        # is EXPORTS), use it as is; otherwise, prepend...
16012
17228
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16015
17231
          echo EXPORTS > $output_objdir/$soname.def;
16016
17232
          cat $export_symbols >> $output_objdir/$soname.def;
16017
17233
        fi~
16018
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16019
 
      else
16020
 
        ld_shlibs=no
16021
 
      fi
16022
 
      ;;
16023
 
 
16024
 
    netbsd*)
 
17234
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17235
      else
 
17236
        ld_shlibs_GCJ=no
 
17237
      fi
 
17238
      ;;
 
17239
 
 
17240
    interix3*)
 
17241
      hardcode_direct_GCJ=no
 
17242
      hardcode_shlibpath_var_GCJ=no
 
17243
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17244
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17245
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
17246
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
17247
      # default) and relocated if they conflict, which is a slow very memory
 
17248
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
17249
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
17250
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
17251
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
17252
      archive_expsym_cmds_GCJ='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'
 
17253
      ;;
 
17254
 
 
17255
    linux* | k*bsd*-gnu)
 
17256
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17257
        tmp_addflag=
 
17258
        case $cc_basename,$host_cpu in
 
17259
        pgcc*)                          # Portland Group C compiler
 
17260
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
17261
          tmp_addflag=' $pic_flag'
 
17262
          ;;
 
17263
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
17264
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
17265
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
17266
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
17267
          tmp_addflag=' -i_dynamic' ;;
 
17268
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
17269
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
17270
        ifc* | ifort*)                  # Intel Fortran compiler
 
17271
          tmp_addflag=' -nofor_main' ;;
 
17272
        esac
 
17273
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17274
 
 
17275
        if test $supports_anon_versioning = yes; then
 
17276
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
17277
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
17278
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
17279
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17280
        fi
 
17281
        link_all_deplibs_GCJ=no
 
17282
      else
 
17283
        ld_shlibs_GCJ=no
 
17284
      fi
 
17285
      ;;
 
17286
 
 
17287
    netbsd* | netbsdelf*-gnu)
16025
17288
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16026
17289
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16027
17290
        wlarc=
16031
17294
      fi
16032
17295
      ;;
16033
17296
 
16034
 
    solaris* | sysv5*)
 
17297
    solaris*)
16035
17298
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16036
17299
        ld_shlibs_GCJ=no
16037
17300
        cat <<EOF 1>&2
16052
17315
      fi
16053
17316
      ;;
16054
17317
 
 
17318
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
17319
      case `$LD -v 2>&1` in
 
17320
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
17321
        ld_shlibs_GCJ=no
 
17322
        cat <<_LT_EOF 1>&2
 
17323
 
 
17324
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
17325
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
17326
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17327
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
17328
*** your PATH or compiler configuration so that the native linker is
 
17329
*** used, and then restart.
 
17330
 
 
17331
_LT_EOF
 
17332
        ;;
 
17333
        *)
 
17334
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17335
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
17336
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
17337
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
17338
          else
 
17339
            ld_shlibs_GCJ=no
 
17340
          fi
 
17341
        ;;
 
17342
      esac
 
17343
      ;;
 
17344
 
16055
17345
    sunos4*)
16056
17346
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16057
17347
      wlarc=
16059
17349
      hardcode_shlibpath_var_GCJ=no
16060
17350
      ;;
16061
17351
 
16062
 
  linux*)
16063
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16064
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16065
 
        archive_cmds_GCJ="$tmp_archive_cmds"
16066
 
      supports_anon_versioning=no
16067
 
      case `$LD -v 2>/dev/null` in
16068
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16069
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16070
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16071
 
        *\ 2.11.*) ;; # other 2.11 versions
16072
 
        *) supports_anon_versioning=yes ;;
16073
 
      esac
16074
 
      if test $supports_anon_versioning = yes; then
16075
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16076
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16077
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
16078
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16079
 
      else
16080
 
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16081
 
      fi
16082
 
    else
16083
 
      ld_shlibs_GCJ=no
16084
 
    fi
16085
 
    ;;
16086
 
 
16087
17352
    *)
16088
17353
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16089
17354
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16094
17359
      ;;
16095
17360
    esac
16096
17361
 
16097
 
    if test "$ld_shlibs_GCJ" = yes; then
16098
 
      runpath_var=LD_RUN_PATH
16099
 
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16100
 
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16101
 
      # ancient GNU ld didn't support --whole-archive et. al.
16102
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16103
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16104
 
      else
16105
 
        whole_archive_flag_spec_GCJ=
16106
 
      fi
 
17362
    if test "$ld_shlibs_GCJ" = no; then
 
17363
      runpath_var=
 
17364
      hardcode_libdir_flag_spec_GCJ=
 
17365
      export_dynamic_flag_spec_GCJ=
 
17366
      whole_archive_flag_spec_GCJ=
16107
17367
    fi
16108
17368
  else
16109
17369
    # PORTME fill in a description of your system's linker (not GNU ld)
16115
17375
      # Note: this linker hardcodes the directories in LIBPATH if there
16116
17376
      # are no directories specified by -L.
16117
17377
      hardcode_minus_L_GCJ=yes
16118
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
17378
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16119
17379
        # Neither direct hardcoding nor static linking is supported with a
16120
17380
        # broken collect2.
16121
17381
        hardcode_direct_GCJ=unsupported
16149
17409
            break
16150
17410
          fi
16151
17411
          done
 
17412
          ;;
16152
17413
        esac
16153
17414
 
16154
17415
        exp_sym_flag='-bexport'
16167
17428
      link_all_deplibs_GCJ=yes
16168
17429
 
16169
17430
      if test "$GCC" = yes; then
16170
 
        case $host_os in aix4.012|aix4.012.*)
 
17431
        case $host_os in aix4.[012]|aix4.[012].*)
16171
17432
        # We only want to do this on AIX 4.2 and lower, the check
16172
17433
        # below for broken collect2 doesn't work under 4.3+
16173
17434
          collect2name=`${CC} -print-prog-name=collect2`
16186
17447
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16187
17448
          hardcode_libdir_separator_GCJ=
16188
17449
          fi
 
17450
          ;;
16189
17451
        esac
16190
17452
        shared_flag='-shared'
 
17453
        if test "$aix_use_runtimelinking" = yes; then
 
17454
          shared_flag="$shared_flag "'${wl}-G'
 
17455
        fi
16191
17456
      else
16192
17457
        # not using gcc
16193
17458
        if test "$host_cpu" = ia64; then
16195
17460
        # chokes on -Wl,-G. The following line is correct:
16196
17461
          shared_flag='-G'
16197
17462
        else
16198
 
        if test "$aix_use_runtimelinking" = yes; then
 
17463
          if test "$aix_use_runtimelinking" = yes; then
16199
17464
            shared_flag='${wl}-G'
16200
17465
          else
16201
17466
            shared_flag='${wl}-bM:SRE'
16202
 
        fi
 
17467
          fi
16203
17468
        fi
16204
17469
      fi
16205
17470
 
16227
17492
}
16228
17493
_ACEOF
16229
17494
rm -f conftest.$ac_objext conftest$ac_exeext
16230
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16231
 
  (eval $ac_link) 2>conftest.er1
 
17495
if { (ac_try="$ac_link"
 
17496
case "(($ac_try" in
 
17497
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17498
  *) ac_try_echo=$ac_try;;
 
17499
esac
 
17500
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17501
  (eval "$ac_link") 2>conftest.er1
16232
17502
  ac_status=$?
16233
17503
  grep -v '^ *+' conftest.er1 >conftest.err
16234
17504
  rm -f conftest.er1
16235
17505
  cat conftest.err >&5
16236
17506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237
17507
  (exit $ac_status); } &&
16238
 
         { ac_try='test -z "$ac_c_werror_flag"
16239
 
                         || test ! -s conftest.err'
16240
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241
 
  (eval $ac_try) 2>&5
 
17508
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
17509
  { (case "(($ac_try" in
 
17510
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17511
  *) ac_try_echo=$ac_try;;
 
17512
esac
 
17513
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17514
  (eval "$ac_try") 2>&5
16242
17515
  ac_status=$?
16243
17516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244
17517
  (exit $ac_status); }; } &&
16245
17518
         { ac_try='test -s conftest$ac_exeext'
16246
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16247
 
  (eval $ac_try) 2>&5
 
17519
  { (case "(($ac_try" in
 
17520
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17521
  *) ac_try_echo=$ac_try;;
 
17522
esac
 
17523
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17524
  (eval "$ac_try") 2>&5
16248
17525
  ac_status=$?
16249
17526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250
17527
  (exit $ac_status); }; }; then
16258
17535
  echo "$as_me: failed program was:" >&5
16259
17536
sed 's/^/| /' conftest.$ac_ext >&5
16260
17537
 
 
17538
 
16261
17539
fi
16262
 
rm -f conftest.err conftest.$ac_objext \
 
17540
 
 
17541
rm -f core conftest.err conftest.$ac_objext \
16263
17542
      conftest$ac_exeext conftest.$ac_ext
16264
17543
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16265
17544
 
16266
17545
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16267
 
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
17546
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16268
17547
       else
16269
17548
        if test "$host_cpu" = ia64; then
16270
17549
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16271
17550
          allow_undefined_flag_GCJ="-z nodefs"
16272
 
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
17551
          archive_expsym_cmds_GCJ="\$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"
16273
17552
        else
16274
17553
         # Determine the default libpath from the value encoded in an empty executable.
16275
17554
         cat >conftest.$ac_ext <<_ACEOF
16288
17567
}
16289
17568
_ACEOF
16290
17569
rm -f conftest.$ac_objext conftest$ac_exeext
16291
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16292
 
  (eval $ac_link) 2>conftest.er1
 
17570
if { (ac_try="$ac_link"
 
17571
case "(($ac_try" in
 
17572
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17573
  *) ac_try_echo=$ac_try;;
 
17574
esac
 
17575
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17576
  (eval "$ac_link") 2>conftest.er1
16293
17577
  ac_status=$?
16294
17578
  grep -v '^ *+' conftest.er1 >conftest.err
16295
17579
  rm -f conftest.er1
16296
17580
  cat conftest.err >&5
16297
17581
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298
17582
  (exit $ac_status); } &&
16299
 
         { ac_try='test -z "$ac_c_werror_flag"
16300
 
                         || test ! -s conftest.err'
16301
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16302
 
  (eval $ac_try) 2>&5
 
17583
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
17584
  { (case "(($ac_try" in
 
17585
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17586
  *) ac_try_echo=$ac_try;;
 
17587
esac
 
17588
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17589
  (eval "$ac_try") 2>&5
16303
17590
  ac_status=$?
16304
17591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305
17592
  (exit $ac_status); }; } &&
16306
17593
         { ac_try='test -s conftest$ac_exeext'
16307
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16308
 
  (eval $ac_try) 2>&5
 
17594
  { (case "(($ac_try" in
 
17595
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17596
  *) ac_try_echo=$ac_try;;
 
17597
esac
 
17598
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17599
  (eval "$ac_try") 2>&5
16309
17600
  ac_status=$?
16310
17601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311
17602
  (exit $ac_status); }; }; then
16319
17610
  echo "$as_me: failed program was:" >&5
16320
17611
sed 's/^/| /' conftest.$ac_ext >&5
16321
17612
 
 
17613
 
16322
17614
fi
16323
 
rm -f conftest.err conftest.$ac_objext \
 
17615
 
 
17616
rm -f core conftest.err conftest.$ac_objext \
16324
17617
      conftest$ac_exeext conftest.$ac_ext
16325
17618
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16326
17619
 
16329
17622
          # -berok will link without error, but may produce a broken library.
16330
17623
          no_undefined_flag_GCJ=' ${wl}-bernotok'
16331
17624
          allow_undefined_flag_GCJ=' ${wl}-berok'
16332
 
          # -bexpall does not export symbols beginning with underscore (_)
16333
 
          always_export_symbols_GCJ=yes
16334
17625
          # Exported symbols can be pulled into shared objects from archives
16335
 
          whole_archive_flag_spec_GCJ=' '
 
17626
          whole_archive_flag_spec_GCJ='$convenience'
16336
17627
          archive_cmds_need_lc_GCJ=yes
16337
 
          # This is similar to how AIX traditionally builds it's shared libraries.
16338
 
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
17628
          # This is similar to how AIX traditionally builds its shared libraries.
 
17629
          archive_expsym_cmds_GCJ="\$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'
16339
17630
        fi
16340
17631
      fi
16341
17632
      ;;
16348
17639
      ld_shlibs_GCJ=no
16349
17640
      ;;
16350
17641
 
16351
 
    bsdi4*)
 
17642
    bsdi[45]*)
16352
17643
      export_dynamic_flag_spec_GCJ=-rdynamic
16353
17644
      ;;
16354
17645
 
16369
17660
      old_archive_From_new_cmds_GCJ='true'
16370
17661
      # FIXME: Should let the user specify the lib program.
16371
17662
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16372
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
17663
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16373
17664
      enable_shared_with_static_runtimes_GCJ=yes
16374
17665
      ;;
16375
17666
 
16376
17667
    darwin* | rhapsody*)
16377
 
    if test "$GXX" = yes ; then
 
17668
      case $host_os in
 
17669
        rhapsody* | darwin1.[012])
 
17670
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
17671
         ;;
 
17672
       *) # Darwin 1.3 on
 
17673
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
17674
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17675
         else
 
17676
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
17677
             10.[012])
 
17678
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17679
               ;;
 
17680
             10.*)
 
17681
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
17682
               ;;
 
17683
           esac
 
17684
         fi
 
17685
         ;;
 
17686
      esac
16378
17687
      archive_cmds_need_lc_GCJ=no
16379
 
      case "$host_os" in
16380
 
      rhapsody* | darwin1.[012])
16381
 
        allow_undefined_flag_GCJ='-undefined suppress'
16382
 
        ;;
16383
 
      *) # Darwin 1.3 on
16384
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16385
 
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16386
 
      else
16387
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
16388
 
          10.[012])
16389
 
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16390
 
            ;;
16391
 
          10.*)
16392
 
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16393
 
            ;;
16394
 
        esac
16395
 
      fi
16396
 
        ;;
16397
 
      esac
16398
 
        lt_int_apple_cc_single_mod=no
16399
 
        output_verbose_link_cmd='echo'
16400
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16401
 
          lt_int_apple_cc_single_mod=yes
16402
 
        fi
16403
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16404
 
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16405
 
        else
16406
 
        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
16407
 
      fi
16408
 
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16409
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16410
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16411
 
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16412
 
        else
16413
 
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16414
 
        fi
16415
 
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16416
17688
      hardcode_direct_GCJ=no
16417
17689
      hardcode_automatic_GCJ=yes
16418
17690
      hardcode_shlibpath_var_GCJ=unsupported
16419
 
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
17691
      whole_archive_flag_spec_GCJ=''
16420
17692
      link_all_deplibs_GCJ=yes
 
17693
    if test "$GCC" = yes ; then
 
17694
        output_verbose_link_cmd='echo'
 
17695
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
17696
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17697
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
17698
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17699
      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16421
17700
    else
16422
 
      ld_shlibs_GCJ=no
 
17701
      case $cc_basename in
 
17702
        xlc*)
 
17703
         output_verbose_link_cmd='echo'
 
17704
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
17705
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17706
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
17707
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17708
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17709
          ;;
 
17710
       *)
 
17711
         ld_shlibs_GCJ=no
 
17712
          ;;
 
17713
      esac
16423
17714
    fi
16424
17715
      ;;
16425
17716
 
16453
17744
      ;;
16454
17745
 
16455
17746
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16456
 
    freebsd* | kfreebsd*-gnu)
 
17747
    freebsd* | dragonfly*)
16457
17748
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16458
17749
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16459
17750
      hardcode_direct_GCJ=yes
16476
17767
      export_dynamic_flag_spec_GCJ='${wl}-E'
16477
17768
      ;;
16478
17769
 
16479
 
    hpux10* | hpux11*)
16480
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16481
 
        case "$host_cpu" in
16482
 
        hppa*64*|ia64*)
 
17770
    hpux10*)
 
17771
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17772
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17773
      else
 
17774
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17775
      fi
 
17776
      if test "$with_gnu_ld" = no; then
 
17777
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17778
        hardcode_libdir_separator_GCJ=:
 
17779
 
 
17780
        hardcode_direct_GCJ=yes
 
17781
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17782
 
 
17783
        # hardcode_minus_L: Not really in the search PATH,
 
17784
        # but as the default location of the library.
 
17785
        hardcode_minus_L_GCJ=yes
 
17786
      fi
 
17787
      ;;
 
17788
 
 
17789
    hpux11*)
 
17790
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17791
        case $host_cpu in
 
17792
        hppa*64*)
16483
17793
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16484
17794
          ;;
 
17795
        ia64*)
 
17796
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
17797
          ;;
16485
17798
        *)
16486
17799
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16487
17800
          ;;
16488
17801
        esac
16489
17802
      else
16490
 
        case "$host_cpu" in
16491
 
        hppa*64*|ia64*)
16492
 
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17803
        case $host_cpu in
 
17804
        hppa*64*)
 
17805
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17806
          ;;
 
17807
        ia64*)
 
17808
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16493
17809
          ;;
16494
17810
        *)
16495
 
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17811
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16496
17812
          ;;
16497
17813
        esac
16498
17814
      fi
16499
17815
      if test "$with_gnu_ld" = no; then
16500
 
        case "$host_cpu" in
16501
 
        hppa*64*)
16502
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17816
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17817
        hardcode_libdir_separator_GCJ=:
 
17818
 
 
17819
        case $host_cpu in
 
17820
        hppa*64*|ia64*)
16503
17821
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16504
 
          hardcode_libdir_separator_GCJ=:
16505
 
          hardcode_direct_GCJ=no
16506
 
          hardcode_shlibpath_var_GCJ=no
16507
 
          ;;
16508
 
        ia64*)
16509
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16510
 
          hardcode_direct_GCJ=no
16511
 
          hardcode_shlibpath_var_GCJ=no
16512
 
 
16513
 
          # hardcode_minus_L: Not really in the search PATH,
16514
 
          # but as the default location of the library.
16515
 
          hardcode_minus_L_GCJ=yes
 
17822
          hardcode_direct_GCJ=no
 
17823
          hardcode_shlibpath_var_GCJ=no
16516
17824
          ;;
16517
17825
        *)
16518
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16519
 
          hardcode_libdir_separator_GCJ=:
16520
17826
          hardcode_direct_GCJ=yes
16521
17827
          export_dynamic_flag_spec_GCJ='${wl}-E'
16522
17828
 
16540
17846
      link_all_deplibs_GCJ=yes
16541
17847
      ;;
16542
17848
 
16543
 
    netbsd*)
 
17849
    netbsd* | netbsdelf*-gnu)
16544
17850
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16545
17851
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16546
17852
      else
16564
17870
      hardcode_shlibpath_var_GCJ=no
16565
17871
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16566
17872
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17873
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16567
17874
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16568
17875
        export_dynamic_flag_spec_GCJ='${wl}-E'
16569
17876
      else
16609
17916
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16610
17917
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16611
17918
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16612
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
17919
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16613
17920
 
16614
17921
        # Both c and cxx compiler support -rpath directly
16615
17922
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16617
17924
      hardcode_libdir_separator_GCJ=:
16618
17925
      ;;
16619
17926
 
16620
 
    sco3.2v5*)
16621
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16622
 
      hardcode_shlibpath_var_GCJ=no
16623
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16624
 
      runpath_var=LD_RUN_PATH
16625
 
      hardcode_runpath_var=yes
16626
 
      ;;
16627
 
 
16628
17927
    solaris*)
16629
17928
      no_undefined_flag_GCJ=' -z text'
16630
17929
      if test "$GCC" = yes; then
 
17930
        wlarc='${wl}'
16631
17931
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16632
17932
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16633
17933
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16634
17934
      else
 
17935
        wlarc=''
16635
17936
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16636
17937
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16637
17938
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16640
17941
      hardcode_shlibpath_var_GCJ=no
16641
17942
      case $host_os in
16642
17943
      solaris2.[0-5] | solaris2.[0-5].*) ;;
16643
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16644
 
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
17944
      *)
 
17945
        # The compiler driver will combine linker options so we
 
17946
        # cannot just pass the convience library names through
 
17947
        # without $wl, iff we do not link with $LD.
 
17948
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
17949
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
17950
        case $wlarc in
 
17951
        '')
 
17952
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
17953
        *)
 
17954
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
17955
        esac ;;
16645
17956
      esac
16646
17957
      link_all_deplibs_GCJ=yes
16647
17958
      ;;
16698
18009
      fi
16699
18010
      ;;
16700
18011
 
16701
 
    sysv4.2uw2*)
16702
 
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16703
 
      hardcode_direct_GCJ=yes
16704
 
      hardcode_minus_L_GCJ=no
16705
 
      hardcode_shlibpath_var_GCJ=no
16706
 
      hardcode_runpath_var=yes
16707
 
      runpath_var=LD_RUN_PATH
16708
 
      ;;
16709
 
 
16710
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16711
 
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
16712
 
      if test "$GCC" = yes; then
16713
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16714
 
      else
16715
 
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16716
 
      fi
16717
 
      runpath_var='LD_RUN_PATH'
16718
 
      hardcode_shlibpath_var_GCJ=no
16719
 
      ;;
16720
 
 
16721
 
    sysv5*)
16722
 
      no_undefined_flag_GCJ=' -z text'
16723
 
      # $CC -shared without GNU ld will not create a library from C++
16724
 
      # object files and a static libstdc++, better avoid it by now
16725
 
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16726
 
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16727
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16728
 
      hardcode_libdir_flag_spec_GCJ=
16729
 
      hardcode_shlibpath_var_GCJ=no
16730
 
      runpath_var='LD_RUN_PATH'
 
18012
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
18013
      no_undefined_flag_GCJ='${wl}-z,text'
 
18014
      archive_cmds_need_lc_GCJ=no
 
18015
      hardcode_shlibpath_var_GCJ=no
 
18016
      runpath_var='LD_RUN_PATH'
 
18017
 
 
18018
      if test "$GCC" = yes; then
 
18019
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18020
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18021
      else
 
18022
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18023
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18024
      fi
 
18025
      ;;
 
18026
 
 
18027
    sysv5* | sco3.2v5* | sco5v6*)
 
18028
      # Note: We can NOT use -z defs as we might desire, because we do not
 
18029
      # link with -lc, and that would cause any symbols used from libc to
 
18030
      # always be unresolved, which means just about no library would
 
18031
      # ever link correctly.  If we're not using GNU ld we use -z text
 
18032
      # though, which does catch some bad symbols but isn't as heavy-handed
 
18033
      # as -z defs.
 
18034
      no_undefined_flag_GCJ='${wl}-z,text'
 
18035
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
18036
      archive_cmds_need_lc_GCJ=no
 
18037
      hardcode_shlibpath_var_GCJ=no
 
18038
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
18039
      hardcode_libdir_separator_GCJ=':'
 
18040
      link_all_deplibs_GCJ=yes
 
18041
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
18042
      runpath_var='LD_RUN_PATH'
 
18043
 
 
18044
      if test "$GCC" = yes; then
 
18045
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18046
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18047
      else
 
18048
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18049
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18050
      fi
16731
18051
      ;;
16732
18052
 
16733
18053
    uts4*)
16742
18062
    esac
16743
18063
  fi
16744
18064
 
16745
 
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16746
 
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
18065
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
18066
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
16747
18067
test "$ld_shlibs_GCJ" = no && can_build_shared=no
16748
18068
 
16749
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16750
 
if test "$GCC" = yes; then
16751
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16752
 
fi
16753
 
 
16754
18069
#
16755
18070
# Do we need to explicitly link libc?
16756
18071
#
16768
18083
      # Test whether the compiler implicitly links with -lc since on some
16769
18084
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16770
18085
      # to ld, don't add -lc before -lgcc.
16771
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16772
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
18086
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
18087
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16773
18088
      $rm conftest*
16774
18089
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16775
18090
 
16783
18098
        libobjs=conftest.$ac_objext
16784
18099
        deplibs=
16785
18100
        wl=$lt_prog_compiler_wl_GCJ
 
18101
        pic_flag=$lt_prog_compiler_pic_GCJ
16786
18102
        compiler_flags=-v
16787
18103
        linker_flags=-v
16788
18104
        verstring=
16805
18121
        cat conftest.err 1>&5
16806
18122
      fi
16807
18123
      $rm conftest*
16808
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16809
 
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
18124
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
18125
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
16810
18126
      ;;
16811
18127
    esac
16812
18128
  fi
16813
18129
  ;;
16814
18130
esac
16815
18131
 
16816
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16817
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
18132
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
18133
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16818
18134
library_names_spec=
16819
18135
libname_spec='lib$name'
16820
18136
soname_spec=
16915
18231
  shlibpath_var=LIBRARY_PATH
16916
18232
  ;;
16917
18233
 
16918
 
bsdi4*)
 
18234
bsdi[45]*)
16919
18235
  version_type=linux
16920
18236
  need_version=no
16921
18237
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16943
18259
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16944
18260
      dldir=$destdir/`dirname \$dlpath`~
16945
18261
      test -d \$dldir || mkdir -p \$dldir~
16946
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
18262
      $install_prog $dir/$dlname \$dldir/$dlname~
 
18263
      chmod a+x \$dldir/$dlname'
16947
18264
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16948
18265
      dlpath=$dir/\$dldll~
16949
18266
       $rm \$dlpath'
16973
18290
      ;;
16974
18291
    pw32*)
16975
18292
      # pw32 DLLs use 'pw' prefix rather than 'lib'
16976
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
18293
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16977
18294
      ;;
16978
18295
    esac
16979
18296
    ;;
16996
18313
  soname_spec='${libname}${release}${major}$shared_ext'
16997
18314
  shlibpath_overrides_runpath=yes
16998
18315
  shlibpath_var=DYLD_LIBRARY_PATH
16999
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
18316
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17000
18317
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17001
18318
  if test "$GCC" = yes; then
17002
18319
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17019
18336
  dynamic_linker=no
17020
18337
  ;;
17021
18338
 
17022
 
kfreebsd*-gnu)
17023
 
  version_type=linux
17024
 
  need_lib_prefix=no
17025
 
  need_version=no
17026
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17027
 
  soname_spec='${libname}${release}${shared_ext}$major'
17028
 
  shlibpath_var=LD_LIBRARY_PATH
17029
 
  shlibpath_overrides_runpath=no
17030
 
  hardcode_into_libs=yes
17031
 
  dynamic_linker='GNU ld.so'
17032
 
  ;;
17033
 
 
17034
 
freebsd*)
17035
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
18339
freebsd* | dragonfly*)
 
18340
  # DragonFly does not have aout.  When/if they implement a new
 
18341
  # versioning mechanism, adjust this.
 
18342
  if test -x /usr/bin/objformat; then
 
18343
    objformat=`/usr/bin/objformat`
 
18344
  else
 
18345
    case $host_os in
 
18346
    freebsd[123]*) objformat=aout ;;
 
18347
    *) objformat=elf ;;
 
18348
    esac
 
18349
  fi
17036
18350
  version_type=freebsd-$objformat
17037
18351
  case $version_type in
17038
18352
    freebsd-elf*)
17050
18364
  freebsd2*)
17051
18365
    shlibpath_overrides_runpath=yes
17052
18366
    ;;
17053
 
  freebsd3.01* | freebsdelf3.01*)
 
18367
  freebsd3.[01]* | freebsdelf3.[01]*)
17054
18368
    shlibpath_overrides_runpath=yes
17055
18369
    hardcode_into_libs=yes
17056
18370
    ;;
17057
 
  *) # from 3.2 on
 
18371
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
18372
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17058
18373
    shlibpath_overrides_runpath=no
17059
18374
    hardcode_into_libs=yes
17060
18375
    ;;
 
18376
  freebsd*) # from 4.6 on
 
18377
    shlibpath_overrides_runpath=yes
 
18378
    hardcode_into_libs=yes
 
18379
    ;;
17061
18380
  esac
17062
18381
  ;;
17063
18382
 
17077
18396
  version_type=sunos
17078
18397
  need_lib_prefix=no
17079
18398
  need_version=no
17080
 
  case "$host_cpu" in
 
18399
  case $host_cpu in
17081
18400
  ia64*)
17082
18401
    shrext_cmds='.so'
17083
18402
    hardcode_into_libs=yes
17117
18436
  postinstall_cmds='chmod 555 $lib'
17118
18437
  ;;
17119
18438
 
 
18439
interix3*)
 
18440
  version_type=linux
 
18441
  need_lib_prefix=no
 
18442
  need_version=no
 
18443
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18444
  soname_spec='${libname}${release}${shared_ext}$major'
 
18445
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
18446
  shlibpath_var=LD_LIBRARY_PATH
 
18447
  shlibpath_overrides_runpath=no
 
18448
  hardcode_into_libs=yes
 
18449
  ;;
 
18450
 
17120
18451
irix5* | irix6* | nonstopux*)
17121
18452
  case $host_os in
17122
18453
    nonstopux*) version_type=nonstopux ;;
17160
18491
  ;;
17161
18492
 
17162
18493
# This must be Linux ELF.
17163
 
linux*)
 
18494
linux* | k*bsd*-gnu)
17164
18495
  version_type=linux
17165
18496
  need_lib_prefix=no
17166
18497
  need_version=no
17174
18505
  # before this can be enabled.
17175
18506
  hardcode_into_libs=yes
17176
18507
 
17177
 
  # find out which ABI we are using
17178
 
  libsuff=
17179
 
  case "$host_cpu" in
17180
 
  x86_64*|s390x*|powerpc64*)
17181
 
    echo '#line 17181 "configure"' > conftest.$ac_ext
17182
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17183
 
  (eval $ac_compile) 2>&5
17184
 
  ac_status=$?
17185
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186
 
  (exit $ac_status); }; then
17187
 
      case `/usr/bin/file conftest.$ac_objext` in
17188
 
      *64-bit*)
17189
 
        libsuff=64
17190
 
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17191
 
        ;;
17192
 
      esac
17193
 
    fi
17194
 
    rm -rf conftest*
17195
 
    ;;
17196
 
  esac
17197
 
 
17198
18508
  # Append ld.so.conf contents to the search path
17199
18509
  if test -f /etc/ld.so.conf; then
17200
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17201
 
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
18510
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
18511
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17202
18512
  fi
17203
18513
 
17204
18514
  # We used to test for /lib/ld.so.1 and disable shared libraries on
17210
18520
  dynamic_linker='GNU/Linux ld.so'
17211
18521
  ;;
17212
18522
 
17213
 
knetbsd*-gnu)
 
18523
netbsdelf*-gnu)
17214
18524
  version_type=linux
17215
18525
  need_lib_prefix=no
17216
18526
  need_version=no
17219
18529
  shlibpath_var=LD_LIBRARY_PATH
17220
18530
  shlibpath_overrides_runpath=no
17221
18531
  hardcode_into_libs=yes
17222
 
  dynamic_linker='GNU ld.so'
 
18532
  dynamic_linker='NetBSD ld.elf_so'
17223
18533
  ;;
17224
18534
 
17225
18535
netbsd*)
17259
18569
 
17260
18570
openbsd*)
17261
18571
  version_type=sunos
 
18572
  sys_lib_dlsearch_path_spec="/usr/lib"
17262
18573
  need_lib_prefix=no
17263
 
  need_version=yes
 
18574
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
18575
  case $host_os in
 
18576
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
18577
    *)                         need_version=no  ;;
 
18578
  esac
17264
18579
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17265
18580
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17266
18581
  shlibpath_var=LD_LIBRARY_PATH
17298
18613
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17299
18614
  ;;
17300
18615
 
17301
 
sco3.2v5*)
17302
 
  version_type=osf
17303
 
  soname_spec='${libname}${release}${shared_ext}$major'
17304
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17305
 
  shlibpath_var=LD_LIBRARY_PATH
17306
 
  ;;
17307
 
 
17308
18616
solaris*)
17309
18617
  version_type=linux
17310
18618
  need_lib_prefix=no
17330
18638
  need_version=yes
17331
18639
  ;;
17332
18640
 
17333
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
18641
sysv4 | sysv4.3*)
17334
18642
  version_type=linux
17335
18643
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17336
18644
  soname_spec='${libname}${release}${shared_ext}$major'
17363
18671
  fi
17364
18672
  ;;
17365
18673
 
 
18674
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
18675
  version_type=freebsd-elf
 
18676
  need_lib_prefix=no
 
18677
  need_version=no
 
18678
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18679
  soname_spec='${libname}${release}${shared_ext}$major'
 
18680
  shlibpath_var=LD_LIBRARY_PATH
 
18681
  hardcode_into_libs=yes
 
18682
  if test "$with_gnu_ld" = yes; then
 
18683
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
18684
    shlibpath_overrides_runpath=no
 
18685
  else
 
18686
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
18687
    shlibpath_overrides_runpath=yes
 
18688
    case $host_os in
 
18689
      sco3.2v5*)
 
18690
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
18691
        ;;
 
18692
    esac
 
18693
  fi
 
18694
  sys_lib_dlsearch_path_spec='/usr/lib'
 
18695
  ;;
 
18696
 
17366
18697
uts4*)
17367
18698
  version_type=linux
17368
18699
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17374
18705
  dynamic_linker=no
17375
18706
  ;;
17376
18707
esac
17377
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17378
 
echo "${ECHO_T}$dynamic_linker" >&6
 
18708
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
18709
echo "${ECHO_T}$dynamic_linker" >&6; }
17379
18710
test "$dynamic_linker" = no && can_build_shared=no
17380
18711
 
17381
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17382
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
18712
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
18713
if test "$GCC" = yes; then
 
18714
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
18715
fi
 
18716
 
 
18717
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
18718
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17383
18719
hardcode_action_GCJ=
17384
18720
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17385
 
   test -n "$runpath_var GCJ" || \
17386
 
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
18721
   test -n "$runpath_var_GCJ" || \
 
18722
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17387
18723
 
17388
18724
  # We can hardcode non-existant directories.
17389
18725
  if test "$hardcode_direct_GCJ" != no &&
17403
18739
  # directories.
17404
18740
  hardcode_action_GCJ=unsupported
17405
18741
fi
17406
 
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17407
 
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
18742
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
18743
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17408
18744
 
17409
18745
if test "$hardcode_action_GCJ" = relink; then
17410
18746
  # Fast installation is not supported
17415
18751
  enable_fast_install=needless
17416
18752
fi
17417
18753
 
17418
 
striplib=
17419
 
old_striplib=
17420
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17421
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17422
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17423
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17424
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17425
 
  echo "$as_me:$LINENO: result: yes" >&5
17426
 
echo "${ECHO_T}yes" >&6
17427
 
else
17428
 
# FIXME - insert some real tests, host_os isn't really good enough
17429
 
  case $host_os in
17430
 
   darwin*)
17431
 
       if test -n "$STRIP" ; then
17432
 
         striplib="$STRIP -x"
17433
 
         echo "$as_me:$LINENO: result: yes" >&5
17434
 
echo "${ECHO_T}yes" >&6
17435
 
       else
17436
 
  echo "$as_me:$LINENO: result: no" >&5
17437
 
echo "${ECHO_T}no" >&6
17438
 
fi
17439
 
       ;;
17440
 
   *)
17441
 
  echo "$as_me:$LINENO: result: no" >&5
17442
 
echo "${ECHO_T}no" >&6
17443
 
    ;;
17444
 
  esac
17445
 
fi
17446
 
 
17447
 
if test "x$enable_dlopen" != xyes; then
17448
 
  enable_dlopen=unknown
17449
 
  enable_dlopen_self=unknown
17450
 
  enable_dlopen_self_static=unknown
17451
 
else
17452
 
  lt_cv_dlopen=no
17453
 
  lt_cv_dlopen_libs=
17454
 
 
17455
 
  case $host_os in
17456
 
  beos*)
17457
 
    lt_cv_dlopen="load_add_on"
17458
 
    lt_cv_dlopen_libs=
17459
 
    lt_cv_dlopen_self=yes
17460
 
    ;;
17461
 
 
17462
 
  mingw* | pw32*)
17463
 
    lt_cv_dlopen="LoadLibrary"
17464
 
    lt_cv_dlopen_libs=
17465
 
   ;;
17466
 
 
17467
 
  cygwin*)
17468
 
    lt_cv_dlopen="dlopen"
17469
 
    lt_cv_dlopen_libs=
17470
 
   ;;
17471
 
 
17472
 
  darwin*)
17473
 
  # if libdl is installed we need to link against it
17474
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17475
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17476
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17477
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17478
 
else
17479
 
  ac_check_lib_save_LIBS=$LIBS
17480
 
LIBS="-ldl  $LIBS"
17481
 
cat >conftest.$ac_ext <<_ACEOF
17482
 
/* confdefs.h.  */
17483
 
_ACEOF
17484
 
cat confdefs.h >>conftest.$ac_ext
17485
 
cat >>conftest.$ac_ext <<_ACEOF
17486
 
/* end confdefs.h.  */
17487
 
 
17488
 
/* Override any gcc2 internal prototype to avoid an error.  */
17489
 
#ifdef __cplusplus
17490
 
extern "C"
17491
 
#endif
17492
 
/* We use char because int might match the return type of a gcc2
17493
 
   builtin and then its argument prototype would still apply.  */
17494
 
char dlopen ();
17495
 
int
17496
 
main ()
17497
 
{
17498
 
dlopen ();
17499
 
  ;
17500
 
  return 0;
17501
 
}
17502
 
_ACEOF
17503
 
rm -f conftest.$ac_objext conftest$ac_exeext
17504
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17505
 
  (eval $ac_link) 2>conftest.er1
17506
 
  ac_status=$?
17507
 
  grep -v '^ *+' conftest.er1 >conftest.err
17508
 
  rm -f conftest.er1
17509
 
  cat conftest.err >&5
17510
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511
 
  (exit $ac_status); } &&
17512
 
         { ac_try='test -z "$ac_c_werror_flag"
17513
 
                         || test ! -s conftest.err'
17514
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17515
 
  (eval $ac_try) 2>&5
17516
 
  ac_status=$?
17517
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518
 
  (exit $ac_status); }; } &&
17519
 
         { ac_try='test -s conftest$ac_exeext'
17520
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17521
 
  (eval $ac_try) 2>&5
17522
 
  ac_status=$?
17523
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524
 
  (exit $ac_status); }; }; then
17525
 
  ac_cv_lib_dl_dlopen=yes
17526
 
else
17527
 
  echo "$as_me: failed program was:" >&5
17528
 
sed 's/^/| /' conftest.$ac_ext >&5
17529
 
 
17530
 
ac_cv_lib_dl_dlopen=no
17531
 
fi
17532
 
rm -f conftest.err conftest.$ac_objext \
17533
 
      conftest$ac_exeext conftest.$ac_ext
17534
 
LIBS=$ac_check_lib_save_LIBS
17535
 
fi
17536
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17537
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17538
 
if test $ac_cv_lib_dl_dlopen = yes; then
17539
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17540
 
else
17541
 
 
17542
 
    lt_cv_dlopen="dyld"
17543
 
    lt_cv_dlopen_libs=
17544
 
    lt_cv_dlopen_self=yes
17545
 
 
17546
 
fi
17547
 
 
17548
 
   ;;
17549
 
 
17550
 
  *)
17551
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
17552
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17553
 
if test "${ac_cv_func_shl_load+set}" = set; then
17554
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17555
 
else
17556
 
  cat >conftest.$ac_ext <<_ACEOF
17557
 
/* confdefs.h.  */
17558
 
_ACEOF
17559
 
cat confdefs.h >>conftest.$ac_ext
17560
 
cat >>conftest.$ac_ext <<_ACEOF
17561
 
/* end confdefs.h.  */
17562
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17563
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17564
 
#define shl_load innocuous_shl_load
17565
 
 
17566
 
/* System header to define __stub macros and hopefully few prototypes,
17567
 
    which can conflict with char shl_load (); below.
17568
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17569
 
    <limits.h> exists even on freestanding compilers.  */
17570
 
 
17571
 
#ifdef __STDC__
17572
 
# include <limits.h>
17573
 
#else
17574
 
# include <assert.h>
17575
 
#endif
17576
 
 
17577
 
#undef shl_load
17578
 
 
17579
 
/* Override any gcc2 internal prototype to avoid an error.  */
17580
 
#ifdef __cplusplus
17581
 
extern "C"
17582
 
{
17583
 
#endif
17584
 
/* We use char because int might match the return type of a gcc2
17585
 
   builtin and then its argument prototype would still apply.  */
17586
 
char shl_load ();
17587
 
/* The GNU C library defines this for functions which it implements
17588
 
    to always fail with ENOSYS.  Some functions are actually named
17589
 
    something starting with __ and the normal name is an alias.  */
17590
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17591
 
choke me
17592
 
#else
17593
 
char (*f) () = shl_load;
17594
 
#endif
17595
 
#ifdef __cplusplus
17596
 
}
17597
 
#endif
17598
 
 
17599
 
int
17600
 
main ()
17601
 
{
17602
 
return f != shl_load;
17603
 
  ;
17604
 
  return 0;
17605
 
}
17606
 
_ACEOF
17607
 
rm -f conftest.$ac_objext conftest$ac_exeext
17608
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17609
 
  (eval $ac_link) 2>conftest.er1
17610
 
  ac_status=$?
17611
 
  grep -v '^ *+' conftest.er1 >conftest.err
17612
 
  rm -f conftest.er1
17613
 
  cat conftest.err >&5
17614
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615
 
  (exit $ac_status); } &&
17616
 
         { ac_try='test -z "$ac_c_werror_flag"
17617
 
                         || test ! -s conftest.err'
17618
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17619
 
  (eval $ac_try) 2>&5
17620
 
  ac_status=$?
17621
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622
 
  (exit $ac_status); }; } &&
17623
 
         { ac_try='test -s conftest$ac_exeext'
17624
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17625
 
  (eval $ac_try) 2>&5
17626
 
  ac_status=$?
17627
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628
 
  (exit $ac_status); }; }; then
17629
 
  ac_cv_func_shl_load=yes
17630
 
else
17631
 
  echo "$as_me: failed program was:" >&5
17632
 
sed 's/^/| /' conftest.$ac_ext >&5
17633
 
 
17634
 
ac_cv_func_shl_load=no
17635
 
fi
17636
 
rm -f conftest.err conftest.$ac_objext \
17637
 
      conftest$ac_exeext conftest.$ac_ext
17638
 
fi
17639
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17640
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17641
 
if test $ac_cv_func_shl_load = yes; then
17642
 
  lt_cv_dlopen="shl_load"
17643
 
else
17644
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17645
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17646
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17647
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17648
 
else
17649
 
  ac_check_lib_save_LIBS=$LIBS
17650
 
LIBS="-ldld  $LIBS"
17651
 
cat >conftest.$ac_ext <<_ACEOF
17652
 
/* confdefs.h.  */
17653
 
_ACEOF
17654
 
cat confdefs.h >>conftest.$ac_ext
17655
 
cat >>conftest.$ac_ext <<_ACEOF
17656
 
/* end confdefs.h.  */
17657
 
 
17658
 
/* Override any gcc2 internal prototype to avoid an error.  */
17659
 
#ifdef __cplusplus
17660
 
extern "C"
17661
 
#endif
17662
 
/* We use char because int might match the return type of a gcc2
17663
 
   builtin and then its argument prototype would still apply.  */
17664
 
char shl_load ();
17665
 
int
17666
 
main ()
17667
 
{
17668
 
shl_load ();
17669
 
  ;
17670
 
  return 0;
17671
 
}
17672
 
_ACEOF
17673
 
rm -f conftest.$ac_objext conftest$ac_exeext
17674
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17675
 
  (eval $ac_link) 2>conftest.er1
17676
 
  ac_status=$?
17677
 
  grep -v '^ *+' conftest.er1 >conftest.err
17678
 
  rm -f conftest.er1
17679
 
  cat conftest.err >&5
17680
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681
 
  (exit $ac_status); } &&
17682
 
         { ac_try='test -z "$ac_c_werror_flag"
17683
 
                         || test ! -s conftest.err'
17684
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17685
 
  (eval $ac_try) 2>&5
17686
 
  ac_status=$?
17687
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688
 
  (exit $ac_status); }; } &&
17689
 
         { ac_try='test -s conftest$ac_exeext'
17690
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17691
 
  (eval $ac_try) 2>&5
17692
 
  ac_status=$?
17693
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694
 
  (exit $ac_status); }; }; then
17695
 
  ac_cv_lib_dld_shl_load=yes
17696
 
else
17697
 
  echo "$as_me: failed program was:" >&5
17698
 
sed 's/^/| /' conftest.$ac_ext >&5
17699
 
 
17700
 
ac_cv_lib_dld_shl_load=no
17701
 
fi
17702
 
rm -f conftest.err conftest.$ac_objext \
17703
 
      conftest$ac_exeext conftest.$ac_ext
17704
 
LIBS=$ac_check_lib_save_LIBS
17705
 
fi
17706
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17707
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17708
 
if test $ac_cv_lib_dld_shl_load = yes; then
17709
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17710
 
else
17711
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
17712
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17713
 
if test "${ac_cv_func_dlopen+set}" = set; then
17714
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17715
 
else
17716
 
  cat >conftest.$ac_ext <<_ACEOF
17717
 
/* confdefs.h.  */
17718
 
_ACEOF
17719
 
cat confdefs.h >>conftest.$ac_ext
17720
 
cat >>conftest.$ac_ext <<_ACEOF
17721
 
/* end confdefs.h.  */
17722
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17723
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17724
 
#define dlopen innocuous_dlopen
17725
 
 
17726
 
/* System header to define __stub macros and hopefully few prototypes,
17727
 
    which can conflict with char dlopen (); below.
17728
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17729
 
    <limits.h> exists even on freestanding compilers.  */
17730
 
 
17731
 
#ifdef __STDC__
17732
 
# include <limits.h>
17733
 
#else
17734
 
# include <assert.h>
17735
 
#endif
17736
 
 
17737
 
#undef dlopen
17738
 
 
17739
 
/* Override any gcc2 internal prototype to avoid an error.  */
17740
 
#ifdef __cplusplus
17741
 
extern "C"
17742
 
{
17743
 
#endif
17744
 
/* We use char because int might match the return type of a gcc2
17745
 
   builtin and then its argument prototype would still apply.  */
17746
 
char dlopen ();
17747
 
/* The GNU C library defines this for functions which it implements
17748
 
    to always fail with ENOSYS.  Some functions are actually named
17749
 
    something starting with __ and the normal name is an alias.  */
17750
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
17751
 
choke me
17752
 
#else
17753
 
char (*f) () = dlopen;
17754
 
#endif
17755
 
#ifdef __cplusplus
17756
 
}
17757
 
#endif
17758
 
 
17759
 
int
17760
 
main ()
17761
 
{
17762
 
return f != dlopen;
17763
 
  ;
17764
 
  return 0;
17765
 
}
17766
 
_ACEOF
17767
 
rm -f conftest.$ac_objext conftest$ac_exeext
17768
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17769
 
  (eval $ac_link) 2>conftest.er1
17770
 
  ac_status=$?
17771
 
  grep -v '^ *+' conftest.er1 >conftest.err
17772
 
  rm -f conftest.er1
17773
 
  cat conftest.err >&5
17774
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775
 
  (exit $ac_status); } &&
17776
 
         { ac_try='test -z "$ac_c_werror_flag"
17777
 
                         || test ! -s conftest.err'
17778
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779
 
  (eval $ac_try) 2>&5
17780
 
  ac_status=$?
17781
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782
 
  (exit $ac_status); }; } &&
17783
 
         { ac_try='test -s conftest$ac_exeext'
17784
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785
 
  (eval $ac_try) 2>&5
17786
 
  ac_status=$?
17787
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788
 
  (exit $ac_status); }; }; then
17789
 
  ac_cv_func_dlopen=yes
17790
 
else
17791
 
  echo "$as_me: failed program was:" >&5
17792
 
sed 's/^/| /' conftest.$ac_ext >&5
17793
 
 
17794
 
ac_cv_func_dlopen=no
17795
 
fi
17796
 
rm -f conftest.err conftest.$ac_objext \
17797
 
      conftest$ac_exeext conftest.$ac_ext
17798
 
fi
17799
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17800
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17801
 
if test $ac_cv_func_dlopen = yes; then
17802
 
  lt_cv_dlopen="dlopen"
17803
 
else
17804
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17805
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17806
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17807
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17808
 
else
17809
 
  ac_check_lib_save_LIBS=$LIBS
17810
 
LIBS="-ldl  $LIBS"
17811
 
cat >conftest.$ac_ext <<_ACEOF
17812
 
/* confdefs.h.  */
17813
 
_ACEOF
17814
 
cat confdefs.h >>conftest.$ac_ext
17815
 
cat >>conftest.$ac_ext <<_ACEOF
17816
 
/* end confdefs.h.  */
17817
 
 
17818
 
/* Override any gcc2 internal prototype to avoid an error.  */
17819
 
#ifdef __cplusplus
17820
 
extern "C"
17821
 
#endif
17822
 
/* We use char because int might match the return type of a gcc2
17823
 
   builtin and then its argument prototype would still apply.  */
17824
 
char dlopen ();
17825
 
int
17826
 
main ()
17827
 
{
17828
 
dlopen ();
17829
 
  ;
17830
 
  return 0;
17831
 
}
17832
 
_ACEOF
17833
 
rm -f conftest.$ac_objext conftest$ac_exeext
17834
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17835
 
  (eval $ac_link) 2>conftest.er1
17836
 
  ac_status=$?
17837
 
  grep -v '^ *+' conftest.er1 >conftest.err
17838
 
  rm -f conftest.er1
17839
 
  cat conftest.err >&5
17840
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841
 
  (exit $ac_status); } &&
17842
 
         { ac_try='test -z "$ac_c_werror_flag"
17843
 
                         || test ! -s conftest.err'
17844
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17845
 
  (eval $ac_try) 2>&5
17846
 
  ac_status=$?
17847
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848
 
  (exit $ac_status); }; } &&
17849
 
         { ac_try='test -s conftest$ac_exeext'
17850
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17851
 
  (eval $ac_try) 2>&5
17852
 
  ac_status=$?
17853
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854
 
  (exit $ac_status); }; }; then
17855
 
  ac_cv_lib_dl_dlopen=yes
17856
 
else
17857
 
  echo "$as_me: failed program was:" >&5
17858
 
sed 's/^/| /' conftest.$ac_ext >&5
17859
 
 
17860
 
ac_cv_lib_dl_dlopen=no
17861
 
fi
17862
 
rm -f conftest.err conftest.$ac_objext \
17863
 
      conftest$ac_exeext conftest.$ac_ext
17864
 
LIBS=$ac_check_lib_save_LIBS
17865
 
fi
17866
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17867
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17868
 
if test $ac_cv_lib_dl_dlopen = yes; then
17869
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17870
 
else
17871
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17872
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17873
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17874
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17875
 
else
17876
 
  ac_check_lib_save_LIBS=$LIBS
17877
 
LIBS="-lsvld  $LIBS"
17878
 
cat >conftest.$ac_ext <<_ACEOF
17879
 
/* confdefs.h.  */
17880
 
_ACEOF
17881
 
cat confdefs.h >>conftest.$ac_ext
17882
 
cat >>conftest.$ac_ext <<_ACEOF
17883
 
/* end confdefs.h.  */
17884
 
 
17885
 
/* Override any gcc2 internal prototype to avoid an error.  */
17886
 
#ifdef __cplusplus
17887
 
extern "C"
17888
 
#endif
17889
 
/* We use char because int might match the return type of a gcc2
17890
 
   builtin and then its argument prototype would still apply.  */
17891
 
char dlopen ();
17892
 
int
17893
 
main ()
17894
 
{
17895
 
dlopen ();
17896
 
  ;
17897
 
  return 0;
17898
 
}
17899
 
_ACEOF
17900
 
rm -f conftest.$ac_objext conftest$ac_exeext
17901
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17902
 
  (eval $ac_link) 2>conftest.er1
17903
 
  ac_status=$?
17904
 
  grep -v '^ *+' conftest.er1 >conftest.err
17905
 
  rm -f conftest.er1
17906
 
  cat conftest.err >&5
17907
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908
 
  (exit $ac_status); } &&
17909
 
         { ac_try='test -z "$ac_c_werror_flag"
17910
 
                         || test ! -s conftest.err'
17911
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17912
 
  (eval $ac_try) 2>&5
17913
 
  ac_status=$?
17914
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915
 
  (exit $ac_status); }; } &&
17916
 
         { ac_try='test -s conftest$ac_exeext'
17917
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17918
 
  (eval $ac_try) 2>&5
17919
 
  ac_status=$?
17920
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921
 
  (exit $ac_status); }; }; then
17922
 
  ac_cv_lib_svld_dlopen=yes
17923
 
else
17924
 
  echo "$as_me: failed program was:" >&5
17925
 
sed 's/^/| /' conftest.$ac_ext >&5
17926
 
 
17927
 
ac_cv_lib_svld_dlopen=no
17928
 
fi
17929
 
rm -f conftest.err conftest.$ac_objext \
17930
 
      conftest$ac_exeext conftest.$ac_ext
17931
 
LIBS=$ac_check_lib_save_LIBS
17932
 
fi
17933
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17934
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17935
 
if test $ac_cv_lib_svld_dlopen = yes; then
17936
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17937
 
else
17938
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17939
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17940
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17941
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17942
 
else
17943
 
  ac_check_lib_save_LIBS=$LIBS
17944
 
LIBS="-ldld  $LIBS"
17945
 
cat >conftest.$ac_ext <<_ACEOF
17946
 
/* confdefs.h.  */
17947
 
_ACEOF
17948
 
cat confdefs.h >>conftest.$ac_ext
17949
 
cat >>conftest.$ac_ext <<_ACEOF
17950
 
/* end confdefs.h.  */
17951
 
 
17952
 
/* Override any gcc2 internal prototype to avoid an error.  */
17953
 
#ifdef __cplusplus
17954
 
extern "C"
17955
 
#endif
17956
 
/* We use char because int might match the return type of a gcc2
17957
 
   builtin and then its argument prototype would still apply.  */
17958
 
char dld_link ();
17959
 
int
17960
 
main ()
17961
 
{
17962
 
dld_link ();
17963
 
  ;
17964
 
  return 0;
17965
 
}
17966
 
_ACEOF
17967
 
rm -f conftest.$ac_objext conftest$ac_exeext
17968
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17969
 
  (eval $ac_link) 2>conftest.er1
17970
 
  ac_status=$?
17971
 
  grep -v '^ *+' conftest.er1 >conftest.err
17972
 
  rm -f conftest.er1
17973
 
  cat conftest.err >&5
17974
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975
 
  (exit $ac_status); } &&
17976
 
         { ac_try='test -z "$ac_c_werror_flag"
17977
 
                         || test ! -s conftest.err'
17978
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17979
 
  (eval $ac_try) 2>&5
17980
 
  ac_status=$?
17981
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982
 
  (exit $ac_status); }; } &&
17983
 
         { ac_try='test -s conftest$ac_exeext'
17984
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17985
 
  (eval $ac_try) 2>&5
17986
 
  ac_status=$?
17987
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988
 
  (exit $ac_status); }; }; then
17989
 
  ac_cv_lib_dld_dld_link=yes
17990
 
else
17991
 
  echo "$as_me: failed program was:" >&5
17992
 
sed 's/^/| /' conftest.$ac_ext >&5
17993
 
 
17994
 
ac_cv_lib_dld_dld_link=no
17995
 
fi
17996
 
rm -f conftest.err conftest.$ac_objext \
17997
 
      conftest$ac_exeext conftest.$ac_ext
17998
 
LIBS=$ac_check_lib_save_LIBS
17999
 
fi
18000
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18001
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18002
 
if test $ac_cv_lib_dld_dld_link = yes; then
18003
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18004
 
fi
18005
 
 
18006
 
 
18007
 
fi
18008
 
 
18009
 
 
18010
 
fi
18011
 
 
18012
 
 
18013
 
fi
18014
 
 
18015
 
 
18016
 
fi
18017
 
 
18018
 
 
18019
 
fi
18020
 
 
18021
 
    ;;
18022
 
  esac
18023
 
 
18024
 
  if test "x$lt_cv_dlopen" != xno; then
18025
 
    enable_dlopen=yes
18026
 
  else
18027
 
    enable_dlopen=no
18028
 
  fi
18029
 
 
18030
 
  case $lt_cv_dlopen in
18031
 
  dlopen)
18032
 
    save_CPPFLAGS="$CPPFLAGS"
18033
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18034
 
 
18035
 
    save_LDFLAGS="$LDFLAGS"
18036
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18037
 
 
18038
 
    save_LIBS="$LIBS"
18039
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
18040
 
 
18041
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18042
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18043
 
if test "${lt_cv_dlopen_self+set}" = set; then
18044
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18045
 
else
18046
 
          if test "$cross_compiling" = yes; then :
18047
 
  lt_cv_dlopen_self=cross
18048
 
else
18049
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18050
 
  lt_status=$lt_dlunknown
18051
 
  cat > conftest.$ac_ext <<EOF
18052
 
#line 18052 "configure"
18053
 
#include "confdefs.h"
18054
 
 
18055
 
#if HAVE_DLFCN_H
18056
 
#include <dlfcn.h>
18057
 
#endif
18058
 
 
18059
 
#include <stdio.h>
18060
 
 
18061
 
#ifdef RTLD_GLOBAL
18062
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
18063
 
#else
18064
 
#  ifdef DL_GLOBAL
18065
 
#    define LT_DLGLOBAL         DL_GLOBAL
18066
 
#  else
18067
 
#    define LT_DLGLOBAL         0
18068
 
#  endif
18069
 
#endif
18070
 
 
18071
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18072
 
   find out it does not work in some platform. */
18073
 
#ifndef LT_DLLAZY_OR_NOW
18074
 
#  ifdef RTLD_LAZY
18075
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18076
 
#  else
18077
 
#    ifdef DL_LAZY
18078
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
18079
 
#    else
18080
 
#      ifdef RTLD_NOW
18081
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
18082
 
#      else
18083
 
#        ifdef DL_NOW
18084
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
18085
 
#        else
18086
 
#          define LT_DLLAZY_OR_NOW      0
18087
 
#        endif
18088
 
#      endif
18089
 
#    endif
18090
 
#  endif
18091
 
#endif
18092
 
 
18093
 
#ifdef __cplusplus
18094
 
extern "C" void exit (int);
18095
 
#endif
18096
 
 
18097
 
void fnord() { int i=42;}
18098
 
int main ()
18099
 
{
18100
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18101
 
  int status = $lt_dlunknown;
18102
 
 
18103
 
  if (self)
18104
 
    {
18105
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18106
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18107
 
      /* dlclose (self); */
18108
 
    }
18109
 
 
18110
 
    exit (status);
18111
 
}
18112
 
EOF
18113
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18114
 
  (eval $ac_link) 2>&5
18115
 
  ac_status=$?
18116
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18118
 
    (./conftest; exit; ) 2>/dev/null
18119
 
    lt_status=$?
18120
 
    case x$lt_status in
18121
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18122
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18123
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18124
 
    esac
18125
 
  else :
18126
 
    # compilation failed
18127
 
    lt_cv_dlopen_self=no
18128
 
  fi
18129
 
fi
18130
 
rm -fr conftest*
18131
 
 
18132
 
 
18133
 
fi
18134
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18135
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18136
 
 
18137
 
    if test "x$lt_cv_dlopen_self" = xyes; then
18138
 
      LDFLAGS="$LDFLAGS $link_static_flag"
18139
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18140
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18141
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
18142
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18143
 
else
18144
 
          if test "$cross_compiling" = yes; then :
18145
 
  lt_cv_dlopen_self_static=cross
18146
 
else
18147
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18148
 
  lt_status=$lt_dlunknown
18149
 
  cat > conftest.$ac_ext <<EOF
18150
 
#line 18150 "configure"
18151
 
#include "confdefs.h"
18152
 
 
18153
 
#if HAVE_DLFCN_H
18154
 
#include <dlfcn.h>
18155
 
#endif
18156
 
 
18157
 
#include <stdio.h>
18158
 
 
18159
 
#ifdef RTLD_GLOBAL
18160
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
18161
 
#else
18162
 
#  ifdef DL_GLOBAL
18163
 
#    define LT_DLGLOBAL         DL_GLOBAL
18164
 
#  else
18165
 
#    define LT_DLGLOBAL         0
18166
 
#  endif
18167
 
#endif
18168
 
 
18169
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18170
 
   find out it does not work in some platform. */
18171
 
#ifndef LT_DLLAZY_OR_NOW
18172
 
#  ifdef RTLD_LAZY
18173
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18174
 
#  else
18175
 
#    ifdef DL_LAZY
18176
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
18177
 
#    else
18178
 
#      ifdef RTLD_NOW
18179
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
18180
 
#      else
18181
 
#        ifdef DL_NOW
18182
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
18183
 
#        else
18184
 
#          define LT_DLLAZY_OR_NOW      0
18185
 
#        endif
18186
 
#      endif
18187
 
#    endif
18188
 
#  endif
18189
 
#endif
18190
 
 
18191
 
#ifdef __cplusplus
18192
 
extern "C" void exit (int);
18193
 
#endif
18194
 
 
18195
 
void fnord() { int i=42;}
18196
 
int main ()
18197
 
{
18198
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18199
 
  int status = $lt_dlunknown;
18200
 
 
18201
 
  if (self)
18202
 
    {
18203
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18204
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18205
 
      /* dlclose (self); */
18206
 
    }
18207
 
 
18208
 
    exit (status);
18209
 
}
18210
 
EOF
18211
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18212
 
  (eval $ac_link) 2>&5
18213
 
  ac_status=$?
18214
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18216
 
    (./conftest; exit; ) 2>/dev/null
18217
 
    lt_status=$?
18218
 
    case x$lt_status in
18219
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18220
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18221
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18222
 
    esac
18223
 
  else :
18224
 
    # compilation failed
18225
 
    lt_cv_dlopen_self_static=no
18226
 
  fi
18227
 
fi
18228
 
rm -fr conftest*
18229
 
 
18230
 
 
18231
 
fi
18232
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18233
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18234
 
    fi
18235
 
 
18236
 
    CPPFLAGS="$save_CPPFLAGS"
18237
 
    LDFLAGS="$save_LDFLAGS"
18238
 
    LIBS="$save_LIBS"
18239
 
    ;;
18240
 
  esac
18241
 
 
18242
 
  case $lt_cv_dlopen_self in
18243
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18244
 
  *) enable_dlopen_self=unknown ;;
18245
 
  esac
18246
 
 
18247
 
  case $lt_cv_dlopen_self_static in
18248
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18249
 
  *) enable_dlopen_self_static=unknown ;;
18250
 
  esac
18251
 
fi
18252
 
 
18253
18754
 
18254
18755
# The else clause should only fire when bootstrapping the
18255
18756
# libtool distribution, otherwise you forgot to ship ltmain.sh
18264
18765
  # Now quote all the things that may contain metacharacters while being
18265
18766
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18266
18767
  # variables and quote the copies for generation of the libtool script.
18267
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18768
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18268
18769
    SED SHELL STRIP \
18269
18770
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18270
18771
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18365
18866
# The host system.
18366
18867
host_alias=$host_alias
18367
18868
host=$host
 
18869
host_os=$host_os
 
18870
 
 
18871
# The build system.
 
18872
build_alias=$build_alias
 
18873
build=$build
 
18874
build_os=$build_os
18368
18875
 
18369
18876
# An echo program that does not interpret backslashes.
18370
18877
echo=$lt_echo
18376
18883
# A C compiler.
18377
18884
LTCC=$lt_LTCC
18378
18885
 
 
18886
# LTCC compiler flags.
 
18887
LTCFLAGS=$lt_LTCFLAGS
 
18888
 
18379
18889
# A language-specific compiler.
18380
18890
CC=$lt_compiler_GCJ
18381
18891
 
18441
18951
# Does compiler simultaneously support -c and -o options?
18442
18952
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18443
18953
 
18444
 
# Must we lock files when doing compilation ?
 
18954
# Must we lock files when doing compilation?
18445
18955
need_locks=$lt_need_locks
18446
18956
 
18447
18957
# Do we need the lib prefix for modules?
18666
19176
      RC)
18667
19177
 
18668
19178
 
18669
 
 
18670
19179
# Source file extension for RC test sources.
18671
19180
ac_ext=rc
18672
19181
 
18685
19194
# If no C compiler was specified, use CC.
18686
19195
LTCC=${LTCC-"$CC"}
18687
19196
 
 
19197
# If no C compiler flags were specified, use CFLAGS.
 
19198
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
19199
 
18688
19200
# Allow CC to be a program name with arguments.
18689
19201
compiler=$CC
18690
19202
 
18691
19203
 
 
19204
# save warnings/boilerplate of simple test code
 
19205
ac_outfile=conftest.$ac_objext
 
19206
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19207
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19208
_lt_compiler_boilerplate=`cat conftest.err`
 
19209
$rm conftest*
 
19210
 
 
19211
ac_outfile=conftest.$ac_objext
 
19212
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
19213
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19214
_lt_linker_boilerplate=`cat conftest.err`
 
19215
$rm conftest*
 
19216
 
 
19217
 
18692
19218
# Allow CC to be a program name with arguments.
18693
19219
lt_save_CC="$CC"
18694
19220
CC=${RC-"windres"}
18695
19221
compiler=$CC
18696
19222
compiler_RC=$CC
 
19223
for cc_temp in $compiler""; do
 
19224
  case $cc_temp in
 
19225
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
19226
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
19227
    \-*) ;;
 
19228
    *) break;;
 
19229
  esac
 
19230
done
 
19231
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
19232
 
18697
19233
lt_cv_prog_compiler_c_o_RC=yes
18698
19234
 
18699
19235
# The else clause should only fire when bootstrapping the
18709
19245
  # Now quote all the things that may contain metacharacters while being
18710
19246
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18711
19247
  # variables and quote the copies for generation of the libtool script.
18712
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
19248
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18713
19249
    SED SHELL STRIP \
18714
19250
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18715
19251
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18810
19346
# The host system.
18811
19347
host_alias=$host_alias
18812
19348
host=$host
 
19349
host_os=$host_os
 
19350
 
 
19351
# The build system.
 
19352
build_alias=$build_alias
 
19353
build=$build
 
19354
build_os=$build_os
18813
19355
 
18814
19356
# An echo program that does not interpret backslashes.
18815
19357
echo=$lt_echo
18821
19363
# A C compiler.
18822
19364
LTCC=$lt_LTCC
18823
19365
 
 
19366
# LTCC compiler flags.
 
19367
LTCFLAGS=$lt_LTCFLAGS
 
19368
 
18824
19369
# A language-specific compiler.
18825
19370
CC=$lt_compiler_RC
18826
19371
 
18886
19431
# Does compiler simultaneously support -c and -o options?
18887
19432
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18888
19433
 
18889
 
# Must we lock files when doing compilation ?
 
19434
# Must we lock files when doing compilation?
18890
19435
need_locks=$lt_need_locks
18891
19436
 
18892
19437
# Do we need the lib prefix for modules?
19171
19716
        if test -n "$ac_tool_prefix"; then
19172
19717
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19173
19718
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19174
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
19175
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19719
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19720
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19176
19721
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19177
19722
  echo $ECHO_N "(cached) $ECHO_C" >&6
19178
19723
else
19187
19732
  IFS=$as_save_IFS
19188
19733
  test -z "$as_dir" && as_dir=.
19189
19734
  for ac_exec_ext in '' $ac_executable_extensions; do
19190
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19735
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19191
19736
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19192
19737
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19193
19738
    break 2
19194
19739
  fi
19195
19740
done
19196
19741
done
 
19742
IFS=$as_save_IFS
19197
19743
 
19198
19744
  ;;
19199
19745
esac
19200
19746
fi
19201
19747
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19202
 
 
19203
19748
if test -n "$PKG_CONFIG"; then
19204
 
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19205
 
echo "${ECHO_T}$PKG_CONFIG" >&6
 
19749
  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
19750
echo "${ECHO_T}$PKG_CONFIG" >&6; }
19206
19751
else
19207
 
  echo "$as_me:$LINENO: result: no" >&5
19208
 
echo "${ECHO_T}no" >&6
 
19752
  { echo "$as_me:$LINENO: result: no" >&5
 
19753
echo "${ECHO_T}no" >&6; }
19209
19754
fi
 
19755
 
19210
19756
 
19211
19757
fi
19212
19758
if test -z "$ac_cv_path_PKG_CONFIG"; then
19213
19759
  ac_pt_PKG_CONFIG=$PKG_CONFIG
19214
19760
  # Extract the first word of "pkg-config", so it can be a program name with args.
19215
19761
set dummy pkg-config; ac_word=$2
19216
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
19217
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19762
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19763
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19218
19764
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19219
19765
  echo $ECHO_N "(cached) $ECHO_C" >&6
19220
19766
else
19229
19775
  IFS=$as_save_IFS
19230
19776
  test -z "$as_dir" && as_dir=.
19231
19777
  for ac_exec_ext in '' $ac_executable_extensions; do
19232
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19778
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19233
19779
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19234
19780
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19235
19781
    break 2
19236
19782
  fi
19237
19783
done
19238
19784
done
 
19785
IFS=$as_save_IFS
19239
19786
 
19240
19787
  ;;
19241
19788
esac
19242
19789
fi
19243
19790
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19244
 
 
19245
19791
if test -n "$ac_pt_PKG_CONFIG"; then
19246
 
  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19247
 
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
 
19792
  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 
19793
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
19248
19794
else
19249
 
  echo "$as_me:$LINENO: result: no" >&5
19250
 
echo "${ECHO_T}no" >&6
 
19795
  { echo "$as_me:$LINENO: result: no" >&5
 
19796
echo "${ECHO_T}no" >&6; }
19251
19797
fi
19252
19798
 
19253
 
  PKG_CONFIG=$ac_pt_PKG_CONFIG
 
19799
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
19800
    PKG_CONFIG=""
 
19801
  else
 
19802
    case $cross_compiling:$ac_tool_warned in
 
19803
yes:)
 
19804
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
19805
whose name does not start with the host triplet.  If you think this
 
19806
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
19807
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
19808
whose name does not start with the host triplet.  If you think this
 
19809
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
19810
ac_tool_warned=yes ;;
 
19811
esac
 
19812
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
19813
  fi
19254
19814
else
19255
19815
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19256
19816
fi
19258
19818
fi
19259
19819
if test -n "$PKG_CONFIG"; then
19260
19820
        _pkg_min_version=0.9.0
19261
 
        echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19262
 
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
 
19821
        { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 
19822
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
19263
19823
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19264
 
                echo "$as_me:$LINENO: result: yes" >&5
19265
 
echo "${ECHO_T}yes" >&6
 
19824
                { echo "$as_me:$LINENO: result: yes" >&5
 
19825
echo "${ECHO_T}yes" >&6; }
19266
19826
        else
19267
 
                echo "$as_me:$LINENO: result: no" >&5
19268
 
echo "${ECHO_T}no" >&6
 
19827
                { echo "$as_me:$LINENO: result: no" >&5
 
19828
echo "${ECHO_T}no" >&6; }
19269
19829
                PKG_CONFIG=""
19270
19830
        fi
19271
19831
 
19272
19832
fi
19273
19833
 
19274
19834
pkg_failed=no
19275
 
echo "$as_me:$LINENO: checking for XRENDER" >&5
19276
 
echo $ECHO_N "checking for XRENDER... $ECHO_C" >&6
 
19835
{ echo "$as_me:$LINENO: checking for XRENDER" >&5
 
19836
echo $ECHO_N "checking for XRENDER... $ECHO_C" >&6; }
19277
19837
 
19278
19838
if test -n "$PKG_CONFIG"; then
19279
19839
    if test -n "$XRENDER_CFLAGS"; then
19335
19895
else
19336
19896
        XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS
19337
19897
        XRENDER_LIBS=$pkg_cv_XRENDER_LIBS
19338
 
        echo "$as_me:$LINENO: result: yes" >&5
19339
 
echo "${ECHO_T}yes" >&6
 
19898
        { echo "$as_me:$LINENO: result: yes" >&5
 
19899
echo "${ECHO_T}yes" >&6; }
19340
19900
        xrender_found_with_pkgconfig=yes
19341
19901
fi
19342
19902
case "$xrender_found_with_pkgconfig" in
19343
19903
no)
19344
19904
 
19345
19905
pkg_failed=no
19346
 
echo "$as_me:$LINENO: checking for XRENDER" >&5
19347
 
echo $ECHO_N "checking for XRENDER... $ECHO_C" >&6
 
19906
{ echo "$as_me:$LINENO: checking for XRENDER" >&5
 
19907
echo $ECHO_N "checking for XRENDER... $ECHO_C" >&6; }
19348
19908
 
19349
19909
if test -n "$PKG_CONFIG"; then
19350
19910
    if test -n "$XRENDER_CFLAGS"; then
19406
19966
else
19407
19967
        XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS
19408
19968
        XRENDER_LIBS=$pkg_cv_XRENDER_LIBS
19409
 
        echo "$as_me:$LINENO: result: yes" >&5
19410
 
echo "${ECHO_T}yes" >&6
 
19969
        { echo "$as_me:$LINENO: result: yes" >&5
 
19970
echo "${ECHO_T}yes" >&6; }
19411
19971
        old_xrender_found_with_pkgconfig=yes
19412
19972
fi
19413
19973
        case "$old_xrender_found_with_pkgconfig" in
19416
19976
                ;;
19417
19977
        *)
19418
19978
                # checks for X
19419
 
                echo "$as_me:$LINENO: checking for X" >&5
19420
 
echo $ECHO_N "checking for X... $ECHO_C" >&6
19421
 
 
19422
 
 
19423
 
# Check whether --with-x or --without-x was given.
 
19979
                { echo "$as_me:$LINENO: checking for X" >&5
 
19980
echo $ECHO_N "checking for X... $ECHO_C" >&6; }
 
19981
 
 
19982
 
 
19983
# Check whether --with-x was given.
19424
19984
if test "${with_x+set}" = set; then
19425
 
  withval="$with_x"
 
19985
  withval=$with_x;
 
19986
fi
19426
19987
 
19427
 
fi;
19428
19988
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19429
19989
if test "x$with_x" = xno; then
19430
19990
  # The user explicitly disabled X.
19431
19991
  have_x=disabled
19432
19992
else
19433
 
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
19434
 
    # Both variables are already set.
19435
 
    have_x=yes
19436
 
  else
19437
 
    if test "${ac_cv_have_x+set}" = set; then
 
19993
  case $x_includes,$x_libraries in #(
 
19994
    *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
 
19995
echo "$as_me: error: Cannot use X directory names containing '" >&2;}
 
19996
   { (exit 1); exit 1; }; };; #(
 
19997
    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
19438
19998
  echo $ECHO_N "(cached) $ECHO_C" >&6
19439
19999
else
19440
20000
  # One or both of the vars are not set, and there is no cached value.
19441
20001
ac_x_includes=no ac_x_libraries=no
19442
 
rm -fr conftest.dir
 
20002
rm -f -r conftest.dir
19443
20003
if mkdir conftest.dir; then
19444
20004
  cd conftest.dir
19445
 
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
19446
20005
  cat >Imakefile <<'_ACEOF'
19447
 
acfindx:
19448
 
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
 
20006
incroot:
 
20007
        @echo incroot='${INCROOT}'
 
20008
usrlibdir:
 
20009
        @echo usrlibdir='${USRLIBDIR}'
 
20010
libdir:
 
20011
        @echo libdir='${LIBDIR}'
19449
20012
_ACEOF
19450
 
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
 
20013
  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19451
20014
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19452
 
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
 
20015
    for ac_var in incroot usrlibdir libdir; do
 
20016
      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
 
20017
    done
19453
20018
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19454
20019
    for ac_extension in a so sl; do
19455
 
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
19456
 
         test -f $ac_im_libdir/libX11.$ac_extension; then
 
20020
      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
 
20021
         test -f "$ac_im_libdir/libX11.$ac_extension"; then
19457
20022
        ac_im_usrlibdir=$ac_im_libdir; break
19458
20023
      fi
19459
20024
    done
19461
20026
    # bogus both because they are the default anyway, and because
19462
20027
    # using them would break gcc on systems where it needs fixed includes.
19463
20028
    case $ac_im_incroot in
19464
 
        /usr/include) ;;
 
20029
        /usr/include) ac_x_includes= ;;
19465
20030
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19466
20031
    esac
19467
20032
    case $ac_im_usrlibdir in
19470
20035
    esac
19471
20036
  fi
19472
20037
  cd ..
19473
 
  rm -fr conftest.dir
 
20038
  rm -f -r conftest.dir
19474
20039
fi
19475
20040
 
19476
20041
# Standard set of common directories for X headers.
19511
20076
/usr/openwin/share/include'
19512
20077
 
19513
20078
if test "$ac_x_includes" = no; then
19514
 
  # Guess where to find include files, by looking for Intrinsic.h.
 
20079
  # Guess where to find include files, by looking for Xlib.h.
19515
20080
  # First, try using that file with no special directory specified.
19516
20081
  cat >conftest.$ac_ext <<_ACEOF
19517
20082
/* confdefs.h.  */
19519
20084
cat confdefs.h >>conftest.$ac_ext
19520
20085
cat >>conftest.$ac_ext <<_ACEOF
19521
20086
/* end confdefs.h.  */
19522
 
#include <X11/Intrinsic.h>
 
20087
#include <X11/Xlib.h>
19523
20088
_ACEOF
19524
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19525
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20089
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
20090
case "(($ac_try" in
 
20091
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20092
  *) ac_try_echo=$ac_try;;
 
20093
esac
 
20094
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20095
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19526
20096
  ac_status=$?
19527
20097
  grep -v '^ *+' conftest.er1 >conftest.err
19528
20098
  rm -f conftest.er1
19546
20116
sed 's/^/| /' conftest.$ac_ext >&5
19547
20117
 
19548
20118
  for ac_dir in $ac_x_header_dirs; do
19549
 
  if test -r "$ac_dir/X11/Intrinsic.h"; then
 
20119
  if test -r "$ac_dir/X11/Xlib.h"; then
19550
20120
    ac_x_includes=$ac_dir
19551
20121
    break
19552
20122
  fi
19553
20123
done
19554
20124
fi
 
20125
 
19555
20126
rm -f conftest.err conftest.$ac_ext
19556
20127
fi # $ac_x_includes = no
19557
20128
 
19567
20138
cat confdefs.h >>conftest.$ac_ext
19568
20139
cat >>conftest.$ac_ext <<_ACEOF
19569
20140
/* end confdefs.h.  */
19570
 
#include <X11/Intrinsic.h>
 
20141
#include <X11/Xlib.h>
19571
20142
int
19572
20143
main ()
19573
20144
{
19574
 
XtMalloc (0)
 
20145
XrmInitialize ()
19575
20146
  ;
19576
20147
  return 0;
19577
20148
}
19578
20149
_ACEOF
19579
20150
rm -f conftest.$ac_objext conftest$ac_exeext
19580
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19581
 
  (eval $ac_link) 2>conftest.er1
 
20151
if { (ac_try="$ac_link"
 
20152
case "(($ac_try" in
 
20153
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20154
  *) ac_try_echo=$ac_try;;
 
20155
esac
 
20156
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20157
  (eval "$ac_link") 2>conftest.er1
19582
20158
  ac_status=$?
19583
20159
  grep -v '^ *+' conftest.er1 >conftest.err
19584
20160
  rm -f conftest.er1
19585
20161
  cat conftest.err >&5
19586
20162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587
20163
  (exit $ac_status); } &&
19588
 
         { ac_try='test -z "$ac_c_werror_flag"
19589
 
                         || test ! -s conftest.err'
19590
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19591
 
  (eval $ac_try) 2>&5
 
20164
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20165
  { (case "(($ac_try" in
 
20166
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20167
  *) ac_try_echo=$ac_try;;
 
20168
esac
 
20169
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20170
  (eval "$ac_try") 2>&5
19592
20171
  ac_status=$?
19593
20172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594
20173
  (exit $ac_status); }; } &&
19595
20174
         { ac_try='test -s conftest$ac_exeext'
19596
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19597
 
  (eval $ac_try) 2>&5
 
20175
  { (case "(($ac_try" in
 
20176
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20177
  *) ac_try_echo=$ac_try;;
 
20178
esac
 
20179
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20180
  (eval "$ac_try") 2>&5
19598
20181
  ac_status=$?
19599
20182
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600
20183
  (exit $ac_status); }; }; then
19605
20188
  echo "$as_me: failed program was:" >&5
19606
20189
sed 's/^/| /' conftest.$ac_ext >&5
19607
20190
 
19608
 
LIBS=$ac_save_LIBS
 
20191
        LIBS=$ac_save_LIBS
19609
20192
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19610
20193
do
19611
20194
  # Don't even attempt the hair of trying to link an X program!
19612
20195
  for ac_extension in a so sl; do
19613
 
    if test -r $ac_dir/libXt.$ac_extension; then
 
20196
    if test -r "$ac_dir/libXt.$ac_extension"; then
19614
20197
      ac_x_libraries=$ac_dir
19615
20198
      break 2
19616
20199
    fi
19617
20200
  done
19618
20201
done
19619
20202
fi
19620
 
rm -f conftest.err conftest.$ac_objext \
 
20203
 
 
20204
rm -f core conftest.err conftest.$ac_objext \
19621
20205
      conftest$ac_exeext conftest.$ac_ext
19622
20206
fi # $ac_x_libraries = no
19623
20207
 
19624
 
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
19625
 
  # Didn't find X anywhere.  Cache the known absence of X.
19626
 
  ac_cv_have_x="have_x=no"
19627
 
else
19628
 
  # Record where we found X for the cache.
19629
 
  ac_cv_have_x="have_x=yes \
19630
 
                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
19631
 
fi
19632
 
fi
19633
 
 
19634
 
  fi
 
20208
case $ac_x_includes,$ac_x_libraries in #(
 
20209
  no,* | *,no | *\'*)
 
20210
    # Didn't find X, or a directory has "'" in its name.
 
20211
    ac_cv_have_x="have_x=no";; #(
 
20212
  *)
 
20213
    # Record where we found X for the cache.
 
20214
    ac_cv_have_x="have_x=yes\
 
20215
        ac_x_includes='$ac_x_includes'\
 
20216
        ac_x_libraries='$ac_x_libraries'"
 
20217
esac
 
20218
fi
 
20219
;; #(
 
20220
    *) have_x=yes;;
 
20221
  esac
19635
20222
  eval "$ac_cv_have_x"
19636
20223
fi # $with_x != no
19637
20224
 
19638
20225
if test "$have_x" != yes; then
19639
 
  echo "$as_me:$LINENO: result: $have_x" >&5
19640
 
echo "${ECHO_T}$have_x" >&6
 
20226
  { echo "$as_me:$LINENO: result: $have_x" >&5
 
20227
echo "${ECHO_T}$have_x" >&6; }
19641
20228
  no_x=yes
19642
20229
else
19643
20230
  # If each of the values was on the command line, it overrides each guess.
19644
20231
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19645
20232
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19646
20233
  # Update the cache value to reflect the command line values.
19647
 
  ac_cv_have_x="have_x=yes \
19648
 
                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
19649
 
  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19650
 
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
 
20234
  ac_cv_have_x="have_x=yes\
 
20235
        ac_x_includes='$x_includes'\
 
20236
        ac_x_libraries='$x_libraries'"
 
20237
  { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
 
20238
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
19651
20239
fi
19652
20240
 
19653
20241
 
19660
20248
for ac_header in X11/extensions/Xrender.h
19661
20249
do
19662
20250
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19663
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19664
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
19665
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19666
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20251
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20252
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20253
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
20254
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19667
20255
  echo $ECHO_N "(cached) $ECHO_C" >&6
19668
20256
fi
19669
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19670
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20257
ac_res=`eval echo '${'$as_ac_Header'}'`
 
20258
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20259
echo "${ECHO_T}$ac_res" >&6; }
19671
20260
else
19672
20261
  # Is the header compilable?
19673
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
19674
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
20262
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20263
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19675
20264
cat >conftest.$ac_ext <<_ACEOF
19676
20265
/* confdefs.h.  */
19677
20266
_ACEOF
19682
20271
#include <$ac_header>
19683
20272
_ACEOF
19684
20273
rm -f conftest.$ac_objext
19685
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19686
 
  (eval $ac_compile) 2>conftest.er1
 
20274
if { (ac_try="$ac_compile"
 
20275
case "(($ac_try" in
 
20276
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20277
  *) ac_try_echo=$ac_try;;
 
20278
esac
 
20279
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20280
  (eval "$ac_compile") 2>conftest.er1
19687
20281
  ac_status=$?
19688
20282
  grep -v '^ *+' conftest.er1 >conftest.err
19689
20283
  rm -f conftest.er1
19690
20284
  cat conftest.err >&5
19691
20285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692
20286
  (exit $ac_status); } &&
19693
 
         { ac_try='test -z "$ac_c_werror_flag"
19694
 
                         || test ! -s conftest.err'
19695
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19696
 
  (eval $ac_try) 2>&5
 
20287
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20288
  { (case "(($ac_try" in
 
20289
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20290
  *) ac_try_echo=$ac_try;;
 
20291
esac
 
20292
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20293
  (eval "$ac_try") 2>&5
19697
20294
  ac_status=$?
19698
20295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699
20296
  (exit $ac_status); }; } &&
19700
20297
         { ac_try='test -s conftest.$ac_objext'
19701
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19702
 
  (eval $ac_try) 2>&5
 
20298
  { (case "(($ac_try" in
 
20299
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20300
  *) ac_try_echo=$ac_try;;
 
20301
esac
 
20302
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20303
  (eval "$ac_try") 2>&5
19703
20304
  ac_status=$?
19704
20305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705
20306
  (exit $ac_status); }; }; then
19708
20309
  echo "$as_me: failed program was:" >&5
19709
20310
sed 's/^/| /' conftest.$ac_ext >&5
19710
20311
 
19711
 
ac_header_compiler=no
 
20312
        ac_header_compiler=no
19712
20313
fi
19713
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19714
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19715
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
20314
 
 
20315
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20316
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20317
echo "${ECHO_T}$ac_header_compiler" >&6; }
19716
20318
 
19717
20319
# Is the header present?
19718
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
19719
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
20320
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20321
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19720
20322
cat >conftest.$ac_ext <<_ACEOF
19721
20323
/* confdefs.h.  */
19722
20324
_ACEOF
19725
20327
/* end confdefs.h.  */
19726
20328
#include <$ac_header>
19727
20329
_ACEOF
19728
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19729
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20330
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
20331
case "(($ac_try" in
 
20332
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20333
  *) ac_try_echo=$ac_try;;
 
20334
esac
 
20335
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20336
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19730
20337
  ac_status=$?
19731
20338
  grep -v '^ *+' conftest.er1 >conftest.err
19732
20339
  rm -f conftest.er1
19750
20357
 
19751
20358
  ac_header_preproc=no
19752
20359
fi
 
20360
 
19753
20361
rm -f conftest.err conftest.$ac_ext
19754
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19755
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
20362
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20363
echo "${ECHO_T}$ac_header_preproc" >&6; }
19756
20364
 
19757
20365
# So?  What about this header?
19758
20366
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19776
20384
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19777
20385
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19778
20386
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19779
 
    (
19780
 
      cat <<\_ASBOX
 
20387
    ( cat <<\_ASBOX
19781
20388
## ---------------------------------------------------------------------- ##
19782
20389
## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
19783
20390
## ---------------------------------------------------------------------- ##
19784
20391
_ASBOX
19785
 
    ) |
19786
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
20392
     ) | sed "s/^/$as_me: WARNING:     /" >&2
19787
20393
    ;;
19788
20394
esac
19789
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
19790
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19791
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20395
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20396
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
20397
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19792
20398
  echo $ECHO_N "(cached) $ECHO_C" >&6
19793
20399
else
19794
20400
  eval "$as_ac_Header=\$ac_header_preproc"
19795
20401
fi
19796
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19797
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20402
ac_res=`eval echo '${'$as_ac_Header'}'`
 
20403
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20404
echo "${ECHO_T}$ac_res" >&6; }
19798
20405
 
19799
20406
fi
19800
20407
if test `eval echo '${'$as_ac_Header'}'` = yes; then
19818
20425
for ac_func in XRenderFindStandardFormat
19819
20426
do
19820
20427
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19821
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
19822
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19823
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
20428
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
20429
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
20430
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19824
20431
  echo $ECHO_N "(cached) $ECHO_C" >&6
19825
20432
else
19826
20433
  cat >conftest.$ac_ext <<_ACEOF
19846
20453
 
19847
20454
#undef $ac_func
19848
20455
 
19849
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
20456
/* Override any GCC internal prototype to avoid an error.
 
20457
   Use char because int might match the return type of a GCC
 
20458
   builtin and then its argument prototype would still apply.  */
19850
20459
#ifdef __cplusplus
19851
20460
extern "C"
19852
 
{
19853
20461
#endif
19854
 
/* We use char because int might match the return type of a gcc2
19855
 
   builtin and then its argument prototype would still apply.  */
19856
20462
char $ac_func ();
19857
20463
/* The GNU C library defines this for functions which it implements
19858
20464
    to always fail with ENOSYS.  Some functions are actually named
19859
20465
    something starting with __ and the normal name is an alias.  */
19860
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
20466
#if defined __stub_$ac_func || defined __stub___$ac_func
19861
20467
choke me
19862
 
#else
19863
 
char (*f) () = $ac_func;
19864
 
#endif
19865
 
#ifdef __cplusplus
19866
 
}
19867
20468
#endif
19868
20469
 
19869
20470
int
19870
20471
main ()
19871
20472
{
19872
 
return f != $ac_func;
 
20473
return $ac_func ();
19873
20474
  ;
19874
20475
  return 0;
19875
20476
}
19876
20477
_ACEOF
19877
20478
rm -f conftest.$ac_objext conftest$ac_exeext
19878
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19879
 
  (eval $ac_link) 2>conftest.er1
 
20479
if { (ac_try="$ac_link"
 
20480
case "(($ac_try" in
 
20481
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20482
  *) ac_try_echo=$ac_try;;
 
20483
esac
 
20484
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20485
  (eval "$ac_link") 2>conftest.er1
19880
20486
  ac_status=$?
19881
20487
  grep -v '^ *+' conftest.er1 >conftest.err
19882
20488
  rm -f conftest.er1
19883
20489
  cat conftest.err >&5
19884
20490
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885
20491
  (exit $ac_status); } &&
19886
 
         { ac_try='test -z "$ac_c_werror_flag"
19887
 
                         || test ! -s conftest.err'
19888
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19889
 
  (eval $ac_try) 2>&5
 
20492
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20493
  { (case "(($ac_try" in
 
20494
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20495
  *) ac_try_echo=$ac_try;;
 
20496
esac
 
20497
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20498
  (eval "$ac_try") 2>&5
19890
20499
  ac_status=$?
19891
20500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892
20501
  (exit $ac_status); }; } &&
19893
20502
         { ac_try='test -s conftest$ac_exeext'
19894
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19895
 
  (eval $ac_try) 2>&5
 
20503
  { (case "(($ac_try" in
 
20504
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20505
  *) ac_try_echo=$ac_try;;
 
20506
esac
 
20507
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20508
  (eval "$ac_try") 2>&5
19896
20509
  ac_status=$?
19897
20510
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898
20511
  (exit $ac_status); }; }; then
19901
20514
  echo "$as_me: failed program was:" >&5
19902
20515
sed 's/^/| /' conftest.$ac_ext >&5
19903
20516
 
19904
 
eval "$as_ac_var=no"
 
20517
        eval "$as_ac_var=no"
19905
20518
fi
19906
 
rm -f conftest.err conftest.$ac_objext \
 
20519
 
 
20520
rm -f core conftest.err conftest.$ac_objext \
19907
20521
      conftest$ac_exeext conftest.$ac_ext
19908
20522
fi
19909
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19910
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
20523
ac_res=`eval echo '${'$as_ac_var'}'`
 
20524
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20525
echo "${ECHO_T}$ac_res" >&6; }
19911
20526
if test `eval echo '${'$as_ac_var'}'` = yes; then
19912
20527
  cat >>confdefs.h <<_ACEOF
19913
20528
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19928
20543
 
19929
20544
# Check freetype configuration
19930
20545
 
19931
 
# Check whether --with-freetype-config or --without-freetype-config was given.
 
20546
# Check whether --with-freetype-config was given.
19932
20547
if test "${with_freetype_config+set}" = set; then
19933
 
  withval="$with_freetype_config"
19934
 
  freetype_config=$withval
 
20548
  withval=$with_freetype_config; freetype_config=$withval
19935
20549
else
19936
20550
  freetype_config=auto
19937
 
fi;
 
20551
fi
 
20552
 
19938
20553
 
19939
20554
if test "$freetype_config" = "auto"; then
19940
20555
 
19941
20556
pkg_failed=no
19942
 
echo "$as_me:$LINENO: checking for FREETYPE" >&5
19943
 
echo $ECHO_N "checking for FREETYPE... $ECHO_C" >&6
 
20557
{ echo "$as_me:$LINENO: checking for FREETYPE" >&5
 
20558
echo $ECHO_N "checking for FREETYPE... $ECHO_C" >&6; }
19944
20559
 
19945
20560
if test -n "$PKG_CONFIG"; then
19946
20561
    if test -n "$FREETYPE_CFLAGS"; then
20002
20617
else
20003
20618
        FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
20004
20619
        FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
20005
 
        echo "$as_me:$LINENO: result: yes" >&5
20006
 
echo "${ECHO_T}yes" >&6
 
20620
        { echo "$as_me:$LINENO: result: yes" >&5
 
20621
echo "${ECHO_T}yes" >&6; }
20007
20622
        freetype_config=no
20008
20623
fi
20009
20624
fi
20011
20626
if test "$freetype_config" = "yes"; then
20012
20627
        # Extract the first word of "freetype-config", so it can be a program name with args.
20013
20628
set dummy freetype-config; ac_word=$2
20014
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
20015
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
20629
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20630
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20016
20631
if test "${ac_cv_path_ft_config+set}" = set; then
20017
20632
  echo $ECHO_N "(cached) $ECHO_C" >&6
20018
20633
else
20027
20642
  IFS=$as_save_IFS
20028
20643
  test -z "$as_dir" && as_dir=.
20029
20644
  for ac_exec_ext in '' $ac_executable_extensions; do
20030
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
20645
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20031
20646
    ac_cv_path_ft_config="$as_dir/$ac_word$ac_exec_ext"
20032
20647
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20033
20648
    break 2
20034
20649
  fi
20035
20650
done
20036
20651
done
 
20652
IFS=$as_save_IFS
20037
20653
 
20038
20654
  test -z "$ac_cv_path_ft_config" && ac_cv_path_ft_config="no"
20039
20655
  ;;
20040
20656
esac
20041
20657
fi
20042
20658
ft_config=$ac_cv_path_ft_config
20043
 
 
20044
20659
if test -n "$ft_config"; then
20045
 
  echo "$as_me:$LINENO: result: $ft_config" >&5
20046
 
echo "${ECHO_T}$ft_config" >&6
 
20660
  { echo "$as_me:$LINENO: result: $ft_config" >&5
 
20661
echo "${ECHO_T}$ft_config" >&6; }
20047
20662
else
20048
 
  echo "$as_me:$LINENO: result: no" >&5
20049
 
echo "${ECHO_T}no" >&6
 
20663
  { echo "$as_me:$LINENO: result: no" >&5
 
20664
echo "${ECHO_T}no" >&6; }
20050
20665
fi
20051
20666
 
 
20667
 
20052
20668
        if test "$ft_config" = "no"; then
20053
20669
                { { echo "$as_me:$LINENO: error: You must have freetype installed; see http://www.freetype.org/" >&5
20054
20670
echo "$as_me: error: You must have freetype installed; see http://www.freetype.org/" >&2;}
20066
20682
# Check fontconfig configuration
20067
20683
 
20068
20684
pkg_failed=no
20069
 
echo "$as_me:$LINENO: checking for FONTCONFIG" >&5
20070
 
echo $ECHO_N "checking for FONTCONFIG... $ECHO_C" >&6
 
20685
{ echo "$as_me:$LINENO: checking for FONTCONFIG" >&5
 
20686
echo $ECHO_N "checking for FONTCONFIG... $ECHO_C" >&6; }
20071
20687
 
20072
20688
if test -n "$PKG_CONFIG"; then
20073
20689
    if test -n "$FONTCONFIG_CFLAGS"; then
20171
20787
else
20172
20788
        FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
20173
20789
        FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
20174
 
        echo "$as_me:$LINENO: result: yes" >&5
20175
 
echo "${ECHO_T}yes" >&6
 
20790
        { echo "$as_me:$LINENO: result: yes" >&5
 
20791
echo "${ECHO_T}yes" >&6; }
20176
20792
        :
20177
20793
fi
20178
20794
 
20195
20811
for ac_func in FT_Get_Next_Char FT_Get_BDF_Property FT_Get_PS_Font_Info FT_Has_PS_Glyph_Names FT_GlyphSlot_Embolden
20196
20812
do
20197
20813
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20198
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
20199
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20200
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
20814
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
20815
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
20816
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20201
20817
  echo $ECHO_N "(cached) $ECHO_C" >&6
20202
20818
else
20203
20819
  cat >conftest.$ac_ext <<_ACEOF
20223
20839
 
20224
20840
#undef $ac_func
20225
20841
 
20226
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
20842
/* Override any GCC internal prototype to avoid an error.
 
20843
   Use char because int might match the return type of a GCC
 
20844
   builtin and then its argument prototype would still apply.  */
20227
20845
#ifdef __cplusplus
20228
20846
extern "C"
20229
 
{
20230
20847
#endif
20231
 
/* We use char because int might match the return type of a gcc2
20232
 
   builtin and then its argument prototype would still apply.  */
20233
20848
char $ac_func ();
20234
20849
/* The GNU C library defines this for functions which it implements
20235
20850
    to always fail with ENOSYS.  Some functions are actually named
20236
20851
    something starting with __ and the normal name is an alias.  */
20237
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
20852
#if defined __stub_$ac_func || defined __stub___$ac_func
20238
20853
choke me
20239
 
#else
20240
 
char (*f) () = $ac_func;
20241
 
#endif
20242
 
#ifdef __cplusplus
20243
 
}
20244
20854
#endif
20245
20855
 
20246
20856
int
20247
20857
main ()
20248
20858
{
20249
 
return f != $ac_func;
 
20859
return $ac_func ();
20250
20860
  ;
20251
20861
  return 0;
20252
20862
}
20253
20863
_ACEOF
20254
20864
rm -f conftest.$ac_objext conftest$ac_exeext
20255
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20256
 
  (eval $ac_link) 2>conftest.er1
 
20865
if { (ac_try="$ac_link"
 
20866
case "(($ac_try" in
 
20867
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20868
  *) ac_try_echo=$ac_try;;
 
20869
esac
 
20870
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20871
  (eval "$ac_link") 2>conftest.er1
20257
20872
  ac_status=$?
20258
20873
  grep -v '^ *+' conftest.er1 >conftest.err
20259
20874
  rm -f conftest.er1
20260
20875
  cat conftest.err >&5
20261
20876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262
20877
  (exit $ac_status); } &&
20263
 
         { ac_try='test -z "$ac_c_werror_flag"
20264
 
                         || test ! -s conftest.err'
20265
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20266
 
  (eval $ac_try) 2>&5
 
20878
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20879
  { (case "(($ac_try" in
 
20880
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20881
  *) ac_try_echo=$ac_try;;
 
20882
esac
 
20883
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20884
  (eval "$ac_try") 2>&5
20267
20885
  ac_status=$?
20268
20886
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269
20887
  (exit $ac_status); }; } &&
20270
20888
         { ac_try='test -s conftest$ac_exeext'
20271
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20272
 
  (eval $ac_try) 2>&5
 
20889
  { (case "(($ac_try" in
 
20890
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20891
  *) ac_try_echo=$ac_try;;
 
20892
esac
 
20893
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20894
  (eval "$ac_try") 2>&5
20273
20895
  ac_status=$?
20274
20896
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275
20897
  (exit $ac_status); }; }; then
20278
20900
  echo "$as_me: failed program was:" >&5
20279
20901
sed 's/^/| /' conftest.$ac_ext >&5
20280
20902
 
20281
 
eval "$as_ac_var=no"
 
20903
        eval "$as_ac_var=no"
20282
20904
fi
20283
 
rm -f conftest.err conftest.$ac_objext \
 
20905
 
 
20906
rm -f core conftest.err conftest.$ac_objext \
20284
20907
      conftest$ac_exeext conftest.$ac_ext
20285
20908
fi
20286
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20287
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
20909
ac_res=`eval echo '${'$as_ac_var'}'`
 
20910
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20911
echo "${ECHO_T}$ac_res" >&6; }
20288
20912
if test `eval echo '${'$as_ac_var'}'` = yes; then
20289
20913
  cat >>confdefs.h <<_ACEOF
20290
20914
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20293
20917
fi
20294
20918
done
20295
20919
 
20296
 
echo "$as_me:$LINENO: checking for FT_Bitmap_Size.y_ppem" >&5
20297
 
echo $ECHO_N "checking for FT_Bitmap_Size.y_ppem... $ECHO_C" >&6
 
20920
{ echo "$as_me:$LINENO: checking for FT_Bitmap_Size.y_ppem" >&5
 
20921
echo $ECHO_N "checking for FT_Bitmap_Size.y_ppem... $ECHO_C" >&6; }
20298
20922
if test "${ac_cv_member_FT_Bitmap_Size_y_ppem+set}" = set; then
20299
20923
  echo $ECHO_N "(cached) $ECHO_C" >&6
20300
20924
else
20318
20942
}
20319
20943
_ACEOF
20320
20944
rm -f conftest.$ac_objext
20321
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20322
 
  (eval $ac_compile) 2>conftest.er1
 
20945
if { (ac_try="$ac_compile"
 
20946
case "(($ac_try" in
 
20947
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20948
  *) ac_try_echo=$ac_try;;
 
20949
esac
 
20950
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20951
  (eval "$ac_compile") 2>conftest.er1
20323
20952
  ac_status=$?
20324
20953
  grep -v '^ *+' conftest.er1 >conftest.err
20325
20954
  rm -f conftest.er1
20326
20955
  cat conftest.err >&5
20327
20956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328
20957
  (exit $ac_status); } &&
20329
 
         { ac_try='test -z "$ac_c_werror_flag"
20330
 
                         || test ! -s conftest.err'
20331
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20332
 
  (eval $ac_try) 2>&5
 
20958
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20959
  { (case "(($ac_try" in
 
20960
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20961
  *) ac_try_echo=$ac_try;;
 
20962
esac
 
20963
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20964
  (eval "$ac_try") 2>&5
20333
20965
  ac_status=$?
20334
20966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335
20967
  (exit $ac_status); }; } &&
20336
20968
         { ac_try='test -s conftest.$ac_objext'
20337
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20338
 
  (eval $ac_try) 2>&5
 
20969
  { (case "(($ac_try" in
 
20970
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20971
  *) ac_try_echo=$ac_try;;
 
20972
esac
 
20973
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20974
  (eval "$ac_try") 2>&5
20339
20975
  ac_status=$?
20340
20976
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341
20977
  (exit $ac_status); }; }; then
20344
20980
  echo "$as_me: failed program was:" >&5
20345
20981
sed 's/^/| /' conftest.$ac_ext >&5
20346
20982
 
20347
 
cat >conftest.$ac_ext <<_ACEOF
 
20983
        cat >conftest.$ac_ext <<_ACEOF
20348
20984
/* confdefs.h.  */
20349
20985
_ACEOF
20350
20986
cat confdefs.h >>conftest.$ac_ext
20364
21000
}
20365
21001
_ACEOF
20366
21002
rm -f conftest.$ac_objext
20367
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20368
 
  (eval $ac_compile) 2>conftest.er1
 
21003
if { (ac_try="$ac_compile"
 
21004
case "(($ac_try" in
 
21005
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21006
  *) ac_try_echo=$ac_try;;
 
21007
esac
 
21008
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21009
  (eval "$ac_compile") 2>conftest.er1
20369
21010
  ac_status=$?
20370
21011
  grep -v '^ *+' conftest.er1 >conftest.err
20371
21012
  rm -f conftest.er1
20372
21013
  cat conftest.err >&5
20373
21014
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374
21015
  (exit $ac_status); } &&
20375
 
         { ac_try='test -z "$ac_c_werror_flag"
20376
 
                         || test ! -s conftest.err'
20377
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20378
 
  (eval $ac_try) 2>&5
 
21016
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
21017
  { (case "(($ac_try" in
 
21018
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21019
  *) ac_try_echo=$ac_try;;
 
21020
esac
 
21021
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21022
  (eval "$ac_try") 2>&5
20379
21023
  ac_status=$?
20380
21024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381
21025
  (exit $ac_status); }; } &&
20382
21026
         { ac_try='test -s conftest.$ac_objext'
20383
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20384
 
  (eval $ac_try) 2>&5
 
21027
  { (case "(($ac_try" in
 
21028
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21029
  *) ac_try_echo=$ac_try;;
 
21030
esac
 
21031
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21032
  (eval "$ac_try") 2>&5
20385
21033
  ac_status=$?
20386
21034
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387
21035
  (exit $ac_status); }; }; then
20390
21038
  echo "$as_me: failed program was:" >&5
20391
21039
sed 's/^/| /' conftest.$ac_ext >&5
20392
21040
 
20393
 
ac_cv_member_FT_Bitmap_Size_y_ppem=no
20394
 
fi
20395
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20396
 
fi
20397
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20398
 
fi
20399
 
echo "$as_me:$LINENO: result: $ac_cv_member_FT_Bitmap_Size_y_ppem" >&5
20400
 
echo "${ECHO_T}$ac_cv_member_FT_Bitmap_Size_y_ppem" >&6
 
21041
        ac_cv_member_FT_Bitmap_Size_y_ppem=no
 
21042
fi
 
21043
 
 
21044
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21045
fi
 
21046
 
 
21047
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21048
fi
 
21049
{ echo "$as_me:$LINENO: result: $ac_cv_member_FT_Bitmap_Size_y_ppem" >&5
 
21050
echo "${ECHO_T}$ac_cv_member_FT_Bitmap_Size_y_ppem" >&6; }
20401
21051
if test $ac_cv_member_FT_Bitmap_Size_y_ppem = yes; then
20402
21052
  HAVE_FT_BITMAP_SIZE_Y_PPEM=1
20403
21053
else
20428
21078
 
20429
21079
 
20430
21080
 
20431
 
# Check whether --with-release-version or --without-release-version was given.
 
21081
# Check whether --with-release-version was given.
20432
21082
if test "${with_release_version+set}" = set; then
20433
 
  withval="$with_release_version"
20434
 
  RELEASE_VERSION="$withval"
 
21083
  withval=$with_release_version; RELEASE_VERSION="$withval"
20435
21084
else
20436
21085
  RELEASE_VERSION=""
20437
 
fi;
 
21086
fi
 
21087
 
20438
21088
        if test "x$RELEASE_VERSION" != "x"; then
20439
21089
                PACKAGE="$PACKAGE-$RELEASE_VERSION"
20440
21090
                PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
20443
21093
        fi
20444
21094
 
20445
21095
 
20446
 
                                                                      ac_config_files="$ac_config_files Makefile xft.pc xft-config src/Makefile man/Makefile man/xft-config.1 man/Xft.3"
 
21096
ac_config_files="$ac_config_files Makefile xft.pc xft-config src/Makefile man/Makefile man/xft-config.1 man/Xft.3"
 
21097
 
20447
21098
cat >confcache <<\_ACEOF
20448
21099
# This file is a shell script that caches the results of configure
20449
21100
# tests run on this system so they can be shared between configure
20462
21113
 
20463
21114
# The following way of writing the cache mishandles newlines in values,
20464
21115
# but we know of no workaround that is simple, portable, and efficient.
20465
 
# So, don't put newlines in cache variables' values.
 
21116
# So, we kill variables containing newlines.
20466
21117
# Ultrix sh set writes to stderr and can't be redirected directly,
20467
21118
# and sets the high bit in the cache file unless we assign to the vars.
20468
 
{
 
21119
(
 
21120
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
21121
    eval ac_val=\$$ac_var
 
21122
    case $ac_val in #(
 
21123
    *${as_nl}*)
 
21124
      case $ac_var in #(
 
21125
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
21126
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
21127
      esac
 
21128
      case $ac_var in #(
 
21129
      _ | IFS | as_nl) ;; #(
 
21130
      *) $as_unset $ac_var ;;
 
21131
      esac ;;
 
21132
    esac
 
21133
  done
 
21134
 
20469
21135
  (set) 2>&1 |
20470
 
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
20471
 
    *ac_space=\ *)
 
21136
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
21137
    *${as_nl}ac_space=\ *)
20472
21138
      # `set' does not quote correctly, so add quotes (double-quote
20473
21139
      # substitution turns \\\\ into \\, and sed turns \\ into \).
20474
21140
      sed -n \
20475
21141
        "s/'/'\\\\''/g;
20476
21142
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20477
 
      ;;
 
21143
      ;; #(
20478
21144
    *)
20479
21145
      # `set' quotes correctly as required by POSIX, so do not add quotes.
20480
 
      sed -n \
20481
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
21146
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20482
21147
      ;;
20483
 
    esac;
20484
 
} |
 
21148
    esac |
 
21149
    sort
 
21150
) |
20485
21151
  sed '
 
21152
     /^ac_cv_env_/b end
20486
21153
     t clear
20487
 
     : clear
 
21154
     :clear
20488
21155
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20489
21156
     t end
20490
 
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20491
 
     : end' >>confcache
20492
 
if diff $cache_file confcache >/dev/null 2>&1; then :; else
20493
 
  if test -w $cache_file; then
20494
 
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
21157
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
21158
     :end' >>confcache
 
21159
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
21160
  if test -w "$cache_file"; then
 
21161
    test "x$cache_file" != "x/dev/null" &&
 
21162
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
21163
echo "$as_me: updating cache $cache_file" >&6;}
20495
21164
    cat confcache >$cache_file
20496
21165
  else
20497
 
    echo "not updating unwritable cache $cache_file"
 
21166
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
21167
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20498
21168
  fi
20499
21169
fi
20500
21170
rm -f confcache
20503
21173
# Let make expand exec_prefix.
20504
21174
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20505
21175
 
20506
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
20507
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20508
 
# trailing colons and then remove the whole line if VPATH becomes empty
20509
 
# (actually we leave an empty line to preserve line numbers).
20510
 
if test "x$srcdir" = x.; then
20511
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
20512
 
s/:*\$(srcdir):*/:/;
20513
 
s/:*\${srcdir}:*/:/;
20514
 
s/:*@srcdir@:*/:/;
20515
 
s/^\([^=]*=[     ]*\):*/\1/;
20516
 
s/:*$//;
20517
 
s/^[^=]*=[       ]*$//;
20518
 
}'
20519
 
fi
20520
 
 
20521
21176
DEFS=-DHAVE_CONFIG_H
20522
21177
 
20523
21178
ac_libobjs=
20524
21179
ac_ltlibobjs=
20525
21180
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20526
21181
  # 1. Remove the extension, and $U if already installed.
20527
 
  ac_i=`echo "$ac_i" |
20528
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20529
 
  # 2. Add them.
20530
 
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20531
 
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
21182
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
21183
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
21184
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
21185
  #    will be set to the directory where LIBOBJS objects are built.
 
21186
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
21187
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20532
21188
done
20533
21189
LIBOBJS=$ac_libobjs
20534
21190
 
20594
21250
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20595
21251
  # is contrary to our usage.  Disable this feature.
20596
21252
  alias -g '${1+"$@"}'='"$@"'
20597
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20598
 
  set -o posix
 
21253
  setopt NO_GLOB_SUBST
 
21254
else
 
21255
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20599
21256
fi
 
21257
BIN_SH=xpg4; export BIN_SH # for Tru64
20600
21258
DUALCASE=1; export DUALCASE # for MKS sh
20601
21259
 
 
21260
 
 
21261
# PATH needs CR
 
21262
# Avoid depending upon Character Ranges.
 
21263
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
21264
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
21265
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
21266
as_cr_digits='0123456789'
 
21267
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
21268
 
 
21269
# The user is always right.
 
21270
if test "${PATH_SEPARATOR+set}" != set; then
 
21271
  echo "#! /bin/sh" >conf$$.sh
 
21272
  echo  "exit 0"   >>conf$$.sh
 
21273
  chmod +x conf$$.sh
 
21274
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
21275
    PATH_SEPARATOR=';'
 
21276
  else
 
21277
    PATH_SEPARATOR=:
 
21278
  fi
 
21279
  rm -f conf$$.sh
 
21280
fi
 
21281
 
20602
21282
# Support unset when possible.
20603
21283
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20604
21284
  as_unset=unset
20607
21287
fi
20608
21288
 
20609
21289
 
 
21290
# IFS
 
21291
# We need space, tab and new line, in precisely that order.  Quoting is
 
21292
# there to prevent editors from complaining about space-tab.
 
21293
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
21294
# splitting by setting IFS to empty value.)
 
21295
as_nl='
 
21296
'
 
21297
IFS=" ""        $as_nl"
 
21298
 
 
21299
# Find who we are.  Look in the path if we contain no directory separator.
 
21300
case $0 in
 
21301
  *[\\/]* ) as_myself=$0 ;;
 
21302
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21303
for as_dir in $PATH
 
21304
do
 
21305
  IFS=$as_save_IFS
 
21306
  test -z "$as_dir" && as_dir=.
 
21307
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
21308
done
 
21309
IFS=$as_save_IFS
 
21310
 
 
21311
     ;;
 
21312
esac
 
21313
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
21314
# in which case we are not to be found in the path.
 
21315
if test "x$as_myself" = x; then
 
21316
  as_myself=$0
 
21317
fi
 
21318
if test ! -f "$as_myself"; then
 
21319
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
21320
  { (exit 1); exit 1; }
 
21321
fi
 
21322
 
20610
21323
# Work around bugs in pre-3.0 UWIN ksh.
20611
 
$as_unset ENV MAIL MAILPATH
 
21324
for as_var in ENV MAIL MAILPATH
 
21325
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
21326
done
20612
21327
PS1='$ '
20613
21328
PS2='> '
20614
21329
PS4='+ '
20622
21337
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20623
21338
    eval $as_var=C; export $as_var
20624
21339
  else
20625
 
    $as_unset $as_var
 
21340
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20626
21341
  fi
20627
21342
done
20628
21343
 
20629
21344
# Required to use basename.
20630
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
21345
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
21346
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20631
21347
  as_expr=expr
20632
21348
else
20633
21349
  as_expr=false
20634
21350
fi
20635
21351
 
20636
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
21352
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20637
21353
  as_basename=basename
20638
21354
else
20639
21355
  as_basename=false
20641
21357
 
20642
21358
 
20643
21359
# Name of the executable.
20644
 
as_me=`$as_basename "$0" ||
 
21360
as_me=`$as_basename -- "$0" ||
20645
21361
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20646
21362
         X"$0" : 'X\(//\)$' \| \
20647
 
         X"$0" : 'X\(/\)$' \| \
20648
 
         .     : '\(.\)' 2>/dev/null ||
 
21363
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20649
21364
echo X/"$0" |
20650
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20651
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
20652
 
          /^X\/\(\/\).*/{ s//\1/; q; }
20653
 
          s/.*/./; q'`
20654
 
 
20655
 
 
20656
 
# PATH needs CR, and LINENO needs CR and PATH.
20657
 
# Avoid depending upon Character Ranges.
20658
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20659
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20660
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20661
 
as_cr_digits='0123456789'
20662
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
20663
 
 
20664
 
# The user is always right.
20665
 
if test "${PATH_SEPARATOR+set}" != set; then
20666
 
  echo "#! /bin/sh" >conf$$.sh
20667
 
  echo  "exit 0"   >>conf$$.sh
20668
 
  chmod +x conf$$.sh
20669
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20670
 
    PATH_SEPARATOR=';'
20671
 
  else
20672
 
    PATH_SEPARATOR=:
20673
 
  fi
20674
 
  rm -f conf$$.sh
20675
 
fi
20676
 
 
20677
 
 
20678
 
  as_lineno_1=$LINENO
20679
 
  as_lineno_2=$LINENO
20680
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20681
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
20682
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20683
 
  # Find who we are.  Look in the path if we contain no path at all
20684
 
  # relative or not.
20685
 
  case $0 in
20686
 
    *[\\/]* ) as_myself=$0 ;;
20687
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20688
 
for as_dir in $PATH
20689
 
do
20690
 
  IFS=$as_save_IFS
20691
 
  test -z "$as_dir" && as_dir=.
20692
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20693
 
done
20694
 
 
20695
 
       ;;
20696
 
  esac
20697
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
20698
 
  # in which case we are not to be found in the path.
20699
 
  if test "x$as_myself" = x; then
20700
 
    as_myself=$0
20701
 
  fi
20702
 
  if test ! -f "$as_myself"; then
20703
 
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20704
 
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20705
 
   { (exit 1); exit 1; }; }
20706
 
  fi
20707
 
  case $CONFIG_SHELL in
20708
 
  '')
20709
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20710
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20711
 
do
20712
 
  IFS=$as_save_IFS
20713
 
  test -z "$as_dir" && as_dir=.
20714
 
  for as_base in sh bash ksh sh5; do
20715
 
         case $as_dir in
20716
 
         /*)
20717
 
           if ("$as_dir/$as_base" -c '
20718
 
  as_lineno_1=$LINENO
20719
 
  as_lineno_2=$LINENO
20720
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20721
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
20722
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20723
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20724
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20725
 
             CONFIG_SHELL=$as_dir/$as_base
20726
 
             export CONFIG_SHELL
20727
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20728
 
           fi;;
20729
 
         esac
20730
 
       done
20731
 
done
20732
 
;;
20733
 
  esac
 
21365
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
21366
            s//\1/
 
21367
            q
 
21368
          }
 
21369
          /^X\/\(\/\/\)$/{
 
21370
            s//\1/
 
21371
            q
 
21372
          }
 
21373
          /^X\/\(\/\).*/{
 
21374
            s//\1/
 
21375
            q
 
21376
          }
 
21377
          s/.*/./; q'`
 
21378
 
 
21379
# CDPATH.
 
21380
$as_unset CDPATH
 
21381
 
 
21382
 
 
21383
 
 
21384
  as_lineno_1=$LINENO
 
21385
  as_lineno_2=$LINENO
 
21386
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
21387
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20734
21388
 
20735
21389
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20736
21390
  # uniformly replaced by the line number.  The first 'sed' inserts a
20737
 
  # line-number line before each line; the second 'sed' does the real
20738
 
  # work.  The second script uses 'N' to pair each line-number line
20739
 
  # with the numbered line, and appends trailing '-' during
20740
 
  # substitution so that $LINENO is not a special case at line end.
 
21391
  # line-number line after each line using $LINENO; the second 'sed'
 
21392
  # does the real work.  The second script uses 'N' to pair each
 
21393
  # line-number line with the line containing $LINENO, and appends
 
21394
  # trailing '-' during substitution so that $LINENO is not a special
 
21395
  # case at line end.
20741
21396
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20742
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20743
 
  sed '=' <$as_myself |
 
21397
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
21398
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
21399
  sed -n '
 
21400
    p
 
21401
    /[$]LINENO/=
 
21402
  ' <$as_myself |
20744
21403
    sed '
 
21404
      s/[$]LINENO.*/&-/
 
21405
      t lineno
 
21406
      b
 
21407
      :lineno
20745
21408
      N
20746
 
      s,$,-,
20747
 
      : loop
20748
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
21409
      :loop
 
21410
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20749
21411
      t loop
20750
 
      s,-$,,
20751
 
      s,^['$as_cr_digits']*\n,,
 
21412
      s/-\n.*//
20752
21413
    ' >$as_me.lineno &&
20753
 
  chmod +x $as_me.lineno ||
20754
 
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20755
 
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
21414
  chmod +x "$as_me.lineno" ||
 
21415
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20756
21416
   { (exit 1); exit 1; }; }
20757
21417
 
20758
21418
  # Don't try to exec as it changes $[0], causing all sort of problems
20759
21419
  # (the dirname of $[0] is not the place where we might find the
20760
 
  # original and so on.  Autoconf is especially sensible to this).
20761
 
  . ./$as_me.lineno
 
21420
  # original and so on.  Autoconf is especially sensitive to this).
 
21421
  . "./$as_me.lineno"
20762
21422
  # Exit status is that of the last command.
20763
21423
  exit
20764
21424
}
20765
21425
 
20766
21426
 
20767
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20768
 
  *c*,-n*) ECHO_N= ECHO_C='
20769
 
' ECHO_T='      ' ;;
20770
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20771
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
21427
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
21428
  as_dirname=dirname
 
21429
else
 
21430
  as_dirname=false
 
21431
fi
 
21432
 
 
21433
ECHO_C= ECHO_N= ECHO_T=
 
21434
case `echo -n x` in
 
21435
-n*)
 
21436
  case `echo 'x\c'` in
 
21437
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
21438
  *)   ECHO_C='\c';;
 
21439
  esac;;
 
21440
*)
 
21441
  ECHO_N='-n';;
20772
21442
esac
20773
21443
 
20774
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
21444
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
21445
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20775
21446
  as_expr=expr
20776
21447
else
20777
21448
  as_expr=false
20778
21449
fi
20779
21450
 
20780
21451
rm -f conf$$ conf$$.exe conf$$.file
 
21452
if test -d conf$$.dir; then
 
21453
  rm -f conf$$.dir/conf$$.file
 
21454
else
 
21455
  rm -f conf$$.dir
 
21456
  mkdir conf$$.dir
 
21457
fi
20781
21458
echo >conf$$.file
20782
21459
if ln -s conf$$.file conf$$ 2>/dev/null; then
20783
 
  # We could just check for DJGPP; but this test a) works b) is more generic
20784
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20785
 
  if test -f conf$$.exe; then
20786
 
    # Don't use ln at all; we don't have any links
 
21460
  as_ln_s='ln -s'
 
21461
  # ... but there are two gotchas:
 
21462
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
21463
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
21464
  # In both cases, we have to default to `cp -p'.
 
21465
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20787
21466
    as_ln_s='cp -p'
20788
 
  else
20789
 
    as_ln_s='ln -s'
20790
 
  fi
20791
21467
elif ln conf$$.file conf$$ 2>/dev/null; then
20792
21468
  as_ln_s=ln
20793
21469
else
20794
21470
  as_ln_s='cp -p'
20795
21471
fi
20796
 
rm -f conf$$ conf$$.exe conf$$.file
 
21472
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
21473
rmdir conf$$.dir 2>/dev/null
20797
21474
 
20798
21475
if mkdir -p . 2>/dev/null; then
20799
21476
  as_mkdir_p=:
20802
21479
  as_mkdir_p=false
20803
21480
fi
20804
21481
 
20805
 
as_executable_p="test -f"
 
21482
# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
 
21483
# systems may use methods other than mode bits to determine executability.
 
21484
cat >conf$$.file <<_ASEOF
 
21485
#! /bin/sh
 
21486
exit 0
 
21487
_ASEOF
 
21488
chmod +x conf$$.file
 
21489
if test -x conf$$.file >/dev/null 2>&1; then
 
21490
  as_executable_p="test -x"
 
21491
else
 
21492
  as_executable_p=:
 
21493
fi
 
21494
rm -f conf$$.file
20806
21495
 
20807
21496
# Sed expression to map a string onto a valid CPP name.
20808
21497
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20811
21500
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20812
21501
 
20813
21502
 
20814
 
# IFS
20815
 
# We need space, tab and new line, in precisely that order.
20816
 
as_nl='
20817
 
'
20818
 
IFS="   $as_nl"
20819
 
 
20820
 
# CDPATH.
20821
 
$as_unset CDPATH
20822
 
 
20823
21503
exec 6>&1
20824
21504
 
20825
 
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
21505
# Save the log message, to keep $[0] and so on meaningful, and to
20826
21506
# report actual input values of CONFIG_FILES etc. instead of their
20827
 
# values after options handling.  Logging --version etc. is OK.
20828
 
exec 5>>config.log
20829
 
{
20830
 
  echo
20831
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20832
 
## Running $as_me. ##
20833
 
_ASBOX
20834
 
} >&5
20835
 
cat >&5 <<_CSEOF
20836
 
 
20837
 
This file was extended by libXft $as_me 2.1.8.2, which was
20838
 
generated by GNU Autoconf 2.59.  Invocation command line was
 
21507
# values after options handling.
 
21508
ac_log="
 
21509
This file was extended by libXft $as_me 2.1.10, which was
 
21510
generated by GNU Autoconf 2.60.  Invocation command line was
20839
21511
 
20840
21512
  CONFIG_FILES    = $CONFIG_FILES
20841
21513
  CONFIG_HEADERS  = $CONFIG_HEADERS
20843
21515
  CONFIG_COMMANDS = $CONFIG_COMMANDS
20844
21516
  $ $0 $@
20845
21517
 
20846
 
_CSEOF
20847
 
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20848
 
echo >&5
 
21518
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
21519
"
 
21520
 
20849
21521
_ACEOF
20850
21522
 
 
21523
cat >>$CONFIG_STATUS <<_ACEOF
20851
21524
# Files that config.status was made for.
20852
 
if test -n "$ac_config_files"; then
20853
 
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20854
 
fi
20855
 
 
20856
 
if test -n "$ac_config_headers"; then
20857
 
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20858
 
fi
20859
 
 
20860
 
if test -n "$ac_config_links"; then
20861
 
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20862
 
fi
20863
 
 
20864
 
if test -n "$ac_config_commands"; then
20865
 
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20866
 
fi
 
21525
config_files="$ac_config_files"
 
21526
config_headers="$ac_config_headers"
 
21527
config_commands="$ac_config_commands"
 
21528
 
 
21529
_ACEOF
20867
21530
 
20868
21531
cat >>$CONFIG_STATUS <<\_ACEOF
20869
 
 
20870
21532
ac_cs_usage="\
20871
21533
\`$as_me' instantiates files from templates according to the
20872
21534
current configuration.
20893
21555
$config_commands
20894
21556
 
20895
21557
Report bugs to <bug-autoconf@gnu.org>."
 
21558
 
20896
21559
_ACEOF
20897
 
 
20898
21560
cat >>$CONFIG_STATUS <<_ACEOF
20899
21561
ac_cs_version="\\
20900
 
libXft config.status 2.1.8.2
20901
 
configured by $0, generated by GNU Autoconf 2.59,
20902
 
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
21562
libXft config.status 2.1.10
 
21563
configured by $0, generated by GNU Autoconf 2.60,
 
21564
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20903
21565
 
20904
 
Copyright (C) 2003 Free Software Foundation, Inc.
 
21566
Copyright (C) 2006 Free Software Foundation, Inc.
20905
21567
This config.status script is free software; the Free Software Foundation
20906
21568
gives unlimited permission to copy, distribute and modify it."
20907
 
srcdir=$srcdir
20908
 
INSTALL="$INSTALL"
 
21569
 
 
21570
ac_pwd='$ac_pwd'
 
21571
srcdir='$srcdir'
 
21572
INSTALL='$INSTALL'
20909
21573
_ACEOF
20910
21574
 
20911
21575
cat >>$CONFIG_STATUS <<\_ACEOF
20916
21580
do
20917
21581
  case $1 in
20918
21582
  --*=*)
20919
 
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
20920
 
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
21583
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
21584
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20921
21585
    ac_shift=:
20922
21586
    ;;
20923
 
  -*)
 
21587
  *)
20924
21588
    ac_option=$1
20925
21589
    ac_optarg=$2
20926
21590
    ac_shift=shift
20927
21591
    ;;
20928
 
  *) # This is not an option, so the user has probably given explicit
20929
 
     # arguments.
20930
 
     ac_option=$1
20931
 
     ac_need_defaults=false;;
20932
21592
  esac
20933
21593
 
20934
21594
  case $ac_option in
20935
21595
  # Handling of the options.
20936
 
_ACEOF
20937
 
cat >>$CONFIG_STATUS <<\_ACEOF
20938
21596
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20939
21597
    ac_cs_recheck=: ;;
20940
 
  --version | --vers* | -V )
20941
 
    echo "$ac_cs_version"; exit 0 ;;
20942
 
  --he | --h)
20943
 
    # Conflict between --help and --header
20944
 
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
20945
 
Try \`$0 --help' for more information." >&5
20946
 
echo "$as_me: error: ambiguous option: $1
20947
 
Try \`$0 --help' for more information." >&2;}
20948
 
   { (exit 1); exit 1; }; };;
20949
 
  --help | --hel | -h )
20950
 
    echo "$ac_cs_usage"; exit 0 ;;
20951
 
  --debug | --d* | -d )
 
21598
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
21599
    echo "$ac_cs_version"; exit ;;
 
21600
  --debug | --debu | --deb | --de | --d | -d )
20952
21601
    debug=: ;;
20953
21602
  --file | --fil | --fi | --f )
20954
21603
    $ac_shift
20958
21607
    $ac_shift
20959
21608
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20960
21609
    ac_need_defaults=false;;
 
21610
  --he | --h)
 
21611
    # Conflict between --help and --header
 
21612
    { echo "$as_me: error: ambiguous option: $1
 
21613
Try \`$0 --help' for more information." >&2
 
21614
   { (exit 1); exit 1; }; };;
 
21615
  --help | --hel | -h )
 
21616
    echo "$ac_cs_usage"; exit ;;
20961
21617
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20962
21618
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20963
21619
    ac_cs_silent=: ;;
20964
21620
 
20965
21621
  # This is an error.
20966
 
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20967
 
Try \`$0 --help' for more information." >&5
20968
 
echo "$as_me: error: unrecognized option: $1
20969
 
Try \`$0 --help' for more information." >&2;}
 
21622
  -*) { echo "$as_me: error: unrecognized option: $1
 
21623
Try \`$0 --help' for more information." >&2
20970
21624
   { (exit 1); exit 1; }; } ;;
20971
21625
 
20972
 
  *) ac_config_targets="$ac_config_targets $1" ;;
 
21626
  *) ac_config_targets="$ac_config_targets $1"
 
21627
     ac_need_defaults=false ;;
20973
21628
 
20974
21629
  esac
20975
21630
  shift
20985
21640
_ACEOF
20986
21641
cat >>$CONFIG_STATUS <<_ACEOF
20987
21642
if \$ac_cs_recheck; then
20988
 
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20989
 
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
21643
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
21644
  CONFIG_SHELL=$SHELL
 
21645
  export CONFIG_SHELL
 
21646
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20990
21647
fi
20991
21648
 
20992
21649
_ACEOF
 
21650
cat >>$CONFIG_STATUS <<\_ACEOF
 
21651
exec 5>>config.log
 
21652
{
 
21653
  echo
 
21654
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
21655
## Running $as_me. ##
 
21656
_ASBOX
 
21657
  echo "$ac_log"
 
21658
} >&5
20993
21659
 
 
21660
_ACEOF
20994
21661
cat >>$CONFIG_STATUS <<_ACEOF
20995
21662
#
20996
 
# INIT-COMMANDS section.
 
21663
# INIT-COMMANDS
20997
21664
#
20998
 
 
20999
21665
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21000
21666
 
21001
21667
_ACEOF
21002
21668
 
21003
 
 
21004
 
 
21005
21669
cat >>$CONFIG_STATUS <<\_ACEOF
 
21670
 
 
21671
# Handling of arguments.
21006
21672
for ac_config_target in $ac_config_targets
21007
21673
do
21008
 
  case "$ac_config_target" in
21009
 
  # Handling of arguments.
21010
 
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21011
 
  "xft.pc" ) CONFIG_FILES="$CONFIG_FILES xft.pc" ;;
21012
 
  "xft-config" ) CONFIG_FILES="$CONFIG_FILES xft-config" ;;
21013
 
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21014
 
  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21015
 
  "man/xft-config.1" ) CONFIG_FILES="$CONFIG_FILES man/xft-config.1" ;;
21016
 
  "man/Xft.3" ) CONFIG_FILES="$CONFIG_FILES man/Xft.3" ;;
21017
 
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21018
 
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
21674
  case $ac_config_target in
 
21675
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
21676
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
21677
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
21678
    "xft.pc") CONFIG_FILES="$CONFIG_FILES xft.pc" ;;
 
21679
    "xft-config") CONFIG_FILES="$CONFIG_FILES xft-config" ;;
 
21680
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
21681
    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
 
21682
    "man/xft-config.1") CONFIG_FILES="$CONFIG_FILES man/xft-config.1" ;;
 
21683
    "man/Xft.3") CONFIG_FILES="$CONFIG_FILES man/Xft.3" ;;
 
21684
 
21019
21685
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21020
21686
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21021
21687
   { (exit 1); exit 1; }; };;
21022
21688
  esac
21023
21689
done
21024
21690
 
 
21691
 
21025
21692
# If the user did not use the arguments to specify the items to instantiate,
21026
21693
# then the envvar interface is used.  Set only those that are not.
21027
21694
# We use the long form for the default assignment because of an extremely
21033
21700
fi
21034
21701
 
21035
21702
# Have a temporary directory for convenience.  Make it in the build tree
21036
 
# simply because there is no reason to put it here, and in addition,
 
21703
# simply because there is no reason against having it here, and in addition,
21037
21704
# creating and moving files from /tmp can sometimes cause problems.
21038
 
# Create a temporary directory, and hook for its removal unless debugging.
 
21705
# Hook for its removal unless debugging.
 
21706
# Note that there is a small window in which the directory will not be cleaned:
 
21707
# after its creation but before its name has been assigned to `$tmp'.
21039
21708
$debug ||
21040
21709
{
21041
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
21710
  tmp=
 
21711
  trap 'exit_status=$?
 
21712
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
21713
' 0
21042
21714
  trap '{ (exit 1); exit 1; }' 1 2 13 15
21043
21715
}
21044
 
 
21045
21716
# Create a (secure) tmp directory for tmp files.
21046
21717
 
21047
21718
{
21048
 
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
21719
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21049
21720
  test -n "$tmp" && test -d "$tmp"
21050
21721
}  ||
21051
21722
{
21052
 
  tmp=./confstat$$-$RANDOM
21053
 
  (umask 077 && mkdir $tmp)
 
21723
  tmp=./conf$$-$RANDOM
 
21724
  (umask 077 && mkdir "$tmp")
21054
21725
} ||
21055
21726
{
21056
21727
   echo "$me: cannot create a temporary directory in ." >&2
21057
21728
   { (exit 1); exit 1; }
21058
21729
}
21059
21730
 
21060
 
_ACEOF
21061
 
 
21062
 
cat >>$CONFIG_STATUS <<_ACEOF
21063
 
 
21064
21731
#
21065
 
# CONFIG_FILES section.
 
21732
# Set up the sed scripts for CONFIG_FILES section.
21066
21733
#
21067
21734
 
21068
21735
# No need to generate the scripts if there are no CONFIG_FILES.
21069
21736
# This happens for instance when ./config.status config.h
21070
 
if test -n "\$CONFIG_FILES"; then
21071
 
  # Protect against being on the right side of a sed subst in config.status.
21072
 
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21073
 
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21074
 
s,@SHELL@,$SHELL,;t t
21075
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21076
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21077
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21078
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21079
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21080
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21081
 
s,@exec_prefix@,$exec_prefix,;t t
21082
 
s,@prefix@,$prefix,;t t
21083
 
s,@program_transform_name@,$program_transform_name,;t t
21084
 
s,@bindir@,$bindir,;t t
21085
 
s,@sbindir@,$sbindir,;t t
21086
 
s,@libexecdir@,$libexecdir,;t t
21087
 
s,@datadir@,$datadir,;t t
21088
 
s,@sysconfdir@,$sysconfdir,;t t
21089
 
s,@sharedstatedir@,$sharedstatedir,;t t
21090
 
s,@localstatedir@,$localstatedir,;t t
21091
 
s,@libdir@,$libdir,;t t
21092
 
s,@includedir@,$includedir,;t t
21093
 
s,@oldincludedir@,$oldincludedir,;t t
21094
 
s,@infodir@,$infodir,;t t
21095
 
s,@mandir@,$mandir,;t t
21096
 
s,@build_alias@,$build_alias,;t t
21097
 
s,@host_alias@,$host_alias,;t t
21098
 
s,@target_alias@,$target_alias,;t t
21099
 
s,@DEFS@,$DEFS,;t t
21100
 
s,@ECHO_C@,$ECHO_C,;t t
21101
 
s,@ECHO_N@,$ECHO_N,;t t
21102
 
s,@ECHO_T@,$ECHO_T,;t t
21103
 
s,@LIBS@,$LIBS,;t t
21104
 
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21105
 
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21106
 
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21107
 
s,@CYGPATH_W@,$CYGPATH_W,;t t
21108
 
s,@PACKAGE@,$PACKAGE,;t t
21109
 
s,@VERSION@,$VERSION,;t t
21110
 
s,@ACLOCAL@,$ACLOCAL,;t t
21111
 
s,@AUTOCONF@,$AUTOCONF,;t t
21112
 
s,@AUTOMAKE@,$AUTOMAKE,;t t
21113
 
s,@AUTOHEADER@,$AUTOHEADER,;t t
21114
 
s,@MAKEINFO@,$MAKEINFO,;t t
21115
 
s,@AMTAR@,$AMTAR,;t t
21116
 
s,@install_sh@,$install_sh,;t t
21117
 
s,@STRIP@,$STRIP,;t t
21118
 
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21119
 
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21120
 
s,@AWK@,$AWK,;t t
21121
 
s,@SET_MAKE@,$SET_MAKE,;t t
21122
 
s,@am__leading_dot@,$am__leading_dot,;t t
21123
 
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21124
 
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21125
 
s,@MAINT@,$MAINT,;t t
21126
 
s,@CC@,$CC,;t t
21127
 
s,@CFLAGS@,$CFLAGS,;t t
21128
 
s,@LDFLAGS@,$LDFLAGS,;t t
21129
 
s,@CPPFLAGS@,$CPPFLAGS,;t t
21130
 
s,@ac_ct_CC@,$ac_ct_CC,;t t
21131
 
s,@EXEEXT@,$EXEEXT,;t t
21132
 
s,@OBJEXT@,$OBJEXT,;t t
21133
 
s,@DEPDIR@,$DEPDIR,;t t
21134
 
s,@am__include@,$am__include,;t t
21135
 
s,@am__quote@,$am__quote,;t t
21136
 
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21137
 
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21138
 
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21139
 
s,@CCDEPMODE@,$CCDEPMODE,;t t
21140
 
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21141
 
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21142
 
s,@build@,$build,;t t
21143
 
s,@build_cpu@,$build_cpu,;t t
21144
 
s,@build_vendor@,$build_vendor,;t t
21145
 
s,@build_os@,$build_os,;t t
21146
 
s,@host@,$host,;t t
21147
 
s,@host_cpu@,$host_cpu,;t t
21148
 
s,@host_vendor@,$host_vendor,;t t
21149
 
s,@host_os@,$host_os,;t t
21150
 
s,@EGREP@,$EGREP,;t t
21151
 
s,@LN_S@,$LN_S,;t t
21152
 
s,@ECHO@,$ECHO,;t t
21153
 
s,@AR@,$AR,;t t
21154
 
s,@ac_ct_AR@,$ac_ct_AR,;t t
21155
 
s,@RANLIB@,$RANLIB,;t t
21156
 
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21157
 
s,@CPP@,$CPP,;t t
21158
 
s,@CXX@,$CXX,;t t
21159
 
s,@CXXFLAGS@,$CXXFLAGS,;t t
21160
 
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21161
 
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21162
 
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21163
 
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21164
 
s,@CXXCPP@,$CXXCPP,;t t
21165
 
s,@F77@,$F77,;t t
21166
 
s,@FFLAGS@,$FFLAGS,;t t
21167
 
s,@ac_ct_F77@,$ac_ct_F77,;t t
21168
 
s,@LIBTOOL@,$LIBTOOL,;t t
21169
 
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21170
 
s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
21171
 
s,@XRENDER_CFLAGS@,$XRENDER_CFLAGS,;t t
21172
 
s,@XRENDER_LIBS@,$XRENDER_LIBS,;t t
21173
 
s,@FREETYPE_CFLAGS@,$FREETYPE_CFLAGS,;t t
21174
 
s,@FREETYPE_LIBS@,$FREETYPE_LIBS,;t t
21175
 
s,@ft_config@,$ft_config,;t t
21176
 
s,@FONTCONFIG_CFLAGS@,$FONTCONFIG_CFLAGS,;t t
21177
 
s,@FONTCONFIG_LIBS@,$FONTCONFIG_LIBS,;t t
21178
 
s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
21179
 
s,@LIBOBJS@,$LIBOBJS,;t t
21180
 
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21181
 
CEOF
21182
 
 
21183
 
_ACEOF
21184
 
 
21185
 
  cat >>$CONFIG_STATUS <<\_ACEOF
21186
 
  # Split the substitutions into bite-sized pieces for seds with
21187
 
  # small command number limits, like on Digital OSF/1 and HP-UX.
21188
 
  ac_max_sed_lines=48
21189
 
  ac_sed_frag=1 # Number of current file.
21190
 
  ac_beg=1 # First line for current file.
21191
 
  ac_end=$ac_max_sed_lines # Line after last line for current file.
21192
 
  ac_more_lines=:
21193
 
  ac_sed_cmds=
21194
 
  while $ac_more_lines; do
21195
 
    if test $ac_beg -gt 1; then
21196
 
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21197
 
    else
21198
 
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21199
 
    fi
21200
 
    if test ! -s $tmp/subs.frag; then
21201
 
      ac_more_lines=false
21202
 
    else
21203
 
      # The purpose of the label and of the branching condition is to
21204
 
      # speed up the sed processing (if there are no `@' at all, there
21205
 
      # is no need to browse any of the substitutions).
21206
 
      # These are the two extra sed commands mentioned above.
21207
 
      (echo ':t
21208
 
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21209
 
      if test -z "$ac_sed_cmds"; then
21210
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21211
 
      else
21212
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21213
 
      fi
21214
 
      ac_sed_frag=`expr $ac_sed_frag + 1`
21215
 
      ac_beg=$ac_end
21216
 
      ac_end=`expr $ac_end + $ac_max_sed_lines`
21217
 
    fi
21218
 
  done
21219
 
  if test -z "$ac_sed_cmds"; then
21220
 
    ac_sed_cmds=cat
21221
 
  fi
 
21737
if test -n "$CONFIG_FILES"; then
 
21738
 
 
21739
_ACEOF
 
21740
 
 
21741
 
 
21742
 
 
21743
ac_delim='%!_!# '
 
21744
for ac_last_try in false false false false false :; do
 
21745
  cat >conf$$subs.sed <<_ACEOF
 
21746
SHELL!$SHELL$ac_delim
 
21747
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
21748
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
21749
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
21750
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
21751
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
21752
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
21753
exec_prefix!$exec_prefix$ac_delim
 
21754
prefix!$prefix$ac_delim
 
21755
program_transform_name!$program_transform_name$ac_delim
 
21756
bindir!$bindir$ac_delim
 
21757
sbindir!$sbindir$ac_delim
 
21758
libexecdir!$libexecdir$ac_delim
 
21759
datarootdir!$datarootdir$ac_delim
 
21760
datadir!$datadir$ac_delim
 
21761
sysconfdir!$sysconfdir$ac_delim
 
21762
sharedstatedir!$sharedstatedir$ac_delim
 
21763
localstatedir!$localstatedir$ac_delim
 
21764
includedir!$includedir$ac_delim
 
21765
oldincludedir!$oldincludedir$ac_delim
 
21766
docdir!$docdir$ac_delim
 
21767
infodir!$infodir$ac_delim
 
21768
htmldir!$htmldir$ac_delim
 
21769
dvidir!$dvidir$ac_delim
 
21770
pdfdir!$pdfdir$ac_delim
 
21771
psdir!$psdir$ac_delim
 
21772
libdir!$libdir$ac_delim
 
21773
localedir!$localedir$ac_delim
 
21774
mandir!$mandir$ac_delim
 
21775
DEFS!$DEFS$ac_delim
 
21776
ECHO_C!$ECHO_C$ac_delim
 
21777
ECHO_N!$ECHO_N$ac_delim
 
21778
ECHO_T!$ECHO_T$ac_delim
 
21779
LIBS!$LIBS$ac_delim
 
21780
build_alias!$build_alias$ac_delim
 
21781
host_alias!$host_alias$ac_delim
 
21782
target_alias!$target_alias$ac_delim
 
21783
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 
21784
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 
21785
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
21786
CYGPATH_W!$CYGPATH_W$ac_delim
 
21787
PACKAGE!$PACKAGE$ac_delim
 
21788
VERSION!$VERSION$ac_delim
 
21789
ACLOCAL!$ACLOCAL$ac_delim
 
21790
AUTOCONF!$AUTOCONF$ac_delim
 
21791
AUTOMAKE!$AUTOMAKE$ac_delim
 
21792
AUTOHEADER!$AUTOHEADER$ac_delim
 
21793
MAKEINFO!$MAKEINFO$ac_delim
 
21794
install_sh!$install_sh$ac_delim
 
21795
STRIP!$STRIP$ac_delim
 
21796
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
 
21797
mkdir_p!$mkdir_p$ac_delim
 
21798
AWK!$AWK$ac_delim
 
21799
SET_MAKE!$SET_MAKE$ac_delim
 
21800
am__leading_dot!$am__leading_dot$ac_delim
 
21801
AMTAR!$AMTAR$ac_delim
 
21802
am__tar!$am__tar$ac_delim
 
21803
am__untar!$am__untar$ac_delim
 
21804
MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
 
21805
MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
 
21806
MAINT!$MAINT$ac_delim
 
21807
CC!$CC$ac_delim
 
21808
CFLAGS!$CFLAGS$ac_delim
 
21809
LDFLAGS!$LDFLAGS$ac_delim
 
21810
CPPFLAGS!$CPPFLAGS$ac_delim
 
21811
ac_ct_CC!$ac_ct_CC$ac_delim
 
21812
EXEEXT!$EXEEXT$ac_delim
 
21813
OBJEXT!$OBJEXT$ac_delim
 
21814
DEPDIR!$DEPDIR$ac_delim
 
21815
am__include!$am__include$ac_delim
 
21816
am__quote!$am__quote$ac_delim
 
21817
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
 
21818
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
 
21819
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 
21820
CCDEPMODE!$CCDEPMODE$ac_delim
 
21821
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 
21822
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 
21823
build!$build$ac_delim
 
21824
build_cpu!$build_cpu$ac_delim
 
21825
build_vendor!$build_vendor$ac_delim
 
21826
build_os!$build_os$ac_delim
 
21827
host!$host$ac_delim
 
21828
host_cpu!$host_cpu$ac_delim
 
21829
host_vendor!$host_vendor$ac_delim
 
21830
host_os!$host_os$ac_delim
 
21831
GREP!$GREP$ac_delim
 
21832
EGREP!$EGREP$ac_delim
 
21833
LN_S!$LN_S$ac_delim
 
21834
ECHO!$ECHO$ac_delim
 
21835
AR!$AR$ac_delim
 
21836
RANLIB!$RANLIB$ac_delim
 
21837
CPP!$CPP$ac_delim
 
21838
CXX!$CXX$ac_delim
 
21839
CXXFLAGS!$CXXFLAGS$ac_delim
 
21840
ac_ct_CXX!$ac_ct_CXX$ac_delim
 
21841
CXXDEPMODE!$CXXDEPMODE$ac_delim
 
21842
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
 
21843
_ACEOF
 
21844
 
 
21845
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
21846
    break
 
21847
  elif $ac_last_try; then
 
21848
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
21849
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
21850
   { (exit 1); exit 1; }; }
 
21851
  else
 
21852
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
21853
  fi
 
21854
done
 
21855
 
 
21856
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
21857
if test -n "$ac_eof"; then
 
21858
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
21859
  ac_eof=`expr $ac_eof + 1`
 
21860
fi
 
21861
 
 
21862
cat >>$CONFIG_STATUS <<_ACEOF
 
21863
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
21864
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
21865
_ACEOF
 
21866
sed '
 
21867
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
21868
s/^/s,@/; s/!/@,|#_!!_#|/
 
21869
:n
 
21870
t n
 
21871
s/'"$ac_delim"'$/,g/; t
 
21872
s/$/\\/; p
 
21873
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
21874
' >>$CONFIG_STATUS <conf$$subs.sed
 
21875
rm -f conf$$subs.sed
 
21876
cat >>$CONFIG_STATUS <<_ACEOF
 
21877
CEOF$ac_eof
 
21878
_ACEOF
 
21879
 
 
21880
 
 
21881
ac_delim='%!_!# '
 
21882
for ac_last_try in false false false false false :; do
 
21883
  cat >conf$$subs.sed <<_ACEOF
 
21884
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
 
21885
CXXCPP!$CXXCPP$ac_delim
 
21886
F77!$F77$ac_delim
 
21887
FFLAGS!$FFLAGS$ac_delim
 
21888
ac_ct_F77!$ac_ct_F77$ac_delim
 
21889
LIBTOOL!$LIBTOOL$ac_delim
 
21890
PKG_CONFIG!$PKG_CONFIG$ac_delim
 
21891
XRENDER_CFLAGS!$XRENDER_CFLAGS$ac_delim
 
21892
XRENDER_LIBS!$XRENDER_LIBS$ac_delim
 
21893
XMKMF!$XMKMF$ac_delim
 
21894
FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
 
21895
FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
 
21896
ft_config!$ft_config$ac_delim
 
21897
FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
 
21898
FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
 
21899
WARN_CFLAGS!$WARN_CFLAGS$ac_delim
 
21900
LIBOBJS!$LIBOBJS$ac_delim
 
21901
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
21902
_ACEOF
 
21903
 
 
21904
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
 
21905
    break
 
21906
  elif $ac_last_try; then
 
21907
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
21908
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
21909
   { (exit 1); exit 1; }; }
 
21910
  else
 
21911
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
21912
  fi
 
21913
done
 
21914
 
 
21915
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
21916
if test -n "$ac_eof"; then
 
21917
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
21918
  ac_eof=`expr $ac_eof + 1`
 
21919
fi
 
21920
 
 
21921
cat >>$CONFIG_STATUS <<_ACEOF
 
21922
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
21923
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
21924
_ACEOF
 
21925
sed '
 
21926
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
21927
s/^/s,@/; s/!/@,|#_!!_#|/
 
21928
:n
 
21929
t n
 
21930
s/'"$ac_delim"'$/,g/; t
 
21931
s/$/\\/; p
 
21932
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
21933
' >>$CONFIG_STATUS <conf$$subs.sed
 
21934
rm -f conf$$subs.sed
 
21935
cat >>$CONFIG_STATUS <<_ACEOF
 
21936
:end
 
21937
s/|#_!!_#|//g
 
21938
CEOF$ac_eof
 
21939
_ACEOF
 
21940
 
 
21941
 
 
21942
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
21943
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
21944
# trailing colons and then remove the whole line if VPATH becomes empty
 
21945
# (actually we leave an empty line to preserve line numbers).
 
21946
if test "x$srcdir" = x.; then
 
21947
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
21948
s/:*\$(srcdir):*/:/
 
21949
s/:*\${srcdir}:*/:/
 
21950
s/:*@srcdir@:*/:/
 
21951
s/^\([^=]*=[     ]*\):*/\1/
 
21952
s/:*$//
 
21953
s/^[^=]*=[       ]*$//
 
21954
}'
 
21955
fi
 
21956
 
 
21957
cat >>$CONFIG_STATUS <<\_ACEOF
21222
21958
fi # test -n "$CONFIG_FILES"
21223
21959
 
21224
 
_ACEOF
21225
 
cat >>$CONFIG_STATUS <<\_ACEOF
21226
 
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21227
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21228
 
  case $ac_file in
21229
 
  - | *:- | *:-:* ) # input from stdin
21230
 
        cat >$tmp/stdin
21231
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21232
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21233
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21234
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21235
 
  * )   ac_file_in=$ac_file.in ;;
21236
 
  esac
21237
 
 
21238
 
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21239
 
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
21960
 
 
21961
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 
21962
do
 
21963
  case $ac_tag in
 
21964
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
21965
  esac
 
21966
  case $ac_mode$ac_tag in
 
21967
  :[FHL]*:*);;
 
21968
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
21969
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
21970
   { (exit 1); exit 1; }; };;
 
21971
  :[FH]-) ac_tag=-:-;;
 
21972
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
21973
  esac
 
21974
  ac_save_IFS=$IFS
 
21975
  IFS=:
 
21976
  set x $ac_tag
 
21977
  IFS=$ac_save_IFS
 
21978
  shift
 
21979
  ac_file=$1
 
21980
  shift
 
21981
 
 
21982
  case $ac_mode in
 
21983
  :L) ac_source=$1;;
 
21984
  :[FH])
 
21985
    ac_file_inputs=
 
21986
    for ac_f
 
21987
    do
 
21988
      case $ac_f in
 
21989
      -) ac_f="$tmp/stdin";;
 
21990
      *) # Look for the file first in the build tree, then in the source tree
 
21991
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
21992
         # because $ac_f cannot contain `:'.
 
21993
         test -f "$ac_f" ||
 
21994
           case $ac_f in
 
21995
           [\\/$]*) false;;
 
21996
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
21997
           esac ||
 
21998
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
21999
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
22000
   { (exit 1); exit 1; }; };;
 
22001
      esac
 
22002
      ac_file_inputs="$ac_file_inputs $ac_f"
 
22003
    done
 
22004
 
 
22005
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
22006
    # use $as_me), people would be surprised to read:
 
22007
    #    /* config.h.  Generated by config.status.  */
 
22008
    configure_input="Generated from "`IFS=:
 
22009
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
22010
    if test x"$ac_file" != x-; then
 
22011
      configure_input="$ac_file.  $configure_input"
 
22012
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
22013
echo "$as_me: creating $ac_file" >&6;}
 
22014
    fi
 
22015
 
 
22016
    case $ac_tag in
 
22017
    *:-:* | *:-) cat >"$tmp/stdin";;
 
22018
    esac
 
22019
    ;;
 
22020
  esac
 
22021
 
 
22022
  ac_dir=`$as_dirname -- "$ac_file" ||
21240
22023
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21241
22024
         X"$ac_file" : 'X\(//\)[^/]' \| \
21242
22025
         X"$ac_file" : 'X\(//\)$' \| \
21243
 
         X"$ac_file" : 'X\(/\)' \| \
21244
 
         .     : '\(.\)' 2>/dev/null ||
 
22026
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21245
22027
echo X"$ac_file" |
21246
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21247
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21248
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21249
 
          /^X\(\/\).*/{ s//\1/; q; }
21250
 
          s/.*/./; q'`
21251
 
  { if $as_mkdir_p; then
21252
 
    mkdir -p "$ac_dir"
21253
 
  else
21254
 
    as_dir="$ac_dir"
 
22028
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
22029
            s//\1/
 
22030
            q
 
22031
          }
 
22032
          /^X\(\/\/\)[^/].*/{
 
22033
            s//\1/
 
22034
            q
 
22035
          }
 
22036
          /^X\(\/\/\)$/{
 
22037
            s//\1/
 
22038
            q
 
22039
          }
 
22040
          /^X\(\/\).*/{
 
22041
            s//\1/
 
22042
            q
 
22043
          }
 
22044
          s/.*/./; q'`
 
22045
  { as_dir="$ac_dir"
 
22046
  case $as_dir in #(
 
22047
  -*) as_dir=./$as_dir;;
 
22048
  esac
 
22049
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21255
22050
    as_dirs=
21256
 
    while test ! -d "$as_dir"; do
21257
 
      as_dirs="$as_dir $as_dirs"
21258
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
22051
    while :; do
 
22052
      case $as_dir in #(
 
22053
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
22054
      *) as_qdir=$as_dir;;
 
22055
      esac
 
22056
      as_dirs="'$as_qdir' $as_dirs"
 
22057
      as_dir=`$as_dirname -- "$as_dir" ||
21259
22058
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21260
22059
         X"$as_dir" : 'X\(//\)[^/]' \| \
21261
22060
         X"$as_dir" : 'X\(//\)$' \| \
21262
 
         X"$as_dir" : 'X\(/\)' \| \
21263
 
         .     : '\(.\)' 2>/dev/null ||
 
22061
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21264
22062
echo X"$as_dir" |
21265
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21266
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21267
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21268
 
          /^X\(\/\).*/{ s//\1/; q; }
21269
 
          s/.*/./; q'`
 
22063
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
22064
            s//\1/
 
22065
            q
 
22066
          }
 
22067
          /^X\(\/\/\)[^/].*/{
 
22068
            s//\1/
 
22069
            q
 
22070
          }
 
22071
          /^X\(\/\/\)$/{
 
22072
            s//\1/
 
22073
            q
 
22074
          }
 
22075
          /^X\(\/\).*/{
 
22076
            s//\1/
 
22077
            q
 
22078
          }
 
22079
          s/.*/./; q'`
 
22080
      test -d "$as_dir" && break
21270
22081
    done
21271
 
    test ! -n "$as_dirs" || mkdir $as_dirs
21272
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21273
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
22082
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
22083
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
22084
echo "$as_me: error: cannot create directory $as_dir" >&2;}
21274
22085
   { (exit 1); exit 1; }; }; }
21275
 
 
21276
22086
  ac_builddir=.
21277
22087
 
21278
 
if test "$ac_dir" != .; then
 
22088
case "$ac_dir" in
 
22089
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
22090
*)
21279
22091
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21280
 
  # A "../" for each directory in $ac_dir_suffix.
21281
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21282
 
else
21283
 
  ac_dir_suffix= ac_top_builddir=
21284
 
fi
 
22092
  # A ".." for each directory in $ac_dir_suffix.
 
22093
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
22094
  case $ac_top_builddir_sub in
 
22095
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
22096
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
22097
  esac ;;
 
22098
esac
 
22099
ac_abs_top_builddir=$ac_pwd
 
22100
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
22101
# for backward compatibility:
 
22102
ac_top_builddir=$ac_top_build_prefix
21285
22103
 
21286
22104
case $srcdir in
21287
 
  .)  # No --srcdir option.  We are building in place.
 
22105
  .)  # We are building in place.
21288
22106
    ac_srcdir=.
21289
 
    if test -z "$ac_top_builddir"; then
21290
 
       ac_top_srcdir=.
21291
 
    else
21292
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21293
 
    fi ;;
21294
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
22107
    ac_top_srcdir=$ac_top_builddir_sub
 
22108
    ac_abs_top_srcdir=$ac_pwd ;;
 
22109
  [\\/]* | ?:[\\/]* )  # Absolute name.
21295
22110
    ac_srcdir=$srcdir$ac_dir_suffix;
21296
 
    ac_top_srcdir=$srcdir ;;
21297
 
  *) # Relative path.
21298
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21299
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21300
 
esac
21301
 
 
21302
 
# Do not use `cd foo && pwd` to compute absolute paths, because
21303
 
# the directories may not exist.
21304
 
case `pwd` in
21305
 
.) ac_abs_builddir="$ac_dir";;
21306
 
*)
21307
 
  case "$ac_dir" in
21308
 
  .) ac_abs_builddir=`pwd`;;
21309
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21310
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21311
 
  esac;;
21312
 
esac
21313
 
case $ac_abs_builddir in
21314
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
21315
 
*)
21316
 
  case ${ac_top_builddir}. in
21317
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
21318
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21319
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21320
 
  esac;;
21321
 
esac
21322
 
case $ac_abs_builddir in
21323
 
.) ac_abs_srcdir=$ac_srcdir;;
21324
 
*)
21325
 
  case $ac_srcdir in
21326
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
21327
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21328
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21329
 
  esac;;
21330
 
esac
21331
 
case $ac_abs_builddir in
21332
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
21333
 
*)
21334
 
  case $ac_top_srcdir in
21335
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21336
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21337
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21338
 
  esac;;
21339
 
esac
21340
 
 
 
22111
    ac_top_srcdir=$srcdir
 
22112
    ac_abs_top_srcdir=$srcdir ;;
 
22113
  *) # Relative name.
 
22114
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
22115
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
22116
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
22117
esac
 
22118
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
22119
 
 
22120
 
 
22121
  case $ac_mode in
 
22122
  :F)
 
22123
  #
 
22124
  # CONFIG_FILE
 
22125
  #
21341
22126
 
21342
22127
  case $INSTALL in
21343
22128
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21344
 
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
22129
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21345
22130
  esac
21346
 
 
21347
 
  if test x"$ac_file" != x-; then
21348
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
21349
 
echo "$as_me: creating $ac_file" >&6;}
21350
 
    rm -f "$ac_file"
21351
 
  fi
21352
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
21353
 
  # use $as_me), people would be surprised to read:
21354
 
  #    /* config.h.  Generated by config.status.  */
21355
 
  if test x"$ac_file" = x-; then
21356
 
    configure_input=
21357
 
  else
21358
 
    configure_input="$ac_file.  "
21359
 
  fi
21360
 
  configure_input=$configure_input"Generated from `echo $ac_file_in |
21361
 
                                     sed 's,.*/,,'` by configure."
21362
 
 
21363
 
  # First look for the input files in the build tree, otherwise in the
21364
 
  # src tree.
21365
 
  ac_file_inputs=`IFS=:
21366
 
    for f in $ac_file_in; do
21367
 
      case $f in
21368
 
      -) echo $tmp/stdin ;;
21369
 
      [\\/$]*)
21370
 
         # Absolute (can't be DOS-style, as IFS=:)
21371
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21372
 
echo "$as_me: error: cannot find input file: $f" >&2;}
21373
 
   { (exit 1); exit 1; }; }
21374
 
         echo "$f";;
21375
 
      *) # Relative
21376
 
         if test -f "$f"; then
21377
 
           # Build tree
21378
 
           echo "$f"
21379
 
         elif test -f "$srcdir/$f"; then
21380
 
           # Source tree
21381
 
           echo "$srcdir/$f"
21382
 
         else
21383
 
           # /dev/null tree
21384
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21385
 
echo "$as_me: error: cannot find input file: $f" >&2;}
21386
 
   { (exit 1); exit 1; }; }
21387
 
         fi;;
21388
 
      esac
21389
 
    done` || { (exit 1); exit 1; }
21390
 
_ACEOF
 
22131
_ACEOF
 
22132
 
 
22133
cat >>$CONFIG_STATUS <<\_ACEOF
 
22134
# If the template does not know about datarootdir, expand it.
 
22135
# FIXME: This hack should be removed a few years after 2.60.
 
22136
ac_datarootdir_hack=; ac_datarootdir_seen=
 
22137
 
 
22138
case `sed -n '/datarootdir/ {
 
22139
  p
 
22140
  q
 
22141
}
 
22142
/@datadir@/p
 
22143
/@docdir@/p
 
22144
/@infodir@/p
 
22145
/@localedir@/p
 
22146
/@mandir@/p
 
22147
' $ac_file_inputs` in
 
22148
*datarootdir*) ac_datarootdir_seen=yes;;
 
22149
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
22150
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
22151
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
22152
_ACEOF
 
22153
cat >>$CONFIG_STATUS <<_ACEOF
 
22154
  ac_datarootdir_hack='
 
22155
  s&@datadir@&$datadir&g
 
22156
  s&@docdir@&$docdir&g
 
22157
  s&@infodir@&$infodir&g
 
22158
  s&@localedir@&$localedir&g
 
22159
  s&@mandir@&$mandir&g
 
22160
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
22161
esac
 
22162
_ACEOF
 
22163
 
 
22164
# Neutralize VPATH when `$srcdir' = `.'.
 
22165
# Shell code in configure.ac might set extrasub.
 
22166
# FIXME: do we really want to maintain this feature?
21391
22167
cat >>$CONFIG_STATUS <<_ACEOF
21392
22168
  sed "$ac_vpsub
21393
22169
$extrasub
21395
22171
cat >>$CONFIG_STATUS <<\_ACEOF
21396
22172
:t
21397
22173
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21398
 
s,@configure_input@,$configure_input,;t t
21399
 
s,@srcdir@,$ac_srcdir,;t t
21400
 
s,@abs_srcdir@,$ac_abs_srcdir,;t t
21401
 
s,@top_srcdir@,$ac_top_srcdir,;t t
21402
 
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21403
 
s,@builddir@,$ac_builddir,;t t
21404
 
s,@abs_builddir@,$ac_abs_builddir,;t t
21405
 
s,@top_builddir@,$ac_top_builddir,;t t
21406
 
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21407
 
s,@INSTALL@,$ac_INSTALL,;t t
21408
 
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21409
 
  rm -f $tmp/stdin
21410
 
  if test x"$ac_file" != x-; then
21411
 
    mv $tmp/out $ac_file
21412
 
  else
21413
 
    cat $tmp/out
21414
 
    rm -f $tmp/out
21415
 
  fi
21416
 
 
21417
 
done
 
22174
s&@configure_input@&$configure_input&;t t
 
22175
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
22176
s&@srcdir@&$ac_srcdir&;t t
 
22177
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
22178
s&@top_srcdir@&$ac_top_srcdir&;t t
 
22179
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
22180
s&@builddir@&$ac_builddir&;t t
 
22181
s&@abs_builddir@&$ac_abs_builddir&;t t
 
22182
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
22183
s&@INSTALL@&$ac_INSTALL&;t t
 
22184
$ac_datarootdir_hack
 
22185
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
22186
 
 
22187
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
22188
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
22189
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
22190
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
22191
which seems to be undefined.  Please make sure it is defined." >&5
 
22192
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
22193
which seems to be undefined.  Please make sure it is defined." >&2;}
 
22194
 
 
22195
  rm -f "$tmp/stdin"
 
22196
  case $ac_file in
 
22197
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
22198
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
22199
  esac
 
22200
 ;;
 
22201
  :H)
 
22202
  #
 
22203
  # CONFIG_HEADER
 
22204
  #
21418
22205
_ACEOF
21419
 
cat >>$CONFIG_STATUS <<\_ACEOF
21420
 
 
21421
 
#
21422
 
# CONFIG_HEADER section.
21423
 
#
21424
 
 
21425
 
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21426
 
# NAME is the cpp macro being defined and VALUE is the value it is being given.
21427
 
#
21428
 
# ac_d sets the value in "#define NAME VALUE" lines.
21429
 
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
21430
 
ac_dB='[         ].*$,\1#\2'
 
22206
 
 
22207
# Transform confdefs.h into a sed script `conftest.defines', that
 
22208
# substitutes the proper values into config.h.in to produce config.h.
 
22209
rm -f conftest.defines conftest.tail
 
22210
# First, append a space to every undef/define line, to ease matching.
 
22211
echo 's/$/ /' >conftest.defines
 
22212
# Then, protect against being on the right side of a sed subst, or in
 
22213
# an unquoted here document, in config.status.  If some macros were
 
22214
# called several times there might be several #defines for the same
 
22215
# symbol, which is useless.  But do not sort them, since the last
 
22216
# AC_DEFINE must be honored.
 
22217
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
22218
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 
22219
# NAME is the cpp macro being defined, VALUE is the value it is being given.
 
22220
# PARAMS is the parameter list in the macro definition--in most cases, it's
 
22221
# just an empty string.
 
22222
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
 
22223
ac_dB='\\)[      (].*,\\1define\\2'
21431
22224
ac_dC=' '
21432
 
ac_dD=',;t'
21433
 
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21434
 
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21435
 
ac_uB='$,\1#\2define\3'
21436
 
ac_uC=' '
21437
 
ac_uD=',;t'
21438
 
 
21439
 
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21440
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21441
 
  case $ac_file in
21442
 
  - | *:- | *:-:* ) # input from stdin
21443
 
        cat >$tmp/stdin
21444
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21445
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21446
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21447
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21448
 
  * )   ac_file_in=$ac_file.in ;;
21449
 
  esac
21450
 
 
21451
 
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21452
 
echo "$as_me: creating $ac_file" >&6;}
21453
 
 
21454
 
  # First look for the input files in the build tree, otherwise in the
21455
 
  # src tree.
21456
 
  ac_file_inputs=`IFS=:
21457
 
    for f in $ac_file_in; do
21458
 
      case $f in
21459
 
      -) echo $tmp/stdin ;;
21460
 
      [\\/$]*)
21461
 
         # Absolute (can't be DOS-style, as IFS=:)
21462
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21463
 
echo "$as_me: error: cannot find input file: $f" >&2;}
21464
 
   { (exit 1); exit 1; }; }
21465
 
         # Do quote $f, to prevent DOS paths from being IFS'd.
21466
 
         echo "$f";;
21467
 
      *) # Relative
21468
 
         if test -f "$f"; then
21469
 
           # Build tree
21470
 
           echo "$f"
21471
 
         elif test -f "$srcdir/$f"; then
21472
 
           # Source tree
21473
 
           echo "$srcdir/$f"
21474
 
         else
21475
 
           # /dev/null tree
21476
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21477
 
echo "$as_me: error: cannot find input file: $f" >&2;}
21478
 
   { (exit 1); exit 1; }; }
21479
 
         fi;;
21480
 
      esac
21481
 
    done` || { (exit 1); exit 1; }
21482
 
  # Remove the trailing spaces.
21483
 
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
21484
 
 
21485
 
_ACEOF
21486
 
 
21487
 
# Transform confdefs.h into two sed scripts, `conftest.defines' and
21488
 
# `conftest.undefs', that substitutes the proper values into
21489
 
# config.h.in to produce config.h.  The first handles `#define'
21490
 
# templates, and the second `#undef' templates.
21491
 
# And first: Protect against being on the right side of a sed subst in
21492
 
# config.status.  Protect against being in an unquoted here document
21493
 
# in config.status.
21494
 
rm -f conftest.defines conftest.undefs
21495
 
# Using a here document instead of a string reduces the quoting nightmare.
21496
 
# Putting comments in sed scripts is not portable.
21497
 
#
21498
 
# `end' is used to avoid that the second main sed command (meant for
21499
 
# 0-ary CPP macros) applies to n-ary macro definitions.
21500
 
# See the Autoconf documentation for `clear'.
21501
 
cat >confdef2sed.sed <<\_ACEOF
21502
 
s/[\\&,]/\\&/g
21503
 
s,[\\$`],\\&,g
21504
 
t clear
21505
 
: clear
21506
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21507
 
t end
21508
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21509
 
: end
21510
 
_ACEOF
21511
 
# If some macros were called several times there might be several times
21512
 
# the same #defines, which is useless.  Nevertheless, we may not want to
21513
 
# sort them, since we want the *last* AC-DEFINE to be honored.
21514
 
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21515
 
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21516
 
rm -f confdef2sed.sed
21517
 
 
21518
 
# This sed command replaces #undef with comments.  This is necessary, for
 
22225
ac_dD=' ,'
 
22226
 
 
22227
uniq confdefs.h |
 
22228
  sed -n '
 
22229
        t rset
 
22230
        :rset
 
22231
        s/^[     ]*#[    ]*define[       ][      ]*//
 
22232
        t ok
 
22233
        d
 
22234
        :ok
 
22235
        s/[\\&,]/\\&/g
 
22236
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 
22237
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 
22238
  ' >>conftest.defines
 
22239
 
 
22240
# Remove the space that was appended to ease matching.
 
22241
# Then replace #undef with comments.  This is necessary, for
21519
22242
# example, in the case of _POSIX_SOURCE, which is predefined and required
21520
22243
# on some systems where configure will not decide to define it.
21521
 
cat >>conftest.undefs <<\_ACEOF
21522
 
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
22244
# (The regexp can be short, since the line contains either #define or #undef.)
 
22245
echo 's/ $//
 
22246
s,^[     #]*u.*,/* & */,' >>conftest.defines
 
22247
 
 
22248
# Break up conftest.defines:
 
22249
ac_max_sed_lines=50
 
22250
 
 
22251
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 
22252
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 
22253
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 
22254
# et cetera.
 
22255
ac_in='$ac_file_inputs'
 
22256
ac_out='"$tmp/out1"'
 
22257
ac_nxt='"$tmp/out2"'
 
22258
 
 
22259
while :
 
22260
do
 
22261
  # Write a here document:
 
22262
    cat >>$CONFIG_STATUS <<_ACEOF
 
22263
    # First, check the format of the line:
 
22264
    cat >"\$tmp/defines.sed" <<\\CEOF
 
22265
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
 
22266
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
 
22267
b
 
22268
:def
21523
22269
_ACEOF
21524
 
 
21525
 
# Break up conftest.defines because some shells have a limit on the size
21526
 
# of here documents, and old seds have small limits too (100 cmds).
21527
 
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21528
 
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21529
 
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21530
 
echo '  :' >>$CONFIG_STATUS
21531
 
rm -f conftest.tail
21532
 
while grep . conftest.defines >/dev/null
21533
 
do
21534
 
  # Write a limited-size here document to $tmp/defines.sed.
21535
 
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21536
 
  # Speed up: don't consider the non `#define' lines.
21537
 
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
21538
 
  # Work around the forget-to-reset-the-flag bug.
21539
 
  echo 't clr' >>$CONFIG_STATUS
21540
 
  echo ': clr' >>$CONFIG_STATUS
21541
 
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
22270
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21542
22271
  echo 'CEOF
21543
 
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
21544
 
  rm -f $tmp/in
21545
 
  mv $tmp/out $tmp/in
21546
 
' >>$CONFIG_STATUS
21547
 
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
22272
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 
22273
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 
22274
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 
22275
  grep . conftest.tail >/dev/null || break
21548
22276
  rm -f conftest.defines
21549
22277
  mv conftest.tail conftest.defines
21550
22278
done
21551
 
rm -f conftest.defines
21552
 
echo '  fi # grep' >>$CONFIG_STATUS
21553
 
echo >>$CONFIG_STATUS
21554
 
 
21555
 
# Break up conftest.undefs because some shells have a limit on the size
21556
 
# of here documents, and old seds have small limits too (100 cmds).
21557
 
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21558
 
rm -f conftest.tail
21559
 
while grep . conftest.undefs >/dev/null
21560
 
do
21561
 
  # Write a limited-size here document to $tmp/undefs.sed.
21562
 
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21563
 
  # Speed up: don't consider the non `#undef'
21564
 
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
21565
 
  # Work around the forget-to-reset-the-flag bug.
21566
 
  echo 't clr' >>$CONFIG_STATUS
21567
 
  echo ': clr' >>$CONFIG_STATUS
21568
 
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21569
 
  echo 'CEOF
21570
 
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21571
 
  rm -f $tmp/in
21572
 
  mv $tmp/out $tmp/in
21573
 
' >>$CONFIG_STATUS
21574
 
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21575
 
  rm -f conftest.undefs
21576
 
  mv conftest.tail conftest.undefs
21577
 
done
21578
 
rm -f conftest.undefs
21579
 
 
 
22279
rm -f conftest.defines conftest.tail
 
22280
 
 
22281
echo "ac_result=$ac_in" >>$CONFIG_STATUS
21580
22282
cat >>$CONFIG_STATUS <<\_ACEOF
21581
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
21582
 
  # use $as_me), people would be surprised to read:
21583
 
  #    /* config.h.  Generated by config.status.  */
21584
 
  if test x"$ac_file" = x-; then
21585
 
    echo "/* Generated by configure.  */" >$tmp/config.h
21586
 
  else
21587
 
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21588
 
  fi
21589
 
  cat $tmp/in >>$tmp/config.h
21590
 
  rm -f $tmp/in
21591
22283
  if test x"$ac_file" != x-; then
21592
 
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
22284
    echo "/* $configure_input  */" >"$tmp/config.h"
 
22285
    cat "$ac_result" >>"$tmp/config.h"
 
22286
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21593
22287
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21594
22288
echo "$as_me: $ac_file is unchanged" >&6;}
21595
22289
    else
21596
 
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21597
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21598
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
21599
 
         X"$ac_file" : 'X\(//\)$' \| \
21600
 
         X"$ac_file" : 'X\(/\)' \| \
21601
 
         .     : '\(.\)' 2>/dev/null ||
21602
 
echo X"$ac_file" |
21603
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21604
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21605
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21606
 
          /^X\(\/\).*/{ s//\1/; q; }
21607
 
          s/.*/./; q'`
21608
 
      { if $as_mkdir_p; then
21609
 
    mkdir -p "$ac_dir"
21610
 
  else
21611
 
    as_dir="$ac_dir"
21612
 
    as_dirs=
21613
 
    while test ! -d "$as_dir"; do
21614
 
      as_dirs="$as_dir $as_dirs"
21615
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21616
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21617
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
21618
 
         X"$as_dir" : 'X\(//\)$' \| \
21619
 
         X"$as_dir" : 'X\(/\)' \| \
21620
 
         .     : '\(.\)' 2>/dev/null ||
21621
 
echo X"$as_dir" |
21622
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21623
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21624
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21625
 
          /^X\(\/\).*/{ s//\1/; q; }
21626
 
          s/.*/./; q'`
21627
 
    done
21628
 
    test ! -n "$as_dirs" || mkdir $as_dirs
21629
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21630
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21631
 
   { (exit 1); exit 1; }; }; }
21632
 
 
21633
22290
      rm -f $ac_file
21634
 
      mv $tmp/config.h $ac_file
 
22291
      mv "$tmp/config.h" $ac_file
21635
22292
    fi
21636
22293
  else
21637
 
    cat $tmp/config.h
21638
 
    rm -f $tmp/config.h
 
22294
    echo "/* $configure_input  */"
 
22295
    cat "$ac_result"
21639
22296
  fi
 
22297
  rm -f "$tmp/out12"
21640
22298
# Compute $ac_file's index in $config_headers.
21641
22299
_am_stamp_count=1
21642
22300
for _am_header in $config_headers :; do
21647
22305
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21648
22306
  esac
21649
22307
done
21650
 
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
22308
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21651
22309
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21652
22310
         X$ac_file : 'X\(//\)[^/]' \| \
21653
22311
         X$ac_file : 'X\(//\)$' \| \
21654
 
         X$ac_file : 'X\(/\)' \| \
21655
 
         .     : '\(.\)' 2>/dev/null ||
 
22312
         X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21656
22313
echo X$ac_file |
21657
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21658
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21659
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21660
 
          /^X\(\/\).*/{ s//\1/; q; }
21661
 
          s/.*/./; q'`/stamp-h$_am_stamp_count
21662
 
done
21663
 
_ACEOF
21664
 
cat >>$CONFIG_STATUS <<\_ACEOF
21665
 
 
21666
 
#
21667
 
# CONFIG_COMMANDS section.
21668
 
#
21669
 
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21670
 
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21671
 
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21672
 
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21673
 
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21674
 
         X"$ac_dest" : 'X\(//\)[^/]' \| \
21675
 
         X"$ac_dest" : 'X\(//\)$' \| \
21676
 
         X"$ac_dest" : 'X\(/\)' \| \
21677
 
         .     : '\(.\)' 2>/dev/null ||
21678
 
echo X"$ac_dest" |
21679
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21680
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21681
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21682
 
          /^X\(\/\).*/{ s//\1/; q; }
21683
 
          s/.*/./; q'`
21684
 
  { if $as_mkdir_p; then
21685
 
    mkdir -p "$ac_dir"
21686
 
  else
21687
 
    as_dir="$ac_dir"
21688
 
    as_dirs=
21689
 
    while test ! -d "$as_dir"; do
21690
 
      as_dirs="$as_dir $as_dirs"
21691
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21692
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21693
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
21694
 
         X"$as_dir" : 'X\(//\)$' \| \
21695
 
         X"$as_dir" : 'X\(/\)' \| \
21696
 
         .     : '\(.\)' 2>/dev/null ||
21697
 
echo X"$as_dir" |
21698
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21699
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21700
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21701
 
          /^X\(\/\).*/{ s//\1/; q; }
21702
 
          s/.*/./; q'`
21703
 
    done
21704
 
    test ! -n "$as_dirs" || mkdir $as_dirs
21705
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21706
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21707
 
   { (exit 1); exit 1; }; }; }
21708
 
 
21709
 
  ac_builddir=.
21710
 
 
21711
 
if test "$ac_dir" != .; then
21712
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21713
 
  # A "../" for each directory in $ac_dir_suffix.
21714
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21715
 
else
21716
 
  ac_dir_suffix= ac_top_builddir=
21717
 
fi
21718
 
 
21719
 
case $srcdir in
21720
 
  .)  # No --srcdir option.  We are building in place.
21721
 
    ac_srcdir=.
21722
 
    if test -z "$ac_top_builddir"; then
21723
 
       ac_top_srcdir=.
21724
 
    else
21725
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21726
 
    fi ;;
21727
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
21728
 
    ac_srcdir=$srcdir$ac_dir_suffix;
21729
 
    ac_top_srcdir=$srcdir ;;
21730
 
  *) # Relative path.
21731
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21732
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21733
 
esac
21734
 
 
21735
 
# Do not use `cd foo && pwd` to compute absolute paths, because
21736
 
# the directories may not exist.
21737
 
case `pwd` in
21738
 
.) ac_abs_builddir="$ac_dir";;
21739
 
*)
21740
 
  case "$ac_dir" in
21741
 
  .) ac_abs_builddir=`pwd`;;
21742
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21743
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21744
 
  esac;;
21745
 
esac
21746
 
case $ac_abs_builddir in
21747
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
21748
 
*)
21749
 
  case ${ac_top_builddir}. in
21750
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
21751
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21752
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21753
 
  esac;;
21754
 
esac
21755
 
case $ac_abs_builddir in
21756
 
.) ac_abs_srcdir=$ac_srcdir;;
21757
 
*)
21758
 
  case $ac_srcdir in
21759
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
21760
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21761
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21762
 
  esac;;
21763
 
esac
21764
 
case $ac_abs_builddir in
21765
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
21766
 
*)
21767
 
  case $ac_top_srcdir in
21768
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21769
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21770
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21771
 
  esac;;
21772
 
esac
21773
 
 
21774
 
 
21775
 
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21776
 
echo "$as_me: executing $ac_dest commands" >&6;}
21777
 
  case $ac_dest in
21778
 
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
22314
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
22315
            s//\1/
 
22316
            q
 
22317
          }
 
22318
          /^X\(\/\/\)[^/].*/{
 
22319
            s//\1/
 
22320
            q
 
22321
          }
 
22322
          /^X\(\/\/\)$/{
 
22323
            s//\1/
 
22324
            q
 
22325
          }
 
22326
          /^X\(\/\).*/{
 
22327
            s//\1/
 
22328
            q
 
22329
          }
 
22330
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
22331
 ;;
 
22332
 
 
22333
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
22334
echo "$as_me: executing $ac_file commands" >&6;}
 
22335
 ;;
 
22336
  esac
 
22337
 
 
22338
 
 
22339
  case $ac_file$ac_mode in
 
22340
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21779
22341
  # Strip MF so we end up with the name of the file.
21780
22342
  mf=`echo "$mf" | sed -e 's/:.*$//'`
21781
22343
  # Check whether this is an Automake generated Makefile or not.
21785
22347
  # each Makefile.in and add a new line on top of each file to say so.
21786
22348
  # So let's grep whole file.
21787
22349
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21788
 
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
22350
    dirpart=`$as_dirname -- "$mf" ||
21789
22351
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21790
22352
         X"$mf" : 'X\(//\)[^/]' \| \
21791
22353
         X"$mf" : 'X\(//\)$' \| \
21792
 
         X"$mf" : 'X\(/\)' \| \
21793
 
         .     : '\(.\)' 2>/dev/null ||
 
22354
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21794
22355
echo X"$mf" |
21795
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21796
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21797
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21798
 
          /^X\(\/\).*/{ s//\1/; q; }
21799
 
          s/.*/./; q'`
 
22356
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
22357
            s//\1/
 
22358
            q
 
22359
          }
 
22360
          /^X\(\/\/\)[^/].*/{
 
22361
            s//\1/
 
22362
            q
 
22363
          }
 
22364
          /^X\(\/\/\)$/{
 
22365
            s//\1/
 
22366
            q
 
22367
          }
 
22368
          /^X\(\/\).*/{
 
22369
            s//\1/
 
22370
            q
 
22371
          }
 
22372
          s/.*/./; q'`
21800
22373
  else
21801
22374
    continue
21802
22375
  fi
21803
 
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21804
 
  # Extract the definition of DEP_FILES from the Makefile without
21805
 
  # running `make'.
21806
 
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
22376
  # Extract the definition of DEPDIR, am__include, and am__quote
 
22377
  # from the Makefile without running `make'.
 
22378
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21807
22379
  test -z "$DEPDIR" && continue
 
22380
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
22381
  test -z "am__include" && continue
 
22382
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21808
22383
  # When using ansi2knr, U may be empty or an underscore; expand it
21809
 
  U=`sed -n -e '/^U = / s///p' < "$mf"`
21810
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21811
 
  # We invoke sed twice because it is the simplest approach to
21812
 
  # changing $(DEPDIR) to its actual value in the expansion.
21813
 
  for file in `sed -n -e '
21814
 
    /^DEP_FILES = .*\\\\$/ {
21815
 
      s/^DEP_FILES = //
21816
 
      :loop
21817
 
        s/\\\\$//
21818
 
        p
21819
 
        n
21820
 
        /\\\\$/ b loop
21821
 
      p
21822
 
    }
21823
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
22384
  U=`sed -n 's/^U = //p' < "$mf"`
 
22385
  # Find all dependency output files, they are included files with
 
22386
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
22387
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
22388
  # expansion.
 
22389
  for file in `sed -n "
 
22390
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21824
22391
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21825
22392
    # Make sure the directory exists.
21826
22393
    test -f "$dirpart/$file" && continue
21827
 
    fdir=`(dirname "$file") 2>/dev/null ||
 
22394
    fdir=`$as_dirname -- "$file" ||
21828
22395
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21829
22396
         X"$file" : 'X\(//\)[^/]' \| \
21830
22397
         X"$file" : 'X\(//\)$' \| \
21831
 
         X"$file" : 'X\(/\)' \| \
21832
 
         .     : '\(.\)' 2>/dev/null ||
 
22398
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21833
22399
echo X"$file" |
21834
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21835
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21836
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21837
 
          /^X\(\/\).*/{ s//\1/; q; }
21838
 
          s/.*/./; q'`
21839
 
    { if $as_mkdir_p; then
21840
 
    mkdir -p $dirpart/$fdir
21841
 
  else
21842
 
    as_dir=$dirpart/$fdir
 
22400
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
22401
            s//\1/
 
22402
            q
 
22403
          }
 
22404
          /^X\(\/\/\)[^/].*/{
 
22405
            s//\1/
 
22406
            q
 
22407
          }
 
22408
          /^X\(\/\/\)$/{
 
22409
            s//\1/
 
22410
            q
 
22411
          }
 
22412
          /^X\(\/\).*/{
 
22413
            s//\1/
 
22414
            q
 
22415
          }
 
22416
          s/.*/./; q'`
 
22417
    { as_dir=$dirpart/$fdir
 
22418
  case $as_dir in #(
 
22419
  -*) as_dir=./$as_dir;;
 
22420
  esac
 
22421
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21843
22422
    as_dirs=
21844
 
    while test ! -d "$as_dir"; do
21845
 
      as_dirs="$as_dir $as_dirs"
21846
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
22423
    while :; do
 
22424
      case $as_dir in #(
 
22425
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
22426
      *) as_qdir=$as_dir;;
 
22427
      esac
 
22428
      as_dirs="'$as_qdir' $as_dirs"
 
22429
      as_dir=`$as_dirname -- "$as_dir" ||
21847
22430
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21848
22431
         X"$as_dir" : 'X\(//\)[^/]' \| \
21849
22432
         X"$as_dir" : 'X\(//\)$' \| \
21850
 
         X"$as_dir" : 'X\(/\)' \| \
21851
 
         .     : '\(.\)' 2>/dev/null ||
 
22433
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21852
22434
echo X"$as_dir" |
21853
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21854
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21855
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21856
 
          /^X\(\/\).*/{ s//\1/; q; }
21857
 
          s/.*/./; q'`
 
22435
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
22436
            s//\1/
 
22437
            q
 
22438
          }
 
22439
          /^X\(\/\/\)[^/].*/{
 
22440
            s//\1/
 
22441
            q
 
22442
          }
 
22443
          /^X\(\/\/\)$/{
 
22444
            s//\1/
 
22445
            q
 
22446
          }
 
22447
          /^X\(\/\).*/{
 
22448
            s//\1/
 
22449
            q
 
22450
          }
 
22451
          s/.*/./; q'`
 
22452
      test -d "$as_dir" && break
21858
22453
    done
21859
 
    test ! -n "$as_dirs" || mkdir $as_dirs
21860
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21861
 
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
22454
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
22455
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
22456
echo "$as_me: error: cannot create directory $as_dir" >&2;}
21862
22457
   { (exit 1); exit 1; }; }; }
21863
 
 
21864
22458
    # echo "creating $dirpart/$file"
21865
22459
    echo '# dummy' > "$dirpart/$file"
21866
22460
  done
21867
22461
done
21868
22462
 ;;
 
22463
 
21869
22464
  esac
21870
 
done
21871
 
_ACEOF
 
22465
done # for ac_tag
21872
22466
 
21873
 
cat >>$CONFIG_STATUS <<\_ACEOF
21874
22467
 
21875
22468
{ (exit 0); exit 0; }
21876
22469
_ACEOF