X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=configure;h=a600c87c058f17caa54f01e588c40c8295428140;hp=24b3fba32c64137fe69ebf5f561c566668d4d88c;hb=e1cb261b0661407b023986b7a3add04530c7e458;hpb=f7ee98f7d964ed361068179f0e7ea4475ed1abdf diff --git a/configure b/configure index 24b3fba..a600c87 100755 --- a/configure +++ b/configure @@ -668,6 +668,7 @@ am__leading_dot SET_MAKE AWK mkdir_p +MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh @@ -679,6 +680,7 @@ ACLOCAL VERSION PACKAGE CYGPATH_W +am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM @@ -2475,9 +2477,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 $as_echo "$USE_MAINTAINER_MODE" >&6; } - - -if test $USE_MAINTAINER_MODE = yes; then + if test $USE_MAINTAINER_MODE = yes; then MAINTAINER_MODE_TRUE= MAINTAINER_MODE_FALSE='#' else @@ -2488,7 +2488,8 @@ fi MAINT=$MAINTAINER_MODE_TRUE -am__api_version="1.9" +am__api_version='1.10' + ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do for ac_t in install-sh install.sh shtool; do @@ -2667,38 +2668,53 @@ else $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi -if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then - # We used to keeping the `.' as first argument, in order to - # allow $(mkdir_p) to be used without argument. As in - # $(mkdir_p) $(somedir) - # where $(somedir) is conditionally defined. However this is wrong - # for two reasons: - # 1. if the package is installed by a user who cannot write `.' - # make install will fail, - # 2. the above comment should most certainly read - # $(mkdir_p) $(DESTDIR)$(somedir) - # so it does not work when $(somedir) is undefined and - # $(DESTDIR) is not. - # To support the latter case, we have to write - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), - # so the `.' trick is pointless. - mkdir_p='mkdir -p --' -else - # On NextStep and OpenStep, the `mkdir' command does not - # recognize any option. It will interpret all options as - # directories to create, and then abort because `.' already - # exists. - for d in ./-p ./--version; - do - test -d $d && rmdir $d +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } +if test -z "$MKDIR_P"; then + if test "${ac_cv_path_mkdir+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in mkdir gmkdir; do + for ac_exec_ext in '' $ac_executable_extensions; do + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir (GNU coreutils) '* | \ + 'mkdir (coreutils) '* | \ + 'mkdir (fileutils) '4.1*) + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + break 3;; + esac + done + done done - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. - if test -f "$ac_aux_dir/mkinstalldirs"; then - mkdir_p='$(mkinstalldirs)' +IFS=$as_save_IFS + +fi + + if test "${ac_cv_path_mkdir+set}" = set; then + MKDIR_P="$ac_cv_path_mkdir -p" else - mkdir_p='$(install_sh) -d' + # As a last resort, use the slow shell script. Don't cache a + # value for MKDIR_P within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + test -d ./--version && rmdir ./--version + MKDIR_P="$ac_install_sh -d" fi fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +$as_echo "$MKDIR_P" >&6; } + +mkdir_p="$MKDIR_P" +case $mkdir_p in + [\\/$]* | ?:[\\/]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac for ac_prog in gawk mawk nawk awk do @@ -2782,10 +2798,14 @@ else fi rmdir .tst 2>/dev/null -# test to see if srcdir already configured -if test "`cd $srcdir && pwd`" != "`pwd`" && - test -f $srcdir/config.status; then - as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + am__isrc=' -I$(srcdir)' + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 + fi fi # test whether we have cygpath @@ -2800,7 +2820,7 @@ fi # Define the identity of the package. PACKAGE=ctsim - VERSION=5.0.0 + VERSION=5.0.6 cat >>confdefs.h <<_ACEOF @@ -2828,7 +2848,7 @@ AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} -install_sh=${install_sh-"$am_aux_dir/install-sh"} +install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right @@ -2928,7 +2948,7 @@ else fi fi -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" # We need awk for the "check" target. The system "awk" is bad on # some platforms. @@ -2945,9 +2965,6 @@ am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' ac_config_headers="$ac_config_headers config.h" -CFLAGS="" -CXXFLAGS="" - for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. @@ -3934,9 +3951,7 @@ if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi - - -if test "x$enable_dependency_tracking" != xno; then + if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else @@ -3946,7 +3961,6 @@ fi - depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 @@ -4014,6 +4028,7 @@ else depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then @@ -4043,9 +4058,7 @@ fi $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type - - -if + if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= @@ -4380,6 +4393,7 @@ else depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then @@ -4409,9 +4423,7 @@ fi $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type - - -if + if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= @@ -5572,13 +5584,59 @@ else fi wxwin=false +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgtk-x11-2.0" >&5 +$as_echo_n "checking for main in -lgtk-x11-2.0... " >&6; } +if test "${ac_cv_lib_gtk_x11_2_0_main+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgtk-x11-2.0 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gtk_x11_2_0_main=yes +else + ac_cv_lib_gtk_x11_2_0_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gtk_x11_2_0_main" >&5 +$as_echo "$ac_cv_lib_gtk_x11_2_0_main" >&6; } +if test "x$ac_cv_lib_gtk_x11_2_0_main" = x""yes; then : + hasx11gtk2=true +fi + +if test "x$hasx11gtk2" = "x" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: Does not have X11 GTK2" >&5 +$as_echo "$as_me: Does not have X11 GTK2" >&6;} + + +fi +if test "$hasx11gtk2" = "true" ; then + + + CFLAGS="${CFLAGS} ${g76GTK_CFLAGS} ${GLIB_CFLAGS}" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwx_gtk2u_core-2.8" >&5 $as_echo_n "checking for main in -lwx_gtk2u_core-2.8... " >&6; } if test "${ac_cv_lib_wx_gtk2u_core_2_8_main+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lwx_gtk2u_core-2.8 -L/usr/lib64 -L/usr/lib `gtk-config --libs` `glib-config --libs glib gmodule gthread` $LIBS" +LIBS="-lwx_gtk2u_core-2.8 -L/usr/lib64 -L/usr/lib ${GTK_LIBS} ${GLIB_LIBS} $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -5608,13 +5666,13 @@ $as_echo "#define HAVE_WXWINDOWS 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwx_mac-2.8" >&5 -$as_echo_n "checking for main in -lwx_mac-2.8... " >&6; } -if test "${ac_cv_lib_wx_mac_2_8_main+set}" = set; then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwx_mac_core-2.8" >&5 +$as_echo_n "checking for main in -lwx_mac_core-2.8... " >&6; } +if test "${ac_cv_lib_wx_mac_core_2_8_main+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lwx_mac-2.8 $LIBS" +LIBS="-lwx_mac_core-2.8 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -5628,17 +5686,17 @@ return main (); } _ACEOF if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_wx_mac_2_8_main=yes + ac_cv_lib_wx_mac_core_2_8_main=yes else - ac_cv_lib_wx_mac_2_8_main=no + ac_cv_lib_wx_mac_core_2_8_main=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wx_mac_2_8_main" >&5 -$as_echo "$ac_cv_lib_wx_mac_2_8_main" >&6; } -if test "x$ac_cv_lib_wx_mac_2_8_main" = x""yes; then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wx_mac_core_2_8_main" >&5 +$as_echo "$ac_cv_lib_wx_mac_core_2_8_main" >&6; } +if test "x$ac_cv_lib_wx_mac_core_2_8_main" = x""yes; then : wxwin=true; wx_mac=true; $as_echo "#define HAVE_WXWINDOWS 1" >>confdefs.h @@ -5768,7 +5826,7 @@ if test "${ac_cv_lib_png_main+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lpng -lz -lm $LIBS" +LIBS="-lpng -L/opt/local/lib -lz -lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6153,9 +6211,7 @@ $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h LDFLAGS="$LDFLAGS -L../getopt" GETOPTLONG=1 fi - - -if test "$GETOPTLONG"="1"; then + if test "$GETOPTLONG"="1"; then INCLUDED_GETOPT_LONG_TRUE= INCLUDED_GETOPT_LONG_FALSE='#' else @@ -6195,9 +6251,7 @@ else $as_echo "no" >&6; } fi - - -if test "$debug" = "true"; then + if test "$debug" = "true"; then DEBUG_TRUE= DEBUG_FALSE='#' else @@ -6211,7 +6265,7 @@ if test "$datadir" != "" ; then fi if test "$debug" = "true" ; then - CFLAGS="$CFLAGS -g -DDEBUG" + CFLAGS="$CFLAGS -g -O0 -DDEBUG" $as_echo "#define DEBUG 1" >>confdefs.h @@ -6428,18 +6482,16 @@ if test "${with_html_dir+set}" = set; then : fi -if test -n "$cgibindir" -o -n "$cgibinurl" ; then +if test "x$cgibindir" != "x" -o "x$cgibinurl" != "x" ; then cgiprograms="ctsim.cgi ctsim.conf" fi -if test -n "$html_dir" ; then +if test "x$html_dir" = "x" ; then htmldata=simulate.html fi - - -if test -n "$html_dir"; then + if test "x$html_dir" = "x"; then USE_HTML_TRUE= USE_HTML_FALSE='#' else @@ -6448,20 +6500,20 @@ else fi -if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$html_dir" ; then +if test "x$cgibindir" != "x" -o "x$cgibinurl" != "x" -o "x$webdatadir" != "x" -o "x$webdataurl" != "x" -o "x$html_dir" != "x" ; then webenabled=true { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } - if test -z "$cgibindir" ; then + if test "x$cgibindir" = "x" ; then as_fn_error "--with-cgibin-dir not set for web access" "$LINENO" 5 - elif test -z "$cgibinurl" ; then + elif test "x$cgibinurl" = "x" ; then as_fn_error "--with-cgibin-url not set for web access" "$LINENO" 5 - elif test -z "$webdatadir" ; then + elif test "x$webdatadir" = "x" ; then as_fn_error "--with-webdata-dir not set for web access" "$LINENO" 5 - elif test -z "$webdataurl" ; then + elif test "x$webdataurl" = "x" ; then as_fn_error "--with-webdata-url not set for web access" "$LINENO" 5 - elif test -z "$html_dir" ; then + elif test "x$html_dir" = "x" ; then as_fn_error "--with-html-dir not set for web access" "$LINENO" 5 fi else @@ -6469,9 +6521,7 @@ else $as_echo "no" >&6; } fi - - -if test -n "$lamdir"; then + if test "x$lamdir" != "x"; then USE_LAM_TRUE= USE_LAM_FALSE='#' else @@ -7170,9 +7220,7 @@ fi - - -if test "x$with_x" = "xno"; then + if test "x$with_x" = "xno"; then NO_X_TRUE= NO_X_FALSE='#' else @@ -7206,10 +7254,10 @@ $as_echo "yes" >&6; } if test "$debug" = "true"; then wxdebug="--debug" fi - if "$wx_gtk" ; then - ctlib_graphics="$ctlib_graphics `$wxconfig $wxdebug --libs --version=2.8` -lwx_gtk2u_gl-2.8 `gtk-config --libs` `glib-config --libs glib gmodule gthread`" - elif "$wx_mac" ; then - ctlib_graphics="$ctlib_graphics -lwx_mac_gl-2.8" + if test "x$wx_gtk" != "x" ; then + ctlib_graphics="$ctlib_graphics `$wxconfig $wxdebug --version=2.8 --libs std,gl` ${GTK_LIBS} ${GLIB_LIBS}" + elif test "x$wx_mac" != "x" ; then + ctlib_graphics="$ctlib_graphics `$wxconfig $wxdebug --version=2.8 --libs std,gl`" fi fi fi @@ -7223,9 +7271,7 @@ else $as_echo "no" >&6; } fi - - -if test "$wxwin" = "true"; then + if test "$wxwin" = "true"; then HAVE_SGP_TRUE= HAVE_SGP_FALSE='#' else @@ -7384,7 +7430,7 @@ $as_echo "Using efence" >&6; } fi if test "$wxwin" = "true" ; then - if "$wx_gtk" = "true" || "$wx_mac" = "true" ; then + if test "$wx_gtk" = "true" -o "$wx_mac" = "true" ; then wxcflags=`$wxconfig $wxdebug --cxxflags --version=2.8` #wxlibs=`$wxconfig --libs` else @@ -7396,9 +7442,7 @@ if test "$wxwin" = "true" ; then fi - - -if test "$wxwin"="true"; then + if test "$wxwin"="true"; then HAVE_WXWINDOWS_TRUE= HAVE_WXWINDOWS_FALSE='#' else @@ -7411,7 +7455,7 @@ LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim" ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools" -if test -n "$lamdir" ; then +if test "x$lamdir" != "x" ; then lamprograms="ctsimtext-lam" lamdefs="$CFLAGS" @@ -8048,6 +8092,7 @@ gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' +MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF @@ -8614,6 +8659,11 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac + ac_MKDIR_P=$MKDIR_P + case $MKDIR_P in + [\\/$]* | ?:[\\/]* ) ;; + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; + esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 @@ -8668,6 +8718,7 @@ s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t +s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ @@ -8712,21 +8763,22 @@ $as_echo "$as_me: $ac_file is unchanged" >&6;} || as_fn_error "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. +_am_arg="$ac_file" _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in - "$ac_file" | "$ac_file":* ) + $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done -echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" || -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$ac_file" | +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$_am_arg" : 'X\(//\)[^/]' \| \ + X"$_am_arg" : 'X\(//\)$' \| \ + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -8753,7 +8805,16 @@ $as_echo "$as_me: executing $ac_file commands" >&6;} case $ac_file$ac_mode in - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do + "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files +# are listed without --file. Let's play safe and only enable the eval +# if we detect the quoting. +case $CONFIG_FILES in +*\'*) eval set x "$CONFIG_FILES" ;; +*) set x $CONFIG_FILES ;; +esac +shift +for mf +do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. @@ -8761,8 +8822,9 @@ $as_echo "$as_me: executing $ac_file commands" >&6;} # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. - # So let's grep whole file. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \