Annotation of rpl/configure, revision 1.45

1.1       bertrand    1: #! /bin/sh
                      2: # Guess values for system-dependent variables and create Makefiles.
1.44      bertrand    3: # Generated by GNU Autoconf 2.67 for rpl 4.0.20.
1.15      bertrand    4: #
1.1       bertrand    5: #
                      6: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1.36      bertrand    7: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
                      8: # Foundation, Inc.
1.15      bertrand    9: #
                     10: #
1.1       bertrand   11: # This configure script is free software; the Free Software Foundation
                     12: # gives unlimited permission to copy, distribute and modify it.
1.15      bertrand   13: ## -------------------- ##
                     14: ## M4sh Initialization. ##
                     15: ## -------------------- ##
1.1       bertrand   16: 
                     17: # Be more Bourne compatible
                     18: DUALCASE=1; export DUALCASE # for MKS sh
1.15      bertrand   19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1       bertrand   20:   emulate sh
                     21:   NULLCMD=:
1.15      bertrand   22:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1       bertrand   23:   # is contrary to our usage.  Disable this feature.
                     24:   alias -g '${1+"$@"}'='"$@"'
                     25:   setopt NO_GLOB_SUBST
                     26: else
1.15      bertrand   27:   case `(set -o) 2>/dev/null` in #(
                     28:   *posix*) :
                     29:     set -o posix ;; #(
                     30:   *) :
                     31:      ;;
1.1       bertrand   32: esac
                     33: fi
                     34: 
                     35: 
1.15      bertrand   36: as_nl='
                     37: '
                     38: export as_nl
                     39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
                     40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                     41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
                     42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
                     43: # Prefer a ksh shell builtin over an external printf program on Solaris,
                     44: # but without wasting forks for bash or zsh.
                     45: if test -z "$BASH_VERSION$ZSH_VERSION" \
                     46:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
                     47:   as_echo='print -r --'
                     48:   as_echo_n='print -rn --'
                     49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
                     50:   as_echo='printf %s\n'
                     51:   as_echo_n='printf %s'
                     52: else
                     53:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
                     54:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
                     55:     as_echo_n='/usr/ucb/echo -n'
                     56:   else
                     57:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
                     58:     as_echo_n_body='eval
                     59:       arg=$1;
                     60:       case $arg in #(
                     61:       *"$as_nl"*)
                     62:    expr "X$arg" : "X\\(.*\\)$as_nl";
                     63:    arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
                     64:       esac;
                     65:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
                     66:     '
                     67:     export as_echo_n_body
                     68:     as_echo_n='sh -c $as_echo_n_body as_echo'
                     69:   fi
                     70:   export as_echo_body
                     71:   as_echo='sh -c $as_echo_body as_echo'
                     72: fi
1.14      bertrand   73: 
                     74: # The user is always right.
                     75: if test "${PATH_SEPARATOR+set}" != set; then
1.15      bertrand   76:   PATH_SEPARATOR=:
                     77:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
                     78:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
                     79:       PATH_SEPARATOR=';'
                     80:   }
1.1       bertrand   81: fi
                     82: 
                     83: 
                     84: # IFS
                     85: # We need space, tab and new line, in precisely that order.  Quoting is
                     86: # there to prevent editors from complaining about space-tab.
                     87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                     88: # splitting by setting IFS to empty value.)
                     89: IFS=" ""   $as_nl"
                     90: 
                     91: # Find who we are.  Look in the path if we contain no directory separator.
1.15      bertrand   92: case $0 in #((
1.1       bertrand   93:   *[\\/]* ) as_myself=$0 ;;
                     94:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                     95: for as_dir in $PATH
                     96: do
                     97:   IFS=$as_save_IFS
                     98:   test -z "$as_dir" && as_dir=.
1.15      bertrand   99:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                    100:   done
1.1       bertrand  101: IFS=$as_save_IFS
                    102: 
                    103:      ;;
                    104: esac
                    105: # We did not find ourselves, most probably we were run as `sh COMMAND'
                    106: # in which case we are not to be found in the path.
                    107: if test "x$as_myself" = x; then
                    108:   as_myself=$0
                    109: fi
                    110: if test ! -f "$as_myself"; then
1.15      bertrand  111:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                    112:   exit 1
1.1       bertrand  113: fi
                    114: 
1.15      bertrand  115: # Unset variables that we do not need and which cause bugs (e.g. in
                    116: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
                    117: # suppresses any "Segmentation fault" message there.  '((' could
                    118: # trigger a bug in pdksh 5.2.14.
                    119: for as_var in BASH_ENV ENV MAIL MAILPATH
                    120: do eval test x\${$as_var+set} = xset \
                    121:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1       bertrand  122: done
                    123: PS1='$ '
                    124: PS2='> '
                    125: PS4='+ '
                    126: 
                    127: # NLS nuisances.
1.15      bertrand  128: LC_ALL=C
                    129: export LC_ALL
                    130: LANGUAGE=C
                    131: export LANGUAGE
1.1       bertrand  132: 
                    133: # CDPATH.
1.15      bertrand  134: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.1       bertrand  135: 
                    136: if test "x$CONFIG_SHELL" = x; then
1.15      bertrand  137:   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
                    138:   emulate sh
                    139:   NULLCMD=:
                    140:   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
                    141:   # is contrary to our usage.  Disable this feature.
                    142:   alias -g '\${1+\"\$@\"}'='\"\$@\"'
                    143:   setopt NO_GLOB_SUBST
1.1       bertrand  144: else
1.15      bertrand  145:   case \`(set -o) 2>/dev/null\` in #(
                    146:   *posix*) :
                    147:     set -o posix ;; #(
                    148:   *) :
                    149:      ;;
                    150: esac
1.1       bertrand  151: fi
1.15      bertrand  152: "
                    153:   as_required="as_fn_return () { (exit \$1); }
                    154: as_fn_success () { as_fn_return 0; }
                    155: as_fn_failure () { as_fn_return 1; }
                    156: as_fn_ret_success () { return 0; }
                    157: as_fn_ret_failure () { return 1; }
1.1       bertrand  158: 
                    159: exitcode=0
1.15      bertrand  160: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
                    161: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
                    162: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
                    163: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
                    164: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
                    165: 
                    166: else
                    167:   exitcode=1; echo positional parameters were not saved.
                    168: fi
                    169: test x\$exitcode = x0 || exit 1"
                    170:   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
                    171:   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
                    172:   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
                    173:   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
                    174: test \$(( 1 + 1 )) = 2 || exit 1"
                    175:   if (eval "$as_required") 2>/dev/null; then :
                    176:   as_have_required=yes
1.14      bertrand  177: else
1.15      bertrand  178:   as_have_required=no
1.14      bertrand  179: fi
1.15      bertrand  180:   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
1.14      bertrand  181: 
                    182: else
1.15      bertrand  183:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                    184: as_found=false
1.1       bertrand  185: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
                    186: do
                    187:   IFS=$as_save_IFS
                    188:   test -z "$as_dir" && as_dir=.
1.15      bertrand  189:   as_found=:
                    190:   case $as_dir in #(
1.1       bertrand  191:     /*)
                    192:       for as_base in sh bash ksh sh5; do
1.15      bertrand  193:         # Try only shells that exist, to save several forks.
                    194:         as_shell=$as_dir/$as_base
                    195:         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
                    196:            { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
                    197:   CONFIG_SHELL=$as_shell as_have_required=yes
                    198:           if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
                    199:   break 2
                    200: fi
                    201: fi
1.1       bertrand  202:       done;;
                    203:        esac
1.15      bertrand  204:   as_found=false
1.1       bertrand  205: done
1.15      bertrand  206: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
                    207:          { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
                    208:   CONFIG_SHELL=$SHELL as_have_required=yes
                    209: fi; }
1.1       bertrand  210: IFS=$as_save_IFS
                    211: 
                    212: 
1.15      bertrand  213:       if test "x$CONFIG_SHELL" != x; then :
                    214:   # We cannot yet assume a decent shell, so we have to provide a
                    215:    # neutralization value for shells without unset; and this also
                    216:    # works around shells that cannot unset nonexistent variables.
                    217:    BASH_ENV=/dev/null
                    218:    ENV=/dev/null
                    219:    (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
                    220:    export CONFIG_SHELL
                    221:    exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
                    222: fi
                    223: 
                    224:     if test x$as_have_required = xno; then :
                    225:   $as_echo "$0: This script requires a shell more modern than all"
                    226:   $as_echo "$0: the shells that I found on your system."
                    227:   if test x${ZSH_VERSION+set} = xset ; then
                    228:     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
                    229:     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
                    230:   else
                    231:     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
                    232: $0: including any error possibly output before this
                    233: $0: message. Then install a modern shell, or manually run
                    234: $0: the script under such a shell if you do have one."
                    235:   fi
                    236:   exit 1
                    237: fi
1.1       bertrand  238: fi
                    239: fi
1.15      bertrand  240: SHELL=${CONFIG_SHELL-/bin/sh}
                    241: export SHELL
                    242: # Unset more variables known to interfere with behavior of common tools.
                    243: CLICOLOR_FORCE= GREP_OPTIONS=
                    244: unset CLICOLOR_FORCE GREP_OPTIONS
1.14      bertrand  245: 
1.15      bertrand  246: ## --------------------- ##
                    247: ## M4sh Shell Functions. ##
                    248: ## --------------------- ##
                    249: # as_fn_unset VAR
                    250: # ---------------
                    251: # Portably unset VAR.
                    252: as_fn_unset ()
                    253: {
                    254:   { eval $1=; unset $1;}
                    255: }
                    256: as_unset=as_fn_unset
                    257: 
                    258: # as_fn_set_status STATUS
                    259: # -----------------------
                    260: # Set $? to STATUS, without forking.
                    261: as_fn_set_status ()
                    262: {
                    263:   return $1
                    264: } # as_fn_set_status
                    265: 
                    266: # as_fn_exit STATUS
                    267: # -----------------
                    268: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
                    269: as_fn_exit ()
                    270: {
                    271:   set +e
                    272:   as_fn_set_status $1
                    273:   exit $1
                    274: } # as_fn_exit
                    275: 
                    276: # as_fn_mkdir_p
                    277: # -------------
                    278: # Create "$as_dir" as a directory, including parents if necessary.
                    279: as_fn_mkdir_p ()
                    280: {
1.14      bertrand  281: 
1.15      bertrand  282:   case $as_dir in #(
                    283:   -*) as_dir=./$as_dir;;
                    284:   esac
                    285:   test -d "$as_dir" || eval $as_mkdir_p || {
                    286:     as_dirs=
                    287:     while :; do
                    288:       case $as_dir in #(
                    289:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
                    290:       *) as_qdir=$as_dir;;
                    291:       esac
                    292:       as_dirs="'$as_qdir' $as_dirs"
                    293:       as_dir=`$as_dirname -- "$as_dir" ||
                    294: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                    295:     X"$as_dir" : 'X\(//\)[^/]' \| \
                    296:     X"$as_dir" : 'X\(//\)$' \| \
                    297:     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                    298: $as_echo X"$as_dir" |
                    299:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                    300:        s//\1/
                    301:        q
                    302:      }
                    303:      /^X\(\/\/\)[^/].*/{
                    304:        s//\1/
                    305:        q
                    306:      }
                    307:      /^X\(\/\/\)$/{
                    308:        s//\1/
                    309:        q
                    310:      }
                    311:      /^X\(\/\).*/{
                    312:        s//\1/
                    313:        q
                    314:      }
                    315:      s/.*/./; q'`
                    316:       test -d "$as_dir" && break
                    317:     done
                    318:     test -z "$as_dirs" || eval "mkdir $as_dirs"
1.36      bertrand  319:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.1       bertrand  320: 
                    321: 
1.15      bertrand  322: } # as_fn_mkdir_p
                    323: # as_fn_append VAR VALUE
                    324: # ----------------------
                    325: # Append the text in VALUE to the end of the definition contained in VAR. Take
                    326: # advantage of any shell optimizations that allow amortized linear growth over
                    327: # repeated appends, instead of the typical quadratic growth present in naive
                    328: # implementations.
                    329: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
                    330:   eval 'as_fn_append ()
                    331:   {
                    332:     eval $1+=\$2
                    333:   }'
1.14      bertrand  334: else
1.15      bertrand  335:   as_fn_append ()
                    336:   {
                    337:     eval $1=\$$1\$2
                    338:   }
                    339: fi # as_fn_append
1.1       bertrand  340: 
1.15      bertrand  341: # as_fn_arith ARG...
                    342: # ------------------
                    343: # Perform arithmetic evaluation on the ARGs, and store the result in the
                    344: # global $as_val. Take advantage of shells that can avoid forks. The arguments
                    345: # must be portable across $(()) and expr.
                    346: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                    347:   eval 'as_fn_arith ()
                    348:   {
                    349:     as_val=$(( $* ))
                    350:   }'
1.1       bertrand  351: else
1.15      bertrand  352:   as_fn_arith ()
                    353:   {
                    354:     as_val=`expr "$@" || test $? -eq 1`
                    355:   }
                    356: fi # as_fn_arith
1.14      bertrand  357: 
                    358: 
1.36      bertrand  359: # as_fn_error STATUS ERROR [LINENO LOG_FD]
                    360: # ----------------------------------------
1.15      bertrand  361: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
                    362: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.36      bertrand  363: # script with STATUS, using 1 if that was 0.
1.15      bertrand  364: as_fn_error ()
                    365: {
1.36      bertrand  366:   as_status=$1; test $as_status -eq 0 && as_status=1
                    367:   if test "$4"; then
                    368:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                    369:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.15      bertrand  370:   fi
1.36      bertrand  371:   $as_echo "$as_me: error: $2" >&2
1.15      bertrand  372:   as_fn_exit $as_status
                    373: } # as_fn_error
1.14      bertrand  374: 
1.15      bertrand  375: if expr a : '\(a\)' >/dev/null 2>&1 &&
                    376:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                    377:   as_expr=expr
1.1       bertrand  378: else
1.15      bertrand  379:   as_expr=false
1.14      bertrand  380: fi
                    381: 
1.15      bertrand  382: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                    383:   as_basename=basename
1.1       bertrand  384: else
1.15      bertrand  385:   as_basename=false
1.14      bertrand  386: fi
                    387: 
1.15      bertrand  388: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                    389:   as_dirname=dirname
1.1       bertrand  390: else
1.15      bertrand  391:   as_dirname=false
1.1       bertrand  392: fi
                    393: 
1.15      bertrand  394: as_me=`$as_basename -- "$0" ||
                    395: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                    396:     X"$0" : 'X\(//\)$' \| \
                    397:     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
                    398: $as_echo X/"$0" |
                    399:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                    400:        s//\1/
                    401:        q
                    402:      }
                    403:      /^X\/\(\/\/\)$/{
                    404:        s//\1/
                    405:        q
                    406:      }
                    407:      /^X\/\(\/\).*/{
                    408:        s//\1/
                    409:        q
                    410:      }
                    411:      s/.*/./; q'`
1.1       bertrand  412: 
1.15      bertrand  413: # Avoid depending upon Character Ranges.
                    414: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                    415: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                    416: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                    417: as_cr_digits='0123456789'
                    418: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1       bertrand  419: 
                    420: 
1.15      bertrand  421:   as_lineno_1=$LINENO as_lineno_1a=$LINENO
                    422:   as_lineno_2=$LINENO as_lineno_2a=$LINENO
                    423:   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
                    424:   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
                    425:   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
1.1       bertrand  426:   sed -n '
                    427:     p
                    428:     /[$]LINENO/=
                    429:   ' <$as_myself |
                    430:     sed '
                    431:       s/[$]LINENO.*/&-/
                    432:       t lineno
                    433:       b
                    434:       :lineno
                    435:       N
                    436:       :loop
                    437:       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
                    438:       t loop
                    439:       s/-\n.*//
                    440:     ' >$as_me.lineno &&
                    441:   chmod +x "$as_me.lineno" ||
1.15      bertrand  442:     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.1       bertrand  443: 
                    444:   # Don't try to exec as it changes $[0], causing all sort of problems
                    445:   # (the dirname of $[0] is not the place where we might find the
                    446:   # original and so on.  Autoconf is especially sensitive to this).
                    447:   . "./$as_me.lineno"
                    448:   # Exit status is that of the last command.
                    449:   exit
                    450: }
                    451: 
1.15      bertrand  452: ECHO_C= ECHO_N= ECHO_T=
                    453: case `echo -n x` in #(((((
                    454: -n*)
                    455:   case `echo 'xy\c'` in
1.1       bertrand  456:   *c*) ECHO_T='    ';; # ECHO_T is single tab character.
1.15      bertrand  457:   xy)  ECHO_C='\c';;
                    458:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
                    459:        ECHO_T='    ';;
1.1       bertrand  460:   esac;;
                    461: *)
                    462:   ECHO_N='-n';;
                    463: esac
                    464: 
                    465: rm -f conf$$ conf$$.exe conf$$.file
                    466: if test -d conf$$.dir; then
                    467:   rm -f conf$$.dir/conf$$.file
                    468: else
                    469:   rm -f conf$$.dir
1.15      bertrand  470:   mkdir conf$$.dir 2>/dev/null
1.1       bertrand  471: fi
1.15      bertrand  472: if (echo >conf$$.file) 2>/dev/null; then
                    473:   if ln -s conf$$.file conf$$ 2>/dev/null; then
                    474:     as_ln_s='ln -s'
                    475:     # ... but there are two gotchas:
                    476:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                    477:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                    478:     # In both cases, we have to default to `cp -p'.
                    479:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
                    480:       as_ln_s='cp -p'
                    481:   elif ln conf$$.file conf$$ 2>/dev/null; then
                    482:     as_ln_s=ln
                    483:   else
1.1       bertrand  484:     as_ln_s='cp -p'
1.15      bertrand  485:   fi
1.1       bertrand  486: else
                    487:   as_ln_s='cp -p'
                    488: fi
                    489: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                    490: rmdir conf$$.dir 2>/dev/null
                    491: 
                    492: if mkdir -p . 2>/dev/null; then
1.15      bertrand  493:   as_mkdir_p='mkdir -p "$as_dir"'
1.1       bertrand  494: else
                    495:   test -d ./-p && rmdir ./-p
                    496:   as_mkdir_p=false
                    497: fi
                    498: 
                    499: if test -x / >/dev/null 2>&1; then
                    500:   as_test_x='test -x'
                    501: else
                    502:   if ls -dL / >/dev/null 2>&1; then
                    503:     as_ls_L_option=L
                    504:   else
                    505:     as_ls_L_option=
                    506:   fi
                    507:   as_test_x='
                    508:     eval sh -c '\''
                    509:       if test -d "$1"; then
1.15      bertrand  510:    test -d "$1/.";
1.1       bertrand  511:       else
1.15      bertrand  512:    case $1 in #(
                    513:    -*)set "./$1";;
1.1       bertrand  514:    esac;
1.15      bertrand  515:    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1       bertrand  516:    ???[sx]*):;;*)false;;esac;fi
                    517:     '\'' sh
                    518:   '
                    519: fi
                    520: as_executable_p=$as_test_x
                    521: 
                    522: # Sed expression to map a string onto a valid CPP name.
                    523: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                    524: 
                    525: # Sed expression to map a string onto a valid variable name.
                    526: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                    527: 
                    528: 
1.15      bertrand  529: test -n "$DJDIR" || exec 7<&0 </dev/null
                    530: exec 6>&1
1.1       bertrand  531: 
                    532: # Name of the host.
1.36      bertrand  533: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.1       bertrand  534: # so uname gets run too.
                    535: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
                    536: 
                    537: #
                    538: # Initializations.
                    539: #
                    540: ac_default_prefix=/usr/local
                    541: ac_clean_files=
                    542: ac_config_libobj_dir=.
                    543: LIBOBJS=
                    544: cross_compiling=no
                    545: subdirs=
                    546: MFLAGS=
                    547: MAKEFLAGS=
                    548: 
                    549: # Identity of this package.
                    550: PACKAGE_NAME='rpl'
                    551: PACKAGE_TARNAME='rpl'
1.44      bertrand  552: PACKAGE_VERSION='4.0.20'
                    553: PACKAGE_STRING='rpl 4.0.20'
1.1       bertrand  554: PACKAGE_BUGREPORT=''
1.15      bertrand  555: PACKAGE_URL=''
1.1       bertrand  556: 
                    557: ac_default_prefix=/usr/local
                    558: # Factoring default headers for most tests.
                    559: ac_includes_default="\
                    560: #include <stdio.h>
                    561: #ifdef HAVE_SYS_TYPES_H
                    562: # include <sys/types.h>
                    563: #endif
                    564: #ifdef HAVE_SYS_STAT_H
                    565: # include <sys/stat.h>
                    566: #endif
                    567: #ifdef STDC_HEADERS
                    568: # include <stdlib.h>
                    569: # include <stddef.h>
                    570: #else
                    571: # ifdef HAVE_STDLIB_H
                    572: #  include <stdlib.h>
                    573: # endif
                    574: #endif
                    575: #ifdef HAVE_STRING_H
                    576: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
                    577: #  include <memory.h>
                    578: # endif
                    579: # include <string.h>
                    580: #endif
                    581: #ifdef HAVE_STRINGS_H
                    582: # include <strings.h>
                    583: #endif
                    584: #ifdef HAVE_INTTYPES_H
                    585: # include <inttypes.h>
                    586: #endif
                    587: #ifdef HAVE_STDINT_H
                    588: # include <stdint.h>
                    589: #endif
                    590: #ifdef HAVE_UNISTD_H
                    591: # include <unistd.h>
                    592: #endif"
                    593: 
1.15      bertrand  594: enable_option_checking=no
                    595: ac_subst_vars='am__EXEEXT_FALSE
                    596: am__EXEEXT_TRUE
                    597: LTLIBOBJS
                    598: LIBOBJS
1.30      bertrand  599: EXT_SQL
1.15      bertrand  600: DATE_FR
                    601: FINAL_ENCODING
                    602: OPENSSL
                    603: SQLITE
                    604: ICONV
                    605: FILE
                    606: GNUPLOT
                    607: GPP
                    608: GSL
                    609: UNITS
                    610: READLINE
                    611: NCURSES
1.40      bertrand  612: BSH_PATH
1.35      bertrand  613: BROKEN_SIGINFO
1.34      bertrand  614: IPV6
1.33      bertrand  615: SEMUN
1.36      bertrand  616: IPCS_SYSV
1.17      bertrand  617: SEMAPHORES_NOMMES
                    618: NESTED_FUNCTIONS
                    619: EXPORT_DYNAMIC
1.33      bertrand  620: C_STANDARD
1.15      bertrand  621: OS
                    622: GNUPLOT_COMPILATION
                    623: subdirs
                    624: EGREP
                    625: GREP
                    626: libPgSQLlib
                    627: libPgSQLinc
                    628: POSTGRESQL_SUPPORT
                    629: libMySQLlib
                    630: libMySQLinc
                    631: MYSQL_SUPPORT
                    632: DATE
                    633: includeX
                    634: libX
                    635: MOTIF_SUPPORT
                    636: DEBUG
                    637: EXPERIMENTAL_CODE
                    638: VIM_SUPPORT
                    639: POSTSCRIPT_SUPPORT
                    640: FORCE_GNUPLOT_PATH
                    641: GNUPLOT_SUPPORT
                    642: VIM
                    643: GNUPLOT_P
                    644: GV
                    645: GS
                    646: DVIPS
                    647: LATEX
                    648: TEX
                    649: SED
                    650: RANLIB
                    651: LN_S
                    652: RUNPATH
                    653: PROFILAGE
                    654: X_EXTRA_LIBS
                    655: X_LIBS
                    656: X_PRE_LIBS
                    657: X_CFLAGS
                    658: CPP
                    659: XMKMF
                    660: ac_ct_FC
                    661: FCFLAGS
                    662: FC
                    663: ac_ct_F77
                    664: FFLAGS
                    665: F77
                    666: am__fastdepCXX_FALSE
                    667: am__fastdepCXX_TRUE
                    668: CXXDEPMODE
                    669: ac_ct_CXX
                    670: CXXFLAGS
                    671: CXX
                    672: am__fastdepCC_FALSE
                    673: am__fastdepCC_TRUE
                    674: CCDEPMODE
                    675: AMDEPBACKSLASH
                    676: AMDEP_FALSE
                    677: AMDEP_TRUE
                    678: am__quote
                    679: am__include
                    680: DEPDIR
                    681: OBJEXT
                    682: EXEEXT
                    683: ac_ct_CC
                    684: CPPFLAGS
                    685: LDFLAGS
                    686: CFLAGS
                    687: CC
                    688: am__untar
                    689: am__tar
                    690: AMTAR
                    691: am__leading_dot
                    692: SET_MAKE
                    693: AWK
                    694: mkdir_p
                    695: MKDIR_P
                    696: INSTALL_STRIP_PROGRAM
                    697: STRIP
                    698: install_sh
                    699: MAKEINFO
                    700: AUTOHEADER
                    701: AUTOMAKE
                    702: AUTOCONF
                    703: ACLOCAL
                    704: VERSION
                    705: PACKAGE
                    706: CYGPATH_W
                    707: am__isrc
                    708: INSTALL_DATA
                    709: INSTALL_SCRIPT
                    710: INSTALL_PROGRAM
                    711: target_os
                    712: target_vendor
                    713: target_cpu
                    714: target
                    715: host_os
                    716: host_vendor
                    717: host_cpu
                    718: host
                    719: build_os
                    720: build_vendor
                    721: build_cpu
                    722: build
                    723: target_alias
                    724: host_alias
                    725: build_alias
                    726: LIBS
                    727: ECHO_T
                    728: ECHO_N
                    729: ECHO_C
                    730: DEFS
                    731: mandir
                    732: localedir
                    733: libdir
                    734: psdir
                    735: pdfdir
                    736: dvidir
                    737: htmldir
                    738: infodir
                    739: docdir
                    740: oldincludedir
                    741: includedir
                    742: localstatedir
                    743: sharedstatedir
                    744: sysconfdir
                    745: datadir
                    746: datarootdir
                    747: libexecdir
                    748: sbindir
                    749: bindir
                    750: program_transform_name
                    751: prefix
                    752: exec_prefix
                    753: PACKAGE_URL
                    754: PACKAGE_BUGREPORT
                    755: PACKAGE_STRING
                    756: PACKAGE_VERSION
                    757: PACKAGE_TARNAME
                    758: PACKAGE_NAME
1.14      bertrand  759: PATH_SEPARATOR
1.15      bertrand  760: SHELL'
                    761: ac_subst_files=''
                    762: ac_user_opts='
                    763: enable_option_checking
                    764: enable_dependency_tracking
                    765: with_x
                    766: enable_optimization
1.36      bertrand  767: enable_sysv_semaphores
1.30      bertrand  768: enable_full_static
1.15      bertrand  769: enable_final_encoding
                    770: enable_tex
                    771: enable_vim
                    772: enable_embedded_gnuplot
                    773: enable_gnuplot
                    774: enable_motif
                    775: enable_experimental
                    776: enable_debug
                    777: enable_profile
                    778: enable_final_run_path
                    779: with_mysql
                    780: with_postgresql
1.40      bertrand  781: with_bourne_shell
1.15      bertrand  782: with_openssl_arch
                    783: '
                    784:       ac_precious_vars='build_alias
1.1       bertrand  785: host_alias
                    786: target_alias
                    787: CC
                    788: CFLAGS
                    789: LDFLAGS
1.15      bertrand  790: LIBS
1.1       bertrand  791: CPPFLAGS
                    792: CXX
                    793: CXXFLAGS
1.15      bertrand  794: CCC
1.1       bertrand  795: F77
                    796: FFLAGS
                    797: FC
                    798: FCFLAGS
                    799: XMKMF
                    800: CPP'
                    801: ac_subdirs_all='tools/$NCURSES
                    802: tools/$READLINE
                    803: tools/$GSL
                    804: tools/$GPP
                    805: tools/$FILE
                    806: tools/$ICONV
1.9       bertrand  807: tools/$SQLITE
1.17      bertrand  808: tools/$UNITS
1.1       bertrand  809: tools/$GNUPLOT'
                    810: 
                    811: # Initialize some variables set by options.
                    812: ac_init_help=
                    813: ac_init_version=false
1.15      bertrand  814: ac_unrecognized_opts=
                    815: ac_unrecognized_sep=
1.1       bertrand  816: # The variables have the same names as the options, with
                    817: # dashes changed to underlines.
                    818: cache_file=/dev/null
                    819: exec_prefix=NONE
                    820: no_create=
                    821: no_recursion=
                    822: prefix=NONE
                    823: program_prefix=NONE
                    824: program_suffix=NONE
                    825: program_transform_name=s,x,x,
                    826: silent=
                    827: site=
                    828: srcdir=
                    829: verbose=
                    830: x_includes=NONE
                    831: x_libraries=NONE
                    832: 
                    833: # Installation directory options.
                    834: # These are left unexpanded so users can "make install exec_prefix=/foo"
                    835: # and all the variables that are supposed to be based on exec_prefix
                    836: # by default will actually change.
                    837: # Use braces instead of parens because sh, perl, etc. also accept them.
                    838: # (The list follows the same order as the GNU Coding Standards.)
                    839: bindir='${exec_prefix}/bin'
                    840: sbindir='${exec_prefix}/sbin'
                    841: libexecdir='${exec_prefix}/libexec'
                    842: datarootdir='${prefix}/share'
                    843: datadir='${datarootdir}'
                    844: sysconfdir='${prefix}/etc'
                    845: sharedstatedir='${prefix}/com'
                    846: localstatedir='${prefix}/var'
                    847: includedir='${prefix}/include'
                    848: oldincludedir='/usr/include'
                    849: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
                    850: infodir='${datarootdir}/info'
                    851: htmldir='${docdir}'
                    852: dvidir='${docdir}'
                    853: pdfdir='${docdir}'
                    854: psdir='${docdir}'
                    855: libdir='${exec_prefix}/lib'
                    856: localedir='${datarootdir}/locale'
                    857: mandir='${datarootdir}/man'
                    858: 
                    859: ac_prev=
                    860: ac_dashdash=
                    861: for ac_option
                    862: do
                    863:   # If the previous option needs an argument, assign it.
                    864:   if test -n "$ac_prev"; then
                    865:     eval $ac_prev=\$ac_option
                    866:     ac_prev=
                    867:     continue
                    868:   fi
                    869: 
                    870:   case $ac_option in
1.36      bertrand  871:   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
                    872:   *=)   ac_optarg= ;;
                    873:   *)    ac_optarg=yes ;;
1.1       bertrand  874:   esac
                    875: 
                    876:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    877: 
                    878:   case $ac_dashdash$ac_option in
                    879:   --)
                    880:     ac_dashdash=yes ;;
                    881: 
                    882:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    883:     ac_prev=bindir ;;
                    884:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
                    885:     bindir=$ac_optarg ;;
                    886: 
                    887:   -build | --build | --buil | --bui | --bu)
                    888:     ac_prev=build_alias ;;
                    889:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
                    890:     build_alias=$ac_optarg ;;
                    891: 
                    892:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    893:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    894:     ac_prev=cache_file ;;
                    895:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    896:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                    897:     cache_file=$ac_optarg ;;
                    898: 
                    899:   --config-cache | -C)
                    900:     cache_file=config.cache ;;
                    901: 
                    902:   -datadir | --datadir | --datadi | --datad)
                    903:     ac_prev=datadir ;;
                    904:   -datadir=* | --datadir=* | --datadi=* | --datad=*)
                    905:     datadir=$ac_optarg ;;
                    906: 
                    907:   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
                    908:   | --dataroo | --dataro | --datar)
                    909:     ac_prev=datarootdir ;;
                    910:   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
                    911:   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
                    912:     datarootdir=$ac_optarg ;;
                    913: 
                    914:   -disable-* | --disable-*)
1.15      bertrand  915:     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1       bertrand  916:     # Reject names that are not valid shell variable names.
1.15      bertrand  917:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand  918:       as_fn_error $? "invalid feature name: $ac_useropt"
1.15      bertrand  919:     ac_useropt_orig=$ac_useropt
                    920:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                    921:     case $ac_user_opts in
                    922:       *"
                    923: "enable_$ac_useropt"
                    924: "*) ;;
                    925:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
                    926:     ac_unrecognized_sep=', ';;
                    927:     esac
                    928:     eval enable_$ac_useropt=no ;;
1.1       bertrand  929: 
                    930:   -docdir | --docdir | --docdi | --doc | --do)
                    931:     ac_prev=docdir ;;
                    932:   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
                    933:     docdir=$ac_optarg ;;
                    934: 
                    935:   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
                    936:     ac_prev=dvidir ;;
                    937:   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
                    938:     dvidir=$ac_optarg ;;
                    939: 
                    940:   -enable-* | --enable-*)
1.15      bertrand  941:     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1       bertrand  942:     # Reject names that are not valid shell variable names.
1.15      bertrand  943:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand  944:       as_fn_error $? "invalid feature name: $ac_useropt"
1.15      bertrand  945:     ac_useropt_orig=$ac_useropt
                    946:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                    947:     case $ac_user_opts in
                    948:       *"
                    949: "enable_$ac_useropt"
                    950: "*) ;;
                    951:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
                    952:     ac_unrecognized_sep=', ';;
                    953:     esac
                    954:     eval enable_$ac_useropt=\$ac_optarg ;;
1.1       bertrand  955: 
                    956:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    957:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    958:   | --exec | --exe | --ex)
                    959:     ac_prev=exec_prefix ;;
                    960:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    961:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                    962:   | --exec=* | --exe=* | --ex=*)
                    963:     exec_prefix=$ac_optarg ;;
                    964: 
                    965:   -gas | --gas | --ga | --g)
                    966:     # Obsolete; use --with-gas.
                    967:     with_gas=yes ;;
                    968: 
                    969:   -help | --help | --hel | --he | -h)
                    970:     ac_init_help=long ;;
                    971:   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
                    972:     ac_init_help=recursive ;;
                    973:   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
                    974:     ac_init_help=short ;;
                    975: 
                    976:   -host | --host | --hos | --ho)
                    977:     ac_prev=host_alias ;;
                    978:   -host=* | --host=* | --hos=* | --ho=*)
                    979:     host_alias=$ac_optarg ;;
                    980: 
                    981:   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
                    982:     ac_prev=htmldir ;;
                    983:   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
                    984:   | --ht=*)
                    985:     htmldir=$ac_optarg ;;
                    986: 
                    987:   -includedir | --includedir | --includedi | --included | --include \
                    988:   | --includ | --inclu | --incl | --inc)
                    989:     ac_prev=includedir ;;
                    990:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                    991:   | --includ=* | --inclu=* | --incl=* | --inc=*)
                    992:     includedir=$ac_optarg ;;
                    993: 
                    994:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                    995:     ac_prev=infodir ;;
                    996:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
                    997:     infodir=$ac_optarg ;;
                    998: 
                    999:   -libdir | --libdir | --libdi | --libd)
                   1000:     ac_prev=libdir ;;
                   1001:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
                   1002:     libdir=$ac_optarg ;;
                   1003: 
                   1004:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                   1005:   | --libexe | --libex | --libe)
                   1006:     ac_prev=libexecdir ;;
                   1007:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                   1008:   | --libexe=* | --libex=* | --libe=*)
                   1009:     libexecdir=$ac_optarg ;;
                   1010: 
                   1011:   -localedir | --localedir | --localedi | --localed | --locale)
                   1012:     ac_prev=localedir ;;
                   1013:   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
                   1014:     localedir=$ac_optarg ;;
                   1015: 
                   1016:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                   1017:   | --localstate | --localstat | --localsta | --localst | --locals)
                   1018:     ac_prev=localstatedir ;;
                   1019:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                   1020:   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
                   1021:     localstatedir=$ac_optarg ;;
                   1022: 
                   1023:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                   1024:     ac_prev=mandir ;;
                   1025:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
                   1026:     mandir=$ac_optarg ;;
                   1027: 
                   1028:   -nfp | --nfp | --nf)
                   1029:     # Obsolete; use --without-fp.
                   1030:     with_fp=no ;;
                   1031: 
                   1032:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                   1033:   | --no-cr | --no-c | -n)
                   1034:     no_create=yes ;;
                   1035: 
                   1036:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                   1037:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                   1038:     no_recursion=yes ;;
                   1039: 
                   1040:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                   1041:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                   1042:   | --oldin | --oldi | --old | --ol | --o)
                   1043:     ac_prev=oldincludedir ;;
                   1044:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                   1045:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                   1046:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
                   1047:     oldincludedir=$ac_optarg ;;
                   1048: 
                   1049:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   1050:     ac_prev=prefix ;;
                   1051:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                   1052:     prefix=$ac_optarg ;;
                   1053: 
                   1054:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                   1055:   | --program-pre | --program-pr | --program-p)
                   1056:     ac_prev=program_prefix ;;
                   1057:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                   1058:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                   1059:     program_prefix=$ac_optarg ;;
                   1060: 
                   1061:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                   1062:   | --program-suf | --program-su | --program-s)
                   1063:     ac_prev=program_suffix ;;
                   1064:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                   1065:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                   1066:     program_suffix=$ac_optarg ;;
                   1067: 
                   1068:   -program-transform-name | --program-transform-name \
                   1069:   | --program-transform-nam | --program-transform-na \
                   1070:   | --program-transform-n | --program-transform- \
                   1071:   | --program-transform | --program-transfor \
                   1072:   | --program-transfo | --program-transf \
                   1073:   | --program-trans | --program-tran \
                   1074:   | --progr-tra | --program-tr | --program-t)
                   1075:     ac_prev=program_transform_name ;;
                   1076:   -program-transform-name=* | --program-transform-name=* \
                   1077:   | --program-transform-nam=* | --program-transform-na=* \
                   1078:   | --program-transform-n=* | --program-transform-=* \
                   1079:   | --program-transform=* | --program-transfor=* \
                   1080:   | --program-transfo=* | --program-transf=* \
                   1081:   | --program-trans=* | --program-tran=* \
                   1082:   | --progr-tra=* | --program-tr=* | --program-t=*)
                   1083:     program_transform_name=$ac_optarg ;;
                   1084: 
                   1085:   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
                   1086:     ac_prev=pdfdir ;;
                   1087:   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
                   1088:     pdfdir=$ac_optarg ;;
                   1089: 
                   1090:   -psdir | --psdir | --psdi | --psd | --ps)
                   1091:     ac_prev=psdir ;;
                   1092:   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
                   1093:     psdir=$ac_optarg ;;
                   1094: 
                   1095:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   1096:   | -silent | --silent | --silen | --sile | --sil)
                   1097:     silent=yes ;;
                   1098: 
                   1099:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                   1100:     ac_prev=sbindir ;;
                   1101:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                   1102:   | --sbi=* | --sb=*)
                   1103:     sbindir=$ac_optarg ;;
                   1104: 
                   1105:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                   1106:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                   1107:   | --sharedst | --shareds | --shared | --share | --shar \
                   1108:   | --sha | --sh)
                   1109:     ac_prev=sharedstatedir ;;
                   1110:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                   1111:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                   1112:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                   1113:   | --sha=* | --sh=*)
                   1114:     sharedstatedir=$ac_optarg ;;
                   1115: 
                   1116:   -site | --site | --sit)
                   1117:     ac_prev=site ;;
                   1118:   -site=* | --site=* | --sit=*)
                   1119:     site=$ac_optarg ;;
                   1120: 
                   1121:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   1122:     ac_prev=srcdir ;;
                   1123:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   1124:     srcdir=$ac_optarg ;;
                   1125: 
                   1126:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                   1127:   | --syscon | --sysco | --sysc | --sys | --sy)
                   1128:     ac_prev=sysconfdir ;;
                   1129:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                   1130:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
                   1131:     sysconfdir=$ac_optarg ;;
                   1132: 
                   1133:   -target | --target | --targe | --targ | --tar | --ta | --t)
                   1134:     ac_prev=target_alias ;;
                   1135:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                   1136:     target_alias=$ac_optarg ;;
                   1137: 
                   1138:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                   1139:     verbose=yes ;;
                   1140: 
                   1141:   -version | --version | --versio | --versi | --vers | -V)
                   1142:     ac_init_version=: ;;
                   1143: 
                   1144:   -with-* | --with-*)
1.15      bertrand 1145:     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1       bertrand 1146:     # Reject names that are not valid shell variable names.
1.15      bertrand 1147:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand 1148:       as_fn_error $? "invalid package name: $ac_useropt"
1.15      bertrand 1149:     ac_useropt_orig=$ac_useropt
                   1150:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1151:     case $ac_user_opts in
                   1152:       *"
                   1153: "with_$ac_useropt"
                   1154: "*) ;;
                   1155:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
                   1156:     ac_unrecognized_sep=', ';;
                   1157:     esac
                   1158:     eval with_$ac_useropt=\$ac_optarg ;;
1.1       bertrand 1159: 
                   1160:   -without-* | --without-*)
1.15      bertrand 1161:     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1       bertrand 1162:     # Reject names that are not valid shell variable names.
1.15      bertrand 1163:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand 1164:       as_fn_error $? "invalid package name: $ac_useropt"
1.15      bertrand 1165:     ac_useropt_orig=$ac_useropt
                   1166:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1167:     case $ac_user_opts in
                   1168:       *"
                   1169: "with_$ac_useropt"
                   1170: "*) ;;
                   1171:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
                   1172:     ac_unrecognized_sep=', ';;
                   1173:     esac
                   1174:     eval with_$ac_useropt=no ;;
1.1       bertrand 1175: 
                   1176:   --x)
                   1177:     # Obsolete; use --with-x.
                   1178:     with_x=yes ;;
                   1179: 
                   1180:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                   1181:   | --x-incl | --x-inc | --x-in | --x-i)
                   1182:     ac_prev=x_includes ;;
                   1183:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                   1184:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                   1185:     x_includes=$ac_optarg ;;
                   1186: 
                   1187:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                   1188:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                   1189:     ac_prev=x_libraries ;;
                   1190:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                   1191:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                   1192:     x_libraries=$ac_optarg ;;
                   1193: 
1.36      bertrand 1194:   -*) as_fn_error $? "unrecognized option: \`$ac_option'
                   1195: Try \`$0 --help' for more information"
1.1       bertrand 1196:     ;;
                   1197: 
                   1198:   *=*)
                   1199:     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
                   1200:     # Reject names that are not valid shell variable names.
1.15      bertrand 1201:     case $ac_envvar in #(
                   1202:       '' | [0-9]* | *[!_$as_cr_alnum]* )
1.36      bertrand 1203:       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1.15      bertrand 1204:     esac
1.1       bertrand 1205:     eval $ac_envvar=\$ac_optarg
                   1206:     export $ac_envvar ;;
                   1207: 
                   1208:   *)
                   1209:     # FIXME: should be removed in autoconf 3.0.
1.15      bertrand 1210:     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1       bertrand 1211:     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.15      bertrand 1212:       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.1       bertrand 1213:     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
                   1214:     ;;
                   1215: 
                   1216:   esac
                   1217: done
                   1218: 
                   1219: if test -n "$ac_prev"; then
                   1220:   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.36      bertrand 1221:   as_fn_error $? "missing argument to $ac_option"
1.15      bertrand 1222: fi
                   1223: 
                   1224: if test -n "$ac_unrecognized_opts"; then
                   1225:   case $enable_option_checking in
                   1226:     no) ;;
1.36      bertrand 1227:     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1.15      bertrand 1228:     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
                   1229:   esac
1.1       bertrand 1230: fi
                   1231: 
1.15      bertrand 1232: # Check all directory arguments for consistency.
1.1       bertrand 1233: for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
                   1234:        datadir sysconfdir sharedstatedir localstatedir includedir \
                   1235:        oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
                   1236:        libdir localedir mandir
                   1237: do
                   1238:   eval ac_val=\$$ac_var
1.15      bertrand 1239:   # Remove trailing slashes.
                   1240:   case $ac_val in
                   1241:     */ )
                   1242:       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
                   1243:       eval $ac_var=\$ac_val;;
                   1244:   esac
                   1245:   # Be sure to have absolute directory names.
1.1       bertrand 1246:   case $ac_val in
                   1247:     [\\/$]* | ?:[\\/]* )  continue;;
                   1248:     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
                   1249:   esac
1.36      bertrand 1250:   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1       bertrand 1251: done
                   1252: 
                   1253: # There might be people who depend on the old broken behavior: `$host'
                   1254: # used to hold the argument of --host etc.
                   1255: # FIXME: To remove some day.
                   1256: build=$build_alias
                   1257: host=$host_alias
                   1258: target=$target_alias
                   1259: 
                   1260: # FIXME: To remove some day.
                   1261: if test "x$host_alias" != x; then
                   1262:   if test "x$build_alias" = x; then
                   1263:     cross_compiling=maybe
1.36      bertrand 1264:     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
                   1265:     If a cross compiler is detected then cross compile mode will be used" >&2
1.1       bertrand 1266:   elif test "x$build_alias" != "x$host_alias"; then
                   1267:     cross_compiling=yes
                   1268:   fi
                   1269: fi
                   1270: 
                   1271: ac_tool_prefix=
                   1272: test -n "$host_alias" && ac_tool_prefix=$host_alias-
                   1273: 
                   1274: test "$silent" = yes && exec 6>/dev/null
                   1275: 
                   1276: 
                   1277: ac_pwd=`pwd` && test -n "$ac_pwd" &&
                   1278: ac_ls_di=`ls -di .` &&
                   1279: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1.36      bertrand 1280:   as_fn_error $? "working directory cannot be determined"
1.1       bertrand 1281: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1.36      bertrand 1282:   as_fn_error $? "pwd does not report name of working directory"
1.1       bertrand 1283: 
                   1284: 
                   1285: # Find the source files, if location was not specified.
                   1286: if test -z "$srcdir"; then
                   1287:   ac_srcdir_defaulted=yes
                   1288:   # Try the directory containing this script, then the parent directory.
1.15      bertrand 1289:   ac_confdir=`$as_dirname -- "$as_myself" ||
                   1290: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   1291:     X"$as_myself" : 'X\(//\)[^/]' \| \
                   1292:     X"$as_myself" : 'X\(//\)$' \| \
                   1293:     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
                   1294: $as_echo X"$as_myself" |
1.1       bertrand 1295:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   1296:        s//\1/
                   1297:        q
                   1298:      }
                   1299:      /^X\(\/\/\)[^/].*/{
                   1300:        s//\1/
                   1301:        q
                   1302:      }
                   1303:      /^X\(\/\/\)$/{
                   1304:        s//\1/
                   1305:        q
                   1306:      }
                   1307:      /^X\(\/\).*/{
                   1308:        s//\1/
                   1309:        q
                   1310:      }
                   1311:      s/.*/./; q'`
                   1312:   srcdir=$ac_confdir
                   1313:   if test ! -r "$srcdir/$ac_unique_file"; then
                   1314:     srcdir=..
                   1315:   fi
                   1316: else
                   1317:   ac_srcdir_defaulted=no
                   1318: fi
                   1319: if test ! -r "$srcdir/$ac_unique_file"; then
                   1320:   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1.36      bertrand 1321:   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1.1       bertrand 1322: fi
                   1323: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
                   1324: ac_abs_confdir=`(
1.36      bertrand 1325:    cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1.1       bertrand 1326:    pwd)`
                   1327: # When building in place, set srcdir=.
                   1328: if test "$ac_abs_confdir" = "$ac_pwd"; then
                   1329:   srcdir=.
                   1330: fi
                   1331: # Remove unnecessary trailing slashes from srcdir.
                   1332: # Double slashes in file names in object file debugging info
                   1333: # mess up M-x gdb in Emacs.
                   1334: case $srcdir in
                   1335: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
                   1336: esac
                   1337: for ac_var in $ac_precious_vars; do
                   1338:   eval ac_env_${ac_var}_set=\${${ac_var}+set}
                   1339:   eval ac_env_${ac_var}_value=\$${ac_var}
                   1340:   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
                   1341:   eval ac_cv_env_${ac_var}_value=\$${ac_var}
                   1342: done
                   1343: 
                   1344: #
                   1345: # Report the --help message.
                   1346: #
                   1347: if test "$ac_init_help" = "long"; then
                   1348:   # Omit some internal or obsolete options to make the list less imposing.
                   1349:   # This message is too long to be a string in the A/UX 3.1 sh.
                   1350:   cat <<_ACEOF
1.44      bertrand 1351: \`configure' configures rpl 4.0.20 to adapt to many kinds of systems.
1.1       bertrand 1352: 
                   1353: Usage: $0 [OPTION]... [VAR=VALUE]...
                   1354: 
                   1355: To assign environment variables (e.g., CC, CFLAGS...), specify them as
                   1356: VAR=VALUE.  See below for descriptions of some of the useful variables.
                   1357: 
                   1358: Defaults for the options are specified in brackets.
                   1359: 
                   1360: Configuration:
                   1361:   -h, --help              display this help and exit
                   1362:       --help=short        display options specific to this package
                   1363:       --help=recursive    display the short help of all the included packages
                   1364:   -V, --version           display version information and exit
1.36      bertrand 1365:   -q, --quiet, --silent   do not print \`checking ...' messages
1.1       bertrand 1366:       --cache-file=FILE   cache test results in FILE [disabled]
                   1367:   -C, --config-cache      alias for \`--cache-file=config.cache'
                   1368:   -n, --no-create         do not create output files
                   1369:       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
                   1370: 
                   1371: Installation directories:
                   1372:   --prefix=PREFIX         install architecture-independent files in PREFIX
1.15      bertrand 1373:                           [$ac_default_prefix]
1.1       bertrand 1374:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1.15      bertrand 1375:                           [PREFIX]
1.1       bertrand 1376: 
                   1377: By default, \`make install' will install all the files in
                   1378: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
                   1379: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
                   1380: for instance \`--prefix=\$HOME'.
                   1381: 
                   1382: For better control, use the options below.
                   1383: 
                   1384: Fine tuning of the installation directories:
1.15      bertrand 1385:   --bindir=DIR            user executables [EPREFIX/bin]
                   1386:   --sbindir=DIR           system admin executables [EPREFIX/sbin]
                   1387:   --libexecdir=DIR        program executables [EPREFIX/libexec]
                   1388:   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
                   1389:   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
                   1390:   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
                   1391:   --libdir=DIR            object code libraries [EPREFIX/lib]
                   1392:   --includedir=DIR        C header files [PREFIX/include]
                   1393:   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
                   1394:   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
                   1395:   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
                   1396:   --infodir=DIR           info documentation [DATAROOTDIR/info]
                   1397:   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
                   1398:   --mandir=DIR            man documentation [DATAROOTDIR/man]
                   1399:   --docdir=DIR            documentation root [DATAROOTDIR/doc/rpl]
                   1400:   --htmldir=DIR           html documentation [DOCDIR]
                   1401:   --dvidir=DIR            dvi documentation [DOCDIR]
                   1402:   --pdfdir=DIR            pdf documentation [DOCDIR]
                   1403:   --psdir=DIR             ps documentation [DOCDIR]
1.1       bertrand 1404: _ACEOF
                   1405: 
                   1406:   cat <<\_ACEOF
                   1407: 
                   1408: Program names:
                   1409:   --program-prefix=PREFIX            prepend PREFIX to installed program names
                   1410:   --program-suffix=SUFFIX            append SUFFIX to installed program names
                   1411:   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
                   1412: 
                   1413: X features:
                   1414:   --x-includes=DIR    X include files are in DIR
                   1415:   --x-libraries=DIR   X library files are in DIR
                   1416: 
                   1417: System types:
                   1418:   --build=BUILD     configure for building on BUILD [guessed]
                   1419:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
                   1420:   --target=TARGET   configure for building compilers for TARGET [HOST]
                   1421: _ACEOF
                   1422: fi
                   1423: 
                   1424: if test -n "$ac_init_help"; then
                   1425:   case $ac_init_help in
1.44      bertrand 1426:      short | recursive ) echo "Configuration of rpl 4.0.20:";;
1.1       bertrand 1427:    esac
                   1428:   cat <<\_ACEOF
                   1429: 
                   1430: Optional Features:
1.15      bertrand 1431:   --disable-option-checking  ignore unrecognized --enable/--with options
1.1       bertrand 1432:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                   1433:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                   1434:   --disable-dependency-tracking  speeds up one-time build
                   1435:   --enable-dependency-tracking   do not reject slow dependency extractors
                   1436:   --enable-optimization   set compiler flags [default=environment variables -O3]
1.36      bertrand 1437:   --enable-sysv-ipcs      use SystemV IPC functions [default=no]
1.30      bertrand 1438:   --enable-full-static    build static RPL/2 engine [default=shared]
1.1       bertrand 1439:   --enable-final-encoding force final encoding [default=guessed]
                   1440:   --enable-tex            provide the TeX support [default=guessed]
                   1441:   --enable-vim            provide the vim support [default=guessed]
                   1442:   --enable-embedded-gnuplot build gnuplot provided by this package [default=yes]
                   1443:   --enable-gnuplot        provide the GnuPlot support [default=guessed]
                   1444:   --enable-motif          provide the Motif support [default=guessed]
                   1445:   --enable-experimental   enable experimental code [default=no]
                   1446:   --enable-debug          enable debug code [default=no]
                   1447:   --enable-profile        enable profile code [default=no]
                   1448:   --enable-final-run-path=PATH enable another final run path than PREFIX
                   1449: 
                   1450: Optional Packages:
                   1451:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                   1452:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                   1453:   --with-x                use the X Window System
                   1454:   --with-mysql=PATH         specify directory for installed mysql
                   1455:   --with-postgresql=PATH    specify directory for installed postgresql
1.40      bertrand 1456:   --with-bourne-shell=PATH  specify path for OS/2 bourne shell
1.15      bertrand 1457:   --with-openssl-arch=ARCH  specify os and compiler for openssl (ARCH or list)
1.1       bertrand 1458: 
                   1459: Some influential environment variables:
                   1460:   CC          C compiler command
                   1461:   CFLAGS      C compiler flags
                   1462:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
                   1463:               nonstandard directory <lib dir>
                   1464:   LIBS        libraries to pass to the linker, e.g. -l<library>
1.15      bertrand 1465:   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1.1       bertrand 1466:               you have headers in a nonstandard directory <include dir>
                   1467:   CXX         C++ compiler command
                   1468:   CXXFLAGS    C++ compiler flags
                   1469:   F77         Fortran 77 compiler command
                   1470:   FFLAGS      Fortran 77 compiler flags
                   1471:   FC          Fortran compiler command
                   1472:   FCFLAGS     Fortran compiler flags
                   1473:   XMKMF       Path to xmkmf, Makefile generator for X Window System
                   1474:   CPP         C preprocessor
                   1475: 
                   1476: Use these variables to override the choices made by `configure' or to help
                   1477: it to find libraries and programs with nonstandard names/locations.
                   1478: 
1.15      bertrand 1479: Report bugs to the package provider.
1.1       bertrand 1480: _ACEOF
                   1481: ac_status=$?
                   1482: fi
                   1483: 
                   1484: if test "$ac_init_help" = "recursive"; then
                   1485:   # If there are subdirs, report their specific --help.
                   1486:   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.15      bertrand 1487:     test -d "$ac_dir" ||
                   1488:       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
                   1489:       continue
1.1       bertrand 1490:     ac_builddir=.
                   1491: 
                   1492: case "$ac_dir" in
                   1493: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1494: *)
1.15      bertrand 1495:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 1496:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 1497:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 1498:   case $ac_top_builddir_sub in
                   1499:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1500:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   1501:   esac ;;
                   1502: esac
                   1503: ac_abs_top_builddir=$ac_pwd
                   1504: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   1505: # for backward compatibility:
                   1506: ac_top_builddir=$ac_top_build_prefix
                   1507: 
                   1508: case $srcdir in
                   1509:   .)  # We are building in place.
                   1510:     ac_srcdir=.
                   1511:     ac_top_srcdir=$ac_top_builddir_sub
                   1512:     ac_abs_top_srcdir=$ac_pwd ;;
                   1513:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   1514:     ac_srcdir=$srcdir$ac_dir_suffix;
                   1515:     ac_top_srcdir=$srcdir
                   1516:     ac_abs_top_srcdir=$srcdir ;;
                   1517:   *) # Relative name.
                   1518:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   1519:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   1520:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   1521: esac
                   1522: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   1523: 
                   1524:     cd "$ac_dir" || { ac_status=$?; continue; }
                   1525:     # Check for guested configure.
                   1526:     if test -f "$ac_srcdir/configure.gnu"; then
                   1527:       echo &&
                   1528:       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
                   1529:     elif test -f "$ac_srcdir/configure"; then
                   1530:       echo &&
                   1531:       $SHELL "$ac_srcdir/configure" --help=recursive
                   1532:     else
1.15      bertrand 1533:       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1       bertrand 1534:     fi || ac_status=$?
                   1535:     cd "$ac_pwd" || { ac_status=$?; break; }
                   1536:   done
                   1537: fi
                   1538: 
                   1539: test -n "$ac_init_help" && exit $ac_status
                   1540: if $ac_init_version; then
                   1541:   cat <<\_ACEOF
1.44      bertrand 1542: rpl configure 4.0.20
1.36      bertrand 1543: generated by GNU Autoconf 2.67
1.1       bertrand 1544: 
1.36      bertrand 1545: Copyright (C) 2010 Free Software Foundation, Inc.
1.1       bertrand 1546: This configure script is free software; the Free Software Foundation
                   1547: gives unlimited permission to copy, distribute and modify it.
                   1548: _ACEOF
                   1549:   exit
                   1550: fi
                   1551: 
1.15      bertrand 1552: ## ------------------------ ##
                   1553: ## Autoconf initialization. ##
                   1554: ## ------------------------ ##
                   1555: 
                   1556: # ac_fn_c_try_compile LINENO
                   1557: # --------------------------
                   1558: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1559: ac_fn_c_try_compile ()
                   1560: {
                   1561:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1562:   rm -f conftest.$ac_objext
                   1563:   if { { ac_try="$ac_compile"
                   1564: case "(($ac_try" in
                   1565:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1566:   *) ac_try_echo=$ac_try;;
                   1567: esac
                   1568: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1569: $as_echo "$ac_try_echo"; } >&5
                   1570:   (eval "$ac_compile") 2>conftest.err
                   1571:   ac_status=$?
                   1572:   if test -s conftest.err; then
                   1573:     grep -v '^ *+' conftest.err >conftest.er1
                   1574:     cat conftest.er1 >&5
                   1575:     mv -f conftest.er1 conftest.err
                   1576:   fi
                   1577:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1578:   test $ac_status = 0; } && {
                   1579:     test -z "$ac_c_werror_flag" ||
                   1580:     test ! -s conftest.err
                   1581:        } && test -s conftest.$ac_objext; then :
                   1582:   ac_retval=0
                   1583: else
                   1584:   $as_echo "$as_me: failed program was:" >&5
                   1585: sed 's/^/| /' conftest.$ac_ext >&5
                   1586: 
                   1587:    ac_retval=1
                   1588: fi
                   1589:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1590:   as_fn_set_status $ac_retval
1.1       bertrand 1591: 
1.15      bertrand 1592: } # ac_fn_c_try_compile
1.1       bertrand 1593: 
1.15      bertrand 1594: # ac_fn_cxx_try_compile LINENO
                   1595: # ----------------------------
                   1596: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1597: ac_fn_cxx_try_compile ()
1.1       bertrand 1598: {
1.15      bertrand 1599:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1600:   rm -f conftest.$ac_objext
                   1601:   if { { ac_try="$ac_compile"
                   1602: case "(($ac_try" in
                   1603:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1604:   *) ac_try_echo=$ac_try;;
                   1605: esac
                   1606: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1607: $as_echo "$ac_try_echo"; } >&5
                   1608:   (eval "$ac_compile") 2>conftest.err
                   1609:   ac_status=$?
                   1610:   if test -s conftest.err; then
                   1611:     grep -v '^ *+' conftest.err >conftest.er1
                   1612:     cat conftest.er1 >&5
                   1613:     mv -f conftest.er1 conftest.err
                   1614:   fi
                   1615:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1616:   test $ac_status = 0; } && {
                   1617:     test -z "$ac_cxx_werror_flag" ||
                   1618:     test ! -s conftest.err
                   1619:        } && test -s conftest.$ac_objext; then :
                   1620:   ac_retval=0
                   1621: else
                   1622:   $as_echo "$as_me: failed program was:" >&5
                   1623: sed 's/^/| /' conftest.$ac_ext >&5
                   1624: 
                   1625:    ac_retval=1
                   1626: fi
                   1627:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1628:   as_fn_set_status $ac_retval
1.1       bertrand 1629: 
1.15      bertrand 1630: } # ac_fn_cxx_try_compile
1.1       bertrand 1631: 
1.15      bertrand 1632: # ac_fn_f77_try_compile LINENO
                   1633: # ----------------------------
                   1634: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1635: ac_fn_f77_try_compile ()
                   1636: {
                   1637:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1638:   rm -f conftest.$ac_objext
                   1639:   if { { ac_try="$ac_compile"
                   1640: case "(($ac_try" in
                   1641:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1642:   *) ac_try_echo=$ac_try;;
                   1643: esac
                   1644: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1645: $as_echo "$ac_try_echo"; } >&5
                   1646:   (eval "$ac_compile") 2>conftest.err
                   1647:   ac_status=$?
                   1648:   if test -s conftest.err; then
                   1649:     grep -v '^ *+' conftest.err >conftest.er1
                   1650:     cat conftest.er1 >&5
                   1651:     mv -f conftest.er1 conftest.err
                   1652:   fi
                   1653:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1654:   test $ac_status = 0; } && {
                   1655:     test -z "$ac_f77_werror_flag" ||
                   1656:     test ! -s conftest.err
                   1657:        } && test -s conftest.$ac_objext; then :
                   1658:   ac_retval=0
                   1659: else
                   1660:   $as_echo "$as_me: failed program was:" >&5
                   1661: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1662: 
1.15      bertrand 1663:    ac_retval=1
                   1664: fi
                   1665:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1666:   as_fn_set_status $ac_retval
1.1       bertrand 1667: 
1.15      bertrand 1668: } # ac_fn_f77_try_compile
1.1       bertrand 1669: 
1.15      bertrand 1670: # ac_fn_fc_try_compile LINENO
                   1671: # ---------------------------
                   1672: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1673: ac_fn_fc_try_compile ()
                   1674: {
                   1675:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1676:   rm -f conftest.$ac_objext
                   1677:   if { { ac_try="$ac_compile"
                   1678: case "(($ac_try" in
                   1679:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1680:   *) ac_try_echo=$ac_try;;
                   1681: esac
                   1682: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1683: $as_echo "$ac_try_echo"; } >&5
                   1684:   (eval "$ac_compile") 2>conftest.err
                   1685:   ac_status=$?
                   1686:   if test -s conftest.err; then
                   1687:     grep -v '^ *+' conftest.err >conftest.er1
                   1688:     cat conftest.er1 >&5
                   1689:     mv -f conftest.er1 conftest.err
                   1690:   fi
                   1691:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1692:   test $ac_status = 0; } && {
                   1693:     test -z "$ac_fc_werror_flag" ||
                   1694:     test ! -s conftest.err
                   1695:        } && test -s conftest.$ac_objext; then :
                   1696:   ac_retval=0
                   1697: else
                   1698:   $as_echo "$as_me: failed program was:" >&5
                   1699: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1700: 
1.15      bertrand 1701:    ac_retval=1
                   1702: fi
                   1703:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1704:   as_fn_set_status $ac_retval
1.1       bertrand 1705: 
1.15      bertrand 1706: } # ac_fn_fc_try_compile
1.1       bertrand 1707: 
1.15      bertrand 1708: # ac_fn_c_try_cpp LINENO
                   1709: # ----------------------
                   1710: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
                   1711: ac_fn_c_try_cpp ()
                   1712: {
                   1713:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1714:   if { { ac_try="$ac_cpp conftest.$ac_ext"
                   1715: case "(($ac_try" in
                   1716:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1717:   *) ac_try_echo=$ac_try;;
                   1718: esac
                   1719: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1720: $as_echo "$ac_try_echo"; } >&5
                   1721:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
                   1722:   ac_status=$?
                   1723:   if test -s conftest.err; then
                   1724:     grep -v '^ *+' conftest.err >conftest.er1
                   1725:     cat conftest.er1 >&5
                   1726:     mv -f conftest.er1 conftest.err
                   1727:   fi
                   1728:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.36      bertrand 1729:   test $ac_status = 0; } > conftest.i && {
1.15      bertrand 1730:     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   1731:     test ! -s conftest.err
                   1732:        }; then :
                   1733:   ac_retval=0
                   1734: else
                   1735:   $as_echo "$as_me: failed program was:" >&5
                   1736: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1737: 
1.15      bertrand 1738:     ac_retval=1
                   1739: fi
                   1740:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1741:   as_fn_set_status $ac_retval
1.1       bertrand 1742: 
1.15      bertrand 1743: } # ac_fn_c_try_cpp
1.1       bertrand 1744: 
1.15      bertrand 1745: # ac_fn_c_try_link LINENO
                   1746: # -----------------------
                   1747: # Try to link conftest.$ac_ext, and return whether this succeeded.
                   1748: ac_fn_c_try_link ()
                   1749: {
                   1750:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1751:   rm -f conftest.$ac_objext conftest$ac_exeext
                   1752:   if { { ac_try="$ac_link"
                   1753: case "(($ac_try" in
                   1754:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1755:   *) ac_try_echo=$ac_try;;
                   1756: esac
                   1757: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1758: $as_echo "$ac_try_echo"; } >&5
                   1759:   (eval "$ac_link") 2>conftest.err
                   1760:   ac_status=$?
                   1761:   if test -s conftest.err; then
                   1762:     grep -v '^ *+' conftest.err >conftest.er1
                   1763:     cat conftest.er1 >&5
                   1764:     mv -f conftest.er1 conftest.err
                   1765:   fi
                   1766:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1767:   test $ac_status = 0; } && {
                   1768:     test -z "$ac_c_werror_flag" ||
                   1769:     test ! -s conftest.err
                   1770:        } && test -s conftest$ac_exeext && {
                   1771:     test "$cross_compiling" = yes ||
                   1772:     $as_test_x conftest$ac_exeext
                   1773:        }; then :
                   1774:   ac_retval=0
                   1775: else
                   1776:   $as_echo "$as_me: failed program was:" >&5
                   1777: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1778: 
1.15      bertrand 1779:    ac_retval=1
                   1780: fi
                   1781:   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
                   1782:   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
                   1783:   # interfere with the next link command; also delete a directory that is
                   1784:   # left behind by Apple's compiler.  We do this before executing the actions.
                   1785:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
                   1786:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1787:   as_fn_set_status $ac_retval
1.1       bertrand 1788: 
1.15      bertrand 1789: } # ac_fn_c_try_link
1.1       bertrand 1790: 
1.15      bertrand 1791: # ac_fn_c_check_func LINENO FUNC VAR
                   1792: # ----------------------------------
                   1793: # Tests whether FUNC exists, setting the cache variable VAR accordingly
                   1794: ac_fn_c_check_func ()
                   1795: {
                   1796:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1797:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1798: $as_echo_n "checking for $2... " >&6; }
1.36      bertrand 1799: if eval "test \"\${$3+set}\"" = set; then :
1.15      bertrand 1800:   $as_echo_n "(cached) " >&6
                   1801: else
                   1802:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1803: /* end confdefs.h.  */
                   1804: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
                   1805:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   1806: #define $2 innocuous_$2
1.1       bertrand 1807: 
1.15      bertrand 1808: /* System header to define __stub macros and hopefully few prototypes,
                   1809:     which can conflict with char $2 (); below.
                   1810:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   1811:     <limits.h> exists even on freestanding compilers.  */
1.1       bertrand 1812: 
1.15      bertrand 1813: #ifdef __STDC__
                   1814: # include <limits.h>
                   1815: #else
                   1816: # include <assert.h>
                   1817: #endif
1.1       bertrand 1818: 
1.15      bertrand 1819: #undef $2
1.1       bertrand 1820: 
1.15      bertrand 1821: /* Override any GCC internal prototype to avoid an error.
                   1822:    Use char because int might match the return type of a GCC
                   1823:    builtin and then its argument prototype would still apply.  */
                   1824: #ifdef __cplusplus
                   1825: extern "C"
                   1826: #endif
                   1827: char $2 ();
                   1828: /* The GNU C library defines this for functions which it implements
                   1829:     to always fail with ENOSYS.  Some functions are actually named
                   1830:     something starting with __ and the normal name is an alias.  */
                   1831: #if defined __stub_$2 || defined __stub___$2
                   1832: choke me
                   1833: #endif
1.1       bertrand 1834: 
1.15      bertrand 1835: int
                   1836: main ()
                   1837: {
                   1838: return $2 ();
                   1839:   ;
                   1840:   return 0;
                   1841: }
1.1       bertrand 1842: _ACEOF
1.15      bertrand 1843: if ac_fn_c_try_link "$LINENO"; then :
                   1844:   eval "$3=yes"
                   1845: else
                   1846:   eval "$3=no"
                   1847: fi
                   1848: rm -f core conftest.err conftest.$ac_objext \
                   1849:     conftest$ac_exeext conftest.$ac_ext
                   1850: fi
                   1851: eval ac_res=\$$3
                   1852:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1853: $as_echo "$ac_res" >&6; }
                   1854:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.1       bertrand 1855: 
1.15      bertrand 1856: } # ac_fn_c_check_func
1.1       bertrand 1857: 
1.33      bertrand 1858: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
                   1859: # -------------------------------------------
                   1860: # Tests whether TYPE exists after having included INCLUDES, setting cache
                   1861: # variable VAR accordingly.
                   1862: ac_fn_c_check_type ()
                   1863: {
                   1864:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1865:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1866: $as_echo_n "checking for $2... " >&6; }
1.36      bertrand 1867: if eval "test \"\${$3+set}\"" = set; then :
1.33      bertrand 1868:   $as_echo_n "(cached) " >&6
                   1869: else
                   1870:   eval "$3=no"
                   1871:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1872: /* end confdefs.h.  */
                   1873: $4
                   1874: int
                   1875: main ()
                   1876: {
                   1877: if (sizeof ($2))
                   1878:     return 0;
                   1879:   ;
                   1880:   return 0;
                   1881: }
                   1882: _ACEOF
                   1883: if ac_fn_c_try_compile "$LINENO"; then :
                   1884:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1885: /* end confdefs.h.  */
                   1886: $4
                   1887: int
                   1888: main ()
                   1889: {
                   1890: if (sizeof (($2)))
                   1891:        return 0;
                   1892:   ;
                   1893:   return 0;
                   1894: }
                   1895: _ACEOF
                   1896: if ac_fn_c_try_compile "$LINENO"; then :
                   1897: 
                   1898: else
                   1899:   eval "$3=yes"
                   1900: fi
                   1901: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1902: fi
                   1903: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1904: fi
                   1905: eval ac_res=\$$3
                   1906:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1907: $as_echo "$ac_res" >&6; }
                   1908:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1909: 
                   1910: } # ac_fn_c_check_type
                   1911: 
1.15      bertrand 1912: # ac_fn_c_try_run LINENO
                   1913: # ----------------------
                   1914: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
                   1915: # that executables *can* be run.
                   1916: ac_fn_c_try_run ()
                   1917: {
                   1918:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1919:   if { { ac_try="$ac_link"
                   1920: case "(($ac_try" in
                   1921:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1922:   *) ac_try_echo=$ac_try;;
                   1923: esac
                   1924: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1925: $as_echo "$ac_try_echo"; } >&5
                   1926:   (eval "$ac_link") 2>&5
                   1927:   ac_status=$?
                   1928:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1929:   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
                   1930:   { { case "(($ac_try" in
                   1931:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1932:   *) ac_try_echo=$ac_try;;
                   1933: esac
                   1934: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1935: $as_echo "$ac_try_echo"; } >&5
                   1936:   (eval "$ac_try") 2>&5
                   1937:   ac_status=$?
                   1938:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1939:   test $ac_status = 0; }; }; then :
                   1940:   ac_retval=0
                   1941: else
                   1942:   $as_echo "$as_me: program exited with status $ac_status" >&5
                   1943:        $as_echo "$as_me: failed program was:" >&5
                   1944: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1945: 
1.15      bertrand 1946:        ac_retval=$ac_status
                   1947: fi
                   1948:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
                   1949:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   1950:   as_fn_set_status $ac_retval
1.1       bertrand 1951: 
1.15      bertrand 1952: } # ac_fn_c_try_run
1.1       bertrand 1953: 
1.15      bertrand 1954: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
                   1955: # --------------------------------------------
                   1956: # Tries to find the compile-time value of EXPR in a program that includes
                   1957: # INCLUDES, setting VAR accordingly. Returns whether the value could be
                   1958: # computed
                   1959: ac_fn_c_compute_int ()
                   1960: {
                   1961:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1962:   if test "$cross_compiling" = yes; then
                   1963:     # Depending upon the size, compute the lo and hi bounds.
                   1964: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1965: /* end confdefs.h.  */
                   1966: $4
                   1967: int
                   1968: main ()
                   1969: {
                   1970: static int test_array [1 - 2 * !(($2) >= 0)];
                   1971: test_array [0] = 0
1.1       bertrand 1972: 
1.15      bertrand 1973:   ;
                   1974:   return 0;
                   1975: }
1.1       bertrand 1976: _ACEOF
1.15      bertrand 1977: if ac_fn_c_try_compile "$LINENO"; then :
                   1978:   ac_lo=0 ac_mid=0
                   1979:   while :; do
                   1980:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1981: /* end confdefs.h.  */
                   1982: $4
                   1983: int
                   1984: main ()
                   1985: {
                   1986: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
                   1987: test_array [0] = 0
1.1       bertrand 1988: 
1.15      bertrand 1989:   ;
                   1990:   return 0;
                   1991: }
                   1992: _ACEOF
                   1993: if ac_fn_c_try_compile "$LINENO"; then :
                   1994:   ac_hi=$ac_mid; break
                   1995: else
                   1996:   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
                   1997:            if test $ac_lo -le $ac_mid; then
                   1998:              ac_lo= ac_hi=
                   1999:              break
                   2000:            fi
                   2001:            as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
                   2002: fi
                   2003: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2004:   done
                   2005: else
                   2006:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2007: /* end confdefs.h.  */
                   2008: $4
                   2009: int
                   2010: main ()
                   2011: {
                   2012: static int test_array [1 - 2 * !(($2) < 0)];
                   2013: test_array [0] = 0
1.1       bertrand 2014: 
1.15      bertrand 2015:   ;
                   2016:   return 0;
                   2017: }
1.1       bertrand 2018: _ACEOF
1.15      bertrand 2019: if ac_fn_c_try_compile "$LINENO"; then :
                   2020:   ac_hi=-1 ac_mid=-1
                   2021:   while :; do
                   2022:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2023: /* end confdefs.h.  */
                   2024: $4
                   2025: int
                   2026: main ()
                   2027: {
                   2028: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
                   2029: test_array [0] = 0
1.1       bertrand 2030: 
1.15      bertrand 2031:   ;
                   2032:   return 0;
                   2033: }
                   2034: _ACEOF
                   2035: if ac_fn_c_try_compile "$LINENO"; then :
                   2036:   ac_lo=$ac_mid; break
                   2037: else
                   2038:   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
                   2039:            if test $ac_mid -le $ac_hi; then
                   2040:              ac_lo= ac_hi=
                   2041:              break
                   2042:            fi
                   2043:            as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
                   2044: fi
                   2045: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2046:   done
1.1       bertrand 2047: else
1.15      bertrand 2048:   ac_lo= ac_hi=
                   2049: fi
                   2050: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 2051: fi
1.15      bertrand 2052: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2053: # Binary search between lo and hi bounds.
                   2054: while test "x$ac_lo" != "x$ac_hi"; do
                   2055:   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
                   2056:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2057: /* end confdefs.h.  */
                   2058: $4
                   2059: int
                   2060: main ()
                   2061: {
                   2062: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
                   2063: test_array [0] = 0
1.1       bertrand 2064: 
1.15      bertrand 2065:   ;
                   2066:   return 0;
                   2067: }
                   2068: _ACEOF
                   2069: if ac_fn_c_try_compile "$LINENO"; then :
                   2070:   ac_hi=$ac_mid
1.1       bertrand 2071: else
1.15      bertrand 2072:   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1.1       bertrand 2073: fi
1.15      bertrand 2074: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2075: done
                   2076: case $ac_lo in #((
                   2077: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
                   2078: '') ac_retval=1 ;;
                   2079: esac
                   2080:   else
                   2081:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2082: /* end confdefs.h.  */
                   2083: $4
                   2084: static long int longval () { return $2; }
                   2085: static unsigned long int ulongval () { return $2; }
                   2086: #include <stdio.h>
                   2087: #include <stdlib.h>
                   2088: int
                   2089: main ()
                   2090: {
1.1       bertrand 2091: 
1.15      bertrand 2092:   FILE *f = fopen ("conftest.val", "w");
                   2093:   if (! f)
                   2094:     return 1;
                   2095:   if (($2) < 0)
                   2096:     {
                   2097:       long int i = longval ();
                   2098:       if (i != ($2))
                   2099:    return 1;
                   2100:       fprintf (f, "%ld", i);
                   2101:     }
                   2102:   else
                   2103:     {
                   2104:       unsigned long int i = ulongval ();
                   2105:       if (i != ($2))
                   2106:    return 1;
                   2107:       fprintf (f, "%lu", i);
                   2108:     }
                   2109:   /* Do not output a trailing newline, as this causes \r\n confusion
                   2110:      on some platforms.  */
                   2111:   return ferror (f) || fclose (f) != 0;
                   2112: 
                   2113:   ;
                   2114:   return 0;
                   2115: }
                   2116: _ACEOF
                   2117: if ac_fn_c_try_run "$LINENO"; then :
                   2118:   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
                   2119: else
                   2120:   ac_retval=1
1.14      bertrand 2121: fi
1.15      bertrand 2122: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   2123:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   2124: rm -f conftest.val
1.14      bertrand 2125: 
1.15      bertrand 2126:   fi
                   2127:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
                   2128:   as_fn_set_status $ac_retval
1.14      bertrand 2129: 
1.15      bertrand 2130: } # ac_fn_c_compute_int
1.1       bertrand 2131: 
1.15      bertrand 2132: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
                   2133: # -------------------------------------------------------
                   2134: # Tests whether HEADER exists and can be compiled using the include files in
                   2135: # INCLUDES, setting the cache variable VAR accordingly.
                   2136: ac_fn_c_check_header_compile ()
                   2137: {
                   2138:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2139:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2140: $as_echo_n "checking for $2... " >&6; }
1.36      bertrand 2141: if eval "test \"\${$3+set}\"" = set; then :
1.15      bertrand 2142:   $as_echo_n "(cached) " >&6
                   2143: else
                   2144:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2145: /* end confdefs.h.  */
                   2146: $4
                   2147: #include <$2>
                   2148: _ACEOF
                   2149: if ac_fn_c_try_compile "$LINENO"; then :
                   2150:   eval "$3=yes"
                   2151: else
                   2152:   eval "$3=no"
                   2153: fi
                   2154: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2155: fi
                   2156: eval ac_res=\$$3
                   2157:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2158: $as_echo "$ac_res" >&6; }
                   2159:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.1       bertrand 2160: 
1.15      bertrand 2161: } # ac_fn_c_check_header_compile
1.1       bertrand 2162: 
1.15      bertrand 2163: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
                   2164: # -------------------------------------------------------
                   2165: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
                   2166: # the include files in INCLUDES and setting the cache variable VAR
                   2167: # accordingly.
                   2168: ac_fn_c_check_header_mongrel ()
                   2169: {
                   2170:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.36      bertrand 2171:   if eval "test \"\${$3+set}\"" = set; then :
1.15      bertrand 2172:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2173: $as_echo_n "checking for $2... " >&6; }
1.36      bertrand 2174: if eval "test \"\${$3+set}\"" = set; then :
1.15      bertrand 2175:   $as_echo_n "(cached) " >&6
                   2176: fi
                   2177: eval ac_res=\$$3
                   2178:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2179: $as_echo "$ac_res" >&6; }
                   2180: else
                   2181:   # Is the header compilable?
                   2182: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
                   2183: $as_echo_n "checking $2 usability... " >&6; }
                   2184: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2185: /* end confdefs.h.  */
                   2186: $4
                   2187: #include <$2>
                   2188: _ACEOF
                   2189: if ac_fn_c_try_compile "$LINENO"; then :
                   2190:   ac_header_compiler=yes
                   2191: else
                   2192:   ac_header_compiler=no
                   2193: fi
                   2194: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2195: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
                   2196: $as_echo "$ac_header_compiler" >&6; }
1.1       bertrand 2197: 
1.15      bertrand 2198: # Is the header present?
                   2199: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
                   2200: $as_echo_n "checking $2 presence... " >&6; }
                   2201: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2202: /* end confdefs.h.  */
                   2203: #include <$2>
                   2204: _ACEOF
                   2205: if ac_fn_c_try_cpp "$LINENO"; then :
                   2206:   ac_header_preproc=yes
                   2207: else
                   2208:   ac_header_preproc=no
                   2209: fi
1.36      bertrand 2210: rm -f conftest.err conftest.i conftest.$ac_ext
1.15      bertrand 2211: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
                   2212: $as_echo "$ac_header_preproc" >&6; }
1.1       bertrand 2213: 
1.15      bertrand 2214: # So?  What about this header?
                   2215: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
                   2216:   yes:no: )
                   2217:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
                   2218: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   2219:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   2220: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   2221:     ;;
                   2222:   no:yes:* )
                   2223:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
                   2224: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
                   2225:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
                   2226: $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
                   2227:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
                   2228: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
                   2229:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
                   2230: $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
                   2231:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   2232: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   2233:     ;;
                   2234: esac
                   2235:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2236: $as_echo_n "checking for $2... " >&6; }
1.36      bertrand 2237: if eval "test \"\${$3+set}\"" = set; then :
1.15      bertrand 2238:   $as_echo_n "(cached) " >&6
                   2239: else
                   2240:   eval "$3=\$ac_header_compiler"
                   2241: fi
                   2242: eval ac_res=\$$3
                   2243:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2244: $as_echo "$ac_res" >&6; }
                   2245: fi
                   2246:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.1       bertrand 2247: 
1.15      bertrand 2248: } # ac_fn_c_check_header_mongrel
                   2249: cat >config.log <<_ACEOF
                   2250: This file contains any messages produced by compilers while
                   2251: running configure, to aid debugging if configure makes a mistake.
1.1       bertrand 2252: 
1.44      bertrand 2253: It was created by rpl $as_me 4.0.20, which was
1.36      bertrand 2254: generated by GNU Autoconf 2.67.  Invocation command line was
1.1       bertrand 2255: 
1.15      bertrand 2256:   $ $0 $@
1.1       bertrand 2257: 
1.15      bertrand 2258: _ACEOF
                   2259: exec 5>>config.log
                   2260: {
                   2261: cat <<_ASUNAME
                   2262: ## --------- ##
                   2263: ## Platform. ##
                   2264: ## --------- ##
1.1       bertrand 2265: 
1.15      bertrand 2266: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
                   2267: uname -m = `(uname -m) 2>/dev/null || echo unknown`
                   2268: uname -r = `(uname -r) 2>/dev/null || echo unknown`
                   2269: uname -s = `(uname -s) 2>/dev/null || echo unknown`
                   2270: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1.1       bertrand 2271: 
1.15      bertrand 2272: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
                   2273: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1.1       bertrand 2274: 
1.15      bertrand 2275: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
                   2276: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
                   2277: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
                   2278: /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
                   2279: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
                   2280: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
                   2281: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1.1       bertrand 2282: 
1.15      bertrand 2283: _ASUNAME
1.1       bertrand 2284: 
1.15      bertrand 2285: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2286: for as_dir in $PATH
                   2287: do
                   2288:   IFS=$as_save_IFS
                   2289:   test -z "$as_dir" && as_dir=.
                   2290:     $as_echo "PATH: $as_dir"
                   2291:   done
                   2292: IFS=$as_save_IFS
1.1       bertrand 2293: 
1.15      bertrand 2294: } >&5
1.1       bertrand 2295: 
1.15      bertrand 2296: cat >&5 <<_ACEOF
1.1       bertrand 2297: 
                   2298: 
1.15      bertrand 2299: ## ----------- ##
                   2300: ## Core tests. ##
                   2301: ## ----------- ##
1.1       bertrand 2302: 
1.15      bertrand 2303: _ACEOF
1.1       bertrand 2304: 
                   2305: 
1.15      bertrand 2306: # Keep a trace of the command line.
                   2307: # Strip out --no-create and --no-recursion so they do not pile up.
                   2308: # Strip out --silent because we don't want to record it for future runs.
                   2309: # Also quote any args containing shell meta-characters.
                   2310: # Make two passes to allow for proper duplicate-argument suppression.
                   2311: ac_configure_args=
                   2312: ac_configure_args0=
                   2313: ac_configure_args1=
                   2314: ac_must_keep_next=false
                   2315: for ac_pass in 1 2
                   2316: do
                   2317:   for ac_arg
                   2318:   do
                   2319:     case $ac_arg in
                   2320:     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
                   2321:     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   2322:     | -silent | --silent | --silen | --sile | --sil)
                   2323:       continue ;;
                   2324:     *\'*)
                   2325:       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2326:     esac
                   2327:     case $ac_pass in
                   2328:     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
                   2329:     2)
                   2330:       as_fn_append ac_configure_args1 " '$ac_arg'"
                   2331:       if test $ac_must_keep_next = true; then
                   2332:    ac_must_keep_next=false # Got value, back to normal.
                   2333:       else
                   2334:    case $ac_arg in
                   2335:      *=* | --config-cache | -C | -disable-* | --disable-* \
                   2336:      | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
                   2337:      | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
                   2338:      | -with-* | --with-* | -without-* | --without-* | --x)
                   2339:        case "$ac_configure_args0 " in
                   2340:          "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
                   2341:        esac
                   2342:        ;;
                   2343:      -* ) ac_must_keep_next=true ;;
                   2344:    esac
                   2345:       fi
                   2346:       as_fn_append ac_configure_args " '$ac_arg'"
                   2347:       ;;
                   2348:     esac
                   2349:   done
                   2350: done
                   2351: { ac_configure_args0=; unset ac_configure_args0;}
                   2352: { ac_configure_args1=; unset ac_configure_args1;}
1.1       bertrand 2353: 
1.15      bertrand 2354: # When interrupted or exit'd, cleanup temporary files, and complete
                   2355: # config.log.  We remove comments because anyway the quotes in there
                   2356: # would cause problems or look ugly.
                   2357: # WARNING: Use '\'' to represent an apostrophe within the trap.
                   2358: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
                   2359: trap 'exit_status=$?
                   2360:   # Save into config.log some information that might help in debugging.
                   2361:   {
                   2362:     echo
1.1       bertrand 2363: 
1.36      bertrand 2364:     $as_echo "## ---------------- ##
1.15      bertrand 2365: ## Cache variables. ##
1.36      bertrand 2366: ## ---------------- ##"
1.15      bertrand 2367:     echo
                   2368:     # The following way of writing the cache mishandles newlines in values,
                   2369: (
                   2370:   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
                   2371:     eval ac_val=\$$ac_var
                   2372:     case $ac_val in #(
                   2373:     *${as_nl}*)
                   2374:       case $ac_var in #(
                   2375:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   2376: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
                   2377:       esac
                   2378:       case $ac_var in #(
                   2379:       _ | IFS | as_nl) ;; #(
                   2380:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   2381:       *) { eval $ac_var=; unset $ac_var;} ;;
                   2382:       esac ;;
                   2383:     esac
                   2384:   done
                   2385:   (set) 2>&1 |
                   2386:     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
                   2387:     *${as_nl}ac_space=\ *)
                   2388:       sed -n \
                   2389:    "s/'\''/'\''\\\\'\'''\''/g;
                   2390:      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
                   2391:       ;; #(
                   2392:     *)
                   2393:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   2394:       ;;
                   2395:     esac |
                   2396:     sort
                   2397: )
                   2398:     echo
1.1       bertrand 2399: 
1.36      bertrand 2400:     $as_echo "## ----------------- ##
1.15      bertrand 2401: ## Output variables. ##
1.36      bertrand 2402: ## ----------------- ##"
1.15      bertrand 2403:     echo
                   2404:     for ac_var in $ac_subst_vars
                   2405:     do
                   2406:       eval ac_val=\$$ac_var
                   2407:       case $ac_val in
                   2408:       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2409:       esac
                   2410:       $as_echo "$ac_var='\''$ac_val'\''"
                   2411:     done | sort
                   2412:     echo
1.1       bertrand 2413: 
1.15      bertrand 2414:     if test -n "$ac_subst_files"; then
1.36      bertrand 2415:       $as_echo "## ------------------- ##
1.15      bertrand 2416: ## File substitutions. ##
1.36      bertrand 2417: ## ------------------- ##"
1.15      bertrand 2418:       echo
                   2419:       for ac_var in $ac_subst_files
                   2420:       do
                   2421:    eval ac_val=\$$ac_var
                   2422:    case $ac_val in
                   2423:    *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2424:    esac
                   2425:    $as_echo "$ac_var='\''$ac_val'\''"
                   2426:       done | sort
                   2427:       echo
1.14      bertrand 2428:     fi
                   2429: 
1.15      bertrand 2430:     if test -s confdefs.h; then
1.36      bertrand 2431:       $as_echo "## ----------- ##
1.15      bertrand 2432: ## confdefs.h. ##
1.36      bertrand 2433: ## ----------- ##"
1.15      bertrand 2434:       echo
                   2435:       cat confdefs.h
                   2436:       echo
                   2437:     fi
                   2438:     test "$ac_signal" != 0 &&
                   2439:       $as_echo "$as_me: caught signal $ac_signal"
                   2440:     $as_echo "$as_me: exit $exit_status"
                   2441:   } >&5
                   2442:   rm -f core *.core core.conftest.* &&
                   2443:     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
                   2444:     exit $exit_status
                   2445: ' 0
                   2446: for ac_signal in 1 2 13 15; do
                   2447:   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
                   2448: done
                   2449: ac_signal=0
1.14      bertrand 2450: 
1.15      bertrand 2451: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                   2452: rm -f -r conftest* confdefs.h
1.14      bertrand 2453: 
1.15      bertrand 2454: $as_echo "/* confdefs.h */" > confdefs.h
1.14      bertrand 2455: 
1.15      bertrand 2456: # Predefined preprocessor variables.
1.14      bertrand 2457: 
1.15      bertrand 2458: cat >>confdefs.h <<_ACEOF
                   2459: #define PACKAGE_NAME "$PACKAGE_NAME"
                   2460: _ACEOF
1.14      bertrand 2461: 
1.15      bertrand 2462: cat >>confdefs.h <<_ACEOF
                   2463: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1.14      bertrand 2464: _ACEOF
                   2465: 
1.15      bertrand 2466: cat >>confdefs.h <<_ACEOF
                   2467: #define PACKAGE_VERSION "$PACKAGE_VERSION"
                   2468: _ACEOF
1.14      bertrand 2469: 
1.15      bertrand 2470: cat >>confdefs.h <<_ACEOF
                   2471: #define PACKAGE_STRING "$PACKAGE_STRING"
1.14      bertrand 2472: _ACEOF
                   2473: 
1.15      bertrand 2474: cat >>confdefs.h <<_ACEOF
                   2475: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
                   2476: _ACEOF
1.14      bertrand 2477: 
1.15      bertrand 2478: cat >>confdefs.h <<_ACEOF
                   2479: #define PACKAGE_URL "$PACKAGE_URL"
                   2480: _ACEOF
1.14      bertrand 2481: 
                   2482: 
1.15      bertrand 2483: # Let the site file select an alternate cache file if it wants to.
                   2484: # Prefer an explicitly selected file to automatically selected ones.
                   2485: ac_site_file1=NONE
                   2486: ac_site_file2=NONE
                   2487: if test -n "$CONFIG_SITE"; then
1.36      bertrand 2488:   # We do not want a PATH search for config.site.
                   2489:   case $CONFIG_SITE in #((
                   2490:     -*)  ac_site_file1=./$CONFIG_SITE;;
                   2491:     */*) ac_site_file1=$CONFIG_SITE;;
                   2492:     *)   ac_site_file1=./$CONFIG_SITE;;
                   2493:   esac
1.15      bertrand 2494: elif test "x$prefix" != xNONE; then
                   2495:   ac_site_file1=$prefix/share/config.site
                   2496:   ac_site_file2=$prefix/etc/config.site
1.14      bertrand 2497: else
1.15      bertrand 2498:   ac_site_file1=$ac_default_prefix/share/config.site
                   2499:   ac_site_file2=$ac_default_prefix/etc/config.site
1.14      bertrand 2500: fi
1.15      bertrand 2501: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
                   2502: do
                   2503:   test "x$ac_site_file" = xNONE && continue
                   2504:   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
                   2505:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
                   2506: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
                   2507:     sed 's/^/| /' "$ac_site_file" >&5
1.36      bertrand 2508:     . "$ac_site_file" \
                   2509:       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   2510: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   2511: as_fn_error $? "failed to load site script $ac_site_file
                   2512: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 2513:   fi
                   2514: done
1.14      bertrand 2515: 
1.15      bertrand 2516: if test -r "$cache_file"; then
                   2517:   # Some versions of bash will fail to source /dev/null (special files
                   2518:   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
                   2519:   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
                   2520:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
                   2521: $as_echo "$as_me: loading cache $cache_file" >&6;}
                   2522:     case $cache_file in
                   2523:       [\\/]* | ?:[\\/]* ) . "$cache_file";;
                   2524:       *)                      . "./$cache_file";;
                   2525:     esac
                   2526:   fi
1.14      bertrand 2527: else
1.15      bertrand 2528:   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
                   2529: $as_echo "$as_me: creating cache $cache_file" >&6;}
                   2530:   >$cache_file
1.14      bertrand 2531: fi
                   2532: 
1.15      bertrand 2533: # Check that the precious variables saved in the cache have kept the same
                   2534: # value.
                   2535: ac_cache_corrupted=false
                   2536: for ac_var in $ac_precious_vars; do
                   2537:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
                   2538:   eval ac_new_set=\$ac_env_${ac_var}_set
                   2539:   eval ac_old_val=\$ac_cv_env_${ac_var}_value
                   2540:   eval ac_new_val=\$ac_env_${ac_var}_value
                   2541:   case $ac_old_set,$ac_new_set in
                   2542:     set,)
                   2543:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
                   2544: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
                   2545:       ac_cache_corrupted=: ;;
                   2546:     ,set)
                   2547:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
                   2548: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
                   2549:       ac_cache_corrupted=: ;;
                   2550:     ,);;
                   2551:     *)
                   2552:       if test "x$ac_old_val" != "x$ac_new_val"; then
                   2553:    # differences in whitespace do not lead to failure.
                   2554:    ac_old_val_w=`echo x $ac_old_val`
                   2555:    ac_new_val_w=`echo x $ac_new_val`
                   2556:    if test "$ac_old_val_w" != "$ac_new_val_w"; then
                   2557:      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
                   2558: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
                   2559:      ac_cache_corrupted=:
                   2560:    else
                   2561:      { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
                   2562: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
                   2563:      eval $ac_var=\$ac_old_val
                   2564:    fi
                   2565:    { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
                   2566: $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
                   2567:    { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
                   2568: $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
                   2569:       fi;;
                   2570:   esac
                   2571:   # Pass precious variables to config.status.
                   2572:   if test "$ac_new_set" = set; then
                   2573:     case $ac_new_val in
                   2574:     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2575:     *) ac_arg=$ac_var=$ac_new_val ;;
                   2576:     esac
                   2577:     case " $ac_configure_args " in
                   2578:       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
                   2579:       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
                   2580:     esac
1.14      bertrand 2581:   fi
                   2582: done
1.15      bertrand 2583: if $ac_cache_corrupted; then
                   2584:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   2585: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   2586:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
                   2587: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.36      bertrand 2588:   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1.15      bertrand 2589: fi
                   2590: ## -------------------- ##
                   2591: ## Main body of script. ##
                   2592: ## -------------------- ##
1.14      bertrand 2593: 
1.15      bertrand 2594: ac_ext=c
                   2595: ac_cpp='$CPP $CPPFLAGS'
                   2596: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   2597: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   2598: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14      bertrand 2599: 
                   2600: 
1.15      bertrand 2601: ac_aux_dir=
                   2602: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1.36      bertrand 2603:   if test -f "$ac_dir/install-sh"; then
                   2604:     ac_aux_dir=$ac_dir
                   2605:     ac_install_sh="$ac_aux_dir/install-sh -c"
                   2606:     break
                   2607:   elif test -f "$ac_dir/install.sh"; then
                   2608:     ac_aux_dir=$ac_dir
                   2609:     ac_install_sh="$ac_aux_dir/install.sh -c"
                   2610:     break
                   2611:   elif test -f "$ac_dir/shtool"; then
                   2612:     ac_aux_dir=$ac_dir
                   2613:     ac_install_sh="$ac_aux_dir/shtool install -c"
                   2614:     break
                   2615:   fi
1.14      bertrand 2616: done
1.15      bertrand 2617: if test -z "$ac_aux_dir"; then
1.36      bertrand 2618:   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1.15      bertrand 2619: fi
1.14      bertrand 2620: 
1.15      bertrand 2621: # These three variables are undocumented and unsupported,
                   2622: # and are intended to be withdrawn in a future Autoconf release.
                   2623: # They can cause serious problems if a builder's source tree is in a directory
                   2624: # whose full name contains unusual characters.
                   2625: ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
                   2626: ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
                   2627: ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1.14      bertrand 2628: 
                   2629: 
1.15      bertrand 2630: # Make sure we can run config.sub.
                   2631: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1.36      bertrand 2632:   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.14      bertrand 2633: 
1.15      bertrand 2634: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
                   2635: $as_echo_n "checking build system type... " >&6; }
                   2636: if test "${ac_cv_build+set}" = set; then :
                   2637:   $as_echo_n "(cached) " >&6
1.14      bertrand 2638: else
1.15      bertrand 2639:   ac_build_alias=$build_alias
                   2640: test "x$ac_build_alias" = x &&
                   2641:   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
                   2642: test "x$ac_build_alias" = x &&
1.36      bertrand 2643:   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1.15      bertrand 2644: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1.36      bertrand 2645:   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1.14      bertrand 2646: 
                   2647: fi
1.15      bertrand 2648: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
                   2649: $as_echo "$ac_cv_build" >&6; }
                   2650: case $ac_cv_build in
                   2651: *-*-*) ;;
1.36      bertrand 2652: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
1.15      bertrand 2653: esac
                   2654: build=$ac_cv_build
                   2655: ac_save_IFS=$IFS; IFS='-'
                   2656: set x $ac_cv_build
                   2657: shift
                   2658: build_cpu=$1
                   2659: build_vendor=$2
                   2660: shift; shift
                   2661: # Remember, the first character of IFS is used to create $*,
                   2662: # except with old shells:
                   2663: build_os=$*
                   2664: IFS=$ac_save_IFS
                   2665: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.14      bertrand 2666: 
                   2667: 
1.15      bertrand 2668: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
                   2669: $as_echo_n "checking host system type... " >&6; }
                   2670: if test "${ac_cv_host+set}" = set; then :
                   2671:   $as_echo_n "(cached) " >&6
1.14      bertrand 2672: else
1.15      bertrand 2673:   if test "x$host_alias" = x; then
                   2674:   ac_cv_host=$ac_cv_build
1.14      bertrand 2675: else
1.15      bertrand 2676:   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1.36      bertrand 2677:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.14      bertrand 2678: fi
                   2679: 
                   2680: fi
1.15      bertrand 2681: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
                   2682: $as_echo "$ac_cv_host" >&6; }
                   2683: case $ac_cv_host in
                   2684: *-*-*) ;;
1.36      bertrand 2685: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
1.15      bertrand 2686: esac
                   2687: host=$ac_cv_host
                   2688: ac_save_IFS=$IFS; IFS='-'
                   2689: set x $ac_cv_host
                   2690: shift
                   2691: host_cpu=$1
                   2692: host_vendor=$2
                   2693: shift; shift
                   2694: # Remember, the first character of IFS is used to create $*,
                   2695: # except with old shells:
                   2696: host_os=$*
                   2697: IFS=$ac_save_IFS
                   2698: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.14      bertrand 2699: 
                   2700: 
1.15      bertrand 2701: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
                   2702: $as_echo_n "checking target system type... " >&6; }
                   2703: if test "${ac_cv_target+set}" = set; then :
                   2704:   $as_echo_n "(cached) " >&6
                   2705: else
                   2706:   if test "x$target_alias" = x; then
                   2707:   ac_cv_target=$ac_cv_host
1.14      bertrand 2708: else
1.15      bertrand 2709:   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1.36      bertrand 2710:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
1.15      bertrand 2711: fi
1.14      bertrand 2712: 
                   2713: fi
1.15      bertrand 2714: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
                   2715: $as_echo "$ac_cv_target" >&6; }
                   2716: case $ac_cv_target in
                   2717: *-*-*) ;;
1.36      bertrand 2718: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
1.15      bertrand 2719: esac
                   2720: target=$ac_cv_target
                   2721: ac_save_IFS=$IFS; IFS='-'
                   2722: set x $ac_cv_target
                   2723: shift
                   2724: target_cpu=$1
                   2725: target_vendor=$2
                   2726: shift; shift
                   2727: # Remember, the first character of IFS is used to create $*,
                   2728: # except with old shells:
                   2729: target_os=$*
                   2730: IFS=$ac_save_IFS
                   2731: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
                   2732: 
1.14      bertrand 2733: 
1.15      bertrand 2734: # The aliases save the names the user supplied, while $host etc.
                   2735: # will get canonicalized.
                   2736: test -n "$target_alias" &&
                   2737:   test "$program_prefix$program_suffix$program_transform_name" = \
                   2738:     NONENONEs,x,x, &&
                   2739:   program_prefix=${target_alias}-
1.1       bertrand 2740: 
1.15      bertrand 2741: am__api_version='1.11'
1.1       bertrand 2742: 
1.14      bertrand 2743: # Find a good install program.  We prefer a C program (faster),
                   2744: # so one script is as good as another.  But avoid the broken or
                   2745: # incompatible versions:
                   2746: # SysV /etc/install, /usr/sbin/install
                   2747: # SunOS /usr/etc/install
                   2748: # IRIX /sbin/install
                   2749: # AIX /bin/install
                   2750: # AmigaOS /C/install, which installs bootblocks on floppy discs
                   2751: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
                   2752: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                   2753: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
                   2754: # OS/2's system install, which has a completely different semantic
                   2755: # ./install, which can be erroneously created by make from ./install.sh.
1.15      bertrand 2756: # Reject install programs that cannot install multiple files.
                   2757: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
                   2758: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.14      bertrand 2759: if test -z "$INSTALL"; then
1.15      bertrand 2760: if test "${ac_cv_path_install+set}" = set; then :
                   2761:   $as_echo_n "(cached) " >&6
1.14      bertrand 2762: else
                   2763:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2764: for as_dir in $PATH
                   2765: do
                   2766:   IFS=$as_save_IFS
                   2767:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2768:     # Account for people who put trailing slashes in PATH elements.
                   2769: case $as_dir/ in #((
                   2770:   ./ | .// | /[cC]/* | \
1.14      bertrand 2771:   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.15      bertrand 2772:   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.14      bertrand 2773:   /usr/ucb/* ) ;;
                   2774:   *)
                   2775:     # OSF1 and SCO ODT 3.0 have their own names for install.
                   2776:     # Don't use installbsd from OSF since it installs stuff as root
                   2777:     # by default.
                   2778:     for ac_prog in ginstall scoinst install; do
                   2779:       for ac_exec_ext in '' $ac_executable_extensions; do
                   2780:    if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
                   2781:      if test $ac_prog = install &&
                   2782:        grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2783:        # AIX install.  It has an incompatible calling convention.
                   2784:        :
                   2785:      elif test $ac_prog = install &&
                   2786:        grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2787:        # program-specific install script used by HP pwplus--don't use.
                   2788:        :
                   2789:      else
1.15      bertrand 2790:        rm -rf conftest.one conftest.two conftest.dir
                   2791:        echo one > conftest.one
                   2792:        echo two > conftest.two
                   2793:        mkdir conftest.dir
                   2794:        if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
                   2795:          test -s conftest.one && test -s conftest.two &&
                   2796:          test -s conftest.dir/conftest.one &&
                   2797:          test -s conftest.dir/conftest.two
                   2798:        then
                   2799:          ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
                   2800:          break 3
                   2801:        fi
1.14      bertrand 2802:      fi
                   2803:    fi
                   2804:       done
                   2805:     done
                   2806:     ;;
                   2807: esac
1.15      bertrand 2808: 
                   2809:   done
1.14      bertrand 2810: IFS=$as_save_IFS
1.1       bertrand 2811: 
1.15      bertrand 2812: rm -rf conftest.one conftest.two conftest.dir
1.1       bertrand 2813: 
1.14      bertrand 2814: fi
                   2815:   if test "${ac_cv_path_install+set}" = set; then
                   2816:     INSTALL=$ac_cv_path_install
                   2817:   else
                   2818:     # As a last resort, use the slow shell script.  Don't cache a
                   2819:     # value for INSTALL within a source directory, because that will
                   2820:     # break other packages using the cache if that directory is
                   2821:     # removed, or if the value is a relative name.
                   2822:     INSTALL=$ac_install_sh
                   2823:   fi
                   2824: fi
1.15      bertrand 2825: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
                   2826: $as_echo "$INSTALL" >&6; }
1.1       bertrand 2827: 
1.14      bertrand 2828: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                   2829: # It thinks the first close brace ends the variable substitution.
                   2830: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1.1       bertrand 2831: 
1.14      bertrand 2832: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1       bertrand 2833: 
1.14      bertrand 2834: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1.1       bertrand 2835: 
1.15      bertrand 2836: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
                   2837: $as_echo_n "checking whether build environment is sane... " >&6; }
                   2838: # Just in case
                   2839: sleep 1
                   2840: echo timestamp > conftest.file
                   2841: # Reject unsafe characters in $srcdir or the absolute working directory
                   2842: # name.  Accept space and tab only in the latter.
                   2843: am_lf='
                   2844: '
                   2845: case `pwd` in
                   2846:   *[\\\"\#\$\&\'\`$am_lf]*)
1.36      bertrand 2847:     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
1.15      bertrand 2848: esac
                   2849: case $srcdir in
                   2850:   *[\\\"\#\$\&\'\`$am_lf\ \    ]*)
1.36      bertrand 2851:     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
1.15      bertrand 2852: esac
                   2853: 
                   2854: # Do `set' in a subshell so we don't clobber the current shell's
                   2855: # arguments.  Must try -L first in case configure is actually a
                   2856: # symlink; some systems play weird games with the mod time of symlinks
                   2857: # (eg FreeBSD returns the mod time of the symlink's containing
                   2858: # directory).
                   2859: if (
                   2860:    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
                   2861:    if test "$*" = "X"; then
                   2862:       # -L didn't work.
                   2863:       set X `ls -t "$srcdir/configure" conftest.file`
                   2864:    fi
                   2865:    rm -f conftest.file
                   2866:    if test "$*" != "X $srcdir/configure conftest.file" \
                   2867:       && test "$*" != "X conftest.file $srcdir/configure"; then
                   2868: 
                   2869:       # If neither matched, then we have a broken ls.  This can happen
                   2870:       # if, for instance, CONFIG_SHELL is bash and it inherits a
                   2871:       # broken ls alias from the environment.  This has actually
                   2872:       # happened.  Such a system could not be considered "sane".
1.36      bertrand 2873:       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
1.15      bertrand 2874: alias in your environment" "$LINENO" 5
                   2875:    fi
                   2876: 
                   2877:    test "$2" = conftest.file
                   2878:    )
                   2879: then
                   2880:    # Ok.
                   2881:    :
1.14      bertrand 2882: else
1.36      bertrand 2883:    as_fn_error $? "newly created file is older than distributed files!
1.15      bertrand 2884: Check your system clock" "$LINENO" 5
1.14      bertrand 2885: fi
1.15      bertrand 2886: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   2887: $as_echo "yes" >&6; }
                   2888: test "$program_prefix" != NONE &&
                   2889:   program_transform_name="s&^&$program_prefix&;$program_transform_name"
                   2890: # Use a double $ so make ignores it.
                   2891: test "$program_suffix" != NONE &&
                   2892:   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
                   2893: # Double any \ or $.
                   2894: # By default was `s,x,x', remove it if useless.
                   2895: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
                   2896: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
                   2897: 
                   2898: # expand $ac_aux_dir to an absolute path
                   2899: am_aux_dir=`cd $ac_aux_dir && pwd`
1.1       bertrand 2900: 
1.15      bertrand 2901: if test x"${MISSING+set}" != xset; then
                   2902:   case $am_aux_dir in
                   2903:   *\ * | *\    *)
                   2904:     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1.14      bertrand 2905:   *)
1.15      bertrand 2906:     MISSING="\${SHELL} $am_aux_dir/missing" ;;
                   2907:   esac
1.14      bertrand 2908: fi
1.15      bertrand 2909: # Use eval to expand $SHELL
                   2910: if eval "$MISSING --run true"; then
                   2911:   am_missing_run="$MISSING --run "
1.14      bertrand 2912: else
1.15      bertrand 2913:   am_missing_run=
                   2914:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
                   2915: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
                   2916: fi
                   2917: 
                   2918: if test x"${install_sh}" != xset; then
                   2919:   case $am_aux_dir in
                   2920:   *\ * | *\    *)
                   2921:     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
                   2922:   *)
                   2923:     install_sh="\${SHELL} $am_aux_dir/install-sh"
                   2924:   esac
1.14      bertrand 2925: fi
1.15      bertrand 2926: 
                   2927: # Installed binaries are usually stripped using `strip' when the user
                   2928: # run `make install-strip'.  However `strip' might not be the right
                   2929: # tool to use in cross-compilation environments, therefore Automake
                   2930: # will honor the `STRIP' environment variable to overrule this program.
                   2931: if test "$cross_compiling" != no; then
                   2932:   if test -n "$ac_tool_prefix"; then
                   2933:   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
                   2934: set dummy ${ac_tool_prefix}strip; ac_word=$2
                   2935: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   2936: $as_echo_n "checking for $ac_word... " >&6; }
                   2937: if test "${ac_cv_prog_STRIP+set}" = set; then :
                   2938:   $as_echo_n "(cached) " >&6
1.14      bertrand 2939: else
1.15      bertrand 2940:   if test -n "$STRIP"; then
                   2941:   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.14      bertrand 2942: else
                   2943: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2944: for as_dir in $PATH
                   2945: do
                   2946:   IFS=$as_save_IFS
                   2947:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2948:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 2949:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 2950:     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
                   2951:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 2952:     break 2
                   2953:   fi
                   2954: done
1.15      bertrand 2955:   done
1.14      bertrand 2956: IFS=$as_save_IFS
1.1       bertrand 2957: 
1.14      bertrand 2958: fi
                   2959: fi
1.15      bertrand 2960: STRIP=$ac_cv_prog_STRIP
                   2961: if test -n "$STRIP"; then
                   2962:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
                   2963: $as_echo "$STRIP" >&6; }
1.14      bertrand 2964: else
1.15      bertrand 2965:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   2966: $as_echo "no" >&6; }
1.14      bertrand 2967: fi
1.1       bertrand 2968: 
                   2969: 
1.14      bertrand 2970: fi
1.15      bertrand 2971: if test -z "$ac_cv_prog_STRIP"; then
                   2972:   ac_ct_STRIP=$STRIP
                   2973:   # Extract the first word of "strip", so it can be a program name with args.
                   2974: set dummy strip; ac_word=$2
                   2975: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   2976: $as_echo_n "checking for $ac_word... " >&6; }
                   2977: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
                   2978:   $as_echo_n "(cached) " >&6
1.14      bertrand 2979: else
1.15      bertrand 2980:   if test -n "$ac_ct_STRIP"; then
                   2981:   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1       bertrand 2982: else
1.14      bertrand 2983: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2984: for as_dir in $PATH
1.1       bertrand 2985: do
1.14      bertrand 2986:   IFS=$as_save_IFS
                   2987:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2988:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 2989:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 2990:     ac_cv_prog_ac_ct_STRIP="strip"
                   2991:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 2992:     break 2
1.1       bertrand 2993:   fi
                   2994: done
1.15      bertrand 2995:   done
1.14      bertrand 2996: IFS=$as_save_IFS
1.1       bertrand 2997: 
1.14      bertrand 2998: fi
                   2999: fi
1.15      bertrand 3000: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
                   3001: if test -n "$ac_ct_STRIP"; then
                   3002:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
                   3003: $as_echo "$ac_ct_STRIP" >&6; }
1.1       bertrand 3004: else
1.15      bertrand 3005:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3006: $as_echo "no" >&6; }
1.1       bertrand 3007: fi
                   3008: 
1.15      bertrand 3009:   if test "x$ac_ct_STRIP" = x; then
                   3010:     STRIP=":"
1.14      bertrand 3011:   else
                   3012:     case $cross_compiling:$ac_tool_warned in
                   3013: yes:)
1.15      bertrand 3014: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   3015: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.14      bertrand 3016: ac_tool_warned=yes ;;
                   3017: esac
1.15      bertrand 3018:     STRIP=$ac_ct_STRIP
1.1       bertrand 3019:   fi
1.14      bertrand 3020: else
1.15      bertrand 3021:   STRIP="$ac_cv_prog_STRIP"
1.1       bertrand 3022: fi
                   3023: 
1.15      bertrand 3024: fi
                   3025: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1.1       bertrand 3026: 
1.15      bertrand 3027: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
                   3028: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
                   3029: if test -z "$MKDIR_P"; then
                   3030:   if test "${ac_cv_path_mkdir+set}" = set; then :
                   3031:   $as_echo_n "(cached) " >&6
1.14      bertrand 3032: else
1.15      bertrand 3033:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3034: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1.14      bertrand 3035: do
                   3036:   IFS=$as_save_IFS
                   3037:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3038:     for ac_prog in mkdir gmkdir; do
                   3039:     for ac_exec_ext in '' $ac_executable_extensions; do
                   3040:       { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
                   3041:       case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
                   3042:         'mkdir (GNU coreutils) '* | \
                   3043:         'mkdir (coreutils) '* | \
                   3044:         'mkdir (fileutils) '4.1*)
                   3045:           ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
                   3046:           break 3;;
                   3047:       esac
                   3048:     done
                   3049:        done
                   3050:   done
1.14      bertrand 3051: IFS=$as_save_IFS
1.1       bertrand 3052: 
                   3053: fi
1.15      bertrand 3054: 
                   3055:   test -d ./--version && rmdir ./--version
                   3056:   if test "${ac_cv_path_mkdir+set}" = set; then
                   3057:     MKDIR_P="$ac_cv_path_mkdir -p"
                   3058:   else
                   3059:     # As a last resort, use the slow shell script.  Don't cache a
                   3060:     # value for MKDIR_P within a source directory, because that will
                   3061:     # break other packages using the cache if that directory is
                   3062:     # removed, or if the value is a relative name.
                   3063:     MKDIR_P="$ac_install_sh -d"
                   3064:   fi
1.14      bertrand 3065: fi
1.15      bertrand 3066: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
                   3067: $as_echo "$MKDIR_P" >&6; }
1.1       bertrand 3068: 
1.15      bertrand 3069: mkdir_p="$MKDIR_P"
                   3070: case $mkdir_p in
                   3071:   [\\/$]* | ?:[\\/]*) ;;
                   3072:   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
                   3073: esac
1.1       bertrand 3074: 
1.15      bertrand 3075: for ac_prog in gawk mawk nawk awk
                   3076: do
                   3077:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3078: set dummy $ac_prog; ac_word=$2
                   3079: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3080: $as_echo_n "checking for $ac_word... " >&6; }
                   3081: if test "${ac_cv_prog_AWK+set}" = set; then :
                   3082:   $as_echo_n "(cached) " >&6
1.1       bertrand 3083: else
1.15      bertrand 3084:   if test -n "$AWK"; then
                   3085:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1.1       bertrand 3086: else
1.14      bertrand 3087: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3088: for as_dir in $PATH
                   3089: do
                   3090:   IFS=$as_save_IFS
                   3091:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3092:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 3093:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3094:     ac_cv_prog_AWK="$ac_prog"
                   3095:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 3096:     break 2
                   3097:   fi
                   3098: done
1.15      bertrand 3099:   done
1.14      bertrand 3100: IFS=$as_save_IFS
                   3101: 
                   3102: fi
1.1       bertrand 3103: fi
1.15      bertrand 3104: AWK=$ac_cv_prog_AWK
                   3105: if test -n "$AWK"; then
                   3106:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   3107: $as_echo "$AWK" >&6; }
1.14      bertrand 3108: else
1.15      bertrand 3109:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3110: $as_echo "no" >&6; }
1.1       bertrand 3111: fi
                   3112: 
                   3113: 
1.15      bertrand 3114:   test -n "$AWK" && break
                   3115: done
1.1       bertrand 3116: 
1.15      bertrand 3117: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
                   3118: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
                   3119: set x ${MAKE-make}
                   3120: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.36      bertrand 3121: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
1.15      bertrand 3122:   $as_echo_n "(cached) " >&6
1.14      bertrand 3123: else
1.15      bertrand 3124:   cat >conftest.make <<\_ACEOF
                   3125: SHELL = /bin/sh
                   3126: all:
                   3127:    @echo '@@@%%%=$(MAKE)=@@@%%%'
                   3128: _ACEOF
1.36      bertrand 3129: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 3130: case `${MAKE-make} -f conftest.make 2>/dev/null` in
                   3131:   *@@@%%%=?*=@@@%%%*)
                   3132:     eval ac_cv_prog_make_${ac_make}_set=yes;;
                   3133:   *)
                   3134:     eval ac_cv_prog_make_${ac_make}_set=no;;
                   3135: esac
                   3136: rm -f conftest.make
                   3137: fi
                   3138: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
                   3139:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3140: $as_echo "yes" >&6; }
                   3141:   SET_MAKE=
1.1       bertrand 3142: else
1.15      bertrand 3143:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3144: $as_echo "no" >&6; }
                   3145:   SET_MAKE="MAKE=${MAKE-make}"
                   3146: fi
1.1       bertrand 3147: 
1.15      bertrand 3148: rm -rf .tst 2>/dev/null
                   3149: mkdir .tst 2>/dev/null
                   3150: if test -d .tst; then
                   3151:   am__leading_dot=.
                   3152: else
                   3153:   am__leading_dot=_
1.14      bertrand 3154: fi
1.15      bertrand 3155: rmdir .tst 2>/dev/null
                   3156: 
                   3157: if test "`cd $srcdir && pwd`" != "`pwd`"; then
                   3158:   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
                   3159:   # is not polluted with repeated "-I."
                   3160:   am__isrc=' -I$(srcdir)'
                   3161:   # test to see if srcdir already configured
                   3162:   if test -f $srcdir/config.status; then
1.36      bertrand 3163:     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
1.15      bertrand 3164:   fi
1.1       bertrand 3165: fi
1.15      bertrand 3166: 
                   3167: # test whether we have cygpath
                   3168: if test -z "$CYGPATH_W"; then
                   3169:   if (cygpath --version) >/dev/null 2>/dev/null; then
                   3170:     CYGPATH_W='cygpath -w'
                   3171:   else
                   3172:     CYGPATH_W=echo
                   3173:   fi
1.1       bertrand 3174: fi
                   3175: 
                   3176: 
1.15      bertrand 3177: # Define the identity of the package.
                   3178:  PACKAGE='rpl'
1.44      bertrand 3179:  VERSION='4.0.20'
1.15      bertrand 3180: 
                   3181: 
                   3182: cat >>confdefs.h <<_ACEOF
                   3183: #define PACKAGE "$PACKAGE"
                   3184: _ACEOF
                   3185: 
                   3186: 
                   3187: cat >>confdefs.h <<_ACEOF
                   3188: #define VERSION "$VERSION"
                   3189: _ACEOF
                   3190: 
                   3191: # Some tools Automake needs.
                   3192: 
                   3193: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
                   3194: 
                   3195: 
                   3196: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
                   3197: 
                   3198: 
                   3199: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
                   3200: 
                   3201: 
                   3202: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
                   3203: 
                   3204: 
                   3205: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
                   3206: 
                   3207: # We need awk for the "check" target.  The system "awk" is bad on
                   3208: # some platforms.
                   3209: # Always define AMTAR for backward compatibility.
                   3210: 
                   3211: AMTAR=${AMTAR-"${am_missing_run}tar"}
                   3212: 
                   3213: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
                   3214: 
                   3215: 
                   3216: 
                   3217: 
1.1       bertrand 3218: 
                   3219: 
1.15      bertrand 3220: ac_config_headers="$ac_config_headers rplconfig.h"
1.1       bertrand 3221: 
                   3222: 
1.27      bertrand 3223: NCURSES=ncurses-5.7-20100619
1.15      bertrand 3224: READLINE=readline-6.1
1.30      bertrand 3225: UNITS=units-1.88
1.15      bertrand 3226: GSL=gsl-1.14
                   3227: GPP=gpp-2.24
1.45    ! bertrand 3228: GNUPLOT=gnuplot-4.4.2
1.15      bertrand 3229: FILE=file-5.03
                   3230: ICONV=libiconv-1.13.1
1.45    ! bertrand 3231: SQLITE=sqlite-3.7.3
1.26      bertrand 3232: OPENSSL=openssl-1.0.0a
1.14      bertrand 3233: 
1.15      bertrand 3234: ac_ext=c
                   3235: ac_cpp='$CPP $CPPFLAGS'
                   3236: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3237: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3238: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3239: if test -n "$ac_tool_prefix"; then
1.23      bertrand 3240:   for ac_prog in gcc
1.15      bertrand 3241:   do
                   3242:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   3243: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   3244: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3245: $as_echo_n "checking for $ac_word... " >&6; }
                   3246: if test "${ac_cv_prog_CC+set}" = set; then :
                   3247:   $as_echo_n "(cached) " >&6
1.1       bertrand 3248: else
1.15      bertrand 3249:   if test -n "$CC"; then
                   3250:   ac_cv_prog_CC="$CC" # Let the user override the test.
1.1       bertrand 3251: else
                   3252: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3253: for as_dir in $PATH
                   3254: do
                   3255:   IFS=$as_save_IFS
                   3256:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3257:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1       bertrand 3258:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3259:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
                   3260:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1       bertrand 3261:     break 2
                   3262:   fi
                   3263: done
1.15      bertrand 3264:   done
1.1       bertrand 3265: IFS=$as_save_IFS
                   3266: 
                   3267: fi
                   3268: fi
1.15      bertrand 3269: CC=$ac_cv_prog_CC
                   3270: if test -n "$CC"; then
                   3271:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
                   3272: $as_echo "$CC" >&6; }
1.1       bertrand 3273: else
1.15      bertrand 3274:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3275: $as_echo "no" >&6; }
1.1       bertrand 3276: fi
                   3277: 
                   3278: 
1.15      bertrand 3279:     test -n "$CC" && break
                   3280:   done
                   3281: fi
                   3282: if test -z "$CC"; then
                   3283:   ac_ct_CC=$CC
1.23      bertrand 3284:   for ac_prog in gcc
1.15      bertrand 3285: do
                   3286:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3287: set dummy $ac_prog; ac_word=$2
                   3288: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3289: $as_echo_n "checking for $ac_word... " >&6; }
                   3290: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
                   3291:   $as_echo_n "(cached) " >&6
1.1       bertrand 3292: else
1.15      bertrand 3293:   if test -n "$ac_ct_CC"; then
                   3294:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1       bertrand 3295: else
                   3296: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3297: for as_dir in $PATH
                   3298: do
                   3299:   IFS=$as_save_IFS
                   3300:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3301:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1       bertrand 3302:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3303:     ac_cv_prog_ac_ct_CC="$ac_prog"
                   3304:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1       bertrand 3305:     break 2
                   3306:   fi
                   3307: done
1.15      bertrand 3308:   done
1.1       bertrand 3309: IFS=$as_save_IFS
                   3310: 
                   3311: fi
                   3312: fi
1.15      bertrand 3313: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   3314: if test -n "$ac_ct_CC"; then
                   3315:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
                   3316: $as_echo "$ac_ct_CC" >&6; }
1.1       bertrand 3317: else
1.15      bertrand 3318:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3319: $as_echo "no" >&6; }
1.1       bertrand 3320: fi
                   3321: 
                   3322: 
1.15      bertrand 3323:   test -n "$ac_ct_CC" && break
                   3324: done
1.1       bertrand 3325: 
1.15      bertrand 3326:   if test "x$ac_ct_CC" = x; then
                   3327:     CC=""
                   3328:   else
                   3329:     case $cross_compiling:$ac_tool_warned in
                   3330: yes:)
                   3331: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   3332: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   3333: ac_tool_warned=yes ;;
                   3334: esac
                   3335:     CC=$ac_ct_CC
1.1       bertrand 3336:   fi
                   3337: fi
                   3338: 
                   3339: 
1.15      bertrand 3340: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3341: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3342: as_fn_error $? "no acceptable C compiler found in \$PATH
                   3343: See \`config.log' for more details" "$LINENO" 5 ; }
1.1       bertrand 3344: 
1.15      bertrand 3345: # Provide some information about the compiler.
                   3346: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
                   3347: set X $ac_compile
                   3348: ac_compiler=$2
                   3349: for ac_option in --version -v -V -qversion; do
                   3350:   { { ac_try="$ac_compiler $ac_option >&5"
                   3351: case "(($ac_try" in
                   3352:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3353:   *) ac_try_echo=$ac_try;;
                   3354: esac
                   3355: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3356: $as_echo "$ac_try_echo"; } >&5
                   3357:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
                   3358:   ac_status=$?
                   3359:   if test -s conftest.err; then
                   3360:     sed '10a\
                   3361: ... rest of stderr output deleted ...
                   3362:          10q' conftest.err >conftest.er1
                   3363:     cat conftest.er1 >&5
1.1       bertrand 3364:   fi
1.15      bertrand 3365:   rm -f conftest.er1 conftest.err
                   3366:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3367:   test $ac_status = 0; }
1.1       bertrand 3368: done
                   3369: 
1.15      bertrand 3370: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3371: /* end confdefs.h.  */
                   3372: 
                   3373: int
                   3374: main ()
                   3375: {
1.14      bertrand 3376: 
1.15      bertrand 3377:   ;
                   3378:   return 0;
                   3379: }
                   3380: _ACEOF
                   3381: ac_clean_files_save=$ac_clean_files
                   3382: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
                   3383: # Try to create an executable without -o first, disregard a.out.
                   3384: # It will help us diagnose broken compilers, and finding out an intuition
                   3385: # of exeext.
                   3386: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
                   3387: $as_echo_n "checking whether the C compiler works... " >&6; }
                   3388: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.14      bertrand 3389: 
1.15      bertrand 3390: # The possible output files:
                   3391: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
1.1       bertrand 3392: 
1.15      bertrand 3393: ac_rmfiles=
                   3394: for ac_file in $ac_files
1.1       bertrand 3395: do
1.15      bertrand 3396:   case $ac_file in
                   3397:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3398:     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
                   3399:   esac
1.1       bertrand 3400: done
1.15      bertrand 3401: rm -f $ac_rmfiles
                   3402: 
                   3403: if { { ac_try="$ac_link_default"
                   3404: case "(($ac_try" in
                   3405:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3406:   *) ac_try_echo=$ac_try;;
                   3407: esac
                   3408: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3409: $as_echo "$ac_try_echo"; } >&5
                   3410:   (eval "$ac_link_default") 2>&5
                   3411:   ac_status=$?
                   3412:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3413:   test $ac_status = 0; }; then :
                   3414:   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
                   3415: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
                   3416: # in a Makefile.  We should not override ac_cv_exeext if it was cached,
                   3417: # so that the user can short-circuit this test for compilers unknown to
                   3418: # Autoconf.
                   3419: for ac_file in $ac_files ''
                   3420: do
                   3421:   test -f "$ac_file" || continue
                   3422:   case $ac_file in
                   3423:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
                   3424:    ;;
                   3425:     [ab].out )
                   3426:    # We found the default executable, but exeext='' is most
                   3427:    # certainly right.
                   3428:    break;;
                   3429:     *.* )
                   3430:    if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
                   3431:    then :; else
                   3432:       ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3433:    fi
                   3434:    # We set ac_cv_exeext here because the later test for it is not
                   3435:    # safe: cross compilers may not add the suffix if given an `-o'
                   3436:    # argument, so we may need to know it at that point already.
                   3437:    # Even if this section looks crufty: it has the advantage of
                   3438:    # actually working.
                   3439:    break;;
                   3440:     * )
                   3441:    break;;
                   3442:   esac
1.14      bertrand 3443: done
1.15      bertrand 3444: test "$ac_cv_exeext" = no && ac_cv_exeext=
1.1       bertrand 3445: 
1.14      bertrand 3446: else
1.15      bertrand 3447:   ac_file=''
1.1       bertrand 3448: fi
1.15      bertrand 3449: if test -z "$ac_file"; then :
                   3450:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3451: $as_echo "no" >&6; }
                   3452: $as_echo "$as_me: failed program was:" >&5
                   3453: sed 's/^/| /' conftest.$ac_ext >&5
                   3454: 
                   3455: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3456: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3457: as_fn_error 77 "C compiler cannot create executables
                   3458: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 3459: else
                   3460:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3461: $as_echo "yes" >&6; }
                   3462: fi
                   3463: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
                   3464: $as_echo_n "checking for C compiler default output file name... " >&6; }
                   3465: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
                   3466: $as_echo "$ac_file" >&6; }
                   3467: ac_exeext=$ac_cv_exeext
1.1       bertrand 3468: 
1.15      bertrand 3469: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
                   3470: ac_clean_files=$ac_clean_files_save
                   3471: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
                   3472: $as_echo_n "checking for suffix of executables... " >&6; }
                   3473: if { { ac_try="$ac_link"
                   3474: case "(($ac_try" in
                   3475:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3476:   *) ac_try_echo=$ac_try;;
                   3477: esac
                   3478: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3479: $as_echo "$ac_try_echo"; } >&5
                   3480:   (eval "$ac_link") 2>&5
                   3481:   ac_status=$?
                   3482:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3483:   test $ac_status = 0; }; then :
                   3484:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
                   3485: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
                   3486: # work properly (i.e., refer to `conftest.exe'), while it won't with
                   3487: # `rm'.
                   3488: for ac_file in conftest.exe conftest conftest.*; do
                   3489:   test -f "$ac_file" || continue
                   3490:   case $ac_file in
                   3491:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3492:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3493:      break;;
                   3494:     * ) break;;
                   3495:   esac
                   3496: done
1.14      bertrand 3497: else
1.15      bertrand 3498:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3499: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3500: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
                   3501: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 3502: fi
                   3503: rm -f conftest conftest$ac_cv_exeext
                   3504: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
                   3505: $as_echo "$ac_cv_exeext" >&6; }
                   3506: 
                   3507: rm -f conftest.$ac_ext
                   3508: EXEEXT=$ac_cv_exeext
                   3509: ac_exeext=$EXEEXT
                   3510: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 3511: /* end confdefs.h.  */
1.15      bertrand 3512: #include <stdio.h>
1.14      bertrand 3513: int
                   3514: main ()
                   3515: {
1.15      bertrand 3516: FILE *f = fopen ("conftest.out", "w");
                   3517:  return ferror (f) || fclose (f) != 0;
                   3518: 
1.14      bertrand 3519:   ;
                   3520:   return 0;
                   3521: }
                   3522: _ACEOF
1.15      bertrand 3523: ac_clean_files="$ac_clean_files conftest.out"
                   3524: # Check that the compiler produces executables we can run.  If not, either
                   3525: # the compiler is broken, or we cross compile.
                   3526: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
                   3527: $as_echo_n "checking whether we are cross compiling... " >&6; }
                   3528: if test "$cross_compiling" != yes; then
                   3529:   { { ac_try="$ac_link"
1.1       bertrand 3530: case "(($ac_try" in
                   3531:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3532:   *) ac_try_echo=$ac_try;;
                   3533: esac
1.15      bertrand 3534: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3535: $as_echo "$ac_try_echo"; } >&5
                   3536:   (eval "$ac_link") 2>&5
                   3537:   ac_status=$?
                   3538:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3539:   test $ac_status = 0; }
                   3540:   if { ac_try='./conftest$ac_cv_exeext'
                   3541:   { { case "(($ac_try" in
                   3542:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3543:   *) ac_try_echo=$ac_try;;
                   3544: esac
                   3545: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3546: $as_echo "$ac_try_echo"; } >&5
                   3547:   (eval "$ac_try") 2>&5
1.1       bertrand 3548:   ac_status=$?
1.15      bertrand 3549:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3550:   test $ac_status = 0; }; }; then
                   3551:     cross_compiling=no
                   3552:   else
                   3553:     if test "$cross_compiling" = maybe; then
                   3554:    cross_compiling=yes
                   3555:     else
                   3556:    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3557: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3558: as_fn_error $? "cannot run C compiled programs.
1.15      bertrand 3559: If you meant to cross compile, use \`--host'.
1.36      bertrand 3560: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 3561:     fi
                   3562:   fi
1.14      bertrand 3563: fi
1.15      bertrand 3564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
                   3565: $as_echo "$cross_compiling" >&6; }
1.14      bertrand 3566: 
1.15      bertrand 3567: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
                   3568: ac_clean_files=$ac_clean_files_save
                   3569: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
                   3570: $as_echo_n "checking for suffix of object files... " >&6; }
                   3571: if test "${ac_cv_objext+set}" = set; then :
                   3572:   $as_echo_n "(cached) " >&6
1.14      bertrand 3573: else
1.15      bertrand 3574:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 3575: /* end confdefs.h.  */
                   3576: 
                   3577: int
                   3578: main ()
                   3579: {
1.15      bertrand 3580: 
1.1       bertrand 3581:   ;
                   3582:   return 0;
                   3583: }
                   3584: _ACEOF
1.15      bertrand 3585: rm -f conftest.o conftest.obj
                   3586: if { { ac_try="$ac_compile"
1.1       bertrand 3587: case "(($ac_try" in
                   3588:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3589:   *) ac_try_echo=$ac_try;;
                   3590: esac
1.15      bertrand 3591: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3592: $as_echo "$ac_try_echo"; } >&5
                   3593:   (eval "$ac_compile") 2>&5
1.1       bertrand 3594:   ac_status=$?
1.15      bertrand 3595:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3596:   test $ac_status = 0; }; then :
                   3597:   for ac_file in conftest.o conftest.obj conftest.*; do
                   3598:   test -f "$ac_file" || continue;
                   3599:   case $ac_file in
                   3600:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
                   3601:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
                   3602:        break;;
                   3603:   esac
                   3604: done
1.14      bertrand 3605: else
1.15      bertrand 3606:   $as_echo "$as_me: failed program was:" >&5
1.14      bertrand 3607: sed 's/^/| /' conftest.$ac_ext >&5
                   3608: 
1.15      bertrand 3609: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3610: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3611: as_fn_error $? "cannot compute suffix of object files: cannot compile
                   3612: See \`config.log' for more details" "$LINENO" 5 ; }
1.14      bertrand 3613: fi
1.15      bertrand 3614: rm -f conftest.$ac_cv_objext conftest.$ac_ext
                   3615: fi
                   3616: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
                   3617: $as_echo "$ac_cv_objext" >&6; }
                   3618: OBJEXT=$ac_cv_objext
                   3619: ac_objext=$OBJEXT
                   3620: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
                   3621: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
                   3622: if test "${ac_cv_c_compiler_gnu+set}" = set; then :
                   3623:   $as_echo_n "(cached) " >&6
                   3624: else
                   3625:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3626: /* end confdefs.h.  */
                   3627: 
                   3628: int
                   3629: main ()
                   3630: {
                   3631: #ifndef __GNUC__
                   3632:        choke me
                   3633: #endif
1.14      bertrand 3634: 
1.15      bertrand 3635:   ;
                   3636:   return 0;
                   3637: }
                   3638: _ACEOF
                   3639: if ac_fn_c_try_compile "$LINENO"; then :
                   3640:   ac_compiler_gnu=yes
1.14      bertrand 3641: else
1.15      bertrand 3642:   ac_compiler_gnu=no
1.14      bertrand 3643: fi
1.15      bertrand 3644: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3645: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.14      bertrand 3646: 
1.15      bertrand 3647: fi
                   3648: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
                   3649: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
                   3650: if test $ac_compiler_gnu = yes; then
                   3651:   GCC=yes
1.14      bertrand 3652: else
1.15      bertrand 3653:   GCC=
1.14      bertrand 3654: fi
1.15      bertrand 3655: ac_test_CFLAGS=${CFLAGS+set}
                   3656: ac_save_CFLAGS=$CFLAGS
                   3657: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
                   3658: $as_echo_n "checking whether $CC accepts -g... " >&6; }
                   3659: if test "${ac_cv_prog_cc_g+set}" = set; then :
                   3660:   $as_echo_n "(cached) " >&6
                   3661: else
                   3662:   ac_save_c_werror_flag=$ac_c_werror_flag
                   3663:    ac_c_werror_flag=yes
                   3664:    ac_cv_prog_cc_g=no
                   3665:    CFLAGS="-g"
                   3666:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3667: /* end confdefs.h.  */
1.14      bertrand 3668: 
1.15      bertrand 3669: int
                   3670: main ()
                   3671: {
1.14      bertrand 3672: 
1.15      bertrand 3673:   ;
                   3674:   return 0;
                   3675: }
                   3676: _ACEOF
                   3677: if ac_fn_c_try_compile "$LINENO"; then :
                   3678:   ac_cv_prog_cc_g=yes
                   3679: else
                   3680:   CFLAGS=""
                   3681:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3682: /* end confdefs.h.  */
1.14      bertrand 3683: 
1.15      bertrand 3684: int
                   3685: main ()
                   3686: {
1.14      bertrand 3687: 
1.15      bertrand 3688:   ;
                   3689:   return 0;
                   3690: }
                   3691: _ACEOF
                   3692: if ac_fn_c_try_compile "$LINENO"; then :
1.14      bertrand 3693: 
1.15      bertrand 3694: else
                   3695:   ac_c_werror_flag=$ac_save_c_werror_flag
                   3696:     CFLAGS="-g"
                   3697:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3698: /* end confdefs.h.  */
1.14      bertrand 3699: 
1.15      bertrand 3700: int
                   3701: main ()
                   3702: {
1.14      bertrand 3703: 
1.15      bertrand 3704:   ;
                   3705:   return 0;
                   3706: }
                   3707: _ACEOF
                   3708: if ac_fn_c_try_compile "$LINENO"; then :
                   3709:   ac_cv_prog_cc_g=yes
                   3710: fi
                   3711: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3712: fi
                   3713: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3714: fi
                   3715: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3716:    ac_c_werror_flag=$ac_save_c_werror_flag
                   3717: fi
                   3718: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
                   3719: $as_echo "$ac_cv_prog_cc_g" >&6; }
                   3720: if test "$ac_test_CFLAGS" = set; then
                   3721:   CFLAGS=$ac_save_CFLAGS
                   3722: elif test $ac_cv_prog_cc_g = yes; then
                   3723:   if test "$GCC" = yes; then
                   3724:     CFLAGS="-g -O2"
                   3725:   else
                   3726:     CFLAGS="-g"
                   3727:   fi
                   3728: else
                   3729:   if test "$GCC" = yes; then
                   3730:     CFLAGS="-O2"
                   3731:   else
                   3732:     CFLAGS=
                   3733:   fi
                   3734: fi
                   3735: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
                   3736: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
                   3737: if test "${ac_cv_prog_cc_c89+set}" = set; then :
                   3738:   $as_echo_n "(cached) " >&6
1.1       bertrand 3739: else
1.15      bertrand 3740:   ac_cv_prog_cc_c89=no
                   3741: ac_save_CC=$CC
                   3742: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 3743: /* end confdefs.h.  */
1.15      bertrand 3744: #include <stdarg.h>
                   3745: #include <stdio.h>
                   3746: #include <sys/types.h>
                   3747: #include <sys/stat.h>
                   3748: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
                   3749: struct buf { int x; };
                   3750: FILE * (*rcsopen) (struct buf *, struct stat *, int);
                   3751: static char *e (p, i)
                   3752:      char **p;
                   3753:      int i;
                   3754: {
                   3755:   return p[i];
                   3756: }
                   3757: static char *f (char * (*g) (char **, int), char **p, ...)
                   3758: {
                   3759:   char *s;
                   3760:   va_list v;
                   3761:   va_start (v,p);
                   3762:   s = g (p, va_arg (v,int));
                   3763:   va_end (v);
                   3764:   return s;
                   3765: }
                   3766: 
                   3767: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
                   3768:    function prototypes and stuff, but not '\xHH' hex character constants.
                   3769:    These don't provoke an error unfortunately, instead are silently treated
                   3770:    as 'x'.  The following induces an error, until -std is added to get
                   3771:    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
                   3772:    array size at least.  It's necessary to write '\x00'==0 to get something
                   3773:    that's true only with -std.  */
                   3774: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.14      bertrand 3775: 
1.15      bertrand 3776: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
                   3777:    inside strings and character constants.  */
                   3778: #define FOO(x) 'x'
                   3779: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.1       bertrand 3780: 
1.15      bertrand 3781: int test (int i, double x);
                   3782: struct s1 {int (*f) (int a);};
                   3783: struct s2 {int (*f) (double a);};
                   3784: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
                   3785: int argc;
                   3786: char **argv;
1.14      bertrand 3787: int
                   3788: main ()
                   3789: {
1.15      bertrand 3790: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1.14      bertrand 3791:   ;
                   3792:   return 0;
                   3793: }
                   3794: _ACEOF
1.15      bertrand 3795: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
                   3796:    -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
                   3797: do
                   3798:   CC="$ac_save_CC $ac_arg"
                   3799:   if ac_fn_c_try_compile "$LINENO"; then :
                   3800:   ac_cv_prog_cc_c89=$ac_arg
                   3801: fi
                   3802: rm -f core conftest.err conftest.$ac_objext
                   3803:   test "x$ac_cv_prog_cc_c89" != "xno" && break
                   3804: done
                   3805: rm -f conftest.$ac_ext
                   3806: CC=$ac_save_CC
                   3807: 
                   3808: fi
                   3809: # AC_CACHE_VAL
                   3810: case "x$ac_cv_prog_cc_c89" in
                   3811:   x)
                   3812:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
                   3813: $as_echo "none needed" >&6; } ;;
                   3814:   xno)
                   3815:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
                   3816: $as_echo "unsupported" >&6; } ;;
                   3817:   *)
                   3818:     CC="$CC $ac_cv_prog_cc_c89"
                   3819:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
                   3820: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.1       bertrand 3821: esac
1.15      bertrand 3822: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.14      bertrand 3823: 
                   3824: fi
                   3825: 
1.15      bertrand 3826: ac_ext=c
                   3827: ac_cpp='$CPP $CPPFLAGS'
                   3828: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3829: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3830: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3831: DEPDIR="${am__leading_dot}deps"
                   3832: 
                   3833: ac_config_commands="$ac_config_commands depfiles"
                   3834: 
                   3835: 
                   3836: am_make=${MAKE-make}
                   3837: cat > confinc << 'END'
                   3838: am__doit:
                   3839:    @echo this is the am__doit target
                   3840: .PHONY: am__doit
                   3841: END
                   3842: # If we don't find an include directive, just comment out the code.
                   3843: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
                   3844: $as_echo_n "checking for style of include used by $am_make... " >&6; }
                   3845: am__include="#"
                   3846: am__quote=
                   3847: _am_result=none
                   3848: # First try GNU make style include.
                   3849: echo "include confinc" > confmf
                   3850: # Ignore all kinds of additional output from `make'.
                   3851: case `$am_make -s -f confmf 2> /dev/null` in #(
                   3852: *the\ am__doit\ target*)
                   3853:   am__include=include
                   3854:   am__quote=
                   3855:   _am_result=GNU
                   3856:   ;;
                   3857: esac
                   3858: # Now try BSD make style include.
                   3859: if test "$am__include" = "#"; then
                   3860:    echo '.include "confinc"' > confmf
                   3861:    case `$am_make -s -f confmf 2> /dev/null` in #(
                   3862:    *the\ am__doit\ target*)
                   3863:      am__include=.include
                   3864:      am__quote="\""
                   3865:      _am_result=BSD
                   3866:      ;;
                   3867:    esac
1.14      bertrand 3868: fi
                   3869: 
                   3870: 
1.15      bertrand 3871: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
                   3872: $as_echo "$_am_result" >&6; }
                   3873: rm -f confinc confmf
                   3874: 
                   3875: # Check whether --enable-dependency-tracking was given.
                   3876: if test "${enable_dependency_tracking+set}" = set; then :
                   3877:   enableval=$enable_dependency_tracking;
                   3878: fi
                   3879: 
                   3880: if test "x$enable_dependency_tracking" != xno; then
                   3881:   am_depcomp="$ac_aux_dir/depcomp"
                   3882:   AMDEPBACKSLASH='\'
                   3883: fi
                   3884:  if test "x$enable_dependency_tracking" != xno; then
                   3885:   AMDEP_TRUE=
                   3886:   AMDEP_FALSE='#'
1.1       bertrand 3887: else
1.15      bertrand 3888:   AMDEP_TRUE='#'
                   3889:   AMDEP_FALSE=
1.14      bertrand 3890: fi
1.1       bertrand 3891: 
1.14      bertrand 3892: 
                   3893: 
1.15      bertrand 3894: depcc="$CC"   am_compiler_list=
1.14      bertrand 3895: 
1.15      bertrand 3896: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
                   3897: $as_echo_n "checking dependency style of $depcc... " >&6; }
                   3898: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
                   3899:   $as_echo_n "(cached) " >&6
1.14      bertrand 3900: else
1.15      bertrand 3901:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                   3902:   # We make a subdir and do the tests there.  Otherwise we can end up
                   3903:   # making bogus files that we don't know about and never remove.  For
                   3904:   # instance it was reported that on HP-UX the gcc test will end up
                   3905:   # making a dummy file named `D' -- because `-MD' means `put the output
                   3906:   # in D'.
                   3907:   mkdir conftest.dir
                   3908:   # Copy depcomp to subdir because otherwise we won't find it if we're
                   3909:   # using a relative directory.
                   3910:   cp "$am_depcomp" conftest.dir
                   3911:   cd conftest.dir
                   3912:   # We will build objects and dependencies in a subdirectory because
                   3913:   # it helps to detect inapplicable dependency modes.  For instance
                   3914:   # both Tru64's cc and ICC support -MD to output dependencies as a
                   3915:   # side effect of compilation, but ICC will put the dependencies in
                   3916:   # the current directory while Tru64 will put them in the object
                   3917:   # directory.
                   3918:   mkdir sub
1.14      bertrand 3919: 
1.15      bertrand 3920:   am_cv_CC_dependencies_compiler_type=none
                   3921:   if test "$am_compiler_list" = ""; then
                   3922:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
                   3923:   fi
                   3924:   am__universal=false
                   3925:   case " $depcc " in #(
                   3926:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                   3927:      esac
1.14      bertrand 3928: 
1.15      bertrand 3929:   for depmode in $am_compiler_list; do
                   3930:     # Setup a source with many dependencies, because some compilers
                   3931:     # like to wrap large dependency lists on column 80 (with \), and
                   3932:     # we should not choose a depcomp mode which is confused by this.
                   3933:     #
                   3934:     # We need to recreate these files for each test, as the compiler may
                   3935:     # overwrite some of them when testing with obscure command lines.
                   3936:     # This happens at least with the AIX C compiler.
                   3937:     : > sub/conftest.c
                   3938:     for i in 1 2 3 4 5 6; do
                   3939:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
                   3940:       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
                   3941:       # Solaris 8's {/usr,}/bin/sh.
                   3942:       touch sub/conftst$i.h
                   3943:     done
                   3944:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.14      bertrand 3945: 
1.15      bertrand 3946:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
                   3947:     # mode.  It turns out that the SunPro C++ compiler does not properly
                   3948:     # handle `-M -o', and we need to detect this.  Also, some Intel
                   3949:     # versions had trouble with output in subdirs
                   3950:     am__obj=sub/conftest.${OBJEXT-o}
                   3951:     am__minus_obj="-o $am__obj"
                   3952:     case $depmode in
                   3953:     gcc)
                   3954:       # This depmode causes a compiler race in universal mode.
                   3955:       test "$am__universal" = false || continue
                   3956:       ;;
                   3957:     nosideeffect)
                   3958:       # after this tag, mechanisms are not by side-effect, so they'll
                   3959:       # only be used when explicitly requested
                   3960:       if test "x$enable_dependency_tracking" = xyes; then
                   3961:    continue
                   3962:       else
                   3963:    break
                   3964:       fi
                   3965:       ;;
                   3966:     msvisualcpp | msvcmsys)
                   3967:       # This compiler won't grok `-c -o', but also, the minuso test has
                   3968:       # not run yet.  These depmodes are late enough in the game, and
                   3969:       # so weak that their functioning should not be impacted.
                   3970:       am__obj=conftest.${OBJEXT-o}
                   3971:       am__minus_obj=
                   3972:       ;;
                   3973:     none) break ;;
                   3974:     esac
                   3975:     if depmode=$depmode \
                   3976:        source=sub/conftest.c object=$am__obj \
                   3977:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
                   3978:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
                   3979:          >/dev/null 2>conftest.err &&
                   3980:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
                   3981:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
                   3982:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
                   3983:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                   3984:       # icc doesn't choke on unknown options, it will just issue warnings
                   3985:       # or remarks (even with -Werror).  So we grep stderr for any message
                   3986:       # that says an option was ignored or not supported.
                   3987:       # When given -MP, icc 7.0 and 7.1 complain thusly:
                   3988:       #   icc: Command line warning: ignoring option '-M'; no argument required
                   3989:       # The diagnosis changed in icc 8.0:
                   3990:       #   icc: Command line remark: option '-MP' not supported
                   3991:       if (grep 'ignoring option' conftest.err ||
                   3992:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
                   3993:         am_cv_CC_dependencies_compiler_type=$depmode
                   3994:         break
                   3995:       fi
                   3996:     fi
                   3997:   done
1.14      bertrand 3998: 
1.15      bertrand 3999:   cd ..
                   4000:   rm -rf conftest.dir
1.14      bertrand 4001: else
1.15      bertrand 4002:   am_cv_CC_dependencies_compiler_type=none
1.1       bertrand 4003: fi
                   4004: 
1.15      bertrand 4005: fi
                   4006: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
                   4007: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
                   4008: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.14      bertrand 4009: 
1.15      bertrand 4010:  if
                   4011:   test "x$enable_dependency_tracking" != xno \
                   4012:   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
                   4013:   am__fastdepCC_TRUE=
                   4014:   am__fastdepCC_FALSE='#'
1.1       bertrand 4015: else
1.15      bertrand 4016:   am__fastdepCC_TRUE='#'
                   4017:   am__fastdepCC_FALSE=
                   4018: fi
                   4019: 
1.1       bertrand 4020: 
                   4021: 
1.30      bertrand 4022: EXT_SQL=
                   4023: 
1.15      bertrand 4024: if test x"$CC" != x""; then
                   4025:    GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4026:            awk -F. '{ printf("%s", $1);}'`
                   4027:    GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4028:            awk -F. '{ printf("%s", $2);}'`
1.23      bertrand 4029:    if test $GCC_VERSION_MAJEURE -ge 5; then
1.15      bertrand 4030:        OPTIMISATION_C=-O3
                   4031:    else
1.23      bertrand 4032:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; \
                   4033:                then
1.15      bertrand 4034:            OPTIMISATION_C=-O3
                   4035:        else
1.23      bertrand 4036:            if test $GCC_VERSION_MAJEURE -ge 2; then
                   4037:                OPTIMISATION_C=-O2
                   4038:            else
1.36      bertrand 4039:                as_fn_error $? "Cannot find decent or recent gcc (gcc-4.2 or better)!" "$LINENO" 5
1.23      bertrand 4040:            fi
1.15      bertrand 4041:        fi
                   4042:    fi
1.14      bertrand 4043: fi
                   4044: 
1.15      bertrand 4045: if test "x$CC" != xcc; then
                   4046:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
                   4047: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
1.14      bertrand 4048: else
1.15      bertrand 4049:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
                   4050: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
1.1       bertrand 4051: fi
1.15      bertrand 4052: set dummy $CC; ac_cc=`$as_echo "$2" |
                   4053:              sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
1.36      bertrand 4054: if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
1.15      bertrand 4055:   $as_echo_n "(cached) " >&6
1.1       bertrand 4056: else
1.15      bertrand 4057:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 4058: /* end confdefs.h.  */
                   4059: 
                   4060: int
                   4061: main ()
                   4062: {
1.15      bertrand 4063: 
1.1       bertrand 4064:   ;
                   4065:   return 0;
                   4066: }
                   4067: _ACEOF
1.15      bertrand 4068: # Make sure it works both with $CC and with simple cc.
                   4069: # We do the test twice because some compilers refuse to overwrite an
                   4070: # existing .o file with -o, though they will create one.
                   4071: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4072: rm -f conftest2.*
                   4073: if { { case "(($ac_try" in
                   4074:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4075:   *) ac_try_echo=$ac_try;;
                   4076: esac
                   4077: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4078: $as_echo "$ac_try_echo"; } >&5
                   4079:   (eval "$ac_try") 2>&5
                   4080:   ac_status=$?
                   4081:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4082:   test $ac_status = 0; } &&
                   4083:    test -f conftest2.$ac_objext && { { case "(($ac_try" in
                   4084:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4085:   *) ac_try_echo=$ac_try;;
                   4086: esac
                   4087: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4088: $as_echo "$ac_try_echo"; } >&5
                   4089:   (eval "$ac_try") 2>&5
                   4090:   ac_status=$?
                   4091:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4092:   test $ac_status = 0; };
                   4093: then
                   4094:   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
                   4095:   if test "x$CC" != xcc; then
                   4096:     # Test first that cc exists at all.
                   4097:     if { ac_try='cc -c conftest.$ac_ext >&5'
                   4098:   { { case "(($ac_try" in
                   4099:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4100:   *) ac_try_echo=$ac_try;;
                   4101: esac
                   4102: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4103: $as_echo "$ac_try_echo"; } >&5
                   4104:   (eval "$ac_try") 2>&5
                   4105:   ac_status=$?
                   4106:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4107:   test $ac_status = 0; }; }; then
                   4108:       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4109:       rm -f conftest2.*
                   4110:       if { { case "(($ac_try" in
                   4111:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4112:   *) ac_try_echo=$ac_try;;
                   4113: esac
                   4114: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4115: $as_echo "$ac_try_echo"; } >&5
                   4116:   (eval "$ac_try") 2>&5
                   4117:   ac_status=$?
                   4118:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4119:   test $ac_status = 0; } &&
                   4120:     test -f conftest2.$ac_objext && { { case "(($ac_try" in
1.14      bertrand 4121:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4122:   *) ac_try_echo=$ac_try;;
                   4123: esac
1.15      bertrand 4124: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4125: $as_echo "$ac_try_echo"; } >&5
                   4126:   (eval "$ac_try") 2>&5
1.14      bertrand 4127:   ac_status=$?
1.15      bertrand 4128:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4129:   test $ac_status = 0; };
                   4130:       then
                   4131:    # cc works too.
                   4132:    :
                   4133:       else
                   4134:    # cc exists but doesn't like -o.
                   4135:    eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4136:       fi
                   4137:     fi
                   4138:   fi
1.1       bertrand 4139: else
1.15      bertrand 4140:   eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4141: fi
                   4142: rm -f core conftest*
1.14      bertrand 4143: 
1.1       bertrand 4144: fi
1.15      bertrand 4145: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
                   4146:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4147: $as_echo "yes" >&6; }
                   4148: else
                   4149:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4150: $as_echo "no" >&6; }
                   4151: 
                   4152: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
1.1       bertrand 4153: 
                   4154: fi
1.15      bertrand 4155: 
                   4156: # FIXME: we rely on the cache variable name because
                   4157: # there is no other way.
                   4158: set dummy $CC
                   4159: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
                   4160: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
                   4161: if test "$am_t" != yes; then
                   4162:    # Losing compiler, so override with the script.
                   4163:    # FIXME: It is wrong to rewrite CC.
                   4164:    # But if we don't then we get into trouble of one sort or another.
                   4165:    # A longer-term fix would be to have automake use am__CC in this case,
                   4166:    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
                   4167:    CC="$am_aux_dir/compile $CC"
1.1       bertrand 4168: fi
1.14      bertrand 4169: 
                   4170: 
1.15      bertrand 4171: 
                   4172: if test "$GCC" != yes; then
1.36      bertrand 4173:    as_fn_error $? "Cannot find gcc! You have to install it." "$LINENO" 5
1.15      bertrand 4174: fi
                   4175: 
                   4176: ac_ext=cpp
                   4177: ac_cpp='$CXXCPP $CPPFLAGS'
                   4178: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4179: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4180: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
                   4181: if test -z "$CXX"; then
                   4182:   if test -n "$CCC"; then
                   4183:     CXX=$CCC
                   4184:   else
                   4185:     if test -n "$ac_tool_prefix"; then
1.23      bertrand 4186:   for ac_prog in g++
1.15      bertrand 4187:   do
                   4188:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4189: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4190: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4191: $as_echo_n "checking for $ac_word... " >&6; }
                   4192: if test "${ac_cv_prog_CXX+set}" = set; then :
                   4193:   $as_echo_n "(cached) " >&6
1.1       bertrand 4194: else
1.15      bertrand 4195:   if test -n "$CXX"; then
                   4196:   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.14      bertrand 4197: else
1.15      bertrand 4198: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4199: for as_dir in $PATH
                   4200: do
                   4201:   IFS=$as_save_IFS
                   4202:   test -z "$as_dir" && as_dir=.
                   4203:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4204:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4205:     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
                   4206:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4207:     break 2
                   4208:   fi
                   4209: done
                   4210:   done
                   4211: IFS=$as_save_IFS
1.14      bertrand 4212: 
                   4213: fi
                   4214: fi
1.15      bertrand 4215: CXX=$ac_cv_prog_CXX
                   4216: if test -n "$CXX"; then
                   4217:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
                   4218: $as_echo "$CXX" >&6; }
1.14      bertrand 4219: else
1.15      bertrand 4220:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4221: $as_echo "no" >&6; }
1.14      bertrand 4222: fi
                   4223: 
                   4224: 
1.15      bertrand 4225:     test -n "$CXX" && break
                   4226:   done
                   4227: fi
                   4228: if test -z "$CXX"; then
                   4229:   ac_ct_CXX=$CXX
1.23      bertrand 4230:   for ac_prog in g++
1.15      bertrand 4231: do
                   4232:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4233: set dummy $ac_prog; ac_word=$2
                   4234: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4235: $as_echo_n "checking for $ac_word... " >&6; }
                   4236: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
                   4237:   $as_echo_n "(cached) " >&6
                   4238: else
                   4239:   if test -n "$ac_ct_CXX"; then
                   4240:   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
                   4241: else
                   4242: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4243: for as_dir in $PATH
                   4244: do
                   4245:   IFS=$as_save_IFS
                   4246:   test -z "$as_dir" && as_dir=.
                   4247:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4248:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4249:     ac_cv_prog_ac_ct_CXX="$ac_prog"
                   4250:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4251:     break 2
                   4252:   fi
                   4253: done
                   4254:   done
                   4255: IFS=$as_save_IFS
1.14      bertrand 4256: 
1.15      bertrand 4257: fi
                   4258: fi
                   4259: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
                   4260: if test -n "$ac_ct_CXX"; then
                   4261:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
                   4262: $as_echo "$ac_ct_CXX" >&6; }
1.1       bertrand 4263: else
1.15      bertrand 4264:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4265: $as_echo "no" >&6; }
1.14      bertrand 4266: fi
                   4267: 
                   4268: 
1.15      bertrand 4269:   test -n "$ac_ct_CXX" && break
                   4270: done
1.14      bertrand 4271: 
1.15      bertrand 4272:   if test "x$ac_ct_CXX" = x; then
                   4273:     CXX="g++"
                   4274:   else
                   4275:     case $cross_compiling:$ac_tool_warned in
                   4276: yes:)
                   4277: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4278: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4279: ac_tool_warned=yes ;;
                   4280: esac
                   4281:     CXX=$ac_ct_CXX
                   4282:   fi
                   4283: fi
1.1       bertrand 4284: 
1.15      bertrand 4285:   fi
                   4286: fi
                   4287: # Provide some information about the compiler.
                   4288: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
                   4289: set X $ac_compile
                   4290: ac_compiler=$2
                   4291: for ac_option in --version -v -V -qversion; do
                   4292:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4293: case "(($ac_try" in
                   4294:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4295:   *) ac_try_echo=$ac_try;;
                   4296: esac
1.15      bertrand 4297: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4298: $as_echo "$ac_try_echo"; } >&5
                   4299:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4300:   ac_status=$?
1.15      bertrand 4301:   if test -s conftest.err; then
                   4302:     sed '10a\
                   4303: ... rest of stderr output deleted ...
                   4304:          10q' conftest.err >conftest.er1
                   4305:     cat conftest.er1 >&5
                   4306:   fi
                   4307:   rm -f conftest.er1 conftest.err
                   4308:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4309:   test $ac_status = 0; }
                   4310: done
                   4311: 
                   4312: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
                   4313: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
                   4314: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
                   4315:   $as_echo_n "(cached) " >&6
1.14      bertrand 4316: else
1.15      bertrand 4317:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4318: /* end confdefs.h.  */
1.1       bertrand 4319: 
                   4320: int
                   4321: main ()
                   4322: {
1.15      bertrand 4323: #ifndef __GNUC__
                   4324:        choke me
                   4325: #endif
1.1       bertrand 4326: 
                   4327:   ;
                   4328:   return 0;
                   4329: }
                   4330: _ACEOF
1.15      bertrand 4331: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4332:   ac_compiler_gnu=yes
1.1       bertrand 4333: else
1.15      bertrand 4334:   ac_compiler_gnu=no
1.1       bertrand 4335: fi
1.14      bertrand 4336: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 4337: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4338: 
1.15      bertrand 4339: fi
                   4340: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
                   4341: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
                   4342: if test $ac_compiler_gnu = yes; then
                   4343:   GXX=yes
                   4344: else
                   4345:   GXX=
                   4346: fi
                   4347: ac_test_CXXFLAGS=${CXXFLAGS+set}
                   4348: ac_save_CXXFLAGS=$CXXFLAGS
                   4349: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
                   4350: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
                   4351: if test "${ac_cv_prog_cxx_g+set}" = set; then :
                   4352:   $as_echo_n "(cached) " >&6
                   4353: else
                   4354:   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
                   4355:    ac_cxx_werror_flag=yes
                   4356:    ac_cv_prog_cxx_g=no
                   4357:    CXXFLAGS="-g"
                   4358:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 4359: /* end confdefs.h.  */
1.15      bertrand 4360: 
1.1       bertrand 4361: int
                   4362: main ()
                   4363: {
1.14      bertrand 4364: 
1.1       bertrand 4365:   ;
                   4366:   return 0;
                   4367: }
                   4368: _ACEOF
1.15      bertrand 4369: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4370:   ac_cv_prog_cxx_g=yes
1.14      bertrand 4371: else
1.15      bertrand 4372:   CXXFLAGS=""
                   4373:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4374: /* end confdefs.h.  */
1.1       bertrand 4375: 
1.14      bertrand 4376: int
                   4377: main ()
                   4378: {
1.1       bertrand 4379: 
1.14      bertrand 4380:   ;
                   4381:   return 0;
                   4382: }
                   4383: _ACEOF
1.15      bertrand 4384: if ac_fn_cxx_try_compile "$LINENO"; then :
1.1       bertrand 4385: 
                   4386: else
1.15      bertrand 4387:   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
                   4388:     CXXFLAGS="-g"
                   4389:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4390: /* end confdefs.h.  */
1.1       bertrand 4391: 
1.14      bertrand 4392: int
                   4393: main ()
                   4394: {
1.1       bertrand 4395: 
1.14      bertrand 4396:   ;
                   4397:   return 0;
                   4398: }
                   4399: _ACEOF
1.15      bertrand 4400: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4401:   ac_cv_prog_cxx_g=yes
                   4402: fi
                   4403: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4404: fi
                   4405: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4406: fi
                   4407: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4408:    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
                   4409: fi
                   4410: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
                   4411: $as_echo "$ac_cv_prog_cxx_g" >&6; }
                   4412: if test "$ac_test_CXXFLAGS" = set; then
                   4413:   CXXFLAGS=$ac_save_CXXFLAGS
                   4414: elif test $ac_cv_prog_cxx_g = yes; then
                   4415:   if test "$GXX" = yes; then
                   4416:     CXXFLAGS="-g -O2"
                   4417:   else
                   4418:     CXXFLAGS="-g"
                   4419:   fi
                   4420: else
                   4421:   if test "$GXX" = yes; then
                   4422:     CXXFLAGS="-O2"
                   4423:   else
                   4424:     CXXFLAGS=
                   4425:   fi
                   4426: fi
                   4427: ac_ext=c
                   4428: ac_cpp='$CPP $CPPFLAGS'
                   4429: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4430: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4431: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   4432: 
                   4433: depcc="$CXX"  am_compiler_list=
                   4434: 
                   4435: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
                   4436: $as_echo_n "checking dependency style of $depcc... " >&6; }
                   4437: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
                   4438:   $as_echo_n "(cached) " >&6
                   4439: else
                   4440:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                   4441:   # We make a subdir and do the tests there.  Otherwise we can end up
                   4442:   # making bogus files that we don't know about and never remove.  For
                   4443:   # instance it was reported that on HP-UX the gcc test will end up
                   4444:   # making a dummy file named `D' -- because `-MD' means `put the output
                   4445:   # in D'.
                   4446:   mkdir conftest.dir
                   4447:   # Copy depcomp to subdir because otherwise we won't find it if we're
                   4448:   # using a relative directory.
                   4449:   cp "$am_depcomp" conftest.dir
                   4450:   cd conftest.dir
                   4451:   # We will build objects and dependencies in a subdirectory because
                   4452:   # it helps to detect inapplicable dependency modes.  For instance
                   4453:   # both Tru64's cc and ICC support -MD to output dependencies as a
                   4454:   # side effect of compilation, but ICC will put the dependencies in
                   4455:   # the current directory while Tru64 will put them in the object
                   4456:   # directory.
                   4457:   mkdir sub
                   4458: 
                   4459:   am_cv_CXX_dependencies_compiler_type=none
                   4460:   if test "$am_compiler_list" = ""; then
                   4461:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
                   4462:   fi
                   4463:   am__universal=false
                   4464:   case " $depcc " in #(
                   4465:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                   4466:      esac
                   4467: 
                   4468:   for depmode in $am_compiler_list; do
                   4469:     # Setup a source with many dependencies, because some compilers
                   4470:     # like to wrap large dependency lists on column 80 (with \), and
                   4471:     # we should not choose a depcomp mode which is confused by this.
                   4472:     #
                   4473:     # We need to recreate these files for each test, as the compiler may
                   4474:     # overwrite some of them when testing with obscure command lines.
                   4475:     # This happens at least with the AIX C compiler.
                   4476:     : > sub/conftest.c
                   4477:     for i in 1 2 3 4 5 6; do
                   4478:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
                   4479:       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
                   4480:       # Solaris 8's {/usr,}/bin/sh.
                   4481:       touch sub/conftst$i.h
                   4482:     done
                   4483:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
                   4484: 
                   4485:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
                   4486:     # mode.  It turns out that the SunPro C++ compiler does not properly
                   4487:     # handle `-M -o', and we need to detect this.  Also, some Intel
                   4488:     # versions had trouble with output in subdirs
                   4489:     am__obj=sub/conftest.${OBJEXT-o}
                   4490:     am__minus_obj="-o $am__obj"
                   4491:     case $depmode in
                   4492:     gcc)
                   4493:       # This depmode causes a compiler race in universal mode.
                   4494:       test "$am__universal" = false || continue
                   4495:       ;;
                   4496:     nosideeffect)
                   4497:       # after this tag, mechanisms are not by side-effect, so they'll
                   4498:       # only be used when explicitly requested
                   4499:       if test "x$enable_dependency_tracking" = xyes; then
                   4500:    continue
                   4501:       else
                   4502:    break
                   4503:       fi
                   4504:       ;;
                   4505:     msvisualcpp | msvcmsys)
                   4506:       # This compiler won't grok `-c -o', but also, the minuso test has
                   4507:       # not run yet.  These depmodes are late enough in the game, and
                   4508:       # so weak that their functioning should not be impacted.
                   4509:       am__obj=conftest.${OBJEXT-o}
                   4510:       am__minus_obj=
                   4511:       ;;
                   4512:     none) break ;;
                   4513:     esac
                   4514:     if depmode=$depmode \
                   4515:        source=sub/conftest.c object=$am__obj \
                   4516:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
                   4517:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
                   4518:          >/dev/null 2>conftest.err &&
                   4519:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
                   4520:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
                   4521:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
                   4522:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                   4523:       # icc doesn't choke on unknown options, it will just issue warnings
                   4524:       # or remarks (even with -Werror).  So we grep stderr for any message
                   4525:       # that says an option was ignored or not supported.
                   4526:       # When given -MP, icc 7.0 and 7.1 complain thusly:
                   4527:       #   icc: Command line warning: ignoring option '-M'; no argument required
                   4528:       # The diagnosis changed in icc 8.0:
                   4529:       #   icc: Command line remark: option '-MP' not supported
                   4530:       if (grep 'ignoring option' conftest.err ||
                   4531:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
                   4532:         am_cv_CXX_dependencies_compiler_type=$depmode
                   4533:         break
                   4534:       fi
                   4535:     fi
                   4536:   done
                   4537: 
                   4538:   cd ..
                   4539:   rm -rf conftest.dir
                   4540: else
                   4541:   am_cv_CXX_dependencies_compiler_type=none
                   4542: fi
                   4543: 
                   4544: fi
                   4545: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
                   4546: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
                   4547: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
                   4548: 
                   4549:  if
                   4550:   test "x$enable_dependency_tracking" != xno \
                   4551:   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
                   4552:   am__fastdepCXX_TRUE=
                   4553:   am__fastdepCXX_FALSE='#'
                   4554: else
                   4555:   am__fastdepCXX_TRUE='#'
                   4556:   am__fastdepCXX_FALSE=
                   4557: fi
                   4558: 
                   4559: 
                   4560: 
                   4561: if test "$GXX" != yes; then
1.36      bertrand 4562:    as_fn_error $? "Cannot find g++! You have to install it." "$LINENO" 5
1.15      bertrand 4563: fi
                   4564: 
                   4565: ac_ext=f
                   4566: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
                   4567: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4568: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
                   4569: if test -n "$ac_tool_prefix"; then
1.23      bertrand 4570:   for ac_prog in gfortran
1.15      bertrand 4571:   do
                   4572:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4573: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4574: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4575: $as_echo_n "checking for $ac_word... " >&6; }
                   4576: if test "${ac_cv_prog_F77+set}" = set; then :
                   4577:   $as_echo_n "(cached) " >&6
                   4578: else
                   4579:   if test -n "$F77"; then
                   4580:   ac_cv_prog_F77="$F77" # Let the user override the test.
                   4581: else
                   4582: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4583: for as_dir in $PATH
                   4584: do
                   4585:   IFS=$as_save_IFS
                   4586:   test -z "$as_dir" && as_dir=.
                   4587:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4588:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4589:     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
                   4590:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4591:     break 2
                   4592:   fi
                   4593: done
                   4594:   done
                   4595: IFS=$as_save_IFS
                   4596: 
                   4597: fi
                   4598: fi
                   4599: F77=$ac_cv_prog_F77
                   4600: if test -n "$F77"; then
                   4601:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
                   4602: $as_echo "$F77" >&6; }
                   4603: else
                   4604:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4605: $as_echo "no" >&6; }
                   4606: fi
                   4607: 
                   4608: 
                   4609:     test -n "$F77" && break
                   4610:   done
                   4611: fi
                   4612: if test -z "$F77"; then
                   4613:   ac_ct_F77=$F77
1.23      bertrand 4614:   for ac_prog in gfortran
1.15      bertrand 4615: do
                   4616:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4617: set dummy $ac_prog; ac_word=$2
                   4618: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4619: $as_echo_n "checking for $ac_word... " >&6; }
                   4620: if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
                   4621:   $as_echo_n "(cached) " >&6
                   4622: else
                   4623:   if test -n "$ac_ct_F77"; then
                   4624:   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
                   4625: else
                   4626: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4627: for as_dir in $PATH
                   4628: do
                   4629:   IFS=$as_save_IFS
                   4630:   test -z "$as_dir" && as_dir=.
                   4631:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4632:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4633:     ac_cv_prog_ac_ct_F77="$ac_prog"
                   4634:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4635:     break 2
                   4636:   fi
                   4637: done
                   4638:   done
                   4639: IFS=$as_save_IFS
                   4640: 
                   4641: fi
                   4642: fi
                   4643: ac_ct_F77=$ac_cv_prog_ac_ct_F77
                   4644: if test -n "$ac_ct_F77"; then
                   4645:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
                   4646: $as_echo "$ac_ct_F77" >&6; }
1.1       bertrand 4647: else
1.15      bertrand 4648:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4649: $as_echo "no" >&6; }
                   4650: fi
                   4651: 
                   4652: 
                   4653:   test -n "$ac_ct_F77" && break
                   4654: done
1.1       bertrand 4655: 
1.15      bertrand 4656:   if test "x$ac_ct_F77" = x; then
                   4657:     F77=""
                   4658:   else
                   4659:     case $cross_compiling:$ac_tool_warned in
                   4660: yes:)
                   4661: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4662: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4663: ac_tool_warned=yes ;;
                   4664: esac
                   4665:     F77=$ac_ct_F77
                   4666:   fi
1.14      bertrand 4667: fi
1.1       bertrand 4668: 
                   4669: 
1.15      bertrand 4670: # Provide some information about the compiler.
                   4671: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
                   4672: set X $ac_compile
                   4673: ac_compiler=$2
                   4674: for ac_option in --version -v -V -qversion; do
                   4675:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4676: case "(($ac_try" in
                   4677:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4678:   *) ac_try_echo=$ac_try;;
                   4679: esac
1.15      bertrand 4680: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4681: $as_echo "$ac_try_echo"; } >&5
                   4682:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4683:   ac_status=$?
1.15      bertrand 4684:   if test -s conftest.err; then
                   4685:     sed '10a\
                   4686: ... rest of stderr output deleted ...
                   4687:          10q' conftest.err >conftest.er1
                   4688:     cat conftest.er1 >&5
                   4689:   fi
                   4690:   rm -f conftest.er1 conftest.err
                   4691:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4692:   test $ac_status = 0; }
                   4693: done
                   4694: rm -f a.out
                   4695: 
                   4696: # If we don't use `.F' as extension, the preprocessor is not run on the
                   4697: # input file.  (Note that this only needs to work for GNU compilers.)
                   4698: ac_save_ext=$ac_ext
                   4699: ac_ext=F
                   4700: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
                   4701: $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
                   4702: if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
                   4703:   $as_echo_n "(cached) " >&6
1.1       bertrand 4704: else
1.15      bertrand 4705:   cat > conftest.$ac_ext <<_ACEOF
                   4706:       program main
                   4707: #ifndef __GNUC__
                   4708:        choke me
                   4709: #endif
1.14      bertrand 4710: 
1.15      bertrand 4711:       end
                   4712: _ACEOF
                   4713: if ac_fn_f77_try_compile "$LINENO"; then :
                   4714:   ac_compiler_gnu=yes
                   4715: else
                   4716:   ac_compiler_gnu=no
1.1       bertrand 4717: fi
1.15      bertrand 4718: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4719: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4720: 
                   4721: fi
1.15      bertrand 4722: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
                   4723: $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
                   4724: ac_ext=$ac_save_ext
                   4725: ac_test_FFLAGS=${FFLAGS+set}
                   4726: ac_save_FFLAGS=$FFLAGS
                   4727: FFLAGS=
                   4728: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
                   4729: $as_echo_n "checking whether $F77 accepts -g... " >&6; }
                   4730: if test "${ac_cv_prog_f77_g+set}" = set; then :
                   4731:   $as_echo_n "(cached) " >&6
                   4732: else
                   4733:   FFLAGS=-g
                   4734: cat > conftest.$ac_ext <<_ACEOF
                   4735:       program main
1.1       bertrand 4736: 
1.15      bertrand 4737:       end
1.14      bertrand 4738: _ACEOF
1.15      bertrand 4739: if ac_fn_f77_try_compile "$LINENO"; then :
                   4740:   ac_cv_prog_f77_g=yes
1.1       bertrand 4741: else
1.15      bertrand 4742:   ac_cv_prog_f77_g=no
1.1       bertrand 4743: fi
1.15      bertrand 4744: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 4745: 
                   4746: fi
1.15      bertrand 4747: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
                   4748: $as_echo "$ac_cv_prog_f77_g" >&6; }
                   4749: if test "$ac_test_FFLAGS" = set; then
                   4750:   FFLAGS=$ac_save_FFLAGS
                   4751: elif test $ac_cv_prog_f77_g = yes; then
                   4752:   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
                   4753:     FFLAGS="-g -O2"
                   4754:   else
                   4755:     FFLAGS="-g"
                   4756:   fi
                   4757: else
                   4758:   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
                   4759:     FFLAGS="-O2"
                   4760:   else
                   4761:     FFLAGS=
                   4762:   fi
1.1       bertrand 4763: fi
                   4764: 
1.15      bertrand 4765: if test $ac_compiler_gnu = yes; then
                   4766:   G77=yes
1.1       bertrand 4767: else
1.15      bertrand 4768:   G77=
1.1       bertrand 4769: fi
1.15      bertrand 4770: ac_ext=c
                   4771: ac_cpp='$CPP $CPPFLAGS'
                   4772: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4773: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4774: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       bertrand 4775: 
                   4776: 
1.15      bertrand 4777: if test "$F77" != gfortran -a "$F77" != gfortran-4.4; then
1.36      bertrand 4778:    as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
1.15      bertrand 4779: fi
1.14      bertrand 4780: 
1.15      bertrand 4781: ac_ext=${ac_fc_srcext-f}
                   4782: ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
                   4783: ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
                   4784: ac_compiler_gnu=$ac_cv_fc_compiler_gnu
                   4785: if test -n "$ac_tool_prefix"; then
1.23      bertrand 4786:   for ac_prog in gfortran
1.15      bertrand 4787:   do
                   4788:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4789: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4790: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4791: $as_echo_n "checking for $ac_word... " >&6; }
                   4792: if test "${ac_cv_prog_FC+set}" = set; then :
                   4793:   $as_echo_n "(cached) " >&6
                   4794: else
                   4795:   if test -n "$FC"; then
                   4796:   ac_cv_prog_FC="$FC" # Let the user override the test.
1.1       bertrand 4797: else
1.15      bertrand 4798: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4799: for as_dir in $PATH
                   4800: do
                   4801:   IFS=$as_save_IFS
                   4802:   test -z "$as_dir" && as_dir=.
                   4803:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4804:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4805:     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
                   4806:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4807:     break 2
                   4808:   fi
                   4809: done
                   4810:   done
                   4811: IFS=$as_save_IFS
1.1       bertrand 4812: 
                   4813: fi
1.15      bertrand 4814: fi
                   4815: FC=$ac_cv_prog_FC
                   4816: if test -n "$FC"; then
                   4817:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
                   4818: $as_echo "$FC" >&6; }
1.14      bertrand 4819: else
1.15      bertrand 4820:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4821: $as_echo "no" >&6; }
1.14      bertrand 4822: fi
                   4823: 
1.1       bertrand 4824: 
1.15      bertrand 4825:     test -n "$FC" && break
                   4826:   done
                   4827: fi
                   4828: if test -z "$FC"; then
                   4829:   ac_ct_FC=$FC
1.23      bertrand 4830:   for ac_prog in gfortran
1.15      bertrand 4831: do
                   4832:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4833: set dummy $ac_prog; ac_word=$2
                   4834: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4835: $as_echo_n "checking for $ac_word... " >&6; }
                   4836: if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
                   4837:   $as_echo_n "(cached) " >&6
                   4838: else
                   4839:   if test -n "$ac_ct_FC"; then
                   4840:   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
                   4841: else
                   4842: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4843: for as_dir in $PATH
                   4844: do
                   4845:   IFS=$as_save_IFS
                   4846:   test -z "$as_dir" && as_dir=.
                   4847:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4848:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4849:     ac_cv_prog_ac_ct_FC="$ac_prog"
                   4850:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4851:     break 2
                   4852:   fi
                   4853: done
                   4854:   done
                   4855: IFS=$as_save_IFS
1.1       bertrand 4856: 
1.15      bertrand 4857: fi
                   4858: fi
                   4859: ac_ct_FC=$ac_cv_prog_ac_ct_FC
                   4860: if test -n "$ac_ct_FC"; then
                   4861:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
                   4862: $as_echo "$ac_ct_FC" >&6; }
1.1       bertrand 4863: else
1.15      bertrand 4864:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4865: $as_echo "no" >&6; }
1.1       bertrand 4866: fi
1.14      bertrand 4867: 
1.1       bertrand 4868: 
1.15      bertrand 4869:   test -n "$ac_ct_FC" && break
                   4870: done
1.1       bertrand 4871: 
1.15      bertrand 4872:   if test "x$ac_ct_FC" = x; then
                   4873:     FC=""
                   4874:   else
                   4875:     case $cross_compiling:$ac_tool_warned in
                   4876: yes:)
                   4877: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4878: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4879: ac_tool_warned=yes ;;
1.14      bertrand 4880: esac
1.15      bertrand 4881:     FC=$ac_ct_FC
                   4882:   fi
1.14      bertrand 4883: fi
                   4884: 
                   4885: 
1.15      bertrand 4886: # Provide some information about the compiler.
                   4887: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
                   4888: set X $ac_compile
                   4889: ac_compiler=$2
                   4890: for ac_option in --version -v -V -qversion; do
                   4891:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4892: case "(($ac_try" in
                   4893:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4894:   *) ac_try_echo=$ac_try;;
                   4895: esac
1.15      bertrand 4896: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4897: $as_echo "$ac_try_echo"; } >&5
                   4898:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4899:   ac_status=$?
1.15      bertrand 4900:   if test -s conftest.err; then
                   4901:     sed '10a\
                   4902: ... rest of stderr output deleted ...
                   4903:          10q' conftest.err >conftest.er1
                   4904:     cat conftest.er1 >&5
                   4905:   fi
                   4906:   rm -f conftest.er1 conftest.err
                   4907:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4908:   test $ac_status = 0; }
                   4909: done
                   4910: rm -f a.out
                   4911: 
                   4912: # If we don't use `.F' as extension, the preprocessor is not run on the
                   4913: # input file.  (Note that this only needs to work for GNU compilers.)
                   4914: ac_save_ext=$ac_ext
                   4915: ac_ext=F
                   4916: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
                   4917: $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
                   4918: if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
                   4919:   $as_echo_n "(cached) " >&6
1.14      bertrand 4920: else
1.15      bertrand 4921:   cat > conftest.$ac_ext <<_ACEOF
                   4922:       program main
                   4923: #ifndef __GNUC__
                   4924:        choke me
                   4925: #endif
1.14      bertrand 4926: 
1.15      bertrand 4927:       end
                   4928: _ACEOF
                   4929: if ac_fn_fc_try_compile "$LINENO"; then :
                   4930:   ac_compiler_gnu=yes
                   4931: else
                   4932:   ac_compiler_gnu=no
1.14      bertrand 4933: fi
                   4934: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 4935: ac_cv_fc_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4936: 
1.15      bertrand 4937: fi
                   4938: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
                   4939: $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
                   4940: ac_ext=$ac_save_ext
                   4941: ac_test_FCFLAGS=${FCFLAGS+set}
                   4942: ac_save_FCFLAGS=$FCFLAGS
                   4943: FCFLAGS=
                   4944: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
                   4945: $as_echo_n "checking whether $FC accepts -g... " >&6; }
                   4946: if test "${ac_cv_prog_fc_g+set}" = set; then :
                   4947:   $as_echo_n "(cached) " >&6
                   4948: else
                   4949:   FCFLAGS=-g
                   4950: cat > conftest.$ac_ext <<_ACEOF
                   4951:       program main
1.1       bertrand 4952: 
1.15      bertrand 4953:       end
1.1       bertrand 4954: _ACEOF
1.15      bertrand 4955: if ac_fn_fc_try_compile "$LINENO"; then :
                   4956:   ac_cv_prog_fc_g=yes
1.1       bertrand 4957: else
1.15      bertrand 4958:   ac_cv_prog_fc_g=no
1.1       bertrand 4959: fi
1.14      bertrand 4960: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 4961: 
1.15      bertrand 4962: fi
                   4963: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
                   4964: $as_echo "$ac_cv_prog_fc_g" >&6; }
                   4965: if test "$ac_test_FCFLAGS" = set; then
                   4966:   FCFLAGS=$ac_save_FCFLAGS
                   4967: elif test $ac_cv_prog_fc_g = yes; then
                   4968:   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
                   4969:     FCFLAGS="-g -O2"
                   4970:   else
                   4971:     FCFLAGS="-g"
                   4972:   fi
1.1       bertrand 4973: else
1.15      bertrand 4974:   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
                   4975:     FCFLAGS="-O2"
                   4976:   else
                   4977:     FCFLAGS=
                   4978:   fi
1.1       bertrand 4979: fi
                   4980: 
1.15      bertrand 4981: ac_ext=c
                   4982: ac_cpp='$CPP $CPPFLAGS'
                   4983: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4984: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4985: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       bertrand 4986: 
                   4987: 
1.15      bertrand 4988: if test "$FC" != gfortran -a "$FC" != gfortran-4.4; then
1.36      bertrand 4989:    as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
1.1       bertrand 4990: fi
                   4991: 
1.15      bertrand 4992: if test x"$FC" != x""; then
                   4993:    GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4994:            awk -F. '{ printf("%s", $1);}'`
                   4995:    GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4996:            awk -F. '{ printf("%s", $2);}'`
1.23      bertrand 4997:    if test $GCC_VERSION_MAJEURE -ge 5; then
1.15      bertrand 4998:        OPTIMISATION_F=-O3
                   4999:    else
1.23      bertrand 5000:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
1.15      bertrand 5001:            OPTIMISATION_F=-O3
                   5002:        else
1.23      bertrand 5003:            if test $GCC_VERSION_MAJEURE -ge 3; then
                   5004:                OPTIMISATION_F=-O2
                   5005:            else
1.36      bertrand 5006:                as_fn_error $? "Cannot find decent or recent gfortran (gfortran-4.3 or better)!" "$LINENO" 5
1.23      bertrand 5007:            fi
1.14      bertrand 5008:        fi
                   5009:    fi
                   5010: fi
1.1       bertrand 5011: 
                   5012: 
1.15      bertrand 5013: ac_ext=c
                   5014: ac_cpp='$CPP $CPPFLAGS'
                   5015: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5016: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5017: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   5018: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
                   5019: $as_echo_n "checking how to run the C preprocessor... " >&6; }
                   5020: # On Suns, sometimes $CPP names a directory.
                   5021: if test -n "$CPP" && test -d "$CPP"; then
                   5022:   CPP=
                   5023: fi
                   5024: if test -z "$CPP"; then
                   5025:   if test "${ac_cv_prog_CPP+set}" = set; then :
                   5026:   $as_echo_n "(cached) " >&6
                   5027: else
                   5028:       # Double quotes because CPP needs to be expanded
                   5029:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
                   5030:     do
                   5031:       ac_preproc_ok=false
                   5032: for ac_c_preproc_warn_flag in '' yes
                   5033: do
                   5034:   # Use a header file that comes with gcc, so configuring glibc
                   5035:   # with a fresh cross-compiler works.
                   5036:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5037:   # <limits.h> exists even on freestanding compilers.
                   5038:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5039:   # not just through cpp. "Syntax error" is here to catch this case.
                   5040:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5041: /* end confdefs.h.  */
1.15      bertrand 5042: #ifdef __STDC__
                   5043: # include <limits.h>
                   5044: #else
                   5045: # include <assert.h>
                   5046: #endif
                   5047:             Syntax error
1.1       bertrand 5048: _ACEOF
1.15      bertrand 5049: if ac_fn_c_try_cpp "$LINENO"; then :
                   5050: 
1.1       bertrand 5051: else
1.15      bertrand 5052:   # Broken: fails on valid input.
                   5053: continue
1.1       bertrand 5054: fi
1.36      bertrand 5055: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5056: 
1.15      bertrand 5057:   # OK, works on sane cases.  Now check whether nonexistent headers
                   5058:   # can be detected and how.
                   5059:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5060: /* end confdefs.h.  */
                   5061: #include <ac_nonexistent.h>
                   5062: _ACEOF
                   5063: if ac_fn_c_try_cpp "$LINENO"; then :
                   5064:   # Broken: success on invalid input.
                   5065: continue
                   5066: else
                   5067:   # Passes both tests.
                   5068: ac_preproc_ok=:
                   5069: break
1.1       bertrand 5070: fi
1.36      bertrand 5071: rm -f conftest.err conftest.i conftest.$ac_ext
1.14      bertrand 5072: 
1.15      bertrand 5073: done
                   5074: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.36      bertrand 5075: rm -f conftest.i conftest.err conftest.$ac_ext
1.15      bertrand 5076: if $ac_preproc_ok; then :
                   5077:   break
1.1       bertrand 5078: fi
                   5079: 
1.15      bertrand 5080:     done
                   5081:     ac_cv_prog_CPP=$CPP
1.14      bertrand 5082: 
1.15      bertrand 5083: fi
                   5084:   CPP=$ac_cv_prog_CPP
1.1       bertrand 5085: else
1.15      bertrand 5086:   ac_cv_prog_CPP=$CPP
                   5087: fi
                   5088: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
                   5089: $as_echo "$CPP" >&6; }
                   5090: ac_preproc_ok=false
                   5091: for ac_c_preproc_warn_flag in '' yes
1.14      bertrand 5092: do
1.15      bertrand 5093:   # Use a header file that comes with gcc, so configuring glibc
                   5094:   # with a fresh cross-compiler works.
                   5095:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5096:   # <limits.h> exists even on freestanding compilers.
                   5097:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5098:   # not just through cpp. "Syntax error" is here to catch this case.
                   5099:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5100: /* end confdefs.h.  */
                   5101: #ifdef __STDC__
                   5102: # include <limits.h>
                   5103: #else
                   5104: # include <assert.h>
                   5105: #endif
                   5106:             Syntax error
                   5107: _ACEOF
                   5108: if ac_fn_c_try_cpp "$LINENO"; then :
1.1       bertrand 5109: 
1.15      bertrand 5110: else
                   5111:   # Broken: fails on valid input.
                   5112: continue
                   5113: fi
1.36      bertrand 5114: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5115: 
1.15      bertrand 5116:   # OK, works on sane cases.  Now check whether nonexistent headers
                   5117:   # can be detected and how.
                   5118:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5119: /* end confdefs.h.  */
                   5120: #include <ac_nonexistent.h>
                   5121: _ACEOF
                   5122: if ac_fn_c_try_cpp "$LINENO"; then :
                   5123:   # Broken: success on invalid input.
                   5124: continue
                   5125: else
                   5126:   # Passes both tests.
                   5127: ac_preproc_ok=:
                   5128: break
                   5129: fi
1.36      bertrand 5130: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5131: 
                   5132: done
1.15      bertrand 5133: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.36      bertrand 5134: rm -f conftest.i conftest.err conftest.$ac_ext
1.15      bertrand 5135: if $ac_preproc_ok; then :
1.1       bertrand 5136: 
1.15      bertrand 5137: else
                   5138:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   5139: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 5140: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
                   5141: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 5142: fi
1.14      bertrand 5143: 
1.15      bertrand 5144: ac_ext=c
                   5145: ac_cpp='$CPP $CPPFLAGS'
                   5146: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5147: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5148: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14      bertrand 5149: 
                   5150: 
1.15      bertrand 5151: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
                   5152: $as_echo_n "checking for X... " >&6; }
1.1       bertrand 5153: 
                   5154: 
1.15      bertrand 5155: # Check whether --with-x was given.
                   5156: if test "${with_x+set}" = set; then :
                   5157:   withval=$with_x;
1.1       bertrand 5158: fi
1.14      bertrand 5159: 
1.15      bertrand 5160: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
                   5161: if test "x$with_x" = xno; then
                   5162:   # The user explicitly disabled X.
                   5163:   have_x=disabled
1.1       bertrand 5164: else
1.15      bertrand 5165:   case $x_includes,$x_libraries in #(
1.36      bertrand 5166:     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
1.15      bertrand 5167:     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
                   5168:   $as_echo_n "(cached) " >&6
1.1       bertrand 5169: else
1.15      bertrand 5170:   # One or both of the vars are not set, and there is no cached value.
                   5171: ac_x_includes=no ac_x_libraries=no
                   5172: rm -f -r conftest.dir
                   5173: if mkdir conftest.dir; then
                   5174:   cd conftest.dir
                   5175:   cat >Imakefile <<'_ACEOF'
                   5176: incroot:
                   5177:    @echo incroot='${INCROOT}'
                   5178: usrlibdir:
                   5179:    @echo usrlibdir='${USRLIBDIR}'
                   5180: libdir:
                   5181:    @echo libdir='${LIBDIR}'
                   5182: _ACEOF
                   5183:   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
1.36      bertrand 5184:     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 5185:     for ac_var in incroot usrlibdir libdir; do
                   5186:       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
                   5187:     done
                   5188:     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
                   5189:     for ac_extension in a so sl dylib la dll; do
                   5190:       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
                   5191:     test -f "$ac_im_libdir/libX11.$ac_extension"; then
                   5192:    ac_im_usrlibdir=$ac_im_libdir; break
                   5193:       fi
                   5194:     done
                   5195:     # Screen out bogus values from the imake configuration.  They are
                   5196:     # bogus both because they are the default anyway, and because
                   5197:     # using them would break gcc on systems where it needs fixed includes.
                   5198:     case $ac_im_incroot in
                   5199:    /usr/include) ac_x_includes= ;;
                   5200:    *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
                   5201:     esac
                   5202:     case $ac_im_usrlibdir in
                   5203:    /usr/lib | /usr/lib64 | /lib | /lib64) ;;
                   5204:    *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
                   5205:     esac
                   5206:   fi
                   5207:   cd ..
                   5208:   rm -f -r conftest.dir
                   5209: fi
                   5210: 
                   5211: # Standard set of common directories for X headers.
                   5212: # Check X11 before X11Rn because it is often a symlink to the current release.
                   5213: ac_x_header_dirs='
                   5214: /usr/X11/include
                   5215: /usr/X11R7/include
                   5216: /usr/X11R6/include
                   5217: /usr/X11R5/include
                   5218: /usr/X11R4/include
1.1       bertrand 5219: 
1.15      bertrand 5220: /usr/include/X11
                   5221: /usr/include/X11R7
                   5222: /usr/include/X11R6
                   5223: /usr/include/X11R5
                   5224: /usr/include/X11R4
1.1       bertrand 5225: 
1.15      bertrand 5226: /usr/local/X11/include
                   5227: /usr/local/X11R7/include
                   5228: /usr/local/X11R6/include
                   5229: /usr/local/X11R5/include
                   5230: /usr/local/X11R4/include
1.1       bertrand 5231: 
1.15      bertrand 5232: /usr/local/include/X11
                   5233: /usr/local/include/X11R7
                   5234: /usr/local/include/X11R6
                   5235: /usr/local/include/X11R5
                   5236: /usr/local/include/X11R4
1.1       bertrand 5237: 
1.15      bertrand 5238: /usr/X386/include
                   5239: /usr/x386/include
                   5240: /usr/XFree86/include/X11
1.1       bertrand 5241: 
1.15      bertrand 5242: /usr/include
                   5243: /usr/local/include
                   5244: /usr/unsupported/include
                   5245: /usr/athena/include
                   5246: /usr/local/x11r5/include
                   5247: /usr/lpp/Xamples/include
1.1       bertrand 5248: 
1.15      bertrand 5249: /usr/openwin/include
                   5250: /usr/openwin/share/include'
1.1       bertrand 5251: 
1.15      bertrand 5252: if test "$ac_x_includes" = no; then
                   5253:   # Guess where to find include files, by looking for Xlib.h.
                   5254:   # First, try using that file with no special directory specified.
                   5255:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5256: /* end confdefs.h.  */
                   5257: #include <X11/Xlib.h>
                   5258: _ACEOF
                   5259: if ac_fn_c_try_cpp "$LINENO"; then :
                   5260:   # We can compile using X headers with no special include directory.
                   5261: ac_x_includes=
1.1       bertrand 5262: else
1.15      bertrand 5263:   for ac_dir in $ac_x_header_dirs; do
                   5264:   if test -r "$ac_dir/X11/Xlib.h"; then
                   5265:     ac_x_includes=$ac_dir
                   5266:     break
                   5267:   fi
                   5268: done
1.1       bertrand 5269: fi
1.36      bertrand 5270: rm -f conftest.err conftest.i conftest.$ac_ext
1.15      bertrand 5271: fi # $ac_x_includes = no
1.1       bertrand 5272: 
1.15      bertrand 5273: if test "$ac_x_libraries" = no; then
                   5274:   # Check for the libraries.
                   5275:   # See if we find them without any special options.
                   5276:   # Don't add to $LIBS permanently.
                   5277:   ac_save_LIBS=$LIBS
                   5278:   LIBS="-lX11 $LIBS"
                   5279:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5280: /* end confdefs.h.  */
1.15      bertrand 5281: #include <X11/Xlib.h>
1.14      bertrand 5282: int
                   5283: main ()
                   5284: {
1.15      bertrand 5285: XrmInitialize ()
1.14      bertrand 5286:   ;
                   5287:   return 0;
                   5288: }
1.1       bertrand 5289: _ACEOF
1.15      bertrand 5290: if ac_fn_c_try_link "$LINENO"; then :
                   5291:   LIBS=$ac_save_LIBS
                   5292: # We can link X programs with no special library path.
                   5293: ac_x_libraries=
1.1       bertrand 5294: else
1.15      bertrand 5295:   LIBS=$ac_save_LIBS
                   5296: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
                   5297: do
                   5298:   # Don't even attempt the hair of trying to link an X program!
                   5299:   for ac_extension in a so sl dylib la dll; do
                   5300:     if test -r "$ac_dir/libX11.$ac_extension"; then
                   5301:       ac_x_libraries=$ac_dir
                   5302:       break 2
                   5303:     fi
                   5304:   done
                   5305: done
                   5306: fi
                   5307: rm -f core conftest.err conftest.$ac_objext \
                   5308:     conftest$ac_exeext conftest.$ac_ext
                   5309: fi # $ac_x_libraries = no
1.1       bertrand 5310: 
1.15      bertrand 5311: case $ac_x_includes,$ac_x_libraries in #(
                   5312:   no,* | *,no | *\'*)
                   5313:     # Didn't find X, or a directory has "'" in its name.
                   5314:     ac_cv_have_x="have_x=no";; #(
                   5315:   *)
                   5316:     # Record where we found X for the cache.
                   5317:     ac_cv_have_x="have_x=yes\
                   5318:    ac_x_includes='$ac_x_includes'\
                   5319:    ac_x_libraries='$ac_x_libraries'"
                   5320: esac
1.1       bertrand 5321: fi
1.15      bertrand 5322: ;; #(
                   5323:     *) have_x=yes;;
                   5324:   esac
                   5325:   eval "$ac_cv_have_x"
                   5326: fi # $with_x != no
1.1       bertrand 5327: 
1.15      bertrand 5328: if test "$have_x" != yes; then
                   5329:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
                   5330: $as_echo "$have_x" >&6; }
                   5331:   no_x=yes
1.14      bertrand 5332: else
1.15      bertrand 5333:   # If each of the values was on the command line, it overrides each guess.
                   5334:   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
                   5335:   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
                   5336:   # Update the cache value to reflect the command line values.
                   5337:   ac_cv_have_x="have_x=yes\
                   5338:    ac_x_includes='$x_includes'\
                   5339:    ac_x_libraries='$x_libraries'"
                   5340:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
                   5341: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
1.14      bertrand 5342: fi
1.1       bertrand 5343: 
1.15      bertrand 5344: if test "$no_x" = yes; then
                   5345:   # Not all programs may use this symbol, but it does not hurt to define it.
1.1       bertrand 5346: 
1.15      bertrand 5347: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
1.14      bertrand 5348: 
1.15      bertrand 5349:   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1.1       bertrand 5350: else
1.15      bertrand 5351:   if test -n "$x_includes"; then
                   5352:     X_CFLAGS="$X_CFLAGS -I$x_includes"
                   5353:   fi
                   5354: 
                   5355:   # It would also be nice to do this for all -L options, not just this one.
                   5356:   if test -n "$x_libraries"; then
                   5357:     X_LIBS="$X_LIBS -L$x_libraries"
                   5358:     # For Solaris; some versions of Sun CC require a space after -R and
                   5359:     # others require no space.  Words are not sufficient . . . .
                   5360:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
                   5361: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
                   5362:     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
                   5363:     ac_xsave_c_werror_flag=$ac_c_werror_flag
                   5364:     ac_c_werror_flag=yes
                   5365:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5366: /* end confdefs.h.  */
1.1       bertrand 5367: 
1.15      bertrand 5368: int
                   5369: main ()
                   5370: {
1.1       bertrand 5371: 
1.15      bertrand 5372:   ;
                   5373:   return 0;
                   5374: }
                   5375: _ACEOF
                   5376: if ac_fn_c_try_link "$LINENO"; then :
                   5377:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5378: $as_echo "no" >&6; }
                   5379:        X_LIBS="$X_LIBS -R$x_libraries"
1.1       bertrand 5380: else
1.15      bertrand 5381:   LIBS="$ac_xsave_LIBS -R $x_libraries"
                   5382:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5383: /* end confdefs.h.  */
1.1       bertrand 5384: 
1.14      bertrand 5385: int
                   5386: main ()
                   5387: {
1.15      bertrand 5388: 
                   5389:   ;
1.14      bertrand 5390:   return 0;
                   5391: }
                   5392: _ACEOF
1.15      bertrand 5393: if ac_fn_c_try_link "$LINENO"; then :
                   5394:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5395: $as_echo "yes" >&6; }
                   5396:      X_LIBS="$X_LIBS -R $x_libraries"
1.14      bertrand 5397: else
1.15      bertrand 5398:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
                   5399: $as_echo "neither works" >&6; }
1.14      bertrand 5400: fi
1.15      bertrand 5401: rm -f core conftest.err conftest.$ac_objext \
                   5402:     conftest$ac_exeext conftest.$ac_ext
1.14      bertrand 5403: fi
1.15      bertrand 5404: rm -f core conftest.err conftest.$ac_objext \
                   5405:     conftest$ac_exeext conftest.$ac_ext
                   5406:     ac_c_werror_flag=$ac_xsave_c_werror_flag
                   5407:     LIBS=$ac_xsave_LIBS
                   5408:   fi
1.1       bertrand 5409: 
1.15      bertrand 5410:   # Check for system-dependent libraries X programs must link with.
                   5411:   # Do this before checking for the system-independent R6 libraries
                   5412:   # (-lICE), since we may need -lsocket or whatever for X linking.
1.1       bertrand 5413: 
1.15      bertrand 5414:   if test "$ISC" = yes; then
                   5415:     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
                   5416:   else
                   5417:     # Martyn Johnson says this is needed for Ultrix, if the X
                   5418:     # libraries were built with DECnet support.  And Karl Berry says
                   5419:     # the Alpha needs dnet_stub (dnet does not exist).
                   5420:     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
                   5421:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5422: /* end confdefs.h.  */
1.1       bertrand 5423: 
1.15      bertrand 5424: /* Override any GCC internal prototype to avoid an error.
                   5425:    Use char because int might match the return type of a GCC
                   5426:    builtin and then its argument prototype would still apply.  */
                   5427: #ifdef __cplusplus
                   5428: extern "C"
                   5429: #endif
                   5430: char XOpenDisplay ();
                   5431: int
                   5432: main ()
                   5433: {
                   5434: return XOpenDisplay ();
                   5435:   ;
                   5436:   return 0;
                   5437: }
1.1       bertrand 5438: _ACEOF
1.15      bertrand 5439: if ac_fn_c_try_link "$LINENO"; then :
1.14      bertrand 5440: 
                   5441: else
1.15      bertrand 5442:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
                   5443: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
                   5444: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
                   5445:   $as_echo_n "(cached) " >&6
                   5446: else
                   5447:   ac_check_lib_save_LIBS=$LIBS
                   5448: LIBS="-ldnet  $LIBS"
                   5449: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5450: /* end confdefs.h.  */
1.14      bertrand 5451: 
1.15      bertrand 5452: /* Override any GCC internal prototype to avoid an error.
                   5453:    Use char because int might match the return type of a GCC
                   5454:    builtin and then its argument prototype would still apply.  */
                   5455: #ifdef __cplusplus
                   5456: extern "C"
                   5457: #endif
                   5458: char dnet_ntoa ();
                   5459: int
                   5460: main ()
                   5461: {
                   5462: return dnet_ntoa ();
                   5463:   ;
                   5464:   return 0;
                   5465: }
1.1       bertrand 5466: _ACEOF
1.15      bertrand 5467: if ac_fn_c_try_link "$LINENO"; then :
                   5468:   ac_cv_lib_dnet_dnet_ntoa=yes
1.1       bertrand 5469: else
1.15      bertrand 5470:   ac_cv_lib_dnet_dnet_ntoa=no
1.14      bertrand 5471: fi
1.15      bertrand 5472: rm -f core conftest.err conftest.$ac_objext \
                   5473:     conftest$ac_exeext conftest.$ac_ext
                   5474: LIBS=$ac_check_lib_save_LIBS
1.14      bertrand 5475: fi
1.15      bertrand 5476: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
                   5477: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
                   5478: if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
                   5479:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1.14      bertrand 5480: fi
                   5481: 
1.15      bertrand 5482:     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
                   5483:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
                   5484: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
                   5485: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
                   5486:   $as_echo_n "(cached) " >&6
1.14      bertrand 5487: else
1.15      bertrand 5488:   ac_check_lib_save_LIBS=$LIBS
                   5489: LIBS="-ldnet_stub  $LIBS"
                   5490: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5491: /* end confdefs.h.  */
1.15      bertrand 5492: 
                   5493: /* Override any GCC internal prototype to avoid an error.
                   5494:    Use char because int might match the return type of a GCC
                   5495:    builtin and then its argument prototype would still apply.  */
                   5496: #ifdef __cplusplus
                   5497: extern "C"
                   5498: #endif
                   5499: char dnet_ntoa ();
1.1       bertrand 5500: int
                   5501: main ()
                   5502: {
1.15      bertrand 5503: return dnet_ntoa ();
1.1       bertrand 5504:   ;
                   5505:   return 0;
                   5506: }
                   5507: _ACEOF
1.15      bertrand 5508: if ac_fn_c_try_link "$LINENO"; then :
                   5509:   ac_cv_lib_dnet_stub_dnet_ntoa=yes
1.14      bertrand 5510: else
1.15      bertrand 5511:   ac_cv_lib_dnet_stub_dnet_ntoa=no
                   5512: fi
                   5513: rm -f core conftest.err conftest.$ac_objext \
                   5514:     conftest$ac_exeext conftest.$ac_ext
                   5515: LIBS=$ac_check_lib_save_LIBS
                   5516: fi
                   5517: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
                   5518: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
                   5519: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
                   5520:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
                   5521: fi
1.14      bertrand 5522: 
1.15      bertrand 5523:     fi
1.1       bertrand 5524: fi
1.15      bertrand 5525: rm -f core conftest.err conftest.$ac_objext \
                   5526:     conftest$ac_exeext conftest.$ac_ext
                   5527:     LIBS="$ac_xsave_LIBS"
                   5528: 
                   5529:     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
                   5530:     # to get the SysV transport functions.
                   5531:     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
                   5532:     # needs -lnsl.
                   5533:     # The nsl library prevents programs from opening the X display
                   5534:     # on Irix 5.2, according to T.E. Dickey.
                   5535:     # The functions gethostbyname, getservbyname, and inet_addr are
                   5536:     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
                   5537:     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
                   5538: if test "x$ac_cv_func_gethostbyname" = x""yes; then :
1.1       bertrand 5539: 
                   5540: fi
                   5541: 
1.15      bertrand 5542:     if test $ac_cv_func_gethostbyname = no; then
                   5543:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
                   5544: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
                   5545: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
                   5546:   $as_echo_n "(cached) " >&6
1.1       bertrand 5547: else
1.15      bertrand 5548:   ac_check_lib_save_LIBS=$LIBS
                   5549: LIBS="-lnsl  $LIBS"
                   5550: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5551: /* end confdefs.h.  */
1.15      bertrand 5552: 
                   5553: /* Override any GCC internal prototype to avoid an error.
                   5554:    Use char because int might match the return type of a GCC
                   5555:    builtin and then its argument prototype would still apply.  */
                   5556: #ifdef __cplusplus
                   5557: extern "C"
                   5558: #endif
                   5559: char gethostbyname ();
1.1       bertrand 5560: int
                   5561: main ()
                   5562: {
1.15      bertrand 5563: return gethostbyname ();
1.1       bertrand 5564:   ;
                   5565:   return 0;
                   5566: }
                   5567: _ACEOF
1.15      bertrand 5568: if ac_fn_c_try_link "$LINENO"; then :
                   5569:   ac_cv_lib_nsl_gethostbyname=yes
                   5570: else
                   5571:   ac_cv_lib_nsl_gethostbyname=no
                   5572: fi
                   5573: rm -f core conftest.err conftest.$ac_objext \
                   5574:     conftest$ac_exeext conftest.$ac_ext
                   5575: LIBS=$ac_check_lib_save_LIBS
                   5576: fi
                   5577: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
                   5578: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
                   5579: if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
                   5580:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
                   5581: fi
                   5582: 
                   5583:       if test $ac_cv_lib_nsl_gethostbyname = no; then
                   5584:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
                   5585: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
                   5586: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
                   5587:   $as_echo_n "(cached) " >&6
                   5588: else
                   5589:   ac_check_lib_save_LIBS=$LIBS
                   5590: LIBS="-lbsd  $LIBS"
                   5591: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5592: /* end confdefs.h.  */
1.15      bertrand 5593: 
                   5594: /* Override any GCC internal prototype to avoid an error.
                   5595:    Use char because int might match the return type of a GCC
                   5596:    builtin and then its argument prototype would still apply.  */
                   5597: #ifdef __cplusplus
                   5598: extern "C"
                   5599: #endif
                   5600: char gethostbyname ();
1.1       bertrand 5601: int
                   5602: main ()
                   5603: {
1.15      bertrand 5604: return gethostbyname ();
1.1       bertrand 5605:   ;
                   5606:   return 0;
                   5607: }
                   5608: _ACEOF
1.15      bertrand 5609: if ac_fn_c_try_link "$LINENO"; then :
                   5610:   ac_cv_lib_bsd_gethostbyname=yes
1.1       bertrand 5611: else
1.15      bertrand 5612:   ac_cv_lib_bsd_gethostbyname=no
                   5613: fi
                   5614: rm -f core conftest.err conftest.$ac_objext \
                   5615:     conftest$ac_exeext conftest.$ac_ext
                   5616: LIBS=$ac_check_lib_save_LIBS
                   5617: fi
                   5618: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
                   5619: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
                   5620: if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
                   5621:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
                   5622: fi
                   5623: 
                   5624:       fi
                   5625:     fi
                   5626: 
                   5627:     # lieder@skyler.mavd.honeywell.com says without -lsocket,
                   5628:     # socket/setsockopt and other routines are undefined under SCO ODT
                   5629:     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
                   5630:     # on later versions), says Simon Leinen: it contains gethostby*
                   5631:     # variants that don't use the name server (or something).  -lsocket
                   5632:     # must be given before -lnsl if both are needed.  We assume that
                   5633:     # if connect needs -lnsl, so does gethostbyname.
                   5634:     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
                   5635: if test "x$ac_cv_func_connect" = x""yes; then :
1.14      bertrand 5636: 
1.1       bertrand 5637: fi
                   5638: 
1.15      bertrand 5639:     if test $ac_cv_func_connect = no; then
                   5640:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
                   5641: $as_echo_n "checking for connect in -lsocket... " >&6; }
                   5642: if test "${ac_cv_lib_socket_connect+set}" = set; then :
                   5643:   $as_echo_n "(cached) " >&6
1.14      bertrand 5644: else
1.15      bertrand 5645:   ac_check_lib_save_LIBS=$LIBS
                   5646: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
                   5647: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5648: /* end confdefs.h.  */
1.1       bertrand 5649: 
1.15      bertrand 5650: /* Override any GCC internal prototype to avoid an error.
                   5651:    Use char because int might match the return type of a GCC
                   5652:    builtin and then its argument prototype would still apply.  */
                   5653: #ifdef __cplusplus
                   5654: extern "C"
                   5655: #endif
                   5656: char connect ();
1.14      bertrand 5657: int
                   5658: main ()
                   5659: {
1.15      bertrand 5660: return connect ();
1.14      bertrand 5661:   ;
                   5662:   return 0;
                   5663: }
                   5664: _ACEOF
1.15      bertrand 5665: if ac_fn_c_try_link "$LINENO"; then :
                   5666:   ac_cv_lib_socket_connect=yes
                   5667: else
                   5668:   ac_cv_lib_socket_connect=no
                   5669: fi
                   5670: rm -f core conftest.err conftest.$ac_objext \
                   5671:     conftest$ac_exeext conftest.$ac_ext
                   5672: LIBS=$ac_check_lib_save_LIBS
                   5673: fi
                   5674: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
                   5675: $as_echo "$ac_cv_lib_socket_connect" >&6; }
                   5676: if test "x$ac_cv_lib_socket_connect" = x""yes; then :
                   5677:   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
                   5678: fi
                   5679: 
                   5680:     fi
                   5681: 
                   5682:     # Guillermo Gomez says -lposix is necessary on A/UX.
                   5683:     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
                   5684: if test "x$ac_cv_func_remove" = x""yes; then :
                   5685: 
                   5686: fi
                   5687: 
                   5688:     if test $ac_cv_func_remove = no; then
                   5689:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
                   5690: $as_echo_n "checking for remove in -lposix... " >&6; }
                   5691: if test "${ac_cv_lib_posix_remove+set}" = set; then :
                   5692:   $as_echo_n "(cached) " >&6
                   5693: else
                   5694:   ac_check_lib_save_LIBS=$LIBS
                   5695: LIBS="-lposix  $LIBS"
                   5696: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5697: /* end confdefs.h.  */
1.15      bertrand 5698: 
                   5699: /* Override any GCC internal prototype to avoid an error.
                   5700:    Use char because int might match the return type of a GCC
                   5701:    builtin and then its argument prototype would still apply.  */
                   5702: #ifdef __cplusplus
                   5703: extern "C"
                   5704: #endif
                   5705: char remove ();
1.1       bertrand 5706: int
                   5707: main ()
                   5708: {
1.15      bertrand 5709: return remove ();
1.1       bertrand 5710:   ;
                   5711:   return 0;
                   5712: }
                   5713: _ACEOF
1.15      bertrand 5714: if ac_fn_c_try_link "$LINENO"; then :
                   5715:   ac_cv_lib_posix_remove=yes
1.14      bertrand 5716: else
1.15      bertrand 5717:   ac_cv_lib_posix_remove=no
                   5718: fi
                   5719: rm -f core conftest.err conftest.$ac_objext \
                   5720:     conftest$ac_exeext conftest.$ac_ext
                   5721: LIBS=$ac_check_lib_save_LIBS
                   5722: fi
                   5723: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
                   5724: $as_echo "$ac_cv_lib_posix_remove" >&6; }
                   5725: if test "x$ac_cv_lib_posix_remove" = x""yes; then :
                   5726:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1.14      bertrand 5727: fi
1.1       bertrand 5728: 
1.15      bertrand 5729:     fi
1.14      bertrand 5730: 
1.15      bertrand 5731:     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
                   5732:     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
                   5733: if test "x$ac_cv_func_shmat" = x""yes; then :
1.14      bertrand 5734: 
                   5735: fi
                   5736: 
1.15      bertrand 5737:     if test $ac_cv_func_shmat = no; then
                   5738:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
                   5739: $as_echo_n "checking for shmat in -lipc... " >&6; }
                   5740: if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
                   5741:   $as_echo_n "(cached) " >&6
                   5742: else
                   5743:   ac_check_lib_save_LIBS=$LIBS
                   5744: LIBS="-lipc  $LIBS"
                   5745: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5746: /* end confdefs.h.  */
1.15      bertrand 5747: 
                   5748: /* Override any GCC internal prototype to avoid an error.
                   5749:    Use char because int might match the return type of a GCC
                   5750:    builtin and then its argument prototype would still apply.  */
                   5751: #ifdef __cplusplus
                   5752: extern "C"
                   5753: #endif
                   5754: char shmat ();
1.1       bertrand 5755: int
                   5756: main ()
                   5757: {
1.15      bertrand 5758: return shmat ();
1.1       bertrand 5759:   ;
                   5760:   return 0;
                   5761: }
                   5762: _ACEOF
1.15      bertrand 5763: if ac_fn_c_try_link "$LINENO"; then :
                   5764:   ac_cv_lib_ipc_shmat=yes
1.1       bertrand 5765: else
1.15      bertrand 5766:   ac_cv_lib_ipc_shmat=no
                   5767: fi
                   5768: rm -f core conftest.err conftest.$ac_objext \
                   5769:     conftest$ac_exeext conftest.$ac_ext
                   5770: LIBS=$ac_check_lib_save_LIBS
                   5771: fi
                   5772: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
                   5773: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
                   5774: if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
                   5775:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
                   5776: fi
1.14      bertrand 5777: 
1.15      bertrand 5778:     fi
                   5779:   fi
1.1       bertrand 5780: 
1.15      bertrand 5781:   # Check for libraries that X11R6 Xt/Xaw programs need.
                   5782:   ac_save_LDFLAGS=$LDFLAGS
                   5783:   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
                   5784:   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
                   5785:   # check for ICE first), but we must link in the order -lSM -lICE or
                   5786:   # we get undefined symbols.  So assume we have SM if we have ICE.
                   5787:   # These have to be linked with before -lX11, unlike the other
                   5788:   # libraries we check for below, so use a different variable.
                   5789:   # John Interrante, Karl Berry
                   5790:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
                   5791: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
                   5792: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
                   5793:   $as_echo_n "(cached) " >&6
1.1       bertrand 5794: else
1.15      bertrand 5795:   ac_check_lib_save_LIBS=$LIBS
                   5796: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
                   5797: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5798: /* end confdefs.h.  */
1.15      bertrand 5799: 
                   5800: /* Override any GCC internal prototype to avoid an error.
                   5801:    Use char because int might match the return type of a GCC
                   5802:    builtin and then its argument prototype would still apply.  */
                   5803: #ifdef __cplusplus
                   5804: extern "C"
                   5805: #endif
                   5806: char IceConnectionNumber ();
1.1       bertrand 5807: int
                   5808: main ()
                   5809: {
1.15      bertrand 5810: return IceConnectionNumber ();
1.1       bertrand 5811:   ;
                   5812:   return 0;
                   5813: }
                   5814: _ACEOF
1.15      bertrand 5815: if ac_fn_c_try_link "$LINENO"; then :
                   5816:   ac_cv_lib_ICE_IceConnectionNumber=yes
1.1       bertrand 5817: else
1.15      bertrand 5818:   ac_cv_lib_ICE_IceConnectionNumber=no
                   5819: fi
                   5820: rm -f core conftest.err conftest.$ac_objext \
                   5821:     conftest$ac_exeext conftest.$ac_ext
                   5822: LIBS=$ac_check_lib_save_LIBS
                   5823: fi
                   5824: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
                   5825: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
                   5826: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
                   5827:   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
                   5828: fi
                   5829: 
                   5830:   LDFLAGS=$ac_save_LDFLAGS
                   5831: 
                   5832: fi
                   5833: 
1.14      bertrand 5834: 
1.15      bertrand 5835: if test "$ac_x_includes" != "no"; then
                   5836:    if test x"$ac_x_includes" != x; then
                   5837:        X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
                   5838:        includeX="-I$ac_x_includes"
                   5839:    fi
1.1       bertrand 5840: fi
1.15      bertrand 5841: if test "$ac_x_libraries" != "no"; then
                   5842:    if test x"$ac_x_libraries" != x; then
                   5843:        X_LIBS="$X_LIBS -L$ac_x_libraries"
                   5844:    fi
1.1       bertrand 5845: fi
1.15      bertrand 5846: 
                   5847: # Check whether --enable-optimization was given.
                   5848: if test "${enable_optimization+set}" = set; then :
                   5849:   enableval=$enable_optimization;
                   5850: if test "$enableval" = "no"; then
                   5851:    CFLAGS=
                   5852:    FFLAGS=
                   5853:    CXXFLAGS=
                   5854:    FCFLAGS=
                   5855: else
                   5856:    CFLAGS="$CFLAGS $enable_optimization"
                   5857:    FFLAGS="$FFLAGS $enable_optimization"
                   5858:    FCFLAGS="$FCFLAGS $enable_optimization"
1.1       bertrand 5859: fi
1.15      bertrand 5860: else
1.14      bertrand 5861: 
1.15      bertrand 5862:    CFLAGS="$CFLAGS $OPTIMISATION_C"
                   5863:    FFLAGS="$FFLAGS $OPTIMISATION_F"
                   5864:    FCFLAGS="$FCFLAGS $OPTIMISATION_F"
1.1       bertrand 5865: 
                   5866: 
1.15      bertrand 5867: fi
1.1       bertrand 5868: 
                   5869: 
1.36      bertrand 5870: # Check whether --enable-sysv-semaphores was given.
                   5871: if test "${enable_sysv_semaphores+set}" = set; then :
                   5872:   enableval=$enable_sysv_semaphores;
                   5873: if test "$enableval" = "no"; then
                   5874:    IPCS_SYSV=no
                   5875: else
                   5876:    IPCS_SYSV=yes
                   5877: fi
                   5878: else
                   5879:   IPCS_SYSV=no
                   5880: fi
                   5881: 
                   5882: 
1.30      bertrand 5883: # Check whether --enable-full-static was given.
                   5884: if test "${enable_full_static+set}" = set; then :
                   5885:   enableval=$enable_full_static;
                   5886: if test "$enableval" = "no"; then
                   5887:    STATIC=no
                   5888: else
                   5889:    STATIC=yes
                   5890: fi
                   5891: else
                   5892:   STATIC=no
                   5893: fi
                   5894: 
                   5895: 
1.15      bertrand 5896: # Check whether --enable-final-encoding was given.
                   5897: if test "${enable_final_encoding+set}" = set; then :
                   5898:   enableval=$enable_final_encoding;
                   5899: if test "$enableval" = "no"; then
                   5900:    FINAL_ENCODING="\$(shell locale charmap | \
                   5901:        \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
1.35      bertrand 5902:    FORCED_FINAL_ENCODING=0
1.1       bertrand 5903: else
1.15      bertrand 5904:    FINAL_ENCODING="$enable_final_encoding"
1.35      bertrand 5905:    FORCED_FINAL_ENCODING=1
1.15      bertrand 5906: fi
1.1       bertrand 5907: else
1.35      bertrand 5908: 
                   5909: FORCED_FINAL_ENCODING=0
                   5910: FINAL_ENCODING="\$(shell locale charmap | \
1.15      bertrand 5911:    \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
                   5912: fi
                   5913: 
1.14      bertrand 5914: 
1.15      bertrand 5915: # Check whether --enable-tex was given.
                   5916: if test "${enable_tex+set}" = set; then :
                   5917:   enableval=$enable_tex;
                   5918: if test "$enableval" = "no"; then
                   5919:    TEX_SUPPORT=no
                   5920: else
                   5921:    TEX_SUPPORT=yes
1.1       bertrand 5922: fi
1.15      bertrand 5923: else
                   5924:   TEX_SUPPORT=guessed
                   5925: fi
                   5926: 
1.14      bertrand 5927: 
1.15      bertrand 5928: # Check whether --enable-vim was given.
                   5929: if test "${enable_vim+set}" = set; then :
                   5930:   enableval=$enable_vim;
                   5931: if test "$enableval" = "no"; then
                   5932:    VIM_SUPPORT=no
                   5933: else
                   5934:    VIM_SUPPORT=yes
                   5935: fi
                   5936: else
                   5937:   VIM_SUPPORT=guessed
1.1       bertrand 5938: fi
                   5939: 
1.15      bertrand 5940: 
                   5941: # Check whether --enable-embedded-gnuplot was given.
                   5942: if test "${enable_embedded_gnuplot+set}" = set; then :
                   5943:   enableval=$enable_embedded_gnuplot;
                   5944: if test "$enableval" = "no"; then
                   5945:    MYGNUPLOT=no
                   5946: else
                   5947:    MYGNUPLOT=yes
                   5948: fi
1.1       bertrand 5949: else
                   5950: 
1.15      bertrand 5951: MYGNUPLOT=yes
                   5952: fi
                   5953: 
1.14      bertrand 5954: 
1.15      bertrand 5955: # Check whether --enable-gnuplot was given.
                   5956: if test "${enable_gnuplot+set}" = set; then :
                   5957:   enableval=$enable_gnuplot;
                   5958: if test "$enableval" = "no"; then
                   5959:    GNUPLOT_SUPPORT=no
                   5960:    MYGNUPLOT=no
                   5961:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                   5962: else
                   5963:    GNUPLOT_SUPPORT=yes
                   5964:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                   5965: fi
1.1       bertrand 5966: else
                   5967: 
1.15      bertrand 5968: if test "$MYGNUPLOT" = "yes"; then
                   5969:    GNUPLOT_SUPPORT=yes
                   5970:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                   5971: else
                   5972:    GNUPLOT_SUPPORT=guessed
                   5973:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                   5974: fi
1.1       bertrand 5975: fi
                   5976: 
1.15      bertrand 5977: 
                   5978: # Check whether --enable-motif was given.
                   5979: if test "${enable_motif+set}" = set; then :
                   5980:   enableval=$enable_motif;
                   5981: if test "$enableval" = "no"; then
                   5982:    MOTIF_SUPPORT="-UMOTIF_SUPPORT"
                   5983: else
                   5984:    CFLAGS_ORIG=$CFLAGS
                   5985:    LIBS_ORIG=$LIBS
                   5986:    CFLAGS="$CFLAGS $X_CFLAGS"
                   5987:    LIBS="$LIB $X_LIBS"
                   5988:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
                   5989: $as_echo_n "checking for main in -lXm... " >&6; }
                   5990: if test "${ac_cv_lib_Xm_main+set}" = set; then :
                   5991:   $as_echo_n "(cached) " >&6
1.1       bertrand 5992: else
1.15      bertrand 5993:   ac_check_lib_save_LIBS=$LIBS
                   5994: LIBS="-lXm  $LIBS"
                   5995: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5996: /* end confdefs.h.  */
1.14      bertrand 5997: 
                   5998: 
1.1       bertrand 5999: int
                   6000: main ()
                   6001: {
1.15      bertrand 6002: return main ();
1.1       bertrand 6003:   ;
                   6004:   return 0;
                   6005: }
                   6006: _ACEOF
1.15      bertrand 6007: if ac_fn_c_try_link "$LINENO"; then :
                   6008:   ac_cv_lib_Xm_main=yes
                   6009: else
                   6010:   ac_cv_lib_Xm_main=no
                   6011: fi
                   6012: rm -f core conftest.err conftest.$ac_objext \
                   6013:     conftest$ac_exeext conftest.$ac_ext
                   6014: LIBS=$ac_check_lib_save_LIBS
                   6015: fi
                   6016: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
                   6017: $as_echo "$ac_cv_lib_Xm_main" >&6; }
                   6018: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
                   6019:   MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.1       bertrand 6020: else
1.15      bertrand 6021:   MOTIF_SUPPORT="-UMOTIF_SUPPORT"
                   6022: fi
1.14      bertrand 6023: 
1.15      bertrand 6024:    if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
                   6025:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find Motif! You may install it.
                   6026: Motif flag is disabled.
                   6027: " >&5
                   6028: $as_echo "$as_me: WARNING: Can not find Motif! You may install it.
                   6029: Motif flag is disabled.
                   6030: " >&2;}
                   6031:    fi
                   6032:    LIBS=$LIBS_ORIG
                   6033:    CFLAGS=$CFLAGS_ORIG
                   6034: fi
                   6035: else
                   6036:   MOTIF_SUPPORT=guessed
1.1       bertrand 6037: fi
                   6038: 
1.15      bertrand 6039: 
                   6040: # Check whether --enable-experimental was given.
                   6041: if test "${enable_experimental+set}" = set; then :
                   6042:   enableval=$enable_experimental;
                   6043: if test "$enableval" = "no"; then
                   6044:    EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
                   6045: else
                   6046:    EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
                   6047: fi
1.14      bertrand 6048: else
1.15      bertrand 6049:   EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
                   6050: fi
                   6051: 
1.1       bertrand 6052: 
1.15      bertrand 6053: # Check whether --enable-debug was given.
                   6054: if test "${enable_debug+set}" = set; then :
                   6055:   enableval=$enable_debug;
                   6056: if test "$enableval" = "no"; then
1.24      bertrand 6057:    DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.15      bertrand 6058: else
1.24      bertrand 6059:    DEBUG="-DDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.15      bertrand 6060: fi
                   6061: else
1.24      bertrand 6062:   DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.14      bertrand 6063: fi
1.1       bertrand 6064: 
1.15      bertrand 6065: 
                   6066: # Check whether --enable-profile was given.
                   6067: if test "${enable_profile+set}" = set; then :
                   6068:   enableval=$enable_profile;
                   6069: if test "$enableval" = "no"; then
                   6070:    PROFILAGE=""
                   6071: else
                   6072:    PROFILAGE="-pg"
                   6073: fi
                   6074: else
                   6075:   PROFILAGE=""
1.1       bertrand 6076: fi
                   6077: 
1.14      bertrand 6078: 
                   6079: 
1.15      bertrand 6080: 
                   6081: if test ! -d tools; then
                   6082:    mkdir tools
                   6083: fi
                   6084: if test ! -d "$srcdir"/tools/$NCURSES; then
                   6085:    gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
                   6086:            (cd "$srcdir/tools" && tar -xf -)
                   6087: fi
                   6088: if test ! -d "$srcdir"/tools/$READLINE; then
                   6089:    gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
                   6090:            (cd "$srcdir/tools" && tar -xf -)
                   6091: fi
                   6092: if test ! -d "$srcdir"/tools/$UNITS; then
                   6093:    gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
                   6094:            (cd "$srcdir/tools" && tar -xf -)
                   6095: fi
                   6096: if test ! -d "$srcdir"/tools/$GSL; then
                   6097:    gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
                   6098:            (cd "$srcdir/tools" && tar -xf -)
1.33      bertrand 6099:    if test $(uname) = "OS/2"; then
                   6100:        (cd "$srcdir"/tools/$GSL; \
                   6101:                TMP=$(mktemp tmp.XXXXXXXXXX); \
                   6102:                sed -e '1,$s/\${1+"\$@"}/"\$@"/g' ltmain.sh > $TMP; \
                   6103:                \mv -f $TMP ltmain.sh)
                   6104:    fi
1.15      bertrand 6105: fi
                   6106: if test ! -d "$srcdir"/tools/$GPP; then
                   6107:    gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
                   6108:            (cd "$srcdir/tools" && tar -xf -)
                   6109: fi
                   6110: if test ! -d "$srcdir"/tools/$FILE; then
                   6111:    gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
                   6112:            (cd "$srcdir/tools" && tar -xf - )
                   6113:    (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
                   6114: fi
                   6115: if test ! -d "$srcdir"/tools/$ICONV; then
                   6116:    gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
                   6117:            (cd "$srcdir/tools" && tar -xf -)
                   6118: fi
                   6119: if test ! -d "$srcdir"/tools/$SQLITE; then
                   6120:    gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \
                   6121:            (cd "$srcdir/tools" && tar -xf -)
1.31      bertrand 6122:    (cd "$srcdir/tools"/$SQLITE && gunzip -c ../$SQLITE.diff.gz | patch -p1)
1.15      bertrand 6123: fi
                   6124: if test ! -d tools/$OPENSSL; then
                   6125:    gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \
                   6126:            (cd tools && tar -xf -)
1.1       bertrand 6127: fi
                   6128: 
                   6129: 
                   6130: 
1.15      bertrand 6131: # Check whether --enable-final-run-path was given.
                   6132: if test "${enable_final_run_path+set}" = set; then :
                   6133:   enableval=$enable_final_run_path;
                   6134:    if test "x$enable_final_run_path" = "x"; then
                   6135:        { $as_echo "$as_me:${as_lineno-$LINENO}: \"No path with --enable-final-run-path.\"" >&5
                   6136: $as_echo "$as_me: \"No path with --enable-final-run-path.\"" >&6;}
1.36      bertrand 6137:        as_fn_error $? "\"You should specify final path !\"" "$LINENO" 5
1.15      bertrand 6138:    else
                   6139:        RUNPATH="$enable_final_run_path"
                   6140:    fi
1.1       bertrand 6141: 
                   6142: else
1.15      bertrand 6143:   RUNPATH="\${prefix}"
1.1       bertrand 6144: 
                   6145: fi
                   6146: 
1.15      bertrand 6147: 
                   6148: 
                   6149: 
                   6150: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
                   6151: $as_echo_n "checking whether ln -s works... " >&6; }
                   6152: LN_S=$as_ln_s
                   6153: if test "$LN_S" = "ln -s"; then
                   6154:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6155: $as_echo "yes" >&6; }
                   6156: else
                   6157:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
                   6158: $as_echo "no, using $LN_S" >&6; }
1.1       bertrand 6159: fi
                   6160: 
1.15      bertrand 6161: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
                   6162: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
                   6163: set x ${MAKE-make}
                   6164: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.36      bertrand 6165: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
1.15      bertrand 6166:   $as_echo_n "(cached) " >&6
1.1       bertrand 6167: else
1.15      bertrand 6168:   cat >conftest.make <<\_ACEOF
                   6169: SHELL = /bin/sh
                   6170: all:
                   6171:    @echo '@@@%%%=$(MAKE)=@@@%%%'
1.14      bertrand 6172: _ACEOF
1.36      bertrand 6173: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 6174: case `${MAKE-make} -f conftest.make 2>/dev/null` in
                   6175:   *@@@%%%=?*=@@@%%%*)
                   6176:     eval ac_cv_prog_make_${ac_make}_set=yes;;
                   6177:   *)
                   6178:     eval ac_cv_prog_make_${ac_make}_set=no;;
1.14      bertrand 6179: esac
1.15      bertrand 6180: rm -f conftest.make
                   6181: fi
                   6182: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
                   6183:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6184: $as_echo "yes" >&6; }
                   6185:   SET_MAKE=
                   6186: else
                   6187:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6188: $as_echo "no" >&6; }
                   6189:   SET_MAKE="MAKE=${MAKE-make}"
                   6190: fi
1.1       bertrand 6191: 
1.15      bertrand 6192: if test -n "$ac_tool_prefix"; then
                   6193:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
                   6194: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
                   6195: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6196: $as_echo_n "checking for $ac_word... " >&6; }
                   6197: if test "${ac_cv_prog_RANLIB+set}" = set; then :
                   6198:   $as_echo_n "(cached) " >&6
                   6199: else
                   6200:   if test -n "$RANLIB"; then
                   6201:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.1       bertrand 6202: else
1.15      bertrand 6203: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6204: for as_dir in $PATH
                   6205: do
                   6206:   IFS=$as_save_IFS
                   6207:   test -z "$as_dir" && as_dir=.
                   6208:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6209:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6210:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
                   6211:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6212:     break 2
                   6213:   fi
                   6214: done
                   6215:   done
                   6216: IFS=$as_save_IFS
1.1       bertrand 6217: 
                   6218: fi
1.15      bertrand 6219: fi
                   6220: RANLIB=$ac_cv_prog_RANLIB
                   6221: if test -n "$RANLIB"; then
                   6222:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
                   6223: $as_echo "$RANLIB" >&6; }
                   6224: else
                   6225:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6226: $as_echo "no" >&6; }
                   6227: fi
                   6228: 
1.1       bertrand 6229: 
1.15      bertrand 6230: fi
                   6231: if test -z "$ac_cv_prog_RANLIB"; then
                   6232:   ac_ct_RANLIB=$RANLIB
                   6233:   # Extract the first word of "ranlib", so it can be a program name with args.
                   6234: set dummy ranlib; ac_word=$2
                   6235: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6236: $as_echo_n "checking for $ac_word... " >&6; }
                   6237: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
                   6238:   $as_echo_n "(cached) " >&6
                   6239: else
                   6240:   if test -n "$ac_ct_RANLIB"; then
                   6241:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
                   6242: else
                   6243: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6244: for as_dir in $PATH
                   6245: do
                   6246:   IFS=$as_save_IFS
                   6247:   test -z "$as_dir" && as_dir=.
                   6248:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6249:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6250:     ac_cv_prog_ac_ct_RANLIB="ranlib"
                   6251:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6252:     break 2
                   6253:   fi
                   6254: done
1.14      bertrand 6255:   done
1.15      bertrand 6256: IFS=$as_save_IFS
                   6257: 
                   6258: fi
                   6259: fi
                   6260: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
                   6261: if test -n "$ac_ct_RANLIB"; then
                   6262:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
                   6263: $as_echo "$ac_ct_RANLIB" >&6; }
                   6264: else
                   6265:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6266: $as_echo "no" >&6; }
                   6267: fi
                   6268: 
                   6269:   if test "x$ac_ct_RANLIB" = x; then
                   6270:     RANLIB=":"
                   6271:   else
                   6272:     case $cross_compiling:$ac_tool_warned in
                   6273: yes:)
                   6274: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   6275: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   6276: ac_tool_warned=yes ;;
                   6277: esac
                   6278:     RANLIB=$ac_ct_RANLIB
                   6279:   fi
1.14      bertrand 6280: else
1.15      bertrand 6281:   RANLIB="$ac_cv_prog_RANLIB"
                   6282: fi
1.1       bertrand 6283: 
                   6284: 
1.15      bertrand 6285: # Extract the first word of "nawk", so it can be a program name with args.
                   6286: set dummy nawk; ac_word=$2
                   6287: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6288: $as_echo_n "checking for $ac_word... " >&6; }
                   6289: if test "${ac_cv_prog_AWK+set}" = set; then :
                   6290:   $as_echo_n "(cached) " >&6
                   6291: else
                   6292:   if test -n "$AWK"; then
                   6293:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                   6294: else
                   6295: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6296: for as_dir in $PATH
                   6297: do
                   6298:   IFS=$as_save_IFS
                   6299:   test -z "$as_dir" && as_dir=.
                   6300:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6301:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6302:     ac_cv_prog_AWK="yes"
                   6303:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6304:     break 2
                   6305:   fi
                   6306: done
                   6307:   done
                   6308: IFS=$as_save_IFS
1.1       bertrand 6309: 
1.15      bertrand 6310:   test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
                   6311: fi
                   6312: fi
                   6313: AWK=$ac_cv_prog_AWK
                   6314: if test -n "$AWK"; then
                   6315:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   6316: $as_echo "$AWK" >&6; }
1.1       bertrand 6317: else
1.15      bertrand 6318:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6319: $as_echo "no" >&6; }
                   6320: fi
                   6321: 
1.1       bertrand 6322: 
1.15      bertrand 6323: if test "$AWK" = no; then
1.39      bertrand 6324:    # Extract the first word of "gawk", so it can be a program name with args.
                   6325: set dummy gawk; ac_word=$2
                   6326: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6327: $as_echo_n "checking for $ac_word... " >&6; }
                   6328: if test "${ac_cv_prog_AWK+set}" = set; then :
                   6329:   $as_echo_n "(cached) " >&6
                   6330: else
                   6331:   if test -n "$AWK"; then
                   6332:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                   6333: else
                   6334: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6335: for as_dir in $PATH
                   6336: do
                   6337:   IFS=$as_save_IFS
                   6338:   test -z "$as_dir" && as_dir=.
                   6339:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6340:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6341:     ac_cv_prog_AWK="yes"
                   6342:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6343:     break 2
                   6344:   fi
                   6345: done
                   6346:   done
                   6347: IFS=$as_save_IFS
                   6348: 
                   6349:   test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
                   6350: fi
                   6351: fi
                   6352: AWK=$ac_cv_prog_AWK
                   6353: if test -n "$AWK"; then
                   6354:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   6355: $as_echo "$AWK" >&6; }
                   6356: else
                   6357:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6358: $as_echo "no" >&6; }
                   6359: fi
                   6360: 
                   6361: 
                   6362:    if test "$AWK" = no; then
                   6363:        as_fn_error $? "Can not find nawk !" "$LINENO" 5
                   6364:    fi
1.1       bertrand 6365: fi
                   6366: 
1.15      bertrand 6367: # Extract the first word of "sed", so it can be a program name with args.
                   6368: set dummy sed; ac_word=$2
                   6369: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6370: $as_echo_n "checking for $ac_word... " >&6; }
                   6371: if test "${ac_cv_prog_SED+set}" = set; then :
                   6372:   $as_echo_n "(cached) " >&6
                   6373: else
                   6374:   if test -n "$SED"; then
                   6375:   ac_cv_prog_SED="$SED" # Let the user override the test.
                   6376: else
                   6377: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6378: for as_dir in $PATH
                   6379: do
                   6380:   IFS=$as_save_IFS
                   6381:   test -z "$as_dir" && as_dir=.
                   6382:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6383:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6384:     ac_cv_prog_SED="yes"
                   6385:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6386:     break 2
                   6387:   fi
                   6388: done
1.14      bertrand 6389:   done
1.15      bertrand 6390: IFS=$as_save_IFS
1.1       bertrand 6391: 
1.15      bertrand 6392:   test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
1.14      bertrand 6393: fi
1.15      bertrand 6394: fi
                   6395: SED=$ac_cv_prog_SED
                   6396: if test -n "$SED"; then
                   6397:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
                   6398: $as_echo "$SED" >&6; }
                   6399: else
                   6400:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6401: $as_echo "no" >&6; }
1.14      bertrand 6402: fi
1.1       bertrand 6403: 
                   6404: 
1.15      bertrand 6405: if test "$SED" = no; then
1.36      bertrand 6406:    as_fn_error $? "Can not find sed !" "$LINENO" 5
1.15      bertrand 6407: fi
1.14      bertrand 6408: 
1.15      bertrand 6409: if test "$TEX_SUPPORT" = guessed; then
                   6410:    POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
1.1       bertrand 6411: 
1.15      bertrand 6412:    # Extract the first word of "tex", so it can be a program name with args.
                   6413: set dummy tex; ac_word=$2
                   6414: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6415: $as_echo_n "checking for $ac_word... " >&6; }
                   6416: if test "${ac_cv_prog_TEX+set}" = set; then :
                   6417:   $as_echo_n "(cached) " >&6
1.1       bertrand 6418: else
1.15      bertrand 6419:   if test -n "$TEX"; then
                   6420:   ac_cv_prog_TEX="$TEX" # Let the user override the test.
1.1       bertrand 6421: else
1.15      bertrand 6422: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6423: for as_dir in $PATH
                   6424: do
                   6425:   IFS=$as_save_IFS
                   6426:   test -z "$as_dir" && as_dir=.
                   6427:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6428:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6429:     ac_cv_prog_TEX="yes"
                   6430:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6431:     break 2
                   6432:   fi
                   6433: done
                   6434:   done
                   6435: IFS=$as_save_IFS
1.1       bertrand 6436: 
1.15      bertrand 6437:   test -z "$ac_cv_prog_TEX" && ac_cv_prog_TEX="no"
1.1       bertrand 6438: fi
                   6439: fi
1.15      bertrand 6440: TEX=$ac_cv_prog_TEX
                   6441: if test -n "$TEX"; then
                   6442:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
                   6443: $as_echo "$TEX" >&6; }
                   6444: else
                   6445:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6446: $as_echo "no" >&6; }
1.1       bertrand 6447: fi
1.14      bertrand 6448: 
                   6449: 
1.15      bertrand 6450:    if test "$TEX" = no; then
                   6451:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find TeX! You may install it.
                   6452: Download at http://tex.loria.fr/
                   6453: " >&5
                   6454: $as_echo "$as_me: WARNING: Cannot find TeX! You may install it.
                   6455: Download at http://tex.loria.fr/
                   6456: " >&2;}
                   6457:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6458:    fi
1.14      bertrand 6459: 
1.15      bertrand 6460:    # Extract the first word of "latex", so it can be a program name with args.
                   6461: set dummy latex; ac_word=$2
                   6462: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6463: $as_echo_n "checking for $ac_word... " >&6; }
                   6464: if test "${ac_cv_prog_LATEX+set}" = set; then :
                   6465:   $as_echo_n "(cached) " >&6
1.1       bertrand 6466: else
1.15      bertrand 6467:   if test -n "$LATEX"; then
                   6468:   ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
1.1       bertrand 6469: else
1.15      bertrand 6470: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6471: for as_dir in $PATH
                   6472: do
                   6473:   IFS=$as_save_IFS
                   6474:   test -z "$as_dir" && as_dir=.
                   6475:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6476:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6477:     ac_cv_prog_LATEX="yes"
                   6478:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6479:     break 2
                   6480:   fi
                   6481: done
                   6482:   done
                   6483: IFS=$as_save_IFS
1.1       bertrand 6484: 
1.15      bertrand 6485:   test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX="no"
1.1       bertrand 6486: fi
                   6487: fi
1.15      bertrand 6488: LATEX=$ac_cv_prog_LATEX
                   6489: if test -n "$LATEX"; then
                   6490:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
                   6491: $as_echo "$LATEX" >&6; }
                   6492: else
                   6493:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6494: $as_echo "no" >&6; }
                   6495: fi
1.14      bertrand 6496: 
1.1       bertrand 6497: 
1.15      bertrand 6498:    if test "$LATEX" = no; then
                   6499:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LaTeX! You may install it.
                   6500: Download at http://tex.loria.fr/
                   6501: " >&5
                   6502: $as_echo "$as_me: WARNING: Cannot find LaTeX! You may install it.
                   6503: Download at http://tex.loria.fr/
                   6504: " >&2;}
                   6505:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6506:    fi
1.1       bertrand 6507: 
1.15      bertrand 6508:    # Extract the first word of "dvips", so it can be a program name with args.
                   6509: set dummy dvips; ac_word=$2
                   6510: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6511: $as_echo_n "checking for $ac_word... " >&6; }
                   6512: if test "${ac_cv_prog_DVIPS+set}" = set; then :
                   6513:   $as_echo_n "(cached) " >&6
                   6514: else
                   6515:   if test -n "$DVIPS"; then
                   6516:   ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
                   6517: else
                   6518: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6519: for as_dir in $PATH
                   6520: do
                   6521:   IFS=$as_save_IFS
                   6522:   test -z "$as_dir" && as_dir=.
                   6523:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6524:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6525:     ac_cv_prog_DVIPS="yes"
                   6526:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6527:     break 2
                   6528:   fi
                   6529: done
                   6530:   done
                   6531: IFS=$as_save_IFS
1.1       bertrand 6532: 
1.15      bertrand 6533:   test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
                   6534: fi
1.1       bertrand 6535: fi
1.15      bertrand 6536: DVIPS=$ac_cv_prog_DVIPS
                   6537: if test -n "$DVIPS"; then
                   6538:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
                   6539: $as_echo "$DVIPS" >&6; }
1.1       bertrand 6540: else
1.15      bertrand 6541:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6542: $as_echo "no" >&6; }
                   6543: fi
1.1       bertrand 6544: 
                   6545: 
1.15      bertrand 6546:    if test "$DVIPS" = no; then
                   6547:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dvips! You may install it.
                   6548: Download at http://tex.loria.fr/
                   6549: " >&5
                   6550: $as_echo "$as_me: WARNING: Cannot find dvips! You may install it.
                   6551: Download at http://tex.loria.fr/
                   6552: " >&2;}
                   6553:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6554:    fi
1.1       bertrand 6555: 
1.15      bertrand 6556:    # Extract the first word of "gs", so it can be a program name with args.
                   6557: set dummy gs; ac_word=$2
                   6558: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6559: $as_echo_n "checking for $ac_word... " >&6; }
                   6560: if test "${ac_cv_prog_GS+set}" = set; then :
                   6561:   $as_echo_n "(cached) " >&6
                   6562: else
                   6563:   if test -n "$GS"; then
                   6564:   ac_cv_prog_GS="$GS" # Let the user override the test.
1.1       bertrand 6565: else
1.15      bertrand 6566: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6567: for as_dir in $PATH
                   6568: do
                   6569:   IFS=$as_save_IFS
                   6570:   test -z "$as_dir" && as_dir=.
                   6571:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6572:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6573:     ac_cv_prog_GS="yes"
                   6574:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6575:     break 2
                   6576:   fi
                   6577: done
                   6578:   done
                   6579: IFS=$as_save_IFS
1.1       bertrand 6580: 
1.15      bertrand 6581:   test -z "$ac_cv_prog_GS" && ac_cv_prog_GS="no"
                   6582: fi
                   6583: fi
                   6584: GS=$ac_cv_prog_GS
                   6585: if test -n "$GS"; then
                   6586:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
                   6587: $as_echo "$GS" >&6; }
                   6588: else
                   6589:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6590: $as_echo "no" >&6; }
1.1       bertrand 6591: fi
                   6592: 
1.15      bertrand 6593: 
                   6594:    if test "$GS" = no; then
                   6595:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gs! You may install it.
                   6596: Download at http://ftp.lip6.fr/
                   6597: " >&5
                   6598: $as_echo "$as_me: WARNING: Cannot find gs! You may install it.
                   6599: Download at http://ftp.lip6.fr/
                   6600: " >&2;}
                   6601:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6602:    fi
                   6603: 
                   6604:    # Extract the first word of "gv", so it can be a program name with args.
                   6605: set dummy gv; ac_word=$2
                   6606: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6607: $as_echo_n "checking for $ac_word... " >&6; }
                   6608: if test "${ac_cv_prog_GV+set}" = set; then :
                   6609:   $as_echo_n "(cached) " >&6
                   6610: else
                   6611:   if test -n "$GV"; then
                   6612:   ac_cv_prog_GV="$GV" # Let the user override the test.
                   6613: else
                   6614: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6615: for as_dir in $PATH
                   6616: do
                   6617:   IFS=$as_save_IFS
                   6618:   test -z "$as_dir" && as_dir=.
                   6619:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6620:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6621:     ac_cv_prog_GV="yes"
                   6622:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6623:     break 2
                   6624:   fi
                   6625: done
1.14      bertrand 6626:   done
1.15      bertrand 6627: IFS=$as_save_IFS
1.1       bertrand 6628: 
1.15      bertrand 6629:   test -z "$ac_cv_prog_GV" && ac_cv_prog_GV="no"
                   6630: fi
1.1       bertrand 6631: fi
1.15      bertrand 6632: GV=$ac_cv_prog_GV
                   6633: if test -n "$GV"; then
                   6634:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
                   6635: $as_echo "$GV" >&6; }
                   6636: else
                   6637:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6638: $as_echo "no" >&6; }
1.1       bertrand 6639: fi
1.14      bertrand 6640: 
                   6641: 
1.15      bertrand 6642:    if test "$GV" = no; then
                   6643:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gv! You may install it.
                   6644: Download at http://ftp.lip6.fr/
                   6645: " >&5
                   6646: $as_echo "$as_me: WARNING: Cannot find gv! You may install it.
                   6647: Download at http://ftp.lip6.fr/
                   6648: " >&2;}
                   6649:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6650:    fi
1.1       bertrand 6651: else
1.15      bertrand 6652:    if test "$TEX_SUPPORT" = no; then
                   6653:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6654:    else
                   6655:        POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
                   6656:    fi
1.1       bertrand 6657: fi
                   6658: 
1.15      bertrand 6659: if test "$GNUPLOT_SUPPORT" = guessed; then
                   6660:    # Extract the first word of "gnuplot", so it can be a program name with args.
                   6661: set dummy gnuplot; ac_word=$2
                   6662: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6663: $as_echo_n "checking for $ac_word... " >&6; }
                   6664: if test "${ac_cv_prog_GNUPLOT_P+set}" = set; then :
                   6665:   $as_echo_n "(cached) " >&6
1.14      bertrand 6666: else
1.15      bertrand 6667:   if test -n "$GNUPLOT_P"; then
                   6668:   ac_cv_prog_GNUPLOT_P="$GNUPLOT_P" # Let the user override the test.
1.1       bertrand 6669: else
1.15      bertrand 6670: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6671: for as_dir in $PATH
                   6672: do
                   6673:   IFS=$as_save_IFS
                   6674:   test -z "$as_dir" && as_dir=.
                   6675:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6676:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6677:     ac_cv_prog_GNUPLOT_P="yes"
                   6678:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6679:     break 2
                   6680:   fi
                   6681: done
                   6682:   done
                   6683: IFS=$as_save_IFS
1.1       bertrand 6684: 
1.15      bertrand 6685:   test -z "$ac_cv_prog_GNUPLOT_P" && ac_cv_prog_GNUPLOT_P="no"
1.1       bertrand 6686: fi
                   6687: fi
1.15      bertrand 6688: GNUPLOT_P=$ac_cv_prog_GNUPLOT_P
                   6689: if test -n "$GNUPLOT_P"; then
                   6690:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT_P" >&5
                   6691: $as_echo "$GNUPLOT_P" >&6; }
                   6692: else
                   6693:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6694: $as_echo "no" >&6; }
1.1       bertrand 6695: fi
                   6696: 
                   6697: 
1.15      bertrand 6698:    if test "$GNUPLOT_P" = no; then
                   6699:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gnuplot! You may install it.
                   6700: Download at http://www.gnuplot.vt.edu/
                   6701: " >&5
                   6702: $as_echo "$as_me: WARNING: Cannot find gnuplot! You may install it.
                   6703: Download at http://www.gnuplot.vt.edu/
                   6704: " >&2;}
                   6705:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                   6706:    else
                   6707:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                   6708:    fi
                   6709: else
                   6710:    if test "$GNUPLOT_SUPPORT" = no; then
                   6711:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                   6712:    else
                   6713:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                   6714:    fi
                   6715: fi
1.1       bertrand 6716: 
1.15      bertrand 6717: if test "$VIM_SUPPORT" = guessed; then
                   6718:    # Extract the first word of "vim", so it can be a program name with args.
                   6719: set dummy vim; ac_word=$2
                   6720: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6721: $as_echo_n "checking for $ac_word... " >&6; }
                   6722: if test "${ac_cv_prog_VIM+set}" = set; then :
                   6723:   $as_echo_n "(cached) " >&6
1.1       bertrand 6724: else
1.15      bertrand 6725:   if test -n "$VIM"; then
                   6726:   ac_cv_prog_VIM="$VIM" # Let the user override the test.
1.1       bertrand 6727: else
1.15      bertrand 6728: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6729: for as_dir in $PATH
                   6730: do
                   6731:   IFS=$as_save_IFS
                   6732:   test -z "$as_dir" && as_dir=.
                   6733:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6734:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6735:     ac_cv_prog_VIM="yes"
                   6736:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6737:     break 2
                   6738:   fi
                   6739: done
                   6740:   done
                   6741: IFS=$as_save_IFS
1.1       bertrand 6742: 
1.15      bertrand 6743:   test -z "$ac_cv_prog_VIM" && ac_cv_prog_VIM="no"
1.1       bertrand 6744: fi
                   6745: fi
1.15      bertrand 6746: VIM=$ac_cv_prog_VIM
                   6747: if test -n "$VIM"; then
                   6748:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIM" >&5
                   6749: $as_echo "$VIM" >&6; }
1.1       bertrand 6750: else
1.15      bertrand 6751:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6752: $as_echo "no" >&6; }
                   6753: fi
1.1       bertrand 6754: 
                   6755: 
1.15      bertrand 6756:    if test "$VIM" = no; then
                   6757:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find vim! You may install it.
                   6758: Download at http://www.vim.org/
                   6759: " >&5
                   6760: $as_echo "$as_me: WARNING: Cannot find vim! You may install it.
                   6761: Download at http://www.vim.org/
                   6762: " >&2;}
                   6763:        VIM_SUPPORT="-UVIM_SUPPORT"
                   6764:    else
                   6765:        VIM_SUPPORT="-DVIM_SUPPORT"
                   6766:    fi
1.1       bertrand 6767: else
1.15      bertrand 6768:    if test "$VIM_SUPPORT" = no; then
                   6769:        VIM_SUPPORT="-UVIM_SUPPORT"
                   6770:    else
                   6771:        VIM_SUPPORT="-DVIM_SUPPORT"
                   6772:    fi
1.1       bertrand 6773: fi
                   6774: 
1.15      bertrand 6775: if test "$MOTIF_SUPPORT" = guessed; then
                   6776:    CFLAGS_ORIG=$CFLAGS
                   6777:    LIBS_ORIG=$LIBS
                   6778:    CFLAGS="$CFLAGS $X_CFLAGS"
                   6779:    LIBS="$LIB $X_LIBS"
                   6780:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
                   6781: $as_echo_n "checking for main in -lXm... " >&6; }
                   6782: if test "${ac_cv_lib_Xm_main+set}" = set; then :
                   6783:   $as_echo_n "(cached) " >&6
1.1       bertrand 6784: else
1.15      bertrand 6785:   ac_check_lib_save_LIBS=$LIBS
                   6786: LIBS="-lXm  $LIBS"
                   6787: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6788: /* end confdefs.h.  */
1.1       bertrand 6789: 
                   6790: 
1.14      bertrand 6791: int
                   6792: main ()
                   6793: {
1.15      bertrand 6794: return main ();
1.14      bertrand 6795:   ;
                   6796:   return 0;
                   6797: }
                   6798: _ACEOF
1.15      bertrand 6799: if ac_fn_c_try_link "$LINENO"; then :
                   6800:   ac_cv_lib_Xm_main=yes
1.1       bertrand 6801: else
1.15      bertrand 6802:   ac_cv_lib_Xm_main=no
                   6803: fi
                   6804: rm -f core conftest.err conftest.$ac_objext \
                   6805:     conftest$ac_exeext conftest.$ac_ext
                   6806: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 6807: fi
1.15      bertrand 6808: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
                   6809: $as_echo "$ac_cv_lib_Xm_main" >&6; }
                   6810: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
                   6811:   MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.1       bertrand 6812: else
1.15      bertrand 6813:   MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.1       bertrand 6814: fi
1.14      bertrand 6815: 
1.15      bertrand 6816:    if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
                   6817:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find Motif! You may install it.
                   6818: Motif flag is disabled.
                   6819: " >&5
                   6820: $as_echo "$as_me: WARNING: Cannot find Motif! You may install it.
                   6821: Motif flag is disabled.
                   6822: " >&2;}
                   6823:    fi
                   6824:    LIBS=$LIBS_ORIG
                   6825:    CFLAGS=$CFLAGS_ORIG
1.1       bertrand 6826: fi
                   6827: 
1.15      bertrand 6828: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
                   6829:    CFLAGS_ORIG=$CFLAGS
                   6830:    LIBS_ORIG=$LIBS
                   6831:    CFLAGS="$CFLAGS $X_CFLAGS"
                   6832:    LIBS="$LIB $X_LIBS"
                   6833:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXpm" >&5
                   6834: $as_echo_n "checking for main in -lXpm... " >&6; }
                   6835: if test "${ac_cv_lib_Xpm_main+set}" = set; then :
                   6836:   $as_echo_n "(cached) " >&6
                   6837: else
                   6838:   ac_check_lib_save_LIBS=$LIBS
                   6839: LIBS="-lXpm  $LIBS"
                   6840: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 6841: /* end confdefs.h.  */
                   6842: 
1.1       bertrand 6843: 
                   6844: int
                   6845: main ()
                   6846: {
1.15      bertrand 6847: return main ();
1.1       bertrand 6848:   ;
                   6849:   return 0;
                   6850: }
                   6851: _ACEOF
1.15      bertrand 6852: if ac_fn_c_try_link "$LINENO"; then :
                   6853:   ac_cv_lib_Xpm_main=yes
1.1       bertrand 6854: else
1.15      bertrand 6855:   ac_cv_lib_Xpm_main=no
                   6856: fi
                   6857: rm -f core conftest.err conftest.$ac_objext \
                   6858:     conftest$ac_exeext conftest.$ac_ext
                   6859: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 6860: fi
1.15      bertrand 6861: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_main" >&5
                   6862: $as_echo "$ac_cv_lib_Xpm_main" >&6; }
                   6863: if test "x$ac_cv_lib_Xpm_main" = x""yes; then :
                   6864:   MOTIF_SUPPORT="-DMOTIF_SUPPORT"
                   6865: else
                   6866:   MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.1       bertrand 6867: fi
1.15      bertrand 6868: 
                   6869:    if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
                   6870:        libX="$X_LIBS -lXm -lXpm -lXt -lX11"
                   6871:    else
                   6872:        libX=""
                   6873:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libXpm! You may install it.
                   6874: Motif flag is disabled.
                   6875: " >&5
                   6876: $as_echo "$as_me: WARNING: Cannot find libXpm! You may install it.
                   6877: Motif flag is disabled.
                   6878: " >&2;}
                   6879:    fi
                   6880:    LIBS=$LIBS_ORIG
                   6881:    CFLAGS=$CFLAGS_ORIG
                   6882: else
                   6883:    libX=""
1.1       bertrand 6884: fi
1.14      bertrand 6885: 
                   6886: 
                   6887: 
1.1       bertrand 6888: 
                   6889: 
1.15      bertrand 6890: 
                   6891: 
                   6892: 
                   6893: 
                   6894: 
                   6895: 
                   6896: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
                   6897: 
                   6898: 
                   6899: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
                   6900: $as_echo_n "checking for main in -lm... " >&6; }
                   6901: if test "${ac_cv_lib_m_main+set}" = set; then :
                   6902:   $as_echo_n "(cached) " >&6
1.1       bertrand 6903: else
1.15      bertrand 6904:   ac_check_lib_save_LIBS=$LIBS
                   6905: LIBS="-lm  $LIBS"
                   6906: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 6907: /* end confdefs.h.  */
1.15      bertrand 6908: 
                   6909: 
1.1       bertrand 6910: int
                   6911: main ()
                   6912: {
1.15      bertrand 6913: return main ();
1.1       bertrand 6914:   ;
                   6915:   return 0;
                   6916: }
                   6917: _ACEOF
1.15      bertrand 6918: if ac_fn_c_try_link "$LINENO"; then :
                   6919:   ac_cv_lib_m_main=yes
1.1       bertrand 6920: else
1.15      bertrand 6921:   ac_cv_lib_m_main=no
                   6922: fi
                   6923: rm -f core conftest.err conftest.$ac_objext \
                   6924:     conftest$ac_exeext conftest.$ac_ext
                   6925: LIBS=$ac_check_lib_save_LIBS
                   6926: fi
                   6927: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
                   6928: $as_echo "$ac_cv_lib_m_main" >&6; }
                   6929: if test "x$ac_cv_lib_m_main" = x""yes; then :
                   6930:   cat >>confdefs.h <<_ACEOF
                   6931: #define HAVE_LIBM 1
                   6932: _ACEOF
1.14      bertrand 6933: 
1.15      bertrand 6934:   LIBS="-lm $LIBS"
1.1       bertrand 6935: 
1.15      bertrand 6936: else
1.36      bertrand 6937:   as_fn_error $? "Can not find libm !" "$LINENO" 5
1.1       bertrand 6938: fi
                   6939: 
1.15      bertrand 6940: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
                   6941: $as_echo_n "checking for main in -lpthread... " >&6; }
                   6942: if test "${ac_cv_lib_pthread_main+set}" = set; then :
                   6943:   $as_echo_n "(cached) " >&6
1.1       bertrand 6944: else
1.15      bertrand 6945:   ac_check_lib_save_LIBS=$LIBS
                   6946: LIBS="-lpthread  $LIBS"
                   6947: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 6948: /* end confdefs.h.  */
1.15      bertrand 6949: 
                   6950: 
1.14      bertrand 6951: int
                   6952: main ()
                   6953: {
1.15      bertrand 6954: return main ();
1.14      bertrand 6955:   ;
                   6956:   return 0;
                   6957: }
                   6958: _ACEOF
1.15      bertrand 6959: if ac_fn_c_try_link "$LINENO"; then :
                   6960:   ac_cv_lib_pthread_main=yes
                   6961: else
                   6962:   ac_cv_lib_pthread_main=no
                   6963: fi
                   6964: rm -f core conftest.err conftest.$ac_objext \
                   6965:     conftest$ac_exeext conftest.$ac_ext
                   6966: LIBS=$ac_check_lib_save_LIBS
                   6967: fi
                   6968: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
                   6969: $as_echo "$ac_cv_lib_pthread_main" >&6; }
                   6970: if test "x$ac_cv_lib_pthread_main" = x""yes; then :
                   6971:   cat >>confdefs.h <<_ACEOF
                   6972: #define HAVE_LIBPTHREAD 1
1.14      bertrand 6973: _ACEOF
                   6974: 
1.15      bertrand 6975:   LIBS="-lpthread $LIBS"
                   6976: 
1.1       bertrand 6977: else
1.36      bertrand 6978:   as_fn_error $? "Can not find libpthread !" "$LINENO" 5
1.15      bertrand 6979: fi
1.14      bertrand 6980: 
1.1       bertrand 6981: 
1.33      bertrand 6982: ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "
                   6983: #include <sys/sem.h>
                   6984: 
                   6985: "
                   6986: if test "x$ac_cv_type_union_semun" = x""yes; then :
                   6987:   SEMUN=-DUNION_SEMUN
                   6988: else
                   6989:   SEMUN=-UUNION_SEMUN
                   6990: fi
                   6991: 
                   6992: 
1.34      bertrand 6993: ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
1.35      bertrand 6994: #include <sys/types.h>
1.34      bertrand 6995: #include <netinet/in.h>
                   6996: 
                   6997: "
                   6998: if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then :
                   6999:   IPV6=-DIPV6
                   7000: else
                   7001:   IPV6=-UIPV6
                   7002: fi
                   7003: 
                   7004: 
1.15      bertrand 7005: if test "$CYGWIN" != yes; then
                   7006:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
                   7007: $as_echo_n "checking for dlopen in -ldl... " >&6; }
                   7008: if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
                   7009:   $as_echo_n "(cached) " >&6
1.1       bertrand 7010: else
1.15      bertrand 7011:   ac_check_lib_save_LIBS=$LIBS
                   7012: LIBS="-ldl  $LIBS"
                   7013: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7014: /* end confdefs.h.  */
                   7015: 
1.15      bertrand 7016: /* Override any GCC internal prototype to avoid an error.
                   7017:    Use char because int might match the return type of a GCC
                   7018:    builtin and then its argument prototype would still apply.  */
                   7019: #ifdef __cplusplus
                   7020: extern "C"
                   7021: #endif
                   7022: char dlopen ();
1.1       bertrand 7023: int
                   7024: main ()
                   7025: {
1.15      bertrand 7026: return dlopen ();
1.1       bertrand 7027:   ;
                   7028:   return 0;
                   7029: }
                   7030: _ACEOF
1.15      bertrand 7031: if ac_fn_c_try_link "$LINENO"; then :
                   7032:   ac_cv_lib_dl_dlopen=yes
1.1       bertrand 7033: else
1.15      bertrand 7034:   ac_cv_lib_dl_dlopen=no
                   7035: fi
                   7036: rm -f core conftest.err conftest.$ac_objext \
                   7037:     conftest$ac_exeext conftest.$ac_ext
                   7038: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 7039: fi
1.15      bertrand 7040: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
                   7041: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
                   7042: if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
                   7043:   LIBS="$LIBS -ldl"
1.14      bertrand 7044: else
1.15      bertrand 7045:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdl doesn't seem to be needed on this system." >&5
                   7046: $as_echo "$as_me: WARNING: libdl doesn't seem to be needed on this system." >&2;}
1.1       bertrand 7047: fi
                   7048: 
1.14      bertrand 7049: fi
1.1       bertrand 7050: 
1.15      bertrand 7051: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
                   7052: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
                   7053: if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
                   7054:   $as_echo_n "(cached) " >&6
                   7055: else
                   7056:   ac_check_lib_save_LIBS=$LIBS
                   7057: LIBS="-lrt  $LIBS"
                   7058: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7059: /* end confdefs.h.  */
1.15      bertrand 7060: 
                   7061: /* Override any GCC internal prototype to avoid an error.
                   7062:    Use char because int might match the return type of a GCC
                   7063:    builtin and then its argument prototype would still apply.  */
                   7064: #ifdef __cplusplus
                   7065: extern "C"
                   7066: #endif
                   7067: char nanosleep ();
1.1       bertrand 7068: int
                   7069: main ()
                   7070: {
1.15      bertrand 7071: return nanosleep ();
1.1       bertrand 7072:   ;
                   7073:   return 0;
                   7074: }
                   7075: _ACEOF
1.15      bertrand 7076: if ac_fn_c_try_link "$LINENO"; then :
                   7077:   ac_cv_lib_rt_nanosleep=yes
                   7078: else
                   7079:   ac_cv_lib_rt_nanosleep=no
                   7080: fi
                   7081: rm -f core conftest.err conftest.$ac_objext \
                   7082:     conftest$ac_exeext conftest.$ac_ext
                   7083: LIBS=$ac_check_lib_save_LIBS
                   7084: fi
                   7085: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
                   7086: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
                   7087: if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
                   7088:   LIBS="$LIBS -lrt"
1.1       bertrand 7089: else
1.15      bertrand 7090:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt doesn't seem to be needed on this system." >&5
                   7091: $as_echo "$as_me: WARNING: librt doesn't seem to be needed on this system." >&2;}
                   7092: fi
1.1       bertrand 7093: 
                   7094: 
1.15      bertrand 7095: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
                   7096: $as_echo_n "checking for bind in -lsocket... " >&6; }
                   7097: if test "${ac_cv_lib_socket_bind+set}" = set; then :
                   7098:   $as_echo_n "(cached) " >&6
1.1       bertrand 7099: else
1.15      bertrand 7100:   ac_check_lib_save_LIBS=$LIBS
                   7101: LIBS="-lsocket  $LIBS"
                   7102: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7103: /* end confdefs.h.  */
1.15      bertrand 7104: 
                   7105: /* Override any GCC internal prototype to avoid an error.
                   7106:    Use char because int might match the return type of a GCC
                   7107:    builtin and then its argument prototype would still apply.  */
                   7108: #ifdef __cplusplus
                   7109: extern "C"
                   7110: #endif
                   7111: char bind ();
1.1       bertrand 7112: int
                   7113: main ()
                   7114: {
1.15      bertrand 7115: return bind ();
1.1       bertrand 7116:   ;
                   7117:   return 0;
                   7118: }
                   7119: _ACEOF
1.15      bertrand 7120: if ac_fn_c_try_link "$LINENO"; then :
                   7121:   ac_cv_lib_socket_bind=yes
1.1       bertrand 7122: else
1.15      bertrand 7123:   ac_cv_lib_socket_bind=no
1.1       bertrand 7124: fi
1.15      bertrand 7125: rm -f core conftest.err conftest.$ac_objext \
                   7126:     conftest$ac_exeext conftest.$ac_ext
                   7127: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 7128: fi
1.15      bertrand 7129: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
                   7130: $as_echo "$ac_cv_lib_socket_bind" >&6; }
                   7131: if test "x$ac_cv_lib_socket_bind" = x""yes; then :
                   7132:   LIBS="$LIBS -lsocket"
                   7133: else
                   7134:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsocket doesn't seem to be needed on this system." >&5
                   7135: $as_echo "$as_me: WARNING: libsocket doesn't seem to be needed on this system." >&2;}
1.1       bertrand 7136: fi
                   7137: 
                   7138: 
1.15      bertrand 7139: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7140: 
                   7141: # Check whether --with-mysql was given.
                   7142: if test "${with_mysql+set}" = set; then :
                   7143:   withval=$with_mysql;
                   7144: else
                   7145:   with_mysql=check
                   7146: fi
1.14      bertrand 7147: 
                   7148: 
1.15      bertrand 7149: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
                   7150:    libMySQLinc="-I/usr/include"
1.30      bertrand 7151:    libMySQLlib="/usr/lib"
1.14      bertrand 7152: 
1.15      bertrand 7153:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include" >&5
                   7154: $as_echo_n "checking for libmysql includes in /usr/include... " >&6; }
                   7155:    saved_CFLAGS="$CFLAGS"
1.30      bertrand 7156:    CFLAGS="$CFLAGS -L/$libMySQLinc"
1.15      bertrand 7157:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7158: /* end confdefs.h.  */
1.15      bertrand 7159: #include "mysql.h"
1.1       bertrand 7160: int
                   7161: main ()
                   7162: {
1.15      bertrand 7163: 
1.1       bertrand 7164:   ;
                   7165:   return 0;
                   7166: }
                   7167: _ACEOF
1.15      bertrand 7168: if ac_fn_c_try_compile "$LINENO"; then :
                   7169:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7170: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7171:                    libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7172: else
1.15      bertrand 7173:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7174: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1       bertrand 7175: fi
1.14      bertrand 7176: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7177:    CFLAGS=$saved_CFLAGS
1.1       bertrand 7178: 
1.15      bertrand 7179:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7180:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include/mysql" >&5
                   7181: $as_echo_n "checking for libmysql includes in /usr/include/mysql... " >&6; }
                   7182:        saved_CFLAGS="$CFLAGS"
                   7183:        CFLAGS="$CFLAGS $libMySQLinc/mysql"
                   7184:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7185: /* end confdefs.h.  */
1.15      bertrand 7186: #include "mysql.h"
1.1       bertrand 7187: int
                   7188: main ()
                   7189: {
                   7190: 
                   7191:   ;
                   7192:   return 0;
                   7193: }
                   7194: _ACEOF
1.15      bertrand 7195: if ac_fn_c_try_compile "$LINENO"; then :
                   7196:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7197: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7198:                        libMySQLinc=$libMySQLinc
                   7199: else
                   7200:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7201: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7202: fi
                   7203: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7204:        CFLAGS=$saved_CFLAGS
                   7205:        libMySQLinc=$libMySQLinc/mysql
                   7206:    fi
                   7207: 
                   7208:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7209:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include" >&5
                   7210: $as_echo_n "checking for libmysql includes in /usr/local/include... " >&6; }
                   7211:        saved_CFLAGS="$CFLAGS"
                   7212:        CFLAGS="$CFLAGS $libMySQLinc/../local/include"
                   7213:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7214: /* end confdefs.h.  */
1.15      bertrand 7215: #include "mysql.h"
1.1       bertrand 7216: int
                   7217: main ()
                   7218: {
                   7219: 
                   7220:   ;
                   7221:   return 0;
                   7222: }
                   7223: _ACEOF
1.15      bertrand 7224: if ac_fn_c_try_compile "$LINENO"; then :
                   7225:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7226: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7227:                        libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7228: else
1.15      bertrand 7229:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7230: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1       bertrand 7231: fi
                   7232: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7233:        CFLAGS=$saved_CFLAGS
                   7234:        libMySQLinc=$libMySQLinc/../local/include
                   7235:        libMySQLlib=$libMySQLlib/../local/lib
                   7236:    fi
1.1       bertrand 7237: 
1.15      bertrand 7238:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7239:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include/mysql" >&5
                   7240: $as_echo_n "checking for libmysql includes in /usr/local/include/mysql... " >&6; }
                   7241:        saved_CFLAGS="$CFLAGS"
                   7242:        CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
                   7243:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7244: /* end confdefs.h.  */
1.15      bertrand 7245: #include "mysql.h"
1.1       bertrand 7246: int
                   7247: main ()
                   7248: {
                   7249: 
                   7250:   ;
                   7251:   return 0;
                   7252: }
                   7253: _ACEOF
1.15      bertrand 7254: if ac_fn_c_try_compile "$LINENO"; then :
                   7255:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7256: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7257:                        libMySQLinc=$libMySQLinc/mysql
                   7258: else
                   7259:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7260: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7261: fi
                   7262: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7263:        CFLAGS=$saved_CFLAGS
                   7264:        libMySQLinc=$libMySQLinc/../local/include/mysql
                   7265:        libMySQLlib=$libMySQLlib/../local/lib
                   7266:    fi
                   7267: else
                   7268:    if test "x$with_mysql" != xno; then
                   7269:        libMySQLinc="-I$with_mysql/include"
1.30      bertrand 7270:        libMySQLlib="$with_mysql/lib"
1.15      bertrand 7271: 
                   7272:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql" >&5
                   7273: $as_echo_n "checking for libmysql includes in $with_mysql... " >&6; }
                   7274:        saved_CFLAGS="$CFLAGS"
                   7275:        CFLAGS="$CFLAGS $libMySQLinc"
                   7276:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7277: /* end confdefs.h.  */
1.15      bertrand 7278: #include "mysql.h"
1.1       bertrand 7279: int
                   7280: main ()
                   7281: {
                   7282: 
                   7283:   ;
                   7284:   return 0;
                   7285: }
                   7286: _ACEOF
1.15      bertrand 7287: if ac_fn_c_try_compile "$LINENO"; then :
                   7288:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7289: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7290:                        libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7291: else
1.15      bertrand 7292:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7293: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.14      bertrand 7294: fi
                   7295: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7296:        CFLAGS=$saved_CFLAGS
1.1       bertrand 7297: 
1.15      bertrand 7298:        if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7299:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql/mysql" >&5
                   7300: $as_echo_n "checking for libmysql includes in $with_mysql/mysql... " >&6; }
                   7301:            saved_CFLAGS="$CFLAGS"
                   7302:            CFLAGS="$CFLAGS $libMySQLinc/mysql"
                   7303:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7304: /* end confdefs.h.  */
1.15      bertrand 7305: #include "mysql.h"
1.1       bertrand 7306: int
                   7307: main ()
                   7308: {
                   7309: 
                   7310:   ;
                   7311:   return 0;
                   7312: }
                   7313: _ACEOF
1.15      bertrand 7314: if ac_fn_c_try_compile "$LINENO"; then :
                   7315:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7316: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7317:                            libMySQLinc=$libMySQLinc
1.1       bertrand 7318: else
1.15      bertrand 7319:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7320: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7321: fi
                   7322: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7323:            CFLAGS=$saved_CFLAGS
                   7324:            libMySQLinc=$libMySQLinc/mysql
                   7325:        fi
                   7326:    else
                   7327:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7328:    fi
                   7329: fi
1.14      bertrand 7330: 
1.15      bertrand 7331: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
                   7332:    MYSQL_LIB=no
1.14      bertrand 7333: 
1.15      bertrand 7334:    if test $MYSQL_LIB = no; then
                   7335:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql libraries in $libMySQLlib" >&5
                   7336: $as_echo_n "checking for libmysql libraries in $libMySQLlib... " >&6; }
                   7337:        saved_LIBS="$LIBS"
1.30      bertrand 7338:        if test $STATIC = no; then
                   7339:            LIBS="$LIBS -L/$libMySQLlib -lmysqlclient_r $libMySQLinc"
                   7340:        else
                   7341:            LIBS="$LIBS $libMySQLlib/libmysqlclient_r.a -lz $libMySQLinc"
                   7342:        fi
1.15      bertrand 7343:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7344: /* end confdefs.h.  */
1.15      bertrand 7345: #include "mysql.h"
1.1       bertrand 7346: int
                   7347: main ()
                   7348: {
1.15      bertrand 7349: MYSQL mysql; mysql_init(&mysql);
1.1       bertrand 7350:   ;
                   7351:   return 0;
                   7352: }
                   7353: _ACEOF
1.15      bertrand 7354: if ac_fn_c_try_link "$LINENO"; then :
                   7355:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7356: $as_echo "yes" >&6; }; MYSQL_LIB="yes"
1.1       bertrand 7357: else
1.15      bertrand 7358:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7359: $as_echo "no" >&6; }; MYSQL_LIB="no"
                   7360: fi
                   7361: rm -f core conftest.err conftest.$ac_objext \
                   7362:     conftest$ac_exeext conftest.$ac_ext
                   7363:        LIBS=$saved_LIBS;
1.30      bertrand 7364:        if test $STATIC = no; then
                   7365:            libMySQLlib="-L/$libMySQLlib -lmysqlclient_r"
                   7366:        else
                   7367:            libMySQLlib="$libMySQLlib/libmysqlclient_r.a"
                   7368:            EXT_SQL="$EXT_SQL $libMySQLlib"
                   7369:        fi
1.15      bertrand 7370:    fi
1.14      bertrand 7371: 
1.15      bertrand 7372:    if test $MYSQL_LIB = no; then
                   7373:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7374:    fi
1.14      bertrand 7375: fi
1.15      bertrand 7376: 
                   7377: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
                   7378:    libMySQLinc=
                   7379:    libMySQLlib=
1.1       bertrand 7380: fi
1.14      bertrand 7381: 
                   7382: 
                   7383: 
1.1       bertrand 7384: 
                   7385: 
1.15      bertrand 7386: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
                   7387: 
                   7388: # Check whether --with-postgresql was given.
                   7389: if test "${with_postgresql+set}" = set; then :
                   7390:   withval=$with_postgresql;
1.14      bertrand 7391: else
1.15      bertrand 7392:   with_postgresql=check
                   7393: fi
                   7394: 
                   7395: 
                   7396: # with_postgresql : check [pas défini], yes [uniquement --with],
                   7397: # no [--without], valeur [--with=valeur].
                   7398: 
                   7399: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
                   7400:    libPgSQLinc="-I/usr/include"
1.30      bertrand 7401:    libPgSQLlib="/usr/lib"
1.15      bertrand 7402: 
                   7403:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include" >&5
                   7404: $as_echo_n "checking for libpq includes in /usr/include... " >&6; }
                   7405:    saved_CFLAGS="$CFLAGS"
                   7406:    CFLAGS="$CFLAGS $libPgSQLinc"
                   7407:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7408: /* end confdefs.h.  */
1.15      bertrand 7409: #include "libpq-fe.h"
1.1       bertrand 7410: int
                   7411: main ()
                   7412: {
1.15      bertrand 7413: 
1.1       bertrand 7414:   ;
                   7415:   return 0;
                   7416: }
                   7417: _ACEOF
1.15      bertrand 7418: if ac_fn_c_try_compile "$LINENO"; then :
                   7419:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7420: $as_echo "yes" >&6; }; POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7421: else
1.15      bertrand 7422:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7423: $as_echo "no" >&6; }; POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7424: fi
1.14      bertrand 7425: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7426:    CFLAGS=$saved_CFLAGS
1.1       bertrand 7427: 
1.15      bertrand 7428:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7429:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/postgresql" >&5
                   7430: $as_echo_n "checking for libpq includes in /usr/include/postgresql... " >&6; }
                   7431:        saved_CFLAGS="$CFLAGS"
                   7432:        CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                   7433:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7434: /* end confdefs.h.  */
1.15      bertrand 7435: #include "libpq-fe.h"
1.1       bertrand 7436: int
                   7437: main ()
                   7438: {
                   7439: 
                   7440:   ;
                   7441:   return 0;
                   7442: }
                   7443: _ACEOF
1.15      bertrand 7444: if ac_fn_c_try_compile "$LINENO"; then :
                   7445:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7446: $as_echo "yes" >&6; };
                   7447:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
                   7448: else
                   7449:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7450: $as_echo "no" >&6; };
                   7451:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7452: fi
                   7453: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7454:        CFLAGS=$saved_CFLAGS
                   7455:        libPgSQLinc=$libPgSQLinc/postgresql
                   7456:    fi
                   7457: 
                   7458:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7459:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/pgsql" >&5
                   7460: $as_echo_n "checking for libpq includes in /usr/include/pgsql... " >&6; }
                   7461:        saved_CFLAGS="$CFLAGS"
                   7462:        CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                   7463:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7464: /* end confdefs.h.  */
1.15      bertrand 7465: #include "libpq-fe.h"
1.1       bertrand 7466: int
                   7467: main ()
                   7468: {
                   7469: 
                   7470:   ;
                   7471:   return 0;
                   7472: }
                   7473: _ACEOF
1.15      bertrand 7474: if ac_fn_c_try_compile "$LINENO"; then :
                   7475:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7476: $as_echo "yes" >&6; };
                   7477:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7478: else
1.15      bertrand 7479:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7480: $as_echo "no" >&6; };
                   7481:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7482: fi
                   7483: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7484:        CFLAGS=$saved_CFLAGS
                   7485:        libPgSQLinc=$libPgSQLinc/pgsql
                   7486:    fi
1.1       bertrand 7487: 
1.15      bertrand 7488:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7489:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include" >&5
                   7490: $as_echo_n "checking for libpq includes in /usr/local/include... " >&6; }
                   7491:        saved_CFLAGS="$CFLAGS"
                   7492:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
                   7493:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7494: /* end confdefs.h.  */
1.15      bertrand 7495: #include "libpq-fe.h"
1.1       bertrand 7496: int
                   7497: main ()
                   7498: {
                   7499: 
                   7500:   ;
                   7501:   return 0;
                   7502: }
                   7503: _ACEOF
1.15      bertrand 7504: if ac_fn_c_try_compile "$LINENO"; then :
                   7505:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7506: $as_echo "yes" >&6; };
                   7507:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
                   7508: else
                   7509:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7510: $as_echo "no" >&6; };
                   7511:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7512: fi
                   7513: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7514:        CFLAGS=$saved_CFLAGS
                   7515:        libPgSQLinc=$libPgSQLinc/../local/include
                   7516:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7517:    fi
                   7518: 
                   7519:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7520:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/postgresql" >&5
                   7521: $as_echo_n "checking for libpq includes in /usr/local/include/postgresql... " >&6; }
                   7522:        saved_CFLAGS="$CFLAGS"
                   7523:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
                   7524:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7525: /* end confdefs.h.  */
1.15      bertrand 7526: #include "libpq-fe.h"
1.1       bertrand 7527: int
                   7528: main ()
                   7529: {
                   7530: 
                   7531:   ;
                   7532:   return 0;
                   7533: }
                   7534: _ACEOF
1.15      bertrand 7535: if ac_fn_c_try_compile "$LINENO"; then :
                   7536:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7537: $as_echo "yes" >&6; };
                   7538:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.14      bertrand 7539: else
1.15      bertrand 7540:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7541: $as_echo "no" >&6; };
                   7542:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14      bertrand 7543: fi
                   7544: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7545:        CFLAGS=$saved_CFLAGS
                   7546:        libPgSQLinc=$libPgSQLinc/../local/include/postgresql
                   7547:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7548:    fi
1.14      bertrand 7549: 
1.15      bertrand 7550:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7551:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/pgsql" >&5
                   7552: $as_echo_n "checking for libpq includes in /usr/local/include/pgsql... " >&6; }
                   7553:        saved_CFLAGS="$CFLAGS"
                   7554:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
                   7555:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7556: /* end confdefs.h.  */
1.15      bertrand 7557: #include "libpq-fe.h"
1.1       bertrand 7558: int
                   7559: main ()
                   7560: {
                   7561: 
                   7562:   ;
                   7563:   return 0;
                   7564: }
                   7565: _ACEOF
1.15      bertrand 7566: if ac_fn_c_try_compile "$LINENO"; then :
                   7567:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7568: $as_echo "yes" >&6; };
                   7569:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7570: else
1.15      bertrand 7571:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7572: $as_echo "no" >&6; };
                   7573:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7574: fi
                   7575: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7576:        CFLAGS=$saved_CFLAGS
                   7577:        libPgSQLinc=$libPgSQLinc/local/include/pgsql
                   7578:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7579:    fi
1.14      bertrand 7580: else
1.15      bertrand 7581:    if test "x$with_postgresql" != xno; then
                   7582:        libPgSQLinc="-I$with_postgresql/include"
1.30      bertrand 7583:        libPgSQLlib="$with_postgresql/lib"
1.15      bertrand 7584: 
                   7585:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc" >&5
                   7586: $as_echo_n "checking for libpq includes in $libPgSQLinc... " >&6; }
                   7587:        saved_CFLAGS="$CFLAGS"
                   7588:        CFLAGS="$CFLAGS $libPgSQLinc"
                   7589:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7590: /* end confdefs.h.  */
1.15      bertrand 7591: #include "libpq-fe.h"
1.1       bertrand 7592: int
                   7593: main ()
                   7594: {
                   7595: 
                   7596:   ;
                   7597:   return 0;
                   7598: }
                   7599: _ACEOF
1.15      bertrand 7600: if ac_fn_c_try_compile "$LINENO"; then :
                   7601:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7602: $as_echo "yes" >&6; };
                   7603:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7604: else
1.15      bertrand 7605:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7606: $as_echo "no" >&6; };
                   7607:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14      bertrand 7608: fi
1.15      bertrand 7609: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7610:        CFLAGS=$saved_CFLAGS
1.14      bertrand 7611: 
1.15      bertrand 7612:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7613:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/postgresql" >&5
                   7614: $as_echo_n "checking for libpq includes in $libPgSQLinc/postgresql... " >&6; }
                   7615:            saved_CFLAGS="$CFLAGS"
                   7616:            CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                   7617:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 7618: /* end confdefs.h.  */
1.15      bertrand 7619: #include "libpq-fe.h"
1.1       bertrand 7620: int
                   7621: main ()
                   7622: {
1.15      bertrand 7623: 
1.1       bertrand 7624:   ;
                   7625:   return 0;
                   7626: }
                   7627: _ACEOF
1.15      bertrand 7628: if ac_fn_c_try_compile "$LINENO"; then :
                   7629:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7630: $as_echo "yes" >&6; };
                   7631:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7632: else
1.15      bertrand 7633:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7634: $as_echo "no" >&6; };
                   7635:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7636: fi
                   7637: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7638:            CFLAGS=$saved_CFLAGS
                   7639:            libPgSQLinc=$libPgSQLinc/postgresql
                   7640:        fi
1.14      bertrand 7641: 
1.15      bertrand 7642:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7643:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/pgsql" >&5
                   7644: $as_echo_n "checking for libpq includes in $libPgSQLinc/pgsql... " >&6; }
                   7645:            saved_CFLAGS="$CFLAGS"
                   7646:            CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                   7647:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7648: /* end confdefs.h.  */
1.15      bertrand 7649: #include "libpq-fe.h"
1.1       bertrand 7650: int
                   7651: main ()
                   7652: {
1.15      bertrand 7653: 
1.1       bertrand 7654:   ;
                   7655:   return 0;
                   7656: }
                   7657: _ACEOF
1.15      bertrand 7658: if ac_fn_c_try_compile "$LINENO"; then :
                   7659:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7660: $as_echo "yes" >&6; };
                   7661:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7662: else
1.15      bertrand 7663:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7664: $as_echo "no" >&6; };
                   7665:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7666: fi
1.15      bertrand 7667: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7668:            CFLAGS=$saved_CFLAGS
                   7669:            libPgSQLinc=$libPgSQLinc/pgsql
                   7670:        fi
                   7671:    else
                   7672:        POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7673:    fi
1.1       bertrand 7674: fi
                   7675: 
1.15      bertrand 7676: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
                   7677:    POSTGRESQL_LIB=no
1.1       bertrand 7678: 
1.15      bertrand 7679:    if test $POSTGRESQL_LIB = no; then
                   7680:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq libraries in $libPgSQLlib" >&5
                   7681: $as_echo_n "checking for libpq libraries in $libPgSQLlib... " >&6; }
                   7682:        saved_LIBS="$LIBS"
1.30      bertrand 7683:        if test $STATIC = no; then
                   7684:            LIBS="$LIBS -L/$libPgSQLlib $libPgSQLinc -lpq"
                   7685:        else
                   7686:            LIBS="$LIBS $libPgSQLlib/libpq.a $libPgSQLinc"
                   7687:        fi
1.15      bertrand 7688:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7689: /* end confdefs.h.  */
1.15      bertrand 7690: #include "libpq-fe.h"
1.1       bertrand 7691: int
                   7692: main ()
                   7693: {
1.15      bertrand 7694: PGconn *conn; const char *conninfo="dbname=postgres"; conn =
                   7695:             PQconnectdb(conninfo);
1.1       bertrand 7696:   ;
                   7697:   return 0;
                   7698: }
                   7699: _ACEOF
1.15      bertrand 7700: if ac_fn_c_try_link "$LINENO"; then :
                   7701:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7702: $as_echo "yes" >&6; }; POSTGRESQL_LIB="yes"
1.1       bertrand 7703: else
1.15      bertrand 7704:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7705: $as_echo "no" >&6; }; POSTGRESQL_LIB="no"
                   7706: fi
                   7707: rm -f core conftest.err conftest.$ac_objext \
                   7708:     conftest$ac_exeext conftest.$ac_ext
                   7709:        LIBS=$saved_LIBS;
1.30      bertrand 7710:        if test $STATIC = no; then
                   7711:            libPgSQLlib="-L/$libPgSQLlib -lpq"
                   7712:        else
                   7713:            libPgSQLlib="$libPgSQLlib/libpq.a"
                   7714:            EXT_SQL="$EXT_SQL $libPgSQLlib"
                   7715:        fi
1.15      bertrand 7716:    fi
                   7717: fi
                   7718: 
                   7719: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
                   7720:    libPgSQLinc=
                   7721:    libPgSQLlib=
                   7722: fi
                   7723: 
                   7724: 
                   7725: 
                   7726: 
1.14      bertrand 7727: 
1.40      bertrand 7728: # with_postgresql : check [pas défini], yes [uniquement --with],
                   7729: # no [--without], valeur [--with=valeur].
                   7730: 
                   7731: # Check whether --with-bourne_shell was given.
                   7732: if test "${with_bourne_shell+set}" = set; then :
                   7733:   withval=$with_bourne_shell;
                   7734: else
                   7735:   with_bourne_shell=no
                   7736: fi
                   7737: 
                   7738: 
                   7739: if test "x$with_bourne_shell" = xyes; then
                   7740:    as_fn_error $? "You have to specify a valide shell path !" "$LINENO" 5
                   7741: fi
                   7742: 
                   7743: if test "x$with_bourne_shell" = xno; then
                   7744:    if test $(uname) = "OS/2"; then
                   7745:        as_fn_error $? "With OS/2 or eComstation, you have to specify a valide shell path !" "$LINENO" 5
                   7746:    fi
                   7747: 
                   7748:    BSH_PATH=
                   7749: else
                   7750:    if test ! -x $with_bourne_shell; then
                   7751:        as_fn_error $? "$with_bourne_shell is not executable !" "$LINENO" 5
                   7752:    fi
                   7753: 
                   7754:    if test $(uname) = "OS/2"; then
1.41      bertrand 7755:        with_os2_bourne_shell=$(echo $with_bourne_shell | \
                   7756:                sed -e '1,$s/\//\\\\\\\\/g')
                   7757:        BSH_PATH=-DBOURNE_SHELL=\"\\\"$with_os2_bourne_shell\\\"\"
1.40      bertrand 7758:    else
                   7759:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-bourne-shell ignored" >&5
                   7760: $as_echo "$as_me: WARNING: --with-bourne-shell ignored" >&2;}
                   7761:        BSH_PATH=
                   7762:    fi
                   7763: fi
                   7764: 
1.15      bertrand 7765: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
                   7766: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
                   7767: if test "${ac_cv_path_GREP+set}" = set; then :
                   7768:   $as_echo_n "(cached) " >&6
                   7769: else
                   7770:   if test -z "$GREP"; then
                   7771:   ac_path_GREP_found=false
                   7772:   # Loop through the user's path and test for each of PROGNAME-LIST
                   7773:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7774: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   7775: do
                   7776:   IFS=$as_save_IFS
                   7777:   test -z "$as_dir" && as_dir=.
                   7778:     for ac_prog in grep ggrep; do
                   7779:     for ac_exec_ext in '' $ac_executable_extensions; do
                   7780:       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
                   7781:       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
                   7782: # Check for GNU ac_path_GREP and select it if it is found.
                   7783:   # Check for GNU $ac_path_GREP
                   7784: case `"$ac_path_GREP" --version 2>&1` in
                   7785: *GNU*)
                   7786:   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
                   7787: *)
                   7788:   ac_count=0
                   7789:   $as_echo_n 0123456789 >"conftest.in"
                   7790:   while :
                   7791:   do
                   7792:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   7793:     mv "conftest.tmp" "conftest.in"
                   7794:     cp "conftest.in" "conftest.nl"
                   7795:     $as_echo 'GREP' >> "conftest.nl"
                   7796:     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   7797:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   7798:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   7799:     if test $ac_count -gt ${ac_path_GREP_max-0}; then
                   7800:       # Best one so far, save it but keep looking for a better one
                   7801:       ac_cv_path_GREP="$ac_path_GREP"
                   7802:       ac_path_GREP_max=$ac_count
                   7803:     fi
                   7804:     # 10*(2^10) chars as input seems more than enough
                   7805:     test $ac_count -gt 10 && break
                   7806:   done
                   7807:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   7808: esac
1.14      bertrand 7809: 
1.15      bertrand 7810:       $ac_path_GREP_found && break 3
                   7811:     done
                   7812:   done
                   7813:   done
                   7814: IFS=$as_save_IFS
                   7815:   if test -z "$ac_cv_path_GREP"; then
1.36      bertrand 7816:     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15      bertrand 7817:   fi
                   7818: else
                   7819:   ac_cv_path_GREP=$GREP
1.1       bertrand 7820: fi
                   7821: 
                   7822: fi
1.15      bertrand 7823: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
                   7824: $as_echo "$ac_cv_path_GREP" >&6; }
                   7825:  GREP="$ac_cv_path_GREP"
                   7826: 
                   7827: 
                   7828: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
                   7829: $as_echo_n "checking for egrep... " >&6; }
                   7830: if test "${ac_cv_path_EGREP+set}" = set; then :
                   7831:   $as_echo_n "(cached) " >&6
                   7832: else
                   7833:   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
                   7834:    then ac_cv_path_EGREP="$GREP -E"
                   7835:    else
                   7836:      if test -z "$EGREP"; then
                   7837:   ac_path_EGREP_found=false
                   7838:   # Loop through the user's path and test for each of PROGNAME-LIST
                   7839:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7840: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   7841: do
                   7842:   IFS=$as_save_IFS
                   7843:   test -z "$as_dir" && as_dir=.
                   7844:     for ac_prog in egrep; do
                   7845:     for ac_exec_ext in '' $ac_executable_extensions; do
                   7846:       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
                   7847:       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
                   7848: # Check for GNU ac_path_EGREP and select it if it is found.
                   7849:   # Check for GNU $ac_path_EGREP
                   7850: case `"$ac_path_EGREP" --version 2>&1` in
                   7851: *GNU*)
                   7852:   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
                   7853: *)
                   7854:   ac_count=0
                   7855:   $as_echo_n 0123456789 >"conftest.in"
                   7856:   while :
                   7857:   do
                   7858:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   7859:     mv "conftest.tmp" "conftest.in"
                   7860:     cp "conftest.in" "conftest.nl"
                   7861:     $as_echo 'EGREP' >> "conftest.nl"
                   7862:     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   7863:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   7864:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   7865:     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
                   7866:       # Best one so far, save it but keep looking for a better one
                   7867:       ac_cv_path_EGREP="$ac_path_EGREP"
                   7868:       ac_path_EGREP_max=$ac_count
                   7869:     fi
                   7870:     # 10*(2^10) chars as input seems more than enough
                   7871:     test $ac_count -gt 10 && break
                   7872:   done
                   7873:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   7874: esac
                   7875: 
                   7876:       $ac_path_EGREP_found && break 3
                   7877:     done
                   7878:   done
                   7879:   done
                   7880: IFS=$as_save_IFS
                   7881:   if test -z "$ac_cv_path_EGREP"; then
1.36      bertrand 7882:     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15      bertrand 7883:   fi
1.1       bertrand 7884: else
1.15      bertrand 7885:   ac_cv_path_EGREP=$EGREP
1.1       bertrand 7886: fi
                   7887: 
1.15      bertrand 7888:    fi
1.1       bertrand 7889: fi
1.15      bertrand 7890: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
                   7891: $as_echo "$ac_cv_path_EGREP" >&6; }
                   7892:  EGREP="$ac_cv_path_EGREP"
1.1       bertrand 7893: 
                   7894: 
1.15      bertrand 7895: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   7896: $as_echo_n "checking for ANSI C header files... " >&6; }
                   7897: if test "${ac_cv_header_stdc+set}" = set; then :
                   7898:   $as_echo_n "(cached) " >&6
1.1       bertrand 7899: else
1.15      bertrand 7900:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7901: /* end confdefs.h.  */
                   7902: #include <stdlib.h>
                   7903: #include <stdarg.h>
                   7904: #include <string.h>
                   7905: #include <float.h>
                   7906: 
                   7907: int
                   7908: main ()
                   7909: {
                   7910: 
                   7911:   ;
                   7912:   return 0;
                   7913: }
                   7914: _ACEOF
1.15      bertrand 7915: if ac_fn_c_try_compile "$LINENO"; then :
1.1       bertrand 7916:   ac_cv_header_stdc=yes
                   7917: else
1.15      bertrand 7918:   ac_cv_header_stdc=no
1.1       bertrand 7919: fi
                   7920: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7921: 
                   7922: if test $ac_cv_header_stdc = yes; then
                   7923:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.15      bertrand 7924:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7925: /* end confdefs.h.  */
                   7926: #include <string.h>
                   7927: 
                   7928: _ACEOF
                   7929: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15      bertrand 7930:   $EGREP "memchr" >/dev/null 2>&1; then :
                   7931: 
1.1       bertrand 7932: else
                   7933:   ac_cv_header_stdc=no
                   7934: fi
                   7935: rm -f conftest*
                   7936: 
                   7937: fi
                   7938: 
                   7939: if test $ac_cv_header_stdc = yes; then
                   7940:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.15      bertrand 7941:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7942: /* end confdefs.h.  */
                   7943: #include <stdlib.h>
                   7944: 
                   7945: _ACEOF
                   7946: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15      bertrand 7947:   $EGREP "free" >/dev/null 2>&1; then :
                   7948: 
1.1       bertrand 7949: else
                   7950:   ac_cv_header_stdc=no
                   7951: fi
                   7952: rm -f conftest*
                   7953: 
                   7954: fi
                   7955: 
                   7956: if test $ac_cv_header_stdc = yes; then
                   7957:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.15      bertrand 7958:   if test "$cross_compiling" = yes; then :
1.1       bertrand 7959:   :
                   7960: else
1.15      bertrand 7961:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7962: /* end confdefs.h.  */
                   7963: #include <ctype.h>
                   7964: #include <stdlib.h>
                   7965: #if ((' ' & 0x0FF) == 0x020)
                   7966: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   7967: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   7968: #else
                   7969: # define ISLOWER(c) \
                   7970:           (('a' <= (c) && (c) <= 'i') \
                   7971:             || ('j' <= (c) && (c) <= 'r') \
                   7972:             || ('s' <= (c) && (c) <= 'z'))
                   7973: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   7974: #endif
                   7975: 
                   7976: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   7977: int
                   7978: main ()
                   7979: {
                   7980:   int i;
                   7981:   for (i = 0; i < 256; i++)
                   7982:     if (XOR (islower (i), ISLOWER (i))
                   7983:    || toupper (i) != TOUPPER (i))
                   7984:       return 2;
                   7985:   return 0;
                   7986: }
                   7987: _ACEOF
1.15      bertrand 7988: if ac_fn_c_try_run "$LINENO"; then :
                   7989: 
1.14      bertrand 7990: else
1.15      bertrand 7991:   ac_cv_header_stdc=no
                   7992: fi
                   7993: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   7994:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   7995: fi
1.1       bertrand 7996: 
                   7997: fi
                   7998: fi
1.15      bertrand 7999: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   8000: $as_echo "$ac_cv_header_stdc" >&6; }
                   8001: if test $ac_cv_header_stdc = yes; then
1.1       bertrand 8002: 
1.15      bertrand 8003: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.14      bertrand 8004: 
1.1       bertrand 8005: fi
                   8006: 
1.15      bertrand 8007: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
                   8008: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                   8009:          inttypes.h stdint.h unistd.h
                   8010: do :
                   8011:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   8012: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
                   8013: "
1.36      bertrand 8014: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8015:   cat >>confdefs.h <<_ACEOF
                   8016: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.14      bertrand 8017: _ACEOF
1.1       bertrand 8018: 
                   8019: fi
                   8020: 
1.15      bertrand 8021: done
                   8022: 
                   8023: 
                   8024: # The cast to long int works around a bug in the HP C Compiler
                   8025: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8026: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8027: # This bug is HP SR number 8606223364.
                   8028: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
                   8029: $as_echo_n "checking size of void *... " >&6; }
                   8030: if test "${ac_cv_sizeof_void_p+set}" = set; then :
                   8031:   $as_echo_n "(cached) " >&6
                   8032: else
                   8033:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
1.14      bertrand 8034: 
                   8035: else
1.15      bertrand 8036:   if test "$ac_cv_type_void_p" = yes; then
                   8037:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8038: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8039: as_fn_error 77 "cannot compute sizeof (void *)
                   8040: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 8041:    else
                   8042:      ac_cv_sizeof_void_p=0
                   8043:    fi
                   8044: fi
1.1       bertrand 8045: 
                   8046: fi
1.15      bertrand 8047: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
                   8048: $as_echo "$ac_cv_sizeof_void_p" >&6; }
                   8049: 
1.1       bertrand 8050: 
                   8051: 
1.15      bertrand 8052: cat >>confdefs.h <<_ACEOF
                   8053: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1.14      bertrand 8054: _ACEOF
1.1       bertrand 8055: 
1.15      bertrand 8056: 
                   8057: # The cast to long int works around a bug in the HP C Compiler
                   8058: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8059: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8060: # This bug is HP SR number 8606223364.
                   8061: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
                   8062: $as_echo_n "checking size of char... " >&6; }
                   8063: if test "${ac_cv_sizeof_char+set}" = set; then :
                   8064:   $as_echo_n "(cached) " >&6
                   8065: else
                   8066:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
                   8067: 
                   8068: else
                   8069:   if test "$ac_cv_type_char" = yes; then
                   8070:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8071: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8072: as_fn_error 77 "cannot compute sizeof (char)
                   8073: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 8074:    else
                   8075:      ac_cv_sizeof_char=0
                   8076:    fi
                   8077: fi
                   8078: 
1.1       bertrand 8079: fi
1.15      bertrand 8080: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
                   8081: $as_echo "$ac_cv_sizeof_char" >&6; }
1.1       bertrand 8082: 
                   8083: 
                   8084: 
1.15      bertrand 8085: cat >>confdefs.h <<_ACEOF
                   8086: #define SIZEOF_CHAR $ac_cv_sizeof_char
                   8087: _ACEOF
1.1       bertrand 8088: 
                   8089: 
1.15      bertrand 8090: # The cast to long int works around a bug in the HP C Compiler
                   8091: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8092: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8093: # This bug is HP SR number 8606223364.
                   8094: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
                   8095: $as_echo_n "checking size of short int... " >&6; }
                   8096: if test "${ac_cv_sizeof_short_int+set}" = set; then :
                   8097:   $as_echo_n "(cached) " >&6
                   8098: else
                   8099:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
1.1       bertrand 8100: 
1.15      bertrand 8101: else
                   8102:   if test "$ac_cv_type_short_int" = yes; then
                   8103:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8104: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8105: as_fn_error 77 "cannot compute sizeof (short int)
                   8106: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 8107:    else
                   8108:      ac_cv_sizeof_short_int=0
                   8109:    fi
                   8110: fi
1.1       bertrand 8111: 
1.15      bertrand 8112: fi
                   8113: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
                   8114: $as_echo "$ac_cv_sizeof_short_int" >&6; }
1.1       bertrand 8115: 
                   8116: 
                   8117: 
1.15      bertrand 8118: cat >>confdefs.h <<_ACEOF
                   8119: #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
                   8120: _ACEOF
1.1       bertrand 8121: 
                   8122: 
1.15      bertrand 8123: # The cast to long int works around a bug in the HP C Compiler
                   8124: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8125: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8126: # This bug is HP SR number 8606223364.
                   8127: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
                   8128: $as_echo_n "checking size of int... " >&6; }
                   8129: if test "${ac_cv_sizeof_int+set}" = set; then :
                   8130:   $as_echo_n "(cached) " >&6
                   8131: else
                   8132:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
1.1       bertrand 8133: 
1.15      bertrand 8134: else
                   8135:   if test "$ac_cv_type_int" = yes; then
                   8136:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8137: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8138: as_fn_error 77 "cannot compute sizeof (int)
                   8139: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 8140:    else
                   8141:      ac_cv_sizeof_int=0
                   8142:    fi
                   8143: fi
1.1       bertrand 8144: 
1.15      bertrand 8145: fi
                   8146: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
                   8147: $as_echo "$ac_cv_sizeof_int" >&6; }
1.1       bertrand 8148: 
                   8149: 
                   8150: 
1.15      bertrand 8151: cat >>confdefs.h <<_ACEOF
                   8152: #define SIZEOF_INT $ac_cv_sizeof_int
                   8153: _ACEOF
1.1       bertrand 8154: 
                   8155: 
1.15      bertrand 8156: # The cast to long int works around a bug in the HP C Compiler
                   8157: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8158: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8159: # This bug is HP SR number 8606223364.
                   8160: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
                   8161: $as_echo_n "checking size of long int... " >&6; }
                   8162: if test "${ac_cv_sizeof_long_int+set}" = set; then :
                   8163:   $as_echo_n "(cached) " >&6
                   8164: else
                   8165:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
1.1       bertrand 8166: 
1.14      bertrand 8167: else
1.15      bertrand 8168:   if test "$ac_cv_type_long_int" = yes; then
                   8169:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8170: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8171: as_fn_error 77 "cannot compute sizeof (long int)
                   8172: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 8173:    else
                   8174:      ac_cv_sizeof_long_int=0
                   8175:    fi
                   8176: fi
1.1       bertrand 8177: 
                   8178: fi
1.15      bertrand 8179: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
                   8180: $as_echo "$ac_cv_sizeof_long_int" >&6; }
                   8181: 
1.1       bertrand 8182: 
                   8183: 
1.15      bertrand 8184: cat >>confdefs.h <<_ACEOF
                   8185: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
1.14      bertrand 8186: _ACEOF
1.15      bertrand 8187: 
                   8188: 
                   8189: # The cast to long int works around a bug in the HP C Compiler
                   8190: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8191: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8192: # This bug is HP SR number 8606223364.
                   8193: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
                   8194: $as_echo_n "checking size of long long int... " >&6; }
                   8195: if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
                   8196:   $as_echo_n "(cached) " >&6
                   8197: else
                   8198:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
                   8199: 
1.14      bertrand 8200: else
1.15      bertrand 8201:   if test "$ac_cv_type_long_long_int" = yes; then
                   8202:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8203: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8204: as_fn_error 77 "cannot compute sizeof (long long int)
                   8205: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 8206:    else
                   8207:      ac_cv_sizeof_long_long_int=0
                   8208:    fi
                   8209: fi
1.1       bertrand 8210: 
1.14      bertrand 8211: fi
1.15      bertrand 8212: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
                   8213: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
                   8214: 
                   8215: 
                   8216: 
                   8217: cat >>confdefs.h <<_ACEOF
                   8218: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
                   8219: _ACEOF
1.1       bertrand 8220: 
                   8221: 
1.15      bertrand 8222: # The cast to long int works around a bug in the HP C Compiler
                   8223: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8224: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8225: # This bug is HP SR number 8606223364.
                   8226: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
                   8227: $as_echo_n "checking size of float... " >&6; }
                   8228: if test "${ac_cv_sizeof_float+set}" = set; then :
                   8229:   $as_echo_n "(cached) " >&6
                   8230: else
                   8231:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
1.1       bertrand 8232: 
                   8233: else
1.15      bertrand 8234:   if test "$ac_cv_type_float" = yes; then
                   8235:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8236: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8237: as_fn_error 77 "cannot compute sizeof (float)
                   8238: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 8239:    else
                   8240:      ac_cv_sizeof_float=0
                   8241:    fi
1.14      bertrand 8242: fi
                   8243: 
1.1       bertrand 8244: fi
1.15      bertrand 8245: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
                   8246: $as_echo "$ac_cv_sizeof_float" >&6; }
                   8247: 
                   8248: 
                   8249: 
                   8250: cat >>confdefs.h <<_ACEOF
                   8251: #define SIZEOF_FLOAT $ac_cv_sizeof_float
1.14      bertrand 8252: _ACEOF
1.1       bertrand 8253: 
                   8254: 
1.15      bertrand 8255: # The cast to long int works around a bug in the HP C Compiler
                   8256: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8257: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8258: # This bug is HP SR number 8606223364.
                   8259: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
                   8260: $as_echo_n "checking size of double... " >&6; }
                   8261: if test "${ac_cv_sizeof_double+set}" = set; then :
                   8262:   $as_echo_n "(cached) " >&6
                   8263: else
                   8264:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
1.1       bertrand 8265: 
1.15      bertrand 8266: else
                   8267:   if test "$ac_cv_type_double" = yes; then
                   8268:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8269: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8270: as_fn_error 77 "cannot compute sizeof (double)
                   8271: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 8272:    else
                   8273:      ac_cv_sizeof_double=0
                   8274:    fi
                   8275: fi
1.1       bertrand 8276: 
1.15      bertrand 8277: fi
                   8278: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
                   8279: $as_echo "$ac_cv_sizeof_double" >&6; }
1.14      bertrand 8280: 
1.1       bertrand 8281: 
                   8282: 
1.15      bertrand 8283: cat >>confdefs.h <<_ACEOF
                   8284: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
1.14      bertrand 8285: _ACEOF
1.15      bertrand 8286: 
                   8287: 
                   8288: # The cast to long int works around a bug in the HP C Compiler
                   8289: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8290: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8291: # This bug is HP SR number 8606223364.
                   8292: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
                   8293: $as_echo_n "checking size of long double... " >&6; }
                   8294: if test "${ac_cv_sizeof_long_double+set}" = set; then :
                   8295:   $as_echo_n "(cached) " >&6
                   8296: else
                   8297:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
                   8298: 
1.14      bertrand 8299: else
1.15      bertrand 8300:   if test "$ac_cv_type_long_double" = yes; then
                   8301:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8302: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8303: as_fn_error 77 "cannot compute sizeof (long double)
                   8304: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 8305:    else
                   8306:      ac_cv_sizeof_long_double=0
                   8307:    fi
                   8308: fi
1.1       bertrand 8309: 
                   8310: fi
1.15      bertrand 8311: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
                   8312: $as_echo "$ac_cv_sizeof_long_double" >&6; }
                   8313: 
1.1       bertrand 8314: 
                   8315: 
1.15      bertrand 8316: cat >>confdefs.h <<_ACEOF
                   8317: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
1.1       bertrand 8318: _ACEOF
                   8319: 
                   8320: 
1.15      bertrand 8321: 
                   8322: ac_header_dirent=no
                   8323: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
                   8324:   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
                   8325: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
                   8326: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
1.36      bertrand 8327: if eval "test \"\${$as_ac_Header+set}\"" = set; then :
1.15      bertrand 8328:   $as_echo_n "(cached) " >&6
1.1       bertrand 8329: else
1.15      bertrand 8330:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 8331: /* end confdefs.h.  */
                   8332: #include <sys/types.h>
1.15      bertrand 8333: #include <$ac_hdr>
1.1       bertrand 8334: 
1.15      bertrand 8335: int
                   8336: main ()
                   8337: {
                   8338: if ((DIR *) 0)
                   8339: return 0;
                   8340:   ;
                   8341:   return 0;
                   8342: }
1.1       bertrand 8343: _ACEOF
1.15      bertrand 8344: if ac_fn_c_try_compile "$LINENO"; then :
                   8345:   eval "$as_ac_Header=yes"
1.1       bertrand 8346: else
1.15      bertrand 8347:   eval "$as_ac_Header=no"
                   8348: fi
                   8349: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8350: fi
1.15      bertrand 8351: eval ac_res=\$$as_ac_Header
                   8352:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   8353: $as_echo "$ac_res" >&6; }
1.36      bertrand 8354: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8355:   cat >>confdefs.h <<_ACEOF
                   8356: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
                   8357: _ACEOF
1.1       bertrand 8358: 
1.15      bertrand 8359: ac_header_dirent=$ac_hdr; break
1.1       bertrand 8360: fi
                   8361: 
1.15      bertrand 8362: done
                   8363: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   8364: if test $ac_header_dirent = dirent.h; then
                   8365:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   8366: $as_echo_n "checking for library containing opendir... " >&6; }
                   8367: if test "${ac_cv_search_opendir+set}" = set; then :
                   8368:   $as_echo_n "(cached) " >&6
                   8369: else
                   8370:   ac_func_search_save_LIBS=$LIBS
                   8371: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8372: /* end confdefs.h.  */
                   8373: 
                   8374: /* Override any GCC internal prototype to avoid an error.
                   8375:    Use char because int might match the return type of a GCC
                   8376:    builtin and then its argument prototype would still apply.  */
                   8377: #ifdef __cplusplus
                   8378: extern "C"
                   8379: #endif
                   8380: char opendir ();
                   8381: int
                   8382: main ()
                   8383: {
                   8384: return opendir ();
                   8385:   ;
                   8386:   return 0;
                   8387: }
1.14      bertrand 8388: _ACEOF
1.15      bertrand 8389: for ac_lib in '' dir; do
                   8390:   if test -z "$ac_lib"; then
                   8391:     ac_res="none required"
                   8392:   else
                   8393:     ac_res=-l$ac_lib
                   8394:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   8395:   fi
                   8396:   if ac_fn_c_try_link "$LINENO"; then :
                   8397:   ac_cv_search_opendir=$ac_res
                   8398: fi
                   8399: rm -f core conftest.err conftest.$ac_objext \
                   8400:     conftest$ac_exeext
                   8401:   if test "${ac_cv_search_opendir+set}" = set; then :
                   8402:   break
                   8403: fi
                   8404: done
                   8405: if test "${ac_cv_search_opendir+set}" = set; then :
1.1       bertrand 8406: 
1.15      bertrand 8407: else
                   8408:   ac_cv_search_opendir=no
                   8409: fi
                   8410: rm conftest.$ac_ext
                   8411: LIBS=$ac_func_search_save_LIBS
                   8412: fi
                   8413: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   8414: $as_echo "$ac_cv_search_opendir" >&6; }
                   8415: ac_res=$ac_cv_search_opendir
                   8416: if test "$ac_res" != no; then :
                   8417:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1       bertrand 8418: 
1.14      bertrand 8419: fi
1.1       bertrand 8420: 
                   8421: else
1.15      bertrand 8422:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   8423: $as_echo_n "checking for library containing opendir... " >&6; }
                   8424: if test "${ac_cv_search_opendir+set}" = set; then :
                   8425:   $as_echo_n "(cached) " >&6
                   8426: else
                   8427:   ac_func_search_save_LIBS=$LIBS
                   8428: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8429: /* end confdefs.h.  */
1.15      bertrand 8430: 
                   8431: /* Override any GCC internal prototype to avoid an error.
                   8432:    Use char because int might match the return type of a GCC
                   8433:    builtin and then its argument prototype would still apply.  */
                   8434: #ifdef __cplusplus
                   8435: extern "C"
                   8436: #endif
                   8437: char opendir ();
1.1       bertrand 8438: int
                   8439: main ()
                   8440: {
1.15      bertrand 8441: return opendir ();
1.1       bertrand 8442:   ;
                   8443:   return 0;
                   8444: }
                   8445: _ACEOF
1.15      bertrand 8446: for ac_lib in '' x; do
                   8447:   if test -z "$ac_lib"; then
                   8448:     ac_res="none required"
                   8449:   else
                   8450:     ac_res=-l$ac_lib
                   8451:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   8452:   fi
                   8453:   if ac_fn_c_try_link "$LINENO"; then :
                   8454:   ac_cv_search_opendir=$ac_res
                   8455: fi
                   8456: rm -f core conftest.err conftest.$ac_objext \
                   8457:     conftest$ac_exeext
                   8458:   if test "${ac_cv_search_opendir+set}" = set; then :
                   8459:   break
                   8460: fi
                   8461: done
                   8462: if test "${ac_cv_search_opendir+set}" = set; then :
                   8463: 
1.1       bertrand 8464: else
1.15      bertrand 8465:   ac_cv_search_opendir=no
                   8466: fi
                   8467: rm conftest.$ac_ext
                   8468: LIBS=$ac_func_search_save_LIBS
1.1       bertrand 8469: fi
1.15      bertrand 8470: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   8471: $as_echo "$ac_cv_search_opendir" >&6; }
                   8472: ac_res=$ac_cv_search_opendir
                   8473: if test "$ac_res" != no; then :
                   8474:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.14      bertrand 8475: 
1.1       bertrand 8476: fi
                   8477: 
                   8478: fi
                   8479: 
1.15      bertrand 8480: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   8481: $as_echo_n "checking for ANSI C header files... " >&6; }
                   8482: if test "${ac_cv_header_stdc+set}" = set; then :
                   8483:   $as_echo_n "(cached) " >&6
1.1       bertrand 8484: else
1.15      bertrand 8485:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8486: /* end confdefs.h.  */
1.15      bertrand 8487: #include <stdlib.h>
                   8488: #include <stdarg.h>
                   8489: #include <string.h>
                   8490: #include <float.h>
                   8491: 
1.1       bertrand 8492: int
                   8493: main ()
                   8494: {
1.15      bertrand 8495: 
1.1       bertrand 8496:   ;
                   8497:   return 0;
                   8498: }
                   8499: _ACEOF
1.15      bertrand 8500: if ac_fn_c_try_compile "$LINENO"; then :
                   8501:   ac_cv_header_stdc=yes
1.14      bertrand 8502: else
1.15      bertrand 8503:   ac_cv_header_stdc=no
                   8504: fi
                   8505: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8506: 
                   8507: if test $ac_cv_header_stdc = yes; then
                   8508:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   8509:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8510: /* end confdefs.h.  */
                   8511: #include <string.h>
                   8512: 
                   8513: _ACEOF
                   8514: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8515:   $EGREP "memchr" >/dev/null 2>&1; then :
1.14      bertrand 8516: 
1.15      bertrand 8517: else
                   8518:   ac_cv_header_stdc=no
1.1       bertrand 8519: fi
1.15      bertrand 8520: rm -f conftest*
1.14      bertrand 8521: 
1.1       bertrand 8522: fi
                   8523: 
1.15      bertrand 8524: if test $ac_cv_header_stdc = yes; then
                   8525:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   8526:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8527: /* end confdefs.h.  */
                   8528: #include <stdlib.h>
                   8529: 
1.14      bertrand 8530: _ACEOF
1.15      bertrand 8531: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8532:   $EGREP "free" >/dev/null 2>&1; then :
                   8533: 
                   8534: else
                   8535:   ac_cv_header_stdc=no
                   8536: fi
                   8537: rm -f conftest*
1.1       bertrand 8538: 
                   8539: fi
                   8540: 
1.15      bertrand 8541: if test $ac_cv_header_stdc = yes; then
                   8542:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   8543:   if test "$cross_compiling" = yes; then :
                   8544:   :
1.1       bertrand 8545: else
1.15      bertrand 8546:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8547: /* end confdefs.h.  */
1.15      bertrand 8548: #include <ctype.h>
                   8549: #include <stdlib.h>
                   8550: #if ((' ' & 0x0FF) == 0x020)
                   8551: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   8552: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   8553: #else
                   8554: # define ISLOWER(c) \
                   8555:           (('a' <= (c) && (c) <= 'i') \
                   8556:             || ('j' <= (c) && (c) <= 'r') \
                   8557:             || ('s' <= (c) && (c) <= 'z'))
                   8558: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   8559: #endif
1.1       bertrand 8560: 
1.15      bertrand 8561: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.1       bertrand 8562: int
                   8563: main ()
                   8564: {
1.15      bertrand 8565:   int i;
                   8566:   for (i = 0; i < 256; i++)
                   8567:     if (XOR (islower (i), ISLOWER (i))
                   8568:    || toupper (i) != TOUPPER (i))
                   8569:       return 2;
1.1       bertrand 8570:   return 0;
                   8571: }
                   8572: _ACEOF
1.15      bertrand 8573: if ac_fn_c_try_run "$LINENO"; then :
                   8574: 
1.14      bertrand 8575: else
1.15      bertrand 8576:   ac_cv_header_stdc=no
                   8577: fi
                   8578: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8579:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8580: fi
1.14      bertrand 8581: 
1.1       bertrand 8582: fi
                   8583: fi
1.15      bertrand 8584: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   8585: $as_echo "$ac_cv_header_stdc" >&6; }
                   8586: if test $ac_cv_header_stdc = yes; then
1.1       bertrand 8587: 
1.15      bertrand 8588: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.1       bertrand 8589: 
                   8590: fi
                   8591: 
1.15      bertrand 8592: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
                   8593: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
                   8594: if test "${ac_cv_header_sys_wait_h+set}" = set; then :
                   8595:   $as_echo_n "(cached) " >&6
1.1       bertrand 8596: else
1.15      bertrand 8597:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8598: /* end confdefs.h.  */
1.14      bertrand 8599: #include <sys/types.h>
1.15      bertrand 8600: #include <sys/wait.h>
                   8601: #ifndef WEXITSTATUS
                   8602: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
                   8603: #endif
                   8604: #ifndef WIFEXITED
                   8605: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
                   8606: #endif
1.1       bertrand 8607: 
                   8608: int
                   8609: main ()
                   8610: {
1.15      bertrand 8611:   int s;
                   8612:   wait (&s);
                   8613:   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1.1       bertrand 8614:   ;
                   8615:   return 0;
                   8616: }
                   8617: _ACEOF
1.15      bertrand 8618: if ac_fn_c_try_compile "$LINENO"; then :
                   8619:   ac_cv_header_sys_wait_h=yes
1.1       bertrand 8620: else
1.15      bertrand 8621:   ac_cv_header_sys_wait_h=no
                   8622: fi
                   8623: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8624: fi
                   8625: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
                   8626: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
                   8627: if test $ac_cv_header_sys_wait_h = yes; then
1.1       bertrand 8628: 
1.15      bertrand 8629: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
1.1       bertrand 8630: 
                   8631: fi
                   8632: 
1.15      bertrand 8633: for ac_header in dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
                   8634:        time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
                   8635:        sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h
                   8636: do :
                   8637:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   8638: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
1.36      bertrand 8639: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8640:   cat >>confdefs.h <<_ACEOF
                   8641: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1       bertrand 8642: _ACEOF
                   8643: 
                   8644: fi
                   8645: 
1.15      bertrand 8646: done
                   8647: 
1.1       bertrand 8648: 
1.15      bertrand 8649: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
                   8650: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
                   8651: if test "${ac_cv_c_const+set}" = set; then :
                   8652:   $as_echo_n "(cached) " >&6
1.1       bertrand 8653: else
1.15      bertrand 8654:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8655: /* end confdefs.h.  */
                   8656: 
                   8657: int
                   8658: main ()
                   8659: {
1.15      bertrand 8660: /* FIXME: Include the comments suggested by Paul. */
                   8661: #ifndef __cplusplus
                   8662:   /* Ultrix mips cc rejects this.  */
                   8663:   typedef int charset[2];
                   8664:   const charset cs;
                   8665:   /* SunOS 4.1.1 cc rejects this.  */
                   8666:   char const *const *pcpcc;
                   8667:   char **ppc;
                   8668:   /* NEC SVR4.0.2 mips cc rejects this.  */
                   8669:   struct point {int x, y;};
                   8670:   static struct point const zero = {0,0};
                   8671:   /* AIX XL C 1.02.0.0 rejects this.
                   8672:      It does not let you subtract one const X* pointer from another in
                   8673:      an arm of an if-expression whose if-part is not a constant
                   8674:      expression */
                   8675:   const char *g = "string";
                   8676:   pcpcc = &g + (g ? g-g : 0);
                   8677:   /* HPUX 7.0 cc rejects these. */
                   8678:   ++pcpcc;
                   8679:   ppc = (char**) pcpcc;
                   8680:   pcpcc = (char const *const *) ppc;
                   8681:   { /* SCO 3.2v4 cc rejects this.  */
                   8682:     char *t;
                   8683:     char const *s = 0 ? (char *) 0 : (char const *) 0;
                   8684: 
                   8685:     *t++ = 0;
                   8686:     if (s) return 0;
                   8687:   }
                   8688:   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   8689:     int x[] = {25, 17};
                   8690:     const int *foo = &x[0];
                   8691:     ++foo;
                   8692:   }
                   8693:   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   8694:     typedef const int *iptr;
                   8695:     iptr p = 0;
                   8696:     ++p;
                   8697:   }
                   8698:   { /* AIX XL C 1.02.0.0 rejects this saying
                   8699:        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
                   8700:     struct s { int j; const int *ap[3]; };
                   8701:     struct s *b; b->j = 5;
                   8702:   }
                   8703:   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   8704:     const int foo = 10;
                   8705:     if (!foo) return 0;
                   8706:   }
                   8707:   return !cs[0] && !zero.x;
                   8708: #endif
                   8709: 
1.14      bertrand 8710:   ;
1.1       bertrand 8711:   return 0;
                   8712: }
                   8713: _ACEOF
1.15      bertrand 8714: if ac_fn_c_try_compile "$LINENO"; then :
                   8715:   ac_cv_c_const=yes
1.14      bertrand 8716: else
1.15      bertrand 8717:   ac_cv_c_const=no
1.1       bertrand 8718: fi
1.14      bertrand 8719: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8720: fi
1.15      bertrand 8721: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
                   8722: $as_echo "$ac_cv_c_const" >&6; }
                   8723: if test $ac_cv_c_const = no; then
1.1       bertrand 8724: 
1.15      bertrand 8725: $as_echo "#define const /**/" >>confdefs.h
1.1       bertrand 8726: 
1.15      bertrand 8727: fi
1.1       bertrand 8728: 
1.15      bertrand 8729: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
                   8730: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
                   8731: if test "${ac_cv_type_uid_t+set}" = set; then :
                   8732:   $as_echo_n "(cached) " >&6
1.1       bertrand 8733: else
1.15      bertrand 8734:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8735: /* end confdefs.h.  */
1.15      bertrand 8736: #include <sys/types.h>
                   8737: 
1.1       bertrand 8738: _ACEOF
1.15      bertrand 8739: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8740:   $EGREP "uid_t" >/dev/null 2>&1; then :
                   8741:   ac_cv_type_uid_t=yes
1.1       bertrand 8742: else
1.15      bertrand 8743:   ac_cv_type_uid_t=no
                   8744: fi
                   8745: rm -f conftest*
1.14      bertrand 8746: 
1.1       bertrand 8747: fi
1.15      bertrand 8748: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
                   8749: $as_echo "$ac_cv_type_uid_t" >&6; }
                   8750: if test $ac_cv_type_uid_t = no; then
1.1       bertrand 8751: 
1.15      bertrand 8752: $as_echo "#define uid_t int" >>confdefs.h
1.1       bertrand 8753: 
                   8754: 
1.15      bertrand 8755: $as_echo "#define gid_t int" >>confdefs.h
1.1       bertrand 8756: 
                   8757: fi
                   8758: 
1.15      bertrand 8759: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
                   8760: if test "x$ac_cv_type_pid_t" = x""yes; then :
1.1       bertrand 8761: 
                   8762: else
1.15      bertrand 8763: 
                   8764: cat >>confdefs.h <<_ACEOF
                   8765: #define pid_t int
1.14      bertrand 8766: _ACEOF
                   8767: 
1.15      bertrand 8768: fi
1.14      bertrand 8769: 
1.15      bertrand 8770: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
                   8771: if test "x$ac_cv_type_size_t" = x""yes; then :
1.14      bertrand 8772: 
1.15      bertrand 8773: else
1.1       bertrand 8774: 
1.15      bertrand 8775: cat >>confdefs.h <<_ACEOF
                   8776: #define size_t unsigned int
1.1       bertrand 8777: _ACEOF
1.14      bertrand 8778: 
1.1       bertrand 8779: fi
                   8780: 
1.15      bertrand 8781: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
                   8782: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
                   8783: if test "${ac_cv_header_time+set}" = set; then :
                   8784:   $as_echo_n "(cached) " >&6
1.1       bertrand 8785: else
1.15      bertrand 8786:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8787: /* end confdefs.h.  */
1.15      bertrand 8788: #include <sys/types.h>
                   8789: #include <sys/time.h>
                   8790: #include <time.h>
1.1       bertrand 8791: 
1.14      bertrand 8792: int
                   8793: main ()
                   8794: {
1.15      bertrand 8795: if ((struct tm *) 0)
                   8796: return 0;
1.14      bertrand 8797:   ;
                   8798:   return 0;
                   8799: }
1.1       bertrand 8800: _ACEOF
1.15      bertrand 8801: if ac_fn_c_try_compile "$LINENO"; then :
                   8802:   ac_cv_header_time=yes
1.1       bertrand 8803: else
1.15      bertrand 8804:   ac_cv_header_time=no
1.1       bertrand 8805: fi
1.15      bertrand 8806: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8807: fi
1.15      bertrand 8808: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
                   8809: $as_echo "$ac_cv_header_time" >&6; }
                   8810: if test $ac_cv_header_time = yes; then
1.1       bertrand 8811: 
1.15      bertrand 8812: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
1.1       bertrand 8813: 
                   8814: fi
                   8815: 
1.15      bertrand 8816: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
                   8817: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
                   8818: if test "${ac_cv_struct_tm+set}" = set; then :
                   8819:   $as_echo_n "(cached) " >&6
1.1       bertrand 8820: else
1.15      bertrand 8821:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 8822: /* end confdefs.h.  */
1.15      bertrand 8823: #include <sys/types.h>
                   8824: #include <time.h>
1.1       bertrand 8825: 
                   8826: int
                   8827: main ()
                   8828: {
1.15      bertrand 8829: struct tm tm;
                   8830:                     int *p = &tm.tm_sec;
                   8831:                     return !p;
1.1       bertrand 8832:   ;
                   8833:   return 0;
                   8834: }
                   8835: _ACEOF
1.15      bertrand 8836: if ac_fn_c_try_compile "$LINENO"; then :
                   8837:   ac_cv_struct_tm=time.h
1.1       bertrand 8838: else
1.15      bertrand 8839:   ac_cv_struct_tm=sys/time.h
                   8840: fi
                   8841: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8842: fi
                   8843: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
                   8844: $as_echo "$ac_cv_struct_tm" >&6; }
                   8845: if test $ac_cv_struct_tm = sys/time.h; then
                   8846: 
                   8847: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
1.14      bertrand 8848: 
1.1       bertrand 8849: fi
                   8850: 
                   8851: 
1.15      bertrand 8852: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
                   8853: $as_echo_n "checking return type of signal handlers... " >&6; }
                   8854: if test "${ac_cv_type_signal+set}" = set; then :
                   8855:   $as_echo_n "(cached) " >&6
1.1       bertrand 8856: else
1.15      bertrand 8857:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8858: /* end confdefs.h.  */
1.15      bertrand 8859: #include <sys/types.h>
                   8860: #include <signal.h>
1.1       bertrand 8861: 
                   8862: int
                   8863: main ()
                   8864: {
1.15      bertrand 8865: return *(signal (0, 0)) (0) == 1;
1.1       bertrand 8866:   ;
                   8867:   return 0;
                   8868: }
                   8869: _ACEOF
1.15      bertrand 8870: if ac_fn_c_try_compile "$LINENO"; then :
                   8871:   ac_cv_type_signal=int
1.1       bertrand 8872: else
1.15      bertrand 8873:   ac_cv_type_signal=void
1.1       bertrand 8874: fi
1.15      bertrand 8875: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8876: fi
1.15      bertrand 8877: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
                   8878: $as_echo "$ac_cv_type_signal" >&6; }
1.14      bertrand 8879: 
1.15      bertrand 8880: cat >>confdefs.h <<_ACEOF
                   8881: #define RETSIGTYPE $ac_cv_type_signal
1.14      bertrand 8882: _ACEOF
1.1       bertrand 8883: 
1.15      bertrand 8884: 
1.35      bertrand 8885: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken siginfo->si_pid" >&5
                   8886: $as_echo_n "checking for broken siginfo->si_pid... " >&6; }
                   8887: if test "$cross_compiling" = yes; then :
                   8888:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8889: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8890: as_fn_error $? "cannot run test program while cross compiling
                   8891: See \`config.log' for more details" "$LINENO" 5 ; }
1.35      bertrand 8892: else
                   8893:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8894: /* end confdefs.h.  */
                   8895: #include <unistd.h>
                   8896: #include <signal.h>
                   8897: int flag;
                   8898: void handler(int signal, siginfo_t *siginfo, void *context)
1.39      bertrand 8899: { flag = ((*siginfo).si_pid == getpid()) ? 0 : 1; }
1.35      bertrand 8900: int
                   8901: main ()
                   8902: {
                   8903: struct sigaction    action;
                   8904: action.sa_sigaction = handler;
                   8905: action.sa_flags = SA_SIGINFO;
                   8906: sigaction(SIGUSR1, &action, NULL);
                   8907: raise(SIGUSR1);
                   8908: return(flag);
                   8909:   ;
                   8910:   return 0;
                   8911: }
                   8912: _ACEOF
                   8913: if ac_fn_c_try_run "$LINENO"; then :
                   8914:   BROKEN_SIGINFO=-U_BROKEN_SIGINFO; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   8915: $as_echo "no" >&6; }
                   8916: else
                   8917:   BROKEN_SIGINFO=-D_BROKEN_SIGINFO; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   8918: $as_echo "yes" >&6; }
                   8919: fi
                   8920: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8921:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8922: fi
                   8923: 
                   8924: 
1.15      bertrand 8925: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
                   8926: $as_echo_n "checking for working strcoll... " >&6; }
                   8927: if test "${ac_cv_func_strcoll_works+set}" = set; then :
                   8928:   $as_echo_n "(cached) " >&6
                   8929: else
                   8930:   if test "$cross_compiling" = yes; then :
                   8931:   ac_cv_func_strcoll_works=no
                   8932: else
                   8933:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8934: /* end confdefs.h.  */
                   8935: $ac_includes_default
                   8936: int
                   8937: main ()
                   8938: {
                   8939: return (strcoll ("abc", "def") >= 0 ||
                   8940:     strcoll ("ABC", "DEF") >= 0 ||
                   8941:     strcoll ("123", "456") >= 0)
                   8942:   ;
                   8943:   return 0;
                   8944: }
                   8945: _ACEOF
                   8946: if ac_fn_c_try_run "$LINENO"; then :
                   8947:   ac_cv_func_strcoll_works=yes
                   8948: else
                   8949:   ac_cv_func_strcoll_works=no
                   8950: fi
                   8951: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8952:   conftest.$ac_objext conftest.beam conftest.$ac_ext
1.14      bertrand 8953: fi
1.1       bertrand 8954: 
                   8955: fi
1.15      bertrand 8956: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
                   8957: $as_echo "$ac_cv_func_strcoll_works" >&6; }
                   8958: if test $ac_cv_func_strcoll_works = yes; then
1.14      bertrand 8959: 
1.15      bertrand 8960: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
1.1       bertrand 8961: 
1.15      bertrand 8962: fi
1.1       bertrand 8963: 
1.15      bertrand 8964: for ac_func in strftime
                   8965: do :
                   8966:   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
                   8967: if test "x$ac_cv_func_strftime" = x""yes; then :
                   8968:   cat >>confdefs.h <<_ACEOF
                   8969: #define HAVE_STRFTIME 1
                   8970: _ACEOF
1.1       bertrand 8971: 
                   8972: else
1.15      bertrand 8973:   # strftime is in -lintl on SCO UNIX.
                   8974: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
                   8975: $as_echo_n "checking for strftime in -lintl... " >&6; }
                   8976: if test "${ac_cv_lib_intl_strftime+set}" = set; then :
                   8977:   $as_echo_n "(cached) " >&6
                   8978: else
                   8979:   ac_check_lib_save_LIBS=$LIBS
                   8980: LIBS="-lintl  $LIBS"
                   8981: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8982: /* end confdefs.h.  */
                   8983: 
                   8984: /* Override any GCC internal prototype to avoid an error.
                   8985:    Use char because int might match the return type of a GCC
                   8986:    builtin and then its argument prototype would still apply.  */
                   8987: #ifdef __cplusplus
                   8988: extern "C"
                   8989: #endif
1.15      bertrand 8990: char strftime ();
1.1       bertrand 8991: int
                   8992: main ()
                   8993: {
1.15      bertrand 8994: return strftime ();
1.1       bertrand 8995:   ;
                   8996:   return 0;
                   8997: }
                   8998: _ACEOF
1.15      bertrand 8999: if ac_fn_c_try_link "$LINENO"; then :
                   9000:   ac_cv_lib_intl_strftime=yes
1.1       bertrand 9001: else
1.15      bertrand 9002:   ac_cv_lib_intl_strftime=no
                   9003: fi
                   9004: rm -f core conftest.err conftest.$ac_objext \
                   9005:     conftest$ac_exeext conftest.$ac_ext
                   9006: LIBS=$ac_check_lib_save_LIBS
                   9007: fi
                   9008: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
                   9009: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
                   9010: if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
                   9011:   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
                   9012: 
                   9013: LIBS="-lintl $LIBS"
                   9014: fi
                   9015: 
                   9016: fi
                   9017: done
                   9018: 
                   9019: for ac_func in vprintf
                   9020: do :
                   9021:   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
                   9022: if test "x$ac_cv_func_vprintf" = x""yes; then :
                   9023:   cat >>confdefs.h <<_ACEOF
                   9024: #define HAVE_VPRINTF 1
                   9025: _ACEOF
                   9026: 
                   9027: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
                   9028: if test "x$ac_cv_func__doprnt" = x""yes; then :
                   9029: 
                   9030: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
1.1       bertrand 9031: 
                   9032: fi
                   9033: 
                   9034: fi
1.15      bertrand 9035: done
                   9036: 
                   9037: 
                   9038: for ac_func in ftime getcwd putenv select strcspn strdup \
                   9039:        strerror strspn strstr strtod
                   9040: do :
                   9041:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   9042: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1.36      bertrand 9043: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.1       bertrand 9044:   cat >>confdefs.h <<_ACEOF
1.15      bertrand 9045: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       bertrand 9046: _ACEOF
                   9047: 
                   9048: fi
                   9049: done
                   9050: 
                   9051: 
1.15      bertrand 9052: 
                   9053: # Check whether --with-openssl_arch was given.
                   9054: if test "${with_openssl_arch+set}" = set; then :
                   9055:   withval=$with_openssl_arch;
                   9056: else
                   9057:   with_openssl_arch=none
                   9058: fi
                   9059: 
                   9060: 
1.31      bertrand 9061: if test $(uname) = "OS/2"; then
1.34      bertrand 9062:    bash -c "cd tools/$OPENSSL && os2/OS2-EMX.cmd"
1.15      bertrand 9063: else
1.31      bertrand 9064:    if test "x$with_openssl_arch" = xnone; then
                   9065:        (cd tools/$OPENSSL && ./config)
                   9066:    elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then
                   9067:        (cd tools/$OPENSSL && ./Configure)
1.36      bertrand 9068:        as_fn_error $? "OS/COMP informations are required!" "$LINENO" 5
1.31      bertrand 9069:    elif test "x$with_openssl_arch" = xlist; then
                   9070:        (cd tools/$OPENSSL && ./Configure)
1.36      bertrand 9071:        as_fn_error $? "Please specify OS and Architecture" "$LINENO" 5
1.31      bertrand 9072:    else
                   9073:        (cd tools/$OPENSSL && ./Configure $with_openssl_arch)
                   9074:    fi
1.15      bertrand 9075: fi
1.1       bertrand 9076: 
1.34      bertrand 9077: 
                   9078: 
                   9079: subdirs="$subdirs tools/$NCURSES"
                   9080: 
                   9081: subdirs="$subdirs tools/$READLINE"
                   9082: 
                   9083: subdirs="$subdirs tools/$GSL"
                   9084: 
                   9085: subdirs="$subdirs tools/$GPP"
                   9086: 
                   9087: subdirs="$subdirs tools/$FILE"
                   9088: 
                   9089: subdirs="$subdirs tools/$ICONV"
                   9090: 
                   9091: subdirs="$subdirs tools/$SQLITE"
                   9092: 
                   9093: subdirs="$subdirs tools/$UNITS"
                   9094: 
                   9095: 
1.1       bertrand 9096: if test "$MYGNUPLOT" = "yes"; then
                   9097:    if test ! -d "$srcdir"/tools/$GNUPLOT; then
                   9098:        gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
                   9099:                (cd "$srcdir/tools" && tar -xf -)
                   9100:    fi
                   9101:    subdirs="$subdirs tools/$GNUPLOT"
                   9102: 
                   9103:    GNUPLOT_COMPILATION=$GNUPLOT
                   9104: else
                   9105:    GNUPLOT_COMPILATION=
                   9106: fi
                   9107: 
                   9108: 
                   9109: 
                   9110: case $host_cpu in
                   9111: 
                   9112:     i?86)
                   9113:    CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
                   9114:            -Wno-pointer-sign"
                   9115:    FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   9116:    FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   9117:    break ;;
                   9118: 
                   9119:    x86_64*)
                   9120:    CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
                   9121:            -Wno-pointer-sign"
                   9122:    FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   9123:    FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   9124:    break ;;
                   9125: 
                   9126:     alpha*)
                   9127:    CFLAGS="$CFLAGS -mieee -funsigned-char -Wall \
                   9128:            -Wno-pointer-sign"
                   9129:    FFLAGS="$FFLAGS -mieee -Wall"
                   9130:    FCFLAGS="$FCFLAGS -mieee -Wall"
                   9131:    break ;;
                   9132: 
                   9133:     sparc*)
                   9134:    CFLAGS="$CFLAGS -Wall -funsigned-char \
                   9135:            -Wno-pointer-sign"
                   9136:    FFLAGS="$FFLAGS -Wall"
                   9137:    FCFLAGS="$FCFLAGS -Wall"
                   9138:    break ;;
                   9139: 
                   9140: esac
                   9141: 
1.8       bertrand 9142: case $host_os in
                   9143: 
                   9144:    cygwin*)
                   9145:        OS=Cygwin
                   9146:    break ;;
                   9147: 
                   9148:    interix*)
                   9149:        OS=Interix
                   9150:    break ;;
                   9151: 
                   9152:    *)
                   9153:        OS=$(uname)
                   9154:    break ;;
                   9155: 
                   9156: esac
                   9157: 
                   9158: 
                   9159: 
1.1       bertrand 9160: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
                   9161: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
                   9162: 
1.22      bertrand 9163: case $OS in
1.17      bertrand 9164: 
                   9165:     Darwin)
1.31      bertrand 9166:        EXPORT_DYNAMIC=-Wl,-flat_namespace
1.17      bertrand 9167:        NESTED_FUNCTIONS=-fnested-functions
                   9168:        SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
1.36      bertrand 9169:        IPCS_SYSV=-UIPCS_SYSV
1.23      bertrand 9170:        CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING"
1.31      bertrand 9171:        ac_configure_args="$ac_configure_args --with-readline=builtin \
                   9172:                --disable-shared --enable-static"
1.33      bertrand 9173:        C_STANDARD=-std=gnu99
1.17      bertrand 9174:    break ;;
                   9175: 
1.31      bertrand 9176:     Cygwin)
                   9177:        EXPORT_DYNAMIC=-Wl,--export-all-symbols
1.17      bertrand 9178:        NESTED_FUNCTIONS=
                   9179:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36      bertrand 9180:        IPCS_SYSV=-UIPCS_SYSV
1.31      bertrand 9181:        ac_configure_args="$ac_configure_args --with-readline=builtin \
                   9182:                --disable-shared --enable-static"
1.33      bertrand 9183:        C_STANDARD=-std=gnu99
1.17      bertrand 9184:    break ;;
                   9185: 
1.34      bertrand 9186:    Interix)
                   9187:        EXPORT_DYNAMIC=-Wl,--export-all-symbols
                   9188:        NESTED_FUNCTIONS=
                   9189:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36      bertrand 9190:        IPCS_SYSV=-UIPCS_SYSV
1.34      bertrand 9191:        ac_configure_args="$ac_configure_args --with-readline=builtin \
                   9192:                --disable-shared --enable-static"
                   9193:        C_STANDARD=-std=gnu99
                   9194:    break;;
                   9195: 
1.31      bertrand 9196:     AIX)
                   9197:        EXPORT_DYNAMIC=-Wl,--export-dynamic
1.18      bertrand 9198:        NESTED_FUNCTIONS=
                   9199:        SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
1.36      bertrand 9200:        IPCS_SYSV=-UIPCS_SYSV
1.31      bertrand 9201:        ac_configure_args="$ac_configure_args --with-readline=builtin \
                   9202:                --disable-shared --enable-static"
1.33      bertrand 9203:        C_STANDARD=-std=gnu99
1.18      bertrand 9204:    break ;;
                   9205: 
1.31      bertrand 9206:     OS/2)
1.37      bertrand 9207:        if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35      bertrand 9208:            FINAL_ENCODING=CP850; \
                   9209:        fi;
1.31      bertrand 9210:        OS=OS2
                   9211:        NESTED_FUNCTIONS=
                   9212:        EXPORT_DYNAMIC=-Zmap
                   9213:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36      bertrand 9214:        IPCS_SYSV=-DIPCS_SYSV
1.31      bertrand 9215:        ac_configure_args="$ac_configure_args --without-readline \
                   9216:                --without-cairo --disable-shared --enable-static"
1.33      bertrand 9217:        C_STANDARD=
1.31      bertrand 9218:    break;;
                   9219: 
1.35      bertrand 9220:    OpenBSD)
1.37      bertrand 9221:        if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35      bertrand 9222:            FINAL_ENCODING=UTF-8; \
                   9223:        fi;
                   9224:        EXPORT_DYNAMIC=-Wl,--export-dynamic
                   9225:        NESTED_FUNCTIONS=
                   9226:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36      bertrand 9227:        IPCS_SYSV=-DIPCS_SYSV
1.35      bertrand 9228:        ac_configure_args="$ac_configure_args --with-readline=builtin \
                   9229:                --disable-shared --enable-static"
                   9230:        C_STANDARD=-std=gnu99
                   9231:    break;;
                   9232: 
1.17      bertrand 9233:     *)
1.31      bertrand 9234:        EXPORT_DYNAMIC=-Wl,--export-dynamic
1.17      bertrand 9235:        NESTED_FUNCTIONS=
                   9236:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36      bertrand 9237: 
                   9238:        if test $IPCS_SYSV = no; then
                   9239:            IPCS_SYSV=-UIPCS_SYSV
                   9240:        else
                   9241:            IPCS_SYSV=-DIPCS_SYSV
                   9242:        fi
                   9243: 
1.31      bertrand 9244:        ac_configure_args="$ac_configure_args --with-readline=builtin \
                   9245:                --disable-shared --enable-static"
1.33      bertrand 9246:        C_STANDARD=-std=gnu99
1.17      bertrand 9247:    break ;;
                   9248: 
                   9249: esac
                   9250: 
                   9251: 
                   9252: 
                   9253: 
1.1       bertrand 9254: 
                   9255: 
                   9256: 
                   9257: 
                   9258: 
                   9259: 
                   9260: 
                   9261: 
                   9262: 
                   9263: 
                   9264: 
                   9265: 
                   9266: 
                   9267: 
                   9268: 
                   9269: 
                   9270: 
                   9271: 
                   9272: 
1.9       bertrand 9273: 
1.24      bertrand 9274: 
1.30      bertrand 9275: 
1.33      bertrand 9276: 
                   9277: 
                   9278: 
1.34      bertrand 9279: 
1.35      bertrand 9280: 
1.1       bertrand 9281: ac_config_files="$ac_config_files Makefile"
                   9282: 
                   9283: ac_config_files="$ac_config_files COPYING"
                   9284: 
                   9285: ac_config_files="$ac_config_files tools/Makefile"
                   9286: 
                   9287: ac_config_files="$ac_config_files src/Makefile"
                   9288: 
                   9289: ac_config_files="$ac_config_files man/Makefile"
                   9290: 
                   9291: ac_config_files="$ac_config_files man/fr_FR/Makefile"
                   9292: 
                   9293: ac_config_files="$ac_config_files doc/Makefile"
                   9294: 
                   9295: ac_config_files="$ac_config_files scripts/Makefile"
                   9296: 
                   9297: ac_config_files="$ac_config_files scripts/mkrplso"
                   9298: 
                   9299: ac_config_files="$ac_config_files scripts/rplcc"
                   9300: 
                   9301: ac_config_files="$ac_config_files scripts/rpllink"
                   9302: 
                   9303: ac_config_files="$ac_config_files rpltags/Makefile"
                   9304: 
                   9305: ac_config_files="$ac_config_files rpliconv/Makefile"
                   9306: 
1.9       bertrand 9307: ac_config_files="$ac_config_files rplsums/Makefile"
                   9308: 
1.39      bertrand 9309: ac_config_files="$ac_config_files rplawk/Makefile"
                   9310: 
1.1       bertrand 9311: ac_config_files="$ac_config_files lapack/lapack/Makefile"
                   9312: 
                   9313: ac_config_files="$ac_config_files lapack/blas/Makefile"
                   9314: 
                   9315: 
                   9316: ac_config_files="$ac_config_files man/rpl.1"
                   9317: 
                   9318: ac_config_files="$ac_config_files man/rplcc.1"
                   9319: 
                   9320: ac_config_files="$ac_config_files man/rpllink.1"
                   9321: 
                   9322: ac_config_files="$ac_config_files man/rpltags.1"
                   9323: 
                   9324: ac_config_files="$ac_config_files man/mkrplso.1"
                   9325: 
                   9326: ac_config_files="$ac_config_files man/fr_FR/rpl.1"
                   9327: 
                   9328: ac_config_files="$ac_config_files man/fr_FR/rplcc.1"
                   9329: 
                   9330: ac_config_files="$ac_config_files man/fr_FR/rpllink.1"
                   9331: 
                   9332: ac_config_files="$ac_config_files man/fr_FR/rpltags.1"
                   9333: 
                   9334: ac_config_files="$ac_config_files man/fr_FR/mkrplso.1"
                   9335: 
                   9336: 
                   9337: cat >confcache <<\_ACEOF
                   9338: # This file is a shell script that caches the results of configure
                   9339: # tests run on this system so they can be shared between configure
                   9340: # scripts and configure runs, see configure's option --config-cache.
                   9341: # It is not useful on other systems.  If it contains results you don't
                   9342: # want to keep, you may remove or edit it.
                   9343: #
                   9344: # config.status only pays attention to the cache file if you give it
                   9345: # the --recheck option to rerun configure.
                   9346: #
                   9347: # `ac_cv_env_foo' variables (set or unset) will be overridden when
                   9348: # loading this file, other *unset* `ac_cv_foo' will be assigned the
                   9349: # following values.
                   9350: 
                   9351: _ACEOF
                   9352: 
                   9353: # The following way of writing the cache mishandles newlines in values,
                   9354: # but we know of no workaround that is simple, portable, and efficient.
                   9355: # So, we kill variables containing newlines.
                   9356: # Ultrix sh set writes to stderr and can't be redirected directly,
                   9357: # and sets the high bit in the cache file unless we assign to the vars.
                   9358: (
                   9359:   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
                   9360:     eval ac_val=\$$ac_var
                   9361:     case $ac_val in #(
                   9362:     *${as_nl}*)
                   9363:       case $ac_var in #(
1.15      bertrand 9364:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   9365: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1       bertrand 9366:       esac
                   9367:       case $ac_var in #(
                   9368:       _ | IFS | as_nl) ;; #(
1.15      bertrand 9369:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   9370:       *) { eval $ac_var=; unset $ac_var;} ;;
1.1       bertrand 9371:       esac ;;
                   9372:     esac
                   9373:   done
                   9374: 
                   9375:   (set) 2>&1 |
                   9376:     case $as_nl`(ac_space=' '; set) 2>&1` in #(
                   9377:     *${as_nl}ac_space=\ *)
1.15      bertrand 9378:       # `set' does not quote correctly, so add quotes: double-quote
                   9379:       # substitution turns \\\\ into \\, and sed turns \\ into \.
1.1       bertrand 9380:       sed -n \
                   9381:    "s/'/'\\\\''/g;
                   9382:      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
                   9383:       ;; #(
                   9384:     *)
                   9385:       # `set' quotes correctly as required by POSIX, so do not add quotes.
                   9386:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   9387:       ;;
                   9388:     esac |
                   9389:     sort
                   9390: ) |
                   9391:   sed '
                   9392:      /^ac_cv_env_/b end
                   9393:      t clear
                   9394:      :clear
                   9395:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
                   9396:      t end
                   9397:      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
                   9398:      :end' >>confcache
                   9399: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
                   9400:   if test -w "$cache_file"; then
                   9401:     test "x$cache_file" != "x/dev/null" &&
1.15      bertrand 9402:       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
                   9403: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.1       bertrand 9404:     cat confcache >$cache_file
                   9405:   else
1.15      bertrand 9406:     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
                   9407: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1       bertrand 9408:   fi
                   9409: fi
                   9410: rm -f confcache
                   9411: 
                   9412: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   9413: # Let make expand exec_prefix.
                   9414: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   9415: 
                   9416: DEFS=-DHAVE_CONFIG_H
                   9417: 
                   9418: ac_libobjs=
                   9419: ac_ltlibobjs=
1.36      bertrand 9420: U=
1.1       bertrand 9421: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
                   9422:   # 1. Remove the extension, and $U if already installed.
                   9423:   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.15      bertrand 9424:   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1.1       bertrand 9425:   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
                   9426:   #    will be set to the directory where LIBOBJS objects are built.
1.15      bertrand 9427:   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
                   9428:   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.1       bertrand 9429: done
                   9430: LIBOBJS=$ac_libobjs
                   9431: 
                   9432: LTLIBOBJS=$ac_ltlibobjs
                   9433: 
                   9434: 
1.15      bertrand 9435:  if test -n "$EXEEXT"; then
                   9436:   am__EXEEXT_TRUE=
                   9437:   am__EXEEXT_FALSE='#'
                   9438: else
                   9439:   am__EXEEXT_TRUE='#'
                   9440:   am__EXEEXT_FALSE=
                   9441: fi
                   9442: 
1.1       bertrand 9443: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.36      bertrand 9444:   as_fn_error $? "conditional \"AMDEP\" was never defined.
1.15      bertrand 9445: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9446: fi
                   9447: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.36      bertrand 9448:   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1.15      bertrand 9449: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9450: fi
                   9451: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.36      bertrand 9452:   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
1.15      bertrand 9453: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9454: fi
                   9455: 
                   9456: : ${CONFIG_STATUS=./config.status}
1.15      bertrand 9457: ac_write_fail=0
1.1       bertrand 9458: ac_clean_files_save=$ac_clean_files
                   9459: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.15      bertrand 9460: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
                   9461: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
                   9462: as_write_fail=0
                   9463: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.1       bertrand 9464: #! $SHELL
                   9465: # Generated by $as_me.
                   9466: # Run this file to recreate the current configuration.
                   9467: # Compiler output produced by configure, useful for debugging
                   9468: # configure, is in config.log if it exists.
                   9469: 
                   9470: debug=false
                   9471: ac_cs_recheck=false
                   9472: ac_cs_silent=false
1.15      bertrand 9473: 
1.14      bertrand 9474: SHELL=\${CONFIG_SHELL-$SHELL}
1.15      bertrand 9475: export SHELL
                   9476: _ASEOF
                   9477: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
                   9478: ## -------------------- ##
                   9479: ## M4sh Initialization. ##
                   9480: ## -------------------- ##
1.1       bertrand 9481: 
                   9482: # Be more Bourne compatible
                   9483: DUALCASE=1; export DUALCASE # for MKS sh
1.15      bertrand 9484: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1       bertrand 9485:   emulate sh
                   9486:   NULLCMD=:
1.15      bertrand 9487:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1       bertrand 9488:   # is contrary to our usage.  Disable this feature.
                   9489:   alias -g '${1+"$@"}'='"$@"'
                   9490:   setopt NO_GLOB_SUBST
                   9491: else
1.15      bertrand 9492:   case `(set -o) 2>/dev/null` in #(
                   9493:   *posix*) :
                   9494:     set -o posix ;; #(
                   9495:   *) :
                   9496:      ;;
1.1       bertrand 9497: esac
                   9498: fi
                   9499: 
                   9500: 
1.15      bertrand 9501: as_nl='
                   9502: '
                   9503: export as_nl
                   9504: # Printing a long string crashes Solaris 7 /usr/bin/printf.
                   9505: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                   9506: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
                   9507: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
                   9508: # Prefer a ksh shell builtin over an external printf program on Solaris,
                   9509: # but without wasting forks for bash or zsh.
                   9510: if test -z "$BASH_VERSION$ZSH_VERSION" \
                   9511:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
                   9512:   as_echo='print -r --'
                   9513:   as_echo_n='print -rn --'
                   9514: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
                   9515:   as_echo='printf %s\n'
                   9516:   as_echo_n='printf %s'
                   9517: else
                   9518:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
                   9519:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
                   9520:     as_echo_n='/usr/ucb/echo -n'
                   9521:   else
                   9522:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
                   9523:     as_echo_n_body='eval
                   9524:       arg=$1;
                   9525:       case $arg in #(
                   9526:       *"$as_nl"*)
                   9527:    expr "X$arg" : "X\\(.*\\)$as_nl";
                   9528:    arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
                   9529:       esac;
                   9530:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
                   9531:     '
                   9532:     export as_echo_n_body
                   9533:     as_echo_n='sh -c $as_echo_n_body as_echo'
                   9534:   fi
                   9535:   export as_echo_body
                   9536:   as_echo='sh -c $as_echo_body as_echo'
                   9537: fi
1.14      bertrand 9538: 
                   9539: # The user is always right.
                   9540: if test "${PATH_SEPARATOR+set}" != set; then
1.15      bertrand 9541:   PATH_SEPARATOR=:
                   9542:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
                   9543:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
                   9544:       PATH_SEPARATOR=';'
                   9545:   }
1.1       bertrand 9546: fi
                   9547: 
                   9548: 
                   9549: # IFS
                   9550: # We need space, tab and new line, in precisely that order.  Quoting is
                   9551: # there to prevent editors from complaining about space-tab.
                   9552: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                   9553: # splitting by setting IFS to empty value.)
                   9554: IFS=" ""   $as_nl"
                   9555: 
                   9556: # Find who we are.  Look in the path if we contain no directory separator.
1.15      bertrand 9557: case $0 in #((
1.1       bertrand 9558:   *[\\/]* ) as_myself=$0 ;;
                   9559:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   9560: for as_dir in $PATH
                   9561: do
                   9562:   IFS=$as_save_IFS
                   9563:   test -z "$as_dir" && as_dir=.
1.15      bertrand 9564:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                   9565:   done
1.1       bertrand 9566: IFS=$as_save_IFS
                   9567: 
                   9568:      ;;
                   9569: esac
                   9570: # We did not find ourselves, most probably we were run as `sh COMMAND'
                   9571: # in which case we are not to be found in the path.
                   9572: if test "x$as_myself" = x; then
                   9573:   as_myself=$0
                   9574: fi
                   9575: if test ! -f "$as_myself"; then
1.15      bertrand 9576:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                   9577:   exit 1
1.1       bertrand 9578: fi
                   9579: 
1.15      bertrand 9580: # Unset variables that we do not need and which cause bugs (e.g. in
                   9581: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
                   9582: # suppresses any "Segmentation fault" message there.  '((' could
                   9583: # trigger a bug in pdksh 5.2.14.
                   9584: for as_var in BASH_ENV ENV MAIL MAILPATH
                   9585: do eval test x\${$as_var+set} = xset \
                   9586:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1       bertrand 9587: done
                   9588: PS1='$ '
                   9589: PS2='> '
                   9590: PS4='+ '
                   9591: 
                   9592: # NLS nuisances.
1.15      bertrand 9593: LC_ALL=C
                   9594: export LC_ALL
                   9595: LANGUAGE=C
                   9596: export LANGUAGE
                   9597: 
                   9598: # CDPATH.
                   9599: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
                   9600: 
                   9601: 
1.36      bertrand 9602: # as_fn_error STATUS ERROR [LINENO LOG_FD]
                   9603: # ----------------------------------------
1.15      bertrand 9604: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
                   9605: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.36      bertrand 9606: # script with STATUS, using 1 if that was 0.
1.15      bertrand 9607: as_fn_error ()
                   9608: {
1.36      bertrand 9609:   as_status=$1; test $as_status -eq 0 && as_status=1
                   9610:   if test "$4"; then
                   9611:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   9612:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.15      bertrand 9613:   fi
1.36      bertrand 9614:   $as_echo "$as_me: error: $2" >&2
1.15      bertrand 9615:   as_fn_exit $as_status
                   9616: } # as_fn_error
                   9617: 
                   9618: 
                   9619: # as_fn_set_status STATUS
                   9620: # -----------------------
                   9621: # Set $? to STATUS, without forking.
                   9622: as_fn_set_status ()
                   9623: {
                   9624:   return $1
                   9625: } # as_fn_set_status
                   9626: 
                   9627: # as_fn_exit STATUS
                   9628: # -----------------
                   9629: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
                   9630: as_fn_exit ()
                   9631: {
                   9632:   set +e
                   9633:   as_fn_set_status $1
                   9634:   exit $1
                   9635: } # as_fn_exit
                   9636: 
                   9637: # as_fn_unset VAR
                   9638: # ---------------
                   9639: # Portably unset VAR.
                   9640: as_fn_unset ()
                   9641: {
                   9642:   { eval $1=; unset $1;}
                   9643: }
                   9644: as_unset=as_fn_unset
                   9645: # as_fn_append VAR VALUE
                   9646: # ----------------------
                   9647: # Append the text in VALUE to the end of the definition contained in VAR. Take
                   9648: # advantage of any shell optimizations that allow amortized linear growth over
                   9649: # repeated appends, instead of the typical quadratic growth present in naive
                   9650: # implementations.
                   9651: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
                   9652:   eval 'as_fn_append ()
                   9653:   {
                   9654:     eval $1+=\$2
                   9655:   }'
                   9656: else
                   9657:   as_fn_append ()
                   9658:   {
                   9659:     eval $1=\$$1\$2
                   9660:   }
                   9661: fi # as_fn_append
                   9662: 
                   9663: # as_fn_arith ARG...
                   9664: # ------------------
                   9665: # Perform arithmetic evaluation on the ARGs, and store the result in the
                   9666: # global $as_val. Take advantage of shells that can avoid forks. The arguments
                   9667: # must be portable across $(()) and expr.
                   9668: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                   9669:   eval 'as_fn_arith ()
                   9670:   {
                   9671:     as_val=$(( $* ))
                   9672:   }'
                   9673: else
                   9674:   as_fn_arith ()
                   9675:   {
                   9676:     as_val=`expr "$@" || test $? -eq 1`
                   9677:   }
                   9678: fi # as_fn_arith
                   9679: 
1.1       bertrand 9680: 
                   9681: if expr a : '\(a\)' >/dev/null 2>&1 &&
                   9682:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                   9683:   as_expr=expr
                   9684: else
                   9685:   as_expr=false
                   9686: fi
                   9687: 
                   9688: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                   9689:   as_basename=basename
                   9690: else
                   9691:   as_basename=false
                   9692: fi
                   9693: 
1.15      bertrand 9694: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                   9695:   as_dirname=dirname
                   9696: else
                   9697:   as_dirname=false
                   9698: fi
1.1       bertrand 9699: 
                   9700: as_me=`$as_basename -- "$0" ||
                   9701: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                   9702:     X"$0" : 'X\(//\)$' \| \
                   9703:     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 9704: $as_echo X/"$0" |
1.1       bertrand 9705:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                   9706:        s//\1/
                   9707:        q
                   9708:      }
                   9709:      /^X\/\(\/\/\)$/{
                   9710:        s//\1/
                   9711:        q
                   9712:      }
                   9713:      /^X\/\(\/\).*/{
                   9714:        s//\1/
                   9715:        q
                   9716:      }
1.14      bertrand 9717:      s/.*/./; q'`
                   9718: 
1.15      bertrand 9719: # Avoid depending upon Character Ranges.
                   9720: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                   9721: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                   9722: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                   9723: as_cr_digits='0123456789'
                   9724: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1       bertrand 9725: 
                   9726: ECHO_C= ECHO_N= ECHO_T=
1.15      bertrand 9727: case `echo -n x` in #(((((
1.1       bertrand 9728: -n*)
1.15      bertrand 9729:   case `echo 'xy\c'` in
1.1       bertrand 9730:   *c*) ECHO_T='    ';; # ECHO_T is single tab character.
1.15      bertrand 9731:   xy)  ECHO_C='\c';;
                   9732:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
                   9733:        ECHO_T='    ';;
1.1       bertrand 9734:   esac;;
                   9735: *)
                   9736:   ECHO_N='-n';;
                   9737: esac
                   9738: 
                   9739: rm -f conf$$ conf$$.exe conf$$.file
                   9740: if test -d conf$$.dir; then
                   9741:   rm -f conf$$.dir/conf$$.file
                   9742: else
                   9743:   rm -f conf$$.dir
1.15      bertrand 9744:   mkdir conf$$.dir 2>/dev/null
1.1       bertrand 9745: fi
1.15      bertrand 9746: if (echo >conf$$.file) 2>/dev/null; then
                   9747:   if ln -s conf$$.file conf$$ 2>/dev/null; then
                   9748:     as_ln_s='ln -s'
                   9749:     # ... but there are two gotchas:
                   9750:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                   9751:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                   9752:     # In both cases, we have to default to `cp -p'.
                   9753:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
                   9754:       as_ln_s='cp -p'
                   9755:   elif ln conf$$.file conf$$ 2>/dev/null; then
                   9756:     as_ln_s=ln
                   9757:   else
1.1       bertrand 9758:     as_ln_s='cp -p'
1.15      bertrand 9759:   fi
1.1       bertrand 9760: else
                   9761:   as_ln_s='cp -p'
                   9762: fi
                   9763: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                   9764: rmdir conf$$.dir 2>/dev/null
                   9765: 
1.15      bertrand 9766: 
                   9767: # as_fn_mkdir_p
                   9768: # -------------
                   9769: # Create "$as_dir" as a directory, including parents if necessary.
                   9770: as_fn_mkdir_p ()
                   9771: {
                   9772: 
                   9773:   case $as_dir in #(
                   9774:   -*) as_dir=./$as_dir;;
                   9775:   esac
                   9776:   test -d "$as_dir" || eval $as_mkdir_p || {
                   9777:     as_dirs=
                   9778:     while :; do
                   9779:       case $as_dir in #(
                   9780:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
                   9781:       *) as_qdir=$as_dir;;
                   9782:       esac
                   9783:       as_dirs="'$as_qdir' $as_dirs"
                   9784:       as_dir=`$as_dirname -- "$as_dir" ||
                   9785: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   9786:     X"$as_dir" : 'X\(//\)[^/]' \| \
                   9787:     X"$as_dir" : 'X\(//\)$' \| \
                   9788:     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                   9789: $as_echo X"$as_dir" |
                   9790:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   9791:        s//\1/
                   9792:        q
                   9793:      }
                   9794:      /^X\(\/\/\)[^/].*/{
                   9795:        s//\1/
                   9796:        q
                   9797:      }
                   9798:      /^X\(\/\/\)$/{
                   9799:        s//\1/
                   9800:        q
                   9801:      }
                   9802:      /^X\(\/\).*/{
                   9803:        s//\1/
                   9804:        q
                   9805:      }
                   9806:      s/.*/./; q'`
                   9807:       test -d "$as_dir" && break
                   9808:     done
                   9809:     test -z "$as_dirs" || eval "mkdir $as_dirs"
1.36      bertrand 9810:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.15      bertrand 9811: 
                   9812: 
                   9813: } # as_fn_mkdir_p
1.1       bertrand 9814: if mkdir -p . 2>/dev/null; then
1.15      bertrand 9815:   as_mkdir_p='mkdir -p "$as_dir"'
1.1       bertrand 9816: else
                   9817:   test -d ./-p && rmdir ./-p
                   9818:   as_mkdir_p=false
                   9819: fi
                   9820: 
                   9821: if test -x / >/dev/null 2>&1; then
                   9822:   as_test_x='test -x'
                   9823: else
                   9824:   if ls -dL / >/dev/null 2>&1; then
                   9825:     as_ls_L_option=L
                   9826:   else
                   9827:     as_ls_L_option=
                   9828:   fi
                   9829:   as_test_x='
                   9830:     eval sh -c '\''
                   9831:       if test -d "$1"; then
1.15      bertrand 9832:    test -d "$1/.";
1.1       bertrand 9833:       else
1.15      bertrand 9834:    case $1 in #(
                   9835:    -*)set "./$1";;
1.1       bertrand 9836:    esac;
1.15      bertrand 9837:    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1       bertrand 9838:    ???[sx]*):;;*)false;;esac;fi
                   9839:     '\'' sh
                   9840:   '
                   9841: fi
                   9842: as_executable_p=$as_test_x
                   9843: 
                   9844: # Sed expression to map a string onto a valid CPP name.
                   9845: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                   9846: 
                   9847: # Sed expression to map a string onto a valid variable name.
                   9848: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                   9849: 
                   9850: 
                   9851: exec 6>&1
1.15      bertrand 9852: ## ----------------------------------- ##
                   9853: ## Main body of $CONFIG_STATUS script. ##
                   9854: ## ----------------------------------- ##
                   9855: _ASEOF
                   9856: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.1       bertrand 9857: 
1.15      bertrand 9858: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   9859: # Save the log message, to keep $0 and so on meaningful, and to
1.1       bertrand 9860: # report actual input values of CONFIG_FILES etc. instead of their
                   9861: # values after options handling.
                   9862: ac_log="
1.44      bertrand 9863: This file was extended by rpl $as_me 4.0.20, which was
1.36      bertrand 9864: generated by GNU Autoconf 2.67.  Invocation command line was
1.1       bertrand 9865: 
                   9866:   CONFIG_FILES    = $CONFIG_FILES
                   9867:   CONFIG_HEADERS  = $CONFIG_HEADERS
                   9868:   CONFIG_LINKS    = $CONFIG_LINKS
                   9869:   CONFIG_COMMANDS = $CONFIG_COMMANDS
                   9870:   $ $0 $@
                   9871: 
                   9872: on `(hostname || uname -n) 2>/dev/null | sed 1q`
                   9873: "
                   9874: 
                   9875: _ACEOF
                   9876: 
1.15      bertrand 9877: case $ac_config_files in *"
                   9878: "*) set x $ac_config_files; shift; ac_config_files=$*;;
                   9879: esac
                   9880: 
                   9881: case $ac_config_headers in *"
                   9882: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
                   9883: esac
                   9884: 
                   9885: 
                   9886: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 9887: # Files that config.status was made for.
                   9888: config_files="$ac_config_files"
                   9889: config_headers="$ac_config_headers"
                   9890: config_commands="$ac_config_commands"
                   9891: 
                   9892: _ACEOF
                   9893: 
1.15      bertrand 9894: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 9895: ac_cs_usage="\
1.15      bertrand 9896: \`$as_me' instantiates files and other configuration actions
                   9897: from templates according to the current configuration.  Unless the files
                   9898: and actions are specified as TAGs, all are instantiated by default.
1.1       bertrand 9899: 
1.15      bertrand 9900: Usage: $0 [OPTION]... [TAG]...
1.1       bertrand 9901: 
                   9902:   -h, --help       print this help, then exit
                   9903:   -V, --version    print version number and configuration settings, then exit
1.15      bertrand 9904:       --config     print configuration, then exit
                   9905:   -q, --quiet, --silent
                   9906:                    do not print progress messages
1.1       bertrand 9907:   -d, --debug      don't remove temporary files
                   9908:       --recheck    update $as_me by reconfiguring in the same conditions
1.15      bertrand 9909:       --file=FILE[:TEMPLATE]
                   9910:                    instantiate the configuration file FILE
                   9911:       --header=FILE[:TEMPLATE]
                   9912:                    instantiate the configuration header FILE
1.1       bertrand 9913: 
                   9914: Configuration files:
                   9915: $config_files
                   9916: 
                   9917: Configuration headers:
                   9918: $config_headers
                   9919: 
                   9920: Configuration commands:
                   9921: $config_commands
                   9922: 
1.15      bertrand 9923: Report bugs to the package provider."
1.1       bertrand 9924: 
                   9925: _ACEOF
1.15      bertrand 9926: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   9927: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.1       bertrand 9928: ac_cs_version="\\
1.44      bertrand 9929: rpl config.status 4.0.20
1.36      bertrand 9930: configured by $0, generated by GNU Autoconf 2.67,
1.15      bertrand 9931:   with options \\"\$ac_cs_config\\"
1.1       bertrand 9932: 
1.36      bertrand 9933: Copyright (C) 2010 Free Software Foundation, Inc.
1.1       bertrand 9934: This config.status script is free software; the Free Software Foundation
                   9935: gives unlimited permission to copy, distribute and modify it."
                   9936: 
                   9937: ac_pwd='$ac_pwd'
                   9938: srcdir='$srcdir'
                   9939: INSTALL='$INSTALL'
                   9940: MKDIR_P='$MKDIR_P'
1.15      bertrand 9941: AWK='$AWK'
                   9942: test -n "\$AWK" || AWK=awk
1.1       bertrand 9943: _ACEOF
                   9944: 
1.15      bertrand 9945: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   9946: # The default lists apply if the user does not specify any file.
1.1       bertrand 9947: ac_need_defaults=:
                   9948: while test $# != 0
                   9949: do
                   9950:   case $1 in
1.36      bertrand 9951:   --*=?*)
1.1       bertrand 9952:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   9953:     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
                   9954:     ac_shift=:
                   9955:     ;;
1.36      bertrand 9956:   --*=)
                   9957:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   9958:     ac_optarg=
                   9959:     ac_shift=:
                   9960:     ;;
1.1       bertrand 9961:   *)
                   9962:     ac_option=$1
                   9963:     ac_optarg=$2
                   9964:     ac_shift=shift
                   9965:     ;;
                   9966:   esac
                   9967: 
                   9968:   case $ac_option in
                   9969:   # Handling of the options.
                   9970:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   9971:     ac_cs_recheck=: ;;
                   9972:   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.15      bertrand 9973:     $as_echo "$ac_cs_version"; exit ;;
                   9974:   --config | --confi | --conf | --con | --co | --c )
                   9975:     $as_echo "$ac_cs_config"; exit ;;
1.1       bertrand 9976:   --debug | --debu | --deb | --de | --d | -d )
                   9977:     debug=: ;;
                   9978:   --file | --fil | --fi | --f )
                   9979:     $ac_shift
1.15      bertrand 9980:     case $ac_optarg in
                   9981:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.36      bertrand 9982:     '') as_fn_error $? "missing file argument" ;;
1.15      bertrand 9983:     esac
                   9984:     as_fn_append CONFIG_FILES " '$ac_optarg'"
1.1       bertrand 9985:     ac_need_defaults=false;;
                   9986:   --header | --heade | --head | --hea )
                   9987:     $ac_shift
1.15      bertrand 9988:     case $ac_optarg in
                   9989:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   9990:     esac
                   9991:     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.1       bertrand 9992:     ac_need_defaults=false;;
                   9993:   --he | --h)
                   9994:     # Conflict between --help and --header
1.36      bertrand 9995:     as_fn_error $? "ambiguous option: \`$1'
1.15      bertrand 9996: Try \`$0 --help' for more information.";;
1.1       bertrand 9997:   --help | --hel | -h )
1.15      bertrand 9998:     $as_echo "$ac_cs_usage"; exit ;;
1.1       bertrand 9999:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   10000:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
                   10001:     ac_cs_silent=: ;;
                   10002: 
                   10003:   # This is an error.
1.36      bertrand 10004:   -*) as_fn_error $? "unrecognized option: \`$1'
1.15      bertrand 10005: Try \`$0 --help' for more information." ;;
1.1       bertrand 10006: 
1.15      bertrand 10007:   *) as_fn_append ac_config_targets " $1"
1.1       bertrand 10008:      ac_need_defaults=false ;;
                   10009: 
                   10010:   esac
                   10011:   shift
                   10012: done
                   10013: 
                   10014: ac_configure_extra_args=
                   10015: 
                   10016: if $ac_cs_silent; then
                   10017:   exec 6>/dev/null
                   10018:   ac_configure_extra_args="$ac_configure_extra_args --silent"
                   10019: fi
                   10020: 
                   10021: _ACEOF
1.15      bertrand 10022: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10023: if \$ac_cs_recheck; then
1.15      bertrand 10024:   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
                   10025:   shift
                   10026:   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
                   10027:   CONFIG_SHELL='$SHELL'
1.1       bertrand 10028:   export CONFIG_SHELL
1.15      bertrand 10029:   exec "\$@"
1.1       bertrand 10030: fi
                   10031: 
                   10032: _ACEOF
1.15      bertrand 10033: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10034: exec 5>>config.log
                   10035: {
                   10036:   echo
                   10037:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
                   10038: ## Running $as_me. ##
                   10039: _ASBOX
1.15      bertrand 10040:   $as_echo "$ac_log"
1.1       bertrand 10041: } >&5
                   10042: 
                   10043: _ACEOF
1.15      bertrand 10044: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10045: #
                   10046: # INIT-COMMANDS
                   10047: #
                   10048: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
                   10049: 
                   10050: _ACEOF
                   10051: 
1.15      bertrand 10052: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10053: 
                   10054: # Handling of arguments.
                   10055: for ac_config_target in $ac_config_targets
                   10056: do
                   10057:   case $ac_config_target in
                   10058:     "rplconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rplconfig.h" ;;
                   10059:     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
                   10060:     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
                   10061:     "COPYING") CONFIG_FILES="$CONFIG_FILES COPYING" ;;
                   10062:     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
                   10063:     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
                   10064:     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
                   10065:     "man/fr_FR/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr_FR/Makefile" ;;
                   10066:     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
                   10067:     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
                   10068:     "scripts/mkrplso") CONFIG_FILES="$CONFIG_FILES scripts/mkrplso" ;;
                   10069:     "scripts/rplcc") CONFIG_FILES="$CONFIG_FILES scripts/rplcc" ;;
                   10070:     "scripts/rpllink") CONFIG_FILES="$CONFIG_FILES scripts/rpllink" ;;
                   10071:     "rpltags/Makefile") CONFIG_FILES="$CONFIG_FILES rpltags/Makefile" ;;
                   10072:     "rpliconv/Makefile") CONFIG_FILES="$CONFIG_FILES rpliconv/Makefile" ;;
1.9       bertrand 10073:     "rplsums/Makefile") CONFIG_FILES="$CONFIG_FILES rplsums/Makefile" ;;
1.39      bertrand 10074:     "rplawk/Makefile") CONFIG_FILES="$CONFIG_FILES rplawk/Makefile" ;;
1.1       bertrand 10075:     "lapack/lapack/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/lapack/Makefile" ;;
                   10076:     "lapack/blas/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/blas/Makefile" ;;
                   10077:     "man/rpl.1") CONFIG_FILES="$CONFIG_FILES man/rpl.1" ;;
                   10078:     "man/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/rplcc.1" ;;
                   10079:     "man/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/rpllink.1" ;;
                   10080:     "man/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/rpltags.1" ;;
                   10081:     "man/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/mkrplso.1" ;;
                   10082:     "man/fr_FR/rpl.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpl.1" ;;
                   10083:     "man/fr_FR/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rplcc.1" ;;
                   10084:     "man/fr_FR/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpllink.1" ;;
                   10085:     "man/fr_FR/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpltags.1" ;;
                   10086:     "man/fr_FR/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/mkrplso.1" ;;
                   10087: 
1.36      bertrand 10088:   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
1.1       bertrand 10089:   esac
                   10090: done
                   10091: 
                   10092: 
                   10093: # If the user did not use the arguments to specify the items to instantiate,
                   10094: # then the envvar interface is used.  Set only those that are not.
                   10095: # We use the long form for the default assignment because of an extremely
                   10096: # bizarre bug on SunOS 4.1.3.
                   10097: if $ac_need_defaults; then
                   10098:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
                   10099:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
                   10100:   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
                   10101: fi
                   10102: 
                   10103: # Have a temporary directory for convenience.  Make it in the build tree
                   10104: # simply because there is no reason against having it here, and in addition,
                   10105: # creating and moving files from /tmp can sometimes cause problems.
                   10106: # Hook for its removal unless debugging.
                   10107: # Note that there is a small window in which the directory will not be cleaned:
                   10108: # after its creation but before its name has been assigned to `$tmp'.
                   10109: $debug ||
                   10110: {
                   10111:   tmp=
                   10112:   trap 'exit_status=$?
                   10113:   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
                   10114: ' 0
1.15      bertrand 10115:   trap 'as_fn_exit 1' 1 2 13 15
1.1       bertrand 10116: }
                   10117: # Create a (secure) tmp directory for tmp files.
                   10118: 
                   10119: {
                   10120:   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
                   10121:   test -n "$tmp" && test -d "$tmp"
                   10122: }  ||
                   10123: {
                   10124:   tmp=./conf$$-$RANDOM
                   10125:   (umask 077 && mkdir "$tmp")
1.36      bertrand 10126: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1.15      bertrand 10127: 
                   10128: # Set up the scripts for CONFIG_FILES section.
                   10129: # No need to generate them if there are no CONFIG_FILES.
                   10130: # This happens for instance with `./config.status config.h'.
                   10131: if test -n "$CONFIG_FILES"; then
1.14      bertrand 10132: 
1.1       bertrand 10133: 
1.15      bertrand 10134: ac_cr=`echo X | tr X '\015'`
                   10135: # On cygwin, bash can eat \r inside `` if the user requested igncr.
                   10136: # But we know of no other shell where ac_cr would be empty at this
                   10137: # point, so we can use a bashism as a fallback.
                   10138: if test "x$ac_cr" = x; then
                   10139:   eval ac_cr=\$\'\\r\'
                   10140: fi
                   10141: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
                   10142: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
1.36      bertrand 10143:   ac_cs_awk_cr='\\r'
1.15      bertrand 10144: else
                   10145:   ac_cs_awk_cr=$ac_cr
                   10146: fi
1.1       bertrand 10147: 
1.15      bertrand 10148: echo 'BEGIN {' >"$tmp/subs1.awk" &&
1.14      bertrand 10149: _ACEOF
                   10150: 
                   10151: 
1.15      bertrand 10152: {
                   10153:   echo "cat >conf$$subs.awk <<_ACEOF" &&
                   10154:   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
                   10155:   echo "_ACEOF"
                   10156: } >conf$$subs.sh ||
1.36      bertrand 10157:   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
                   10158: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1.14      bertrand 10159: ac_delim='%!_!# '
                   10160: for ac_last_try in false false false false false :; do
1.15      bertrand 10161:   . ./conf$$subs.sh ||
1.36      bertrand 10162:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14      bertrand 10163: 
1.15      bertrand 10164:   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
                   10165:   if test $ac_delim_n = $ac_delim_num; then
1.14      bertrand 10166:     break
                   10167:   elif $ac_last_try; then
1.36      bertrand 10168:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14      bertrand 10169:   else
                   10170:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   10171:   fi
                   10172: done
1.15      bertrand 10173: rm -f conf$$subs.sh
1.1       bertrand 10174: 
1.15      bertrand 10175: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10176: cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
                   10177: _ACEOF
                   10178: sed -n '
                   10179: h
                   10180: s/^/S["/; s/!.*/"]=/
                   10181: p
                   10182: g
                   10183: s/^[^!]*!//
                   10184: :repl
                   10185: t repl
                   10186: s/'"$ac_delim"'$//
                   10187: t delim
                   10188: :nl
                   10189: h
                   10190: s/\(.\{148\}\)..*/\1/
                   10191: t more1
                   10192: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
                   10193: p
                   10194: n
                   10195: b repl
                   10196: :more1
                   10197: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   10198: p
                   10199: g
                   10200: s/.\{148\}//
                   10201: t nl
                   10202: :delim
                   10203: h
                   10204: s/\(.\{148\}\)..*/\1/
                   10205: t more2
                   10206: s/["\\]/\\&/g; s/^/"/; s/$/"/
                   10207: p
                   10208: b
                   10209: :more2
                   10210: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   10211: p
                   10212: g
                   10213: s/.\{148\}//
                   10214: t delim
                   10215: ' <conf$$subs.awk | sed '
                   10216: /^[^""]/{
                   10217:   N
                   10218:   s/\n//
                   10219: }
                   10220: ' >>$CONFIG_STATUS || ac_write_fail=1
                   10221: rm -f conf$$subs.awk
                   10222: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10223: _ACAWK
                   10224: cat >>"\$tmp/subs1.awk" <<_ACAWK &&
                   10225:   for (key in S) S_is_set[key] = 1
                   10226:   FS = ""
1.1       bertrand 10227: 
1.15      bertrand 10228: }
                   10229: {
                   10230:   line = $ 0
                   10231:   nfields = split(line, field, "@")
                   10232:   substed = 0
                   10233:   len = length(field[1])
                   10234:   for (i = 2; i < nfields; i++) {
                   10235:     key = field[i]
                   10236:     keylen = length(key)
                   10237:     if (S_is_set[key]) {
                   10238:       value = S[key]
                   10239:       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
                   10240:       len += length(value) + length(field[++i])
                   10241:       substed = 1
                   10242:     } else
                   10243:       len += 1 + keylen
                   10244:   }
1.1       bertrand 10245: 
1.15      bertrand 10246:   print line
                   10247: }
1.1       bertrand 10248: 
1.15      bertrand 10249: _ACAWK
1.14      bertrand 10250: _ACEOF
1.15      bertrand 10251: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10252: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
                   10253:   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
                   10254: else
                   10255:   cat
                   10256: fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
1.36      bertrand 10257:   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.1       bertrand 10258: _ACEOF
                   10259: 
1.36      bertrand 10260: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
                   10261: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1.1       bertrand 10262: # trailing colons and then remove the whole line if VPATH becomes empty
                   10263: # (actually we leave an empty line to preserve line numbers).
                   10264: if test "x$srcdir" = x.; then
1.36      bertrand 10265:   ac_vpsub='/^[     ]*VPATH[    ]*=[    ]*/{
                   10266: h
                   10267: s///
                   10268: s/^/:/
                   10269: s/[     ]*$/:/
                   10270: s/:\$(srcdir):/:/g
                   10271: s/:\${srcdir}:/:/g
                   10272: s/:@srcdir@:/:/g
                   10273: s/^:*//
1.1       bertrand 10274: s/:*$//
1.36      bertrand 10275: x
                   10276: s/\(=[  ]*\).*/\1/
                   10277: G
                   10278: s/\n//
1.1       bertrand 10279: s/^[^=]*=[  ]*$//
                   10280: }'
                   10281: fi
                   10282: 
1.15      bertrand 10283: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10284: fi # test -n "$CONFIG_FILES"
                   10285: 
1.15      bertrand 10286: # Set up the scripts for CONFIG_HEADERS section.
                   10287: # No need to generate them if there are no CONFIG_HEADERS.
                   10288: # This happens for instance with `./config.status Makefile'.
                   10289: if test -n "$CONFIG_HEADERS"; then
                   10290: cat >"$tmp/defines.awk" <<\_ACAWK ||
                   10291: BEGIN {
                   10292: _ACEOF
                   10293: 
                   10294: # Transform confdefs.h into an awk script `defines.awk', embedded as
                   10295: # here-document in config.status, that substitutes the proper values into
                   10296: # config.h.in to produce config.h.
                   10297: 
                   10298: # Create a delimiter string that does not exist in confdefs.h, to ease
                   10299: # handling of long lines.
                   10300: ac_delim='%!_!# '
                   10301: for ac_last_try in false false :; do
                   10302:   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
                   10303:   if test -z "$ac_t"; then
                   10304:     break
                   10305:   elif $ac_last_try; then
1.36      bertrand 10306:     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1.15      bertrand 10307:   else
                   10308:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   10309:   fi
                   10310: done
                   10311: 
                   10312: # For the awk script, D is an array of macro values keyed by name,
                   10313: # likewise P contains macro parameters if any.  Preserve backslash
                   10314: # newline sequences.
                   10315: 
                   10316: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
                   10317: sed -n '
                   10318: s/.\{148\}/&'"$ac_delim"'/g
                   10319: t rset
                   10320: :rset
                   10321: s/^[    ]*#[    ]*define[   ][  ]*/ /
                   10322: t def
                   10323: d
                   10324: :def
                   10325: s/\\$//
                   10326: t bsnl
                   10327: s/["\\]/\\&/g
                   10328: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   10329: D["\1"]=" \3"/p
                   10330: s/^ \('"$ac_word_re"'\)[    ]*\(.*\)/D["\1"]=" \2"/p
                   10331: d
                   10332: :bsnl
                   10333: s/["\\]/\\&/g
                   10334: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   10335: D["\1"]=" \3\\\\\\n"\\/p
                   10336: t cont
                   10337: s/^ \('"$ac_word_re"'\)[    ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
                   10338: t cont
                   10339: d
                   10340: :cont
                   10341: n
                   10342: s/.\{148\}/&'"$ac_delim"'/g
                   10343: t clear
                   10344: :clear
                   10345: s/\\$//
                   10346: t bsnlc
                   10347: s/["\\]/\\&/g; s/^/"/; s/$/"/p
                   10348: d
                   10349: :bsnlc
                   10350: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
                   10351: b cont
                   10352: ' <confdefs.h | sed '
                   10353: s/'"$ac_delim"'/"\\\
                   10354: "/g' >>$CONFIG_STATUS || ac_write_fail=1
                   10355: 
                   10356: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10357:   for (key in D) D_is_set[key] = 1
                   10358:   FS = ""
                   10359: }
                   10360: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
                   10361:   line = \$ 0
                   10362:   split(line, arg, " ")
                   10363:   if (arg[1] == "#") {
                   10364:     defundef = arg[2]
                   10365:     mac1 = arg[3]
                   10366:   } else {
                   10367:     defundef = substr(arg[1], 2)
                   10368:     mac1 = arg[2]
                   10369:   }
                   10370:   split(mac1, mac2, "(") #)
                   10371:   macro = mac2[1]
                   10372:   prefix = substr(line, 1, index(line, defundef) - 1)
                   10373:   if (D_is_set[macro]) {
                   10374:     # Preserve the white space surrounding the "#".
                   10375:     print prefix "define", macro P[macro] D[macro]
                   10376:     next
                   10377:   } else {
                   10378:     # Replace #undef with comments.  This is necessary, for example,
                   10379:     # in the case of _POSIX_SOURCE, which is predefined and required
                   10380:     # on some systems where configure will not decide to define it.
                   10381:     if (defundef == "undef") {
                   10382:       print "/*", prefix defundef, macro, "*/"
                   10383:       next
                   10384:     }
                   10385:   }
                   10386: }
                   10387: { print }
                   10388: _ACAWK
                   10389: _ACEOF
                   10390: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.36      bertrand 10391:   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
1.15      bertrand 10392: fi # test -n "$CONFIG_HEADERS"
                   10393: 
1.1       bertrand 10394: 
1.15      bertrand 10395: eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
                   10396: shift
                   10397: for ac_tag
1.1       bertrand 10398: do
                   10399:   case $ac_tag in
                   10400:   :[FHLC]) ac_mode=$ac_tag; continue;;
                   10401:   esac
                   10402:   case $ac_mode$ac_tag in
                   10403:   :[FHL]*:*);;
1.36      bertrand 10404:   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
1.1       bertrand 10405:   :[FH]-) ac_tag=-:-;;
                   10406:   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
                   10407:   esac
                   10408:   ac_save_IFS=$IFS
                   10409:   IFS=:
                   10410:   set x $ac_tag
                   10411:   IFS=$ac_save_IFS
                   10412:   shift
                   10413:   ac_file=$1
                   10414:   shift
                   10415: 
                   10416:   case $ac_mode in
                   10417:   :L) ac_source=$1;;
                   10418:   :[FH])
                   10419:     ac_file_inputs=
                   10420:     for ac_f
                   10421:     do
                   10422:       case $ac_f in
                   10423:       -) ac_f="$tmp/stdin";;
                   10424:       *) # Look for the file first in the build tree, then in the source tree
                   10425:     # (if the path is not absolute).  The absolute path cannot be DOS-style,
                   10426:     # because $ac_f cannot contain `:'.
                   10427:     test -f "$ac_f" ||
                   10428:       case $ac_f in
                   10429:       [\\/$]*) false;;
                   10430:       *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
                   10431:       esac ||
1.36      bertrand 10432:       as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
1.1       bertrand 10433:       esac
1.15      bertrand 10434:       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
                   10435:       as_fn_append ac_file_inputs " '$ac_f'"
1.1       bertrand 10436:     done
                   10437: 
                   10438:     # Let's still pretend it is `configure' which instantiates (i.e., don't
                   10439:     # use $as_me), people would be surprised to read:
                   10440:     #    /* config.h.  Generated by config.status.  */
1.15      bertrand 10441:     configure_input='Generated from '`
                   10442:      $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
                   10443:    `' by configure.'
1.1       bertrand 10444:     if test x"$ac_file" != x-; then
                   10445:       configure_input="$ac_file.  $configure_input"
1.15      bertrand 10446:       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
                   10447: $as_echo "$as_me: creating $ac_file" >&6;}
1.1       bertrand 10448:     fi
1.15      bertrand 10449:     # Neutralize special characters interpreted by sed in replacement strings.
                   10450:     case $configure_input in #(
                   10451:     *\&* | *\|* | *\\* )
                   10452:        ac_sed_conf_input=`$as_echo "$configure_input" |
                   10453:        sed 's/[\\\\&|]/\\\\&/g'`;; #(
                   10454:     *) ac_sed_conf_input=$configure_input;;
                   10455:     esac
1.1       bertrand 10456: 
                   10457:     case $ac_tag in
1.15      bertrand 10458:     *:-:* | *:-) cat >"$tmp/stdin" \
1.36      bertrand 10459:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
1.1       bertrand 10460:     esac
                   10461:     ;;
                   10462:   esac
                   10463: 
                   10464:   ac_dir=`$as_dirname -- "$ac_file" ||
                   10465: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10466:     X"$ac_file" : 'X\(//\)[^/]' \| \
                   10467:     X"$ac_file" : 'X\(//\)$' \| \
                   10468:     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10469: $as_echo X"$ac_file" |
1.1       bertrand 10470:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10471:        s//\1/
                   10472:        q
                   10473:      }
                   10474:      /^X\(\/\/\)[^/].*/{
                   10475:        s//\1/
                   10476:        q
                   10477:      }
                   10478:      /^X\(\/\/\)$/{
                   10479:        s//\1/
                   10480:        q
                   10481:      }
                   10482:      /^X\(\/\).*/{
                   10483:        s//\1/
                   10484:        q
                   10485:      }
                   10486:      s/.*/./; q'`
1.15      bertrand 10487:   as_dir="$ac_dir"; as_fn_mkdir_p
1.1       bertrand 10488:   ac_builddir=.
                   10489: 
                   10490: case "$ac_dir" in
                   10491: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10492: *)
1.15      bertrand 10493:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 10494:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 10495:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 10496:   case $ac_top_builddir_sub in
                   10497:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10498:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   10499:   esac ;;
                   10500: esac
                   10501: ac_abs_top_builddir=$ac_pwd
                   10502: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   10503: # for backward compatibility:
                   10504: ac_top_builddir=$ac_top_build_prefix
                   10505: 
                   10506: case $srcdir in
                   10507:   .)  # We are building in place.
                   10508:     ac_srcdir=.
                   10509:     ac_top_srcdir=$ac_top_builddir_sub
                   10510:     ac_abs_top_srcdir=$ac_pwd ;;
                   10511:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   10512:     ac_srcdir=$srcdir$ac_dir_suffix;
                   10513:     ac_top_srcdir=$srcdir
                   10514:     ac_abs_top_srcdir=$srcdir ;;
                   10515:   *) # Relative name.
                   10516:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   10517:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   10518:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   10519: esac
                   10520: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   10521: 
                   10522: 
                   10523:   case $ac_mode in
                   10524:   :F)
                   10525:   #
                   10526:   # CONFIG_FILE
                   10527:   #
                   10528: 
                   10529:   case $INSTALL in
                   10530:   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
                   10531:   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
                   10532:   esac
                   10533:   ac_MKDIR_P=$MKDIR_P
                   10534:   case $MKDIR_P in
                   10535:   [\\/$]* | ?:[\\/]* ) ;;
                   10536:   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
                   10537:   esac
                   10538: _ACEOF
                   10539: 
1.15      bertrand 10540: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10541: # If the template does not know about datarootdir, expand it.
                   10542: # FIXME: This hack should be removed a few years after 2.60.
                   10543: ac_datarootdir_hack=; ac_datarootdir_seen=
1.15      bertrand 10544: ac_sed_dataroot='
                   10545: /datarootdir/ {
1.1       bertrand 10546:   p
                   10547:   q
                   10548: }
                   10549: /@datadir@/p
                   10550: /@docdir@/p
                   10551: /@infodir@/p
                   10552: /@localedir@/p
1.15      bertrand 10553: /@mandir@/p'
                   10554: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1.1       bertrand 10555: *datarootdir*) ac_datarootdir_seen=yes;;
                   10556: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.15      bertrand 10557:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
                   10558: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1       bertrand 10559: _ACEOF
1.15      bertrand 10560: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10561:   ac_datarootdir_hack='
                   10562:   s&@datadir@&$datadir&g
                   10563:   s&@docdir@&$docdir&g
                   10564:   s&@infodir@&$infodir&g
                   10565:   s&@localedir@&$localedir&g
                   10566:   s&@mandir@&$mandir&g
1.15      bertrand 10567:   s&\\\${datarootdir}&$datarootdir&g' ;;
1.1       bertrand 10568: esac
                   10569: _ACEOF
                   10570: 
                   10571: # Neutralize VPATH when `$srcdir' = `.'.
                   10572: # Shell code in configure.ac might set extrasub.
                   10573: # FIXME: do we really want to maintain this feature?
1.15      bertrand 10574: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10575: ac_sed_extra="$ac_vpsub
1.1       bertrand 10576: $extrasub
                   10577: _ACEOF
1.15      bertrand 10578: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10579: :t
                   10580: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.15      bertrand 10581: s|@configure_input@|$ac_sed_conf_input|;t t
1.1       bertrand 10582: s&@top_builddir@&$ac_top_builddir_sub&;t t
1.15      bertrand 10583: s&@top_build_prefix@&$ac_top_build_prefix&;t t
1.1       bertrand 10584: s&@srcdir@&$ac_srcdir&;t t
                   10585: s&@abs_srcdir@&$ac_abs_srcdir&;t t
                   10586: s&@top_srcdir@&$ac_top_srcdir&;t t
                   10587: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
                   10588: s&@builddir@&$ac_builddir&;t t
                   10589: s&@abs_builddir@&$ac_abs_builddir&;t t
                   10590: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
                   10591: s&@INSTALL@&$ac_INSTALL&;t t
                   10592: s&@MKDIR_P@&$ac_MKDIR_P&;t t
                   10593: $ac_datarootdir_hack
1.15      bertrand 10594: "
                   10595: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
1.36      bertrand 10596:   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10597: 
                   10598: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
                   10599:   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
                   10600:   { ac_out=`sed -n '/^[     ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
1.15      bertrand 10601:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36      bertrand 10602: which seems to be undefined.  Please make sure it is defined" >&5
1.15      bertrand 10603: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36      bertrand 10604: which seems to be undefined.  Please make sure it is defined" >&2;}
1.1       bertrand 10605: 
                   10606:   rm -f "$tmp/stdin"
                   10607:   case $ac_file in
1.15      bertrand 10608:   -) cat "$tmp/out" && rm -f "$tmp/out";;
                   10609:   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
                   10610:   esac \
1.36      bertrand 10611:   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10612:  ;;
                   10613:   :H)
                   10614:   #
                   10615:   # CONFIG_HEADER
                   10616:   #
                   10617:   if test x"$ac_file" != x-; then
1.15      bertrand 10618:     {
                   10619:       $as_echo "/* $configure_input  */" \
                   10620:       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
                   10621:     } >"$tmp/config.h" \
1.36      bertrand 10622:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.15      bertrand 10623:     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
                   10624:       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
                   10625: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.1       bertrand 10626:     else
1.15      bertrand 10627:       rm -f "$ac_file"
                   10628:       mv "$tmp/config.h" "$ac_file" \
1.36      bertrand 10629:    || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10630:     fi
                   10631:   else
1.15      bertrand 10632:     $as_echo "/* $configure_input  */" \
                   10633:       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
1.36      bertrand 10634:       || as_fn_error $? "could not create -" "$LINENO" 5
1.1       bertrand 10635:   fi
1.15      bertrand 10636: # Compute "$ac_file"'s index in $config_headers.
                   10637: _am_arg="$ac_file"
1.1       bertrand 10638: _am_stamp_count=1
                   10639: for _am_header in $config_headers :; do
                   10640:   case $_am_header in
                   10641:     $_am_arg | $_am_arg:* )
                   10642:       break ;;
                   10643:     * )
                   10644:       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
                   10645:   esac
                   10646: done
                   10647: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
                   10648: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10649:     X"$_am_arg" : 'X\(//\)[^/]' \| \
                   10650:     X"$_am_arg" : 'X\(//\)$' \| \
                   10651:     X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10652: $as_echo X"$_am_arg" |
1.1       bertrand 10653:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10654:        s//\1/
                   10655:        q
                   10656:      }
                   10657:      /^X\(\/\/\)[^/].*/{
                   10658:        s//\1/
                   10659:        q
                   10660:      }
                   10661:      /^X\(\/\/\)$/{
                   10662:        s//\1/
                   10663:        q
                   10664:      }
                   10665:      /^X\(\/\).*/{
                   10666:        s//\1/
                   10667:        q
                   10668:      }
                   10669:      s/.*/./; q'`/stamp-h$_am_stamp_count
                   10670:  ;;
                   10671: 
1.15      bertrand 10672:   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
                   10673: $as_echo "$as_me: executing $ac_file commands" >&6;}
1.1       bertrand 10674:  ;;
                   10675:   esac
                   10676: 
                   10677: 
                   10678:   case $ac_file$ac_mode in
1.15      bertrand 10679:     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
                   10680:   # Autoconf 2.62 quotes --file arguments for eval, but not when files
                   10681:   # are listed without --file.  Let's play safe and only enable the eval
                   10682:   # if we detect the quoting.
                   10683:   case $CONFIG_FILES in
                   10684:   *\'*) eval set x "$CONFIG_FILES" ;;
                   10685:   *)   set x $CONFIG_FILES ;;
                   10686:   esac
                   10687:   shift
                   10688:   for mf
                   10689:   do
                   10690:     # Strip MF so we end up with the name of the file.
                   10691:     mf=`echo "$mf" | sed -e 's/:.*$//'`
                   10692:     # Check whether this is an Automake generated Makefile or not.
                   10693:     # We used to match only the files named `Makefile.in', but
                   10694:     # some people rename them; so instead we look at the file content.
                   10695:     # Grep'ing the first line is not enough: some people post-process
                   10696:     # each Makefile.in and add a new line on top of each file to say so.
                   10697:     # Grep'ing the whole file is not good either: AIX grep has a line
                   10698:     # limit of 2048, but all sed's we know have understand at least 4000.
                   10699:     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
                   10700:       dirpart=`$as_dirname -- "$mf" ||
1.1       bertrand 10701: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10702:     X"$mf" : 'X\(//\)[^/]' \| \
                   10703:     X"$mf" : 'X\(//\)$' \| \
                   10704:     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10705: $as_echo X"$mf" |
1.1       bertrand 10706:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10707:        s//\1/
                   10708:        q
                   10709:      }
                   10710:      /^X\(\/\/\)[^/].*/{
                   10711:        s//\1/
                   10712:        q
                   10713:      }
                   10714:      /^X\(\/\/\)$/{
                   10715:        s//\1/
                   10716:        q
                   10717:      }
                   10718:      /^X\(\/\).*/{
                   10719:        s//\1/
                   10720:        q
                   10721:      }
                   10722:      s/.*/./; q'`
1.15      bertrand 10723:     else
                   10724:       continue
                   10725:     fi
                   10726:     # Extract the definition of DEPDIR, am__include, and am__quote
                   10727:     # from the Makefile without running `make'.
                   10728:     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
                   10729:     test -z "$DEPDIR" && continue
                   10730:     am__include=`sed -n 's/^am__include = //p' < "$mf"`
                   10731:     test -z "am__include" && continue
                   10732:     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
                   10733:     # When using ansi2knr, U may be empty or an underscore; expand it
                   10734:     U=`sed -n 's/^U = //p' < "$mf"`
                   10735:     # Find all dependency output files, they are included files with
                   10736:     # $(DEPDIR) in their names.  We invoke sed twice because it is the
                   10737:     # simplest approach to changing $(DEPDIR) to its actual value in the
                   10738:     # expansion.
                   10739:     for file in `sed -n "
                   10740:       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
                   10741:     sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
                   10742:       # Make sure the directory exists.
                   10743:       test -f "$dirpart/$file" && continue
                   10744:       fdir=`$as_dirname -- "$file" ||
1.1       bertrand 10745: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10746:     X"$file" : 'X\(//\)[^/]' \| \
                   10747:     X"$file" : 'X\(//\)$' \| \
                   10748:     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10749: $as_echo X"$file" |
1.1       bertrand 10750:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10751:        s//\1/
                   10752:        q
                   10753:      }
                   10754:      /^X\(\/\/\)[^/].*/{
                   10755:        s//\1/
                   10756:        q
                   10757:      }
                   10758:      /^X\(\/\/\)$/{
                   10759:        s//\1/
                   10760:        q
                   10761:      }
                   10762:      /^X\(\/\).*/{
                   10763:        s//\1/
                   10764:        q
                   10765:      }
                   10766:      s/.*/./; q'`
1.15      bertrand 10767:       as_dir=$dirpart/$fdir; as_fn_mkdir_p
                   10768:       # echo "creating $dirpart/$file"
                   10769:       echo '# dummy' > "$dirpart/$file"
1.1       bertrand 10770:     done
                   10771:   done
1.15      bertrand 10772: }
1.1       bertrand 10773:  ;;
                   10774: 
                   10775:   esac
                   10776: done # for ac_tag
                   10777: 
                   10778: 
1.15      bertrand 10779: as_fn_exit 0
1.1       bertrand 10780: _ACEOF
                   10781: ac_clean_files=$ac_clean_files_save
                   10782: 
1.15      bertrand 10783: test $ac_write_fail = 0 ||
1.36      bertrand 10784:   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1.15      bertrand 10785: 
1.1       bertrand 10786: 
                   10787: # configure is writing to config.log, and then calls config.status.
                   10788: # config.status does its own redirection, appending to config.log.
                   10789: # Unfortunately, on DOS this fails, as config.log is still kept open
                   10790: # by configure, so config.status won't be able to write to it; its
                   10791: # output is simply discarded.  So we exec the FD to /dev/null,
                   10792: # effectively closing config.log, so it can be properly (re)opened and
                   10793: # appended to by config.status.  When coming back to configure, we
                   10794: # need to make the FD available again.
                   10795: if test "$no_create" != yes; then
                   10796:   ac_cs_success=:
                   10797:   ac_config_status_args=
                   10798:   test "$silent" = yes &&
                   10799:     ac_config_status_args="$ac_config_status_args --quiet"
                   10800:   exec 5>/dev/null
                   10801:   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
                   10802:   exec 5>>config.log
                   10803:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
                   10804:   # would make configure fail if this is the last instruction.
1.36      bertrand 10805:   $ac_cs_success || as_fn_exit 1
1.1       bertrand 10806: fi
                   10807: 
                   10808: #
                   10809: # CONFIG_SUBDIRS section.
                   10810: #
                   10811: if test "$no_recursion" != yes; then
                   10812: 
1.15      bertrand 10813:   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
                   10814:   # so they do not pile up.
1.1       bertrand 10815:   ac_sub_configure_args=
                   10816:   ac_prev=
                   10817:   eval "set x $ac_configure_args"
                   10818:   shift
                   10819:   for ac_arg
                   10820:   do
                   10821:     if test -n "$ac_prev"; then
                   10822:       ac_prev=
                   10823:       continue
                   10824:     fi
                   10825:     case $ac_arg in
                   10826:     -cache-file | --cache-file | --cache-fil | --cache-fi \
                   10827:     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                   10828:       ac_prev=cache_file ;;
                   10829:     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                   10830:     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
                   10831:     | --c=*)
                   10832:       ;;
                   10833:     --config-cache | -C)
                   10834:       ;;
                   10835:     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   10836:       ac_prev=srcdir ;;
                   10837:     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   10838:       ;;
                   10839:     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   10840:       ac_prev=prefix ;;
                   10841:     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                   10842:       ;;
1.15      bertrand 10843:     --disable-option-checking)
                   10844:       ;;
1.1       bertrand 10845:     *)
                   10846:       case $ac_arg in
1.15      bertrand 10847:       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1       bertrand 10848:       esac
1.15      bertrand 10849:       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1       bertrand 10850:     esac
                   10851:   done
                   10852: 
                   10853:   # Always prepend --prefix to ensure using the same prefix
                   10854:   # in subdir configurations.
                   10855:   ac_arg="--prefix=$prefix"
                   10856:   case $ac_arg in
1.15      bertrand 10857:   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1       bertrand 10858:   esac
                   10859:   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
                   10860: 
                   10861:   # Pass --silent
                   10862:   if test "$silent" = yes; then
                   10863:     ac_sub_configure_args="--silent $ac_sub_configure_args"
                   10864:   fi
                   10865: 
1.15      bertrand 10866:   # Always prepend --disable-option-checking to silence warnings, since
                   10867:   # different subdirs can have different --enable and --with options.
                   10868:   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
                   10869: 
1.1       bertrand 10870:   ac_popdir=`pwd`
                   10871:   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
                   10872: 
                   10873:     # Do not complain, so a configure script can configure whichever
                   10874:     # parts of a large source tree are present.
                   10875:     test -d "$srcdir/$ac_dir" || continue
                   10876: 
                   10877:     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
1.15      bertrand 10878:     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
                   10879:     $as_echo "$ac_msg" >&6
                   10880:     as_dir="$ac_dir"; as_fn_mkdir_p
1.1       bertrand 10881:     ac_builddir=.
                   10882: 
                   10883: case "$ac_dir" in
                   10884: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10885: *)
1.15      bertrand 10886:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 10887:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 10888:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 10889:   case $ac_top_builddir_sub in
                   10890:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10891:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   10892:   esac ;;
                   10893: esac
                   10894: ac_abs_top_builddir=$ac_pwd
                   10895: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   10896: # for backward compatibility:
                   10897: ac_top_builddir=$ac_top_build_prefix
                   10898: 
                   10899: case $srcdir in
                   10900:   .)  # We are building in place.
                   10901:     ac_srcdir=.
                   10902:     ac_top_srcdir=$ac_top_builddir_sub
                   10903:     ac_abs_top_srcdir=$ac_pwd ;;
                   10904:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   10905:     ac_srcdir=$srcdir$ac_dir_suffix;
                   10906:     ac_top_srcdir=$srcdir
                   10907:     ac_abs_top_srcdir=$srcdir ;;
                   10908:   *) # Relative name.
                   10909:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   10910:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   10911:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   10912: esac
                   10913: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   10914: 
                   10915: 
                   10916:     cd "$ac_dir"
                   10917: 
                   10918:     # Check for guested configure; otherwise get Cygnus style configure.
                   10919:     if test -f "$ac_srcdir/configure.gnu"; then
                   10920:       ac_sub_configure=$ac_srcdir/configure.gnu
                   10921:     elif test -f "$ac_srcdir/configure"; then
                   10922:       ac_sub_configure=$ac_srcdir/configure
                   10923:     elif test -f "$ac_srcdir/configure.in"; then
                   10924:       # This should be Cygnus configure.
                   10925:       ac_sub_configure=$ac_aux_dir/configure
                   10926:     else
1.15      bertrand 10927:       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
                   10928: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1       bertrand 10929:       ac_sub_configure=
                   10930:     fi
                   10931: 
                   10932:     # The recursion is here.
                   10933:     if test -n "$ac_sub_configure"; then
                   10934:       # Make the cache file name correct relative to the subdirectory.
                   10935:       case $cache_file in
                   10936:       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
                   10937:       *) # Relative name.
                   10938:    ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
                   10939:       esac
                   10940: 
1.15      bertrand 10941:       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
                   10942: $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1       bertrand 10943:       # The eval makes quoting arguments work.
                   10944:       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
                   10945:       --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
1.36      bertrand 10946:    as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1       bertrand 10947:     fi
                   10948: 
                   10949:     cd "$ac_popdir"
                   10950:   done
                   10951: fi
1.15      bertrand 10952: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
                   10953:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
                   10954: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
                   10955: fi
1.1       bertrand 10956: 

CVSweb interface <joel.bertrand@systella.fr>